]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
c32bde28 | 46 | #define SWIG_TypePrettyName SWIG_Python_TypePrettyName |
d55e5bfc RD |
47 | #define SWIG_TypeQuery SWIG_Python_TypeQuery |
48 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
49 | #define SWIG_PackData SWIG_Python_PackData | |
50 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
51 | ||
52 | ||
53 | /*********************************************************************** | |
54 | * common.swg for wxPython | |
55 | * | |
56 | * Include only the function prototypes and such from SWIG's common.swg, | |
57 | * but not the runtime functions themselves. This helps keep the | |
58 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
59 | * anyway. | |
60 | * | |
61 | ************************************************************************/ | |
62 | ||
63 | #include <string.h> | |
64 | ||
65 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
66 | # if defined(_MSC_VER) || defined(__GNUC__) | |
67 | # if defined(STATIC_LINKED) | |
68 | # define SWIGEXPORT(a) a | |
69 | # define SWIGIMPORT(a) extern a | |
70 | # else | |
71 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
72 | # define SWIGIMPORT(a) extern a | |
73 | # endif | |
74 | # else | |
75 | # if defined(__BORLANDC__) | |
76 | # define SWIGEXPORT(a) a _export | |
77 | # define SWIGIMPORT(a) a _export | |
78 | # else | |
79 | # define SWIGEXPORT(a) a | |
80 | # define SWIGIMPORT(a) a | |
81 | # endif | |
82 | # endif | |
83 | #else | |
84 | # define SWIGEXPORT(a) a | |
85 | # define SWIGIMPORT(a) a | |
86 | #endif | |
87 | ||
88 | #ifdef SWIG_GLOBAL | |
89 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
90 | #else | |
91 | # define SWIGRUNTIME(a) static a | |
92 | #endif | |
93 | ||
94 | #ifdef __cplusplus | |
95 | extern "C" { | |
96 | #endif | |
97 | ||
98 | typedef void *(*swig_converter_func)(void *); | |
99 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
100 | ||
101 | typedef struct swig_type_info { | |
102 | const char *name; | |
103 | swig_converter_func converter; | |
104 | const char *str; | |
105 | void *clientdata; | |
106 | swig_dycast_func dcast; | |
107 | struct swig_type_info *next; | |
108 | struct swig_type_info *prev; | |
109 | } swig_type_info; | |
110 | ||
111 | ||
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
113 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
114 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
115 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
116 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
c32bde28 | 117 | SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *); |
d55e5bfc RD |
118 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); |
119 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
120 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
121 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
122 | ||
123 | ||
124 | #ifdef __cplusplus | |
125 | } | |
126 | #endif | |
127 | ||
c32bde28 | 128 | |
d55e5bfc RD |
129 | /*********************************************************************** |
130 | * pyrun.swg for wxPython | |
131 | * | |
132 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
133 | * but not the runtime functions themselves. This helps keep the | |
134 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
135 | * anyway. | |
136 | * | |
137 | ************************************************************************/ | |
138 | ||
d55e5bfc RD |
139 | #ifdef __cplusplus |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
167 | /* Common SWIG API */ | |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
174 | ||
175 | /* Python-specific SWIG API */ | |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
187 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
188 | ||
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
197 | ||
198 | ||
199 | /* Contract support */ | |
200 | ||
201 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
202 | ||
203 | #ifdef __cplusplus | |
204 | } | |
205 | #endif | |
206 | ||
207 | ||
c32bde28 | 208 | |
d55e5bfc RD |
209 | /* -------- TYPES TABLE (BEGIN) -------- */ |
210 | ||
211 | #define SWIGTYPE_p_wxLogChain swig_types[0] | |
212 | #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1] | |
213 | #define SWIGTYPE_p_wxMetafile swig_types[2] | |
214 | #define SWIGTYPE_p_wxFileHistory swig_types[3] | |
215 | #define SWIGTYPE_p_wxLog swig_types[4] | |
216 | #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5] | |
217 | #define SWIGTYPE_p_wxMenu swig_types[6] | |
218 | #define SWIGTYPE_p_wxEvent swig_types[7] | |
219 | #define SWIGTYPE_p_wxConfigBase swig_types[8] | |
220 | #define SWIGTYPE_p_wxDisplay swig_types[9] | |
221 | #define SWIGTYPE_p_wxFileType swig_types[10] | |
222 | #define SWIGTYPE_p_wxLogGui swig_types[11] | |
223 | #define SWIGTYPE_p_wxFont swig_types[12] | |
224 | #define SWIGTYPE_p_wxDataFormat swig_types[13] | |
225 | #define SWIGTYPE_p_wxTimerEvent swig_types[14] | |
226 | #define SWIGTYPE_p_wxCaret swig_types[15] | |
227 | #define SWIGTYPE_p_int swig_types[16] | |
228 | #define SWIGTYPE_p_wxSize swig_types[17] | |
229 | #define SWIGTYPE_p_wxClipboard swig_types[18] | |
230 | #define SWIGTYPE_p_wxStopWatch swig_types[19] | |
231 | #define SWIGTYPE_p_wxDC swig_types[20] | |
232 | #define SWIGTYPE_p_wxClipboardLocker swig_types[21] | |
233 | #define SWIGTYPE_p_wxIcon swig_types[22] | |
234 | #define SWIGTYPE_p_wxLogStderr swig_types[23] | |
235 | #define SWIGTYPE_p_wxLogTextCtrl swig_types[24] | |
236 | #define SWIGTYPE_p_wxTextCtrl swig_types[25] | |
237 | #define SWIGTYPE_p_wxBusyCursor swig_types[26] | |
b1f29bf7 RD |
238 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[27] |
239 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[28] | |
240 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[29] | |
241 | #define SWIGTYPE_p_wxTextDataObject swig_types[30] | |
242 | #define SWIGTYPE_p_wxDataObject swig_types[31] | |
d55e5bfc RD |
243 | #define SWIGTYPE_p_wxFileDataObject swig_types[32] |
244 | #define SWIGTYPE_p_wxCustomDataObject swig_types[33] | |
245 | #define SWIGTYPE_p_wxURLDataObject swig_types[34] | |
246 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[35] | |
247 | #define SWIGTYPE_p_wxSound swig_types[36] | |
248 | #define SWIGTYPE_p_wxTimerRunner swig_types[37] | |
249 | #define SWIGTYPE_p_wxLogWindow swig_types[38] | |
250 | #define SWIGTYPE_p_wxTimeSpan swig_types[39] | |
251 | #define SWIGTYPE_p_wxArrayString swig_types[40] | |
252 | #define SWIGTYPE_p_wxWindowDisabler swig_types[41] | |
253 | #define SWIGTYPE_p_wxToolTip swig_types[42] | |
254 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[43] | |
255 | #define SWIGTYPE_p_wxFileConfig swig_types[44] | |
256 | #define SWIGTYPE_p_wxSystemSettings swig_types[45] | |
257 | #define SWIGTYPE_p_wxVideoMode swig_types[46] | |
258 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[47] | |
259 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[48] | |
260 | #define SWIGTYPE_p_wxEvtHandler swig_types[49] | |
261 | #define SWIGTYPE_p_wxRect swig_types[50] | |
262 | #define SWIGTYPE_p_char swig_types[51] | |
263 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[52] | |
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] | |
281 | #define SWIGTYPE_p_wxWindow swig_types[70] | |
282 | #define SWIGTYPE_p_wxString swig_types[71] | |
283 | #define SWIGTYPE_p_wxPyProcess swig_types[72] | |
284 | #define SWIGTYPE_p_wxBitmap swig_types[73] | |
285 | #define SWIGTYPE_p_wxConfig swig_types[74] | |
286 | #define SWIGTYPE_p_wxChar swig_types[75] | |
287 | #define SWIGTYPE_p_wxBusyInfo swig_types[76] | |
288 | #define SWIGTYPE_p_wxPyDropTarget swig_types[77] | |
289 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[78] | |
290 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[79] | |
291 | #define SWIGTYPE_p_wxProcessEvent swig_types[80] | |
292 | #define SWIGTYPE_p_wxPyLog swig_types[81] | |
293 | #define SWIGTYPE_p_wxLogNull swig_types[82] | |
294 | #define SWIGTYPE_p_wxColour swig_types[83] | |
295 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[84] | |
296 | #define SWIGTYPE_p_wxPyTimer swig_types[85] | |
297 | #define SWIGTYPE_p_wxDateSpan swig_types[86] | |
298 | static swig_type_info *swig_types[88]; | |
d55e5bfc RD |
299 | |
300 | /* -------- TYPES TABLE (END) -------- */ | |
301 | ||
302 | ||
303 | /*----------------------------------------------- | |
304 | @(target):= _misc_.so | |
305 | ------------------------------------------------*/ | |
306 | #define SWIG_init init_misc_ | |
307 | ||
308 | #define SWIG_name "_misc_" | |
309 | ||
c32bde28 RD |
310 | /* Auxiliar swig macros that appear in the header */ |
311 | ||
312 | #define SWIG_OLDOBJ 1 | |
313 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
314 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
d55e5bfc RD |
315 | |
316 | #ifdef __cplusplus | |
317 | #define SWIGSTATICINLINE(a) static inline a | |
318 | #define SWIGSTATIC(a) static a | |
c32bde28 RD |
319 | #define swig_new_array(size,Type) (new Type[(size)]) |
320 | #define swig_delete(cptr) delete cptr | |
d55e5bfc | 321 | #define swig_delete_array(cptr) delete[] cptr |
c32bde28 RD |
322 | #define swig_const_cast(a,Type) const_cast<Type >(a) |
323 | #define swig_static_cast(a,Type) static_cast<Type >(a) | |
324 | #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a) | |
325 | #define swig_new_copy(ptr,Type) (new Type(*ptr)) | |
326 | #define swig_numeric_cast(a,Type) static_cast<Type >(a) | |
d55e5bfc RD |
327 | |
328 | #else /* C case */ | |
329 | ||
330 | #define SWIGSTATICINLINE(a) static a | |
331 | #define SWIGSTATIC(a) static a | |
c32bde28 RD |
332 | #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type))) |
333 | #define swig_delete(cptr) free((char*)cptr) | |
d55e5bfc | 334 | #define swig_delete_array(cptr) free((char*)cptr) |
c32bde28 RD |
335 | #define swig_const_cast(a,Type) (Type)(a) |
336 | #define swig_static_cast(a,Type) (Type)(a) | |
337 | #define swig_reinterpret_cast(a,Type) (Type)(a) | |
338 | #define swig_numeric_cast(a,Type) (Type)(a) | |
339 | #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type))) | |
d55e5bfc RD |
340 | |
341 | #endif /* __cplusplus */ | |
342 | ||
343 | ||
c32bde28 RD |
344 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
345 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
346 | /*@@*/ | |
347 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
348 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
349 | /*@@*/ | |
350 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
351 | #define SWIG_From_short PyInt_FromLong | |
352 | /*@@*/ | |
353 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
354 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
355 | /*@@*/ | |
356 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
357 | #define SWIG_From_int PyInt_FromLong | |
358 | /*@@*/ | |
359 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
360 | #define SWIG_From_long PyInt_FromLong | |
361 | /*@@*/ | |
362 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
363 | #define SWIG_From_float PyFloat_FromDouble | |
364 | /*@@*/ | |
365 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
366 | #define SWIG_From_double PyFloat_FromDouble | |
367 | /*@@*/ | |
d55e5bfc RD |
368 | |
369 | ||
370 | #include "wx/wxPython/wxPython.h" | |
371 | #include "wx/wxPython/pyclasses.h" | |
0439c23b | 372 | #include "wx/wxPython/pyistream.h" |
d55e5bfc RD |
373 | |
374 | static const wxString wxPyEmptyString(wxEmptyString); | |
375 | ||
376 | ||
377 | ||
378 | #include <limits.h> | |
379 | ||
380 | ||
c32bde28 RD |
381 | SWIGSTATICINLINE(int) |
382 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
383 | const char *errmsg) | |
d55e5bfc | 384 | { |
c32bde28 RD |
385 | if (value < min_value) { |
386 | if (errmsg) { | |
387 | PyErr_Format(PyExc_OverflowError, | |
388 | "value %ld is less than '%s' minimum %ld", | |
389 | value, errmsg, min_value); | |
390 | } | |
391 | return 0; | |
392 | } else if (value > max_value) { | |
393 | if (errmsg) { | |
394 | PyErr_Format(PyExc_OverflowError, | |
395 | "value %ld is greater than '%s' maximum %ld", | |
396 | value, errmsg, max_value); | |
d55e5bfc | 397 | } |
c32bde28 | 398 | return 0; |
d55e5bfc | 399 | } |
c32bde28 | 400 | return 1; |
d55e5bfc RD |
401 | } |
402 | ||
403 | ||
c32bde28 RD |
404 | // See my_fragments.i |
405 | SWIGSTATICINLINE(int) | |
406 | SWIG_AsVal_long(PyObject* obj, long* val) | |
d55e5bfc | 407 | { |
c32bde28 RD |
408 | if (PyNumber_Check(obj)) { |
409 | if (val) *val = PyInt_AsLong(obj); | |
410 | return 1; | |
411 | } | |
d55e5bfc RD |
412 | else { |
413 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
414 | obj->ob_type->tp_name); | |
415 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
416 | Py_DECREF(errmsg); | |
d55e5bfc | 417 | } |
c32bde28 | 418 | return 0; |
d55e5bfc RD |
419 | } |
420 | ||
421 | ||
422 | #if INT_MAX != LONG_MAX | |
423 | SWIGSTATICINLINE(int) | |
c32bde28 | 424 | SWIG_AsVal_int(PyObject *obj, int *val) |
d55e5bfc | 425 | { |
c32bde28 RD |
426 | const char* errmsg = val ? "int" : 0; |
427 | long v; | |
428 | if (SWIG_AsVal_long(obj, &v)) { | |
429 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
430 | if (val) *val = swig_numeric_cast(v, int); | |
431 | return 1; | |
432 | } else { | |
433 | return 0; | |
434 | } | |
435 | } else { | |
436 | PyErr_Clear(); | |
437 | } | |
438 | if (val) { | |
439 | PyErr_SetString(PyExc_TypeError, "an int is expected"); | |
440 | } | |
441 | return 0; | |
d55e5bfc RD |
442 | } |
443 | #else | |
c32bde28 RD |
444 | SWIGSTATICINLINE(int) |
445 | SWIG_AsVal_int(PyObject *obj, int *val) | |
446 | { | |
447 | return SWIG_AsVal_long(obj,(long*)val); | |
448 | } | |
d55e5bfc RD |
449 | #endif |
450 | ||
451 | ||
452 | SWIGSTATICINLINE(int) | |
c32bde28 | 453 | SWIG_As_int(PyObject* obj) |
d55e5bfc | 454 | { |
c32bde28 RD |
455 | int v; |
456 | if (!SWIG_AsVal_int(obj, &v)) { | |
457 | /* | |
458 | this is needed to make valgrind/purify happier. the other | |
459 | solution is throw an exception, but since this code should work | |
460 | with plain C .... | |
461 | */ | |
462 | memset((void*)&v, 0, sizeof(int)); | |
d55e5bfc | 463 | } |
c32bde28 RD |
464 | return v; |
465 | } | |
466 | ||
467 | ||
468 | SWIGSTATICINLINE(int) | |
469 | SWIG_Check_int(PyObject* obj) | |
470 | { | |
471 | return SWIG_AsVal_int(obj, (int*)0); | |
d55e5bfc RD |
472 | } |
473 | ||
7e63a440 | 474 | static const wxString wxPyWINDOW_DEFAULT_VARIANT(wxWINDOW_DEFAULT_VARIANT); |
d1f3a348 RD |
475 | |
476 | #include <wx/stockitem.h> | |
477 | ||
d55e5bfc RD |
478 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
479 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
480 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
481 | ||
c32bde28 RD |
482 | SWIGSTATICINLINE(long) |
483 | SWIG_As_long(PyObject* obj) | |
484 | { | |
485 | long v; | |
486 | if (!SWIG_AsVal_long(obj, &v)) { | |
487 | /* | |
488 | this is needed to make valgrind/purify happier. the other | |
489 | solution is throw an exception, but since this code should work | |
490 | with plain C .... | |
491 | */ | |
492 | memset((void*)&v, 0, sizeof(long)); | |
493 | } | |
494 | return v; | |
495 | } | |
496 | ||
497 | ||
d55e5bfc | 498 | SWIGSTATICINLINE(int) |
c32bde28 | 499 | SWIG_Check_long(PyObject* obj) |
d55e5bfc | 500 | { |
c32bde28 RD |
501 | return SWIG_AsVal_long(obj, (long*)0); |
502 | } | |
503 | ||
504 | ||
505 | SWIGSTATICINLINE(int) | |
506 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
507 | { | |
508 | /* if (val) *val = PyObject_IsTrue(obj); return 1; */ | |
509 | if (obj == Py_True) { | |
510 | if (val) *val = true; | |
511 | return 1; | |
512 | } | |
513 | if (obj == Py_False) { | |
514 | if (val) *val = false; | |
d55e5bfc RD |
515 | return 1; |
516 | } | |
c32bde28 RD |
517 | int res = 0; |
518 | if (SWIG_AsVal_int(obj, &res)) { | |
519 | if (val) *val = (bool)res; | |
520 | return 1; | |
521 | } | |
522 | if (val) { | |
523 | PyErr_SetString(PyExc_TypeError, "a bool is expected"); | |
524 | } | |
525 | return 0; | |
d55e5bfc RD |
526 | } |
527 | ||
528 | ||
529 | SWIGSTATICINLINE(bool) | |
c32bde28 | 530 | SWIG_As_bool(PyObject* obj) |
d55e5bfc | 531 | { |
c32bde28 RD |
532 | bool v; |
533 | if (!SWIG_AsVal_bool(obj, &v)) { | |
534 | /* | |
535 | this is needed to make valgrind/purify happier. the other | |
536 | solution is throw an exception, but since this code should work | |
537 | with plain C .... | |
538 | */ | |
539 | memset((void*)&v, 0, sizeof(bool)); | |
540 | } | |
541 | return v; | |
d55e5bfc RD |
542 | } |
543 | ||
c32bde28 | 544 | |
d55e5bfc | 545 | SWIGSTATICINLINE(int) |
c32bde28 | 546 | SWIG_Check_bool(PyObject* obj) |
d55e5bfc | 547 | { |
c32bde28 | 548 | return SWIG_AsVal_bool(obj, (bool*)0); |
d55e5bfc RD |
549 | } |
550 | ||
551 | ||
c32bde28 | 552 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
d55e5bfc RD |
553 | PyObject* o2; |
554 | PyObject* o3; | |
c32bde28 | 555 | |
d55e5bfc RD |
556 | if (!target) { |
557 | target = o; | |
558 | } else if (target == Py_None) { | |
559 | Py_DECREF(Py_None); | |
560 | target = o; | |
7e63a440 RD |
561 | } else { |
562 | if (!PyTuple_Check(target)) { | |
563 | o2 = target; | |
564 | target = PyTuple_New(1); | |
565 | PyTuple_SetItem(target, 0, o2); | |
566 | } | |
d55e5bfc RD |
567 | o3 = PyTuple_New(1); |
568 | PyTuple_SetItem(o3, 0, o); | |
569 | ||
570 | o2 = target; | |
571 | target = PySequence_Concat(o2, o3); | |
572 | Py_DECREF(o2); | |
573 | Py_DECREF(o3); | |
574 | } | |
575 | return target; | |
7e63a440 | 576 | } |
d55e5bfc RD |
577 | |
578 | ||
c32bde28 RD |
579 | |
580 | // See my_fragments.i | |
581 | SWIGSTATICINLINE(int) | |
582 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
d55e5bfc | 583 | { |
c32bde28 RD |
584 | long v = 0; |
585 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
586 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
587 | return 0; | |
d55e5bfc | 588 | } |
c32bde28 RD |
589 | else if (val) |
590 | *val = (unsigned long)v; | |
591 | return 1; | |
d55e5bfc RD |
592 | } |
593 | ||
594 | ||
c32bde28 RD |
595 | SWIGSTATICINLINE(unsigned long) |
596 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
d55e5bfc | 597 | { |
c32bde28 RD |
598 | unsigned long v; |
599 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
600 | /* | |
601 | this is needed to make valgrind/purify happier. the other | |
602 | solution is throw an exception, but since this code should work | |
603 | with plain C .... | |
604 | */ | |
605 | memset((void*)&v, 0, sizeof(unsigned long)); | |
d55e5bfc | 606 | } |
c32bde28 RD |
607 | return v; |
608 | } | |
609 | ||
610 | ||
611 | SWIGSTATICINLINE(int) | |
612 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
613 | { | |
614 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
d55e5bfc RD |
615 | } |
616 | ||
617 | ||
618 | SWIGSTATICINLINE(PyObject* ) | |
c32bde28 | 619 | SWIG_From_unsigned_SS_long(unsigned long value) |
d55e5bfc RD |
620 | { |
621 | return (value > LONG_MAX) ? | |
622 | PyLong_FromUnsignedLong(value) | |
c32bde28 | 623 | : PyInt_FromLong(swig_numeric_cast(value,long)); |
d55e5bfc RD |
624 | } |
625 | ||
626 | ||
627 | bool wxThread_IsMain() { | |
628 | #ifdef WXP_WITH_THREAD | |
629 | return wxThread::IsMain(); | |
630 | #else | |
ae8162c8 | 631 | return true; |
d55e5bfc RD |
632 | #endif |
633 | } | |
634 | ||
635 | ||
636 | int wxCaret_GetBlinkTime() { | |
637 | return wxCaret::GetBlinkTime(); | |
638 | } | |
639 | ||
640 | void wxCaret_SetBlinkTime(int milliseconds) { | |
641 | wxCaret::SetBlinkTime(milliseconds); | |
642 | } | |
643 | ||
644 | ||
645 | #include <wx/snglinst.h> | |
646 | ||
647 | ||
648 | #ifdef __WXMSW__ | |
649 | #include <wx/msw/private.h> | |
650 | #include <wx/dynload.h> | |
651 | #endif | |
652 | ||
653 | ||
654 | ||
655 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
656 | { | |
657 | #ifdef __WXMSW__ | |
658 | ||
659 | switch (method) | |
660 | { | |
661 | case 1: | |
662 | // This one only partially works. Appears to be an undocumented | |
663 | // "standard" convention that not all widgets adhear to. For | |
664 | // example, for some widgets backgrounds or non-client areas may | |
665 | // not be painted. | |
666 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
667 | break; | |
668 | ||
669 | case 2: | |
670 | // This one works much better, except for on XP. On Win2k nearly | |
671 | // all widgets and their children are captured correctly[**]. On | |
672 | // XP with Themes activated most native widgets draw only | |
673 | // partially, if at all. Without themes it works just like on | |
674 | // Win2k. | |
675 | // | |
676 | // ** For example the radio buttons in a wxRadioBox are not its | |
677 | // children by default, but you can capture it via the panel | |
678 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
679 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
680 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
681 | PRF_ERASEBKGND | PRF_OWNED ); | |
682 | break; | |
683 | ||
684 | case 3: | |
685 | // This one is only defined in the latest SDK and is only | |
686 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
687 | // so I expect that it will work similar to the above. Since it | |
688 | // is avaialble only on XP, it can't be compiled like this and | |
689 | // will have to be loaded dynamically. | |
690 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
691 | ||
692 | // fall through | |
693 | ||
694 | case 4: | |
695 | // Use PrintWindow if available, or fallback to WM_PRINT | |
696 | // otherwise. Unfortunately using PrintWindow is even worse than | |
697 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
698 | // at all, with or without Themes. | |
699 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
ae8162c8 | 700 | static bool s_triedToLoad = false; |
d55e5bfc RD |
701 | static PrintWindow_t pfnPrintWindow = NULL; |
702 | if ( !s_triedToLoad ) | |
703 | { | |
704 | ||
ae8162c8 | 705 | s_triedToLoad = true; |
d55e5bfc RD |
706 | wxDynamicLibrary dllUser32(_T("user32.dll")); |
707 | if ( dllUser32.IsLoaded() ) | |
708 | { | |
709 | wxLogNull nolog; // Don't report errors here | |
710 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
711 | } | |
712 | } | |
713 | if (pfnPrintWindow) | |
714 | { | |
715 | printf("Using PrintWindow\n"); | |
716 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
717 | } | |
718 | else | |
719 | { | |
720 | printf("Using WM_PRINT\n"); | |
721 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
722 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
723 | } | |
724 | } | |
725 | #endif | |
726 | } | |
727 | ||
728 | ||
729 | ||
730 | #include <wx/tipdlg.h> | |
731 | ||
732 | ||
733 | class wxPyTipProvider : public wxTipProvider { | |
734 | public: | |
735 | wxPyTipProvider(size_t currentTip) | |
736 | : wxTipProvider(currentTip) {} | |
737 | ||
738 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
739 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
740 | PYPRIVATE; | |
741 | }; | |
742 | ||
743 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
744 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
745 | ||
746 | ||
747 | //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); | |
748 | ||
1a6bba1e RD |
749 | IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer); |
750 | ||
d55e5bfc RD |
751 | void wxPyTimer::Notify() { |
752 | bool found; | |
753 | bool blocked = wxPyBeginBlockThreads(); | |
754 | if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) | |
755 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); | |
756 | wxPyEndBlockThreads(blocked); | |
757 | if (! found) | |
758 | wxTimer::Notify(); | |
759 | } | |
760 | void wxPyTimer::base_Notify() { | |
761 | wxTimer::Notify(); | |
762 | } | |
763 | ||
764 | ||
765 | ||
766 | SWIGSTATICINLINE(PyObject *) | |
767 | SWIG_FromCharPtr(const char* cptr) | |
768 | { | |
d55e5bfc | 769 | if (cptr) { |
c32bde28 | 770 | size_t size = strlen(cptr); |
d55e5bfc | 771 | if (size > INT_MAX) { |
c32bde28 | 772 | return SWIG_NewPointerObj(swig_const_cast(cptr,char*), |
d55e5bfc RD |
773 | SWIG_TypeQuery("char *"), 0); |
774 | } else { | |
c32bde28 RD |
775 | if (size != 0) { |
776 | return PyString_FromStringAndSize(cptr, size); | |
777 | } else { | |
778 | return PyString_FromString(cptr); | |
779 | } | |
d55e5bfc | 780 | } |
d55e5bfc | 781 | } |
c32bde28 RD |
782 | Py_INCREF(Py_None); |
783 | return Py_None; | |
d55e5bfc RD |
784 | } |
785 | ||
786 | ||
c32bde28 RD |
787 | SWIGSTATICINLINE(int) |
788 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
789 | unsigned long max_value, | |
790 | const char *errmsg) | |
d55e5bfc | 791 | { |
c32bde28 RD |
792 | if (value > max_value) { |
793 | if (errmsg) { | |
794 | PyErr_Format(PyExc_OverflowError, | |
795 | "value %ld is greater than '%s' minimum %ld", | |
796 | value, errmsg, max_value); | |
d55e5bfc | 797 | } |
c32bde28 | 798 | return 0; |
d55e5bfc | 799 | } |
c32bde28 RD |
800 | return 1; |
801 | } | |
d55e5bfc RD |
802 | |
803 | ||
804 | #if UINT_MAX != ULONG_MAX | |
c32bde28 RD |
805 | SWIGSTATICINLINE(int) |
806 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
d55e5bfc | 807 | { |
c32bde28 RD |
808 | const char* errmsg = val ? "unsigned int" : 0; |
809 | unsigned long v; | |
810 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
811 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
812 | if (val) *val = swig_numeric_cast(v, unsigned int); | |
813 | return 1; | |
814 | } | |
815 | } else { | |
816 | PyErr_Clear(); | |
817 | } | |
818 | if (val) { | |
819 | PyErr_SetString(PyExc_TypeError, "an unsigned int is expected"); | |
820 | } | |
821 | return 0; | |
d55e5bfc RD |
822 | } |
823 | #else | |
c32bde28 RD |
824 | SWIGSTATICINLINE(unsigned int) |
825 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
826 | { | |
827 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
828 | } | |
d55e5bfc RD |
829 | #endif |
830 | ||
831 | ||
c32bde28 RD |
832 | SWIGSTATICINLINE(unsigned int) |
833 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
d55e5bfc | 834 | { |
c32bde28 RD |
835 | unsigned int v; |
836 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
837 | /* | |
838 | this is needed to make valgrind/purify happier. the other | |
839 | solution is throw an exception, but since this code should work | |
840 | with plain C .... | |
841 | */ | |
842 | memset((void*)&v, 0, sizeof(unsigned int)); | |
d55e5bfc | 843 | } |
c32bde28 RD |
844 | return v; |
845 | } | |
846 | ||
847 | ||
848 | SWIGSTATICINLINE(int) | |
849 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
850 | { | |
851 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
d55e5bfc RD |
852 | } |
853 | ||
854 | wxString Log_TimeStamp(){ | |
855 | wxString msg; | |
856 | wxLog::TimeStamp(&msg); | |
857 | return msg; | |
858 | } | |
859 | void wxLog_Destroy(wxLog *self){ delete self; } | |
860 | ||
861 | // A wxLog class that can be derived from in wxPython | |
862 | class wxPyLog : public wxLog { | |
863 | public: | |
864 | wxPyLog() : wxLog() {} | |
865 | ||
866 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
867 | bool found; | |
868 | bool blocked = wxPyBeginBlockThreads(); | |
869 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
870 | PyObject* s = wx2PyString(szString); | |
871 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
872 | Py_DECREF(s); | |
873 | } | |
874 | wxPyEndBlockThreads(blocked); | |
875 | if (! found) | |
876 | wxLog::DoLog(level, szString, t); | |
877 | } | |
878 | ||
879 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
880 | bool found; | |
881 | bool blocked = wxPyBeginBlockThreads(); | |
882 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
883 | PyObject* s = wx2PyString(szString); | |
884 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
885 | Py_DECREF(s); | |
886 | } | |
887 | wxPyEndBlockThreads(blocked); | |
888 | if (! found) | |
889 | wxLog::DoLogString(szString, t); | |
890 | } | |
891 | ||
892 | PYPRIVATE; | |
893 | }; | |
894 | ||
895 | ||
896 | ||
897 | ||
898 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
899 | ||
900 | ||
901 | #include <wx/joystick.h> | |
902 | ||
903 | ||
904 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
905 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
906 | class wxJoystick : public wxObject { | |
907 | public: | |
908 | wxJoystick(int joystick = wxJOYSTICK1) { | |
909 | bool blocked = wxPyBeginBlockThreads(); | |
910 | PyErr_SetString(PyExc_NotImplementedError, | |
911 | "wxJoystick is not available on this platform."); | |
912 | wxPyEndBlockThreads(blocked); | |
913 | } | |
914 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
915 | int GetZPosition() { return -1; } | |
916 | int GetButtonState() { return -1; } | |
917 | int GetPOVPosition() { return -1; } | |
918 | int GetPOVCTSPosition() { return -1; } | |
919 | int GetRudderPosition() { return -1; } | |
920 | int GetUPosition() { return -1; } | |
921 | int GetVPosition() { return -1; } | |
922 | int GetMovementThreshold() { return -1; } | |
923 | void SetMovementThreshold(int threshold) {} | |
924 | ||
ae8162c8 | 925 | bool IsOk(void) { return false; } |
d55e5bfc RD |
926 | int GetNumberJoysticks() { return -1; } |
927 | int GetManufacturerId() { return -1; } | |
928 | int GetProductId() { return -1; } | |
79fccf9d | 929 | wxString GetProductName() { return wxEmptyString; } |
d55e5bfc RD |
930 | int GetXMin() { return -1; } |
931 | int GetYMin() { return -1; } | |
932 | int GetZMin() { return -1; } | |
933 | int GetXMax() { return -1; } | |
934 | int GetYMax() { return -1; } | |
935 | int GetZMax() { return -1; } | |
936 | int GetNumberButtons() { return -1; } | |
937 | int GetNumberAxes() { return -1; } | |
938 | int GetMaxButtons() { return -1; } | |
939 | int GetMaxAxes() { return -1; } | |
940 | int GetPollingMin() { return -1; } | |
941 | int GetPollingMax() { return -1; } | |
942 | int GetRudderMin() { return -1; } | |
943 | int GetRudderMax() { return -1; } | |
944 | int GetUMin() { return -1; } | |
945 | int GetUMax() { return -1; } | |
946 | int GetVMin() { return -1; } | |
947 | int GetVMax() { return -1; } | |
948 | ||
ae8162c8 RD |
949 | bool HasRudder() { return false; } |
950 | bool HasZ() { return false; } | |
951 | bool HasU() { return false; } | |
952 | bool HasV() { return false; } | |
953 | bool HasPOV() { return false; } | |
954 | bool HasPOV4Dir() { return false; } | |
955 | bool HasPOVCTS() { return false; } | |
d55e5bfc | 956 | |
ae8162c8 RD |
957 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return false; } |
958 | bool ReleaseCapture() { return false; } | |
d55e5bfc RD |
959 | }; |
960 | #endif | |
961 | ||
962 | ||
963 | #include <wx/sound.h> | |
964 | ||
965 | ||
966 | #if !wxUSE_SOUND | |
967 | // A C++ stub class for wxWave for platforms that don't have it. | |
968 | class wxSound : public wxObject | |
969 | { | |
970 | public: | |
971 | wxSound() { | |
972 | bool blocked = wxPyBeginBlockThreads(); | |
973 | PyErr_SetString(PyExc_NotImplementedError, | |
974 | "wxSound is not available on this platform."); | |
975 | wxPyEndBlockThreads(blocked); | |
976 | } | |
b1f29bf7 | 977 | wxSound(const wxString&/*, bool*/) { |
d55e5bfc RD |
978 | bool blocked = wxPyBeginBlockThreads(); |
979 | PyErr_SetString(PyExc_NotImplementedError, | |
980 | "wxSound is not available on this platform."); | |
981 | wxPyEndBlockThreads(blocked); | |
982 | } | |
983 | wxSound(int, const wxByte*) { | |
984 | bool blocked = wxPyBeginBlockThreads(); | |
985 | PyErr_SetString(PyExc_NotImplementedError, | |
986 | "wxSound is not available on this platform."); | |
987 | wxPyEndBlockThreads(blocked); | |
988 | } | |
989 | ||
990 | ~wxSound() {}; | |
991 | ||
b1f29bf7 | 992 | bool Create(const wxString&/*, bool*/) { return false; } |
d55e5bfc RD |
993 | bool Create(int, const wxByte*) { return false; }; |
994 | bool IsOk() { return false; }; | |
995 | bool Play(unsigned) const { return false; } | |
996 | static bool Play(const wxString&, unsigned) { return false; } | |
997 | static void Stop() {} | |
998 | }; | |
999 | ||
1000 | #endif | |
1001 | ||
b1f29bf7 RD |
1002 | wxSound *new_wxSound(wxString const &fileName){ |
1003 | if (fileName.Length() == 0) | |
1004 | return new wxSound; | |
1005 | else | |
1006 | return new wxSound(fileName); | |
1007 | } | |
1008 | wxSound *new_wxSound(PyObject *data){ | |
1009 | unsigned char* buffer; int size; | |
1010 | wxSound *sound = NULL; | |
1011 | ||
1012 | bool blocked = wxPyBeginBlockThreads(); | |
1013 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1014 | goto done; | |
1015 | sound = new wxSound(size, buffer); | |
1016 | done: | |
1017 | wxPyEndBlockThreads(blocked); | |
1018 | return sound; | |
1019 | } | |
1020 | bool wxSound_CreateFromData(wxSound *self,PyObject *data){ | |
1021 | #ifndef __WXMAC__ | |
1022 | unsigned char* buffer; | |
1023 | int size; | |
ae8162c8 | 1024 | bool rv = false; |
b1f29bf7 RD |
1025 | |
1026 | bool blocked = wxPyBeginBlockThreads(); | |
1027 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1028 | goto done; | |
1029 | rv = self->Create(size, buffer); | |
1030 | done: | |
1031 | wxPyEndBlockThreads(blocked); | |
1032 | return rv; | |
1033 | #else | |
1034 | bool blocked = wxPyBeginBlockThreads(); | |
1035 | PyErr_SetString(PyExc_NotImplementedError, | |
1036 | "Create from data is not available on this platform."); | |
1037 | wxPyEndBlockThreads(blocked); | |
ae8162c8 | 1038 | return false; |
b1f29bf7 RD |
1039 | #endif |
1040 | } | |
d55e5bfc RD |
1041 | |
1042 | #include <wx/mimetype.h> | |
1043 | ||
1044 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
1045 | wxString str; | |
1046 | if (self->GetMimeType(&str)) | |
1047 | return wx2PyString(str); | |
1048 | else | |
1049 | RETURN_NONE(); | |
1050 | } | |
1051 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
1052 | wxArrayString arr; | |
1053 | if (self->GetMimeTypes(arr)) | |
1054 | return wxArrayString2PyList_helper(arr); | |
1055 | else | |
1056 | RETURN_NONE(); | |
1057 | } | |
1058 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
1059 | wxArrayString arr; | |
1060 | if (self->GetExtensions(arr)) | |
1061 | return wxArrayString2PyList_helper(arr); | |
1062 | else | |
1063 | RETURN_NONE(); | |
1064 | } | |
1065 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
1066 | wxIconLocation loc; | |
1067 | if (self->GetIcon(&loc)) | |
1068 | return new wxIcon(loc); | |
1069 | else | |
1070 | return NULL; | |
1071 | } | |
1072 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
1073 | wxIconLocation loc; | |
1074 | if (self->GetIcon(&loc)) { | |
1075 | wxString iconFile = loc.GetFileName(); | |
1076 | int iconIndex = -1; | |
1077 | ||
1078 | iconIndex = loc.GetIndex(); | |
1079 | ||
1080 | // Make a tuple and put the values in it | |
1081 | bool blocked = wxPyBeginBlockThreads(); | |
1082 | PyObject* tuple = PyTuple_New(3); | |
1083 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
ae8162c8 | 1084 | wxT("wxIcon"), true)); |
d55e5bfc RD |
1085 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); |
1086 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
1087 | wxPyEndBlockThreads(blocked); | |
1088 | return tuple; | |
1089 | } | |
1090 | else | |
1091 | RETURN_NONE(); | |
1092 | } | |
1093 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
1094 | wxString str; | |
1095 | if (self->GetDescription(&str)) | |
1096 | return wx2PyString(str); | |
1097 | else | |
1098 | RETURN_NONE(); | |
1099 | } | |
1100 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
1101 | wxString str; | |
1102 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
1103 | return wx2PyString(str); | |
1104 | else | |
1105 | RETURN_NONE(); | |
1106 | } | |
1107 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
1108 | wxString str; | |
1109 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
1110 | return wx2PyString(str); | |
1111 | else | |
1112 | RETURN_NONE(); | |
1113 | } | |
1114 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
1115 | wxArrayString verbs; | |
1116 | wxArrayString commands; | |
1117 | if (self->GetAllCommands(&verbs, &commands, | |
1118 | wxFileType::MessageParameters(filename, mimetype))) { | |
1119 | bool blocked = wxPyBeginBlockThreads(); | |
1120 | PyObject* tuple = PyTuple_New(2); | |
1121 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
1122 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
1123 | wxPyEndBlockThreads(blocked); | |
1124 | return tuple; | |
1125 | } | |
1126 | else | |
1127 | RETURN_NONE(); | |
1128 | } | |
1129 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
1130 | return wxFileType::ExpandCommand(command, | |
1131 | wxFileType::MessageParameters(filename, mimetype)); | |
1132 | } | |
1133 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
1134 | wxArrayString arr; | |
1135 | self->EnumAllFileTypes(arr); | |
1136 | return wxArrayString2PyList_helper(arr); | |
1137 | } | |
1138 | ||
1139 | #include <wx/artprov.h> | |
1140 | ||
1141 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
1142 | static const wxString wxPyART_MENU(wxART_MENU); | |
1143 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
1144 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
1145 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
1146 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
4cf4100f | 1147 | static const wxString wxPyART_BUTTON(wxART_BUTTON); |
d55e5bfc RD |
1148 | static const wxString wxPyART_OTHER(wxART_OTHER); |
1149 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
1150 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
1151 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
1152 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
1153 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
1154 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
1155 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
1156 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
1157 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
1158 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
1159 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
1160 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
1161 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
1162 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
1163 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
1164 | static const wxString wxPyART_HELP(wxART_HELP); | |
1165 | static const wxString wxPyART_TIP(wxART_TIP); | |
1166 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
1167 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
1168 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
1169 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
1170 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
1171 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
1172 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
1173 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
1174 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
1175 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
1176 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
1177 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
1178 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
1179 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
1180 | // Python aware wxArtProvider | |
1181 | class wxPyArtProvider : public wxArtProvider { | |
1182 | public: | |
1183 | ||
1184 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
1185 | const wxArtClient& client, | |
1186 | const wxSize& size) { | |
1187 | wxBitmap rval = wxNullBitmap; | |
1188 | bool blocked = wxPyBeginBlockThreads(); | |
1189 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
1190 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
1191 | PyObject* ro; | |
1192 | wxBitmap* ptr; | |
1193 | PyObject* s1, *s2; | |
1194 | s1 = wx2PyString(id); | |
1195 | s2 = wx2PyString(client); | |
1196 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
1197 | Py_DECREF(so); | |
1198 | Py_DECREF(s1); | |
1199 | Py_DECREF(s2); | |
1200 | if (ro) { | |
1201 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
1202 | rval = *ptr; | |
1203 | Py_DECREF(ro); | |
1204 | } | |
1205 | } | |
1206 | wxPyEndBlockThreads(blocked); | |
1207 | return rval; | |
1208 | } | |
1209 | ||
1210 | PYPRIVATE; | |
1211 | }; | |
1212 | ||
1213 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } | |
1214 | ||
1215 | ||
1216 | ||
1217 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
1218 | PyObject* ret = PyTuple_New(3); | |
1219 | if (ret) { | |
1220 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
1221 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
1222 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
1223 | } | |
1224 | return ret; | |
1225 | } | |
1226 | ||
1227 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
1228 | bool cont; | |
1229 | long index = 0; | |
1230 | wxString value; | |
1231 | ||
1232 | cont = self->GetFirstGroup(value, index); | |
1233 | return __EnumerationHelper(cont, value, index); | |
1234 | } | |
1235 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
1236 | bool cont; | |
1237 | wxString value; | |
1238 | ||
1239 | cont = self->GetNextGroup(value, index); | |
1240 | return __EnumerationHelper(cont, value, index); | |
1241 | } | |
1242 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
1243 | bool cont; | |
1244 | long index = 0; | |
1245 | wxString value; | |
1246 | ||
1247 | cont = self->GetFirstEntry(value, index); | |
1248 | return __EnumerationHelper(cont, value, index); | |
1249 | } | |
1250 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
1251 | bool cont; | |
1252 | wxString value; | |
1253 | ||
1254 | cont = self->GetNextEntry(value, index); | |
1255 | return __EnumerationHelper(cont, value, index); | |
1256 | } | |
1257 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
1258 | long rv; | |
1259 | self->Read(key, &rv, defaultVal); | |
1260 | return rv; | |
1261 | } | |
1262 | ||
c32bde28 RD |
1263 | // See my_fragments.i |
1264 | SWIGSTATICINLINE(int) | |
1265 | SWIG_AsVal_double(PyObject *obj, double* val) | |
d55e5bfc | 1266 | { |
c32bde28 RD |
1267 | if (PyNumber_Check(obj)) { |
1268 | if (val) *val = PyFloat_AsDouble(obj); | |
1269 | return 1; | |
1270 | } | |
d55e5bfc RD |
1271 | else { |
1272 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
1273 | obj->ob_type->tp_name); | |
1274 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
1275 | Py_DECREF(errmsg); | |
d55e5bfc | 1276 | } |
c32bde28 | 1277 | return 0; |
d55e5bfc RD |
1278 | } |
1279 | ||
1280 | ||
c32bde28 RD |
1281 | SWIGSTATICINLINE(double) |
1282 | SWIG_As_double(PyObject* obj) | |
d55e5bfc | 1283 | { |
c32bde28 RD |
1284 | double v; |
1285 | if (!SWIG_AsVal_double(obj, &v)) { | |
1286 | /* | |
1287 | this is needed to make valgrind/purify happier. the other | |
1288 | solution is throw an exception, but since this code should work | |
1289 | with plain C .... | |
1290 | */ | |
1291 | memset((void*)&v, 0, sizeof(double)); | |
d55e5bfc | 1292 | } |
c32bde28 RD |
1293 | return v; |
1294 | } | |
1295 | ||
1296 | ||
1297 | SWIGSTATICINLINE(int) | |
1298 | SWIG_Check_double(PyObject* obj) | |
1299 | { | |
1300 | return SWIG_AsVal_double(obj, (double*)0); | |
d55e5bfc RD |
1301 | } |
1302 | ||
1303 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ | |
1304 | double rv; | |
1305 | self->Read(key, &rv, defaultVal); | |
1306 | return rv; | |
1307 | } | |
1308 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
1309 | bool rv; | |
1310 | self->Read(key, &rv, defaultVal); | |
1311 | return rv; | |
1312 | } | |
1313 | ||
1314 | #include <wx/datetime.h> | |
1315 | ||
1316 | ||
1317 | static const wxString wxPyDateFormatStr(wxT("%c")); | |
1318 | static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); | |
1319 | ||
1320 | #define LOCAL_TZ wxDateTime::Local | |
1321 | ||
1322 | ||
1323 | #if UINT_MAX < LONG_MAX | |
c32bde28 RD |
1324 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
1325 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
1326 | /*@@*/ | |
d55e5bfc | 1327 | #else |
c32bde28 RD |
1328 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
1329 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
1330 | /*@@*/ | |
d55e5bfc RD |
1331 | #endif |
1332 | ||
1333 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } | |
1334 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
1335 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
1336 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
1337 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
1338 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ | |
1339 | if (!other || !self->IsValid() || !other->IsValid()) return self < other; | |
1340 | return (*self < *other); | |
1341 | } | |
1342 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ | |
1343 | if (!other || !self->IsValid() || !other->IsValid()) return self <= other; | |
1344 | return (*self <= *other); | |
1345 | } | |
1346 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ | |
1347 | if (!other || !self->IsValid() || !other->IsValid()) return self > other; | |
1348 | return (*self > *other); | |
1349 | } | |
1350 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ | |
1351 | if (!other || !self->IsValid() || !other->IsValid()) return self >= other; | |
1352 | return (*self >= *other); | |
1353 | } | |
1354 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ | |
1355 | if (!other || !self->IsValid() || !other->IsValid()) return self == other; | |
1356 | return (*self == *other); | |
1357 | } | |
1358 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ | |
1359 | if (!other || !self->IsValid() || !other->IsValid()) return self != other; | |
1360 | return (*self != *other); | |
1361 | } | |
1362 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ | |
1363 | const wxChar* rv; | |
1364 | const wxChar* _date = date; | |
1365 | rv = self->ParseRfc822Date(_date); | |
1366 | if (rv == NULL) return -1; | |
1367 | return rv - _date; | |
1368 | } | |
1369 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
1370 | const wxChar* rv; | |
1371 | const wxChar* _date = date; | |
1372 | rv = self->ParseFormat(_date, format, dateDef); | |
1373 | if (rv == NULL) return -1; | |
1374 | return rv - _date; | |
1375 | } | |
1376 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
1377 | const wxChar* rv; | |
1378 | const wxChar* _datetime = datetime; | |
1379 | rv = self->ParseDateTime(_datetime); | |
1380 | if (rv == NULL) return -1; | |
1381 | return rv - _datetime; | |
1382 | } | |
1383 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
1384 | const wxChar* rv; | |
1385 | const wxChar* _date = date; | |
1386 | rv = self->ParseDate(_date); | |
1387 | if (rv == NULL) return -1; | |
1388 | return rv - _date; | |
1389 | } | |
1390 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
1391 | const wxChar* rv; | |
1392 | const wxChar* _time = time; | |
1393 | rv = self->ParseTime(_time); | |
1394 | if (rv == NULL) return -1; | |
1395 | return rv - _time; | |
1396 | } | |
1397 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
1398 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
1399 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
1400 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
ae8162c8 RD |
1401 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : false; } |
1402 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : false; } | |
1403 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : true; } | |
1404 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : true; } | |
1405 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : false; } | |
1406 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc RD |
1407 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } |
1408 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
1409 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
1410 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
ae8162c8 RD |
1411 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : false; } |
1412 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc RD |
1413 | |
1414 | #include <wx/dataobj.h> | |
1415 | ||
a07a67e6 RD |
1416 | PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){ |
1417 | size_t count = self->GetFormatCount(dir); | |
1418 | wxDataFormat* formats = new wxDataFormat[count]; | |
1419 | self->GetAllFormats(formats, dir); | |
1420 | ||
1421 | bool blocked = wxPyBeginBlockThreads(); | |
1422 | PyObject* list = PyList_New(count); | |
1423 | for (size_t i=0; i<count; i++) { | |
1424 | wxDataFormat* format = new wxDataFormat(formats[i]); | |
ae8162c8 | 1425 | PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), true); |
a07a67e6 RD |
1426 | PyList_Append(list, obj); |
1427 | Py_DECREF(obj); | |
1428 | } | |
1429 | wxPyEndBlockThreads(blocked); | |
1430 | delete [] formats; | |
1431 | return list; | |
1432 | } | |
1433 | PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){ | |
1434 | PyObject* rval = NULL; | |
1435 | size_t size = self->GetDataSize(format); | |
1436 | bool blocked = wxPyBeginBlockThreads(); | |
1437 | if (size) { | |
1438 | char* buf = new char[size]; | |
1439 | if (self->GetDataHere(format, buf)) | |
1440 | rval = PyString_FromStringAndSize(buf, size); | |
1441 | delete [] buf; | |
1442 | } | |
1443 | if (! rval) { | |
1444 | rval = Py_None; | |
1445 | Py_INCREF(rval); | |
1446 | } | |
1447 | wxPyEndBlockThreads(blocked); | |
1448 | return rval; | |
1449 | } | |
1450 | bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){ | |
1451 | bool rval; | |
1452 | bool blocked = wxPyBeginBlockThreads(); | |
1453 | if (PyString_Check(data)) { | |
1454 | rval = self->SetData(format, PyString_Size(data), PyString_AsString(data)); | |
1455 | } | |
1456 | else { | |
1457 | // raise a TypeError if not a string | |
1458 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
ae8162c8 | 1459 | rval = false; |
a07a67e6 RD |
1460 | } |
1461 | wxPyEndBlockThreads(blocked); | |
1462 | return rval; | |
1463 | } | |
1464 | PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){ | |
1465 | PyObject* rval = NULL; | |
1466 | size_t size = self->GetDataSize(); | |
1467 | bool blocked = wxPyBeginBlockThreads(); | |
1468 | if (size) { | |
1469 | char* buf = new char[size]; | |
1470 | if (self->GetDataHere(buf)) | |
1471 | rval = PyString_FromStringAndSize(buf, size); | |
1472 | delete [] buf; | |
1473 | } | |
1474 | if (! rval) { | |
1475 | rval = Py_None; | |
1476 | Py_INCREF(rval); | |
1477 | } | |
1478 | wxPyEndBlockThreads(blocked); | |
1479 | return rval; | |
1480 | } | |
1481 | bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){ | |
1482 | bool rval; | |
1483 | bool blocked = wxPyBeginBlockThreads(); | |
1484 | if (PyString_Check(data)) { | |
1485 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1486 | } | |
1487 | else { | |
1488 | // raise a TypeError if not a string | |
1489 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
ae8162c8 | 1490 | rval = false; |
a07a67e6 RD |
1491 | } |
1492 | wxPyEndBlockThreads(blocked); | |
1493 | return rval; | |
1494 | } | |
d55e5bfc RD |
1495 | // Create a new class for wxPython to use |
1496 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1497 | public: | |
1498 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1499 | : wxDataObjectSimple(format) {} | |
1500 | ||
1501 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1502 | bool GetDataHere(void *buf) const; | |
1503 | bool SetData(size_t len, const void *buf) const; | |
1504 | PYPRIVATE; | |
1505 | }; | |
1506 | ||
1507 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1508 | ||
1509 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1510 | // We need to get the data for this object and write it to buf. I think | |
1511 | // the best way to do this for wxPython is to have the Python method | |
1512 | // return either a string or None and then act appropriately with the | |
1513 | // C++ version. | |
1514 | ||
ae8162c8 | 1515 | bool rval = false; |
d55e5bfc RD |
1516 | bool blocked = wxPyBeginBlockThreads(); |
1517 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { | |
1518 | PyObject* ro; | |
1519 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1520 | if (ro) { | |
1521 | rval = (ro != Py_None && PyString_Check(ro)); | |
1522 | if (rval) | |
1523 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1524 | Py_DECREF(ro); | |
1525 | } | |
1526 | } | |
1527 | wxPyEndBlockThreads(blocked); | |
1528 | return rval; | |
1529 | } | |
1530 | ||
1531 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1532 | // For this one we simply need to make a string from buf and len | |
1533 | // and send it to the Python method. | |
ae8162c8 | 1534 | bool rval = false; |
d55e5bfc RD |
1535 | bool blocked = wxPyBeginBlockThreads(); |
1536 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { | |
1537 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1538 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1539 | Py_DECREF(data); | |
1540 | } | |
1541 | wxPyEndBlockThreads(blocked); | |
1542 | return rval; | |
1543 | } | |
1544 | ||
1545 | // Create a new class for wxPython to use | |
1546 | class wxPyTextDataObject : public wxTextDataObject { | |
1547 | public: | |
1548 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1549 | : wxTextDataObject(text) {} | |
1550 | ||
1551 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1552 | DEC_PYCALLBACK_STRING__const(GetText); | |
1553 | DEC_PYCALLBACK__STRING(SetText); | |
1554 | PYPRIVATE; | |
1555 | }; | |
1556 | ||
1557 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1558 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1559 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1560 | ||
1561 | ||
1562 | // Create a new class for wxPython to use | |
1563 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1564 | public: | |
1565 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1566 | : wxBitmapDataObject(bitmap) {} | |
1567 | ||
1568 | wxBitmap GetBitmap() const; | |
1569 | void SetBitmap(const wxBitmap& bitmap); | |
1570 | PYPRIVATE; | |
1571 | }; | |
1572 | ||
1573 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1574 | wxBitmap* rval = &wxNullBitmap; | |
1575 | bool blocked = wxPyBeginBlockThreads(); | |
1576 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { | |
1577 | PyObject* ro; | |
1578 | wxBitmap* ptr; | |
1579 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1580 | if (ro) { | |
1581 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1582 | rval = ptr; | |
1583 | Py_DECREF(ro); | |
1584 | } | |
1585 | } | |
1586 | wxPyEndBlockThreads(blocked); | |
1587 | return *rval; | |
1588 | } | |
a07a67e6 | 1589 | |
d55e5bfc RD |
1590 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { |
1591 | bool blocked = wxPyBeginBlockThreads(); | |
1592 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
ae8162c8 | 1593 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), false); |
d55e5bfc RD |
1594 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); |
1595 | Py_DECREF(bo); | |
1596 | } | |
1597 | wxPyEndBlockThreads(blocked); | |
1598 | } | |
1599 | ||
d55e5bfc | 1600 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ |
a07a67e6 RD |
1601 | bool rval; |
1602 | bool blocked = wxPyBeginBlockThreads(); | |
d55e5bfc | 1603 | if (PyString_Check(data)) { |
a07a67e6 | 1604 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); |
d55e5bfc RD |
1605 | } |
1606 | else { | |
1607 | // raise a TypeError if not a string | |
1608 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
ae8162c8 | 1609 | rval = false; |
d55e5bfc | 1610 | } |
a07a67e6 RD |
1611 | wxPyEndBlockThreads(blocked); |
1612 | return rval; | |
d55e5bfc RD |
1613 | } |
1614 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
a07a67e6 RD |
1615 | PyObject* obj; |
1616 | bool blocked = wxPyBeginBlockThreads(); | |
1617 | obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
1618 | wxPyEndBlockThreads(blocked); | |
1619 | return obj; | |
d55e5bfc RD |
1620 | } |
1621 | ||
1622 | #include <wx/metafile.h> | |
1623 | ||
1624 | ||
1625 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); | |
1626 | ||
1627 | ||
1628 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); | |
1629 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1630 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1631 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1632 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1633 | ||
1634 | ||
1635 | class wxPyTextDropTarget : public wxTextDropTarget { | |
1636 | public: | |
1637 | wxPyTextDropTarget() {} | |
1638 | ||
1639 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1640 | ||
1641 | DEC_PYCALLBACK__(OnLeave); | |
1642 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1643 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1644 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1645 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1646 | ||
1647 | PYPRIVATE; | |
1648 | }; | |
1649 | ||
1650 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1651 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1652 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1653 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1654 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1655 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1656 | ||
1657 | ||
1658 | ||
1659 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1660 | public: | |
1661 | wxPyFileDropTarget() {} | |
1662 | ||
1663 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1664 | ||
1665 | DEC_PYCALLBACK__(OnLeave); | |
1666 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1667 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1668 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1669 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1670 | ||
1671 | PYPRIVATE; | |
1672 | }; | |
1673 | ||
1674 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1675 | const wxArrayString& filenames) { | |
ae8162c8 | 1676 | bool rval = false; |
d55e5bfc RD |
1677 | bool blocked = wxPyBeginBlockThreads(); |
1678 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
1679 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1680 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1681 | Py_DECREF(list); | |
1682 | } | |
1683 | wxPyEndBlockThreads(blocked); | |
1684 | return rval; | |
1685 | } | |
1686 | ||
1687 | ||
1688 | ||
1689 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1690 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1691 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1692 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1693 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1694 | ||
1695 | ||
1696 | ||
1697 | ||
1698 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
1699 | ||
6923d0a9 | 1700 | #include <wx/display.h> |
d55e5bfc | 1701 | |
ae8162c8 RD |
1702 | bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : false; } |
1703 | bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : true; } | |
6923d0a9 RD |
1704 | |
1705 | // dummy version of wxDisplay for when it is not enabled in the wxWidgets build | |
1706 | #if !wxUSE_DISPLAY | |
1707 | #include <wx/dynarray.h> | |
1708 | #include <wx/vidmode.h> | |
1709 | ||
1710 | WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes); | |
1711 | #include "wx/arrimpl.cpp" | |
1712 | WX_DEFINE_OBJARRAY(wxArrayVideoModes); | |
1713 | const wxVideoMode wxDefaultVideoMode; | |
1714 | ||
1715 | class wxDisplay | |
1716 | { | |
1717 | public: | |
1718 | wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); } | |
1719 | ~wxDisplay() {} | |
1720 | ||
1721 | static size_t GetCount() | |
1722 | { wxPyRaiseNotImplemented(); return 0; } | |
1723 | ||
1724 | static int GetFromPoint(const wxPoint& pt) | |
1725 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1726 | static int GetFromWindow(wxWindow *window) | |
1727 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1728 | ||
1729 | virtual bool IsOk() const { return false; } | |
1730 | virtual wxRect GetGeometry() const { wxRect r; return r; } | |
1731 | virtual wxString GetName() const { return wxEmptyString; } | |
1732 | bool IsPrimary() const { return false; } | |
1733 | ||
1734 | wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode) | |
1735 | { wxArrayVideoModes a; return a; } | |
1736 | ||
1737 | virtual wxVideoMode GetCurrentMode() const | |
1738 | { return wxDefaultVideoMode; } | |
1739 | ||
1740 | virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode) | |
1741 | { return false; } | |
1742 | ||
1743 | void ResetMode() {} | |
1744 | }; | |
1745 | #endif | |
1746 | ||
d55e5bfc RD |
1747 | PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){ |
1748 | PyObject* pyList = NULL; | |
1749 | wxArrayVideoModes arr = self->GetModes(mode); | |
1750 | bool blocked = wxPyBeginBlockThreads(); | |
1751 | pyList = PyList_New(0); | |
1752 | for (int i=0; i < arr.GetCount(); i++) { | |
1753 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
1754 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
1755 | PyList_Append(pyList, pyObj); | |
a07a67e6 | 1756 | Py_DECREF(pyObj); |
d55e5bfc RD |
1757 | } |
1758 | wxPyEndBlockThreads(blocked); | |
1759 | return pyList; | |
1760 | } | |
c1cb24a4 RD |
1761 | |
1762 | #include <wx/stdpaths.h> | |
1763 | ||
8fb0e70a RD |
1764 | wxStandardPaths *StandardPaths_Get(){ |
1765 | return (wxStandardPaths*) &wxStandardPaths::Get(); | |
1766 | } | |
c1cb24a4 RD |
1767 | void wxStandardPaths_SetInstallPrefix(wxStandardPaths *self,wxString const &prefix){} |
1768 | wxString wxStandardPaths_GetInstallPrefix(wxStandardPaths *self){ return wxEmptyString; } | |
d55e5bfc RD |
1769 | #ifdef __cplusplus |
1770 | extern "C" { | |
1771 | #endif | |
c32bde28 | 1772 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1773 | PyObject *resultobj; |
1774 | int arg1 ; | |
1775 | wxColour result; | |
1776 | PyObject * obj0 = 0 ; | |
1777 | char *kwnames[] = { | |
1778 | (char *) "index", NULL | |
1779 | }; | |
1780 | ||
1781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; | |
c32bde28 | 1782 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1783 | if (PyErr_Occurred()) SWIG_fail; |
1784 | { | |
0439c23b | 1785 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1787 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1788 | ||
1789 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1790 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1791 | } |
1792 | { | |
1793 | wxColour * resultptr; | |
1794 | resultptr = new wxColour((wxColour &) result); | |
1795 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
1796 | } | |
1797 | return resultobj; | |
1798 | fail: | |
1799 | return NULL; | |
1800 | } | |
1801 | ||
1802 | ||
c32bde28 | 1803 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1804 | PyObject *resultobj; |
1805 | int arg1 ; | |
1806 | wxFont result; | |
1807 | PyObject * obj0 = 0 ; | |
1808 | char *kwnames[] = { | |
1809 | (char *) "index", NULL | |
1810 | }; | |
1811 | ||
1812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; | |
c32bde28 | 1813 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1814 | if (PyErr_Occurred()) SWIG_fail; |
1815 | { | |
0439c23b | 1816 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1818 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1819 | ||
1820 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1821 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1822 | } |
1823 | { | |
1824 | wxFont * resultptr; | |
1825 | resultptr = new wxFont((wxFont &) result); | |
1826 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
1827 | } | |
1828 | return resultobj; | |
1829 | fail: | |
1830 | return NULL; | |
1831 | } | |
1832 | ||
1833 | ||
c32bde28 | 1834 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1835 | PyObject *resultobj; |
1836 | int arg1 ; | |
1837 | int result; | |
1838 | PyObject * obj0 = 0 ; | |
1839 | char *kwnames[] = { | |
1840 | (char *) "index", NULL | |
1841 | }; | |
1842 | ||
1843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; | |
c32bde28 | 1844 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1845 | if (PyErr_Occurred()) SWIG_fail; |
1846 | { | |
0439c23b | 1847 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1849 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1850 | ||
1851 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1852 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1853 | } |
c32bde28 | 1854 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
1855 | return resultobj; |
1856 | fail: | |
1857 | return NULL; | |
1858 | } | |
1859 | ||
1860 | ||
c32bde28 | 1861 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1862 | PyObject *resultobj; |
1863 | int arg1 ; | |
1864 | bool result; | |
1865 | PyObject * obj0 = 0 ; | |
1866 | char *kwnames[] = { | |
1867 | (char *) "index", NULL | |
1868 | }; | |
1869 | ||
1870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; | |
c32bde28 | 1871 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1872 | if (PyErr_Occurred()) SWIG_fail; |
1873 | { | |
0439c23b | 1874 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1876 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1877 | ||
1878 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1879 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1880 | } |
1881 | { | |
1882 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1883 | } | |
1884 | return resultobj; | |
1885 | fail: | |
1886 | return NULL; | |
1887 | } | |
1888 | ||
1889 | ||
c32bde28 | 1890 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1891 | PyObject *resultobj; |
1892 | int result; | |
1893 | char *kwnames[] = { | |
1894 | NULL | |
1895 | }; | |
1896 | ||
1897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1898 | { | |
0439c23b | 1899 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1901 | result = (int)wxSystemSettings::GetScreenType(); | |
1902 | ||
1903 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1904 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1905 | } |
c32bde28 | 1906 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
1907 | return resultobj; |
1908 | fail: | |
1909 | return NULL; | |
1910 | } | |
1911 | ||
1912 | ||
c32bde28 | 1913 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1914 | PyObject *resultobj; |
1915 | int arg1 ; | |
1916 | PyObject * obj0 = 0 ; | |
1917 | char *kwnames[] = { | |
1918 | (char *) "screen", NULL | |
1919 | }; | |
1920 | ||
1921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; | |
c32bde28 | 1922 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1923 | if (PyErr_Occurred()) SWIG_fail; |
1924 | { | |
0439c23b | 1925 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1927 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1928 | ||
1929 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1930 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1931 | } |
1932 | Py_INCREF(Py_None); resultobj = Py_None; | |
1933 | return resultobj; | |
1934 | fail: | |
1935 | return NULL; | |
1936 | } | |
1937 | ||
1938 | ||
c32bde28 | 1939 | static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
1940 | PyObject *obj; |
1941 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1942 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1943 | Py_INCREF(obj); | |
1944 | return Py_BuildValue((char *)""); | |
1945 | } | |
7e63a440 RD |
1946 | static int _wrap_WINDOW_DEFAULT_VARIANT_set(PyObject *) { |
1947 | PyErr_SetString(PyExc_TypeError,"Variable WINDOW_DEFAULT_VARIANT is read-only."); | |
1948 | return 1; | |
1949 | } | |
1950 | ||
1951 | ||
1952 | static PyObject *_wrap_WINDOW_DEFAULT_VARIANT_get() { | |
1953 | PyObject *pyobj; | |
1954 | ||
1955 | { | |
1956 | #if wxUSE_UNICODE | |
1957 | pyobj = PyUnicode_FromWideChar((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len()); | |
1958 | #else | |
1959 | pyobj = PyString_FromStringAndSize((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len()); | |
1960 | #endif | |
1961 | } | |
1962 | return pyobj; | |
1963 | } | |
1964 | ||
1965 | ||
c32bde28 | 1966 | static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1967 | PyObject *resultobj; |
1968 | wxSystemOptions *result; | |
1969 | char *kwnames[] = { | |
1970 | NULL | |
1971 | }; | |
1972 | ||
1973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1974 | { | |
1975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1976 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1977 | ||
1978 | wxPyEndAllowThreads(__tstate); | |
1979 | if (PyErr_Occurred()) SWIG_fail; | |
1980 | } | |
1981 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); | |
1982 | return resultobj; | |
1983 | fail: | |
1984 | return NULL; | |
1985 | } | |
1986 | ||
1987 | ||
c32bde28 | 1988 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1989 | PyObject *resultobj; |
1990 | wxString *arg1 = 0 ; | |
1991 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
1992 | bool temp1 = false ; |
1993 | bool temp2 = false ; | |
d55e5bfc RD |
1994 | PyObject * obj0 = 0 ; |
1995 | PyObject * obj1 = 0 ; | |
1996 | char *kwnames[] = { | |
1997 | (char *) "name",(char *) "value", NULL | |
1998 | }; | |
1999 | ||
2000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
2001 | { | |
2002 | arg1 = wxString_in_helper(obj0); | |
2003 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2004 | temp1 = true; |
d55e5bfc RD |
2005 | } |
2006 | { | |
2007 | arg2 = wxString_in_helper(obj1); | |
2008 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 2009 | temp2 = true; |
d55e5bfc RD |
2010 | } |
2011 | { | |
2012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2013 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
2014 | ||
2015 | wxPyEndAllowThreads(__tstate); | |
2016 | if (PyErr_Occurred()) SWIG_fail; | |
2017 | } | |
2018 | Py_INCREF(Py_None); resultobj = Py_None; | |
2019 | { | |
2020 | if (temp1) | |
2021 | delete arg1; | |
2022 | } | |
2023 | { | |
2024 | if (temp2) | |
2025 | delete arg2; | |
2026 | } | |
2027 | return resultobj; | |
2028 | fail: | |
2029 | { | |
2030 | if (temp1) | |
2031 | delete arg1; | |
2032 | } | |
2033 | { | |
2034 | if (temp2) | |
2035 | delete arg2; | |
2036 | } | |
2037 | return NULL; | |
2038 | } | |
2039 | ||
2040 | ||
c32bde28 | 2041 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2042 | PyObject *resultobj; |
2043 | wxString *arg1 = 0 ; | |
2044 | int arg2 ; | |
ae8162c8 | 2045 | bool temp1 = false ; |
d55e5bfc RD |
2046 | PyObject * obj0 = 0 ; |
2047 | PyObject * obj1 = 0 ; | |
2048 | char *kwnames[] = { | |
2049 | (char *) "name",(char *) "value", NULL | |
2050 | }; | |
2051 | ||
2052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
2053 | { | |
2054 | arg1 = wxString_in_helper(obj0); | |
2055 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2056 | temp1 = true; |
d55e5bfc | 2057 | } |
c32bde28 | 2058 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2059 | if (PyErr_Occurred()) SWIG_fail; |
2060 | { | |
2061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2062 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
2063 | ||
2064 | wxPyEndAllowThreads(__tstate); | |
2065 | if (PyErr_Occurred()) SWIG_fail; | |
2066 | } | |
2067 | Py_INCREF(Py_None); resultobj = Py_None; | |
2068 | { | |
2069 | if (temp1) | |
2070 | delete arg1; | |
2071 | } | |
2072 | return resultobj; | |
2073 | fail: | |
2074 | { | |
2075 | if (temp1) | |
2076 | delete arg1; | |
2077 | } | |
2078 | return NULL; | |
2079 | } | |
2080 | ||
2081 | ||
c32bde28 | 2082 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2083 | PyObject *resultobj; |
2084 | wxString *arg1 = 0 ; | |
2085 | wxString result; | |
ae8162c8 | 2086 | bool temp1 = false ; |
d55e5bfc RD |
2087 | PyObject * obj0 = 0 ; |
2088 | char *kwnames[] = { | |
2089 | (char *) "name", NULL | |
2090 | }; | |
2091 | ||
2092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
2093 | { | |
2094 | arg1 = wxString_in_helper(obj0); | |
2095 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2096 | temp1 = true; |
d55e5bfc RD |
2097 | } |
2098 | { | |
2099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2100 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
2101 | ||
2102 | wxPyEndAllowThreads(__tstate); | |
2103 | if (PyErr_Occurred()) SWIG_fail; | |
2104 | } | |
2105 | { | |
2106 | #if wxUSE_UNICODE | |
2107 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2108 | #else | |
2109 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2110 | #endif | |
2111 | } | |
2112 | { | |
2113 | if (temp1) | |
2114 | delete arg1; | |
2115 | } | |
2116 | return resultobj; | |
2117 | fail: | |
2118 | { | |
2119 | if (temp1) | |
2120 | delete arg1; | |
2121 | } | |
2122 | return NULL; | |
2123 | } | |
2124 | ||
2125 | ||
c32bde28 | 2126 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2127 | PyObject *resultobj; |
2128 | wxString *arg1 = 0 ; | |
2129 | int result; | |
ae8162c8 | 2130 | bool temp1 = false ; |
d55e5bfc RD |
2131 | PyObject * obj0 = 0 ; |
2132 | char *kwnames[] = { | |
2133 | (char *) "name", NULL | |
2134 | }; | |
2135 | ||
2136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
2137 | { | |
2138 | arg1 = wxString_in_helper(obj0); | |
2139 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2140 | temp1 = true; |
d55e5bfc RD |
2141 | } |
2142 | { | |
2143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2144 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
2145 | ||
2146 | wxPyEndAllowThreads(__tstate); | |
2147 | if (PyErr_Occurred()) SWIG_fail; | |
2148 | } | |
c32bde28 | 2149 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2150 | { |
2151 | if (temp1) | |
2152 | delete arg1; | |
2153 | } | |
2154 | return resultobj; | |
2155 | fail: | |
2156 | { | |
2157 | if (temp1) | |
2158 | delete arg1; | |
2159 | } | |
2160 | return NULL; | |
2161 | } | |
2162 | ||
2163 | ||
c32bde28 | 2164 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2165 | PyObject *resultobj; |
2166 | wxString *arg1 = 0 ; | |
2167 | bool result; | |
ae8162c8 | 2168 | bool temp1 = false ; |
d55e5bfc RD |
2169 | PyObject * obj0 = 0 ; |
2170 | char *kwnames[] = { | |
2171 | (char *) "name", NULL | |
2172 | }; | |
2173 | ||
2174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
2175 | { | |
2176 | arg1 = wxString_in_helper(obj0); | |
2177 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2178 | temp1 = true; |
d55e5bfc RD |
2179 | } |
2180 | { | |
2181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2182 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
2183 | ||
2184 | wxPyEndAllowThreads(__tstate); | |
2185 | if (PyErr_Occurred()) SWIG_fail; | |
2186 | } | |
2187 | { | |
2188 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2189 | } | |
2190 | { | |
2191 | if (temp1) | |
2192 | delete arg1; | |
2193 | } | |
2194 | return resultobj; | |
2195 | fail: | |
2196 | { | |
2197 | if (temp1) | |
2198 | delete arg1; | |
2199 | } | |
2200 | return NULL; | |
2201 | } | |
2202 | ||
2203 | ||
c32bde28 | 2204 | static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2205 | PyObject *obj; |
2206 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2207 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
2208 | Py_INCREF(obj); | |
2209 | return Py_BuildValue((char *)""); | |
2210 | } | |
c32bde28 | 2211 | static int _wrap_FileSelectorPromptStr_set(PyObject *) { |
d55e5bfc RD |
2212 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); |
2213 | return 1; | |
2214 | } | |
2215 | ||
2216 | ||
2217 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
2218 | PyObject *pyobj; | |
2219 | ||
2220 | { | |
2221 | #if wxUSE_UNICODE | |
2222 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2223 | #else | |
2224 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2225 | #endif | |
2226 | } | |
2227 | return pyobj; | |
2228 | } | |
2229 | ||
2230 | ||
c32bde28 | 2231 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) { |
d55e5bfc RD |
2232 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); |
2233 | return 1; | |
2234 | } | |
2235 | ||
2236 | ||
2237 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
2238 | PyObject *pyobj; | |
2239 | ||
2240 | { | |
2241 | #if wxUSE_UNICODE | |
2242 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2243 | #else | |
2244 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2245 | #endif | |
2246 | } | |
2247 | return pyobj; | |
2248 | } | |
2249 | ||
2250 | ||
c32bde28 | 2251 | static int _wrap_DirSelectorPromptStr_set(PyObject *) { |
d55e5bfc RD |
2252 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); |
2253 | return 1; | |
2254 | } | |
2255 | ||
2256 | ||
2257 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
2258 | PyObject *pyobj; | |
2259 | ||
2260 | { | |
2261 | #if wxUSE_UNICODE | |
2262 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2263 | #else | |
2264 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2265 | #endif | |
2266 | } | |
2267 | return pyobj; | |
2268 | } | |
2269 | ||
2270 | ||
c32bde28 | 2271 | static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2272 | PyObject *resultobj; |
2273 | long result; | |
2274 | char *kwnames[] = { | |
2275 | NULL | |
2276 | }; | |
2277 | ||
2278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
2279 | { | |
2280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2281 | result = (long)wxNewId(); | |
2282 | ||
2283 | wxPyEndAllowThreads(__tstate); | |
2284 | if (PyErr_Occurred()) SWIG_fail; | |
2285 | } | |
c32bde28 | 2286 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
2287 | return resultobj; |
2288 | fail: | |
2289 | return NULL; | |
2290 | } | |
2291 | ||
2292 | ||
c32bde28 | 2293 | static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2294 | PyObject *resultobj; |
2295 | long arg1 ; | |
2296 | PyObject * obj0 = 0 ; | |
2297 | char *kwnames[] = { | |
2298 | (char *) "id", NULL | |
2299 | }; | |
2300 | ||
2301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; | |
c32bde28 | 2302 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
2303 | if (PyErr_Occurred()) SWIG_fail; |
2304 | { | |
2305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2306 | wxRegisterId(arg1); | |
2307 | ||
2308 | wxPyEndAllowThreads(__tstate); | |
2309 | if (PyErr_Occurred()) SWIG_fail; | |
2310 | } | |
2311 | Py_INCREF(Py_None); resultobj = Py_None; | |
2312 | return resultobj; | |
2313 | fail: | |
2314 | return NULL; | |
2315 | } | |
2316 | ||
2317 | ||
c32bde28 | 2318 | static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2319 | PyObject *resultobj; |
2320 | long result; | |
2321 | char *kwnames[] = { | |
2322 | NULL | |
2323 | }; | |
2324 | ||
2325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
2326 | { | |
2327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2328 | result = (long)wxGetCurrentId(); | |
2329 | ||
2330 | wxPyEndAllowThreads(__tstate); | |
2331 | if (PyErr_Occurred()) SWIG_fail; | |
2332 | } | |
c32bde28 | 2333 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
2334 | return resultobj; |
2335 | fail: | |
2336 | return NULL; | |
2337 | } | |
2338 | ||
2339 | ||
c32bde28 | 2340 | static PyObject *_wrap_IsStockID(PyObject *, PyObject *args, PyObject *kwargs) { |
d1f3a348 RD |
2341 | PyObject *resultobj; |
2342 | int arg1 ; | |
2343 | bool result; | |
2344 | PyObject * obj0 = 0 ; | |
2345 | char *kwnames[] = { | |
2346 | (char *) "id", NULL | |
2347 | }; | |
2348 | ||
2349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) goto fail; | |
c32bde28 | 2350 | arg1 = (int)SWIG_As_int(obj0); |
d1f3a348 RD |
2351 | if (PyErr_Occurred()) SWIG_fail; |
2352 | { | |
2353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2354 | result = (bool)wxIsStockID(arg1); | |
2355 | ||
2356 | wxPyEndAllowThreads(__tstate); | |
2357 | if (PyErr_Occurred()) SWIG_fail; | |
2358 | } | |
2359 | { | |
2360 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2361 | } | |
2362 | return resultobj; | |
2363 | fail: | |
2364 | return NULL; | |
2365 | } | |
2366 | ||
2367 | ||
c32bde28 | 2368 | static PyObject *_wrap_IsStockLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d1f3a348 RD |
2369 | PyObject *resultobj; |
2370 | int arg1 ; | |
2371 | wxString *arg2 = 0 ; | |
2372 | bool result; | |
ae8162c8 | 2373 | bool temp2 = false ; |
d1f3a348 RD |
2374 | PyObject * obj0 = 0 ; |
2375 | PyObject * obj1 = 0 ; | |
2376 | char *kwnames[] = { | |
2377 | (char *) "id",(char *) "label", NULL | |
2378 | }; | |
2379 | ||
2380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 2381 | arg1 = (int)SWIG_As_int(obj0); |
d1f3a348 RD |
2382 | if (PyErr_Occurred()) SWIG_fail; |
2383 | { | |
2384 | arg2 = wxString_in_helper(obj1); | |
2385 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 2386 | temp2 = true; |
d1f3a348 RD |
2387 | } |
2388 | { | |
2389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2390 | result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2); | |
2391 | ||
2392 | wxPyEndAllowThreads(__tstate); | |
2393 | if (PyErr_Occurred()) SWIG_fail; | |
2394 | } | |
2395 | { | |
2396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2397 | } | |
2398 | { | |
2399 | if (temp2) | |
2400 | delete arg2; | |
2401 | } | |
2402 | return resultobj; | |
2403 | fail: | |
2404 | { | |
2405 | if (temp2) | |
2406 | delete arg2; | |
2407 | } | |
2408 | return NULL; | |
2409 | } | |
2410 | ||
2411 | ||
c32bde28 | 2412 | static PyObject *_wrap_GetStockLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d1f3a348 RD |
2413 | PyObject *resultobj; |
2414 | int arg1 ; | |
2415 | wxString result; | |
2416 | PyObject * obj0 = 0 ; | |
2417 | char *kwnames[] = { | |
2418 | (char *) "id", NULL | |
2419 | }; | |
2420 | ||
2421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetStockLabel",kwnames,&obj0)) goto fail; | |
c32bde28 | 2422 | arg1 = (int)SWIG_As_int(obj0); |
d1f3a348 RD |
2423 | if (PyErr_Occurred()) SWIG_fail; |
2424 | { | |
2425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2426 | result = wxGetStockLabel(arg1); | |
2427 | ||
2428 | wxPyEndAllowThreads(__tstate); | |
2429 | if (PyErr_Occurred()) SWIG_fail; | |
2430 | } | |
2431 | { | |
2432 | #if wxUSE_UNICODE | |
2433 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2434 | #else | |
2435 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2436 | #endif | |
2437 | } | |
2438 | return resultobj; | |
2439 | fail: | |
2440 | return NULL; | |
2441 | } | |
2442 | ||
2443 | ||
c32bde28 | 2444 | static PyObject *_wrap_Bell(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2445 | PyObject *resultobj; |
2446 | char *kwnames[] = { | |
2447 | NULL | |
2448 | }; | |
2449 | ||
2450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
2451 | { | |
0439c23b | 2452 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2454 | wxBell(); | |
2455 | ||
2456 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2457 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2458 | } |
2459 | Py_INCREF(Py_None); resultobj = Py_None; | |
2460 | return resultobj; | |
2461 | fail: | |
2462 | return NULL; | |
2463 | } | |
2464 | ||
2465 | ||
c32bde28 | 2466 | static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2467 | PyObject *resultobj; |
2468 | char *kwnames[] = { | |
2469 | NULL | |
2470 | }; | |
2471 | ||
2472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
2473 | { | |
0439c23b | 2474 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2476 | wxEndBusyCursor(); | |
2477 | ||
2478 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2479 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2480 | } |
2481 | Py_INCREF(Py_None); resultobj = Py_None; | |
2482 | return resultobj; | |
2483 | fail: | |
2484 | return NULL; | |
2485 | } | |
2486 | ||
2487 | ||
c32bde28 | 2488 | static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 2489 | PyObject *resultobj; |
ae8162c8 | 2490 | bool arg1 = (bool) true ; |
d55e5bfc RD |
2491 | long result; |
2492 | PyObject * obj0 = 0 ; | |
2493 | char *kwnames[] = { | |
2494 | (char *) "resetTimer", NULL | |
2495 | }; | |
2496 | ||
2497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
2498 | if (obj0) { | |
c32bde28 | 2499 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
2500 | if (PyErr_Occurred()) SWIG_fail; |
2501 | } | |
2502 | { | |
2503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2504 | result = (long)wxGetElapsedTime(arg1); | |
2505 | ||
2506 | wxPyEndAllowThreads(__tstate); | |
2507 | if (PyErr_Occurred()) SWIG_fail; | |
2508 | } | |
c32bde28 | 2509 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
2510 | return resultobj; |
2511 | fail: | |
2512 | return NULL; | |
2513 | } | |
2514 | ||
2515 | ||
c32bde28 | 2516 | static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2517 | PyObject *resultobj; |
2518 | int *arg1 = (int *) 0 ; | |
2519 | int *arg2 = (int *) 0 ; | |
2520 | int temp1 ; | |
c32bde28 | 2521 | int res1 = 0 ; |
d55e5bfc | 2522 | int temp2 ; |
c32bde28 | 2523 | int res2 = 0 ; |
d55e5bfc RD |
2524 | char *kwnames[] = { |
2525 | NULL | |
2526 | }; | |
2527 | ||
c32bde28 RD |
2528 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
2529 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
2530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; |
2531 | { | |
0439c23b | 2532 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2534 | wxGetMousePosition(arg1,arg2); | |
2535 | ||
2536 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2537 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2538 | } |
2539 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
2540 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
2541 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
2542 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
2543 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
2544 | return resultobj; |
2545 | fail: | |
2546 | return NULL; | |
2547 | } | |
2548 | ||
2549 | ||
c32bde28 | 2550 | static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2551 | PyObject *resultobj; |
2552 | bool result; | |
2553 | char *kwnames[] = { | |
2554 | NULL | |
2555 | }; | |
2556 | ||
2557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
2558 | { | |
2559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2560 | result = (bool)wxIsBusy(); | |
2561 | ||
2562 | wxPyEndAllowThreads(__tstate); | |
2563 | if (PyErr_Occurred()) SWIG_fail; | |
2564 | } | |
2565 | { | |
2566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2567 | } | |
2568 | return resultobj; | |
2569 | fail: | |
2570 | return NULL; | |
2571 | } | |
2572 | ||
2573 | ||
c32bde28 | 2574 | static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2575 | PyObject *resultobj; |
2576 | wxString result; | |
2577 | char *kwnames[] = { | |
2578 | NULL | |
2579 | }; | |
2580 | ||
2581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
2582 | { | |
2583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2584 | result = wxNow(); | |
2585 | ||
2586 | wxPyEndAllowThreads(__tstate); | |
2587 | if (PyErr_Occurred()) SWIG_fail; | |
2588 | } | |
2589 | { | |
2590 | #if wxUSE_UNICODE | |
2591 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2592 | #else | |
2593 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2594 | #endif | |
2595 | } | |
2596 | return resultobj; | |
2597 | fail: | |
2598 | return NULL; | |
2599 | } | |
2600 | ||
2601 | ||
c32bde28 | 2602 | static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2603 | PyObject *resultobj; |
2604 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2605 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2606 | bool result; | |
ae8162c8 | 2607 | bool temp1 = false ; |
d55e5bfc RD |
2608 | PyObject * obj0 = 0 ; |
2609 | char *kwnames[] = { | |
2610 | (char *) "command", NULL | |
2611 | }; | |
2612 | ||
2613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
2614 | if (obj0) { | |
2615 | { | |
2616 | arg1 = wxString_in_helper(obj0); | |
2617 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2618 | temp1 = true; |
d55e5bfc RD |
2619 | } |
2620 | } | |
2621 | { | |
2622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2623 | result = (bool)wxShell((wxString const &)*arg1); | |
2624 | ||
2625 | wxPyEndAllowThreads(__tstate); | |
2626 | if (PyErr_Occurred()) SWIG_fail; | |
2627 | } | |
2628 | { | |
2629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2630 | } | |
2631 | { | |
2632 | if (temp1) | |
2633 | delete arg1; | |
2634 | } | |
2635 | return resultobj; | |
2636 | fail: | |
2637 | { | |
2638 | if (temp1) | |
2639 | delete arg1; | |
2640 | } | |
2641 | return NULL; | |
2642 | } | |
2643 | ||
2644 | ||
c32bde28 | 2645 | static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2646 | PyObject *resultobj; |
2647 | char *kwnames[] = { | |
2648 | NULL | |
2649 | }; | |
2650 | ||
2651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2652 | { | |
2653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2654 | wxStartTimer(); | |
2655 | ||
2656 | wxPyEndAllowThreads(__tstate); | |
2657 | if (PyErr_Occurred()) SWIG_fail; | |
2658 | } | |
2659 | Py_INCREF(Py_None); resultobj = Py_None; | |
2660 | return resultobj; | |
2661 | fail: | |
2662 | return NULL; | |
2663 | } | |
2664 | ||
2665 | ||
c32bde28 | 2666 | static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2667 | PyObject *resultobj; |
2668 | int *arg1 = (int *) 0 ; | |
2669 | int *arg2 = (int *) 0 ; | |
2670 | int result; | |
2671 | int temp1 ; | |
c32bde28 | 2672 | int res1 = 0 ; |
d55e5bfc | 2673 | int temp2 ; |
c32bde28 | 2674 | int res2 = 0 ; |
d55e5bfc RD |
2675 | char *kwnames[] = { |
2676 | NULL | |
2677 | }; | |
2678 | ||
c32bde28 RD |
2679 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
2680 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
2681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; |
2682 | { | |
2683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2684 | result = (int)wxGetOsVersion(arg1,arg2); | |
2685 | ||
2686 | wxPyEndAllowThreads(__tstate); | |
2687 | if (PyErr_Occurred()) SWIG_fail; | |
2688 | } | |
c32bde28 RD |
2689 | resultobj = SWIG_From_int((int)result); |
2690 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? | |
2691 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
2692 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
2693 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
2694 | return resultobj; |
2695 | fail: | |
2696 | return NULL; | |
2697 | } | |
2698 | ||
2699 | ||
c32bde28 | 2700 | static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2701 | PyObject *resultobj; |
2702 | wxString result; | |
2703 | char *kwnames[] = { | |
2704 | NULL | |
2705 | }; | |
2706 | ||
2707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2708 | { | |
2709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2710 | result = wxGetOsDescription(); | |
2711 | ||
2712 | wxPyEndAllowThreads(__tstate); | |
2713 | if (PyErr_Occurred()) SWIG_fail; | |
2714 | } | |
2715 | { | |
2716 | #if wxUSE_UNICODE | |
2717 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2718 | #else | |
2719 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2720 | #endif | |
2721 | } | |
2722 | return resultobj; | |
2723 | fail: | |
2724 | return NULL; | |
2725 | } | |
2726 | ||
2727 | ||
c32bde28 | 2728 | static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2729 | PyObject *resultobj; |
2730 | long result; | |
2731 | char *kwnames[] = { | |
2732 | NULL | |
2733 | }; | |
2734 | ||
2735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2736 | { | |
2737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2738 | result = (long)wxGetFreeMemory(); | |
2739 | ||
2740 | wxPyEndAllowThreads(__tstate); | |
2741 | if (PyErr_Occurred()) SWIG_fail; | |
2742 | } | |
c32bde28 | 2743 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
2744 | return resultobj; |
2745 | fail: | |
2746 | return NULL; | |
2747 | } | |
2748 | ||
2749 | ||
c32bde28 | 2750 | static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2751 | PyObject *resultobj; |
2752 | int arg1 ; | |
2753 | bool result; | |
2754 | PyObject * obj0 = 0 ; | |
2755 | char *kwnames[] = { | |
2756 | (char *) "wFlags", NULL | |
2757 | }; | |
2758 | ||
2759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; | |
c32bde28 | 2760 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
2761 | if (PyErr_Occurred()) SWIG_fail; |
2762 | { | |
0439c23b | 2763 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2765 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2766 | ||
2767 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2768 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2769 | } |
2770 | { | |
2771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2772 | } | |
2773 | return resultobj; | |
2774 | fail: | |
2775 | return NULL; | |
2776 | } | |
2777 | ||
2778 | ||
c32bde28 | 2779 | static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2780 | PyObject *resultobj; |
2781 | int arg1 ; | |
2782 | PyObject * obj0 = 0 ; | |
2783 | char *kwnames[] = { | |
2784 | (char *) "secs", NULL | |
2785 | }; | |
2786 | ||
2787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; | |
c32bde28 | 2788 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
2789 | if (PyErr_Occurred()) SWIG_fail; |
2790 | { | |
2791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2792 | wxSleep(arg1); | |
2793 | ||
2794 | wxPyEndAllowThreads(__tstate); | |
2795 | if (PyErr_Occurred()) SWIG_fail; | |
2796 | } | |
2797 | Py_INCREF(Py_None); resultobj = Py_None; | |
2798 | return resultobj; | |
2799 | fail: | |
2800 | return NULL; | |
2801 | } | |
2802 | ||
2803 | ||
c32bde28 | 2804 | static PyObject *_wrap_MilliSleep(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2805 | PyObject *resultobj; |
2806 | unsigned long arg1 ; | |
2807 | PyObject * obj0 = 0 ; | |
2808 | char *kwnames[] = { | |
2809 | (char *) "milliseconds", NULL | |
2810 | }; | |
2811 | ||
bf26d883 | 2812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail; |
c32bde28 | 2813 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
2814 | if (PyErr_Occurred()) SWIG_fail; |
2815 | { | |
2816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bf26d883 RD |
2817 | wxMilliSleep(arg1); |
2818 | ||
2819 | wxPyEndAllowThreads(__tstate); | |
2820 | if (PyErr_Occurred()) SWIG_fail; | |
2821 | } | |
2822 | Py_INCREF(Py_None); resultobj = Py_None; | |
2823 | return resultobj; | |
2824 | fail: | |
2825 | return NULL; | |
2826 | } | |
2827 | ||
2828 | ||
c32bde28 | 2829 | static PyObject *_wrap_MicroSleep(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
2830 | PyObject *resultobj; |
2831 | unsigned long arg1 ; | |
2832 | PyObject * obj0 = 0 ; | |
2833 | char *kwnames[] = { | |
2834 | (char *) "microseconds", NULL | |
2835 | }; | |
2836 | ||
2837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail; | |
c32bde28 | 2838 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
bf26d883 RD |
2839 | if (PyErr_Occurred()) SWIG_fail; |
2840 | { | |
2841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2842 | wxMicroSleep(arg1); | |
d55e5bfc RD |
2843 | |
2844 | wxPyEndAllowThreads(__tstate); | |
2845 | if (PyErr_Occurred()) SWIG_fail; | |
2846 | } | |
2847 | Py_INCREF(Py_None); resultobj = Py_None; | |
2848 | return resultobj; | |
2849 | fail: | |
2850 | return NULL; | |
2851 | } | |
2852 | ||
2853 | ||
c32bde28 | 2854 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2855 | PyObject *resultobj; |
2856 | bool arg1 ; | |
2857 | PyObject * obj0 = 0 ; | |
2858 | char *kwnames[] = { | |
2859 | (char *) "enable", NULL | |
2860 | }; | |
2861 | ||
2862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
c32bde28 | 2863 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
2864 | if (PyErr_Occurred()) SWIG_fail; |
2865 | { | |
2866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2867 | wxEnableTopLevelWindows(arg1); | |
2868 | ||
2869 | wxPyEndAllowThreads(__tstate); | |
2870 | if (PyErr_Occurred()) SWIG_fail; | |
2871 | } | |
2872 | Py_INCREF(Py_None); resultobj = Py_None; | |
2873 | return resultobj; | |
2874 | fail: | |
2875 | return NULL; | |
2876 | } | |
2877 | ||
2878 | ||
c32bde28 | 2879 | static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2880 | PyObject *resultobj; |
2881 | wxString *arg1 = 0 ; | |
2882 | wxString result; | |
ae8162c8 | 2883 | bool temp1 = false ; |
d55e5bfc RD |
2884 | PyObject * obj0 = 0 ; |
2885 | char *kwnames[] = { | |
2886 | (char *) "in", NULL | |
2887 | }; | |
2888 | ||
2889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2890 | { | |
2891 | arg1 = wxString_in_helper(obj0); | |
2892 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2893 | temp1 = true; |
d55e5bfc RD |
2894 | } |
2895 | { | |
2896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2897 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2898 | ||
2899 | wxPyEndAllowThreads(__tstate); | |
2900 | if (PyErr_Occurred()) SWIG_fail; | |
2901 | } | |
2902 | { | |
2903 | #if wxUSE_UNICODE | |
2904 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2905 | #else | |
2906 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2907 | #endif | |
2908 | } | |
2909 | { | |
2910 | if (temp1) | |
2911 | delete arg1; | |
2912 | } | |
2913 | return resultobj; | |
2914 | fail: | |
2915 | { | |
2916 | if (temp1) | |
2917 | delete arg1; | |
2918 | } | |
2919 | return NULL; | |
2920 | } | |
2921 | ||
2922 | ||
c32bde28 | 2923 | static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2924 | PyObject *resultobj; |
2925 | wxString result; | |
2926 | char *kwnames[] = { | |
2927 | NULL | |
2928 | }; | |
2929 | ||
2930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2931 | { | |
2932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2933 | result = wxGetEmailAddress(); | |
2934 | ||
2935 | wxPyEndAllowThreads(__tstate); | |
2936 | if (PyErr_Occurred()) SWIG_fail; | |
2937 | } | |
2938 | { | |
2939 | #if wxUSE_UNICODE | |
2940 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2941 | #else | |
2942 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2943 | #endif | |
2944 | } | |
2945 | return resultobj; | |
2946 | fail: | |
2947 | return NULL; | |
2948 | } | |
2949 | ||
2950 | ||
c32bde28 | 2951 | static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2952 | PyObject *resultobj; |
2953 | wxString result; | |
2954 | char *kwnames[] = { | |
2955 | NULL | |
2956 | }; | |
2957 | ||
2958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2959 | { | |
2960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2961 | result = wxGetHostName(); | |
2962 | ||
2963 | wxPyEndAllowThreads(__tstate); | |
2964 | if (PyErr_Occurred()) SWIG_fail; | |
2965 | } | |
2966 | { | |
2967 | #if wxUSE_UNICODE | |
2968 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2969 | #else | |
2970 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2971 | #endif | |
2972 | } | |
2973 | return resultobj; | |
2974 | fail: | |
2975 | return NULL; | |
2976 | } | |
2977 | ||
2978 | ||
c32bde28 | 2979 | static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2980 | PyObject *resultobj; |
2981 | wxString result; | |
2982 | char *kwnames[] = { | |
2983 | NULL | |
2984 | }; | |
2985 | ||
2986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2987 | { | |
2988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2989 | result = wxGetFullHostName(); | |
2990 | ||
2991 | wxPyEndAllowThreads(__tstate); | |
2992 | if (PyErr_Occurred()) SWIG_fail; | |
2993 | } | |
2994 | { | |
2995 | #if wxUSE_UNICODE | |
2996 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2997 | #else | |
2998 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2999 | #endif | |
3000 | } | |
3001 | return resultobj; | |
3002 | fail: | |
3003 | return NULL; | |
3004 | } | |
3005 | ||
3006 | ||
c32bde28 | 3007 | static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3008 | PyObject *resultobj; |
3009 | wxString result; | |
3010 | char *kwnames[] = { | |
3011 | NULL | |
3012 | }; | |
3013 | ||
3014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
3015 | { | |
3016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3017 | result = wxGetUserId(); | |
3018 | ||
3019 | wxPyEndAllowThreads(__tstate); | |
3020 | if (PyErr_Occurred()) SWIG_fail; | |
3021 | } | |
3022 | { | |
3023 | #if wxUSE_UNICODE | |
3024 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3025 | #else | |
3026 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3027 | #endif | |
3028 | } | |
3029 | return resultobj; | |
3030 | fail: | |
3031 | return NULL; | |
3032 | } | |
3033 | ||
3034 | ||
c32bde28 | 3035 | static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3036 | PyObject *resultobj; |
3037 | wxString result; | |
3038 | char *kwnames[] = { | |
3039 | NULL | |
3040 | }; | |
3041 | ||
3042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
3043 | { | |
3044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3045 | result = wxGetUserName(); | |
3046 | ||
3047 | wxPyEndAllowThreads(__tstate); | |
3048 | if (PyErr_Occurred()) SWIG_fail; | |
3049 | } | |
3050 | { | |
3051 | #if wxUSE_UNICODE | |
3052 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3053 | #else | |
3054 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3055 | #endif | |
3056 | } | |
3057 | return resultobj; | |
3058 | fail: | |
3059 | return NULL; | |
3060 | } | |
3061 | ||
3062 | ||
c32bde28 | 3063 | static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3064 | PyObject *resultobj; |
3065 | wxString result; | |
3066 | char *kwnames[] = { | |
3067 | NULL | |
3068 | }; | |
3069 | ||
3070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
3071 | { | |
3072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3073 | result = wxGetHomeDir(); | |
3074 | ||
3075 | wxPyEndAllowThreads(__tstate); | |
3076 | if (PyErr_Occurred()) SWIG_fail; | |
3077 | } | |
3078 | { | |
3079 | #if wxUSE_UNICODE | |
3080 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3081 | #else | |
3082 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3083 | #endif | |
3084 | } | |
3085 | return resultobj; | |
3086 | fail: | |
3087 | return NULL; | |
3088 | } | |
3089 | ||
3090 | ||
c32bde28 | 3091 | static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3092 | PyObject *resultobj; |
3093 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
3094 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3095 | wxString result; | |
ae8162c8 | 3096 | bool temp1 = false ; |
d55e5bfc RD |
3097 | PyObject * obj0 = 0 ; |
3098 | char *kwnames[] = { | |
3099 | (char *) "user", NULL | |
3100 | }; | |
3101 | ||
3102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
3103 | if (obj0) { | |
3104 | { | |
3105 | arg1 = wxString_in_helper(obj0); | |
3106 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3107 | temp1 = true; |
d55e5bfc RD |
3108 | } |
3109 | } | |
3110 | { | |
3111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3112 | result = wxGetUserHome((wxString const &)*arg1); | |
3113 | ||
3114 | wxPyEndAllowThreads(__tstate); | |
3115 | if (PyErr_Occurred()) SWIG_fail; | |
3116 | } | |
3117 | { | |
3118 | #if wxUSE_UNICODE | |
3119 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3120 | #else | |
3121 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3122 | #endif | |
3123 | } | |
3124 | { | |
3125 | if (temp1) | |
3126 | delete arg1; | |
3127 | } | |
3128 | return resultobj; | |
3129 | fail: | |
3130 | { | |
3131 | if (temp1) | |
3132 | delete arg1; | |
3133 | } | |
3134 | return NULL; | |
3135 | } | |
3136 | ||
3137 | ||
c32bde28 | 3138 | static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3139 | PyObject *resultobj; |
3140 | unsigned long result; | |
3141 | char *kwnames[] = { | |
3142 | NULL | |
3143 | }; | |
3144 | ||
3145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
3146 | { | |
3147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3148 | result = (unsigned long)wxGetProcessId(); | |
3149 | ||
3150 | wxPyEndAllowThreads(__tstate); | |
3151 | if (PyErr_Occurred()) SWIG_fail; | |
3152 | } | |
c32bde28 | 3153 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
3154 | return resultobj; |
3155 | fail: | |
3156 | return NULL; | |
3157 | } | |
3158 | ||
3159 | ||
c32bde28 | 3160 | static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3161 | PyObject *resultobj; |
3162 | char *kwnames[] = { | |
3163 | NULL | |
3164 | }; | |
3165 | ||
3166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
3167 | { | |
3168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3169 | wxTrap(); | |
3170 | ||
3171 | wxPyEndAllowThreads(__tstate); | |
3172 | if (PyErr_Occurred()) SWIG_fail; | |
3173 | } | |
3174 | Py_INCREF(Py_None); resultobj = Py_None; | |
3175 | return resultobj; | |
3176 | fail: | |
3177 | return NULL; | |
3178 | } | |
3179 | ||
3180 | ||
c32bde28 | 3181 | static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3182 | PyObject *resultobj; |
3183 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
3184 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3185 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3186 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3187 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3188 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3189 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3190 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3191 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
3192 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
3193 | int arg6 = (int) 0 ; | |
3194 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3195 | int arg8 = (int) -1 ; | |
3196 | int arg9 = (int) -1 ; | |
3197 | wxString result; | |
ae8162c8 RD |
3198 | bool temp1 = false ; |
3199 | bool temp2 = false ; | |
3200 | bool temp3 = false ; | |
3201 | bool temp4 = false ; | |
3202 | bool temp5 = false ; | |
d55e5bfc RD |
3203 | PyObject * obj0 = 0 ; |
3204 | PyObject * obj1 = 0 ; | |
3205 | PyObject * obj2 = 0 ; | |
3206 | PyObject * obj3 = 0 ; | |
3207 | PyObject * obj4 = 0 ; | |
3208 | PyObject * obj5 = 0 ; | |
3209 | PyObject * obj6 = 0 ; | |
3210 | PyObject * obj7 = 0 ; | |
3211 | PyObject * obj8 = 0 ; | |
3212 | char *kwnames[] = { | |
3213 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3214 | }; | |
3215 | ||
3216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3217 | if (obj0) { | |
3218 | { | |
3219 | arg1 = wxString_in_helper(obj0); | |
3220 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3221 | temp1 = true; |
d55e5bfc RD |
3222 | } |
3223 | } | |
3224 | if (obj1) { | |
3225 | { | |
3226 | arg2 = wxString_in_helper(obj1); | |
3227 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3228 | temp2 = true; |
d55e5bfc RD |
3229 | } |
3230 | } | |
3231 | if (obj2) { | |
3232 | { | |
3233 | arg3 = wxString_in_helper(obj2); | |
3234 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3235 | temp3 = true; |
d55e5bfc RD |
3236 | } |
3237 | } | |
3238 | if (obj3) { | |
3239 | { | |
3240 | arg4 = wxString_in_helper(obj3); | |
3241 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 3242 | temp4 = true; |
d55e5bfc RD |
3243 | } |
3244 | } | |
3245 | if (obj4) { | |
3246 | { | |
3247 | arg5 = wxString_in_helper(obj4); | |
3248 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 3249 | temp5 = true; |
d55e5bfc RD |
3250 | } |
3251 | } | |
3252 | if (obj5) { | |
c32bde28 | 3253 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
3254 | if (PyErr_Occurred()) SWIG_fail; |
3255 | } | |
3256 | if (obj6) { | |
3257 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
3258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3259 | } | |
3260 | if (obj7) { | |
c32bde28 | 3261 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
3262 | if (PyErr_Occurred()) SWIG_fail; |
3263 | } | |
3264 | if (obj8) { | |
c32bde28 | 3265 | arg9 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
3266 | if (PyErr_Occurred()) SWIG_fail; |
3267 | } | |
3268 | { | |
0439c23b | 3269 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3271 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
3272 | ||
3273 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3274 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3275 | } |
3276 | { | |
3277 | #if wxUSE_UNICODE | |
3278 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3279 | #else | |
3280 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3281 | #endif | |
3282 | } | |
3283 | { | |
3284 | if (temp1) | |
3285 | delete arg1; | |
3286 | } | |
3287 | { | |
3288 | if (temp2) | |
3289 | delete arg2; | |
3290 | } | |
3291 | { | |
3292 | if (temp3) | |
3293 | delete arg3; | |
3294 | } | |
3295 | { | |
3296 | if (temp4) | |
3297 | delete arg4; | |
3298 | } | |
3299 | { | |
3300 | if (temp5) | |
3301 | delete arg5; | |
3302 | } | |
3303 | return resultobj; | |
3304 | fail: | |
3305 | { | |
3306 | if (temp1) | |
3307 | delete arg1; | |
3308 | } | |
3309 | { | |
3310 | if (temp2) | |
3311 | delete arg2; | |
3312 | } | |
3313 | { | |
3314 | if (temp3) | |
3315 | delete arg3; | |
3316 | } | |
3317 | { | |
3318 | if (temp4) | |
3319 | delete arg4; | |
3320 | } | |
3321 | { | |
3322 | if (temp5) | |
3323 | delete arg5; | |
3324 | } | |
3325 | return NULL; | |
3326 | } | |
3327 | ||
3328 | ||
c32bde28 | 3329 | static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3330 | PyObject *resultobj; |
3331 | wxString *arg1 = 0 ; | |
3332 | wxString *arg2 = 0 ; | |
3333 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3334 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3335 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3336 | wxString result; | |
ae8162c8 RD |
3337 | bool temp1 = false ; |
3338 | bool temp2 = false ; | |
3339 | bool temp3 = false ; | |
d55e5bfc RD |
3340 | PyObject * obj0 = 0 ; |
3341 | PyObject * obj1 = 0 ; | |
3342 | PyObject * obj2 = 0 ; | |
3343 | PyObject * obj3 = 0 ; | |
3344 | char *kwnames[] = { | |
3345 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3346 | }; | |
3347 | ||
3348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3349 | { | |
3350 | arg1 = wxString_in_helper(obj0); | |
3351 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3352 | temp1 = true; |
d55e5bfc RD |
3353 | } |
3354 | { | |
3355 | arg2 = wxString_in_helper(obj1); | |
3356 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3357 | temp2 = true; |
d55e5bfc RD |
3358 | } |
3359 | if (obj2) { | |
3360 | { | |
3361 | arg3 = wxString_in_helper(obj2); | |
3362 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3363 | temp3 = true; |
d55e5bfc RD |
3364 | } |
3365 | } | |
3366 | if (obj3) { | |
3367 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3369 | } | |
3370 | { | |
0439c23b | 3371 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3373 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3374 | ||
3375 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3376 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3377 | } |
3378 | { | |
3379 | #if wxUSE_UNICODE | |
3380 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3381 | #else | |
3382 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3383 | #endif | |
3384 | } | |
3385 | { | |
3386 | if (temp1) | |
3387 | delete arg1; | |
3388 | } | |
3389 | { | |
3390 | if (temp2) | |
3391 | delete arg2; | |
3392 | } | |
3393 | { | |
3394 | if (temp3) | |
3395 | delete arg3; | |
3396 | } | |
3397 | return resultobj; | |
3398 | fail: | |
3399 | { | |
3400 | if (temp1) | |
3401 | delete arg1; | |
3402 | } | |
3403 | { | |
3404 | if (temp2) | |
3405 | delete arg2; | |
3406 | } | |
3407 | { | |
3408 | if (temp3) | |
3409 | delete arg3; | |
3410 | } | |
3411 | return NULL; | |
3412 | } | |
3413 | ||
3414 | ||
c32bde28 | 3415 | static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3416 | PyObject *resultobj; |
3417 | wxString *arg1 = 0 ; | |
3418 | wxString *arg2 = 0 ; | |
3419 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3420 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3421 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3422 | wxString result; | |
ae8162c8 RD |
3423 | bool temp1 = false ; |
3424 | bool temp2 = false ; | |
3425 | bool temp3 = false ; | |
d55e5bfc RD |
3426 | PyObject * obj0 = 0 ; |
3427 | PyObject * obj1 = 0 ; | |
3428 | PyObject * obj2 = 0 ; | |
3429 | PyObject * obj3 = 0 ; | |
3430 | char *kwnames[] = { | |
3431 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3432 | }; | |
3433 | ||
3434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3435 | { | |
3436 | arg1 = wxString_in_helper(obj0); | |
3437 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3438 | temp1 = true; |
d55e5bfc RD |
3439 | } |
3440 | { | |
3441 | arg2 = wxString_in_helper(obj1); | |
3442 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3443 | temp2 = true; |
d55e5bfc RD |
3444 | } |
3445 | if (obj2) { | |
3446 | { | |
3447 | arg3 = wxString_in_helper(obj2); | |
3448 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3449 | temp3 = true; |
d55e5bfc RD |
3450 | } |
3451 | } | |
3452 | if (obj3) { | |
3453 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3455 | } | |
3456 | { | |
0439c23b | 3457 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3459 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3460 | ||
3461 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3462 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3463 | } |
3464 | { | |
3465 | #if wxUSE_UNICODE | |
3466 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3467 | #else | |
3468 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3469 | #endif | |
3470 | } | |
3471 | { | |
3472 | if (temp1) | |
3473 | delete arg1; | |
3474 | } | |
3475 | { | |
3476 | if (temp2) | |
3477 | delete arg2; | |
3478 | } | |
3479 | { | |
3480 | if (temp3) | |
3481 | delete arg3; | |
3482 | } | |
3483 | return resultobj; | |
3484 | fail: | |
3485 | { | |
3486 | if (temp1) | |
3487 | delete arg1; | |
3488 | } | |
3489 | { | |
3490 | if (temp2) | |
3491 | delete arg2; | |
3492 | } | |
3493 | { | |
3494 | if (temp3) | |
3495 | delete arg3; | |
3496 | } | |
3497 | return NULL; | |
3498 | } | |
3499 | ||
3500 | ||
c32bde28 | 3501 | static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3502 | PyObject *resultobj; |
3503 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
3504 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3505 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3506 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3507 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
3508 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3509 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3510 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3511 | wxString result; | |
ae8162c8 RD |
3512 | bool temp1 = false ; |
3513 | bool temp2 = false ; | |
d55e5bfc RD |
3514 | wxPoint temp4 ; |
3515 | PyObject * obj0 = 0 ; | |
3516 | PyObject * obj1 = 0 ; | |
3517 | PyObject * obj2 = 0 ; | |
3518 | PyObject * obj3 = 0 ; | |
3519 | PyObject * obj4 = 0 ; | |
3520 | char *kwnames[] = { | |
3521 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
3522 | }; | |
3523 | ||
3524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3525 | if (obj0) { | |
3526 | { | |
3527 | arg1 = wxString_in_helper(obj0); | |
3528 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3529 | temp1 = true; |
d55e5bfc RD |
3530 | } |
3531 | } | |
3532 | if (obj1) { | |
3533 | { | |
3534 | arg2 = wxString_in_helper(obj1); | |
3535 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3536 | temp2 = true; |
d55e5bfc RD |
3537 | } |
3538 | } | |
3539 | if (obj2) { | |
c32bde28 | 3540 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
3541 | if (PyErr_Occurred()) SWIG_fail; |
3542 | } | |
3543 | if (obj3) { | |
3544 | { | |
3545 | arg4 = &temp4; | |
3546 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3547 | } | |
3548 | } | |
3549 | if (obj4) { | |
3550 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3552 | } | |
3553 | { | |
0439c23b | 3554 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3556 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
3557 | ||
3558 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3559 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3560 | } |
3561 | { | |
3562 | #if wxUSE_UNICODE | |
3563 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3564 | #else | |
3565 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3566 | #endif | |
3567 | } | |
3568 | { | |
3569 | if (temp1) | |
3570 | delete arg1; | |
3571 | } | |
3572 | { | |
3573 | if (temp2) | |
3574 | delete arg2; | |
3575 | } | |
3576 | return resultobj; | |
3577 | fail: | |
3578 | { | |
3579 | if (temp1) | |
3580 | delete arg1; | |
3581 | } | |
3582 | { | |
3583 | if (temp2) | |
3584 | delete arg2; | |
3585 | } | |
3586 | return NULL; | |
3587 | } | |
3588 | ||
3589 | ||
c32bde28 | 3590 | static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3591 | PyObject *resultobj; |
3592 | wxString *arg1 = 0 ; | |
3593 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3594 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3595 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3596 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3597 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3598 | int arg5 = (int) -1 ; | |
3599 | int arg6 = (int) -1 ; | |
ae8162c8 | 3600 | bool arg7 = (bool) true ; |
d55e5bfc | 3601 | wxString result; |
ae8162c8 RD |
3602 | bool temp1 = false ; |
3603 | bool temp2 = false ; | |
3604 | bool temp3 = false ; | |
d55e5bfc RD |
3605 | PyObject * obj0 = 0 ; |
3606 | PyObject * obj1 = 0 ; | |
3607 | PyObject * obj2 = 0 ; | |
3608 | PyObject * obj3 = 0 ; | |
3609 | PyObject * obj4 = 0 ; | |
3610 | PyObject * obj5 = 0 ; | |
3611 | PyObject * obj6 = 0 ; | |
3612 | char *kwnames[] = { | |
3613 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
3614 | }; | |
3615 | ||
3616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3617 | { | |
3618 | arg1 = wxString_in_helper(obj0); | |
3619 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3620 | temp1 = true; |
d55e5bfc RD |
3621 | } |
3622 | if (obj1) { | |
3623 | { | |
3624 | arg2 = wxString_in_helper(obj1); | |
3625 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3626 | temp2 = true; |
d55e5bfc RD |
3627 | } |
3628 | } | |
3629 | if (obj2) { | |
3630 | { | |
3631 | arg3 = wxString_in_helper(obj2); | |
3632 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3633 | temp3 = true; |
d55e5bfc RD |
3634 | } |
3635 | } | |
3636 | if (obj3) { | |
3637 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3639 | } | |
3640 | if (obj4) { | |
c32bde28 | 3641 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
3642 | if (PyErr_Occurred()) SWIG_fail; |
3643 | } | |
3644 | if (obj5) { | |
c32bde28 | 3645 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
3646 | if (PyErr_Occurred()) SWIG_fail; |
3647 | } | |
3648 | if (obj6) { | |
c32bde28 | 3649 | arg7 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
3650 | if (PyErr_Occurred()) SWIG_fail; |
3651 | } | |
3652 | { | |
0439c23b | 3653 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3655 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
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 | { | |
3676 | if (temp3) | |
3677 | delete arg3; | |
3678 | } | |
3679 | return resultobj; | |
3680 | fail: | |
3681 | { | |
3682 | if (temp1) | |
3683 | delete arg1; | |
3684 | } | |
3685 | { | |
3686 | if (temp2) | |
3687 | delete arg2; | |
3688 | } | |
3689 | { | |
3690 | if (temp3) | |
3691 | delete arg3; | |
3692 | } | |
3693 | return NULL; | |
3694 | } | |
3695 | ||
3696 | ||
c32bde28 | 3697 | static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3698 | PyObject *resultobj; |
3699 | wxString *arg1 = 0 ; | |
3700 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3701 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3702 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3703 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3704 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3705 | wxString result; | |
ae8162c8 RD |
3706 | bool temp1 = false ; |
3707 | bool temp2 = false ; | |
3708 | bool temp3 = false ; | |
d55e5bfc RD |
3709 | PyObject * obj0 = 0 ; |
3710 | PyObject * obj1 = 0 ; | |
3711 | PyObject * obj2 = 0 ; | |
3712 | PyObject * obj3 = 0 ; | |
3713 | char *kwnames[] = { | |
3714 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3715 | }; | |
3716 | ||
3717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3718 | { | |
3719 | arg1 = wxString_in_helper(obj0); | |
3720 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3721 | temp1 = true; |
d55e5bfc RD |
3722 | } |
3723 | if (obj1) { | |
3724 | { | |
3725 | arg2 = wxString_in_helper(obj1); | |
3726 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3727 | temp2 = true; |
d55e5bfc RD |
3728 | } |
3729 | } | |
3730 | if (obj2) { | |
3731 | { | |
3732 | arg3 = wxString_in_helper(obj2); | |
3733 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3734 | temp3 = true; |
d55e5bfc RD |
3735 | } |
3736 | } | |
3737 | if (obj3) { | |
3738 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3740 | } | |
3741 | { | |
0439c23b | 3742 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3744 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3745 | ||
3746 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3747 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3748 | } |
3749 | { | |
3750 | #if wxUSE_UNICODE | |
3751 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3752 | #else | |
3753 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3754 | #endif | |
3755 | } | |
3756 | { | |
3757 | if (temp1) | |
3758 | delete arg1; | |
3759 | } | |
3760 | { | |
3761 | if (temp2) | |
3762 | delete arg2; | |
3763 | } | |
3764 | { | |
3765 | if (temp3) | |
3766 | delete arg3; | |
3767 | } | |
3768 | return resultobj; | |
3769 | fail: | |
3770 | { | |
3771 | if (temp1) | |
3772 | delete arg1; | |
3773 | } | |
3774 | { | |
3775 | if (temp2) | |
3776 | delete arg2; | |
3777 | } | |
3778 | { | |
3779 | if (temp3) | |
3780 | delete arg3; | |
3781 | } | |
3782 | return NULL; | |
3783 | } | |
3784 | ||
3785 | ||
c32bde28 | 3786 | static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3787 | PyObject *resultobj; |
3788 | wxString *arg1 = 0 ; | |
3789 | wxString *arg2 = 0 ; | |
3790 | int arg3 ; | |
3791 | wxString *arg4 = (wxString *) 0 ; | |
3792 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3793 | int arg6 = (int) -1 ; | |
3794 | int arg7 = (int) -1 ; | |
ae8162c8 | 3795 | bool arg8 = (bool) true ; |
d55e5bfc RD |
3796 | int arg9 = (int) 150 ; |
3797 | int arg10 = (int) 200 ; | |
3798 | wxString result; | |
ae8162c8 RD |
3799 | bool temp1 = false ; |
3800 | bool temp2 = false ; | |
d55e5bfc RD |
3801 | PyObject * obj0 = 0 ; |
3802 | PyObject * obj1 = 0 ; | |
3803 | PyObject * obj2 = 0 ; | |
3804 | PyObject * obj3 = 0 ; | |
3805 | PyObject * obj4 = 0 ; | |
3806 | PyObject * obj5 = 0 ; | |
3807 | PyObject * obj6 = 0 ; | |
3808 | PyObject * obj7 = 0 ; | |
3809 | PyObject * obj8 = 0 ; | |
3810 | char *kwnames[] = { | |
3811 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3812 | }; | |
3813 | ||
3814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3815 | { | |
3816 | arg1 = wxString_in_helper(obj0); | |
3817 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3818 | temp1 = true; |
d55e5bfc RD |
3819 | } |
3820 | { | |
3821 | arg2 = wxString_in_helper(obj1); | |
3822 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3823 | temp2 = true; |
d55e5bfc RD |
3824 | } |
3825 | { | |
3826 | arg3 = PyList_Size(obj2); | |
3827 | arg4 = wxString_LIST_helper(obj2); | |
3828 | if (arg4 == NULL) SWIG_fail; | |
3829 | } | |
3830 | if (obj3) { | |
3831 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3833 | } | |
3834 | if (obj4) { | |
c32bde28 | 3835 | arg6 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
3836 | if (PyErr_Occurred()) SWIG_fail; |
3837 | } | |
3838 | if (obj5) { | |
c32bde28 | 3839 | arg7 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
3840 | if (PyErr_Occurred()) SWIG_fail; |
3841 | } | |
3842 | if (obj6) { | |
c32bde28 | 3843 | arg8 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
3844 | if (PyErr_Occurred()) SWIG_fail; |
3845 | } | |
3846 | if (obj7) { | |
c32bde28 | 3847 | arg9 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
3848 | if (PyErr_Occurred()) SWIG_fail; |
3849 | } | |
3850 | if (obj8) { | |
c32bde28 | 3851 | arg10 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
3852 | if (PyErr_Occurred()) SWIG_fail; |
3853 | } | |
3854 | { | |
0439c23b | 3855 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3857 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3858 | ||
3859 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3860 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3861 | } |
3862 | { | |
3863 | #if wxUSE_UNICODE | |
3864 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3865 | #else | |
3866 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3867 | #endif | |
3868 | } | |
3869 | { | |
3870 | if (temp1) | |
3871 | delete arg1; | |
3872 | } | |
3873 | { | |
3874 | if (temp2) | |
3875 | delete arg2; | |
3876 | } | |
3877 | { | |
3878 | if (arg4) delete [] arg4; | |
3879 | } | |
3880 | return resultobj; | |
3881 | fail: | |
3882 | { | |
3883 | if (temp1) | |
3884 | delete arg1; | |
3885 | } | |
3886 | { | |
3887 | if (temp2) | |
3888 | delete arg2; | |
3889 | } | |
3890 | { | |
3891 | if (arg4) delete [] arg4; | |
3892 | } | |
3893 | return NULL; | |
3894 | } | |
3895 | ||
3896 | ||
c32bde28 | 3897 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3898 | PyObject *resultobj; |
3899 | wxString *arg1 = 0 ; | |
3900 | wxString *arg2 = 0 ; | |
3901 | int arg3 ; | |
3902 | wxString *arg4 = (wxString *) 0 ; | |
3903 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3904 | int arg6 = (int) -1 ; | |
3905 | int arg7 = (int) -1 ; | |
ae8162c8 | 3906 | bool arg8 = (bool) true ; |
d55e5bfc RD |
3907 | int arg9 = (int) 150 ; |
3908 | int arg10 = (int) 200 ; | |
3909 | int result; | |
ae8162c8 RD |
3910 | bool temp1 = false ; |
3911 | bool temp2 = false ; | |
d55e5bfc RD |
3912 | PyObject * obj0 = 0 ; |
3913 | PyObject * obj1 = 0 ; | |
3914 | PyObject * obj2 = 0 ; | |
3915 | PyObject * obj3 = 0 ; | |
3916 | PyObject * obj4 = 0 ; | |
3917 | PyObject * obj5 = 0 ; | |
3918 | PyObject * obj6 = 0 ; | |
3919 | PyObject * obj7 = 0 ; | |
3920 | PyObject * obj8 = 0 ; | |
3921 | char *kwnames[] = { | |
3922 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3923 | }; | |
3924 | ||
3925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3926 | { | |
3927 | arg1 = wxString_in_helper(obj0); | |
3928 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3929 | temp1 = true; |
d55e5bfc RD |
3930 | } |
3931 | { | |
3932 | arg2 = wxString_in_helper(obj1); | |
3933 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3934 | temp2 = true; |
d55e5bfc RD |
3935 | } |
3936 | { | |
3937 | arg3 = PyList_Size(obj2); | |
3938 | arg4 = wxString_LIST_helper(obj2); | |
3939 | if (arg4 == NULL) SWIG_fail; | |
3940 | } | |
3941 | if (obj3) { | |
3942 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3944 | } | |
3945 | if (obj4) { | |
c32bde28 | 3946 | arg6 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
3947 | if (PyErr_Occurred()) SWIG_fail; |
3948 | } | |
3949 | if (obj5) { | |
c32bde28 | 3950 | arg7 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
3951 | if (PyErr_Occurred()) SWIG_fail; |
3952 | } | |
3953 | if (obj6) { | |
c32bde28 | 3954 | arg8 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
3955 | if (PyErr_Occurred()) SWIG_fail; |
3956 | } | |
3957 | if (obj7) { | |
c32bde28 | 3958 | arg9 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
3959 | if (PyErr_Occurred()) SWIG_fail; |
3960 | } | |
3961 | if (obj8) { | |
c32bde28 | 3962 | arg10 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
3963 | if (PyErr_Occurred()) SWIG_fail; |
3964 | } | |
3965 | { | |
0439c23b | 3966 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3968 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3969 | ||
3970 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3971 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 3972 | } |
c32bde28 | 3973 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3974 | { |
3975 | if (temp1) | |
3976 | delete arg1; | |
3977 | } | |
3978 | { | |
3979 | if (temp2) | |
3980 | delete arg2; | |
3981 | } | |
3982 | { | |
3983 | if (arg4) delete [] arg4; | |
3984 | } | |
3985 | return resultobj; | |
3986 | fail: | |
3987 | { | |
3988 | if (temp1) | |
3989 | delete arg1; | |
3990 | } | |
3991 | { | |
3992 | if (temp2) | |
3993 | delete arg2; | |
3994 | } | |
3995 | { | |
3996 | if (arg4) delete [] arg4; | |
3997 | } | |
3998 | return NULL; | |
3999 | } | |
4000 | ||
4001 | ||
c32bde28 | 4002 | static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4003 | PyObject *resultobj; |
4004 | wxString *arg1 = 0 ; | |
4005 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
4006 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4007 | int arg3 = (int) wxOK|wxCENTRE ; | |
4008 | wxWindow *arg4 = (wxWindow *) NULL ; | |
4009 | int arg5 = (int) -1 ; | |
4010 | int arg6 = (int) -1 ; | |
4011 | int result; | |
ae8162c8 RD |
4012 | bool temp1 = false ; |
4013 | bool temp2 = false ; | |
d55e5bfc RD |
4014 | PyObject * obj0 = 0 ; |
4015 | PyObject * obj1 = 0 ; | |
4016 | PyObject * obj2 = 0 ; | |
4017 | PyObject * obj3 = 0 ; | |
4018 | PyObject * obj4 = 0 ; | |
4019 | PyObject * obj5 = 0 ; | |
4020 | char *kwnames[] = { | |
4021 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
4022 | }; | |
4023 | ||
4024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
4025 | { | |
4026 | arg1 = wxString_in_helper(obj0); | |
4027 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4028 | temp1 = true; |
d55e5bfc RD |
4029 | } |
4030 | if (obj1) { | |
4031 | { | |
4032 | arg2 = wxString_in_helper(obj1); | |
4033 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4034 | temp2 = true; |
d55e5bfc RD |
4035 | } |
4036 | } | |
4037 | if (obj2) { | |
c32bde28 | 4038 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4039 | if (PyErr_Occurred()) SWIG_fail; |
4040 | } | |
4041 | if (obj3) { | |
4042 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
4043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4044 | } | |
4045 | if (obj4) { | |
c32bde28 | 4046 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
4047 | if (PyErr_Occurred()) SWIG_fail; |
4048 | } | |
4049 | if (obj5) { | |
c32bde28 | 4050 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
4051 | if (PyErr_Occurred()) SWIG_fail; |
4052 | } | |
4053 | { | |
0439c23b | 4054 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4056 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
4057 | ||
4058 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4059 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4060 | } |
c32bde28 | 4061 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4062 | { |
4063 | if (temp1) | |
4064 | delete arg1; | |
4065 | } | |
4066 | { | |
4067 | if (temp2) | |
4068 | delete arg2; | |
4069 | } | |
4070 | return resultobj; | |
4071 | fail: | |
4072 | { | |
4073 | if (temp1) | |
4074 | delete arg1; | |
4075 | } | |
4076 | { | |
4077 | if (temp2) | |
4078 | delete arg2; | |
4079 | } | |
4080 | return NULL; | |
4081 | } | |
4082 | ||
4083 | ||
c32bde28 | 4084 | static PyObject *_wrap_GetNumberFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4085 | PyObject *resultobj; |
4086 | wxString *arg1 = 0 ; | |
4087 | wxString *arg2 = 0 ; | |
4088 | wxString *arg3 = 0 ; | |
4089 | long arg4 ; | |
4090 | long arg5 = (long) 0 ; | |
4091 | long arg6 = (long) 100 ; | |
4092 | wxWindow *arg7 = (wxWindow *) NULL ; | |
4093 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
4094 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
4095 | long result; | |
ae8162c8 RD |
4096 | bool temp1 = false ; |
4097 | bool temp2 = false ; | |
4098 | bool temp3 = false ; | |
d55e5bfc RD |
4099 | wxPoint temp8 ; |
4100 | PyObject * obj0 = 0 ; | |
4101 | PyObject * obj1 = 0 ; | |
4102 | PyObject * obj2 = 0 ; | |
4103 | PyObject * obj3 = 0 ; | |
4104 | PyObject * obj4 = 0 ; | |
4105 | PyObject * obj5 = 0 ; | |
4106 | PyObject * obj6 = 0 ; | |
4107 | PyObject * obj7 = 0 ; | |
4108 | char *kwnames[] = { | |
4109 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
4110 | }; | |
4111 | ||
4112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4113 | { | |
4114 | arg1 = wxString_in_helper(obj0); | |
4115 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4116 | temp1 = true; |
d55e5bfc RD |
4117 | } |
4118 | { | |
4119 | arg2 = wxString_in_helper(obj1); | |
4120 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4121 | temp2 = true; |
d55e5bfc RD |
4122 | } |
4123 | { | |
4124 | arg3 = wxString_in_helper(obj2); | |
4125 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 4126 | temp3 = true; |
d55e5bfc | 4127 | } |
c32bde28 | 4128 | arg4 = (long)SWIG_As_long(obj3); |
d55e5bfc RD |
4129 | if (PyErr_Occurred()) SWIG_fail; |
4130 | if (obj4) { | |
c32bde28 | 4131 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
4132 | if (PyErr_Occurred()) SWIG_fail; |
4133 | } | |
4134 | if (obj5) { | |
c32bde28 | 4135 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
4136 | if (PyErr_Occurred()) SWIG_fail; |
4137 | } | |
4138 | if (obj6) { | |
4139 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
4140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4141 | } | |
4142 | if (obj7) { | |
4143 | { | |
4144 | arg8 = &temp8; | |
4145 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
4146 | } | |
4147 | } | |
4148 | { | |
0439c23b | 4149 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4151 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
4152 | ||
4153 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4154 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4155 | } |
c32bde28 | 4156 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
4157 | { |
4158 | if (temp1) | |
4159 | delete arg1; | |
4160 | } | |
4161 | { | |
4162 | if (temp2) | |
4163 | delete arg2; | |
4164 | } | |
4165 | { | |
4166 | if (temp3) | |
4167 | delete arg3; | |
4168 | } | |
4169 | return resultobj; | |
4170 | fail: | |
4171 | { | |
4172 | if (temp1) | |
4173 | delete arg1; | |
4174 | } | |
4175 | { | |
4176 | if (temp2) | |
4177 | delete arg2; | |
4178 | } | |
4179 | { | |
4180 | if (temp3) | |
4181 | delete arg3; | |
4182 | } | |
4183 | return NULL; | |
4184 | } | |
4185 | ||
4186 | ||
c32bde28 | 4187 | static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4188 | PyObject *resultobj; |
4189 | bool result; | |
4190 | char *kwnames[] = { | |
4191 | NULL | |
4192 | }; | |
4193 | ||
4194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
4195 | { | |
0439c23b | 4196 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4198 | result = (bool)wxColourDisplay(); | |
4199 | ||
4200 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4201 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4202 | } |
4203 | { | |
4204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4205 | } | |
4206 | return resultobj; | |
4207 | fail: | |
4208 | return NULL; | |
4209 | } | |
4210 | ||
4211 | ||
c32bde28 | 4212 | static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4213 | PyObject *resultobj; |
4214 | int result; | |
4215 | char *kwnames[] = { | |
4216 | NULL | |
4217 | }; | |
4218 | ||
4219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
4220 | { | |
0439c23b | 4221 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4223 | result = (int)wxDisplayDepth(); | |
4224 | ||
4225 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4226 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4227 | } |
c32bde28 | 4228 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4229 | return resultobj; |
4230 | fail: | |
4231 | return NULL; | |
4232 | } | |
4233 | ||
4234 | ||
c32bde28 | 4235 | static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4236 | PyObject *resultobj; |
4237 | int result; | |
4238 | char *kwnames[] = { | |
4239 | NULL | |
4240 | }; | |
4241 | ||
4242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
4243 | { | |
0439c23b | 4244 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4246 | result = (int)wxGetDisplayDepth(); | |
4247 | ||
4248 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4249 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4250 | } |
c32bde28 | 4251 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4252 | return resultobj; |
4253 | fail: | |
4254 | return NULL; | |
4255 | } | |
4256 | ||
4257 | ||
c32bde28 | 4258 | static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4259 | PyObject *resultobj; |
4260 | int *arg1 = (int *) 0 ; | |
4261 | int *arg2 = (int *) 0 ; | |
4262 | int temp1 ; | |
c32bde28 | 4263 | int res1 = 0 ; |
d55e5bfc | 4264 | int temp2 ; |
c32bde28 | 4265 | int res2 = 0 ; |
d55e5bfc RD |
4266 | char *kwnames[] = { |
4267 | NULL | |
4268 | }; | |
4269 | ||
c32bde28 RD |
4270 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
4271 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
4272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; |
4273 | { | |
0439c23b | 4274 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4276 | wxDisplaySize(arg1,arg2); | |
4277 | ||
4278 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4279 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4280 | } |
4281 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
4282 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
4283 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
4284 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4285 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
4286 | return resultobj; |
4287 | fail: | |
4288 | return NULL; | |
4289 | } | |
4290 | ||
4291 | ||
c32bde28 | 4292 | static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4293 | PyObject *resultobj; |
4294 | wxSize result; | |
4295 | char *kwnames[] = { | |
4296 | NULL | |
4297 | }; | |
4298 | ||
4299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
4300 | { | |
0439c23b | 4301 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4303 | result = wxGetDisplaySize(); | |
4304 | ||
4305 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4306 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4307 | } |
4308 | { | |
4309 | wxSize * resultptr; | |
4310 | resultptr = new wxSize((wxSize &) result); | |
4311 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4312 | } | |
4313 | return resultobj; | |
4314 | fail: | |
4315 | return NULL; | |
4316 | } | |
4317 | ||
4318 | ||
c32bde28 | 4319 | static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4320 | PyObject *resultobj; |
4321 | int *arg1 = (int *) 0 ; | |
4322 | int *arg2 = (int *) 0 ; | |
4323 | int temp1 ; | |
c32bde28 | 4324 | int res1 = 0 ; |
d55e5bfc | 4325 | int temp2 ; |
c32bde28 | 4326 | int res2 = 0 ; |
d55e5bfc RD |
4327 | char *kwnames[] = { |
4328 | NULL | |
4329 | }; | |
4330 | ||
c32bde28 RD |
4331 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
4332 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
4333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; |
4334 | { | |
0439c23b | 4335 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4337 | wxDisplaySizeMM(arg1,arg2); | |
4338 | ||
4339 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4340 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4341 | } |
4342 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
4343 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
4344 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
4345 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4346 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
4347 | return resultobj; |
4348 | fail: | |
4349 | return NULL; | |
4350 | } | |
4351 | ||
4352 | ||
c32bde28 | 4353 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4354 | PyObject *resultobj; |
4355 | wxSize result; | |
4356 | char *kwnames[] = { | |
4357 | NULL | |
4358 | }; | |
4359 | ||
4360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
4361 | { | |
0439c23b | 4362 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4364 | result = wxGetDisplaySizeMM(); | |
4365 | ||
4366 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4367 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4368 | } |
4369 | { | |
4370 | wxSize * resultptr; | |
4371 | resultptr = new wxSize((wxSize &) result); | |
4372 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4373 | } | |
4374 | return resultobj; | |
4375 | fail: | |
4376 | return NULL; | |
4377 | } | |
4378 | ||
4379 | ||
c32bde28 | 4380 | static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4381 | PyObject *resultobj; |
4382 | int *arg1 = (int *) 0 ; | |
4383 | int *arg2 = (int *) 0 ; | |
4384 | int *arg3 = (int *) 0 ; | |
4385 | int *arg4 = (int *) 0 ; | |
4386 | int temp1 ; | |
c32bde28 | 4387 | int res1 = 0 ; |
d55e5bfc | 4388 | int temp2 ; |
c32bde28 | 4389 | int res2 = 0 ; |
d55e5bfc | 4390 | int temp3 ; |
c32bde28 | 4391 | int res3 = 0 ; |
d55e5bfc | 4392 | int temp4 ; |
c32bde28 | 4393 | int res4 = 0 ; |
d55e5bfc RD |
4394 | char *kwnames[] = { |
4395 | NULL | |
4396 | }; | |
4397 | ||
c32bde28 RD |
4398 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
4399 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
4400 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
4401 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
4402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; |
4403 | { | |
0439c23b | 4404 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4406 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
4407 | ||
4408 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4409 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4410 | } |
4411 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
4412 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
4413 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
4414 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4415 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
4416 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
4417 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
4418 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
4419 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
4420 | return resultobj; |
4421 | fail: | |
4422 | return NULL; | |
4423 | } | |
4424 | ||
4425 | ||
c32bde28 | 4426 | static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4427 | PyObject *resultobj; |
4428 | wxRect result; | |
4429 | char *kwnames[] = { | |
4430 | NULL | |
4431 | }; | |
4432 | ||
4433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
4434 | { | |
0439c23b | 4435 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4437 | result = wxGetClientDisplayRect(); | |
4438 | ||
4439 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4440 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4441 | } |
4442 | { | |
4443 | wxRect * resultptr; | |
4444 | resultptr = new wxRect((wxRect &) result); | |
4445 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4446 | } | |
4447 | return resultobj; | |
4448 | fail: | |
4449 | return NULL; | |
4450 | } | |
4451 | ||
4452 | ||
c32bde28 | 4453 | static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4454 | PyObject *resultobj; |
4455 | wxCursor *arg1 = 0 ; | |
4456 | PyObject * obj0 = 0 ; | |
4457 | char *kwnames[] = { | |
4458 | (char *) "cursor", NULL | |
4459 | }; | |
4460 | ||
4461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
4462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4463 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4464 | SWIG_fail; | |
4465 | if (arg1 == NULL) { | |
4466 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4467 | SWIG_fail; | |
4468 | } | |
4469 | { | |
0439c23b | 4470 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4472 | wxSetCursor(*arg1); | |
4473 | ||
4474 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4475 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4476 | } |
4477 | Py_INCREF(Py_None); resultobj = Py_None; | |
4478 | return resultobj; | |
4479 | fail: | |
4480 | return NULL; | |
4481 | } | |
4482 | ||
4483 | ||
c32bde28 | 4484 | static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4485 | PyObject *resultobj; |
4486 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4487 | PyObject * obj0 = 0 ; | |
4488 | char *kwnames[] = { | |
4489 | (char *) "cursor", NULL | |
4490 | }; | |
4491 | ||
4492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
4493 | if (obj0) { | |
4494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4496 | } | |
4497 | { | |
0439c23b | 4498 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4500 | wxBeginBusyCursor(arg1); | |
4501 | ||
4502 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4503 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4504 | } |
4505 | Py_INCREF(Py_None); resultobj = Py_None; | |
4506 | return resultobj; | |
4507 | fail: | |
4508 | return NULL; | |
4509 | } | |
4510 | ||
4511 | ||
c32bde28 | 4512 | static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4513 | PyObject *resultobj; |
4514 | wxWindow *result; | |
4515 | char *kwnames[] = { | |
4516 | NULL | |
4517 | }; | |
4518 | ||
4519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
4520 | { | |
0439c23b | 4521 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4523 | result = (wxWindow *)wxGetActiveWindow(); | |
4524 | ||
4525 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4526 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4527 | } |
4528 | { | |
412d302d | 4529 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4530 | } |
4531 | return resultobj; | |
4532 | fail: | |
4533 | return NULL; | |
4534 | } | |
4535 | ||
4536 | ||
c32bde28 | 4537 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4538 | PyObject *resultobj; |
4539 | wxPoint *arg1 = 0 ; | |
4540 | wxWindow *result; | |
4541 | wxPoint temp1 ; | |
4542 | PyObject * obj0 = 0 ; | |
4543 | char *kwnames[] = { | |
4544 | (char *) "pt", NULL | |
4545 | }; | |
4546 | ||
4547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4548 | { | |
4549 | arg1 = &temp1; | |
4550 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4551 | } | |
4552 | { | |
0439c23b | 4553 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4555 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
4556 | ||
4557 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4558 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4559 | } |
4560 | { | |
412d302d | 4561 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4562 | } |
4563 | return resultobj; | |
4564 | fail: | |
4565 | return NULL; | |
4566 | } | |
4567 | ||
4568 | ||
c32bde28 | 4569 | static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4570 | PyObject *resultobj; |
4571 | wxPoint *arg1 = 0 ; | |
4572 | wxWindow *result; | |
4573 | wxPoint temp1 ; | |
4574 | PyObject * obj0 = 0 ; | |
4575 | char *kwnames[] = { | |
4576 | (char *) "pt", NULL | |
4577 | }; | |
4578 | ||
4579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4580 | { | |
4581 | arg1 = &temp1; | |
4582 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4583 | } | |
4584 | { | |
0439c23b | 4585 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4587 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
4588 | ||
4589 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4590 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4591 | } |
4592 | { | |
412d302d | 4593 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4594 | } |
4595 | return resultobj; | |
4596 | fail: | |
4597 | return NULL; | |
4598 | } | |
4599 | ||
4600 | ||
c32bde28 | 4601 | static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4602 | PyObject *resultobj; |
4603 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4604 | wxWindow *result; | |
4605 | PyObject * obj0 = 0 ; | |
4606 | char *kwnames[] = { | |
4607 | (char *) "win", NULL | |
4608 | }; | |
4609 | ||
4610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
4611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4613 | { | |
0439c23b | 4614 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4616 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
4617 | ||
4618 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4619 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4620 | } |
4621 | { | |
412d302d | 4622 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4623 | } |
4624 | return resultobj; | |
4625 | fail: | |
4626 | return NULL; | |
4627 | } | |
4628 | ||
4629 | ||
c32bde28 | 4630 | static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4631 | PyObject *resultobj; |
4632 | int arg1 ; | |
4633 | bool result; | |
4634 | PyObject * obj0 = 0 ; | |
4635 | char *kwnames[] = { | |
4636 | (char *) "key", NULL | |
4637 | }; | |
4638 | ||
4639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; | |
c32bde28 | 4640 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
4641 | if (PyErr_Occurred()) SWIG_fail; |
4642 | { | |
0439c23b | 4643 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4645 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
4646 | ||
4647 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4648 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4649 | } |
4650 | { | |
4651 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4652 | } | |
4653 | return resultobj; | |
4654 | fail: | |
4655 | return NULL; | |
4656 | } | |
4657 | ||
4658 | ||
c32bde28 | 4659 | static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4660 | PyObject *resultobj; |
4661 | char *kwnames[] = { | |
4662 | NULL | |
4663 | }; | |
4664 | ||
4665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4666 | { | |
0439c23b | 4667 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4669 | wxWakeUpMainThread(); | |
4670 | ||
4671 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4672 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4673 | } |
4674 | Py_INCREF(Py_None); resultobj = Py_None; | |
4675 | return resultobj; | |
4676 | fail: | |
4677 | return NULL; | |
4678 | } | |
4679 | ||
4680 | ||
c32bde28 | 4681 | static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4682 | PyObject *resultobj; |
4683 | char *kwnames[] = { | |
4684 | NULL | |
4685 | }; | |
4686 | ||
4687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4688 | { | |
0439c23b | 4689 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4691 | wxMutexGuiEnter(); | |
4692 | ||
4693 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4694 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4695 | } |
4696 | Py_INCREF(Py_None); resultobj = Py_None; | |
4697 | return resultobj; | |
4698 | fail: | |
4699 | return NULL; | |
4700 | } | |
4701 | ||
4702 | ||
c32bde28 | 4703 | static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4704 | PyObject *resultobj; |
4705 | char *kwnames[] = { | |
4706 | NULL | |
4707 | }; | |
4708 | ||
4709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4710 | { | |
0439c23b | 4711 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4713 | wxMutexGuiLeave(); | |
4714 | ||
4715 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4716 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4717 | } |
4718 | Py_INCREF(Py_None); resultobj = Py_None; | |
4719 | return resultobj; | |
4720 | fail: | |
4721 | return NULL; | |
4722 | } | |
4723 | ||
4724 | ||
c32bde28 | 4725 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4726 | PyObject *resultobj; |
4727 | wxMutexGuiLocker *result; | |
4728 | char *kwnames[] = { | |
4729 | NULL | |
4730 | }; | |
4731 | ||
4732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4733 | { | |
0439c23b | 4734 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4736 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4737 | ||
4738 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4739 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4740 | } |
4741 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); | |
4742 | return resultobj; | |
4743 | fail: | |
4744 | return NULL; | |
4745 | } | |
4746 | ||
4747 | ||
c32bde28 | 4748 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4749 | PyObject *resultobj; |
4750 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4751 | PyObject * obj0 = 0 ; | |
4752 | char *kwnames[] = { | |
4753 | (char *) "self", NULL | |
4754 | }; | |
4755 | ||
4756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
4757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker, | |
4758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4759 | { | |
4760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4761 | delete arg1; | |
4762 | ||
4763 | wxPyEndAllowThreads(__tstate); | |
4764 | if (PyErr_Occurred()) SWIG_fail; | |
4765 | } | |
4766 | Py_INCREF(Py_None); resultobj = Py_None; | |
4767 | return resultobj; | |
4768 | fail: | |
4769 | return NULL; | |
4770 | } | |
4771 | ||
4772 | ||
c32bde28 | 4773 | static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4774 | PyObject *obj; |
4775 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4776 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4777 | Py_INCREF(obj); | |
4778 | return Py_BuildValue((char *)""); | |
4779 | } | |
c32bde28 | 4780 | static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4781 | PyObject *resultobj; |
4782 | bool result; | |
4783 | char *kwnames[] = { | |
4784 | NULL | |
4785 | }; | |
4786 | ||
4787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4788 | { | |
4789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4790 | result = (bool)wxThread_IsMain(); | |
4791 | ||
4792 | wxPyEndAllowThreads(__tstate); | |
4793 | if (PyErr_Occurred()) SWIG_fail; | |
4794 | } | |
4795 | { | |
4796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4797 | } | |
4798 | return resultobj; | |
4799 | fail: | |
4800 | return NULL; | |
4801 | } | |
4802 | ||
4803 | ||
c32bde28 | 4804 | static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4805 | PyObject *resultobj; |
4806 | wxString *arg1 = 0 ; | |
4807 | wxToolTip *result; | |
ae8162c8 | 4808 | bool temp1 = false ; |
d55e5bfc RD |
4809 | PyObject * obj0 = 0 ; |
4810 | char *kwnames[] = { | |
4811 | (char *) "tip", NULL | |
4812 | }; | |
4813 | ||
4814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4815 | { | |
4816 | arg1 = wxString_in_helper(obj0); | |
4817 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4818 | temp1 = true; |
d55e5bfc RD |
4819 | } |
4820 | { | |
0439c23b | 4821 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4823 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4824 | ||
4825 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4826 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4827 | } |
4828 | { | |
412d302d | 4829 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
4830 | } |
4831 | { | |
4832 | if (temp1) | |
4833 | delete arg1; | |
4834 | } | |
4835 | return resultobj; | |
4836 | fail: | |
4837 | { | |
4838 | if (temp1) | |
4839 | delete arg1; | |
4840 | } | |
4841 | return NULL; | |
4842 | } | |
4843 | ||
4844 | ||
c32bde28 | 4845 | static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4846 | PyObject *resultobj; |
4847 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4848 | wxString *arg2 = 0 ; | |
ae8162c8 | 4849 | bool temp2 = false ; |
d55e5bfc RD |
4850 | PyObject * obj0 = 0 ; |
4851 | PyObject * obj1 = 0 ; | |
4852 | char *kwnames[] = { | |
4853 | (char *) "self",(char *) "tip", NULL | |
4854 | }; | |
4855 | ||
4856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
4857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4859 | { | |
4860 | arg2 = wxString_in_helper(obj1); | |
4861 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4862 | temp2 = true; |
d55e5bfc RD |
4863 | } |
4864 | { | |
4865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4866 | (arg1)->SetTip((wxString const &)*arg2); | |
4867 | ||
4868 | wxPyEndAllowThreads(__tstate); | |
4869 | if (PyErr_Occurred()) SWIG_fail; | |
4870 | } | |
4871 | Py_INCREF(Py_None); resultobj = Py_None; | |
4872 | { | |
4873 | if (temp2) | |
4874 | delete arg2; | |
4875 | } | |
4876 | return resultobj; | |
4877 | fail: | |
4878 | { | |
4879 | if (temp2) | |
4880 | delete arg2; | |
4881 | } | |
4882 | return NULL; | |
4883 | } | |
4884 | ||
4885 | ||
c32bde28 | 4886 | static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4887 | PyObject *resultobj; |
4888 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4889 | wxString result; | |
4890 | PyObject * obj0 = 0 ; | |
4891 | char *kwnames[] = { | |
4892 | (char *) "self", NULL | |
4893 | }; | |
4894 | ||
4895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
4896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4898 | { | |
4899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4900 | result = (arg1)->GetTip(); | |
4901 | ||
4902 | wxPyEndAllowThreads(__tstate); | |
4903 | if (PyErr_Occurred()) SWIG_fail; | |
4904 | } | |
4905 | { | |
4906 | #if wxUSE_UNICODE | |
4907 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4908 | #else | |
4909 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4910 | #endif | |
4911 | } | |
4912 | return resultobj; | |
4913 | fail: | |
4914 | return NULL; | |
4915 | } | |
4916 | ||
4917 | ||
c32bde28 | 4918 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4919 | PyObject *resultobj; |
4920 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4921 | wxWindow *result; | |
4922 | PyObject * obj0 = 0 ; | |
4923 | char *kwnames[] = { | |
4924 | (char *) "self", NULL | |
4925 | }; | |
4926 | ||
4927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
4928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4930 | { | |
4931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4932 | result = (wxWindow *)(arg1)->GetWindow(); | |
4933 | ||
4934 | wxPyEndAllowThreads(__tstate); | |
4935 | if (PyErr_Occurred()) SWIG_fail; | |
4936 | } | |
4937 | { | |
412d302d | 4938 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4939 | } |
4940 | return resultobj; | |
4941 | fail: | |
4942 | return NULL; | |
4943 | } | |
4944 | ||
4945 | ||
c32bde28 | 4946 | static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4947 | PyObject *resultobj; |
4948 | bool arg1 ; | |
4949 | PyObject * obj0 = 0 ; | |
4950 | char *kwnames[] = { | |
4951 | (char *) "flag", NULL | |
4952 | }; | |
4953 | ||
4954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
c32bde28 | 4955 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
4956 | if (PyErr_Occurred()) SWIG_fail; |
4957 | { | |
4958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4959 | wxToolTip::Enable(arg1); | |
4960 | ||
4961 | wxPyEndAllowThreads(__tstate); | |
4962 | if (PyErr_Occurred()) SWIG_fail; | |
4963 | } | |
4964 | Py_INCREF(Py_None); resultobj = Py_None; | |
4965 | return resultobj; | |
4966 | fail: | |
4967 | return NULL; | |
4968 | } | |
4969 | ||
4970 | ||
c32bde28 | 4971 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4972 | PyObject *resultobj; |
4973 | long arg1 ; | |
4974 | PyObject * obj0 = 0 ; | |
4975 | char *kwnames[] = { | |
4976 | (char *) "milliseconds", NULL | |
4977 | }; | |
4978 | ||
4979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; | |
c32bde28 | 4980 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
4981 | if (PyErr_Occurred()) SWIG_fail; |
4982 | { | |
4983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4984 | wxToolTip::SetDelay(arg1); | |
4985 | ||
4986 | wxPyEndAllowThreads(__tstate); | |
4987 | if (PyErr_Occurred()) SWIG_fail; | |
4988 | } | |
4989 | Py_INCREF(Py_None); resultobj = Py_None; | |
4990 | return resultobj; | |
4991 | fail: | |
4992 | return NULL; | |
4993 | } | |
4994 | ||
4995 | ||
c32bde28 | 4996 | static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4997 | PyObject *obj; |
4998 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4999 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
5000 | Py_INCREF(obj); | |
5001 | return Py_BuildValue((char *)""); | |
5002 | } | |
c32bde28 | 5003 | static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5004 | PyObject *resultobj; |
5005 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5006 | wxSize *arg2 = 0 ; | |
5007 | wxCaret *result; | |
5008 | wxSize temp2 ; | |
5009 | PyObject * obj0 = 0 ; | |
5010 | PyObject * obj1 = 0 ; | |
5011 | char *kwnames[] = { | |
5012 | (char *) "window",(char *) "size", NULL | |
5013 | }; | |
5014 | ||
5015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
5016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5018 | { | |
5019 | arg2 = &temp2; | |
5020 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5021 | } | |
5022 | { | |
0439c23b | 5023 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5025 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
5026 | ||
5027 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5028 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5029 | } |
5030 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); | |
5031 | return resultobj; | |
5032 | fail: | |
5033 | return NULL; | |
5034 | } | |
5035 | ||
5036 | ||
c32bde28 | 5037 | static PyObject *_wrap_delete_Caret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5038 | PyObject *resultobj; |
5039 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5040 | PyObject * obj0 = 0 ; | |
5041 | char *kwnames[] = { | |
5042 | (char *) "self", NULL | |
5043 | }; | |
5044 | ||
5045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
5046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5048 | { | |
5049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5050 | delete arg1; | |
5051 | ||
5052 | wxPyEndAllowThreads(__tstate); | |
5053 | if (PyErr_Occurred()) SWIG_fail; | |
5054 | } | |
5055 | Py_INCREF(Py_None); resultobj = Py_None; | |
5056 | return resultobj; | |
5057 | fail: | |
5058 | return NULL; | |
5059 | } | |
5060 | ||
5061 | ||
c32bde28 | 5062 | static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5063 | PyObject *resultobj; |
5064 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5065 | bool result; | |
5066 | PyObject * obj0 = 0 ; | |
5067 | char *kwnames[] = { | |
5068 | (char *) "self", NULL | |
5069 | }; | |
5070 | ||
5071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
5072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5074 | { | |
5075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5076 | result = (bool)(arg1)->IsOk(); | |
5077 | ||
5078 | wxPyEndAllowThreads(__tstate); | |
5079 | if (PyErr_Occurred()) SWIG_fail; | |
5080 | } | |
5081 | { | |
5082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5083 | } | |
5084 | return resultobj; | |
5085 | fail: | |
5086 | return NULL; | |
5087 | } | |
5088 | ||
5089 | ||
c32bde28 | 5090 | static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5091 | PyObject *resultobj; |
5092 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5093 | bool result; | |
5094 | PyObject * obj0 = 0 ; | |
5095 | char *kwnames[] = { | |
5096 | (char *) "self", NULL | |
5097 | }; | |
5098 | ||
5099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
5100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5102 | { | |
5103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5104 | result = (bool)(arg1)->IsVisible(); | |
5105 | ||
5106 | wxPyEndAllowThreads(__tstate); | |
5107 | if (PyErr_Occurred()) SWIG_fail; | |
5108 | } | |
5109 | { | |
5110 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5111 | } | |
5112 | return resultobj; | |
5113 | fail: | |
5114 | return NULL; | |
5115 | } | |
5116 | ||
5117 | ||
c32bde28 | 5118 | static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5119 | PyObject *resultobj; |
5120 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5121 | wxPoint result; | |
5122 | PyObject * obj0 = 0 ; | |
5123 | char *kwnames[] = { | |
5124 | (char *) "self", NULL | |
5125 | }; | |
5126 | ||
5127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
5128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5130 | { | |
5131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5132 | result = (arg1)->GetPosition(); | |
5133 | ||
5134 | wxPyEndAllowThreads(__tstate); | |
5135 | if (PyErr_Occurred()) SWIG_fail; | |
5136 | } | |
5137 | { | |
5138 | wxPoint * resultptr; | |
5139 | resultptr = new wxPoint((wxPoint &) result); | |
5140 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
5141 | } | |
5142 | return resultobj; | |
5143 | fail: | |
5144 | return NULL; | |
5145 | } | |
5146 | ||
5147 | ||
c32bde28 | 5148 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5149 | PyObject *resultobj; |
5150 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5151 | int *arg2 = (int *) 0 ; | |
5152 | int *arg3 = (int *) 0 ; | |
5153 | int temp2 ; | |
c32bde28 | 5154 | int res2 = 0 ; |
d55e5bfc | 5155 | int temp3 ; |
c32bde28 | 5156 | int res3 = 0 ; |
d55e5bfc RD |
5157 | PyObject * obj0 = 0 ; |
5158 | char *kwnames[] = { | |
5159 | (char *) "self", NULL | |
5160 | }; | |
5161 | ||
c32bde28 RD |
5162 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5163 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; |
5165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5167 | { | |
5168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5169 | (arg1)->GetPosition(arg2,arg3); | |
5170 | ||
5171 | wxPyEndAllowThreads(__tstate); | |
5172 | if (PyErr_Occurred()) SWIG_fail; | |
5173 | } | |
5174 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
5175 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5176 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5177 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5178 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5179 | return resultobj; |
5180 | fail: | |
5181 | return NULL; | |
5182 | } | |
5183 | ||
5184 | ||
c32bde28 | 5185 | static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5186 | PyObject *resultobj; |
5187 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5188 | wxSize result; | |
5189 | PyObject * obj0 = 0 ; | |
5190 | char *kwnames[] = { | |
5191 | (char *) "self", NULL | |
5192 | }; | |
5193 | ||
5194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; | |
5195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5197 | { | |
5198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5199 | result = (arg1)->GetSize(); | |
5200 | ||
5201 | wxPyEndAllowThreads(__tstate); | |
5202 | if (PyErr_Occurred()) SWIG_fail; | |
5203 | } | |
5204 | { | |
5205 | wxSize * resultptr; | |
5206 | resultptr = new wxSize((wxSize &) result); | |
5207 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
5208 | } | |
5209 | return resultobj; | |
5210 | fail: | |
5211 | return NULL; | |
5212 | } | |
5213 | ||
5214 | ||
c32bde28 | 5215 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5216 | PyObject *resultobj; |
5217 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5218 | int *arg2 = (int *) 0 ; | |
5219 | int *arg3 = (int *) 0 ; | |
5220 | int temp2 ; | |
c32bde28 | 5221 | int res2 = 0 ; |
d55e5bfc | 5222 | int temp3 ; |
c32bde28 | 5223 | int res3 = 0 ; |
d55e5bfc RD |
5224 | PyObject * obj0 = 0 ; |
5225 | char *kwnames[] = { | |
5226 | (char *) "self", NULL | |
5227 | }; | |
5228 | ||
c32bde28 RD |
5229 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5230 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; |
5232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5234 | { | |
5235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5236 | (arg1)->GetSize(arg2,arg3); | |
5237 | ||
5238 | wxPyEndAllowThreads(__tstate); | |
5239 | if (PyErr_Occurred()) SWIG_fail; | |
5240 | } | |
5241 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
5242 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5243 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5244 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5245 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5246 | return resultobj; |
5247 | fail: | |
5248 | return NULL; | |
5249 | } | |
5250 | ||
5251 | ||
c32bde28 | 5252 | static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5253 | PyObject *resultobj; |
5254 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5255 | wxWindow *result; | |
5256 | PyObject * obj0 = 0 ; | |
5257 | char *kwnames[] = { | |
5258 | (char *) "self", NULL | |
5259 | }; | |
5260 | ||
5261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
5262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5264 | { | |
5265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5266 | result = (wxWindow *)(arg1)->GetWindow(); | |
5267 | ||
5268 | wxPyEndAllowThreads(__tstate); | |
5269 | if (PyErr_Occurred()) SWIG_fail; | |
5270 | } | |
5271 | { | |
412d302d | 5272 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
5273 | } |
5274 | return resultobj; | |
5275 | fail: | |
5276 | return NULL; | |
5277 | } | |
5278 | ||
5279 | ||
c32bde28 | 5280 | static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5281 | PyObject *resultobj; |
5282 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5283 | int arg2 ; | |
5284 | int arg3 ; | |
5285 | PyObject * obj0 = 0 ; | |
5286 | PyObject * obj1 = 0 ; | |
5287 | PyObject * obj2 = 0 ; | |
5288 | char *kwnames[] = { | |
5289 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5290 | }; | |
5291 | ||
5292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5295 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5296 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5297 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5298 | if (PyErr_Occurred()) SWIG_fail; |
5299 | { | |
5300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5301 | (arg1)->Move(arg2,arg3); | |
5302 | ||
5303 | wxPyEndAllowThreads(__tstate); | |
5304 | if (PyErr_Occurred()) SWIG_fail; | |
5305 | } | |
5306 | Py_INCREF(Py_None); resultobj = Py_None; | |
5307 | return resultobj; | |
5308 | fail: | |
5309 | return NULL; | |
5310 | } | |
5311 | ||
5312 | ||
c32bde28 | 5313 | static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5314 | PyObject *resultobj; |
5315 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5316 | wxPoint *arg2 = 0 ; | |
5317 | wxPoint temp2 ; | |
5318 | PyObject * obj0 = 0 ; | |
5319 | PyObject * obj1 = 0 ; | |
5320 | char *kwnames[] = { | |
5321 | (char *) "self",(char *) "pt", NULL | |
5322 | }; | |
5323 | ||
5324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
5325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5327 | { | |
5328 | arg2 = &temp2; | |
5329 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5330 | } | |
5331 | { | |
5332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5333 | (arg1)->Move((wxPoint const &)*arg2); | |
5334 | ||
5335 | wxPyEndAllowThreads(__tstate); | |
5336 | if (PyErr_Occurred()) SWIG_fail; | |
5337 | } | |
5338 | Py_INCREF(Py_None); resultobj = Py_None; | |
5339 | return resultobj; | |
5340 | fail: | |
5341 | return NULL; | |
5342 | } | |
5343 | ||
5344 | ||
c32bde28 | 5345 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5346 | PyObject *resultobj; |
5347 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5348 | int arg2 ; | |
5349 | int arg3 ; | |
5350 | PyObject * obj0 = 0 ; | |
5351 | PyObject * obj1 = 0 ; | |
5352 | PyObject * obj2 = 0 ; | |
5353 | char *kwnames[] = { | |
5354 | (char *) "self",(char *) "width",(char *) "height", NULL | |
5355 | }; | |
5356 | ||
5357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5360 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5361 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5362 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5363 | if (PyErr_Occurred()) SWIG_fail; |
5364 | { | |
5365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5366 | (arg1)->SetSize(arg2,arg3); | |
5367 | ||
5368 | wxPyEndAllowThreads(__tstate); | |
5369 | if (PyErr_Occurred()) SWIG_fail; | |
5370 | } | |
5371 | Py_INCREF(Py_None); resultobj = Py_None; | |
5372 | return resultobj; | |
5373 | fail: | |
5374 | return NULL; | |
5375 | } | |
5376 | ||
5377 | ||
c32bde28 | 5378 | static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5379 | PyObject *resultobj; |
5380 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5381 | wxSize *arg2 = 0 ; | |
5382 | wxSize temp2 ; | |
5383 | PyObject * obj0 = 0 ; | |
5384 | PyObject * obj1 = 0 ; | |
5385 | char *kwnames[] = { | |
5386 | (char *) "self",(char *) "size", NULL | |
5387 | }; | |
5388 | ||
5389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
5390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5392 | { | |
5393 | arg2 = &temp2; | |
5394 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5395 | } | |
5396 | { | |
5397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5398 | (arg1)->SetSize((wxSize const &)*arg2); | |
5399 | ||
5400 | wxPyEndAllowThreads(__tstate); | |
5401 | if (PyErr_Occurred()) SWIG_fail; | |
5402 | } | |
5403 | Py_INCREF(Py_None); resultobj = Py_None; | |
5404 | return resultobj; | |
5405 | fail: | |
5406 | return NULL; | |
5407 | } | |
5408 | ||
5409 | ||
c32bde28 | 5410 | static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5411 | PyObject *resultobj; |
5412 | wxCaret *arg1 = (wxCaret *) 0 ; | |
ae8162c8 | 5413 | int arg2 = (int) true ; |
d55e5bfc RD |
5414 | PyObject * obj0 = 0 ; |
5415 | PyObject * obj1 = 0 ; | |
5416 | char *kwnames[] = { | |
5417 | (char *) "self",(char *) "show", NULL | |
5418 | }; | |
5419 | ||
5420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; | |
5421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5423 | if (obj1) { | |
c32bde28 | 5424 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5425 | if (PyErr_Occurred()) SWIG_fail; |
5426 | } | |
5427 | { | |
5428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5429 | (arg1)->Show(arg2); | |
5430 | ||
5431 | wxPyEndAllowThreads(__tstate); | |
5432 | if (PyErr_Occurred()) SWIG_fail; | |
5433 | } | |
5434 | Py_INCREF(Py_None); resultobj = Py_None; | |
5435 | return resultobj; | |
5436 | fail: | |
5437 | return NULL; | |
5438 | } | |
5439 | ||
5440 | ||
c32bde28 | 5441 | static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5442 | PyObject *resultobj; |
5443 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5444 | PyObject * obj0 = 0 ; | |
5445 | char *kwnames[] = { | |
5446 | (char *) "self", NULL | |
5447 | }; | |
5448 | ||
5449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
5450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5452 | { | |
5453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5454 | (arg1)->Hide(); | |
5455 | ||
5456 | wxPyEndAllowThreads(__tstate); | |
5457 | if (PyErr_Occurred()) SWIG_fail; | |
5458 | } | |
5459 | Py_INCREF(Py_None); resultobj = Py_None; | |
5460 | return resultobj; | |
5461 | fail: | |
5462 | return NULL; | |
5463 | } | |
5464 | ||
5465 | ||
c32bde28 | 5466 | static PyObject * Caret_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5467 | PyObject *obj; |
5468 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5469 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
5470 | Py_INCREF(obj); | |
5471 | return Py_BuildValue((char *)""); | |
5472 | } | |
c32bde28 | 5473 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5474 | PyObject *resultobj; |
5475 | int result; | |
5476 | char *kwnames[] = { | |
5477 | NULL | |
5478 | }; | |
5479 | ||
5480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
5481 | { | |
5482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5483 | result = (int)wxCaret_GetBlinkTime(); | |
5484 | ||
5485 | wxPyEndAllowThreads(__tstate); | |
5486 | if (PyErr_Occurred()) SWIG_fail; | |
5487 | } | |
c32bde28 | 5488 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5489 | return resultobj; |
5490 | fail: | |
5491 | return NULL; | |
5492 | } | |
5493 | ||
5494 | ||
c32bde28 | 5495 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5496 | PyObject *resultobj; |
5497 | int arg1 ; | |
5498 | PyObject * obj0 = 0 ; | |
5499 | char *kwnames[] = { | |
5500 | (char *) "milliseconds", NULL | |
5501 | }; | |
5502 | ||
5503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; | |
c32bde28 | 5504 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
5505 | if (PyErr_Occurred()) SWIG_fail; |
5506 | { | |
5507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5508 | wxCaret_SetBlinkTime(arg1); | |
5509 | ||
5510 | wxPyEndAllowThreads(__tstate); | |
5511 | if (PyErr_Occurred()) SWIG_fail; | |
5512 | } | |
5513 | Py_INCREF(Py_None); resultobj = Py_None; | |
5514 | return resultobj; | |
5515 | fail: | |
5516 | return NULL; | |
5517 | } | |
5518 | ||
5519 | ||
c32bde28 | 5520 | static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5521 | PyObject *resultobj; |
5522 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
5523 | wxBusyCursor *result; | |
5524 | PyObject * obj0 = 0 ; | |
5525 | char *kwnames[] = { | |
5526 | (char *) "cursor", NULL | |
5527 | }; | |
5528 | ||
5529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
5530 | if (obj0) { | |
5531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5533 | } | |
5534 | { | |
0439c23b | 5535 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5537 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
5538 | ||
5539 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5540 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5541 | } |
5542 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); | |
5543 | return resultobj; | |
5544 | fail: | |
5545 | return NULL; | |
5546 | } | |
5547 | ||
5548 | ||
c32bde28 | 5549 | static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5550 | PyObject *resultobj; |
5551 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
5552 | PyObject * obj0 = 0 ; | |
5553 | char *kwnames[] = { | |
5554 | (char *) "self", NULL | |
5555 | }; | |
5556 | ||
5557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
5558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor, | |
5559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5560 | { | |
5561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5562 | delete arg1; | |
5563 | ||
5564 | wxPyEndAllowThreads(__tstate); | |
5565 | if (PyErr_Occurred()) SWIG_fail; | |
5566 | } | |
5567 | Py_INCREF(Py_None); resultobj = Py_None; | |
5568 | return resultobj; | |
5569 | fail: | |
5570 | return NULL; | |
5571 | } | |
5572 | ||
5573 | ||
c32bde28 | 5574 | static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5575 | PyObject *obj; |
5576 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5577 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
5578 | Py_INCREF(obj); | |
5579 | return Py_BuildValue((char *)""); | |
5580 | } | |
c32bde28 | 5581 | static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5582 | PyObject *resultobj; |
5583 | wxWindow *arg1 = (wxWindow *) NULL ; | |
5584 | wxWindowDisabler *result; | |
5585 | PyObject * obj0 = 0 ; | |
5586 | char *kwnames[] = { | |
5587 | (char *) "winToSkip", NULL | |
5588 | }; | |
5589 | ||
5590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
5591 | if (obj0) { | |
5592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5594 | } | |
5595 | { | |
0439c23b | 5596 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5598 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
5599 | ||
5600 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5601 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5602 | } |
5603 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); | |
5604 | return resultobj; | |
5605 | fail: | |
5606 | return NULL; | |
5607 | } | |
5608 | ||
5609 | ||
c32bde28 | 5610 | static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5611 | PyObject *resultobj; |
5612 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
5613 | PyObject * obj0 = 0 ; | |
5614 | char *kwnames[] = { | |
5615 | (char *) "self", NULL | |
5616 | }; | |
5617 | ||
5618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
5619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler, | |
5620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5621 | { | |
5622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5623 | delete arg1; | |
5624 | ||
5625 | wxPyEndAllowThreads(__tstate); | |
5626 | if (PyErr_Occurred()) SWIG_fail; | |
5627 | } | |
5628 | Py_INCREF(Py_None); resultobj = Py_None; | |
5629 | return resultobj; | |
5630 | fail: | |
5631 | return NULL; | |
5632 | } | |
5633 | ||
5634 | ||
c32bde28 | 5635 | static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5636 | PyObject *obj; |
5637 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5638 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
5639 | Py_INCREF(obj); | |
5640 | return Py_BuildValue((char *)""); | |
5641 | } | |
c32bde28 | 5642 | static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5643 | PyObject *resultobj; |
5644 | wxString *arg1 = 0 ; | |
5645 | wxBusyInfo *result; | |
ae8162c8 | 5646 | bool temp1 = false ; |
d55e5bfc RD |
5647 | PyObject * obj0 = 0 ; |
5648 | char *kwnames[] = { | |
5649 | (char *) "message", NULL | |
5650 | }; | |
5651 | ||
5652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
5653 | { | |
5654 | arg1 = wxString_in_helper(obj0); | |
5655 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 5656 | temp1 = true; |
d55e5bfc RD |
5657 | } |
5658 | { | |
0439c23b | 5659 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5661 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
5662 | ||
5663 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5664 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5665 | } |
5666 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); | |
5667 | { | |
5668 | if (temp1) | |
5669 | delete arg1; | |
5670 | } | |
5671 | return resultobj; | |
5672 | fail: | |
5673 | { | |
5674 | if (temp1) | |
5675 | delete arg1; | |
5676 | } | |
5677 | return NULL; | |
5678 | } | |
5679 | ||
5680 | ||
c32bde28 | 5681 | static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5682 | PyObject *resultobj; |
5683 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5684 | PyObject * obj0 = 0 ; | |
5685 | char *kwnames[] = { | |
5686 | (char *) "self", NULL | |
5687 | }; | |
5688 | ||
5689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
5690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo, | |
5691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5692 | { | |
5693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5694 | delete arg1; | |
5695 | ||
5696 | wxPyEndAllowThreads(__tstate); | |
5697 | if (PyErr_Occurred()) SWIG_fail; | |
5698 | } | |
5699 | Py_INCREF(Py_None); resultobj = Py_None; | |
5700 | return resultobj; | |
5701 | fail: | |
5702 | return NULL; | |
5703 | } | |
5704 | ||
5705 | ||
c32bde28 | 5706 | static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5707 | PyObject *obj; |
5708 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5709 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5710 | Py_INCREF(obj); | |
5711 | return Py_BuildValue((char *)""); | |
5712 | } | |
c32bde28 | 5713 | static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5714 | PyObject *resultobj; |
5715 | wxStopWatch *result; | |
5716 | char *kwnames[] = { | |
5717 | NULL | |
5718 | }; | |
5719 | ||
5720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5721 | { | |
5722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5723 | result = (wxStopWatch *)new wxStopWatch(); | |
5724 | ||
5725 | wxPyEndAllowThreads(__tstate); | |
5726 | if (PyErr_Occurred()) SWIG_fail; | |
5727 | } | |
5728 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); | |
5729 | return resultobj; | |
5730 | fail: | |
5731 | return NULL; | |
5732 | } | |
5733 | ||
5734 | ||
c32bde28 | 5735 | static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5736 | PyObject *resultobj; |
5737 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5738 | long arg2 = (long) 0 ; | |
5739 | PyObject * obj0 = 0 ; | |
5740 | PyObject * obj1 = 0 ; | |
5741 | char *kwnames[] = { | |
5742 | (char *) "self",(char *) "t0", NULL | |
5743 | }; | |
5744 | ||
5745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; | |
5746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5748 | if (obj1) { | |
c32bde28 | 5749 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
5750 | if (PyErr_Occurred()) SWIG_fail; |
5751 | } | |
5752 | { | |
5753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5754 | (arg1)->Start(arg2); | |
5755 | ||
5756 | wxPyEndAllowThreads(__tstate); | |
5757 | if (PyErr_Occurred()) SWIG_fail; | |
5758 | } | |
5759 | Py_INCREF(Py_None); resultobj = Py_None; | |
5760 | return resultobj; | |
5761 | fail: | |
5762 | return NULL; | |
5763 | } | |
5764 | ||
5765 | ||
c32bde28 | 5766 | static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5767 | PyObject *resultobj; |
5768 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5769 | PyObject * obj0 = 0 ; | |
5770 | char *kwnames[] = { | |
5771 | (char *) "self", NULL | |
5772 | }; | |
5773 | ||
5774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
5775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5777 | { | |
5778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5779 | (arg1)->Pause(); | |
5780 | ||
5781 | wxPyEndAllowThreads(__tstate); | |
5782 | if (PyErr_Occurred()) SWIG_fail; | |
5783 | } | |
5784 | Py_INCREF(Py_None); resultobj = Py_None; | |
5785 | return resultobj; | |
5786 | fail: | |
5787 | return NULL; | |
5788 | } | |
5789 | ||
5790 | ||
c32bde28 | 5791 | static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5792 | PyObject *resultobj; |
5793 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5794 | PyObject * obj0 = 0 ; | |
5795 | char *kwnames[] = { | |
5796 | (char *) "self", NULL | |
5797 | }; | |
5798 | ||
5799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
5800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5802 | { | |
5803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5804 | (arg1)->Resume(); | |
5805 | ||
5806 | wxPyEndAllowThreads(__tstate); | |
5807 | if (PyErr_Occurred()) SWIG_fail; | |
5808 | } | |
5809 | Py_INCREF(Py_None); resultobj = Py_None; | |
5810 | return resultobj; | |
5811 | fail: | |
5812 | return NULL; | |
5813 | } | |
5814 | ||
5815 | ||
c32bde28 | 5816 | static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5817 | PyObject *resultobj; |
5818 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5819 | long result; | |
5820 | PyObject * obj0 = 0 ; | |
5821 | char *kwnames[] = { | |
5822 | (char *) "self", NULL | |
5823 | }; | |
5824 | ||
5825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
5826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5828 | { | |
5829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5830 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5831 | ||
5832 | wxPyEndAllowThreads(__tstate); | |
5833 | if (PyErr_Occurred()) SWIG_fail; | |
5834 | } | |
c32bde28 | 5835 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
5836 | return resultobj; |
5837 | fail: | |
5838 | return NULL; | |
5839 | } | |
5840 | ||
5841 | ||
c32bde28 | 5842 | static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5843 | PyObject *obj; |
5844 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5845 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5846 | Py_INCREF(obj); | |
5847 | return Py_BuildValue((char *)""); | |
5848 | } | |
c32bde28 | 5849 | static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5850 | PyObject *resultobj; |
5851 | int arg1 = (int) 9 ; | |
4cf4100f | 5852 | int arg2 = (int) wxID_FILE1 ; |
d55e5bfc RD |
5853 | wxFileHistory *result; |
5854 | PyObject * obj0 = 0 ; | |
4cf4100f | 5855 | PyObject * obj1 = 0 ; |
d55e5bfc | 5856 | char *kwnames[] = { |
4cf4100f | 5857 | (char *) "maxFiles",(char *) "idBase", NULL |
d55e5bfc RD |
5858 | }; |
5859 | ||
4cf4100f | 5860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc | 5861 | if (obj0) { |
c32bde28 | 5862 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
5863 | if (PyErr_Occurred()) SWIG_fail; |
5864 | } | |
4cf4100f | 5865 | if (obj1) { |
c32bde28 | 5866 | arg2 = (int)SWIG_As_int(obj1); |
4cf4100f RD |
5867 | if (PyErr_Occurred()) SWIG_fail; |
5868 | } | |
d55e5bfc RD |
5869 | { |
5870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4cf4100f | 5871 | result = (wxFileHistory *)new wxFileHistory(arg1,arg2); |
d55e5bfc RD |
5872 | |
5873 | wxPyEndAllowThreads(__tstate); | |
5874 | if (PyErr_Occurred()) SWIG_fail; | |
5875 | } | |
5876 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); | |
5877 | return resultobj; | |
5878 | fail: | |
5879 | return NULL; | |
5880 | } | |
5881 | ||
5882 | ||
c32bde28 | 5883 | static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5884 | PyObject *resultobj; |
5885 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5886 | PyObject * obj0 = 0 ; | |
5887 | char *kwnames[] = { | |
5888 | (char *) "self", NULL | |
5889 | }; | |
5890 | ||
5891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
5892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5894 | { | |
5895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5896 | delete arg1; | |
5897 | ||
5898 | wxPyEndAllowThreads(__tstate); | |
5899 | if (PyErr_Occurred()) SWIG_fail; | |
5900 | } | |
5901 | Py_INCREF(Py_None); resultobj = Py_None; | |
5902 | return resultobj; | |
5903 | fail: | |
5904 | return NULL; | |
5905 | } | |
5906 | ||
5907 | ||
c32bde28 | 5908 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5909 | PyObject *resultobj; |
5910 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5911 | wxString *arg2 = 0 ; | |
ae8162c8 | 5912 | bool temp2 = false ; |
d55e5bfc RD |
5913 | PyObject * obj0 = 0 ; |
5914 | PyObject * obj1 = 0 ; | |
5915 | char *kwnames[] = { | |
5916 | (char *) "self",(char *) "file", NULL | |
5917 | }; | |
5918 | ||
5919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
5920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5922 | { | |
5923 | arg2 = wxString_in_helper(obj1); | |
5924 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 5925 | temp2 = true; |
d55e5bfc RD |
5926 | } |
5927 | { | |
5928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5929 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
5930 | ||
5931 | wxPyEndAllowThreads(__tstate); | |
5932 | if (PyErr_Occurred()) SWIG_fail; | |
5933 | } | |
5934 | Py_INCREF(Py_None); resultobj = Py_None; | |
5935 | { | |
5936 | if (temp2) | |
5937 | delete arg2; | |
5938 | } | |
5939 | return resultobj; | |
5940 | fail: | |
5941 | { | |
5942 | if (temp2) | |
5943 | delete arg2; | |
5944 | } | |
5945 | return NULL; | |
5946 | } | |
5947 | ||
5948 | ||
c32bde28 | 5949 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5950 | PyObject *resultobj; |
5951 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5952 | int arg2 ; | |
5953 | PyObject * obj0 = 0 ; | |
5954 | PyObject * obj1 = 0 ; | |
5955 | char *kwnames[] = { | |
5956 | (char *) "self",(char *) "i", NULL | |
5957 | }; | |
5958 | ||
5959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; | |
5960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5962 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5963 | if (PyErr_Occurred()) SWIG_fail; |
5964 | { | |
5965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5966 | (arg1)->RemoveFileFromHistory(arg2); | |
5967 | ||
5968 | wxPyEndAllowThreads(__tstate); | |
5969 | if (PyErr_Occurred()) SWIG_fail; | |
5970 | } | |
5971 | Py_INCREF(Py_None); resultobj = Py_None; | |
5972 | return resultobj; | |
5973 | fail: | |
5974 | return NULL; | |
5975 | } | |
5976 | ||
5977 | ||
c32bde28 | 5978 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5979 | PyObject *resultobj; |
5980 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5981 | int result; | |
5982 | PyObject * obj0 = 0 ; | |
5983 | char *kwnames[] = { | |
5984 | (char *) "self", NULL | |
5985 | }; | |
5986 | ||
5987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
5988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5990 | { | |
5991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5992 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
5993 | ||
5994 | wxPyEndAllowThreads(__tstate); | |
5995 | if (PyErr_Occurred()) SWIG_fail; | |
5996 | } | |
c32bde28 | 5997 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5998 | return resultobj; |
5999 | fail: | |
6000 | return NULL; | |
6001 | } | |
6002 | ||
6003 | ||
c32bde28 | 6004 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6005 | PyObject *resultobj; |
6006 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6007 | wxMenu *arg2 = (wxMenu *) 0 ; | |
6008 | PyObject * obj0 = 0 ; | |
6009 | PyObject * obj1 = 0 ; | |
6010 | char *kwnames[] = { | |
6011 | (char *) "self",(char *) "menu", NULL | |
6012 | }; | |
6013 | ||
6014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
6015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6017 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
6018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6019 | { | |
6020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6021 | (arg1)->UseMenu(arg2); | |
6022 | ||
6023 | wxPyEndAllowThreads(__tstate); | |
6024 | if (PyErr_Occurred()) SWIG_fail; | |
6025 | } | |
6026 | Py_INCREF(Py_None); resultobj = Py_None; | |
6027 | return resultobj; | |
6028 | fail: | |
6029 | return NULL; | |
6030 | } | |
6031 | ||
6032 | ||
c32bde28 | 6033 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6034 | PyObject *resultobj; |
6035 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6036 | wxMenu *arg2 = (wxMenu *) 0 ; | |
6037 | PyObject * obj0 = 0 ; | |
6038 | PyObject * obj1 = 0 ; | |
6039 | char *kwnames[] = { | |
6040 | (char *) "self",(char *) "menu", NULL | |
6041 | }; | |
6042 | ||
6043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
6044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6046 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
6047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6048 | { | |
6049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6050 | (arg1)->RemoveMenu(arg2); | |
6051 | ||
6052 | wxPyEndAllowThreads(__tstate); | |
6053 | if (PyErr_Occurred()) SWIG_fail; | |
6054 | } | |
6055 | Py_INCREF(Py_None); resultobj = Py_None; | |
6056 | return resultobj; | |
6057 | fail: | |
6058 | return NULL; | |
6059 | } | |
6060 | ||
6061 | ||
c32bde28 | 6062 | static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6063 | PyObject *resultobj; |
6064 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6065 | wxConfigBase *arg2 = 0 ; | |
6066 | PyObject * obj0 = 0 ; | |
6067 | PyObject * obj1 = 0 ; | |
6068 | char *kwnames[] = { | |
6069 | (char *) "self",(char *) "config", NULL | |
6070 | }; | |
6071 | ||
6072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
6073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6075 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
6076 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6077 | SWIG_fail; | |
6078 | if (arg2 == NULL) { | |
6079 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6080 | SWIG_fail; | |
6081 | } | |
6082 | { | |
6083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6084 | (arg1)->Load(*arg2); | |
6085 | ||
6086 | wxPyEndAllowThreads(__tstate); | |
6087 | if (PyErr_Occurred()) SWIG_fail; | |
6088 | } | |
6089 | Py_INCREF(Py_None); resultobj = Py_None; | |
6090 | return resultobj; | |
6091 | fail: | |
6092 | return NULL; | |
6093 | } | |
6094 | ||
6095 | ||
c32bde28 | 6096 | static PyObject *_wrap_FileHistory_Save(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6097 | PyObject *resultobj; |
6098 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6099 | wxConfigBase *arg2 = 0 ; | |
6100 | PyObject * obj0 = 0 ; | |
6101 | PyObject * obj1 = 0 ; | |
6102 | char *kwnames[] = { | |
6103 | (char *) "self",(char *) "config", NULL | |
6104 | }; | |
6105 | ||
6106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
6107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6109 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
6110 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6111 | SWIG_fail; | |
6112 | if (arg2 == NULL) { | |
6113 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6114 | SWIG_fail; | |
6115 | } | |
6116 | { | |
6117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6118 | (arg1)->Save(*arg2); | |
6119 | ||
6120 | wxPyEndAllowThreads(__tstate); | |
6121 | if (PyErr_Occurred()) SWIG_fail; | |
6122 | } | |
6123 | Py_INCREF(Py_None); resultobj = Py_None; | |
6124 | return resultobj; | |
6125 | fail: | |
6126 | return NULL; | |
6127 | } | |
6128 | ||
6129 | ||
c32bde28 | 6130 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6131 | PyObject *resultobj; |
6132 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6133 | PyObject * obj0 = 0 ; | |
6134 | char *kwnames[] = { | |
6135 | (char *) "self", NULL | |
6136 | }; | |
6137 | ||
6138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
6139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6141 | { | |
6142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6143 | (arg1)->AddFilesToMenu(); | |
6144 | ||
6145 | wxPyEndAllowThreads(__tstate); | |
6146 | if (PyErr_Occurred()) SWIG_fail; | |
6147 | } | |
6148 | Py_INCREF(Py_None); resultobj = Py_None; | |
6149 | return resultobj; | |
6150 | fail: | |
6151 | return NULL; | |
6152 | } | |
6153 | ||
6154 | ||
c32bde28 | 6155 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6156 | PyObject *resultobj; |
6157 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6158 | wxMenu *arg2 = (wxMenu *) 0 ; | |
6159 | PyObject * obj0 = 0 ; | |
6160 | PyObject * obj1 = 0 ; | |
6161 | char *kwnames[] = { | |
6162 | (char *) "self",(char *) "menu", NULL | |
6163 | }; | |
6164 | ||
6165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
6166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6168 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
6169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6170 | { | |
6171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6172 | (arg1)->AddFilesToMenu(arg2); | |
6173 | ||
6174 | wxPyEndAllowThreads(__tstate); | |
6175 | if (PyErr_Occurred()) SWIG_fail; | |
6176 | } | |
6177 | Py_INCREF(Py_None); resultobj = Py_None; | |
6178 | return resultobj; | |
6179 | fail: | |
6180 | return NULL; | |
6181 | } | |
6182 | ||
6183 | ||
c32bde28 | 6184 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6185 | PyObject *resultobj; |
6186 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6187 | int arg2 ; | |
6188 | wxString result; | |
6189 | PyObject * obj0 = 0 ; | |
6190 | PyObject * obj1 = 0 ; | |
6191 | char *kwnames[] = { | |
6192 | (char *) "self",(char *) "i", NULL | |
6193 | }; | |
6194 | ||
6195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; | |
6196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6198 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6199 | if (PyErr_Occurred()) SWIG_fail; |
6200 | { | |
6201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6202 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
6203 | ||
6204 | wxPyEndAllowThreads(__tstate); | |
6205 | if (PyErr_Occurred()) SWIG_fail; | |
6206 | } | |
6207 | { | |
6208 | #if wxUSE_UNICODE | |
6209 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6210 | #else | |
6211 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6212 | #endif | |
6213 | } | |
6214 | return resultobj; | |
6215 | fail: | |
6216 | return NULL; | |
6217 | } | |
6218 | ||
6219 | ||
c32bde28 | 6220 | static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6221 | PyObject *resultobj; |
6222 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6223 | int result; | |
6224 | PyObject * obj0 = 0 ; | |
6225 | char *kwnames[] = { | |
6226 | (char *) "self", NULL | |
6227 | }; | |
6228 | ||
6229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
6230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6232 | { | |
6233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6234 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
6235 | ||
6236 | wxPyEndAllowThreads(__tstate); | |
6237 | if (PyErr_Occurred()) SWIG_fail; | |
6238 | } | |
c32bde28 | 6239 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6240 | return resultobj; |
6241 | fail: | |
6242 | return NULL; | |
6243 | } | |
6244 | ||
6245 | ||
c32bde28 | 6246 | static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6247 | PyObject *obj; |
6248 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6249 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
6250 | Py_INCREF(obj); | |
6251 | return Py_BuildValue((char *)""); | |
6252 | } | |
c32bde28 | 6253 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6254 | PyObject *resultobj; |
6255 | wxString *arg1 = 0 ; | |
6256 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
6257 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
6258 | wxSingleInstanceChecker *result; | |
ae8162c8 RD |
6259 | bool temp1 = false ; |
6260 | bool temp2 = false ; | |
d55e5bfc RD |
6261 | PyObject * obj0 = 0 ; |
6262 | PyObject * obj1 = 0 ; | |
6263 | char *kwnames[] = { | |
6264 | (char *) "name",(char *) "path", NULL | |
6265 | }; | |
6266 | ||
6267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
6268 | { | |
6269 | arg1 = wxString_in_helper(obj0); | |
6270 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 6271 | temp1 = true; |
d55e5bfc RD |
6272 | } |
6273 | if (obj1) { | |
6274 | { | |
6275 | arg2 = wxString_in_helper(obj1); | |
6276 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6277 | temp2 = true; |
d55e5bfc RD |
6278 | } |
6279 | } | |
6280 | { | |
6281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6282 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
6283 | ||
6284 | wxPyEndAllowThreads(__tstate); | |
6285 | if (PyErr_Occurred()) SWIG_fail; | |
6286 | } | |
6287 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
6288 | { | |
6289 | if (temp1) | |
6290 | delete arg1; | |
6291 | } | |
6292 | { | |
6293 | if (temp2) | |
6294 | delete arg2; | |
6295 | } | |
6296 | return resultobj; | |
6297 | fail: | |
6298 | { | |
6299 | if (temp1) | |
6300 | delete arg1; | |
6301 | } | |
6302 | { | |
6303 | if (temp2) | |
6304 | delete arg2; | |
6305 | } | |
6306 | return NULL; | |
6307 | } | |
6308 | ||
6309 | ||
c32bde28 | 6310 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6311 | PyObject *resultobj; |
6312 | wxSingleInstanceChecker *result; | |
6313 | char *kwnames[] = { | |
6314 | NULL | |
6315 | }; | |
6316 | ||
6317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
6318 | { | |
6319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6320 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
6321 | ||
6322 | wxPyEndAllowThreads(__tstate); | |
6323 | if (PyErr_Occurred()) SWIG_fail; | |
6324 | } | |
6325 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
6326 | return resultobj; | |
6327 | fail: | |
6328 | return NULL; | |
6329 | } | |
6330 | ||
6331 | ||
c32bde28 | 6332 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6333 | PyObject *resultobj; |
6334 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6335 | PyObject * obj0 = 0 ; | |
6336 | char *kwnames[] = { | |
6337 | (char *) "self", NULL | |
6338 | }; | |
6339 | ||
6340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
6341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6343 | { | |
6344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6345 | delete arg1; | |
6346 | ||
6347 | wxPyEndAllowThreads(__tstate); | |
6348 | if (PyErr_Occurred()) SWIG_fail; | |
6349 | } | |
6350 | Py_INCREF(Py_None); resultobj = Py_None; | |
6351 | return resultobj; | |
6352 | fail: | |
6353 | return NULL; | |
6354 | } | |
6355 | ||
6356 | ||
c32bde28 | 6357 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6358 | PyObject *resultobj; |
6359 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6360 | wxString *arg2 = 0 ; | |
6361 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6362 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6363 | bool result; | |
ae8162c8 RD |
6364 | bool temp2 = false ; |
6365 | bool temp3 = false ; | |
d55e5bfc RD |
6366 | PyObject * obj0 = 0 ; |
6367 | PyObject * obj1 = 0 ; | |
6368 | PyObject * obj2 = 0 ; | |
6369 | char *kwnames[] = { | |
6370 | (char *) "self",(char *) "name",(char *) "path", NULL | |
6371 | }; | |
6372 | ||
6373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6376 | { | |
6377 | arg2 = wxString_in_helper(obj1); | |
6378 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6379 | temp2 = true; |
d55e5bfc RD |
6380 | } |
6381 | if (obj2) { | |
6382 | { | |
6383 | arg3 = wxString_in_helper(obj2); | |
6384 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6385 | temp3 = true; |
d55e5bfc RD |
6386 | } |
6387 | } | |
6388 | { | |
6389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6390 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
6391 | ||
6392 | wxPyEndAllowThreads(__tstate); | |
6393 | if (PyErr_Occurred()) SWIG_fail; | |
6394 | } | |
6395 | { | |
6396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6397 | } | |
6398 | { | |
6399 | if (temp2) | |
6400 | delete arg2; | |
6401 | } | |
6402 | { | |
6403 | if (temp3) | |
6404 | delete arg3; | |
6405 | } | |
6406 | return resultobj; | |
6407 | fail: | |
6408 | { | |
6409 | if (temp2) | |
6410 | delete arg2; | |
6411 | } | |
6412 | { | |
6413 | if (temp3) | |
6414 | delete arg3; | |
6415 | } | |
6416 | return NULL; | |
6417 | } | |
6418 | ||
6419 | ||
c32bde28 | 6420 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6421 | PyObject *resultobj; |
6422 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6423 | bool result; | |
6424 | PyObject * obj0 = 0 ; | |
6425 | char *kwnames[] = { | |
6426 | (char *) "self", NULL | |
6427 | }; | |
6428 | ||
6429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
6430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6432 | { | |
6433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6434 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
6435 | ||
6436 | wxPyEndAllowThreads(__tstate); | |
6437 | if (PyErr_Occurred()) SWIG_fail; | |
6438 | } | |
6439 | { | |
6440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6441 | } | |
6442 | return resultobj; | |
6443 | fail: | |
6444 | return NULL; | |
6445 | } | |
6446 | ||
6447 | ||
c32bde28 | 6448 | static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6449 | PyObject *obj; |
6450 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6451 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
6452 | Py_INCREF(obj); | |
6453 | return Py_BuildValue((char *)""); | |
6454 | } | |
c32bde28 | 6455 | static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6456 | PyObject *resultobj; |
6457 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6458 | wxDC *arg2 = 0 ; | |
6459 | int arg3 ; | |
6460 | PyObject * obj0 = 0 ; | |
6461 | PyObject * obj1 = 0 ; | |
6462 | PyObject * obj2 = 0 ; | |
6463 | char *kwnames[] = { | |
6464 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
6465 | }; | |
6466 | ||
6467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6470 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
6471 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6472 | SWIG_fail; | |
6473 | if (arg2 == NULL) { | |
6474 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6475 | SWIG_fail; | |
6476 | } | |
c32bde28 | 6477 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6478 | if (PyErr_Occurred()) SWIG_fail; |
6479 | { | |
6480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6481 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
6482 | ||
6483 | wxPyEndAllowThreads(__tstate); | |
6484 | if (PyErr_Occurred()) SWIG_fail; | |
6485 | } | |
6486 | Py_INCREF(Py_None); resultobj = Py_None; | |
6487 | return resultobj; | |
6488 | fail: | |
6489 | return NULL; | |
6490 | } | |
6491 | ||
6492 | ||
c32bde28 | 6493 | static PyObject *_wrap_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6494 | PyObject *resultobj; |
6495 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6496 | PyObject * obj0 = 0 ; | |
6497 | char *kwnames[] = { | |
6498 | (char *) "self", NULL | |
6499 | }; | |
6500 | ||
6501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
6502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6504 | { | |
6505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6506 | delete arg1; | |
6507 | ||
6508 | wxPyEndAllowThreads(__tstate); | |
6509 | if (PyErr_Occurred()) SWIG_fail; | |
6510 | } | |
6511 | Py_INCREF(Py_None); resultobj = Py_None; | |
6512 | return resultobj; | |
6513 | fail: | |
6514 | return NULL; | |
6515 | } | |
6516 | ||
6517 | ||
c32bde28 | 6518 | static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6519 | PyObject *resultobj; |
6520 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6521 | wxString result; | |
6522 | PyObject * obj0 = 0 ; | |
6523 | char *kwnames[] = { | |
6524 | (char *) "self", NULL | |
6525 | }; | |
6526 | ||
6527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
6528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6530 | { | |
6531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6532 | result = (arg1)->GetTip(); | |
6533 | ||
6534 | wxPyEndAllowThreads(__tstate); | |
6535 | if (PyErr_Occurred()) SWIG_fail; | |
6536 | } | |
6537 | { | |
6538 | #if wxUSE_UNICODE | |
6539 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6540 | #else | |
6541 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6542 | #endif | |
6543 | } | |
6544 | return resultobj; | |
6545 | fail: | |
6546 | return NULL; | |
6547 | } | |
6548 | ||
6549 | ||
c32bde28 | 6550 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6551 | PyObject *resultobj; |
6552 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6553 | size_t result; | |
6554 | PyObject * obj0 = 0 ; | |
6555 | char *kwnames[] = { | |
6556 | (char *) "self", NULL | |
6557 | }; | |
6558 | ||
6559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
6560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6562 | { | |
6563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6564 | result = (size_t)(arg1)->GetCurrentTip(); | |
6565 | ||
6566 | wxPyEndAllowThreads(__tstate); | |
6567 | if (PyErr_Occurred()) SWIG_fail; | |
6568 | } | |
c32bde28 | 6569 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
6570 | return resultobj; |
6571 | fail: | |
6572 | return NULL; | |
6573 | } | |
6574 | ||
6575 | ||
c32bde28 | 6576 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6577 | PyObject *resultobj; |
6578 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6579 | wxString *arg2 = 0 ; | |
6580 | wxString result; | |
ae8162c8 | 6581 | bool temp2 = false ; |
d55e5bfc RD |
6582 | PyObject * obj0 = 0 ; |
6583 | PyObject * obj1 = 0 ; | |
6584 | char *kwnames[] = { | |
6585 | (char *) "self",(char *) "tip", NULL | |
6586 | }; | |
6587 | ||
6588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
6589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6591 | { | |
6592 | arg2 = wxString_in_helper(obj1); | |
6593 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6594 | temp2 = true; |
d55e5bfc RD |
6595 | } |
6596 | { | |
6597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6598 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
6599 | ||
6600 | wxPyEndAllowThreads(__tstate); | |
6601 | if (PyErr_Occurred()) SWIG_fail; | |
6602 | } | |
6603 | { | |
6604 | #if wxUSE_UNICODE | |
6605 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6606 | #else | |
6607 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6608 | #endif | |
6609 | } | |
6610 | { | |
6611 | if (temp2) | |
6612 | delete arg2; | |
6613 | } | |
6614 | return resultobj; | |
6615 | fail: | |
6616 | { | |
6617 | if (temp2) | |
6618 | delete arg2; | |
6619 | } | |
6620 | return NULL; | |
6621 | } | |
6622 | ||
6623 | ||
c32bde28 | 6624 | static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6625 | PyObject *obj; |
6626 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6627 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
6628 | Py_INCREF(obj); | |
6629 | return Py_BuildValue((char *)""); | |
6630 | } | |
c32bde28 | 6631 | static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6632 | PyObject *resultobj; |
6633 | size_t arg1 ; | |
6634 | wxPyTipProvider *result; | |
6635 | PyObject * obj0 = 0 ; | |
6636 | char *kwnames[] = { | |
6637 | (char *) "currentTip", NULL | |
6638 | }; | |
6639 | ||
6640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
c32bde28 | 6641 | arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
6642 | if (PyErr_Occurred()) SWIG_fail; |
6643 | { | |
6644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6645 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
6646 | ||
6647 | wxPyEndAllowThreads(__tstate); | |
6648 | if (PyErr_Occurred()) SWIG_fail; | |
6649 | } | |
6650 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); | |
6651 | return resultobj; | |
6652 | fail: | |
6653 | return NULL; | |
6654 | } | |
6655 | ||
6656 | ||
c32bde28 | 6657 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6658 | PyObject *resultobj; |
6659 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
6660 | PyObject *arg2 = (PyObject *) 0 ; | |
6661 | PyObject *arg3 = (PyObject *) 0 ; | |
6662 | PyObject * obj0 = 0 ; | |
6663 | PyObject * obj1 = 0 ; | |
6664 | PyObject * obj2 = 0 ; | |
6665 | char *kwnames[] = { | |
6666 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6667 | }; | |
6668 | ||
6669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider, | |
6671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6672 | arg2 = obj1; | |
6673 | arg3 = obj2; | |
6674 | { | |
6675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6676 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6677 | ||
6678 | wxPyEndAllowThreads(__tstate); | |
6679 | if (PyErr_Occurred()) SWIG_fail; | |
6680 | } | |
6681 | Py_INCREF(Py_None); resultobj = Py_None; | |
6682 | return resultobj; | |
6683 | fail: | |
6684 | return NULL; | |
6685 | } | |
6686 | ||
6687 | ||
c32bde28 | 6688 | static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6689 | PyObject *obj; |
6690 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6691 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
6692 | Py_INCREF(obj); | |
6693 | return Py_BuildValue((char *)""); | |
6694 | } | |
c32bde28 | 6695 | static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6696 | PyObject *resultobj; |
6697 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6698 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
ae8162c8 | 6699 | bool arg3 = (bool) true ; |
d55e5bfc RD |
6700 | bool result; |
6701 | PyObject * obj0 = 0 ; | |
6702 | PyObject * obj1 = 0 ; | |
6703 | PyObject * obj2 = 0 ; | |
6704 | char *kwnames[] = { | |
6705 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
6706 | }; | |
6707 | ||
6708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6711 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider, | |
6712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6713 | if (obj2) { | |
c32bde28 | 6714 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
6715 | if (PyErr_Occurred()) SWIG_fail; |
6716 | } | |
6717 | { | |
0439c23b | 6718 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6720 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6721 | ||
6722 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6723 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6724 | } |
6725 | { | |
6726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6727 | } | |
6728 | return resultobj; | |
6729 | fail: | |
6730 | return NULL; | |
6731 | } | |
6732 | ||
6733 | ||
c32bde28 | 6734 | static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6735 | PyObject *resultobj; |
6736 | wxString *arg1 = 0 ; | |
6737 | size_t arg2 ; | |
6738 | wxTipProvider *result; | |
ae8162c8 | 6739 | bool temp1 = false ; |
d55e5bfc RD |
6740 | PyObject * obj0 = 0 ; |
6741 | PyObject * obj1 = 0 ; | |
6742 | char *kwnames[] = { | |
6743 | (char *) "filename",(char *) "currentTip", NULL | |
6744 | }; | |
6745 | ||
6746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6747 | { | |
6748 | arg1 = wxString_in_helper(obj0); | |
6749 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 6750 | temp1 = true; |
d55e5bfc | 6751 | } |
c32bde28 | 6752 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
6753 | if (PyErr_Occurred()) SWIG_fail; |
6754 | { | |
0439c23b | 6755 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6757 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6758 | ||
6759 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6760 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6761 | } |
6762 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); | |
6763 | { | |
6764 | if (temp1) | |
6765 | delete arg1; | |
6766 | } | |
6767 | return resultobj; | |
6768 | fail: | |
6769 | { | |
6770 | if (temp1) | |
6771 | delete arg1; | |
6772 | } | |
6773 | return NULL; | |
6774 | } | |
6775 | ||
6776 | ||
c32bde28 | 6777 | static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6778 | PyObject *resultobj; |
6779 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6780 | int arg2 = (int) -1 ; | |
6781 | wxPyTimer *result; | |
6782 | PyObject * obj0 = 0 ; | |
6783 | PyObject * obj1 = 0 ; | |
6784 | char *kwnames[] = { | |
6785 | (char *) "owner",(char *) "id", NULL | |
6786 | }; | |
6787 | ||
6788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; | |
6789 | if (obj0) { | |
6790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
6791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6792 | } | |
6793 | if (obj1) { | |
c32bde28 | 6794 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6795 | if (PyErr_Occurred()) SWIG_fail; |
6796 | } | |
6797 | { | |
0439c23b | 6798 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6800 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6801 | ||
6802 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6803 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6804 | } |
6805 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); | |
6806 | return resultobj; | |
6807 | fail: | |
6808 | return NULL; | |
6809 | } | |
6810 | ||
6811 | ||
c32bde28 | 6812 | static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6813 | PyObject *resultobj; |
6814 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6815 | PyObject * obj0 = 0 ; | |
6816 | char *kwnames[] = { | |
6817 | (char *) "self", NULL | |
6818 | }; | |
6819 | ||
6820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
6821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6823 | { | |
6824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6825 | delete arg1; | |
6826 | ||
6827 | wxPyEndAllowThreads(__tstate); | |
6828 | if (PyErr_Occurred()) SWIG_fail; | |
6829 | } | |
6830 | Py_INCREF(Py_None); resultobj = Py_None; | |
6831 | return resultobj; | |
6832 | fail: | |
6833 | return NULL; | |
6834 | } | |
6835 | ||
6836 | ||
c32bde28 | 6837 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6838 | PyObject *resultobj; |
6839 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6840 | PyObject *arg2 = (PyObject *) 0 ; | |
6841 | PyObject *arg3 = (PyObject *) 0 ; | |
6842 | int arg4 = (int) 1 ; | |
6843 | PyObject * obj0 = 0 ; | |
6844 | PyObject * obj1 = 0 ; | |
6845 | PyObject * obj2 = 0 ; | |
6846 | PyObject * obj3 = 0 ; | |
6847 | char *kwnames[] = { | |
6848 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
6849 | }; | |
6850 | ||
6851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6854 | arg2 = obj1; | |
6855 | arg3 = obj2; | |
6856 | if (obj3) { | |
c32bde28 | 6857 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
6858 | if (PyErr_Occurred()) SWIG_fail; |
6859 | } | |
6860 | { | |
6861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6862 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
6863 | ||
6864 | wxPyEndAllowThreads(__tstate); | |
6865 | if (PyErr_Occurred()) SWIG_fail; | |
6866 | } | |
6867 | Py_INCREF(Py_None); resultobj = Py_None; | |
6868 | return resultobj; | |
6869 | fail: | |
6870 | return NULL; | |
6871 | } | |
6872 | ||
6873 | ||
c32bde28 | 6874 | static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6875 | PyObject *resultobj; |
6876 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6877 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6878 | int arg3 = (int) -1 ; | |
6879 | PyObject * obj0 = 0 ; | |
6880 | PyObject * obj1 = 0 ; | |
6881 | PyObject * obj2 = 0 ; | |
6882 | char *kwnames[] = { | |
6883 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6884 | }; | |
6885 | ||
6886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6889 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
6890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6891 | if (obj2) { | |
c32bde28 | 6892 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6893 | if (PyErr_Occurred()) SWIG_fail; |
6894 | } | |
6895 | { | |
6896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6897 | (arg1)->SetOwner(arg2,arg3); | |
6898 | ||
6899 | wxPyEndAllowThreads(__tstate); | |
6900 | if (PyErr_Occurred()) SWIG_fail; | |
6901 | } | |
6902 | Py_INCREF(Py_None); resultobj = Py_None; | |
6903 | return resultobj; | |
6904 | fail: | |
6905 | return NULL; | |
6906 | } | |
6907 | ||
6908 | ||
c32bde28 | 6909 | static PyObject *_wrap_Timer_GetOwner(PyObject *, PyObject *args, PyObject *kwargs) { |
1a6bba1e RD |
6910 | PyObject *resultobj; |
6911 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6912 | wxEvtHandler *result; | |
6913 | PyObject * obj0 = 0 ; | |
6914 | char *kwnames[] = { | |
6915 | (char *) "self", NULL | |
6916 | }; | |
6917 | ||
6918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail; | |
6919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6921 | { | |
6922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6923 | result = (wxEvtHandler *)(arg1)->GetOwner(); | |
6924 | ||
6925 | wxPyEndAllowThreads(__tstate); | |
6926 | if (PyErr_Occurred()) SWIG_fail; | |
6927 | } | |
6928 | { | |
412d302d | 6929 | resultobj = wxPyMake_wxObject(result, 0); |
1a6bba1e RD |
6930 | } |
6931 | return resultobj; | |
6932 | fail: | |
6933 | return NULL; | |
6934 | } | |
6935 | ||
6936 | ||
c32bde28 | 6937 | static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6938 | PyObject *resultobj; |
6939 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6940 | int arg2 = (int) -1 ; | |
ae8162c8 | 6941 | bool arg3 = (bool) false ; |
d55e5bfc RD |
6942 | bool result; |
6943 | PyObject * obj0 = 0 ; | |
6944 | PyObject * obj1 = 0 ; | |
6945 | PyObject * obj2 = 0 ; | |
6946 | char *kwnames[] = { | |
6947 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
6948 | }; | |
6949 | ||
6950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6953 | if (obj1) { | |
c32bde28 | 6954 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6955 | if (PyErr_Occurred()) SWIG_fail; |
6956 | } | |
6957 | if (obj2) { | |
c32bde28 | 6958 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
6959 | if (PyErr_Occurred()) SWIG_fail; |
6960 | } | |
6961 | { | |
6962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6963 | result = (bool)(arg1)->Start(arg2,arg3); | |
6964 | ||
6965 | wxPyEndAllowThreads(__tstate); | |
6966 | if (PyErr_Occurred()) SWIG_fail; | |
6967 | } | |
6968 | { | |
6969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6970 | } | |
6971 | return resultobj; | |
6972 | fail: | |
6973 | return NULL; | |
6974 | } | |
6975 | ||
6976 | ||
c32bde28 | 6977 | static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6978 | PyObject *resultobj; |
6979 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6980 | PyObject * obj0 = 0 ; | |
6981 | char *kwnames[] = { | |
6982 | (char *) "self", NULL | |
6983 | }; | |
6984 | ||
6985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
6986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6988 | { | |
6989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6990 | (arg1)->Stop(); | |
6991 | ||
6992 | wxPyEndAllowThreads(__tstate); | |
6993 | if (PyErr_Occurred()) SWIG_fail; | |
6994 | } | |
6995 | Py_INCREF(Py_None); resultobj = Py_None; | |
6996 | return resultobj; | |
6997 | fail: | |
6998 | return NULL; | |
6999 | } | |
7000 | ||
7001 | ||
c32bde28 | 7002 | static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7003 | PyObject *resultobj; |
7004 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7005 | bool result; | |
7006 | PyObject * obj0 = 0 ; | |
7007 | char *kwnames[] = { | |
7008 | (char *) "self", NULL | |
7009 | }; | |
7010 | ||
7011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
7012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7014 | { | |
7015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7016 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
7017 | ||
7018 | wxPyEndAllowThreads(__tstate); | |
7019 | if (PyErr_Occurred()) SWIG_fail; | |
7020 | } | |
7021 | { | |
7022 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7023 | } | |
7024 | return resultobj; | |
7025 | fail: | |
7026 | return NULL; | |
7027 | } | |
7028 | ||
7029 | ||
c32bde28 | 7030 | static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7031 | PyObject *resultobj; |
7032 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7033 | int result; | |
7034 | PyObject * obj0 = 0 ; | |
7035 | char *kwnames[] = { | |
7036 | (char *) "self", NULL | |
7037 | }; | |
7038 | ||
7039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
7040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7042 | { | |
7043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7044 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
7045 | ||
7046 | wxPyEndAllowThreads(__tstate); | |
7047 | if (PyErr_Occurred()) SWIG_fail; | |
7048 | } | |
c32bde28 | 7049 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7050 | return resultobj; |
7051 | fail: | |
7052 | return NULL; | |
7053 | } | |
7054 | ||
7055 | ||
c32bde28 | 7056 | static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7057 | PyObject *resultobj; |
7058 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7059 | bool result; | |
7060 | PyObject * obj0 = 0 ; | |
7061 | char *kwnames[] = { | |
7062 | (char *) "self", NULL | |
7063 | }; | |
7064 | ||
7065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
7066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7068 | { | |
7069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7070 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
7071 | ||
7072 | wxPyEndAllowThreads(__tstate); | |
7073 | if (PyErr_Occurred()) SWIG_fail; | |
7074 | } | |
7075 | { | |
7076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7077 | } | |
7078 | return resultobj; | |
7079 | fail: | |
7080 | return NULL; | |
7081 | } | |
7082 | ||
7083 | ||
c32bde28 | 7084 | static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7085 | PyObject *resultobj; |
7086 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7087 | int result; | |
7088 | PyObject * obj0 = 0 ; | |
7089 | char *kwnames[] = { | |
7090 | (char *) "self", NULL | |
7091 | }; | |
7092 | ||
7093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
7094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7096 | { | |
7097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7098 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
7099 | ||
7100 | wxPyEndAllowThreads(__tstate); | |
7101 | if (PyErr_Occurred()) SWIG_fail; | |
7102 | } | |
c32bde28 | 7103 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7104 | return resultobj; |
7105 | fail: | |
7106 | return NULL; | |
7107 | } | |
7108 | ||
7109 | ||
c32bde28 | 7110 | static PyObject * Timer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7111 | PyObject *obj; |
7112 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7113 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
7114 | Py_INCREF(obj); | |
7115 | return Py_BuildValue((char *)""); | |
7116 | } | |
c32bde28 | 7117 | static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7118 | PyObject *resultobj; |
7119 | int arg1 = (int) 0 ; | |
7120 | int arg2 = (int) 0 ; | |
7121 | wxTimerEvent *result; | |
7122 | PyObject * obj0 = 0 ; | |
7123 | PyObject * obj1 = 0 ; | |
7124 | char *kwnames[] = { | |
7125 | (char *) "timerid",(char *) "interval", NULL | |
7126 | }; | |
7127 | ||
7128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; | |
7129 | if (obj0) { | |
c32bde28 | 7130 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
7131 | if (PyErr_Occurred()) SWIG_fail; |
7132 | } | |
7133 | if (obj1) { | |
c32bde28 | 7134 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7135 | if (PyErr_Occurred()) SWIG_fail; |
7136 | } | |
7137 | { | |
7138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7139 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
7140 | ||
7141 | wxPyEndAllowThreads(__tstate); | |
7142 | if (PyErr_Occurred()) SWIG_fail; | |
7143 | } | |
7144 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); | |
7145 | return resultobj; | |
7146 | fail: | |
7147 | return NULL; | |
7148 | } | |
7149 | ||
7150 | ||
c32bde28 | 7151 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7152 | PyObject *resultobj; |
7153 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
7154 | int result; | |
7155 | PyObject * obj0 = 0 ; | |
7156 | char *kwnames[] = { | |
7157 | (char *) "self", NULL | |
7158 | }; | |
7159 | ||
7160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
7161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent, | |
7162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7163 | { | |
7164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7165 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
7166 | ||
7167 | wxPyEndAllowThreads(__tstate); | |
7168 | if (PyErr_Occurred()) SWIG_fail; | |
7169 | } | |
c32bde28 | 7170 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7171 | return resultobj; |
7172 | fail: | |
7173 | return NULL; | |
7174 | } | |
7175 | ||
7176 | ||
c32bde28 | 7177 | static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7178 | PyObject *obj; |
7179 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7180 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
7181 | Py_INCREF(obj); | |
7182 | return Py_BuildValue((char *)""); | |
7183 | } | |
c32bde28 | 7184 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
7185 | PyObject *resultobj; |
7186 | wxTimer *arg1 = 0 ; | |
7187 | wxTimerRunner *result; | |
7188 | PyObject * obj0 = 0 ; | |
7189 | ||
7190 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
7191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
7192 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7193 | SWIG_fail; | |
7194 | if (arg1 == NULL) { | |
7195 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7196 | SWIG_fail; | |
7197 | } | |
7198 | { | |
0439c23b | 7199 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7201 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
7202 | ||
7203 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7204 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7205 | } |
7206 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
7207 | return resultobj; | |
7208 | fail: | |
7209 | return NULL; | |
7210 | } | |
7211 | ||
7212 | ||
c32bde28 | 7213 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
7214 | PyObject *resultobj; |
7215 | wxTimer *arg1 = 0 ; | |
7216 | int arg2 ; | |
ae8162c8 | 7217 | bool arg3 = (bool) false ; |
d55e5bfc RD |
7218 | wxTimerRunner *result; |
7219 | PyObject * obj0 = 0 ; | |
7220 | PyObject * obj1 = 0 ; | |
7221 | PyObject * obj2 = 0 ; | |
7222 | ||
7223 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; | |
7224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
7225 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7226 | SWIG_fail; | |
7227 | if (arg1 == NULL) { | |
7228 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7229 | SWIG_fail; | |
7230 | } | |
c32bde28 | 7231 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7232 | if (PyErr_Occurred()) SWIG_fail; |
7233 | if (obj2) { | |
c32bde28 | 7234 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7235 | if (PyErr_Occurred()) SWIG_fail; |
7236 | } | |
7237 | { | |
0439c23b | 7238 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7240 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
7241 | ||
7242 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7243 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7244 | } |
7245 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
7246 | return resultobj; | |
7247 | fail: | |
7248 | return NULL; | |
7249 | } | |
7250 | ||
7251 | ||
7252 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
7253 | int argc; | |
7254 | PyObject *argv[4]; | |
7255 | int ii; | |
7256 | ||
7257 | argc = PyObject_Length(args); | |
7258 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
7259 | argv[ii] = PyTuple_GetItem(args,ii); | |
7260 | } | |
7261 | if (argc == 1) { | |
7262 | int _v; | |
7263 | { | |
7264 | void *ptr; | |
7265 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
7266 | _v = 0; | |
7267 | PyErr_Clear(); | |
7268 | } else { | |
7269 | _v = 1; | |
7270 | } | |
7271 | } | |
7272 | if (_v) { | |
7273 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
7274 | } | |
7275 | } | |
7276 | if ((argc >= 2) && (argc <= 3)) { | |
7277 | int _v; | |
7278 | { | |
7279 | void *ptr; | |
7280 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
7281 | _v = 0; | |
7282 | PyErr_Clear(); | |
7283 | } else { | |
7284 | _v = 1; | |
7285 | } | |
7286 | } | |
7287 | if (_v) { | |
c32bde28 | 7288 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
7289 | if (_v) { |
7290 | if (argc <= 2) { | |
7291 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
7292 | } | |
c32bde28 | 7293 | _v = SWIG_Check_bool(argv[2]); |
d55e5bfc RD |
7294 | if (_v) { |
7295 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
7296 | } | |
7297 | } | |
7298 | } | |
7299 | } | |
7300 | ||
7301 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
7302 | return NULL; | |
7303 | } | |
7304 | ||
7305 | ||
c32bde28 | 7306 | static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7307 | PyObject *resultobj; |
7308 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
7309 | PyObject * obj0 = 0 ; | |
7310 | char *kwnames[] = { | |
7311 | (char *) "self", NULL | |
7312 | }; | |
7313 | ||
7314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
7315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
7316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7317 | { | |
7318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7319 | delete arg1; | |
7320 | ||
7321 | wxPyEndAllowThreads(__tstate); | |
7322 | if (PyErr_Occurred()) SWIG_fail; | |
7323 | } | |
7324 | Py_INCREF(Py_None); resultobj = Py_None; | |
7325 | return resultobj; | |
7326 | fail: | |
7327 | return NULL; | |
7328 | } | |
7329 | ||
7330 | ||
c32bde28 | 7331 | static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7332 | PyObject *resultobj; |
7333 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
7334 | int arg2 ; | |
ae8162c8 | 7335 | bool arg3 = (bool) false ; |
d55e5bfc RD |
7336 | PyObject * obj0 = 0 ; |
7337 | PyObject * obj1 = 0 ; | |
7338 | PyObject * obj2 = 0 ; | |
7339 | char *kwnames[] = { | |
7340 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
7341 | }; | |
7342 | ||
7343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
7345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7346 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7347 | if (PyErr_Occurred()) SWIG_fail; |
7348 | if (obj2) { | |
c32bde28 | 7349 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7350 | if (PyErr_Occurred()) SWIG_fail; |
7351 | } | |
7352 | { | |
7353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7354 | (arg1)->Start(arg2,arg3); | |
7355 | ||
7356 | wxPyEndAllowThreads(__tstate); | |
7357 | if (PyErr_Occurred()) SWIG_fail; | |
7358 | } | |
7359 | Py_INCREF(Py_None); resultobj = Py_None; | |
7360 | return resultobj; | |
7361 | fail: | |
7362 | return NULL; | |
7363 | } | |
7364 | ||
7365 | ||
c32bde28 | 7366 | static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7367 | PyObject *obj; |
7368 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7369 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
7370 | Py_INCREF(obj); | |
7371 | return Py_BuildValue((char *)""); | |
7372 | } | |
c32bde28 | 7373 | static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7374 | PyObject *resultobj; |
7375 | wxLog *result; | |
7376 | char *kwnames[] = { | |
7377 | NULL | |
7378 | }; | |
7379 | ||
7380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
7381 | { | |
7382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7383 | result = (wxLog *)new wxLog(); | |
7384 | ||
7385 | wxPyEndAllowThreads(__tstate); | |
7386 | if (PyErr_Occurred()) SWIG_fail; | |
7387 | } | |
7388 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); | |
7389 | return resultobj; | |
7390 | fail: | |
7391 | return NULL; | |
7392 | } | |
7393 | ||
7394 | ||
c32bde28 | 7395 | static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7396 | PyObject *resultobj; |
7397 | bool result; | |
7398 | char *kwnames[] = { | |
7399 | NULL | |
7400 | }; | |
7401 | ||
7402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
7403 | { | |
7404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7405 | result = (bool)wxLog::IsEnabled(); | |
7406 | ||
7407 | wxPyEndAllowThreads(__tstate); | |
7408 | if (PyErr_Occurred()) SWIG_fail; | |
7409 | } | |
7410 | { | |
7411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7412 | } | |
7413 | return resultobj; | |
7414 | fail: | |
7415 | return NULL; | |
7416 | } | |
7417 | ||
7418 | ||
c32bde28 | 7419 | static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 7420 | PyObject *resultobj; |
ae8162c8 | 7421 | bool arg1 = (bool) true ; |
d55e5bfc RD |
7422 | bool result; |
7423 | PyObject * obj0 = 0 ; | |
7424 | char *kwnames[] = { | |
7425 | (char *) "doIt", NULL | |
7426 | }; | |
7427 | ||
7428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
7429 | if (obj0) { | |
c32bde28 | 7430 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
7431 | if (PyErr_Occurred()) SWIG_fail; |
7432 | } | |
7433 | { | |
7434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7435 | result = (bool)wxLog::EnableLogging(arg1); | |
7436 | ||
7437 | wxPyEndAllowThreads(__tstate); | |
7438 | if (PyErr_Occurred()) SWIG_fail; | |
7439 | } | |
7440 | { | |
7441 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7442 | } | |
7443 | return resultobj; | |
7444 | fail: | |
7445 | return NULL; | |
7446 | } | |
7447 | ||
7448 | ||
c32bde28 | 7449 | static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7450 | PyObject *resultobj; |
7451 | wxLogLevel arg1 ; | |
7452 | wxChar *arg2 = (wxChar *) 0 ; | |
7453 | time_t arg3 ; | |
7454 | PyObject * obj0 = 0 ; | |
7455 | PyObject * obj1 = 0 ; | |
7456 | PyObject * obj2 = 0 ; | |
7457 | char *kwnames[] = { | |
7458 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
7459 | }; | |
7460 | ||
7461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c32bde28 | 7462 | arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
7463 | if (PyErr_Occurred()) SWIG_fail; |
7464 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar, | |
7465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7466 | arg3 = (time_t)SWIG_As_unsigned_SS_int(obj2); |
d55e5bfc RD |
7467 | if (PyErr_Occurred()) SWIG_fail; |
7468 | { | |
7469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7470 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
7471 | ||
7472 | wxPyEndAllowThreads(__tstate); | |
7473 | if (PyErr_Occurred()) SWIG_fail; | |
7474 | } | |
7475 | Py_INCREF(Py_None); resultobj = Py_None; | |
7476 | return resultobj; | |
7477 | fail: | |
7478 | return NULL; | |
7479 | } | |
7480 | ||
7481 | ||
c32bde28 | 7482 | static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7483 | PyObject *resultobj; |
7484 | wxLog *arg1 = (wxLog *) 0 ; | |
7485 | PyObject * obj0 = 0 ; | |
7486 | char *kwnames[] = { | |
7487 | (char *) "self", NULL | |
7488 | }; | |
7489 | ||
7490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
7491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7493 | { | |
7494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7495 | (arg1)->Flush(); | |
7496 | ||
7497 | wxPyEndAllowThreads(__tstate); | |
7498 | if (PyErr_Occurred()) SWIG_fail; | |
7499 | } | |
7500 | Py_INCREF(Py_None); resultobj = Py_None; | |
7501 | return resultobj; | |
7502 | fail: | |
7503 | return NULL; | |
7504 | } | |
7505 | ||
7506 | ||
c32bde28 | 7507 | static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7508 | PyObject *resultobj; |
7509 | char *kwnames[] = { | |
7510 | NULL | |
7511 | }; | |
7512 | ||
7513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
7514 | { | |
7515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7516 | wxLog::FlushActive(); | |
7517 | ||
7518 | wxPyEndAllowThreads(__tstate); | |
7519 | if (PyErr_Occurred()) SWIG_fail; | |
7520 | } | |
7521 | Py_INCREF(Py_None); resultobj = Py_None; | |
7522 | return resultobj; | |
7523 | fail: | |
7524 | return NULL; | |
7525 | } | |
7526 | ||
7527 | ||
c32bde28 | 7528 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7529 | PyObject *resultobj; |
7530 | wxLog *result; | |
7531 | char *kwnames[] = { | |
7532 | NULL | |
7533 | }; | |
7534 | ||
7535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
7536 | { | |
7537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7538 | result = (wxLog *)wxLog::GetActiveTarget(); | |
7539 | ||
7540 | wxPyEndAllowThreads(__tstate); | |
7541 | if (PyErr_Occurred()) SWIG_fail; | |
7542 | } | |
7543 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7544 | return resultobj; | |
7545 | fail: | |
7546 | return NULL; | |
7547 | } | |
7548 | ||
7549 | ||
c32bde28 | 7550 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7551 | PyObject *resultobj; |
7552 | wxLog *arg1 = (wxLog *) 0 ; | |
7553 | wxLog *result; | |
7554 | PyObject * obj0 = 0 ; | |
7555 | char *kwnames[] = { | |
7556 | (char *) "pLogger", NULL | |
7557 | }; | |
7558 | ||
7559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
7560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7562 | { | |
7563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7564 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
7565 | ||
7566 | wxPyEndAllowThreads(__tstate); | |
7567 | if (PyErr_Occurred()) SWIG_fail; | |
7568 | } | |
7569 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7570 | return resultobj; | |
7571 | fail: | |
7572 | return NULL; | |
7573 | } | |
7574 | ||
7575 | ||
c32bde28 | 7576 | static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7577 | PyObject *resultobj; |
7578 | char *kwnames[] = { | |
7579 | NULL | |
7580 | }; | |
7581 | ||
7582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
7583 | { | |
7584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7585 | wxLog::Suspend(); | |
7586 | ||
7587 | wxPyEndAllowThreads(__tstate); | |
7588 | if (PyErr_Occurred()) SWIG_fail; | |
7589 | } | |
7590 | Py_INCREF(Py_None); resultobj = Py_None; | |
7591 | return resultobj; | |
7592 | fail: | |
7593 | return NULL; | |
7594 | } | |
7595 | ||
7596 | ||
c32bde28 | 7597 | static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7598 | PyObject *resultobj; |
7599 | char *kwnames[] = { | |
7600 | NULL | |
7601 | }; | |
7602 | ||
7603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
7604 | { | |
7605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7606 | wxLog::Resume(); | |
7607 | ||
7608 | wxPyEndAllowThreads(__tstate); | |
7609 | if (PyErr_Occurred()) SWIG_fail; | |
7610 | } | |
7611 | Py_INCREF(Py_None); resultobj = Py_None; | |
7612 | return resultobj; | |
7613 | fail: | |
7614 | return NULL; | |
7615 | } | |
7616 | ||
7617 | ||
c32bde28 | 7618 | static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 7619 | PyObject *resultobj; |
ae8162c8 | 7620 | bool arg1 = (bool) true ; |
d55e5bfc RD |
7621 | PyObject * obj0 = 0 ; |
7622 | char *kwnames[] = { | |
7623 | (char *) "bVerbose", NULL | |
7624 | }; | |
7625 | ||
7626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
7627 | if (obj0) { | |
c32bde28 | 7628 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
7629 | if (PyErr_Occurred()) SWIG_fail; |
7630 | } | |
7631 | { | |
7632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7633 | wxLog::SetVerbose(arg1); | |
7634 | ||
7635 | wxPyEndAllowThreads(__tstate); | |
7636 | if (PyErr_Occurred()) SWIG_fail; | |
7637 | } | |
7638 | Py_INCREF(Py_None); resultobj = Py_None; | |
7639 | return resultobj; | |
7640 | fail: | |
7641 | return NULL; | |
7642 | } | |
7643 | ||
7644 | ||
c32bde28 | 7645 | static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7646 | PyObject *resultobj; |
7647 | wxLogLevel arg1 ; | |
7648 | PyObject * obj0 = 0 ; | |
7649 | char *kwnames[] = { | |
7650 | (char *) "logLevel", NULL | |
7651 | }; | |
7652 | ||
7653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
c32bde28 | 7654 | arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
7655 | if (PyErr_Occurred()) SWIG_fail; |
7656 | { | |
7657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7658 | wxLog::SetLogLevel(arg1); | |
7659 | ||
7660 | wxPyEndAllowThreads(__tstate); | |
7661 | if (PyErr_Occurred()) SWIG_fail; | |
7662 | } | |
7663 | Py_INCREF(Py_None); resultobj = Py_None; | |
7664 | return resultobj; | |
7665 | fail: | |
7666 | return NULL; | |
7667 | } | |
7668 | ||
7669 | ||
c32bde28 | 7670 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7671 | PyObject *resultobj; |
7672 | char *kwnames[] = { | |
7673 | NULL | |
7674 | }; | |
7675 | ||
7676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
7677 | { | |
7678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7679 | wxLog::DontCreateOnDemand(); | |
7680 | ||
7681 | wxPyEndAllowThreads(__tstate); | |
7682 | if (PyErr_Occurred()) SWIG_fail; | |
7683 | } | |
7684 | Py_INCREF(Py_None); resultobj = Py_None; | |
7685 | return resultobj; | |
7686 | fail: | |
7687 | return NULL; | |
7688 | } | |
7689 | ||
7690 | ||
c32bde28 | 7691 | static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7692 | PyObject *resultobj; |
7693 | wxTraceMask arg1 ; | |
7694 | PyObject * obj0 = 0 ; | |
7695 | char *kwnames[] = { | |
7696 | (char *) "ulMask", NULL | |
7697 | }; | |
7698 | ||
7699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
c32bde28 | 7700 | arg1 = (wxTraceMask)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
7701 | if (PyErr_Occurred()) SWIG_fail; |
7702 | { | |
7703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7704 | wxLog::SetTraceMask(arg1); | |
7705 | ||
7706 | wxPyEndAllowThreads(__tstate); | |
7707 | if (PyErr_Occurred()) SWIG_fail; | |
7708 | } | |
7709 | Py_INCREF(Py_None); resultobj = Py_None; | |
7710 | return resultobj; | |
7711 | fail: | |
7712 | return NULL; | |
7713 | } | |
7714 | ||
7715 | ||
c32bde28 | 7716 | static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7717 | PyObject *resultobj; |
7718 | wxString *arg1 = 0 ; | |
ae8162c8 | 7719 | bool temp1 = false ; |
d55e5bfc RD |
7720 | PyObject * obj0 = 0 ; |
7721 | char *kwnames[] = { | |
7722 | (char *) "str", NULL | |
7723 | }; | |
7724 | ||
7725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
7726 | { | |
7727 | arg1 = wxString_in_helper(obj0); | |
7728 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7729 | temp1 = true; |
d55e5bfc RD |
7730 | } |
7731 | { | |
7732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7733 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7734 | ||
7735 | wxPyEndAllowThreads(__tstate); | |
7736 | if (PyErr_Occurred()) SWIG_fail; | |
7737 | } | |
7738 | Py_INCREF(Py_None); resultobj = Py_None; | |
7739 | { | |
7740 | if (temp1) | |
7741 | delete arg1; | |
7742 | } | |
7743 | return resultobj; | |
7744 | fail: | |
7745 | { | |
7746 | if (temp1) | |
7747 | delete arg1; | |
7748 | } | |
7749 | return NULL; | |
7750 | } | |
7751 | ||
7752 | ||
c32bde28 | 7753 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7754 | PyObject *resultobj; |
7755 | wxString *arg1 = 0 ; | |
ae8162c8 | 7756 | bool temp1 = false ; |
d55e5bfc RD |
7757 | PyObject * obj0 = 0 ; |
7758 | char *kwnames[] = { | |
7759 | (char *) "str", NULL | |
7760 | }; | |
7761 | ||
7762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7763 | { | |
7764 | arg1 = wxString_in_helper(obj0); | |
7765 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7766 | temp1 = true; |
d55e5bfc RD |
7767 | } |
7768 | { | |
7769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7770 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7771 | ||
7772 | wxPyEndAllowThreads(__tstate); | |
7773 | if (PyErr_Occurred()) SWIG_fail; | |
7774 | } | |
7775 | Py_INCREF(Py_None); resultobj = Py_None; | |
7776 | { | |
7777 | if (temp1) | |
7778 | delete arg1; | |
7779 | } | |
7780 | return resultobj; | |
7781 | fail: | |
7782 | { | |
7783 | if (temp1) | |
7784 | delete arg1; | |
7785 | } | |
7786 | return NULL; | |
7787 | } | |
7788 | ||
7789 | ||
c32bde28 | 7790 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7791 | PyObject *resultobj; |
7792 | char *kwnames[] = { | |
7793 | NULL | |
7794 | }; | |
7795 | ||
7796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7797 | { | |
7798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7799 | wxLog::ClearTraceMasks(); | |
7800 | ||
7801 | wxPyEndAllowThreads(__tstate); | |
7802 | if (PyErr_Occurred()) SWIG_fail; | |
7803 | } | |
7804 | Py_INCREF(Py_None); resultobj = Py_None; | |
7805 | return resultobj; | |
7806 | fail: | |
7807 | return NULL; | |
7808 | } | |
7809 | ||
7810 | ||
c32bde28 | 7811 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7812 | PyObject *resultobj; |
7813 | wxArrayString *result; | |
7814 | char *kwnames[] = { | |
7815 | NULL | |
7816 | }; | |
7817 | ||
7818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7819 | { | |
7820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7821 | { | |
7822 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7823 | result = (wxArrayString *) &_result_ref; | |
7824 | } | |
7825 | ||
7826 | wxPyEndAllowThreads(__tstate); | |
7827 | if (PyErr_Occurred()) SWIG_fail; | |
7828 | } | |
7829 | { | |
7830 | resultobj = wxArrayString2PyList_helper(*result); | |
7831 | } | |
7832 | return resultobj; | |
7833 | fail: | |
7834 | return NULL; | |
7835 | } | |
7836 | ||
7837 | ||
c32bde28 | 7838 | static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7839 | PyObject *resultobj; |
7840 | wxChar *arg1 = (wxChar *) 0 ; | |
7841 | PyObject * obj0 = 0 ; | |
7842 | char *kwnames[] = { | |
7843 | (char *) "ts", NULL | |
7844 | }; | |
7845 | ||
7846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
7847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
7848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7849 | { | |
7850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7851 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7852 | ||
7853 | wxPyEndAllowThreads(__tstate); | |
7854 | if (PyErr_Occurred()) SWIG_fail; | |
7855 | } | |
7856 | Py_INCREF(Py_None); resultobj = Py_None; | |
7857 | return resultobj; | |
7858 | fail: | |
7859 | return NULL; | |
7860 | } | |
7861 | ||
7862 | ||
c32bde28 | 7863 | static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7864 | PyObject *resultobj; |
7865 | bool result; | |
7866 | char *kwnames[] = { | |
7867 | NULL | |
7868 | }; | |
7869 | ||
7870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7871 | { | |
7872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7873 | result = (bool)wxLog::GetVerbose(); | |
7874 | ||
7875 | wxPyEndAllowThreads(__tstate); | |
7876 | if (PyErr_Occurred()) SWIG_fail; | |
7877 | } | |
7878 | { | |
7879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7880 | } | |
7881 | return resultobj; | |
7882 | fail: | |
7883 | return NULL; | |
7884 | } | |
7885 | ||
7886 | ||
c32bde28 | 7887 | static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7888 | PyObject *resultobj; |
7889 | wxTraceMask result; | |
7890 | char *kwnames[] = { | |
7891 | NULL | |
7892 | }; | |
7893 | ||
7894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7895 | { | |
7896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7897 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7898 | ||
7899 | wxPyEndAllowThreads(__tstate); | |
7900 | if (PyErr_Occurred()) SWIG_fail; | |
7901 | } | |
c32bde28 | 7902 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
7903 | return resultobj; |
7904 | fail: | |
7905 | return NULL; | |
7906 | } | |
7907 | ||
7908 | ||
c32bde28 | 7909 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7910 | PyObject *resultobj; |
7911 | wxChar *arg1 = (wxChar *) 0 ; | |
7912 | bool result; | |
7913 | PyObject * obj0 = 0 ; | |
7914 | char *kwnames[] = { | |
7915 | (char *) "mask", NULL | |
7916 | }; | |
7917 | ||
7918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
7919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
7920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7921 | { | |
7922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7923 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
7924 | ||
7925 | wxPyEndAllowThreads(__tstate); | |
7926 | if (PyErr_Occurred()) SWIG_fail; | |
7927 | } | |
7928 | { | |
7929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7930 | } | |
7931 | return resultobj; | |
7932 | fail: | |
7933 | return NULL; | |
7934 | } | |
7935 | ||
7936 | ||
c32bde28 | 7937 | static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7938 | PyObject *resultobj; |
7939 | wxLogLevel result; | |
7940 | char *kwnames[] = { | |
7941 | NULL | |
7942 | }; | |
7943 | ||
7944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
7945 | { | |
7946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7947 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
7948 | ||
7949 | wxPyEndAllowThreads(__tstate); | |
7950 | if (PyErr_Occurred()) SWIG_fail; | |
7951 | } | |
c32bde28 | 7952 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
7953 | return resultobj; |
7954 | fail: | |
7955 | return NULL; | |
7956 | } | |
7957 | ||
7958 | ||
c32bde28 | 7959 | static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7960 | PyObject *resultobj; |
7961 | wxChar *result; | |
7962 | char *kwnames[] = { | |
7963 | NULL | |
7964 | }; | |
7965 | ||
7966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
7967 | { | |
7968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7969 | result = (wxChar *)wxLog::GetTimestamp(); | |
7970 | ||
7971 | wxPyEndAllowThreads(__tstate); | |
7972 | if (PyErr_Occurred()) SWIG_fail; | |
7973 | } | |
7974 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); | |
7975 | return resultobj; | |
7976 | fail: | |
7977 | return NULL; | |
7978 | } | |
7979 | ||
7980 | ||
c32bde28 | 7981 | static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7982 | PyObject *resultobj; |
7983 | wxString result; | |
7984 | char *kwnames[] = { | |
7985 | NULL | |
7986 | }; | |
7987 | ||
7988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
7989 | { | |
7990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7991 | result = Log_TimeStamp(); | |
7992 | ||
7993 | wxPyEndAllowThreads(__tstate); | |
7994 | if (PyErr_Occurred()) SWIG_fail; | |
7995 | } | |
7996 | { | |
7997 | #if wxUSE_UNICODE | |
7998 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7999 | #else | |
8000 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8001 | #endif | |
8002 | } | |
8003 | return resultobj; | |
8004 | fail: | |
8005 | return NULL; | |
8006 | } | |
8007 | ||
8008 | ||
c32bde28 | 8009 | static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8010 | PyObject *resultobj; |
8011 | wxLog *arg1 = (wxLog *) 0 ; | |
8012 | PyObject * obj0 = 0 ; | |
8013 | char *kwnames[] = { | |
8014 | (char *) "self", NULL | |
8015 | }; | |
8016 | ||
8017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
8018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
8019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8020 | { | |
8021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8022 | wxLog_Destroy(arg1); | |
8023 | ||
8024 | wxPyEndAllowThreads(__tstate); | |
8025 | if (PyErr_Occurred()) SWIG_fail; | |
8026 | } | |
8027 | Py_INCREF(Py_None); resultobj = Py_None; | |
8028 | return resultobj; | |
8029 | fail: | |
8030 | return NULL; | |
8031 | } | |
8032 | ||
8033 | ||
c32bde28 | 8034 | static PyObject * Log_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8035 | PyObject *obj; |
8036 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8037 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
8038 | Py_INCREF(obj); | |
8039 | return Py_BuildValue((char *)""); | |
8040 | } | |
c32bde28 | 8041 | static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8042 | PyObject *resultobj; |
8043 | wxLogStderr *result; | |
8044 | char *kwnames[] = { | |
8045 | NULL | |
8046 | }; | |
8047 | ||
8048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
8049 | { | |
8050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8051 | result = (wxLogStderr *)new wxLogStderr(); | |
8052 | ||
8053 | wxPyEndAllowThreads(__tstate); | |
8054 | if (PyErr_Occurred()) SWIG_fail; | |
8055 | } | |
8056 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); | |
8057 | return resultobj; | |
8058 | fail: | |
8059 | return NULL; | |
8060 | } | |
8061 | ||
8062 | ||
c32bde28 | 8063 | static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8064 | PyObject *obj; |
8065 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8066 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
8067 | Py_INCREF(obj); | |
8068 | return Py_BuildValue((char *)""); | |
8069 | } | |
c32bde28 | 8070 | static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8071 | PyObject *resultobj; |
8072 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8073 | wxLogTextCtrl *result; | |
8074 | PyObject * obj0 = 0 ; | |
8075 | char *kwnames[] = { | |
8076 | (char *) "pTextCtrl", NULL | |
8077 | }; | |
8078 | ||
8079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
8080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8082 | { | |
8083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8084 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
8085 | ||
8086 | wxPyEndAllowThreads(__tstate); | |
8087 | if (PyErr_Occurred()) SWIG_fail; | |
8088 | } | |
8089 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); | |
8090 | return resultobj; | |
8091 | fail: | |
8092 | return NULL; | |
8093 | } | |
8094 | ||
8095 | ||
c32bde28 | 8096 | static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8097 | PyObject *obj; |
8098 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8099 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
8100 | Py_INCREF(obj); | |
8101 | return Py_BuildValue((char *)""); | |
8102 | } | |
c32bde28 | 8103 | static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8104 | PyObject *resultobj; |
8105 | wxLogGui *result; | |
8106 | char *kwnames[] = { | |
8107 | NULL | |
8108 | }; | |
8109 | ||
8110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
8111 | { | |
8112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8113 | result = (wxLogGui *)new wxLogGui(); | |
8114 | ||
8115 | wxPyEndAllowThreads(__tstate); | |
8116 | if (PyErr_Occurred()) SWIG_fail; | |
8117 | } | |
8118 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); | |
8119 | return resultobj; | |
8120 | fail: | |
8121 | return NULL; | |
8122 | } | |
8123 | ||
8124 | ||
c32bde28 | 8125 | static PyObject * LogGui_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8126 | PyObject *obj; |
8127 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8128 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
8129 | Py_INCREF(obj); | |
8130 | return Py_BuildValue((char *)""); | |
8131 | } | |
c32bde28 | 8132 | static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8133 | PyObject *resultobj; |
8134 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8135 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
8136 | bool arg3 = (bool) true ; |
8137 | bool arg4 = (bool) true ; | |
d55e5bfc | 8138 | wxLogWindow *result; |
ae8162c8 | 8139 | bool temp2 = false ; |
d55e5bfc RD |
8140 | PyObject * obj0 = 0 ; |
8141 | PyObject * obj1 = 0 ; | |
8142 | PyObject * obj2 = 0 ; | |
8143 | PyObject * obj3 = 0 ; | |
8144 | char *kwnames[] = { | |
8145 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
8146 | }; | |
8147 | ||
8148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
8150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8151 | { | |
8152 | arg2 = wxString_in_helper(obj1); | |
8153 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8154 | temp2 = true; |
d55e5bfc RD |
8155 | } |
8156 | if (obj2) { | |
c32bde28 | 8157 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
8158 | if (PyErr_Occurred()) SWIG_fail; |
8159 | } | |
8160 | if (obj3) { | |
c32bde28 | 8161 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
8162 | if (PyErr_Occurred()) SWIG_fail; |
8163 | } | |
8164 | { | |
8165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8166 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
8167 | ||
8168 | wxPyEndAllowThreads(__tstate); | |
8169 | if (PyErr_Occurred()) SWIG_fail; | |
8170 | } | |
8171 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); | |
8172 | { | |
8173 | if (temp2) | |
8174 | delete arg2; | |
8175 | } | |
8176 | return resultobj; | |
8177 | fail: | |
8178 | { | |
8179 | if (temp2) | |
8180 | delete arg2; | |
8181 | } | |
8182 | return NULL; | |
8183 | } | |
8184 | ||
8185 | ||
c32bde28 | 8186 | static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8187 | PyObject *resultobj; |
8188 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
ae8162c8 | 8189 | bool arg2 = (bool) true ; |
d55e5bfc RD |
8190 | PyObject * obj0 = 0 ; |
8191 | PyObject * obj1 = 0 ; | |
8192 | char *kwnames[] = { | |
8193 | (char *) "self",(char *) "bShow", NULL | |
8194 | }; | |
8195 | ||
8196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
8197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8199 | if (obj1) { | |
c32bde28 | 8200 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
8201 | if (PyErr_Occurred()) SWIG_fail; |
8202 | } | |
8203 | { | |
8204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8205 | (arg1)->Show(arg2); | |
8206 | ||
8207 | wxPyEndAllowThreads(__tstate); | |
8208 | if (PyErr_Occurred()) SWIG_fail; | |
8209 | } | |
8210 | Py_INCREF(Py_None); resultobj = Py_None; | |
8211 | return resultobj; | |
8212 | fail: | |
8213 | return NULL; | |
8214 | } | |
8215 | ||
8216 | ||
c32bde28 | 8217 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8218 | PyObject *resultobj; |
8219 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8220 | wxFrame *result; | |
8221 | PyObject * obj0 = 0 ; | |
8222 | char *kwnames[] = { | |
8223 | (char *) "self", NULL | |
8224 | }; | |
8225 | ||
8226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
8227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8229 | { | |
8230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8231 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
8232 | ||
8233 | wxPyEndAllowThreads(__tstate); | |
8234 | if (PyErr_Occurred()) SWIG_fail; | |
8235 | } | |
8236 | { | |
412d302d | 8237 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
8238 | } |
8239 | return resultobj; | |
8240 | fail: | |
8241 | return NULL; | |
8242 | } | |
8243 | ||
8244 | ||
c32bde28 | 8245 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8246 | PyObject *resultobj; |
8247 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8248 | wxLog *result; | |
8249 | PyObject * obj0 = 0 ; | |
8250 | char *kwnames[] = { | |
8251 | (char *) "self", NULL | |
8252 | }; | |
8253 | ||
8254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
8255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8257 | { | |
8258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8259 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
8260 | ||
8261 | wxPyEndAllowThreads(__tstate); | |
8262 | if (PyErr_Occurred()) SWIG_fail; | |
8263 | } | |
8264 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
8265 | return resultobj; | |
8266 | fail: | |
8267 | return NULL; | |
8268 | } | |
8269 | ||
8270 | ||
c32bde28 | 8271 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8272 | PyObject *resultobj; |
8273 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8274 | bool result; | |
8275 | PyObject * obj0 = 0 ; | |
8276 | char *kwnames[] = { | |
8277 | (char *) "self", NULL | |
8278 | }; | |
8279 | ||
8280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
8281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8283 | { | |
8284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8285 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
8286 | ||
8287 | wxPyEndAllowThreads(__tstate); | |
8288 | if (PyErr_Occurred()) SWIG_fail; | |
8289 | } | |
8290 | { | |
8291 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8292 | } | |
8293 | return resultobj; | |
8294 | fail: | |
8295 | return NULL; | |
8296 | } | |
8297 | ||
8298 | ||
c32bde28 | 8299 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8300 | PyObject *resultobj; |
8301 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8302 | bool arg2 ; | |
8303 | PyObject * obj0 = 0 ; | |
8304 | PyObject * obj1 = 0 ; | |
8305 | char *kwnames[] = { | |
8306 | (char *) "self",(char *) "bDoPass", NULL | |
8307 | }; | |
8308 | ||
8309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
8310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8312 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
8313 | if (PyErr_Occurred()) SWIG_fail; |
8314 | { | |
8315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8316 | (arg1)->PassMessages(arg2); | |
8317 | ||
8318 | wxPyEndAllowThreads(__tstate); | |
8319 | if (PyErr_Occurred()) SWIG_fail; | |
8320 | } | |
8321 | Py_INCREF(Py_None); resultobj = Py_None; | |
8322 | return resultobj; | |
8323 | fail: | |
8324 | return NULL; | |
8325 | } | |
8326 | ||
8327 | ||
c32bde28 | 8328 | static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8329 | PyObject *obj; |
8330 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8331 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
8332 | Py_INCREF(obj); | |
8333 | return Py_BuildValue((char *)""); | |
8334 | } | |
c32bde28 | 8335 | static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8336 | PyObject *resultobj; |
8337 | wxLog *arg1 = (wxLog *) 0 ; | |
8338 | wxLogChain *result; | |
8339 | PyObject * obj0 = 0 ; | |
8340 | char *kwnames[] = { | |
8341 | (char *) "logger", NULL | |
8342 | }; | |
8343 | ||
8344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
8345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
8346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8347 | { | |
8348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8349 | result = (wxLogChain *)new wxLogChain(arg1); | |
8350 | ||
8351 | wxPyEndAllowThreads(__tstate); | |
8352 | if (PyErr_Occurred()) SWIG_fail; | |
8353 | } | |
8354 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); | |
8355 | return resultobj; | |
8356 | fail: | |
8357 | return NULL; | |
8358 | } | |
8359 | ||
8360 | ||
c32bde28 | 8361 | static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8362 | PyObject *resultobj; |
8363 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8364 | wxLog *arg2 = (wxLog *) 0 ; | |
8365 | PyObject * obj0 = 0 ; | |
8366 | PyObject * obj1 = 0 ; | |
8367 | char *kwnames[] = { | |
8368 | (char *) "self",(char *) "logger", NULL | |
8369 | }; | |
8370 | ||
8371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
8372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8374 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog, | |
8375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8376 | { | |
8377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8378 | (arg1)->SetLog(arg2); | |
8379 | ||
8380 | wxPyEndAllowThreads(__tstate); | |
8381 | if (PyErr_Occurred()) SWIG_fail; | |
8382 | } | |
8383 | Py_INCREF(Py_None); resultobj = Py_None; | |
8384 | return resultobj; | |
8385 | fail: | |
8386 | return NULL; | |
8387 | } | |
8388 | ||
8389 | ||
c32bde28 | 8390 | static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8391 | PyObject *resultobj; |
8392 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8393 | bool arg2 ; | |
8394 | PyObject * obj0 = 0 ; | |
8395 | PyObject * obj1 = 0 ; | |
8396 | char *kwnames[] = { | |
8397 | (char *) "self",(char *) "bDoPass", NULL | |
8398 | }; | |
8399 | ||
8400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
8401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8403 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
8404 | if (PyErr_Occurred()) SWIG_fail; |
8405 | { | |
8406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8407 | (arg1)->PassMessages(arg2); | |
8408 | ||
8409 | wxPyEndAllowThreads(__tstate); | |
8410 | if (PyErr_Occurred()) SWIG_fail; | |
8411 | } | |
8412 | Py_INCREF(Py_None); resultobj = Py_None; | |
8413 | return resultobj; | |
8414 | fail: | |
8415 | return NULL; | |
8416 | } | |
8417 | ||
8418 | ||
c32bde28 | 8419 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8420 | PyObject *resultobj; |
8421 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8422 | bool result; | |
8423 | PyObject * obj0 = 0 ; | |
8424 | char *kwnames[] = { | |
8425 | (char *) "self", NULL | |
8426 | }; | |
8427 | ||
8428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
8429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8431 | { | |
8432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8433 | result = (bool)(arg1)->IsPassingMessages(); | |
8434 | ||
8435 | wxPyEndAllowThreads(__tstate); | |
8436 | if (PyErr_Occurred()) SWIG_fail; | |
8437 | } | |
8438 | { | |
8439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8440 | } | |
8441 | return resultobj; | |
8442 | fail: | |
8443 | return NULL; | |
8444 | } | |
8445 | ||
8446 | ||
c32bde28 | 8447 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8448 | PyObject *resultobj; |
8449 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8450 | wxLog *result; | |
8451 | PyObject * obj0 = 0 ; | |
8452 | char *kwnames[] = { | |
8453 | (char *) "self", NULL | |
8454 | }; | |
8455 | ||
8456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
8457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8459 | { | |
8460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8461 | result = (wxLog *)(arg1)->GetOldLog(); | |
8462 | ||
8463 | wxPyEndAllowThreads(__tstate); | |
8464 | if (PyErr_Occurred()) SWIG_fail; | |
8465 | } | |
8466 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
8467 | return resultobj; | |
8468 | fail: | |
8469 | return NULL; | |
8470 | } | |
8471 | ||
8472 | ||
c32bde28 | 8473 | static PyObject * LogChain_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8474 | PyObject *obj; |
8475 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8476 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
8477 | Py_INCREF(obj); | |
8478 | return Py_BuildValue((char *)""); | |
8479 | } | |
c32bde28 | 8480 | static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8481 | PyObject *resultobj; |
8482 | unsigned long result; | |
8483 | char *kwnames[] = { | |
8484 | NULL | |
8485 | }; | |
8486 | ||
8487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
8488 | { | |
8489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8490 | result = (unsigned long)wxSysErrorCode(); | |
8491 | ||
8492 | wxPyEndAllowThreads(__tstate); | |
8493 | if (PyErr_Occurred()) SWIG_fail; | |
8494 | } | |
c32bde28 | 8495 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
8496 | return resultobj; |
8497 | fail: | |
8498 | return NULL; | |
8499 | } | |
8500 | ||
8501 | ||
c32bde28 | 8502 | static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8503 | PyObject *resultobj; |
8504 | unsigned long arg1 = (unsigned long) 0 ; | |
8505 | wxString result; | |
8506 | PyObject * obj0 = 0 ; | |
8507 | char *kwnames[] = { | |
8508 | (char *) "nErrCode", NULL | |
8509 | }; | |
8510 | ||
8511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
8512 | if (obj0) { | |
c32bde28 | 8513 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
8514 | if (PyErr_Occurred()) SWIG_fail; |
8515 | } | |
8516 | { | |
8517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8518 | result = wxSysErrorMsg(arg1); | |
8519 | ||
8520 | wxPyEndAllowThreads(__tstate); | |
8521 | if (PyErr_Occurred()) SWIG_fail; | |
8522 | } | |
8523 | { | |
8524 | #if wxUSE_UNICODE | |
8525 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8526 | #else | |
8527 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8528 | #endif | |
8529 | } | |
8530 | return resultobj; | |
8531 | fail: | |
8532 | return NULL; | |
8533 | } | |
8534 | ||
8535 | ||
c32bde28 | 8536 | static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8537 | PyObject *resultobj; |
8538 | wxString *arg1 = 0 ; | |
ae8162c8 | 8539 | bool temp1 = false ; |
d55e5bfc RD |
8540 | PyObject * obj0 = 0 ; |
8541 | char *kwnames[] = { | |
8542 | (char *) "msg", NULL | |
8543 | }; | |
8544 | ||
8545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
8546 | { | |
8547 | arg1 = wxString_in_helper(obj0); | |
8548 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8549 | temp1 = true; |
d55e5bfc RD |
8550 | } |
8551 | { | |
8552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8553 | wxLogFatalError((wxString const &)*arg1); | |
8554 | ||
8555 | wxPyEndAllowThreads(__tstate); | |
8556 | if (PyErr_Occurred()) SWIG_fail; | |
8557 | } | |
8558 | Py_INCREF(Py_None); resultobj = Py_None; | |
8559 | { | |
8560 | if (temp1) | |
8561 | delete arg1; | |
8562 | } | |
8563 | return resultobj; | |
8564 | fail: | |
8565 | { | |
8566 | if (temp1) | |
8567 | delete arg1; | |
8568 | } | |
8569 | return NULL; | |
8570 | } | |
8571 | ||
8572 | ||
c32bde28 | 8573 | static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8574 | PyObject *resultobj; |
8575 | wxString *arg1 = 0 ; | |
ae8162c8 | 8576 | bool temp1 = false ; |
d55e5bfc RD |
8577 | PyObject * obj0 = 0 ; |
8578 | char *kwnames[] = { | |
8579 | (char *) "msg", NULL | |
8580 | }; | |
8581 | ||
8582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
8583 | { | |
8584 | arg1 = wxString_in_helper(obj0); | |
8585 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8586 | temp1 = true; |
d55e5bfc RD |
8587 | } |
8588 | { | |
8589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8590 | wxLogError((wxString const &)*arg1); | |
8591 | ||
8592 | wxPyEndAllowThreads(__tstate); | |
8593 | if (PyErr_Occurred()) SWIG_fail; | |
8594 | } | |
8595 | Py_INCREF(Py_None); resultobj = Py_None; | |
8596 | { | |
8597 | if (temp1) | |
8598 | delete arg1; | |
8599 | } | |
8600 | return resultobj; | |
8601 | fail: | |
8602 | { | |
8603 | if (temp1) | |
8604 | delete arg1; | |
8605 | } | |
8606 | return NULL; | |
8607 | } | |
8608 | ||
8609 | ||
c32bde28 | 8610 | static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8611 | PyObject *resultobj; |
8612 | wxString *arg1 = 0 ; | |
ae8162c8 | 8613 | bool temp1 = false ; |
d55e5bfc RD |
8614 | PyObject * obj0 = 0 ; |
8615 | char *kwnames[] = { | |
8616 | (char *) "msg", NULL | |
8617 | }; | |
8618 | ||
8619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
8620 | { | |
8621 | arg1 = wxString_in_helper(obj0); | |
8622 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8623 | temp1 = true; |
d55e5bfc RD |
8624 | } |
8625 | { | |
8626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8627 | wxLogWarning((wxString const &)*arg1); | |
8628 | ||
8629 | wxPyEndAllowThreads(__tstate); | |
8630 | if (PyErr_Occurred()) SWIG_fail; | |
8631 | } | |
8632 | Py_INCREF(Py_None); resultobj = Py_None; | |
8633 | { | |
8634 | if (temp1) | |
8635 | delete arg1; | |
8636 | } | |
8637 | return resultobj; | |
8638 | fail: | |
8639 | { | |
8640 | if (temp1) | |
8641 | delete arg1; | |
8642 | } | |
8643 | return NULL; | |
8644 | } | |
8645 | ||
8646 | ||
c32bde28 | 8647 | static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8648 | PyObject *resultobj; |
8649 | wxString *arg1 = 0 ; | |
ae8162c8 | 8650 | bool temp1 = false ; |
d55e5bfc RD |
8651 | PyObject * obj0 = 0 ; |
8652 | char *kwnames[] = { | |
8653 | (char *) "msg", NULL | |
8654 | }; | |
8655 | ||
8656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
8657 | { | |
8658 | arg1 = wxString_in_helper(obj0); | |
8659 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8660 | temp1 = true; |
d55e5bfc RD |
8661 | } |
8662 | { | |
8663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8664 | wxLogMessage((wxString const &)*arg1); | |
8665 | ||
8666 | wxPyEndAllowThreads(__tstate); | |
8667 | if (PyErr_Occurred()) SWIG_fail; | |
8668 | } | |
8669 | Py_INCREF(Py_None); resultobj = Py_None; | |
8670 | { | |
8671 | if (temp1) | |
8672 | delete arg1; | |
8673 | } | |
8674 | return resultobj; | |
8675 | fail: | |
8676 | { | |
8677 | if (temp1) | |
8678 | delete arg1; | |
8679 | } | |
8680 | return NULL; | |
8681 | } | |
8682 | ||
8683 | ||
c32bde28 | 8684 | static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8685 | PyObject *resultobj; |
8686 | wxString *arg1 = 0 ; | |
ae8162c8 | 8687 | bool temp1 = false ; |
d55e5bfc RD |
8688 | PyObject * obj0 = 0 ; |
8689 | char *kwnames[] = { | |
8690 | (char *) "msg", NULL | |
8691 | }; | |
8692 | ||
8693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
8694 | { | |
8695 | arg1 = wxString_in_helper(obj0); | |
8696 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8697 | temp1 = true; |
d55e5bfc RD |
8698 | } |
8699 | { | |
8700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8701 | wxLogInfo((wxString const &)*arg1); | |
8702 | ||
8703 | wxPyEndAllowThreads(__tstate); | |
8704 | if (PyErr_Occurred()) SWIG_fail; | |
8705 | } | |
8706 | Py_INCREF(Py_None); resultobj = Py_None; | |
8707 | { | |
8708 | if (temp1) | |
8709 | delete arg1; | |
8710 | } | |
8711 | return resultobj; | |
8712 | fail: | |
8713 | { | |
8714 | if (temp1) | |
8715 | delete arg1; | |
8716 | } | |
8717 | return NULL; | |
8718 | } | |
8719 | ||
8720 | ||
c32bde28 | 8721 | static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8722 | PyObject *resultobj; |
8723 | wxString *arg1 = 0 ; | |
ae8162c8 | 8724 | bool temp1 = false ; |
d55e5bfc RD |
8725 | PyObject * obj0 = 0 ; |
8726 | char *kwnames[] = { | |
8727 | (char *) "msg", NULL | |
8728 | }; | |
8729 | ||
8730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
8731 | { | |
8732 | arg1 = wxString_in_helper(obj0); | |
8733 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8734 | temp1 = true; |
d55e5bfc RD |
8735 | } |
8736 | { | |
8737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8738 | wxLogDebug((wxString const &)*arg1); | |
8739 | ||
8740 | wxPyEndAllowThreads(__tstate); | |
8741 | if (PyErr_Occurred()) SWIG_fail; | |
8742 | } | |
8743 | Py_INCREF(Py_None); resultobj = Py_None; | |
8744 | { | |
8745 | if (temp1) | |
8746 | delete arg1; | |
8747 | } | |
8748 | return resultobj; | |
8749 | fail: | |
8750 | { | |
8751 | if (temp1) | |
8752 | delete arg1; | |
8753 | } | |
8754 | return NULL; | |
8755 | } | |
8756 | ||
8757 | ||
c32bde28 | 8758 | static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8759 | PyObject *resultobj; |
8760 | wxString *arg1 = 0 ; | |
ae8162c8 | 8761 | bool temp1 = false ; |
d55e5bfc RD |
8762 | PyObject * obj0 = 0 ; |
8763 | char *kwnames[] = { | |
8764 | (char *) "msg", NULL | |
8765 | }; | |
8766 | ||
8767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8768 | { | |
8769 | arg1 = wxString_in_helper(obj0); | |
8770 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8771 | temp1 = true; |
d55e5bfc RD |
8772 | } |
8773 | { | |
8774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8775 | wxLogVerbose((wxString const &)*arg1); | |
8776 | ||
8777 | wxPyEndAllowThreads(__tstate); | |
8778 | if (PyErr_Occurred()) SWIG_fail; | |
8779 | } | |
8780 | Py_INCREF(Py_None); resultobj = Py_None; | |
8781 | { | |
8782 | if (temp1) | |
8783 | delete arg1; | |
8784 | } | |
8785 | return resultobj; | |
8786 | fail: | |
8787 | { | |
8788 | if (temp1) | |
8789 | delete arg1; | |
8790 | } | |
8791 | return NULL; | |
8792 | } | |
8793 | ||
8794 | ||
c32bde28 | 8795 | static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8796 | PyObject *resultobj; |
8797 | wxString *arg1 = 0 ; | |
ae8162c8 | 8798 | bool temp1 = false ; |
d55e5bfc RD |
8799 | PyObject * obj0 = 0 ; |
8800 | char *kwnames[] = { | |
8801 | (char *) "msg", NULL | |
8802 | }; | |
8803 | ||
8804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8805 | { | |
8806 | arg1 = wxString_in_helper(obj0); | |
8807 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8808 | temp1 = true; |
d55e5bfc RD |
8809 | } |
8810 | { | |
8811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8812 | wxLogStatus((wxString const &)*arg1); | |
8813 | ||
8814 | wxPyEndAllowThreads(__tstate); | |
8815 | if (PyErr_Occurred()) SWIG_fail; | |
8816 | } | |
8817 | Py_INCREF(Py_None); resultobj = Py_None; | |
8818 | { | |
8819 | if (temp1) | |
8820 | delete arg1; | |
8821 | } | |
8822 | return resultobj; | |
8823 | fail: | |
8824 | { | |
8825 | if (temp1) | |
8826 | delete arg1; | |
8827 | } | |
8828 | return NULL; | |
8829 | } | |
8830 | ||
8831 | ||
c32bde28 | 8832 | static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8833 | PyObject *resultobj; |
8834 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8835 | wxString *arg2 = 0 ; | |
ae8162c8 | 8836 | bool temp2 = false ; |
d55e5bfc RD |
8837 | PyObject * obj0 = 0 ; |
8838 | PyObject * obj1 = 0 ; | |
8839 | char *kwnames[] = { | |
8840 | (char *) "pFrame",(char *) "msg", NULL | |
8841 | }; | |
8842 | ||
8843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
8844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
8845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8846 | { | |
8847 | arg2 = wxString_in_helper(obj1); | |
8848 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8849 | temp2 = true; |
d55e5bfc RD |
8850 | } |
8851 | { | |
8852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8853 | wxLogStatus(arg1,(wxString const &)*arg2); | |
8854 | ||
8855 | wxPyEndAllowThreads(__tstate); | |
8856 | if (PyErr_Occurred()) SWIG_fail; | |
8857 | } | |
8858 | Py_INCREF(Py_None); resultobj = Py_None; | |
8859 | { | |
8860 | if (temp2) | |
8861 | delete arg2; | |
8862 | } | |
8863 | return resultobj; | |
8864 | fail: | |
8865 | { | |
8866 | if (temp2) | |
8867 | delete arg2; | |
8868 | } | |
8869 | return NULL; | |
8870 | } | |
8871 | ||
8872 | ||
c32bde28 | 8873 | static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8874 | PyObject *resultobj; |
8875 | wxString *arg1 = 0 ; | |
ae8162c8 | 8876 | bool temp1 = false ; |
d55e5bfc RD |
8877 | PyObject * obj0 = 0 ; |
8878 | char *kwnames[] = { | |
8879 | (char *) "msg", NULL | |
8880 | }; | |
8881 | ||
8882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8883 | { | |
8884 | arg1 = wxString_in_helper(obj0); | |
8885 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8886 | temp1 = true; |
d55e5bfc RD |
8887 | } |
8888 | { | |
8889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8890 | wxLogSysError((wxString const &)*arg1); | |
8891 | ||
8892 | wxPyEndAllowThreads(__tstate); | |
8893 | if (PyErr_Occurred()) SWIG_fail; | |
8894 | } | |
8895 | Py_INCREF(Py_None); resultobj = Py_None; | |
8896 | { | |
8897 | if (temp1) | |
8898 | delete arg1; | |
8899 | } | |
8900 | return resultobj; | |
8901 | fail: | |
8902 | { | |
8903 | if (temp1) | |
8904 | delete arg1; | |
8905 | } | |
8906 | return NULL; | |
8907 | } | |
8908 | ||
8909 | ||
c32bde28 | 8910 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
8911 | PyObject *resultobj; |
8912 | unsigned long arg1 ; | |
8913 | wxString *arg2 = 0 ; | |
ae8162c8 | 8914 | bool temp2 = false ; |
d55e5bfc RD |
8915 | PyObject * obj0 = 0 ; |
8916 | PyObject * obj1 = 0 ; | |
8917 | ||
8918 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
c32bde28 | 8919 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
8920 | if (PyErr_Occurred()) SWIG_fail; |
8921 | { | |
8922 | arg2 = wxString_in_helper(obj1); | |
8923 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8924 | temp2 = true; |
d55e5bfc RD |
8925 | } |
8926 | { | |
8927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8928 | wxLogTrace(arg1,(wxString const &)*arg2); | |
8929 | ||
8930 | wxPyEndAllowThreads(__tstate); | |
8931 | if (PyErr_Occurred()) SWIG_fail; | |
8932 | } | |
8933 | Py_INCREF(Py_None); resultobj = Py_None; | |
8934 | { | |
8935 | if (temp2) | |
8936 | delete arg2; | |
8937 | } | |
8938 | return resultobj; | |
8939 | fail: | |
8940 | { | |
8941 | if (temp2) | |
8942 | delete arg2; | |
8943 | } | |
8944 | return NULL; | |
8945 | } | |
8946 | ||
8947 | ||
c32bde28 | 8948 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
8949 | PyObject *resultobj; |
8950 | wxString *arg1 = 0 ; | |
8951 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
8952 | bool temp1 = false ; |
8953 | bool temp2 = false ; | |
d55e5bfc RD |
8954 | PyObject * obj0 = 0 ; |
8955 | PyObject * obj1 = 0 ; | |
8956 | ||
8957 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
8958 | { | |
8959 | arg1 = wxString_in_helper(obj0); | |
8960 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8961 | temp1 = true; |
d55e5bfc RD |
8962 | } |
8963 | { | |
8964 | arg2 = wxString_in_helper(obj1); | |
8965 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8966 | temp2 = true; |
d55e5bfc RD |
8967 | } |
8968 | { | |
8969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8970 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
8971 | ||
8972 | wxPyEndAllowThreads(__tstate); | |
8973 | if (PyErr_Occurred()) SWIG_fail; | |
8974 | } | |
8975 | Py_INCREF(Py_None); resultobj = Py_None; | |
8976 | { | |
8977 | if (temp1) | |
8978 | delete arg1; | |
8979 | } | |
8980 | { | |
8981 | if (temp2) | |
8982 | delete arg2; | |
8983 | } | |
8984 | return resultobj; | |
8985 | fail: | |
8986 | { | |
8987 | if (temp1) | |
8988 | delete arg1; | |
8989 | } | |
8990 | { | |
8991 | if (temp2) | |
8992 | delete arg2; | |
8993 | } | |
8994 | return NULL; | |
8995 | } | |
8996 | ||
8997 | ||
8998 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { | |
8999 | int argc; | |
9000 | PyObject *argv[3]; | |
9001 | int ii; | |
9002 | ||
9003 | argc = PyObject_Length(args); | |
9004 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
9005 | argv[ii] = PyTuple_GetItem(args,ii); | |
9006 | } | |
9007 | if (argc == 2) { | |
9008 | int _v; | |
9009 | { | |
9010 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
9011 | } | |
9012 | if (_v) { | |
9013 | { | |
9014 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
9015 | } | |
9016 | if (_v) { | |
9017 | return _wrap_LogTrace__SWIG_1(self,args); | |
9018 | } | |
9019 | } | |
9020 | } | |
9021 | if (argc == 2) { | |
9022 | int _v; | |
c32bde28 | 9023 | _v = SWIG_Check_unsigned_SS_long(argv[0]); |
d55e5bfc RD |
9024 | if (_v) { |
9025 | { | |
9026 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
9027 | } | |
9028 | if (_v) { | |
9029 | return _wrap_LogTrace__SWIG_0(self,args); | |
9030 | } | |
9031 | } | |
9032 | } | |
9033 | ||
9034 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
9035 | return NULL; | |
9036 | } | |
9037 | ||
9038 | ||
c32bde28 | 9039 | static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9040 | PyObject *resultobj; |
9041 | unsigned long arg1 ; | |
9042 | wxString *arg2 = 0 ; | |
ae8162c8 | 9043 | bool temp2 = false ; |
d55e5bfc RD |
9044 | PyObject * obj0 = 0 ; |
9045 | PyObject * obj1 = 0 ; | |
9046 | char *kwnames[] = { | |
9047 | (char *) "level",(char *) "msg", NULL | |
9048 | }; | |
9049 | ||
9050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 9051 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
9052 | if (PyErr_Occurred()) SWIG_fail; |
9053 | { | |
9054 | arg2 = wxString_in_helper(obj1); | |
9055 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9056 | temp2 = true; |
d55e5bfc RD |
9057 | } |
9058 | { | |
9059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9060 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
9061 | ||
9062 | wxPyEndAllowThreads(__tstate); | |
9063 | if (PyErr_Occurred()) SWIG_fail; | |
9064 | } | |
9065 | Py_INCREF(Py_None); resultobj = Py_None; | |
9066 | { | |
9067 | if (temp2) | |
9068 | delete arg2; | |
9069 | } | |
9070 | return resultobj; | |
9071 | fail: | |
9072 | { | |
9073 | if (temp2) | |
9074 | delete arg2; | |
9075 | } | |
9076 | return NULL; | |
9077 | } | |
9078 | ||
9079 | ||
c32bde28 | 9080 | static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9081 | PyObject *resultobj; |
9082 | wxString *arg1 = 0 ; | |
9083 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
9084 | bool temp1 = false ; |
9085 | bool temp2 = false ; | |
d55e5bfc RD |
9086 | PyObject * obj0 = 0 ; |
9087 | PyObject * obj1 = 0 ; | |
9088 | char *kwnames[] = { | |
9089 | (char *) "title",(char *) "text", NULL | |
9090 | }; | |
9091 | ||
9092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
9093 | { | |
9094 | arg1 = wxString_in_helper(obj0); | |
9095 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9096 | temp1 = true; |
d55e5bfc RD |
9097 | } |
9098 | { | |
9099 | arg2 = wxString_in_helper(obj1); | |
9100 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9101 | temp2 = true; |
d55e5bfc RD |
9102 | } |
9103 | { | |
9104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9105 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
9106 | ||
9107 | wxPyEndAllowThreads(__tstate); | |
9108 | if (PyErr_Occurred()) SWIG_fail; | |
9109 | } | |
9110 | Py_INCREF(Py_None); resultobj = Py_None; | |
9111 | { | |
9112 | if (temp1) | |
9113 | delete arg1; | |
9114 | } | |
9115 | { | |
9116 | if (temp2) | |
9117 | delete arg2; | |
9118 | } | |
9119 | return resultobj; | |
9120 | fail: | |
9121 | { | |
9122 | if (temp1) | |
9123 | delete arg1; | |
9124 | } | |
9125 | { | |
9126 | if (temp2) | |
9127 | delete arg2; | |
9128 | } | |
9129 | return NULL; | |
9130 | } | |
9131 | ||
9132 | ||
c32bde28 | 9133 | static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9134 | PyObject *resultobj; |
9135 | wxLogNull *result; | |
9136 | char *kwnames[] = { | |
9137 | NULL | |
9138 | }; | |
9139 | ||
9140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
9141 | { | |
9142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9143 | result = (wxLogNull *)new wxLogNull(); | |
9144 | ||
9145 | wxPyEndAllowThreads(__tstate); | |
9146 | if (PyErr_Occurred()) SWIG_fail; | |
9147 | } | |
9148 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); | |
9149 | return resultobj; | |
9150 | fail: | |
9151 | return NULL; | |
9152 | } | |
9153 | ||
9154 | ||
c32bde28 | 9155 | static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9156 | PyObject *resultobj; |
9157 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
9158 | PyObject * obj0 = 0 ; | |
9159 | char *kwnames[] = { | |
9160 | (char *) "self", NULL | |
9161 | }; | |
9162 | ||
9163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
9164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull, | |
9165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9166 | { | |
9167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9168 | delete arg1; | |
9169 | ||
9170 | wxPyEndAllowThreads(__tstate); | |
9171 | if (PyErr_Occurred()) SWIG_fail; | |
9172 | } | |
9173 | Py_INCREF(Py_None); resultobj = Py_None; | |
9174 | return resultobj; | |
9175 | fail: | |
9176 | return NULL; | |
9177 | } | |
9178 | ||
9179 | ||
c32bde28 | 9180 | static PyObject * LogNull_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9181 | PyObject *obj; |
9182 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9183 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
9184 | Py_INCREF(obj); | |
9185 | return Py_BuildValue((char *)""); | |
9186 | } | |
c32bde28 | 9187 | static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9188 | PyObject *resultobj; |
9189 | wxPyLog *result; | |
9190 | char *kwnames[] = { | |
9191 | NULL | |
9192 | }; | |
9193 | ||
9194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
9195 | { | |
9196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9197 | result = (wxPyLog *)new wxPyLog(); | |
9198 | ||
9199 | wxPyEndAllowThreads(__tstate); | |
9200 | if (PyErr_Occurred()) SWIG_fail; | |
9201 | } | |
9202 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); | |
9203 | return resultobj; | |
9204 | fail: | |
9205 | return NULL; | |
9206 | } | |
9207 | ||
9208 | ||
c32bde28 | 9209 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9210 | PyObject *resultobj; |
9211 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
9212 | PyObject *arg2 = (PyObject *) 0 ; | |
9213 | PyObject *arg3 = (PyObject *) 0 ; | |
9214 | PyObject * obj0 = 0 ; | |
9215 | PyObject * obj1 = 0 ; | |
9216 | PyObject * obj2 = 0 ; | |
9217 | char *kwnames[] = { | |
9218 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9219 | }; | |
9220 | ||
9221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog, | |
9223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9224 | arg2 = obj1; | |
9225 | arg3 = obj2; | |
9226 | { | |
9227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9228 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9229 | ||
9230 | wxPyEndAllowThreads(__tstate); | |
9231 | if (PyErr_Occurred()) SWIG_fail; | |
9232 | } | |
9233 | Py_INCREF(Py_None); resultobj = Py_None; | |
9234 | return resultobj; | |
9235 | fail: | |
9236 | return NULL; | |
9237 | } | |
9238 | ||
9239 | ||
c32bde28 | 9240 | static PyObject * PyLog_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9241 | PyObject *obj; |
9242 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9243 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
9244 | Py_INCREF(obj); | |
9245 | return Py_BuildValue((char *)""); | |
9246 | } | |
c32bde28 | 9247 | static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9248 | PyObject *resultobj; |
9249 | int arg1 ; | |
9250 | int arg2 = (int) wxSIGTERM ; | |
9251 | int result; | |
9252 | PyObject * obj0 = 0 ; | |
9253 | PyObject * obj1 = 0 ; | |
9254 | char *kwnames[] = { | |
9255 | (char *) "pid",(char *) "sig", NULL | |
9256 | }; | |
9257 | ||
9258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 9259 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9260 | if (PyErr_Occurred()) SWIG_fail; |
9261 | if (obj1) { | |
c32bde28 | 9262 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9263 | if (PyErr_Occurred()) SWIG_fail; |
9264 | } | |
9265 | { | |
9266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9267 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
9268 | ||
9269 | wxPyEndAllowThreads(__tstate); | |
9270 | if (PyErr_Occurred()) SWIG_fail; | |
9271 | } | |
c32bde28 | 9272 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9273 | return resultobj; |
9274 | fail: | |
9275 | return NULL; | |
9276 | } | |
9277 | ||
9278 | ||
c32bde28 | 9279 | static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9280 | PyObject *resultobj; |
9281 | int arg1 ; | |
9282 | bool result; | |
9283 | PyObject * obj0 = 0 ; | |
9284 | char *kwnames[] = { | |
9285 | (char *) "pid", NULL | |
9286 | }; | |
9287 | ||
9288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; | |
c32bde28 | 9289 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9290 | if (PyErr_Occurred()) SWIG_fail; |
9291 | { | |
9292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9293 | result = (bool)wxPyProcess::Exists(arg1); | |
9294 | ||
9295 | wxPyEndAllowThreads(__tstate); | |
9296 | if (PyErr_Occurred()) SWIG_fail; | |
9297 | } | |
9298 | { | |
9299 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9300 | } | |
9301 | return resultobj; | |
9302 | fail: | |
9303 | return NULL; | |
9304 | } | |
9305 | ||
9306 | ||
c32bde28 | 9307 | static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9308 | PyObject *resultobj; |
9309 | wxString *arg1 = 0 ; | |
9310 | int arg2 = (int) wxEXEC_ASYNC ; | |
9311 | wxPyProcess *result; | |
ae8162c8 | 9312 | bool temp1 = false ; |
d55e5bfc RD |
9313 | PyObject * obj0 = 0 ; |
9314 | PyObject * obj1 = 0 ; | |
9315 | char *kwnames[] = { | |
9316 | (char *) "cmd",(char *) "flags", NULL | |
9317 | }; | |
9318 | ||
9319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; | |
9320 | { | |
9321 | arg1 = wxString_in_helper(obj0); | |
9322 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9323 | temp1 = true; |
d55e5bfc RD |
9324 | } |
9325 | if (obj1) { | |
c32bde28 | 9326 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9327 | if (PyErr_Occurred()) SWIG_fail; |
9328 | } | |
9329 | { | |
9330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9331 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
9332 | ||
9333 | wxPyEndAllowThreads(__tstate); | |
9334 | if (PyErr_Occurred()) SWIG_fail; | |
9335 | } | |
9336 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); | |
9337 | { | |
9338 | if (temp1) | |
9339 | delete arg1; | |
9340 | } | |
9341 | return resultobj; | |
9342 | fail: | |
9343 | { | |
9344 | if (temp1) | |
9345 | delete arg1; | |
9346 | } | |
9347 | return NULL; | |
9348 | } | |
9349 | ||
9350 | ||
c32bde28 | 9351 | static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9352 | PyObject *resultobj; |
9353 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
9354 | int arg2 = (int) -1 ; | |
9355 | wxPyProcess *result; | |
9356 | PyObject * obj0 = 0 ; | |
9357 | PyObject * obj1 = 0 ; | |
9358 | char *kwnames[] = { | |
9359 | (char *) "parent",(char *) "id", NULL | |
9360 | }; | |
9361 | ||
9362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; | |
9363 | if (obj0) { | |
9364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
9365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9366 | } | |
9367 | if (obj1) { | |
c32bde28 | 9368 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9369 | if (PyErr_Occurred()) SWIG_fail; |
9370 | } | |
9371 | { | |
9372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9373 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
9374 | ||
9375 | wxPyEndAllowThreads(__tstate); | |
9376 | if (PyErr_Occurred()) SWIG_fail; | |
9377 | } | |
9378 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); | |
9379 | return resultobj; | |
9380 | fail: | |
9381 | return NULL; | |
9382 | } | |
9383 | ||
9384 | ||
c32bde28 | 9385 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9386 | PyObject *resultobj; |
9387 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9388 | PyObject *arg2 = (PyObject *) 0 ; | |
9389 | PyObject *arg3 = (PyObject *) 0 ; | |
9390 | PyObject * obj0 = 0 ; | |
9391 | PyObject * obj1 = 0 ; | |
9392 | PyObject * obj2 = 0 ; | |
9393 | char *kwnames[] = { | |
9394 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9395 | }; | |
9396 | ||
9397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9400 | arg2 = obj1; | |
9401 | arg3 = obj2; | |
9402 | { | |
9403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9404 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9405 | ||
9406 | wxPyEndAllowThreads(__tstate); | |
9407 | if (PyErr_Occurred()) SWIG_fail; | |
9408 | } | |
9409 | Py_INCREF(Py_None); resultobj = Py_None; | |
9410 | return resultobj; | |
9411 | fail: | |
9412 | return NULL; | |
9413 | } | |
9414 | ||
9415 | ||
c32bde28 | 9416 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9417 | PyObject *resultobj; |
9418 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9419 | int arg2 ; | |
9420 | int arg3 ; | |
9421 | PyObject * obj0 = 0 ; | |
9422 | PyObject * obj1 = 0 ; | |
9423 | PyObject * obj2 = 0 ; | |
9424 | char *kwnames[] = { | |
9425 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
9426 | }; | |
9427 | ||
9428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9431 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9432 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9433 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9434 | if (PyErr_Occurred()) SWIG_fail; |
9435 | { | |
9436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9437 | (arg1)->base_OnTerminate(arg2,arg3); | |
9438 | ||
9439 | wxPyEndAllowThreads(__tstate); | |
9440 | if (PyErr_Occurred()) SWIG_fail; | |
9441 | } | |
9442 | Py_INCREF(Py_None); resultobj = Py_None; | |
9443 | return resultobj; | |
9444 | fail: | |
9445 | return NULL; | |
9446 | } | |
9447 | ||
9448 | ||
c32bde28 | 9449 | static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9450 | PyObject *resultobj; |
9451 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9452 | PyObject * obj0 = 0 ; | |
9453 | char *kwnames[] = { | |
9454 | (char *) "self", NULL | |
9455 | }; | |
9456 | ||
9457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
9458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9460 | { | |
9461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9462 | (arg1)->Redirect(); | |
9463 | ||
9464 | wxPyEndAllowThreads(__tstate); | |
9465 | if (PyErr_Occurred()) SWIG_fail; | |
9466 | } | |
9467 | Py_INCREF(Py_None); resultobj = Py_None; | |
9468 | return resultobj; | |
9469 | fail: | |
9470 | return NULL; | |
9471 | } | |
9472 | ||
9473 | ||
c32bde28 | 9474 | static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9475 | PyObject *resultobj; |
9476 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9477 | bool result; | |
9478 | PyObject * obj0 = 0 ; | |
9479 | char *kwnames[] = { | |
9480 | (char *) "self", NULL | |
9481 | }; | |
9482 | ||
9483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
9484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9486 | { | |
9487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9488 | result = (bool)(arg1)->IsRedirected(); | |
9489 | ||
9490 | wxPyEndAllowThreads(__tstate); | |
9491 | if (PyErr_Occurred()) SWIG_fail; | |
9492 | } | |
9493 | { | |
9494 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9495 | } | |
9496 | return resultobj; | |
9497 | fail: | |
9498 | return NULL; | |
9499 | } | |
9500 | ||
9501 | ||
c32bde28 | 9502 | static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9503 | PyObject *resultobj; |
9504 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9505 | PyObject * obj0 = 0 ; | |
9506 | char *kwnames[] = { | |
9507 | (char *) "self", NULL | |
9508 | }; | |
9509 | ||
9510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
9511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9513 | { | |
9514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9515 | (arg1)->Detach(); | |
9516 | ||
9517 | wxPyEndAllowThreads(__tstate); | |
9518 | if (PyErr_Occurred()) SWIG_fail; | |
9519 | } | |
9520 | Py_INCREF(Py_None); resultobj = Py_None; | |
9521 | return resultobj; | |
9522 | fail: | |
9523 | return NULL; | |
9524 | } | |
9525 | ||
9526 | ||
c32bde28 | 9527 | static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9528 | PyObject *resultobj; |
9529 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9530 | wxInputStream *result; | |
9531 | PyObject * obj0 = 0 ; | |
9532 | char *kwnames[] = { | |
9533 | (char *) "self", NULL | |
9534 | }; | |
9535 | ||
9536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
9537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9539 | { | |
9540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9541 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
9542 | ||
9543 | wxPyEndAllowThreads(__tstate); | |
9544 | if (PyErr_Occurred()) SWIG_fail; | |
9545 | } | |
9546 | { | |
9547 | wxPyInputStream * _ptr = NULL; | |
9548 | ||
9549 | if (result) { | |
9550 | _ptr = new wxPyInputStream(result); | |
9551 | } | |
fc71d09b | 9552 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d55e5bfc RD |
9553 | } |
9554 | return resultobj; | |
9555 | fail: | |
9556 | return NULL; | |
9557 | } | |
9558 | ||
9559 | ||
c32bde28 | 9560 | static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9561 | PyObject *resultobj; |
9562 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9563 | wxInputStream *result; | |
9564 | PyObject * obj0 = 0 ; | |
9565 | char *kwnames[] = { | |
9566 | (char *) "self", NULL | |
9567 | }; | |
9568 | ||
9569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
9570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9572 | { | |
9573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9574 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
9575 | ||
9576 | wxPyEndAllowThreads(__tstate); | |
9577 | if (PyErr_Occurred()) SWIG_fail; | |
9578 | } | |
9579 | { | |
9580 | wxPyInputStream * _ptr = NULL; | |
9581 | ||
9582 | if (result) { | |
9583 | _ptr = new wxPyInputStream(result); | |
9584 | } | |
fc71d09b | 9585 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d55e5bfc RD |
9586 | } |
9587 | return resultobj; | |
9588 | fail: | |
9589 | return NULL; | |
9590 | } | |
9591 | ||
9592 | ||
c32bde28 | 9593 | static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9594 | PyObject *resultobj; |
9595 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9596 | wxOutputStream *result; | |
9597 | PyObject * obj0 = 0 ; | |
9598 | char *kwnames[] = { | |
9599 | (char *) "self", NULL | |
9600 | }; | |
9601 | ||
9602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
9603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9605 | { | |
9606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9607 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
9608 | ||
9609 | wxPyEndAllowThreads(__tstate); | |
9610 | if (PyErr_Occurred()) SWIG_fail; | |
9611 | } | |
9612 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
9613 | return resultobj; | |
9614 | fail: | |
9615 | return NULL; | |
9616 | } | |
9617 | ||
9618 | ||
c32bde28 | 9619 | static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9620 | PyObject *resultobj; |
9621 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9622 | PyObject * obj0 = 0 ; | |
9623 | char *kwnames[] = { | |
9624 | (char *) "self", NULL | |
9625 | }; | |
9626 | ||
9627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
9628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9630 | { | |
9631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9632 | (arg1)->CloseOutput(); | |
9633 | ||
9634 | wxPyEndAllowThreads(__tstate); | |
9635 | if (PyErr_Occurred()) SWIG_fail; | |
9636 | } | |
9637 | Py_INCREF(Py_None); resultobj = Py_None; | |
9638 | return resultobj; | |
9639 | fail: | |
9640 | return NULL; | |
9641 | } | |
9642 | ||
9643 | ||
c32bde28 | 9644 | static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9645 | PyObject *resultobj; |
9646 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9647 | bool result; | |
9648 | PyObject * obj0 = 0 ; | |
9649 | char *kwnames[] = { | |
9650 | (char *) "self", NULL | |
9651 | }; | |
9652 | ||
9653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
9654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9656 | { | |
9657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9658 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
9659 | ||
9660 | wxPyEndAllowThreads(__tstate); | |
9661 | if (PyErr_Occurred()) SWIG_fail; | |
9662 | } | |
9663 | { | |
9664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9665 | } | |
9666 | return resultobj; | |
9667 | fail: | |
9668 | return NULL; | |
9669 | } | |
9670 | ||
9671 | ||
c32bde28 | 9672 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9673 | PyObject *resultobj; |
9674 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9675 | bool result; | |
9676 | PyObject * obj0 = 0 ; | |
9677 | char *kwnames[] = { | |
9678 | (char *) "self", NULL | |
9679 | }; | |
9680 | ||
9681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
9682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9684 | { | |
9685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9686 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
9687 | ||
9688 | wxPyEndAllowThreads(__tstate); | |
9689 | if (PyErr_Occurred()) SWIG_fail; | |
9690 | } | |
9691 | { | |
9692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9693 | } | |
9694 | return resultobj; | |
9695 | fail: | |
9696 | return NULL; | |
9697 | } | |
9698 | ||
9699 | ||
c32bde28 | 9700 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9701 | PyObject *resultobj; |
9702 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9703 | bool result; | |
9704 | PyObject * obj0 = 0 ; | |
9705 | char *kwnames[] = { | |
9706 | (char *) "self", NULL | |
9707 | }; | |
9708 | ||
9709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
9710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9712 | { | |
9713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9714 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
9715 | ||
9716 | wxPyEndAllowThreads(__tstate); | |
9717 | if (PyErr_Occurred()) SWIG_fail; | |
9718 | } | |
9719 | { | |
9720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9721 | } | |
9722 | return resultobj; | |
9723 | fail: | |
9724 | return NULL; | |
9725 | } | |
9726 | ||
9727 | ||
c32bde28 | 9728 | static PyObject * Process_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9729 | PyObject *obj; |
9730 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9731 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
9732 | Py_INCREF(obj); | |
9733 | return Py_BuildValue((char *)""); | |
9734 | } | |
c32bde28 | 9735 | static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9736 | PyObject *resultobj; |
9737 | int arg1 = (int) 0 ; | |
9738 | int arg2 = (int) 0 ; | |
9739 | int arg3 = (int) 0 ; | |
9740 | wxProcessEvent *result; | |
9741 | PyObject * obj0 = 0 ; | |
9742 | PyObject * obj1 = 0 ; | |
9743 | PyObject * obj2 = 0 ; | |
9744 | char *kwnames[] = { | |
9745 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9746 | }; | |
9747 | ||
9748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9749 | if (obj0) { | |
c32bde28 | 9750 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9751 | if (PyErr_Occurred()) SWIG_fail; |
9752 | } | |
9753 | if (obj1) { | |
c32bde28 | 9754 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9755 | if (PyErr_Occurred()) SWIG_fail; |
9756 | } | |
9757 | if (obj2) { | |
c32bde28 | 9758 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9759 | if (PyErr_Occurred()) SWIG_fail; |
9760 | } | |
9761 | { | |
9762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9763 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9764 | ||
9765 | wxPyEndAllowThreads(__tstate); | |
9766 | if (PyErr_Occurred()) SWIG_fail; | |
9767 | } | |
9768 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); | |
9769 | return resultobj; | |
9770 | fail: | |
9771 | return NULL; | |
9772 | } | |
9773 | ||
9774 | ||
c32bde28 | 9775 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9776 | PyObject *resultobj; |
9777 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9778 | int result; | |
9779 | PyObject * obj0 = 0 ; | |
9780 | char *kwnames[] = { | |
9781 | (char *) "self", NULL | |
9782 | }; | |
9783 | ||
9784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
9785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9787 | { | |
9788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9789 | result = (int)(arg1)->GetPid(); | |
9790 | ||
9791 | wxPyEndAllowThreads(__tstate); | |
9792 | if (PyErr_Occurred()) SWIG_fail; | |
9793 | } | |
c32bde28 | 9794 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9795 | return resultobj; |
9796 | fail: | |
9797 | return NULL; | |
9798 | } | |
9799 | ||
9800 | ||
c32bde28 | 9801 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9802 | PyObject *resultobj; |
9803 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9804 | int result; | |
9805 | PyObject * obj0 = 0 ; | |
9806 | char *kwnames[] = { | |
9807 | (char *) "self", NULL | |
9808 | }; | |
9809 | ||
9810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
9811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9813 | { | |
9814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9815 | result = (int)(arg1)->GetExitCode(); | |
9816 | ||
9817 | wxPyEndAllowThreads(__tstate); | |
9818 | if (PyErr_Occurred()) SWIG_fail; | |
9819 | } | |
c32bde28 | 9820 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9821 | return resultobj; |
9822 | fail: | |
9823 | return NULL; | |
9824 | } | |
9825 | ||
9826 | ||
c32bde28 | 9827 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9828 | PyObject *resultobj; |
9829 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9830 | int arg2 ; | |
9831 | PyObject * obj0 = 0 ; | |
9832 | PyObject * obj1 = 0 ; | |
9833 | char *kwnames[] = { | |
9834 | (char *) "self",(char *) "m_pid", NULL | |
9835 | }; | |
9836 | ||
9837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; | |
9838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9840 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9841 | if (PyErr_Occurred()) SWIG_fail; |
9842 | if (arg1) (arg1)->m_pid = arg2; | |
9843 | ||
9844 | Py_INCREF(Py_None); resultobj = Py_None; | |
9845 | return resultobj; | |
9846 | fail: | |
9847 | return NULL; | |
9848 | } | |
9849 | ||
9850 | ||
c32bde28 | 9851 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9852 | PyObject *resultobj; |
9853 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9854 | int result; | |
9855 | PyObject * obj0 = 0 ; | |
9856 | char *kwnames[] = { | |
9857 | (char *) "self", NULL | |
9858 | }; | |
9859 | ||
9860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
9861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9863 | result = (int) ((arg1)->m_pid); | |
9864 | ||
c32bde28 | 9865 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9866 | return resultobj; |
9867 | fail: | |
9868 | return NULL; | |
9869 | } | |
9870 | ||
9871 | ||
c32bde28 | 9872 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9873 | PyObject *resultobj; |
9874 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9875 | int arg2 ; | |
9876 | PyObject * obj0 = 0 ; | |
9877 | PyObject * obj1 = 0 ; | |
9878 | char *kwnames[] = { | |
9879 | (char *) "self",(char *) "m_exitcode", NULL | |
9880 | }; | |
9881 | ||
9882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; | |
9883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9885 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9886 | if (PyErr_Occurred()) SWIG_fail; |
9887 | if (arg1) (arg1)->m_exitcode = arg2; | |
9888 | ||
9889 | Py_INCREF(Py_None); resultobj = Py_None; | |
9890 | return resultobj; | |
9891 | fail: | |
9892 | return NULL; | |
9893 | } | |
9894 | ||
9895 | ||
c32bde28 | 9896 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9897 | PyObject *resultobj; |
9898 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9899 | int result; | |
9900 | PyObject * obj0 = 0 ; | |
9901 | char *kwnames[] = { | |
9902 | (char *) "self", NULL | |
9903 | }; | |
9904 | ||
9905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
9906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9908 | result = (int) ((arg1)->m_exitcode); | |
9909 | ||
c32bde28 | 9910 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9911 | return resultobj; |
9912 | fail: | |
9913 | return NULL; | |
9914 | } | |
9915 | ||
9916 | ||
c32bde28 | 9917 | static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9918 | PyObject *obj; |
9919 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9920 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
9921 | Py_INCREF(obj); | |
9922 | return Py_BuildValue((char *)""); | |
9923 | } | |
c32bde28 | 9924 | static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9925 | PyObject *resultobj; |
9926 | wxString *arg1 = 0 ; | |
9927 | int arg2 = (int) wxEXEC_ASYNC ; | |
9928 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
9929 | long result; | |
ae8162c8 | 9930 | bool temp1 = false ; |
d55e5bfc RD |
9931 | PyObject * obj0 = 0 ; |
9932 | PyObject * obj1 = 0 ; | |
9933 | PyObject * obj2 = 0 ; | |
9934 | char *kwnames[] = { | |
9935 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
9936 | }; | |
9937 | ||
9938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9939 | { | |
9940 | arg1 = wxString_in_helper(obj0); | |
9941 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9942 | temp1 = true; |
d55e5bfc RD |
9943 | } |
9944 | if (obj1) { | |
c32bde28 | 9945 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9946 | if (PyErr_Occurred()) SWIG_fail; |
9947 | } | |
9948 | if (obj2) { | |
9949 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess, | |
9950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9951 | } | |
9952 | { | |
0439c23b | 9953 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9955 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
9956 | ||
9957 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9958 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 9959 | } |
c32bde28 | 9960 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
9961 | { |
9962 | if (temp1) | |
9963 | delete arg1; | |
9964 | } | |
9965 | return resultobj; | |
9966 | fail: | |
9967 | { | |
9968 | if (temp1) | |
9969 | delete arg1; | |
9970 | } | |
9971 | return NULL; | |
9972 | } | |
9973 | ||
9974 | ||
c32bde28 | 9975 | static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9976 | PyObject *resultobj; |
9977 | int arg1 = (int) wxJOYSTICK1 ; | |
9978 | wxJoystick *result; | |
9979 | PyObject * obj0 = 0 ; | |
9980 | char *kwnames[] = { | |
9981 | (char *) "joystick", NULL | |
9982 | }; | |
9983 | ||
9984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; | |
9985 | if (obj0) { | |
c32bde28 | 9986 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9987 | if (PyErr_Occurred()) SWIG_fail; |
9988 | } | |
9989 | { | |
0439c23b | 9990 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9992 | result = (wxJoystick *)new wxJoystick(arg1); | |
9993 | ||
9994 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9995 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9996 | } |
9997 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); | |
9998 | return resultobj; | |
9999 | fail: | |
10000 | return NULL; | |
10001 | } | |
10002 | ||
10003 | ||
c32bde28 | 10004 | static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10005 | PyObject *resultobj; |
10006 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10007 | PyObject * obj0 = 0 ; | |
10008 | char *kwnames[] = { | |
10009 | (char *) "self", NULL | |
10010 | }; | |
10011 | ||
10012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
10013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10015 | { | |
10016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10017 | delete arg1; | |
10018 | ||
10019 | wxPyEndAllowThreads(__tstate); | |
10020 | if (PyErr_Occurred()) SWIG_fail; | |
10021 | } | |
10022 | Py_INCREF(Py_None); resultobj = Py_None; | |
10023 | return resultobj; | |
10024 | fail: | |
10025 | return NULL; | |
10026 | } | |
10027 | ||
10028 | ||
c32bde28 | 10029 | static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10030 | PyObject *resultobj; |
10031 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10032 | wxPoint result; | |
10033 | PyObject * obj0 = 0 ; | |
10034 | char *kwnames[] = { | |
10035 | (char *) "self", NULL | |
10036 | }; | |
10037 | ||
10038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
10039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10041 | { | |
10042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10043 | result = (arg1)->GetPosition(); | |
10044 | ||
10045 | wxPyEndAllowThreads(__tstate); | |
10046 | if (PyErr_Occurred()) SWIG_fail; | |
10047 | } | |
10048 | { | |
10049 | wxPoint * resultptr; | |
10050 | resultptr = new wxPoint((wxPoint &) result); | |
10051 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
10052 | } | |
10053 | return resultobj; | |
10054 | fail: | |
10055 | return NULL; | |
10056 | } | |
10057 | ||
10058 | ||
c32bde28 | 10059 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10060 | PyObject *resultobj; |
10061 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10062 | int result; | |
10063 | PyObject * obj0 = 0 ; | |
10064 | char *kwnames[] = { | |
10065 | (char *) "self", NULL | |
10066 | }; | |
10067 | ||
10068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
10069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10071 | { | |
10072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10073 | result = (int)(arg1)->GetZPosition(); | |
10074 | ||
10075 | wxPyEndAllowThreads(__tstate); | |
10076 | if (PyErr_Occurred()) SWIG_fail; | |
10077 | } | |
c32bde28 | 10078 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10079 | return resultobj; |
10080 | fail: | |
10081 | return NULL; | |
10082 | } | |
10083 | ||
10084 | ||
c32bde28 | 10085 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10086 | PyObject *resultobj; |
10087 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10088 | int result; | |
10089 | PyObject * obj0 = 0 ; | |
10090 | char *kwnames[] = { | |
10091 | (char *) "self", NULL | |
10092 | }; | |
10093 | ||
10094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
10095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10097 | { | |
10098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10099 | result = (int)(arg1)->GetButtonState(); | |
10100 | ||
10101 | wxPyEndAllowThreads(__tstate); | |
10102 | if (PyErr_Occurred()) SWIG_fail; | |
10103 | } | |
c32bde28 | 10104 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10105 | return resultobj; |
10106 | fail: | |
10107 | return NULL; | |
10108 | } | |
10109 | ||
10110 | ||
c32bde28 | 10111 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10112 | PyObject *resultobj; |
10113 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10114 | int result; | |
10115 | PyObject * obj0 = 0 ; | |
10116 | char *kwnames[] = { | |
10117 | (char *) "self", NULL | |
10118 | }; | |
10119 | ||
10120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
10121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10123 | { | |
10124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10125 | result = (int)(arg1)->GetPOVPosition(); | |
10126 | ||
10127 | wxPyEndAllowThreads(__tstate); | |
10128 | if (PyErr_Occurred()) SWIG_fail; | |
10129 | } | |
c32bde28 | 10130 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10131 | return resultobj; |
10132 | fail: | |
10133 | return NULL; | |
10134 | } | |
10135 | ||
10136 | ||
c32bde28 | 10137 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10138 | PyObject *resultobj; |
10139 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10140 | int result; | |
10141 | PyObject * obj0 = 0 ; | |
10142 | char *kwnames[] = { | |
10143 | (char *) "self", NULL | |
10144 | }; | |
10145 | ||
10146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
10147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10149 | { | |
10150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10151 | result = (int)(arg1)->GetPOVCTSPosition(); | |
10152 | ||
10153 | wxPyEndAllowThreads(__tstate); | |
10154 | if (PyErr_Occurred()) SWIG_fail; | |
10155 | } | |
c32bde28 | 10156 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10157 | return resultobj; |
10158 | fail: | |
10159 | return NULL; | |
10160 | } | |
10161 | ||
10162 | ||
c32bde28 | 10163 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10164 | PyObject *resultobj; |
10165 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10166 | int result; | |
10167 | PyObject * obj0 = 0 ; | |
10168 | char *kwnames[] = { | |
10169 | (char *) "self", NULL | |
10170 | }; | |
10171 | ||
10172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
10173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10175 | { | |
10176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10177 | result = (int)(arg1)->GetRudderPosition(); | |
10178 | ||
10179 | wxPyEndAllowThreads(__tstate); | |
10180 | if (PyErr_Occurred()) SWIG_fail; | |
10181 | } | |
c32bde28 | 10182 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10183 | return resultobj; |
10184 | fail: | |
10185 | return NULL; | |
10186 | } | |
10187 | ||
10188 | ||
c32bde28 | 10189 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10190 | PyObject *resultobj; |
10191 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10192 | int result; | |
10193 | PyObject * obj0 = 0 ; | |
10194 | char *kwnames[] = { | |
10195 | (char *) "self", NULL | |
10196 | }; | |
10197 | ||
10198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
10199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10201 | { | |
10202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10203 | result = (int)(arg1)->GetUPosition(); | |
10204 | ||
10205 | wxPyEndAllowThreads(__tstate); | |
10206 | if (PyErr_Occurred()) SWIG_fail; | |
10207 | } | |
c32bde28 | 10208 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10209 | return resultobj; |
10210 | fail: | |
10211 | return NULL; | |
10212 | } | |
10213 | ||
10214 | ||
c32bde28 | 10215 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10216 | PyObject *resultobj; |
10217 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10218 | int result; | |
10219 | PyObject * obj0 = 0 ; | |
10220 | char *kwnames[] = { | |
10221 | (char *) "self", NULL | |
10222 | }; | |
10223 | ||
10224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
10225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10227 | { | |
10228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10229 | result = (int)(arg1)->GetVPosition(); | |
10230 | ||
10231 | wxPyEndAllowThreads(__tstate); | |
10232 | if (PyErr_Occurred()) SWIG_fail; | |
10233 | } | |
c32bde28 | 10234 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10235 | return resultobj; |
10236 | fail: | |
10237 | return NULL; | |
10238 | } | |
10239 | ||
10240 | ||
c32bde28 | 10241 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10242 | PyObject *resultobj; |
10243 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10244 | int result; | |
10245 | PyObject * obj0 = 0 ; | |
10246 | char *kwnames[] = { | |
10247 | (char *) "self", NULL | |
10248 | }; | |
10249 | ||
10250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
10251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10253 | { | |
10254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10255 | result = (int)(arg1)->GetMovementThreshold(); | |
10256 | ||
10257 | wxPyEndAllowThreads(__tstate); | |
10258 | if (PyErr_Occurred()) SWIG_fail; | |
10259 | } | |
c32bde28 | 10260 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10261 | return resultobj; |
10262 | fail: | |
10263 | return NULL; | |
10264 | } | |
10265 | ||
10266 | ||
c32bde28 | 10267 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10268 | PyObject *resultobj; |
10269 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10270 | int arg2 ; | |
10271 | PyObject * obj0 = 0 ; | |
10272 | PyObject * obj1 = 0 ; | |
10273 | char *kwnames[] = { | |
10274 | (char *) "self",(char *) "threshold", NULL | |
10275 | }; | |
10276 | ||
10277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; | |
10278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10280 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10281 | if (PyErr_Occurred()) SWIG_fail; |
10282 | { | |
10283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10284 | (arg1)->SetMovementThreshold(arg2); | |
10285 | ||
10286 | wxPyEndAllowThreads(__tstate); | |
10287 | if (PyErr_Occurred()) SWIG_fail; | |
10288 | } | |
10289 | Py_INCREF(Py_None); resultobj = Py_None; | |
10290 | return resultobj; | |
10291 | fail: | |
10292 | return NULL; | |
10293 | } | |
10294 | ||
10295 | ||
c32bde28 | 10296 | static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10297 | PyObject *resultobj; |
10298 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10299 | bool result; | |
10300 | PyObject * obj0 = 0 ; | |
10301 | char *kwnames[] = { | |
10302 | (char *) "self", NULL | |
10303 | }; | |
10304 | ||
10305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
10306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10308 | { | |
10309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10310 | result = (bool)(arg1)->IsOk(); | |
10311 | ||
10312 | wxPyEndAllowThreads(__tstate); | |
10313 | if (PyErr_Occurred()) SWIG_fail; | |
10314 | } | |
10315 | { | |
10316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10317 | } | |
10318 | return resultobj; | |
10319 | fail: | |
10320 | return NULL; | |
10321 | } | |
10322 | ||
10323 | ||
c32bde28 | 10324 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10325 | PyObject *resultobj; |
10326 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10327 | int result; | |
10328 | PyObject * obj0 = 0 ; | |
10329 | char *kwnames[] = { | |
10330 | (char *) "self", NULL | |
10331 | }; | |
10332 | ||
10333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
10334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10336 | { | |
10337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10338 | result = (int)(arg1)->GetNumberJoysticks(); | |
10339 | ||
10340 | wxPyEndAllowThreads(__tstate); | |
10341 | if (PyErr_Occurred()) SWIG_fail; | |
10342 | } | |
c32bde28 | 10343 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10344 | return resultobj; |
10345 | fail: | |
10346 | return NULL; | |
10347 | } | |
10348 | ||
10349 | ||
c32bde28 | 10350 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10351 | PyObject *resultobj; |
10352 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10353 | int result; | |
10354 | PyObject * obj0 = 0 ; | |
10355 | char *kwnames[] = { | |
10356 | (char *) "self", NULL | |
10357 | }; | |
10358 | ||
10359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
10360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10362 | { | |
10363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10364 | result = (int)(arg1)->GetManufacturerId(); | |
10365 | ||
10366 | wxPyEndAllowThreads(__tstate); | |
10367 | if (PyErr_Occurred()) SWIG_fail; | |
10368 | } | |
c32bde28 | 10369 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10370 | return resultobj; |
10371 | fail: | |
10372 | return NULL; | |
10373 | } | |
10374 | ||
10375 | ||
c32bde28 | 10376 | static PyObject *_wrap_Joystick_GetProductId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10377 | PyObject *resultobj; |
10378 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10379 | int result; | |
10380 | PyObject * obj0 = 0 ; | |
10381 | char *kwnames[] = { | |
10382 | (char *) "self", NULL | |
10383 | }; | |
10384 | ||
10385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
10386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10388 | { | |
10389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10390 | result = (int)(arg1)->GetProductId(); | |
10391 | ||
10392 | wxPyEndAllowThreads(__tstate); | |
10393 | if (PyErr_Occurred()) SWIG_fail; | |
10394 | } | |
c32bde28 | 10395 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10396 | return resultobj; |
10397 | fail: | |
10398 | return NULL; | |
10399 | } | |
10400 | ||
10401 | ||
c32bde28 | 10402 | static PyObject *_wrap_Joystick_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10403 | PyObject *resultobj; |
10404 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10405 | wxString result; | |
10406 | PyObject * obj0 = 0 ; | |
10407 | char *kwnames[] = { | |
10408 | (char *) "self", NULL | |
10409 | }; | |
10410 | ||
10411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
10412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10414 | { | |
10415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10416 | result = (arg1)->GetProductName(); | |
10417 | ||
10418 | wxPyEndAllowThreads(__tstate); | |
10419 | if (PyErr_Occurred()) SWIG_fail; | |
10420 | } | |
10421 | { | |
10422 | #if wxUSE_UNICODE | |
10423 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10424 | #else | |
10425 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10426 | #endif | |
10427 | } | |
10428 | return resultobj; | |
10429 | fail: | |
10430 | return NULL; | |
10431 | } | |
10432 | ||
10433 | ||
c32bde28 | 10434 | static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10435 | PyObject *resultobj; |
10436 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10437 | int result; | |
10438 | PyObject * obj0 = 0 ; | |
10439 | char *kwnames[] = { | |
10440 | (char *) "self", NULL | |
10441 | }; | |
10442 | ||
10443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
10444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10446 | { | |
10447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10448 | result = (int)(arg1)->GetXMin(); | |
10449 | ||
10450 | wxPyEndAllowThreads(__tstate); | |
10451 | if (PyErr_Occurred()) SWIG_fail; | |
10452 | } | |
c32bde28 | 10453 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10454 | return resultobj; |
10455 | fail: | |
10456 | return NULL; | |
10457 | } | |
10458 | ||
10459 | ||
c32bde28 | 10460 | static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10461 | PyObject *resultobj; |
10462 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10463 | int result; | |
10464 | PyObject * obj0 = 0 ; | |
10465 | char *kwnames[] = { | |
10466 | (char *) "self", NULL | |
10467 | }; | |
10468 | ||
10469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
10470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10472 | { | |
10473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10474 | result = (int)(arg1)->GetYMin(); | |
10475 | ||
10476 | wxPyEndAllowThreads(__tstate); | |
10477 | if (PyErr_Occurred()) SWIG_fail; | |
10478 | } | |
c32bde28 | 10479 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10480 | return resultobj; |
10481 | fail: | |
10482 | return NULL; | |
10483 | } | |
10484 | ||
10485 | ||
c32bde28 | 10486 | static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10487 | PyObject *resultobj; |
10488 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10489 | int result; | |
10490 | PyObject * obj0 = 0 ; | |
10491 | char *kwnames[] = { | |
10492 | (char *) "self", NULL | |
10493 | }; | |
10494 | ||
10495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
10496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10498 | { | |
10499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10500 | result = (int)(arg1)->GetZMin(); | |
10501 | ||
10502 | wxPyEndAllowThreads(__tstate); | |
10503 | if (PyErr_Occurred()) SWIG_fail; | |
10504 | } | |
c32bde28 | 10505 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10506 | return resultobj; |
10507 | fail: | |
10508 | return NULL; | |
10509 | } | |
10510 | ||
10511 | ||
c32bde28 | 10512 | static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10513 | PyObject *resultobj; |
10514 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10515 | int result; | |
10516 | PyObject * obj0 = 0 ; | |
10517 | char *kwnames[] = { | |
10518 | (char *) "self", NULL | |
10519 | }; | |
10520 | ||
10521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
10522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10524 | { | |
10525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10526 | result = (int)(arg1)->GetXMax(); | |
10527 | ||
10528 | wxPyEndAllowThreads(__tstate); | |
10529 | if (PyErr_Occurred()) SWIG_fail; | |
10530 | } | |
c32bde28 | 10531 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10532 | return resultobj; |
10533 | fail: | |
10534 | return NULL; | |
10535 | } | |
10536 | ||
10537 | ||
c32bde28 | 10538 | static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10539 | PyObject *resultobj; |
10540 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10541 | int result; | |
10542 | PyObject * obj0 = 0 ; | |
10543 | char *kwnames[] = { | |
10544 | (char *) "self", NULL | |
10545 | }; | |
10546 | ||
10547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
10548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10550 | { | |
10551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10552 | result = (int)(arg1)->GetYMax(); | |
10553 | ||
10554 | wxPyEndAllowThreads(__tstate); | |
10555 | if (PyErr_Occurred()) SWIG_fail; | |
10556 | } | |
c32bde28 | 10557 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10558 | return resultobj; |
10559 | fail: | |
10560 | return NULL; | |
10561 | } | |
10562 | ||
10563 | ||
c32bde28 | 10564 | static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10565 | PyObject *resultobj; |
10566 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10567 | int result; | |
10568 | PyObject * obj0 = 0 ; | |
10569 | char *kwnames[] = { | |
10570 | (char *) "self", NULL | |
10571 | }; | |
10572 | ||
10573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
10574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10576 | { | |
10577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10578 | result = (int)(arg1)->GetZMax(); | |
10579 | ||
10580 | wxPyEndAllowThreads(__tstate); | |
10581 | if (PyErr_Occurred()) SWIG_fail; | |
10582 | } | |
c32bde28 | 10583 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10584 | return resultobj; |
10585 | fail: | |
10586 | return NULL; | |
10587 | } | |
10588 | ||
10589 | ||
c32bde28 | 10590 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10591 | PyObject *resultobj; |
10592 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10593 | int result; | |
10594 | PyObject * obj0 = 0 ; | |
10595 | char *kwnames[] = { | |
10596 | (char *) "self", NULL | |
10597 | }; | |
10598 | ||
10599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
10600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10602 | { | |
10603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10604 | result = (int)(arg1)->GetNumberButtons(); | |
10605 | ||
10606 | wxPyEndAllowThreads(__tstate); | |
10607 | if (PyErr_Occurred()) SWIG_fail; | |
10608 | } | |
c32bde28 | 10609 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10610 | return resultobj; |
10611 | fail: | |
10612 | return NULL; | |
10613 | } | |
10614 | ||
10615 | ||
c32bde28 | 10616 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10617 | PyObject *resultobj; |
10618 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10619 | int result; | |
10620 | PyObject * obj0 = 0 ; | |
10621 | char *kwnames[] = { | |
10622 | (char *) "self", NULL | |
10623 | }; | |
10624 | ||
10625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
10626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10628 | { | |
10629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10630 | result = (int)(arg1)->GetNumberAxes(); | |
10631 | ||
10632 | wxPyEndAllowThreads(__tstate); | |
10633 | if (PyErr_Occurred()) SWIG_fail; | |
10634 | } | |
c32bde28 | 10635 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10636 | return resultobj; |
10637 | fail: | |
10638 | return NULL; | |
10639 | } | |
10640 | ||
10641 | ||
c32bde28 | 10642 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10643 | PyObject *resultobj; |
10644 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10645 | int result; | |
10646 | PyObject * obj0 = 0 ; | |
10647 | char *kwnames[] = { | |
10648 | (char *) "self", NULL | |
10649 | }; | |
10650 | ||
10651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
10652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10654 | { | |
10655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10656 | result = (int)(arg1)->GetMaxButtons(); | |
10657 | ||
10658 | wxPyEndAllowThreads(__tstate); | |
10659 | if (PyErr_Occurred()) SWIG_fail; | |
10660 | } | |
c32bde28 | 10661 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10662 | return resultobj; |
10663 | fail: | |
10664 | return NULL; | |
10665 | } | |
10666 | ||
10667 | ||
c32bde28 | 10668 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10669 | PyObject *resultobj; |
10670 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10671 | int result; | |
10672 | PyObject * obj0 = 0 ; | |
10673 | char *kwnames[] = { | |
10674 | (char *) "self", NULL | |
10675 | }; | |
10676 | ||
10677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
10678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10680 | { | |
10681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10682 | result = (int)(arg1)->GetMaxAxes(); | |
10683 | ||
10684 | wxPyEndAllowThreads(__tstate); | |
10685 | if (PyErr_Occurred()) SWIG_fail; | |
10686 | } | |
c32bde28 | 10687 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10688 | return resultobj; |
10689 | fail: | |
10690 | return NULL; | |
10691 | } | |
10692 | ||
10693 | ||
c32bde28 | 10694 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10695 | PyObject *resultobj; |
10696 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10697 | int result; | |
10698 | PyObject * obj0 = 0 ; | |
10699 | char *kwnames[] = { | |
10700 | (char *) "self", NULL | |
10701 | }; | |
10702 | ||
10703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
10704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10706 | { | |
10707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10708 | result = (int)(arg1)->GetPollingMin(); | |
10709 | ||
10710 | wxPyEndAllowThreads(__tstate); | |
10711 | if (PyErr_Occurred()) SWIG_fail; | |
10712 | } | |
c32bde28 | 10713 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10714 | return resultobj; |
10715 | fail: | |
10716 | return NULL; | |
10717 | } | |
10718 | ||
10719 | ||
c32bde28 | 10720 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10721 | PyObject *resultobj; |
10722 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10723 | int result; | |
10724 | PyObject * obj0 = 0 ; | |
10725 | char *kwnames[] = { | |
10726 | (char *) "self", NULL | |
10727 | }; | |
10728 | ||
10729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
10730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10732 | { | |
10733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10734 | result = (int)(arg1)->GetPollingMax(); | |
10735 | ||
10736 | wxPyEndAllowThreads(__tstate); | |
10737 | if (PyErr_Occurred()) SWIG_fail; | |
10738 | } | |
c32bde28 | 10739 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10740 | return resultobj; |
10741 | fail: | |
10742 | return NULL; | |
10743 | } | |
10744 | ||
10745 | ||
c32bde28 | 10746 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10747 | PyObject *resultobj; |
10748 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10749 | int result; | |
10750 | PyObject * obj0 = 0 ; | |
10751 | char *kwnames[] = { | |
10752 | (char *) "self", NULL | |
10753 | }; | |
10754 | ||
10755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
10756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10758 | { | |
10759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10760 | result = (int)(arg1)->GetRudderMin(); | |
10761 | ||
10762 | wxPyEndAllowThreads(__tstate); | |
10763 | if (PyErr_Occurred()) SWIG_fail; | |
10764 | } | |
c32bde28 | 10765 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10766 | return resultobj; |
10767 | fail: | |
10768 | return NULL; | |
10769 | } | |
10770 | ||
10771 | ||
c32bde28 | 10772 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10773 | PyObject *resultobj; |
10774 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10775 | int result; | |
10776 | PyObject * obj0 = 0 ; | |
10777 | char *kwnames[] = { | |
10778 | (char *) "self", NULL | |
10779 | }; | |
10780 | ||
10781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
10782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10784 | { | |
10785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10786 | result = (int)(arg1)->GetRudderMax(); | |
10787 | ||
10788 | wxPyEndAllowThreads(__tstate); | |
10789 | if (PyErr_Occurred()) SWIG_fail; | |
10790 | } | |
c32bde28 | 10791 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10792 | return resultobj; |
10793 | fail: | |
10794 | return NULL; | |
10795 | } | |
10796 | ||
10797 | ||
c32bde28 | 10798 | static PyObject *_wrap_Joystick_GetUMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10799 | PyObject *resultobj; |
10800 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10801 | int result; | |
10802 | PyObject * obj0 = 0 ; | |
10803 | char *kwnames[] = { | |
10804 | (char *) "self", NULL | |
10805 | }; | |
10806 | ||
10807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
10808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10810 | { | |
10811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10812 | result = (int)(arg1)->GetUMin(); | |
10813 | ||
10814 | wxPyEndAllowThreads(__tstate); | |
10815 | if (PyErr_Occurred()) SWIG_fail; | |
10816 | } | |
c32bde28 | 10817 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10818 | return resultobj; |
10819 | fail: | |
10820 | return NULL; | |
10821 | } | |
10822 | ||
10823 | ||
c32bde28 | 10824 | static PyObject *_wrap_Joystick_GetUMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10825 | PyObject *resultobj; |
10826 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10827 | int result; | |
10828 | PyObject * obj0 = 0 ; | |
10829 | char *kwnames[] = { | |
10830 | (char *) "self", NULL | |
10831 | }; | |
10832 | ||
10833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
10834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10836 | { | |
10837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10838 | result = (int)(arg1)->GetUMax(); | |
10839 | ||
10840 | wxPyEndAllowThreads(__tstate); | |
10841 | if (PyErr_Occurred()) SWIG_fail; | |
10842 | } | |
c32bde28 | 10843 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10844 | return resultobj; |
10845 | fail: | |
10846 | return NULL; | |
10847 | } | |
10848 | ||
10849 | ||
c32bde28 | 10850 | static PyObject *_wrap_Joystick_GetVMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10851 | PyObject *resultobj; |
10852 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10853 | int result; | |
10854 | PyObject * obj0 = 0 ; | |
10855 | char *kwnames[] = { | |
10856 | (char *) "self", NULL | |
10857 | }; | |
10858 | ||
10859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
10860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10862 | { | |
10863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10864 | result = (int)(arg1)->GetVMin(); | |
10865 | ||
10866 | wxPyEndAllowThreads(__tstate); | |
10867 | if (PyErr_Occurred()) SWIG_fail; | |
10868 | } | |
c32bde28 | 10869 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10870 | return resultobj; |
10871 | fail: | |
10872 | return NULL; | |
10873 | } | |
10874 | ||
10875 | ||
c32bde28 | 10876 | static PyObject *_wrap_Joystick_GetVMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10877 | PyObject *resultobj; |
10878 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10879 | int result; | |
10880 | PyObject * obj0 = 0 ; | |
10881 | char *kwnames[] = { | |
10882 | (char *) "self", NULL | |
10883 | }; | |
10884 | ||
10885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
10886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10888 | { | |
10889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10890 | result = (int)(arg1)->GetVMax(); | |
10891 | ||
10892 | wxPyEndAllowThreads(__tstate); | |
10893 | if (PyErr_Occurred()) SWIG_fail; | |
10894 | } | |
c32bde28 | 10895 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10896 | return resultobj; |
10897 | fail: | |
10898 | return NULL; | |
10899 | } | |
10900 | ||
10901 | ||
c32bde28 | 10902 | static PyObject *_wrap_Joystick_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10903 | PyObject *resultobj; |
10904 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10905 | bool result; | |
10906 | PyObject * obj0 = 0 ; | |
10907 | char *kwnames[] = { | |
10908 | (char *) "self", NULL | |
10909 | }; | |
10910 | ||
10911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
10912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10914 | { | |
10915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10916 | result = (bool)(arg1)->HasRudder(); | |
10917 | ||
10918 | wxPyEndAllowThreads(__tstate); | |
10919 | if (PyErr_Occurred()) SWIG_fail; | |
10920 | } | |
10921 | { | |
10922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10923 | } | |
10924 | return resultobj; | |
10925 | fail: | |
10926 | return NULL; | |
10927 | } | |
10928 | ||
10929 | ||
c32bde28 | 10930 | static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10931 | PyObject *resultobj; |
10932 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10933 | bool result; | |
10934 | PyObject * obj0 = 0 ; | |
10935 | char *kwnames[] = { | |
10936 | (char *) "self", NULL | |
10937 | }; | |
10938 | ||
10939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
10940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10942 | { | |
10943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10944 | result = (bool)(arg1)->HasZ(); | |
10945 | ||
10946 | wxPyEndAllowThreads(__tstate); | |
10947 | if (PyErr_Occurred()) SWIG_fail; | |
10948 | } | |
10949 | { | |
10950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10951 | } | |
10952 | return resultobj; | |
10953 | fail: | |
10954 | return NULL; | |
10955 | } | |
10956 | ||
10957 | ||
c32bde28 | 10958 | static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10959 | PyObject *resultobj; |
10960 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10961 | bool result; | |
10962 | PyObject * obj0 = 0 ; | |
10963 | char *kwnames[] = { | |
10964 | (char *) "self", NULL | |
10965 | }; | |
10966 | ||
10967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
10968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10970 | { | |
10971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10972 | result = (bool)(arg1)->HasU(); | |
10973 | ||
10974 | wxPyEndAllowThreads(__tstate); | |
10975 | if (PyErr_Occurred()) SWIG_fail; | |
10976 | } | |
10977 | { | |
10978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10979 | } | |
10980 | return resultobj; | |
10981 | fail: | |
10982 | return NULL; | |
10983 | } | |
10984 | ||
10985 | ||
c32bde28 | 10986 | static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10987 | PyObject *resultobj; |
10988 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10989 | bool result; | |
10990 | PyObject * obj0 = 0 ; | |
10991 | char *kwnames[] = { | |
10992 | (char *) "self", NULL | |
10993 | }; | |
10994 | ||
10995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
10996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10998 | { | |
10999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11000 | result = (bool)(arg1)->HasV(); | |
11001 | ||
11002 | wxPyEndAllowThreads(__tstate); | |
11003 | if (PyErr_Occurred()) SWIG_fail; | |
11004 | } | |
11005 | { | |
11006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11007 | } | |
11008 | return resultobj; | |
11009 | fail: | |
11010 | return NULL; | |
11011 | } | |
11012 | ||
11013 | ||
c32bde28 | 11014 | static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11015 | PyObject *resultobj; |
11016 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11017 | bool result; | |
11018 | PyObject * obj0 = 0 ; | |
11019 | char *kwnames[] = { | |
11020 | (char *) "self", NULL | |
11021 | }; | |
11022 | ||
11023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
11024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11026 | { | |
11027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11028 | result = (bool)(arg1)->HasPOV(); | |
11029 | ||
11030 | wxPyEndAllowThreads(__tstate); | |
11031 | if (PyErr_Occurred()) SWIG_fail; | |
11032 | } | |
11033 | { | |
11034 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11035 | } | |
11036 | return resultobj; | |
11037 | fail: | |
11038 | return NULL; | |
11039 | } | |
11040 | ||
11041 | ||
c32bde28 | 11042 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11043 | PyObject *resultobj; |
11044 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11045 | bool result; | |
11046 | PyObject * obj0 = 0 ; | |
11047 | char *kwnames[] = { | |
11048 | (char *) "self", NULL | |
11049 | }; | |
11050 | ||
11051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
11052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11054 | { | |
11055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11056 | result = (bool)(arg1)->HasPOV4Dir(); | |
11057 | ||
11058 | wxPyEndAllowThreads(__tstate); | |
11059 | if (PyErr_Occurred()) SWIG_fail; | |
11060 | } | |
11061 | { | |
11062 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11063 | } | |
11064 | return resultobj; | |
11065 | fail: | |
11066 | return NULL; | |
11067 | } | |
11068 | ||
11069 | ||
c32bde28 | 11070 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11071 | PyObject *resultobj; |
11072 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11073 | bool result; | |
11074 | PyObject * obj0 = 0 ; | |
11075 | char *kwnames[] = { | |
11076 | (char *) "self", NULL | |
11077 | }; | |
11078 | ||
11079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
11080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11082 | { | |
11083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11084 | result = (bool)(arg1)->HasPOVCTS(); | |
11085 | ||
11086 | wxPyEndAllowThreads(__tstate); | |
11087 | if (PyErr_Occurred()) SWIG_fail; | |
11088 | } | |
11089 | { | |
11090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11091 | } | |
11092 | return resultobj; | |
11093 | fail: | |
11094 | return NULL; | |
11095 | } | |
11096 | ||
11097 | ||
c32bde28 | 11098 | static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11099 | PyObject *resultobj; |
11100 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11101 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11102 | int arg3 = (int) 0 ; | |
11103 | bool result; | |
11104 | PyObject * obj0 = 0 ; | |
11105 | PyObject * obj1 = 0 ; | |
11106 | PyObject * obj2 = 0 ; | |
11107 | char *kwnames[] = { | |
11108 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
11109 | }; | |
11110 | ||
11111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11114 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11116 | if (obj2) { | |
c32bde28 | 11117 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11118 | if (PyErr_Occurred()) SWIG_fail; |
11119 | } | |
11120 | { | |
11121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11122 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
11123 | ||
11124 | wxPyEndAllowThreads(__tstate); | |
11125 | if (PyErr_Occurred()) SWIG_fail; | |
11126 | } | |
11127 | { | |
11128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11129 | } | |
11130 | return resultobj; | |
11131 | fail: | |
11132 | return NULL; | |
11133 | } | |
11134 | ||
11135 | ||
c32bde28 | 11136 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11137 | PyObject *resultobj; |
11138 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11139 | bool result; | |
11140 | PyObject * obj0 = 0 ; | |
11141 | char *kwnames[] = { | |
11142 | (char *) "self", NULL | |
11143 | }; | |
11144 | ||
11145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
11146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11148 | { | |
11149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11150 | result = (bool)(arg1)->ReleaseCapture(); | |
11151 | ||
11152 | wxPyEndAllowThreads(__tstate); | |
11153 | if (PyErr_Occurred()) SWIG_fail; | |
11154 | } | |
11155 | { | |
11156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11157 | } | |
11158 | return resultobj; | |
11159 | fail: | |
11160 | return NULL; | |
11161 | } | |
11162 | ||
11163 | ||
c32bde28 | 11164 | static PyObject * Joystick_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11165 | PyObject *obj; |
11166 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11167 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
11168 | Py_INCREF(obj); | |
11169 | return Py_BuildValue((char *)""); | |
11170 | } | |
c32bde28 | 11171 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11172 | PyObject *resultobj; |
11173 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11174 | wxPoint *arg2 = (wxPoint *) 0 ; | |
11175 | PyObject * obj0 = 0 ; | |
11176 | PyObject * obj1 = 0 ; | |
11177 | char *kwnames[] = { | |
11178 | (char *) "self",(char *) "m_pos", NULL | |
11179 | }; | |
11180 | ||
11181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
11182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11184 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
11185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11186 | if (arg1) (arg1)->m_pos = *arg2; | |
11187 | ||
11188 | Py_INCREF(Py_None); resultobj = Py_None; | |
11189 | return resultobj; | |
11190 | fail: | |
11191 | return NULL; | |
11192 | } | |
11193 | ||
11194 | ||
c32bde28 | 11195 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11196 | PyObject *resultobj; |
11197 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11198 | wxPoint *result; | |
11199 | PyObject * obj0 = 0 ; | |
11200 | char *kwnames[] = { | |
11201 | (char *) "self", NULL | |
11202 | }; | |
11203 | ||
11204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
11205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11207 | result = (wxPoint *)& ((arg1)->m_pos); | |
11208 | ||
11209 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
11210 | return resultobj; | |
11211 | fail: | |
11212 | return NULL; | |
11213 | } | |
11214 | ||
11215 | ||
c32bde28 | 11216 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11217 | PyObject *resultobj; |
11218 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11219 | int arg2 ; | |
11220 | PyObject * obj0 = 0 ; | |
11221 | PyObject * obj1 = 0 ; | |
11222 | char *kwnames[] = { | |
11223 | (char *) "self",(char *) "m_zPosition", NULL | |
11224 | }; | |
11225 | ||
11226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; | |
11227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11229 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11230 | if (PyErr_Occurred()) SWIG_fail; |
11231 | if (arg1) (arg1)->m_zPosition = arg2; | |
11232 | ||
11233 | Py_INCREF(Py_None); resultobj = Py_None; | |
11234 | return resultobj; | |
11235 | fail: | |
11236 | return NULL; | |
11237 | } | |
11238 | ||
11239 | ||
c32bde28 | 11240 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11241 | PyObject *resultobj; |
11242 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11243 | int result; | |
11244 | PyObject * obj0 = 0 ; | |
11245 | char *kwnames[] = { | |
11246 | (char *) "self", NULL | |
11247 | }; | |
11248 | ||
11249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
11250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11252 | result = (int) ((arg1)->m_zPosition); | |
11253 | ||
c32bde28 | 11254 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11255 | return resultobj; |
11256 | fail: | |
11257 | return NULL; | |
11258 | } | |
11259 | ||
11260 | ||
c32bde28 | 11261 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11262 | PyObject *resultobj; |
11263 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11264 | int arg2 ; | |
11265 | PyObject * obj0 = 0 ; | |
11266 | PyObject * obj1 = 0 ; | |
11267 | char *kwnames[] = { | |
11268 | (char *) "self",(char *) "m_buttonChange", NULL | |
11269 | }; | |
11270 | ||
11271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; | |
11272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11274 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11275 | if (PyErr_Occurred()) SWIG_fail; |
11276 | if (arg1) (arg1)->m_buttonChange = arg2; | |
11277 | ||
11278 | Py_INCREF(Py_None); resultobj = Py_None; | |
11279 | return resultobj; | |
11280 | fail: | |
11281 | return NULL; | |
11282 | } | |
11283 | ||
11284 | ||
c32bde28 | 11285 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11286 | PyObject *resultobj; |
11287 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11288 | int result; | |
11289 | PyObject * obj0 = 0 ; | |
11290 | char *kwnames[] = { | |
11291 | (char *) "self", NULL | |
11292 | }; | |
11293 | ||
11294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
11295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11297 | result = (int) ((arg1)->m_buttonChange); | |
11298 | ||
c32bde28 | 11299 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11300 | return resultobj; |
11301 | fail: | |
11302 | return NULL; | |
11303 | } | |
11304 | ||
11305 | ||
c32bde28 | 11306 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11307 | PyObject *resultobj; |
11308 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11309 | int arg2 ; | |
11310 | PyObject * obj0 = 0 ; | |
11311 | PyObject * obj1 = 0 ; | |
11312 | char *kwnames[] = { | |
11313 | (char *) "self",(char *) "m_buttonState", NULL | |
11314 | }; | |
11315 | ||
11316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; | |
11317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11319 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11320 | if (PyErr_Occurred()) SWIG_fail; |
11321 | if (arg1) (arg1)->m_buttonState = arg2; | |
11322 | ||
11323 | Py_INCREF(Py_None); resultobj = Py_None; | |
11324 | return resultobj; | |
11325 | fail: | |
11326 | return NULL; | |
11327 | } | |
11328 | ||
11329 | ||
c32bde28 | 11330 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11331 | PyObject *resultobj; |
11332 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11333 | int result; | |
11334 | PyObject * obj0 = 0 ; | |
11335 | char *kwnames[] = { | |
11336 | (char *) "self", NULL | |
11337 | }; | |
11338 | ||
11339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
11340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11342 | result = (int) ((arg1)->m_buttonState); | |
11343 | ||
c32bde28 | 11344 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11345 | return resultobj; |
11346 | fail: | |
11347 | return NULL; | |
11348 | } | |
11349 | ||
11350 | ||
c32bde28 | 11351 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11352 | PyObject *resultobj; |
11353 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11354 | int arg2 ; | |
11355 | PyObject * obj0 = 0 ; | |
11356 | PyObject * obj1 = 0 ; | |
11357 | char *kwnames[] = { | |
11358 | (char *) "self",(char *) "m_joyStick", NULL | |
11359 | }; | |
11360 | ||
11361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; | |
11362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11364 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11365 | if (PyErr_Occurred()) SWIG_fail; |
11366 | if (arg1) (arg1)->m_joyStick = arg2; | |
11367 | ||
11368 | Py_INCREF(Py_None); resultobj = Py_None; | |
11369 | return resultobj; | |
11370 | fail: | |
11371 | return NULL; | |
11372 | } | |
11373 | ||
11374 | ||
c32bde28 | 11375 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11376 | PyObject *resultobj; |
11377 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11378 | int result; | |
11379 | PyObject * obj0 = 0 ; | |
11380 | char *kwnames[] = { | |
11381 | (char *) "self", NULL | |
11382 | }; | |
11383 | ||
11384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
11385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11387 | result = (int) ((arg1)->m_joyStick); | |
11388 | ||
c32bde28 | 11389 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11390 | return resultobj; |
11391 | fail: | |
11392 | return NULL; | |
11393 | } | |
11394 | ||
11395 | ||
c32bde28 | 11396 | static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11397 | PyObject *resultobj; |
11398 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11399 | int arg2 = (int) 0 ; | |
11400 | int arg3 = (int) wxJOYSTICK1 ; | |
11401 | int arg4 = (int) 0 ; | |
11402 | wxJoystickEvent *result; | |
11403 | PyObject * obj0 = 0 ; | |
11404 | PyObject * obj1 = 0 ; | |
11405 | PyObject * obj2 = 0 ; | |
11406 | PyObject * obj3 = 0 ; | |
11407 | char *kwnames[] = { | |
11408 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
11409 | }; | |
11410 | ||
11411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11412 | if (obj0) { | |
c32bde28 | 11413 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
11414 | if (PyErr_Occurred()) SWIG_fail; |
11415 | } | |
11416 | if (obj1) { | |
c32bde28 | 11417 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11418 | if (PyErr_Occurred()) SWIG_fail; |
11419 | } | |
11420 | if (obj2) { | |
c32bde28 | 11421 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11422 | if (PyErr_Occurred()) SWIG_fail; |
11423 | } | |
11424 | if (obj3) { | |
c32bde28 | 11425 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
11426 | if (PyErr_Occurred()) SWIG_fail; |
11427 | } | |
11428 | { | |
11429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11430 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
11431 | ||
11432 | wxPyEndAllowThreads(__tstate); | |
11433 | if (PyErr_Occurred()) SWIG_fail; | |
11434 | } | |
11435 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); | |
11436 | return resultobj; | |
11437 | fail: | |
11438 | return NULL; | |
11439 | } | |
11440 | ||
11441 | ||
c32bde28 | 11442 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11443 | PyObject *resultobj; |
11444 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11445 | wxPoint result; | |
11446 | PyObject * obj0 = 0 ; | |
11447 | char *kwnames[] = { | |
11448 | (char *) "self", NULL | |
11449 | }; | |
11450 | ||
11451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
11452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11454 | { | |
11455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11456 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
11457 | ||
11458 | wxPyEndAllowThreads(__tstate); | |
11459 | if (PyErr_Occurred()) SWIG_fail; | |
11460 | } | |
11461 | { | |
11462 | wxPoint * resultptr; | |
11463 | resultptr = new wxPoint((wxPoint &) result); | |
11464 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
11465 | } | |
11466 | return resultobj; | |
11467 | fail: | |
11468 | return NULL; | |
11469 | } | |
11470 | ||
11471 | ||
c32bde28 | 11472 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11473 | PyObject *resultobj; |
11474 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11475 | int result; | |
11476 | PyObject * obj0 = 0 ; | |
11477 | char *kwnames[] = { | |
11478 | (char *) "self", NULL | |
11479 | }; | |
11480 | ||
11481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
11482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11484 | { | |
11485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11486 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
11487 | ||
11488 | wxPyEndAllowThreads(__tstate); | |
11489 | if (PyErr_Occurred()) SWIG_fail; | |
11490 | } | |
c32bde28 | 11491 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11492 | return resultobj; |
11493 | fail: | |
11494 | return NULL; | |
11495 | } | |
11496 | ||
11497 | ||
c32bde28 | 11498 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11499 | PyObject *resultobj; |
11500 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11501 | int result; | |
11502 | PyObject * obj0 = 0 ; | |
11503 | char *kwnames[] = { | |
11504 | (char *) "self", NULL | |
11505 | }; | |
11506 | ||
11507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
11508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11510 | { | |
11511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11512 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
11513 | ||
11514 | wxPyEndAllowThreads(__tstate); | |
11515 | if (PyErr_Occurred()) SWIG_fail; | |
11516 | } | |
c32bde28 | 11517 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11518 | return resultobj; |
11519 | fail: | |
11520 | return NULL; | |
11521 | } | |
11522 | ||
11523 | ||
c32bde28 | 11524 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11525 | PyObject *resultobj; |
11526 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11527 | int result; | |
11528 | PyObject * obj0 = 0 ; | |
11529 | char *kwnames[] = { | |
11530 | (char *) "self", NULL | |
11531 | }; | |
11532 | ||
11533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
11534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11536 | { | |
11537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11538 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
11539 | ||
11540 | wxPyEndAllowThreads(__tstate); | |
11541 | if (PyErr_Occurred()) SWIG_fail; | |
11542 | } | |
c32bde28 | 11543 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11544 | return resultobj; |
11545 | fail: | |
11546 | return NULL; | |
11547 | } | |
11548 | ||
11549 | ||
c32bde28 | 11550 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11551 | PyObject *resultobj; |
11552 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11553 | int result; | |
11554 | PyObject * obj0 = 0 ; | |
11555 | char *kwnames[] = { | |
11556 | (char *) "self", NULL | |
11557 | }; | |
11558 | ||
11559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
11560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11562 | { | |
11563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11564 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
11565 | ||
11566 | wxPyEndAllowThreads(__tstate); | |
11567 | if (PyErr_Occurred()) SWIG_fail; | |
11568 | } | |
c32bde28 | 11569 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11570 | return resultobj; |
11571 | fail: | |
11572 | return NULL; | |
11573 | } | |
11574 | ||
11575 | ||
c32bde28 | 11576 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11577 | PyObject *resultobj; |
11578 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11579 | int arg2 ; | |
11580 | PyObject * obj0 = 0 ; | |
11581 | PyObject * obj1 = 0 ; | |
11582 | char *kwnames[] = { | |
11583 | (char *) "self",(char *) "stick", NULL | |
11584 | }; | |
11585 | ||
11586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; | |
11587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11589 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11590 | if (PyErr_Occurred()) SWIG_fail; |
11591 | { | |
11592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11593 | (arg1)->SetJoystick(arg2); | |
11594 | ||
11595 | wxPyEndAllowThreads(__tstate); | |
11596 | if (PyErr_Occurred()) SWIG_fail; | |
11597 | } | |
11598 | Py_INCREF(Py_None); resultobj = Py_None; | |
11599 | return resultobj; | |
11600 | fail: | |
11601 | return NULL; | |
11602 | } | |
11603 | ||
11604 | ||
c32bde28 | 11605 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11606 | PyObject *resultobj; |
11607 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11608 | int arg2 ; | |
11609 | PyObject * obj0 = 0 ; | |
11610 | PyObject * obj1 = 0 ; | |
11611 | char *kwnames[] = { | |
11612 | (char *) "self",(char *) "state", NULL | |
11613 | }; | |
11614 | ||
11615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; | |
11616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11618 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11619 | if (PyErr_Occurred()) SWIG_fail; |
11620 | { | |
11621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11622 | (arg1)->SetButtonState(arg2); | |
11623 | ||
11624 | wxPyEndAllowThreads(__tstate); | |
11625 | if (PyErr_Occurred()) SWIG_fail; | |
11626 | } | |
11627 | Py_INCREF(Py_None); resultobj = Py_None; | |
11628 | return resultobj; | |
11629 | fail: | |
11630 | return NULL; | |
11631 | } | |
11632 | ||
11633 | ||
c32bde28 | 11634 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11635 | PyObject *resultobj; |
11636 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11637 | int arg2 ; | |
11638 | PyObject * obj0 = 0 ; | |
11639 | PyObject * obj1 = 0 ; | |
11640 | char *kwnames[] = { | |
11641 | (char *) "self",(char *) "change", NULL | |
11642 | }; | |
11643 | ||
11644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; | |
11645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11647 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11648 | if (PyErr_Occurred()) SWIG_fail; |
11649 | { | |
11650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11651 | (arg1)->SetButtonChange(arg2); | |
11652 | ||
11653 | wxPyEndAllowThreads(__tstate); | |
11654 | if (PyErr_Occurred()) SWIG_fail; | |
11655 | } | |
11656 | Py_INCREF(Py_None); resultobj = Py_None; | |
11657 | return resultobj; | |
11658 | fail: | |
11659 | return NULL; | |
11660 | } | |
11661 | ||
11662 | ||
c32bde28 | 11663 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11664 | PyObject *resultobj; |
11665 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11666 | wxPoint *arg2 = 0 ; | |
11667 | wxPoint temp2 ; | |
11668 | PyObject * obj0 = 0 ; | |
11669 | PyObject * obj1 = 0 ; | |
11670 | char *kwnames[] = { | |
11671 | (char *) "self",(char *) "pos", NULL | |
11672 | }; | |
11673 | ||
11674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
11675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11677 | { | |
11678 | arg2 = &temp2; | |
11679 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11680 | } | |
11681 | { | |
11682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11683 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
11684 | ||
11685 | wxPyEndAllowThreads(__tstate); | |
11686 | if (PyErr_Occurred()) SWIG_fail; | |
11687 | } | |
11688 | Py_INCREF(Py_None); resultobj = Py_None; | |
11689 | return resultobj; | |
11690 | fail: | |
11691 | return NULL; | |
11692 | } | |
11693 | ||
11694 | ||
c32bde28 | 11695 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11696 | PyObject *resultobj; |
11697 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11698 | int arg2 ; | |
11699 | PyObject * obj0 = 0 ; | |
11700 | PyObject * obj1 = 0 ; | |
11701 | char *kwnames[] = { | |
11702 | (char *) "self",(char *) "zPos", NULL | |
11703 | }; | |
11704 | ||
11705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; | |
11706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11708 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11709 | if (PyErr_Occurred()) SWIG_fail; |
11710 | { | |
11711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11712 | (arg1)->SetZPosition(arg2); | |
11713 | ||
11714 | wxPyEndAllowThreads(__tstate); | |
11715 | if (PyErr_Occurred()) SWIG_fail; | |
11716 | } | |
11717 | Py_INCREF(Py_None); resultobj = Py_None; | |
11718 | return resultobj; | |
11719 | fail: | |
11720 | return NULL; | |
11721 | } | |
11722 | ||
11723 | ||
c32bde28 | 11724 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11725 | PyObject *resultobj; |
11726 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11727 | bool result; | |
11728 | PyObject * obj0 = 0 ; | |
11729 | char *kwnames[] = { | |
11730 | (char *) "self", NULL | |
11731 | }; | |
11732 | ||
11733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
11734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11736 | { | |
11737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11738 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
11739 | ||
11740 | wxPyEndAllowThreads(__tstate); | |
11741 | if (PyErr_Occurred()) SWIG_fail; | |
11742 | } | |
11743 | { | |
11744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11745 | } | |
11746 | return resultobj; | |
11747 | fail: | |
11748 | return NULL; | |
11749 | } | |
11750 | ||
11751 | ||
c32bde28 | 11752 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11753 | PyObject *resultobj; |
11754 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11755 | bool result; | |
11756 | PyObject * obj0 = 0 ; | |
11757 | char *kwnames[] = { | |
11758 | (char *) "self", NULL | |
11759 | }; | |
11760 | ||
11761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
11762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11764 | { | |
11765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11766 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
11767 | ||
11768 | wxPyEndAllowThreads(__tstate); | |
11769 | if (PyErr_Occurred()) SWIG_fail; | |
11770 | } | |
11771 | { | |
11772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11773 | } | |
11774 | return resultobj; | |
11775 | fail: | |
11776 | return NULL; | |
11777 | } | |
11778 | ||
11779 | ||
c32bde28 | 11780 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11781 | PyObject *resultobj; |
11782 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11783 | bool result; | |
11784 | PyObject * obj0 = 0 ; | |
11785 | char *kwnames[] = { | |
11786 | (char *) "self", NULL | |
11787 | }; | |
11788 | ||
11789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
11790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11792 | { | |
11793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11794 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
11795 | ||
11796 | wxPyEndAllowThreads(__tstate); | |
11797 | if (PyErr_Occurred()) SWIG_fail; | |
11798 | } | |
11799 | { | |
11800 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11801 | } | |
11802 | return resultobj; | |
11803 | fail: | |
11804 | return NULL; | |
11805 | } | |
11806 | ||
11807 | ||
c32bde28 | 11808 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11809 | PyObject *resultobj; |
11810 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11811 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11812 | bool result; | |
11813 | PyObject * obj0 = 0 ; | |
11814 | PyObject * obj1 = 0 ; | |
11815 | char *kwnames[] = { | |
11816 | (char *) "self",(char *) "but", NULL | |
11817 | }; | |
11818 | ||
11819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
11820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11822 | if (obj1) { | |
c32bde28 | 11823 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11824 | if (PyErr_Occurred()) SWIG_fail; |
11825 | } | |
11826 | { | |
11827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11828 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11829 | ||
11830 | wxPyEndAllowThreads(__tstate); | |
11831 | if (PyErr_Occurred()) SWIG_fail; | |
11832 | } | |
11833 | { | |
11834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11835 | } | |
11836 | return resultobj; | |
11837 | fail: | |
11838 | return NULL; | |
11839 | } | |
11840 | ||
11841 | ||
c32bde28 | 11842 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11843 | PyObject *resultobj; |
11844 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11845 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11846 | bool result; | |
11847 | PyObject * obj0 = 0 ; | |
11848 | PyObject * obj1 = 0 ; | |
11849 | char *kwnames[] = { | |
11850 | (char *) "self",(char *) "but", NULL | |
11851 | }; | |
11852 | ||
11853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
11854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11856 | if (obj1) { | |
c32bde28 | 11857 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11858 | if (PyErr_Occurred()) SWIG_fail; |
11859 | } | |
11860 | { | |
11861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11862 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
11863 | ||
11864 | wxPyEndAllowThreads(__tstate); | |
11865 | if (PyErr_Occurred()) SWIG_fail; | |
11866 | } | |
11867 | { | |
11868 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11869 | } | |
11870 | return resultobj; | |
11871 | fail: | |
11872 | return NULL; | |
11873 | } | |
11874 | ||
11875 | ||
c32bde28 | 11876 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11877 | PyObject *resultobj; |
11878 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11879 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11880 | bool result; | |
11881 | PyObject * obj0 = 0 ; | |
11882 | PyObject * obj1 = 0 ; | |
11883 | char *kwnames[] = { | |
11884 | (char *) "self",(char *) "but", NULL | |
11885 | }; | |
11886 | ||
11887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
11888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11890 | if (obj1) { | |
c32bde28 | 11891 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11892 | if (PyErr_Occurred()) SWIG_fail; |
11893 | } | |
11894 | { | |
11895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11896 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
11897 | ||
11898 | wxPyEndAllowThreads(__tstate); | |
11899 | if (PyErr_Occurred()) SWIG_fail; | |
11900 | } | |
11901 | { | |
11902 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11903 | } | |
11904 | return resultobj; | |
11905 | fail: | |
11906 | return NULL; | |
11907 | } | |
11908 | ||
11909 | ||
c32bde28 | 11910 | static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11911 | PyObject *obj; |
11912 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11913 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
11914 | Py_INCREF(obj); | |
11915 | return Py_BuildValue((char *)""); | |
11916 | } | |
c32bde28 | 11917 | static PyObject *_wrap_new_Sound(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 11918 | PyObject *resultobj; |
b1f29bf7 RD |
11919 | wxString const &arg1_defvalue = wxPyEmptyString ; |
11920 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
d55e5bfc | 11921 | wxSound *result; |
ae8162c8 | 11922 | bool temp1 = false ; |
d55e5bfc | 11923 | PyObject * obj0 = 0 ; |
b1f29bf7 RD |
11924 | char *kwnames[] = { |
11925 | (char *) "fileName", NULL | |
11926 | }; | |
d55e5bfc | 11927 | |
b1f29bf7 RD |
11928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail; |
11929 | if (obj0) { | |
11930 | { | |
11931 | arg1 = wxString_in_helper(obj0); | |
11932 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11933 | temp1 = true; |
b1f29bf7 | 11934 | } |
d55e5bfc RD |
11935 | } |
11936 | { | |
0439c23b | 11937 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 11938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1f29bf7 | 11939 | result = (wxSound *)new_wxSound((wxString const &)*arg1); |
d55e5bfc RD |
11940 | |
11941 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11942 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11943 | } |
11944 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
11945 | { | |
11946 | if (temp1) | |
11947 | delete arg1; | |
11948 | } | |
11949 | return resultobj; | |
11950 | fail: | |
11951 | { | |
11952 | if (temp1) | |
11953 | delete arg1; | |
11954 | } | |
11955 | return NULL; | |
11956 | } | |
11957 | ||
11958 | ||
c32bde28 | 11959 | static PyObject *_wrap_new_SoundFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 11960 | PyObject *resultobj; |
b1f29bf7 | 11961 | PyObject *arg1 = (PyObject *) 0 ; |
d55e5bfc RD |
11962 | wxSound *result; |
11963 | PyObject * obj0 = 0 ; | |
b1f29bf7 RD |
11964 | char *kwnames[] = { |
11965 | (char *) "data", NULL | |
11966 | }; | |
d55e5bfc | 11967 | |
b1f29bf7 RD |
11968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail; |
11969 | arg1 = obj0; | |
d55e5bfc | 11970 | { |
0439c23b | 11971 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 11972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1f29bf7 | 11973 | result = (wxSound *)new_wxSound(arg1); |
d55e5bfc RD |
11974 | |
11975 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11976 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11977 | } |
11978 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
11979 | return resultobj; | |
11980 | fail: | |
11981 | return NULL; | |
11982 | } | |
11983 | ||
11984 | ||
c32bde28 | 11985 | static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11986 | PyObject *resultobj; |
11987 | wxSound *arg1 = (wxSound *) 0 ; | |
11988 | PyObject * obj0 = 0 ; | |
11989 | char *kwnames[] = { | |
11990 | (char *) "self", NULL | |
11991 | }; | |
11992 | ||
11993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; | |
11994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
11995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11996 | { | |
11997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11998 | delete arg1; | |
11999 | ||
12000 | wxPyEndAllowThreads(__tstate); | |
12001 | if (PyErr_Occurred()) SWIG_fail; | |
12002 | } | |
12003 | Py_INCREF(Py_None); resultobj = Py_None; | |
12004 | return resultobj; | |
12005 | fail: | |
12006 | return NULL; | |
12007 | } | |
12008 | ||
12009 | ||
c32bde28 | 12010 | static PyObject *_wrap_Sound_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12011 | PyObject *resultobj; |
12012 | wxSound *arg1 = (wxSound *) 0 ; | |
12013 | wxString *arg2 = 0 ; | |
d55e5bfc | 12014 | bool result; |
ae8162c8 | 12015 | bool temp2 = false ; |
d55e5bfc RD |
12016 | PyObject * obj0 = 0 ; |
12017 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
12018 | char *kwnames[] = { |
12019 | (char *) "self",(char *) "fileName", NULL | |
12020 | }; | |
d55e5bfc | 12021 | |
b1f29bf7 | 12022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
12024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12025 | { | |
12026 | arg2 = wxString_in_helper(obj1); | |
12027 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12028 | temp2 = true; |
d55e5bfc | 12029 | } |
d55e5bfc RD |
12030 | { |
12031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b1f29bf7 | 12032 | result = (bool)(arg1)->Create((wxString const &)*arg2); |
d55e5bfc RD |
12033 | |
12034 | wxPyEndAllowThreads(__tstate); | |
12035 | if (PyErr_Occurred()) SWIG_fail; | |
12036 | } | |
12037 | { | |
12038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12039 | } | |
12040 | { | |
12041 | if (temp2) | |
12042 | delete arg2; | |
12043 | } | |
12044 | return resultobj; | |
12045 | fail: | |
12046 | { | |
12047 | if (temp2) | |
12048 | delete arg2; | |
12049 | } | |
12050 | return NULL; | |
12051 | } | |
12052 | ||
12053 | ||
c32bde28 | 12054 | static PyObject *_wrap_Sound_CreateFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12055 | PyObject *resultobj; |
12056 | wxSound *arg1 = (wxSound *) 0 ; | |
b1f29bf7 | 12057 | PyObject *arg2 = (PyObject *) 0 ; |
d55e5bfc RD |
12058 | bool result; |
12059 | PyObject * obj0 = 0 ; | |
12060 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
12061 | char *kwnames[] = { |
12062 | (char *) "self",(char *) "data", NULL | |
12063 | }; | |
d55e5bfc | 12064 | |
b1f29bf7 | 12065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
12067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b1f29bf7 | 12068 | arg2 = obj1; |
d55e5bfc RD |
12069 | { |
12070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b1f29bf7 | 12071 | result = (bool)wxSound_CreateFromData(arg1,arg2); |
d55e5bfc RD |
12072 | |
12073 | wxPyEndAllowThreads(__tstate); | |
12074 | if (PyErr_Occurred()) SWIG_fail; | |
12075 | } | |
12076 | { | |
12077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12078 | } | |
12079 | return resultobj; | |
12080 | fail: | |
12081 | return NULL; | |
12082 | } | |
12083 | ||
12084 | ||
c32bde28 | 12085 | static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12086 | PyObject *resultobj; |
12087 | wxSound *arg1 = (wxSound *) 0 ; | |
12088 | bool result; | |
12089 | PyObject * obj0 = 0 ; | |
12090 | char *kwnames[] = { | |
12091 | (char *) "self", NULL | |
12092 | }; | |
12093 | ||
12094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; | |
12095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
12096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12097 | { | |
12098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12099 | result = (bool)(arg1)->IsOk(); | |
12100 | ||
12101 | wxPyEndAllowThreads(__tstate); | |
12102 | if (PyErr_Occurred()) SWIG_fail; | |
12103 | } | |
12104 | { | |
12105 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12106 | } | |
12107 | return resultobj; | |
12108 | fail: | |
12109 | return NULL; | |
12110 | } | |
12111 | ||
12112 | ||
c32bde28 | 12113 | static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12114 | PyObject *resultobj; |
12115 | wxSound *arg1 = (wxSound *) 0 ; | |
12116 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
12117 | bool result; | |
12118 | PyObject * obj0 = 0 ; | |
12119 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
12120 | char *kwnames[] = { |
12121 | (char *) "self",(char *) "flags", NULL | |
12122 | }; | |
d55e5bfc | 12123 | |
b1f29bf7 | 12124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
12126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12127 | if (obj1) { | |
c32bde28 | 12128 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
12129 | if (PyErr_Occurred()) SWIG_fail; |
12130 | } | |
12131 | { | |
0439c23b | 12132 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12134 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
12135 | ||
12136 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12137 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12138 | } |
12139 | { | |
12140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12141 | } | |
12142 | return resultobj; | |
12143 | fail: | |
12144 | return NULL; | |
12145 | } | |
12146 | ||
12147 | ||
c32bde28 | 12148 | static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12149 | PyObject *resultobj; |
12150 | wxString *arg1 = 0 ; | |
12151 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
12152 | bool result; | |
ae8162c8 | 12153 | bool temp1 = false ; |
d55e5bfc RD |
12154 | PyObject * obj0 = 0 ; |
12155 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
12156 | char *kwnames[] = { |
12157 | (char *) "filename",(char *) "flags", NULL | |
12158 | }; | |
d55e5bfc | 12159 | |
b1f29bf7 | 12160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12161 | { |
12162 | arg1 = wxString_in_helper(obj0); | |
12163 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 12164 | temp1 = true; |
d55e5bfc RD |
12165 | } |
12166 | if (obj1) { | |
c32bde28 | 12167 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
12168 | if (PyErr_Occurred()) SWIG_fail; |
12169 | } | |
12170 | { | |
0439c23b | 12171 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12173 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); | |
12174 | ||
12175 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12176 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12177 | } |
12178 | { | |
12179 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12180 | } | |
12181 | { | |
12182 | if (temp1) | |
12183 | delete arg1; | |
12184 | } | |
12185 | return resultobj; | |
12186 | fail: | |
12187 | { | |
12188 | if (temp1) | |
12189 | delete arg1; | |
12190 | } | |
12191 | return NULL; | |
12192 | } | |
12193 | ||
12194 | ||
c32bde28 | 12195 | static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12196 | PyObject *resultobj; |
12197 | char *kwnames[] = { | |
12198 | NULL | |
12199 | }; | |
12200 | ||
12201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
12202 | { | |
0439c23b | 12203 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12205 | wxSound::Stop(); | |
12206 | ||
12207 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12208 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12209 | } |
12210 | Py_INCREF(Py_None); resultobj = Py_None; | |
12211 | return resultobj; | |
12212 | fail: | |
12213 | return NULL; | |
12214 | } | |
12215 | ||
12216 | ||
c32bde28 | 12217 | static PyObject * Sound_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12218 | PyObject *obj; |
12219 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12220 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); | |
12221 | Py_INCREF(obj); | |
12222 | return Py_BuildValue((char *)""); | |
12223 | } | |
c32bde28 | 12224 | static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12225 | PyObject *resultobj; |
12226 | wxString *arg1 = 0 ; | |
12227 | wxString *arg2 = 0 ; | |
12228 | wxString *arg3 = 0 ; | |
12229 | wxString *arg4 = 0 ; | |
12230 | wxFileTypeInfo *result; | |
ae8162c8 RD |
12231 | bool temp1 = false ; |
12232 | bool temp2 = false ; | |
12233 | bool temp3 = false ; | |
12234 | bool temp4 = false ; | |
d55e5bfc RD |
12235 | PyObject * obj0 = 0 ; |
12236 | PyObject * obj1 = 0 ; | |
12237 | PyObject * obj2 = 0 ; | |
12238 | PyObject * obj3 = 0 ; | |
12239 | char *kwnames[] = { | |
12240 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
12241 | }; | |
12242 | ||
12243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12244 | { | |
12245 | arg1 = wxString_in_helper(obj0); | |
12246 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 12247 | temp1 = true; |
d55e5bfc RD |
12248 | } |
12249 | { | |
12250 | arg2 = wxString_in_helper(obj1); | |
12251 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12252 | temp2 = true; |
d55e5bfc RD |
12253 | } |
12254 | { | |
12255 | arg3 = wxString_in_helper(obj2); | |
12256 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 12257 | temp3 = true; |
d55e5bfc RD |
12258 | } |
12259 | { | |
12260 | arg4 = wxString_in_helper(obj3); | |
12261 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 12262 | temp4 = true; |
d55e5bfc RD |
12263 | } |
12264 | { | |
12265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12266 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
12267 | ||
12268 | wxPyEndAllowThreads(__tstate); | |
12269 | if (PyErr_Occurred()) SWIG_fail; | |
12270 | } | |
12271 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
12272 | { | |
12273 | if (temp1) | |
12274 | delete arg1; | |
12275 | } | |
12276 | { | |
12277 | if (temp2) | |
12278 | delete arg2; | |
12279 | } | |
12280 | { | |
12281 | if (temp3) | |
12282 | delete arg3; | |
12283 | } | |
12284 | { | |
12285 | if (temp4) | |
12286 | delete arg4; | |
12287 | } | |
12288 | return resultobj; | |
12289 | fail: | |
12290 | { | |
12291 | if (temp1) | |
12292 | delete arg1; | |
12293 | } | |
12294 | { | |
12295 | if (temp2) | |
12296 | delete arg2; | |
12297 | } | |
12298 | { | |
12299 | if (temp3) | |
12300 | delete arg3; | |
12301 | } | |
12302 | { | |
12303 | if (temp4) | |
12304 | delete arg4; | |
12305 | } | |
12306 | return NULL; | |
12307 | } | |
12308 | ||
12309 | ||
c32bde28 | 12310 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12311 | PyObject *resultobj; |
12312 | wxArrayString *arg1 = 0 ; | |
12313 | wxFileTypeInfo *result; | |
ae8162c8 | 12314 | bool temp1 = false ; |
d55e5bfc RD |
12315 | PyObject * obj0 = 0 ; |
12316 | char *kwnames[] = { | |
12317 | (char *) "sArray", NULL | |
12318 | }; | |
12319 | ||
12320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
12321 | { | |
12322 | if (! PySequence_Check(obj0)) { | |
12323 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
12324 | SWIG_fail; | |
12325 | } | |
12326 | arg1 = new wxArrayString; | |
ae8162c8 | 12327 | temp1 = true; |
d55e5bfc RD |
12328 | int i, len=PySequence_Length(obj0); |
12329 | for (i=0; i<len; i++) { | |
12330 | PyObject* item = PySequence_GetItem(obj0, i); | |
12331 | #if wxUSE_UNICODE | |
12332 | PyObject* str = PyObject_Unicode(item); | |
12333 | #else | |
12334 | PyObject* str = PyObject_Str(item); | |
12335 | #endif | |
12336 | if (PyErr_Occurred()) SWIG_fail; | |
12337 | arg1->Add(Py2wxString(str)); | |
12338 | Py_DECREF(item); | |
12339 | Py_DECREF(str); | |
12340 | } | |
12341 | } | |
12342 | { | |
12343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12344 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
12345 | ||
12346 | wxPyEndAllowThreads(__tstate); | |
12347 | if (PyErr_Occurred()) SWIG_fail; | |
12348 | } | |
12349 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
12350 | { | |
12351 | if (temp1) delete arg1; | |
12352 | } | |
12353 | return resultobj; | |
12354 | fail: | |
12355 | { | |
12356 | if (temp1) delete arg1; | |
12357 | } | |
12358 | return NULL; | |
12359 | } | |
12360 | ||
12361 | ||
c32bde28 | 12362 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12363 | PyObject *resultobj; |
12364 | wxFileTypeInfo *result; | |
12365 | char *kwnames[] = { | |
12366 | NULL | |
12367 | }; | |
12368 | ||
12369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
12370 | { | |
12371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12372 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
12373 | ||
12374 | wxPyEndAllowThreads(__tstate); | |
12375 | if (PyErr_Occurred()) SWIG_fail; | |
12376 | } | |
12377 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
12378 | return resultobj; | |
12379 | fail: | |
12380 | return NULL; | |
12381 | } | |
12382 | ||
12383 | ||
c32bde28 | 12384 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12385 | PyObject *resultobj; |
12386 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12387 | bool result; | |
12388 | PyObject * obj0 = 0 ; | |
12389 | char *kwnames[] = { | |
12390 | (char *) "self", NULL | |
12391 | }; | |
12392 | ||
12393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
12394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12396 | { | |
12397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12398 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
12399 | ||
12400 | wxPyEndAllowThreads(__tstate); | |
12401 | if (PyErr_Occurred()) SWIG_fail; | |
12402 | } | |
12403 | { | |
12404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12405 | } | |
12406 | return resultobj; | |
12407 | fail: | |
12408 | return NULL; | |
12409 | } | |
12410 | ||
12411 | ||
c32bde28 | 12412 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12413 | PyObject *resultobj; |
12414 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12415 | wxString *arg2 = 0 ; | |
12416 | int arg3 = (int) 0 ; | |
ae8162c8 | 12417 | bool temp2 = false ; |
d55e5bfc RD |
12418 | PyObject * obj0 = 0 ; |
12419 | PyObject * obj1 = 0 ; | |
12420 | PyObject * obj2 = 0 ; | |
12421 | char *kwnames[] = { | |
12422 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
12423 | }; | |
12424 | ||
12425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12428 | { | |
12429 | arg2 = wxString_in_helper(obj1); | |
12430 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12431 | temp2 = true; |
d55e5bfc RD |
12432 | } |
12433 | if (obj2) { | |
c32bde28 | 12434 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
12435 | if (PyErr_Occurred()) SWIG_fail; |
12436 | } | |
12437 | { | |
12438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12439 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
12440 | ||
12441 | wxPyEndAllowThreads(__tstate); | |
12442 | if (PyErr_Occurred()) SWIG_fail; | |
12443 | } | |
12444 | Py_INCREF(Py_None); resultobj = Py_None; | |
12445 | { | |
12446 | if (temp2) | |
12447 | delete arg2; | |
12448 | } | |
12449 | return resultobj; | |
12450 | fail: | |
12451 | { | |
12452 | if (temp2) | |
12453 | delete arg2; | |
12454 | } | |
12455 | return NULL; | |
12456 | } | |
12457 | ||
12458 | ||
c32bde28 | 12459 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12460 | PyObject *resultobj; |
12461 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12462 | wxString *arg2 = 0 ; | |
ae8162c8 | 12463 | bool temp2 = false ; |
d55e5bfc RD |
12464 | PyObject * obj0 = 0 ; |
12465 | PyObject * obj1 = 0 ; | |
12466 | char *kwnames[] = { | |
12467 | (char *) "self",(char *) "shortDesc", NULL | |
12468 | }; | |
12469 | ||
12470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
12471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12473 | { | |
12474 | arg2 = wxString_in_helper(obj1); | |
12475 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12476 | temp2 = true; |
d55e5bfc RD |
12477 | } |
12478 | { | |
12479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12480 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
12481 | ||
12482 | wxPyEndAllowThreads(__tstate); | |
12483 | if (PyErr_Occurred()) SWIG_fail; | |
12484 | } | |
12485 | Py_INCREF(Py_None); resultobj = Py_None; | |
12486 | { | |
12487 | if (temp2) | |
12488 | delete arg2; | |
12489 | } | |
12490 | return resultobj; | |
12491 | fail: | |
12492 | { | |
12493 | if (temp2) | |
12494 | delete arg2; | |
12495 | } | |
12496 | return NULL; | |
12497 | } | |
12498 | ||
12499 | ||
c32bde28 | 12500 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12501 | PyObject *resultobj; |
12502 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12503 | wxString *result; | |
12504 | PyObject * obj0 = 0 ; | |
12505 | char *kwnames[] = { | |
12506 | (char *) "self", NULL | |
12507 | }; | |
12508 | ||
12509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
12510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12512 | { | |
12513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12514 | { | |
12515 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
12516 | result = (wxString *) &_result_ref; | |
12517 | } | |
12518 | ||
12519 | wxPyEndAllowThreads(__tstate); | |
12520 | if (PyErr_Occurred()) SWIG_fail; | |
12521 | } | |
12522 | { | |
12523 | #if wxUSE_UNICODE | |
12524 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12525 | #else | |
12526 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12527 | #endif | |
12528 | } | |
12529 | return resultobj; | |
12530 | fail: | |
12531 | return NULL; | |
12532 | } | |
12533 | ||
12534 | ||
c32bde28 | 12535 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12536 | PyObject *resultobj; |
12537 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12538 | wxString *result; | |
12539 | PyObject * obj0 = 0 ; | |
12540 | char *kwnames[] = { | |
12541 | (char *) "self", NULL | |
12542 | }; | |
12543 | ||
12544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
12545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12547 | { | |
12548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12549 | { | |
12550 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
12551 | result = (wxString *) &_result_ref; | |
12552 | } | |
12553 | ||
12554 | wxPyEndAllowThreads(__tstate); | |
12555 | if (PyErr_Occurred()) SWIG_fail; | |
12556 | } | |
12557 | { | |
12558 | #if wxUSE_UNICODE | |
12559 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12560 | #else | |
12561 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12562 | #endif | |
12563 | } | |
12564 | return resultobj; | |
12565 | fail: | |
12566 | return NULL; | |
12567 | } | |
12568 | ||
12569 | ||
c32bde28 | 12570 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12571 | PyObject *resultobj; |
12572 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12573 | wxString *result; | |
12574 | PyObject * obj0 = 0 ; | |
12575 | char *kwnames[] = { | |
12576 | (char *) "self", NULL | |
12577 | }; | |
12578 | ||
12579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
12580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12582 | { | |
12583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12584 | { | |
12585 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
12586 | result = (wxString *) &_result_ref; | |
12587 | } | |
12588 | ||
12589 | wxPyEndAllowThreads(__tstate); | |
12590 | if (PyErr_Occurred()) SWIG_fail; | |
12591 | } | |
12592 | { | |
12593 | #if wxUSE_UNICODE | |
12594 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12595 | #else | |
12596 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12597 | #endif | |
12598 | } | |
12599 | return resultobj; | |
12600 | fail: | |
12601 | return NULL; | |
12602 | } | |
12603 | ||
12604 | ||
c32bde28 | 12605 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12606 | PyObject *resultobj; |
12607 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12608 | wxString *result; | |
12609 | PyObject * obj0 = 0 ; | |
12610 | char *kwnames[] = { | |
12611 | (char *) "self", NULL | |
12612 | }; | |
12613 | ||
12614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
12615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12617 | { | |
12618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12619 | { | |
12620 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
12621 | result = (wxString *) &_result_ref; | |
12622 | } | |
12623 | ||
12624 | wxPyEndAllowThreads(__tstate); | |
12625 | if (PyErr_Occurred()) SWIG_fail; | |
12626 | } | |
12627 | { | |
12628 | #if wxUSE_UNICODE | |
12629 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12630 | #else | |
12631 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12632 | #endif | |
12633 | } | |
12634 | return resultobj; | |
12635 | fail: | |
12636 | return NULL; | |
12637 | } | |
12638 | ||
12639 | ||
c32bde28 | 12640 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12641 | PyObject *resultobj; |
12642 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12643 | wxString *result; | |
12644 | PyObject * obj0 = 0 ; | |
12645 | char *kwnames[] = { | |
12646 | (char *) "self", NULL | |
12647 | }; | |
12648 | ||
12649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
12650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12652 | { | |
12653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12654 | { | |
12655 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
12656 | result = (wxString *) &_result_ref; | |
12657 | } | |
12658 | ||
12659 | wxPyEndAllowThreads(__tstate); | |
12660 | if (PyErr_Occurred()) SWIG_fail; | |
12661 | } | |
12662 | { | |
12663 | #if wxUSE_UNICODE | |
12664 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12665 | #else | |
12666 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12667 | #endif | |
12668 | } | |
12669 | return resultobj; | |
12670 | fail: | |
12671 | return NULL; | |
12672 | } | |
12673 | ||
12674 | ||
c32bde28 | 12675 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12676 | PyObject *resultobj; |
12677 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12678 | wxArrayString *result; | |
12679 | PyObject * obj0 = 0 ; | |
12680 | char *kwnames[] = { | |
12681 | (char *) "self", NULL | |
12682 | }; | |
12683 | ||
12684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
12685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12687 | { | |
12688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12689 | { | |
12690 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
12691 | result = (wxArrayString *) &_result_ref; | |
12692 | } | |
12693 | ||
12694 | wxPyEndAllowThreads(__tstate); | |
12695 | if (PyErr_Occurred()) SWIG_fail; | |
12696 | } | |
12697 | { | |
12698 | resultobj = wxArrayString2PyList_helper(*result); | |
12699 | } | |
12700 | return resultobj; | |
12701 | fail: | |
12702 | return NULL; | |
12703 | } | |
12704 | ||
12705 | ||
c32bde28 | 12706 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12707 | PyObject *resultobj; |
12708 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12709 | int result; | |
12710 | PyObject * obj0 = 0 ; | |
12711 | char *kwnames[] = { | |
12712 | (char *) "self", NULL | |
12713 | }; | |
12714 | ||
12715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
12716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12718 | { | |
12719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12720 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
12721 | ||
12722 | wxPyEndAllowThreads(__tstate); | |
12723 | if (PyErr_Occurred()) SWIG_fail; | |
12724 | } | |
c32bde28 | 12725 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12726 | return resultobj; |
12727 | fail: | |
12728 | return NULL; | |
12729 | } | |
12730 | ||
12731 | ||
c32bde28 | 12732 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12733 | PyObject *resultobj; |
12734 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12735 | wxString *result; | |
12736 | PyObject * obj0 = 0 ; | |
12737 | char *kwnames[] = { | |
12738 | (char *) "self", NULL | |
12739 | }; | |
12740 | ||
12741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
12742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12744 | { | |
12745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12746 | { | |
12747 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
12748 | result = (wxString *) &_result_ref; | |
12749 | } | |
12750 | ||
12751 | wxPyEndAllowThreads(__tstate); | |
12752 | if (PyErr_Occurred()) SWIG_fail; | |
12753 | } | |
12754 | { | |
12755 | #if wxUSE_UNICODE | |
12756 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12757 | #else | |
12758 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12759 | #endif | |
12760 | } | |
12761 | return resultobj; | |
12762 | fail: | |
12763 | return NULL; | |
12764 | } | |
12765 | ||
12766 | ||
c32bde28 | 12767 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12768 | PyObject *resultobj; |
12769 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12770 | int result; | |
12771 | PyObject * obj0 = 0 ; | |
12772 | char *kwnames[] = { | |
12773 | (char *) "self", NULL | |
12774 | }; | |
12775 | ||
12776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
12777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12779 | { | |
12780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12781 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
12782 | ||
12783 | wxPyEndAllowThreads(__tstate); | |
12784 | if (PyErr_Occurred()) SWIG_fail; | |
12785 | } | |
c32bde28 | 12786 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12787 | return resultobj; |
12788 | fail: | |
12789 | return NULL; | |
12790 | } | |
12791 | ||
12792 | ||
c32bde28 | 12793 | static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12794 | PyObject *obj; |
12795 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12796 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
12797 | Py_INCREF(obj); | |
12798 | return Py_BuildValue((char *)""); | |
12799 | } | |
c32bde28 | 12800 | static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12801 | PyObject *resultobj; |
12802 | wxFileTypeInfo *arg1 = 0 ; | |
12803 | wxFileType *result; | |
12804 | PyObject * obj0 = 0 ; | |
12805 | char *kwnames[] = { | |
12806 | (char *) "ftInfo", NULL | |
12807 | }; | |
12808 | ||
12809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
12810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12811 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12812 | SWIG_fail; | |
12813 | if (arg1 == NULL) { | |
12814 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12815 | SWIG_fail; | |
12816 | } | |
12817 | { | |
12818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12819 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
12820 | ||
12821 | wxPyEndAllowThreads(__tstate); | |
12822 | if (PyErr_Occurred()) SWIG_fail; | |
12823 | } | |
12824 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
12825 | return resultobj; | |
12826 | fail: | |
12827 | return NULL; | |
12828 | } | |
12829 | ||
12830 | ||
c32bde28 | 12831 | static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12832 | PyObject *resultobj; |
12833 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12834 | PyObject * obj0 = 0 ; | |
12835 | char *kwnames[] = { | |
12836 | (char *) "self", NULL | |
12837 | }; | |
12838 | ||
12839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
12840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12842 | { | |
12843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12844 | delete arg1; | |
12845 | ||
12846 | wxPyEndAllowThreads(__tstate); | |
12847 | if (PyErr_Occurred()) SWIG_fail; | |
12848 | } | |
12849 | Py_INCREF(Py_None); resultobj = Py_None; | |
12850 | return resultobj; | |
12851 | fail: | |
12852 | return NULL; | |
12853 | } | |
12854 | ||
12855 | ||
c32bde28 | 12856 | static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12857 | PyObject *resultobj; |
12858 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12859 | PyObject *result; | |
12860 | PyObject * obj0 = 0 ; | |
12861 | char *kwnames[] = { | |
12862 | (char *) "self", NULL | |
12863 | }; | |
12864 | ||
12865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
12866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12868 | { | |
12869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12870 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
12871 | ||
12872 | wxPyEndAllowThreads(__tstate); | |
12873 | if (PyErr_Occurred()) SWIG_fail; | |
12874 | } | |
12875 | resultobj = result; | |
12876 | return resultobj; | |
12877 | fail: | |
12878 | return NULL; | |
12879 | } | |
12880 | ||
12881 | ||
c32bde28 | 12882 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12883 | PyObject *resultobj; |
12884 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12885 | PyObject *result; | |
12886 | PyObject * obj0 = 0 ; | |
12887 | char *kwnames[] = { | |
12888 | (char *) "self", NULL | |
12889 | }; | |
12890 | ||
12891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
12892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12894 | { | |
12895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12896 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
12897 | ||
12898 | wxPyEndAllowThreads(__tstate); | |
12899 | if (PyErr_Occurred()) SWIG_fail; | |
12900 | } | |
12901 | resultobj = result; | |
12902 | return resultobj; | |
12903 | fail: | |
12904 | return NULL; | |
12905 | } | |
12906 | ||
12907 | ||
c32bde28 | 12908 | static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12909 | PyObject *resultobj; |
12910 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12911 | PyObject *result; | |
12912 | PyObject * obj0 = 0 ; | |
12913 | char *kwnames[] = { | |
12914 | (char *) "self", NULL | |
12915 | }; | |
12916 | ||
12917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
12918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12920 | { | |
12921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12922 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
12923 | ||
12924 | wxPyEndAllowThreads(__tstate); | |
12925 | if (PyErr_Occurred()) SWIG_fail; | |
12926 | } | |
12927 | resultobj = result; | |
12928 | return resultobj; | |
12929 | fail: | |
12930 | return NULL; | |
12931 | } | |
12932 | ||
12933 | ||
c32bde28 | 12934 | static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12935 | PyObject *resultobj; |
12936 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12937 | wxIcon *result; | |
12938 | PyObject * obj0 = 0 ; | |
12939 | char *kwnames[] = { | |
12940 | (char *) "self", NULL | |
12941 | }; | |
12942 | ||
12943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
12944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12946 | { | |
12947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12948 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
12949 | ||
12950 | wxPyEndAllowThreads(__tstate); | |
12951 | if (PyErr_Occurred()) SWIG_fail; | |
12952 | } | |
12953 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
12954 | return resultobj; | |
12955 | fail: | |
12956 | return NULL; | |
12957 | } | |
12958 | ||
12959 | ||
c32bde28 | 12960 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12961 | PyObject *resultobj; |
12962 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12963 | PyObject *result; | |
12964 | PyObject * obj0 = 0 ; | |
12965 | char *kwnames[] = { | |
12966 | (char *) "self", NULL | |
12967 | }; | |
12968 | ||
12969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
12970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12972 | { | |
12973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12974 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
12975 | ||
12976 | wxPyEndAllowThreads(__tstate); | |
12977 | if (PyErr_Occurred()) SWIG_fail; | |
12978 | } | |
12979 | resultobj = result; | |
12980 | return resultobj; | |
12981 | fail: | |
12982 | return NULL; | |
12983 | } | |
12984 | ||
12985 | ||
c32bde28 | 12986 | static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12987 | PyObject *resultobj; |
12988 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12989 | PyObject *result; | |
12990 | PyObject * obj0 = 0 ; | |
12991 | char *kwnames[] = { | |
12992 | (char *) "self", NULL | |
12993 | }; | |
12994 | ||
12995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
12996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12998 | { | |
12999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13000 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
13001 | ||
13002 | wxPyEndAllowThreads(__tstate); | |
13003 | if (PyErr_Occurred()) SWIG_fail; | |
13004 | } | |
13005 | resultobj = result; | |
13006 | return resultobj; | |
13007 | fail: | |
13008 | return NULL; | |
13009 | } | |
13010 | ||
13011 | ||
c32bde28 | 13012 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13013 | PyObject *resultobj; |
13014 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13015 | wxString *arg2 = 0 ; | |
13016 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13017 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13018 | PyObject *result; | |
ae8162c8 RD |
13019 | bool temp2 = false ; |
13020 | bool temp3 = false ; | |
d55e5bfc RD |
13021 | PyObject * obj0 = 0 ; |
13022 | PyObject * obj1 = 0 ; | |
13023 | PyObject * obj2 = 0 ; | |
13024 | char *kwnames[] = { | |
13025 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
13026 | }; | |
13027 | ||
13028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13031 | { | |
13032 | arg2 = wxString_in_helper(obj1); | |
13033 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13034 | temp2 = true; |
d55e5bfc RD |
13035 | } |
13036 | if (obj2) { | |
13037 | { | |
13038 | arg3 = wxString_in_helper(obj2); | |
13039 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13040 | temp3 = true; |
d55e5bfc RD |
13041 | } |
13042 | } | |
13043 | { | |
13044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13045 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13046 | ||
13047 | wxPyEndAllowThreads(__tstate); | |
13048 | if (PyErr_Occurred()) SWIG_fail; | |
13049 | } | |
13050 | resultobj = result; | |
13051 | { | |
13052 | if (temp2) | |
13053 | delete arg2; | |
13054 | } | |
13055 | { | |
13056 | if (temp3) | |
13057 | delete arg3; | |
13058 | } | |
13059 | return resultobj; | |
13060 | fail: | |
13061 | { | |
13062 | if (temp2) | |
13063 | delete arg2; | |
13064 | } | |
13065 | { | |
13066 | if (temp3) | |
13067 | delete arg3; | |
13068 | } | |
13069 | return NULL; | |
13070 | } | |
13071 | ||
13072 | ||
c32bde28 | 13073 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13074 | PyObject *resultobj; |
13075 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13076 | wxString *arg2 = 0 ; | |
13077 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13078 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13079 | PyObject *result; | |
ae8162c8 RD |
13080 | bool temp2 = false ; |
13081 | bool temp3 = false ; | |
d55e5bfc RD |
13082 | PyObject * obj0 = 0 ; |
13083 | PyObject * obj1 = 0 ; | |
13084 | PyObject * obj2 = 0 ; | |
13085 | char *kwnames[] = { | |
13086 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
13087 | }; | |
13088 | ||
13089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13092 | { | |
13093 | arg2 = wxString_in_helper(obj1); | |
13094 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13095 | temp2 = true; |
d55e5bfc RD |
13096 | } |
13097 | if (obj2) { | |
13098 | { | |
13099 | arg3 = wxString_in_helper(obj2); | |
13100 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13101 | temp3 = true; |
d55e5bfc RD |
13102 | } |
13103 | } | |
13104 | { | |
13105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13106 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13107 | ||
13108 | wxPyEndAllowThreads(__tstate); | |
13109 | if (PyErr_Occurred()) SWIG_fail; | |
13110 | } | |
13111 | resultobj = result; | |
13112 | { | |
13113 | if (temp2) | |
13114 | delete arg2; | |
13115 | } | |
13116 | { | |
13117 | if (temp3) | |
13118 | delete arg3; | |
13119 | } | |
13120 | return resultobj; | |
13121 | fail: | |
13122 | { | |
13123 | if (temp2) | |
13124 | delete arg2; | |
13125 | } | |
13126 | { | |
13127 | if (temp3) | |
13128 | delete arg3; | |
13129 | } | |
13130 | return NULL; | |
13131 | } | |
13132 | ||
13133 | ||
c32bde28 | 13134 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13135 | PyObject *resultobj; |
13136 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13137 | wxString *arg2 = 0 ; | |
13138 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13139 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13140 | PyObject *result; | |
ae8162c8 RD |
13141 | bool temp2 = false ; |
13142 | bool temp3 = false ; | |
d55e5bfc RD |
13143 | PyObject * obj0 = 0 ; |
13144 | PyObject * obj1 = 0 ; | |
13145 | PyObject * obj2 = 0 ; | |
13146 | char *kwnames[] = { | |
13147 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
13148 | }; | |
13149 | ||
13150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13153 | { | |
13154 | arg2 = wxString_in_helper(obj1); | |
13155 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13156 | temp2 = true; |
d55e5bfc RD |
13157 | } |
13158 | if (obj2) { | |
13159 | { | |
13160 | arg3 = wxString_in_helper(obj2); | |
13161 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13162 | temp3 = true; |
d55e5bfc RD |
13163 | } |
13164 | } | |
13165 | { | |
13166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13167 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13168 | ||
13169 | wxPyEndAllowThreads(__tstate); | |
13170 | if (PyErr_Occurred()) SWIG_fail; | |
13171 | } | |
13172 | resultobj = result; | |
13173 | { | |
13174 | if (temp2) | |
13175 | delete arg2; | |
13176 | } | |
13177 | { | |
13178 | if (temp3) | |
13179 | delete arg3; | |
13180 | } | |
13181 | return resultobj; | |
13182 | fail: | |
13183 | { | |
13184 | if (temp2) | |
13185 | delete arg2; | |
13186 | } | |
13187 | { | |
13188 | if (temp3) | |
13189 | delete arg3; | |
13190 | } | |
13191 | return NULL; | |
13192 | } | |
13193 | ||
13194 | ||
c32bde28 | 13195 | static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13196 | PyObject *resultobj; |
13197 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13198 | wxString *arg2 = 0 ; | |
13199 | wxString *arg3 = 0 ; | |
ae8162c8 | 13200 | bool arg4 = (bool) true ; |
d55e5bfc | 13201 | bool result; |
ae8162c8 RD |
13202 | bool temp2 = false ; |
13203 | bool temp3 = false ; | |
d55e5bfc RD |
13204 | PyObject * obj0 = 0 ; |
13205 | PyObject * obj1 = 0 ; | |
13206 | PyObject * obj2 = 0 ; | |
13207 | PyObject * obj3 = 0 ; | |
13208 | char *kwnames[] = { | |
13209 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
13210 | }; | |
13211 | ||
13212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13215 | { | |
13216 | arg2 = wxString_in_helper(obj1); | |
13217 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13218 | temp2 = true; |
d55e5bfc RD |
13219 | } |
13220 | { | |
13221 | arg3 = wxString_in_helper(obj2); | |
13222 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13223 | temp3 = true; |
d55e5bfc RD |
13224 | } |
13225 | if (obj3) { | |
c32bde28 | 13226 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
13227 | if (PyErr_Occurred()) SWIG_fail; |
13228 | } | |
13229 | { | |
13230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13231 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
13232 | ||
13233 | wxPyEndAllowThreads(__tstate); | |
13234 | if (PyErr_Occurred()) SWIG_fail; | |
13235 | } | |
13236 | { | |
13237 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13238 | } | |
13239 | { | |
13240 | if (temp2) | |
13241 | delete arg2; | |
13242 | } | |
13243 | { | |
13244 | if (temp3) | |
13245 | delete arg3; | |
13246 | } | |
13247 | return resultobj; | |
13248 | fail: | |
13249 | { | |
13250 | if (temp2) | |
13251 | delete arg2; | |
13252 | } | |
13253 | { | |
13254 | if (temp3) | |
13255 | delete arg3; | |
13256 | } | |
13257 | return NULL; | |
13258 | } | |
13259 | ||
13260 | ||
c32bde28 | 13261 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13262 | PyObject *resultobj; |
13263 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13264 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
13265 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13266 | int arg3 = (int) 0 ; | |
13267 | bool result; | |
ae8162c8 | 13268 | bool temp2 = false ; |
d55e5bfc RD |
13269 | PyObject * obj0 = 0 ; |
13270 | PyObject * obj1 = 0 ; | |
13271 | PyObject * obj2 = 0 ; | |
13272 | char *kwnames[] = { | |
13273 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
13274 | }; | |
13275 | ||
13276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13279 | if (obj1) { | |
13280 | { | |
13281 | arg2 = wxString_in_helper(obj1); | |
13282 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13283 | temp2 = true; |
d55e5bfc RD |
13284 | } |
13285 | } | |
13286 | if (obj2) { | |
c32bde28 | 13287 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13288 | if (PyErr_Occurred()) SWIG_fail; |
13289 | } | |
13290 | { | |
13291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13292 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
13293 | ||
13294 | wxPyEndAllowThreads(__tstate); | |
13295 | if (PyErr_Occurred()) SWIG_fail; | |
13296 | } | |
13297 | { | |
13298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13299 | } | |
13300 | { | |
13301 | if (temp2) | |
13302 | delete arg2; | |
13303 | } | |
13304 | return resultobj; | |
13305 | fail: | |
13306 | { | |
13307 | if (temp2) | |
13308 | delete arg2; | |
13309 | } | |
13310 | return NULL; | |
13311 | } | |
13312 | ||
13313 | ||
c32bde28 | 13314 | static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13315 | PyObject *resultobj; |
13316 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13317 | bool result; | |
13318 | PyObject * obj0 = 0 ; | |
13319 | char *kwnames[] = { | |
13320 | (char *) "self", NULL | |
13321 | }; | |
13322 | ||
13323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
13324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13326 | { | |
13327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13328 | result = (bool)(arg1)->Unassociate(); | |
13329 | ||
13330 | wxPyEndAllowThreads(__tstate); | |
13331 | if (PyErr_Occurred()) SWIG_fail; | |
13332 | } | |
13333 | { | |
13334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13335 | } | |
13336 | return resultobj; | |
13337 | fail: | |
13338 | return NULL; | |
13339 | } | |
13340 | ||
13341 | ||
c32bde28 | 13342 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13343 | PyObject *resultobj; |
13344 | wxString *arg1 = 0 ; | |
13345 | wxString *arg2 = 0 ; | |
13346 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13347 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13348 | wxString result; | |
ae8162c8 RD |
13349 | bool temp1 = false ; |
13350 | bool temp2 = false ; | |
13351 | bool temp3 = false ; | |
d55e5bfc RD |
13352 | PyObject * obj0 = 0 ; |
13353 | PyObject * obj1 = 0 ; | |
13354 | PyObject * obj2 = 0 ; | |
13355 | char *kwnames[] = { | |
13356 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
13357 | }; | |
13358 | ||
13359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13360 | { | |
13361 | arg1 = wxString_in_helper(obj0); | |
13362 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 13363 | temp1 = true; |
d55e5bfc RD |
13364 | } |
13365 | { | |
13366 | arg2 = wxString_in_helper(obj1); | |
13367 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13368 | temp2 = true; |
d55e5bfc RD |
13369 | } |
13370 | if (obj2) { | |
13371 | { | |
13372 | arg3 = wxString_in_helper(obj2); | |
13373 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13374 | temp3 = true; |
d55e5bfc RD |
13375 | } |
13376 | } | |
13377 | { | |
13378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13379 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13380 | ||
13381 | wxPyEndAllowThreads(__tstate); | |
13382 | if (PyErr_Occurred()) SWIG_fail; | |
13383 | } | |
13384 | { | |
13385 | #if wxUSE_UNICODE | |
13386 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13387 | #else | |
13388 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13389 | #endif | |
13390 | } | |
13391 | { | |
13392 | if (temp1) | |
13393 | delete arg1; | |
13394 | } | |
13395 | { | |
13396 | if (temp2) | |
13397 | delete arg2; | |
13398 | } | |
13399 | { | |
13400 | if (temp3) | |
13401 | delete arg3; | |
13402 | } | |
13403 | return resultobj; | |
13404 | fail: | |
13405 | { | |
13406 | if (temp1) | |
13407 | delete arg1; | |
13408 | } | |
13409 | { | |
13410 | if (temp2) | |
13411 | delete arg2; | |
13412 | } | |
13413 | { | |
13414 | if (temp3) | |
13415 | delete arg3; | |
13416 | } | |
13417 | return NULL; | |
13418 | } | |
13419 | ||
13420 | ||
c32bde28 | 13421 | static PyObject * FileType_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13422 | PyObject *obj; |
13423 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13424 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
13425 | Py_INCREF(obj); | |
13426 | return Py_BuildValue((char *)""); | |
13427 | } | |
c32bde28 | 13428 | static int _wrap_TheMimeTypesManager_set(PyObject *) { |
d55e5bfc RD |
13429 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); |
13430 | return 1; | |
13431 | } | |
13432 | ||
13433 | ||
13434 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
13435 | PyObject *pyobj; | |
13436 | ||
13437 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); | |
13438 | return pyobj; | |
13439 | } | |
13440 | ||
13441 | ||
c32bde28 | 13442 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13443 | PyObject *resultobj; |
13444 | wxString *arg1 = 0 ; | |
13445 | wxString *arg2 = 0 ; | |
13446 | bool result; | |
ae8162c8 RD |
13447 | bool temp1 = false ; |
13448 | bool temp2 = false ; | |
d55e5bfc RD |
13449 | PyObject * obj0 = 0 ; |
13450 | PyObject * obj1 = 0 ; | |
13451 | char *kwnames[] = { | |
13452 | (char *) "mimeType",(char *) "wildcard", NULL | |
13453 | }; | |
13454 | ||
13455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
13456 | { | |
13457 | arg1 = wxString_in_helper(obj0); | |
13458 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 13459 | temp1 = true; |
d55e5bfc RD |
13460 | } |
13461 | { | |
13462 | arg2 = wxString_in_helper(obj1); | |
13463 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13464 | temp2 = true; |
d55e5bfc RD |
13465 | } |
13466 | { | |
13467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13468 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
13469 | ||
13470 | wxPyEndAllowThreads(__tstate); | |
13471 | if (PyErr_Occurred()) SWIG_fail; | |
13472 | } | |
13473 | { | |
13474 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13475 | } | |
13476 | { | |
13477 | if (temp1) | |
13478 | delete arg1; | |
13479 | } | |
13480 | { | |
13481 | if (temp2) | |
13482 | delete arg2; | |
13483 | } | |
13484 | return resultobj; | |
13485 | fail: | |
13486 | { | |
13487 | if (temp1) | |
13488 | delete arg1; | |
13489 | } | |
13490 | { | |
13491 | if (temp2) | |
13492 | delete arg2; | |
13493 | } | |
13494 | return NULL; | |
13495 | } | |
13496 | ||
13497 | ||
c32bde28 | 13498 | static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13499 | PyObject *resultobj; |
13500 | wxMimeTypesManager *result; | |
13501 | char *kwnames[] = { | |
13502 | NULL | |
13503 | }; | |
13504 | ||
13505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
13506 | { | |
13507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13508 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
13509 | ||
13510 | wxPyEndAllowThreads(__tstate); | |
13511 | if (PyErr_Occurred()) SWIG_fail; | |
13512 | } | |
13513 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); | |
13514 | return resultobj; | |
13515 | fail: | |
13516 | return NULL; | |
13517 | } | |
13518 | ||
13519 | ||
c32bde28 | 13520 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13521 | PyObject *resultobj; |
13522 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13523 | int arg2 = (int) wxMAILCAP_ALL ; | |
13524 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13525 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
ae8162c8 | 13526 | bool temp3 = false ; |
d55e5bfc RD |
13527 | PyObject * obj0 = 0 ; |
13528 | PyObject * obj1 = 0 ; | |
13529 | PyObject * obj2 = 0 ; | |
13530 | char *kwnames[] = { | |
13531 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
13532 | }; | |
13533 | ||
13534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13537 | if (obj1) { | |
c32bde28 | 13538 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13539 | if (PyErr_Occurred()) SWIG_fail; |
13540 | } | |
13541 | if (obj2) { | |
13542 | { | |
13543 | arg3 = wxString_in_helper(obj2); | |
13544 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13545 | temp3 = true; |
d55e5bfc RD |
13546 | } |
13547 | } | |
13548 | { | |
13549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13550 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
13551 | ||
13552 | wxPyEndAllowThreads(__tstate); | |
13553 | if (PyErr_Occurred()) SWIG_fail; | |
13554 | } | |
13555 | Py_INCREF(Py_None); resultobj = Py_None; | |
13556 | { | |
13557 | if (temp3) | |
13558 | delete arg3; | |
13559 | } | |
13560 | return resultobj; | |
13561 | fail: | |
13562 | { | |
13563 | if (temp3) | |
13564 | delete arg3; | |
13565 | } | |
13566 | return NULL; | |
13567 | } | |
13568 | ||
13569 | ||
c32bde28 | 13570 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13571 | PyObject *resultobj; |
13572 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13573 | PyObject * obj0 = 0 ; | |
13574 | char *kwnames[] = { | |
13575 | (char *) "self", NULL | |
13576 | }; | |
13577 | ||
13578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
13579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13581 | { | |
13582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13583 | (arg1)->ClearData(); | |
13584 | ||
13585 | wxPyEndAllowThreads(__tstate); | |
13586 | if (PyErr_Occurred()) SWIG_fail; | |
13587 | } | |
13588 | Py_INCREF(Py_None); resultobj = Py_None; | |
13589 | return resultobj; | |
13590 | fail: | |
13591 | return NULL; | |
13592 | } | |
13593 | ||
13594 | ||
c32bde28 | 13595 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13596 | PyObject *resultobj; |
13597 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13598 | wxString *arg2 = 0 ; | |
13599 | wxFileType *result; | |
ae8162c8 | 13600 | bool temp2 = false ; |
d55e5bfc RD |
13601 | PyObject * obj0 = 0 ; |
13602 | PyObject * obj1 = 0 ; | |
13603 | char *kwnames[] = { | |
13604 | (char *) "self",(char *) "ext", NULL | |
13605 | }; | |
13606 | ||
13607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
13608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13610 | { | |
13611 | arg2 = wxString_in_helper(obj1); | |
13612 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13613 | temp2 = true; |
d55e5bfc RD |
13614 | } |
13615 | { | |
13616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13617 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
13618 | ||
13619 | wxPyEndAllowThreads(__tstate); | |
13620 | if (PyErr_Occurred()) SWIG_fail; | |
13621 | } | |
13622 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13623 | { | |
13624 | if (temp2) | |
13625 | delete arg2; | |
13626 | } | |
13627 | return resultobj; | |
13628 | fail: | |
13629 | { | |
13630 | if (temp2) | |
13631 | delete arg2; | |
13632 | } | |
13633 | return NULL; | |
13634 | } | |
13635 | ||
13636 | ||
c32bde28 | 13637 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13638 | PyObject *resultobj; |
13639 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13640 | wxString *arg2 = 0 ; | |
13641 | wxFileType *result; | |
ae8162c8 | 13642 | bool temp2 = false ; |
d55e5bfc RD |
13643 | PyObject * obj0 = 0 ; |
13644 | PyObject * obj1 = 0 ; | |
13645 | char *kwnames[] = { | |
13646 | (char *) "self",(char *) "mimeType", NULL | |
13647 | }; | |
13648 | ||
13649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
13650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13652 | { | |
13653 | arg2 = wxString_in_helper(obj1); | |
13654 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13655 | temp2 = true; |
d55e5bfc RD |
13656 | } |
13657 | { | |
13658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13659 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
13660 | ||
13661 | wxPyEndAllowThreads(__tstate); | |
13662 | if (PyErr_Occurred()) SWIG_fail; | |
13663 | } | |
13664 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13665 | { | |
13666 | if (temp2) | |
13667 | delete arg2; | |
13668 | } | |
13669 | return resultobj; | |
13670 | fail: | |
13671 | { | |
13672 | if (temp2) | |
13673 | delete arg2; | |
13674 | } | |
13675 | return NULL; | |
13676 | } | |
13677 | ||
13678 | ||
c32bde28 | 13679 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13680 | PyObject *resultobj; |
13681 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13682 | wxString *arg2 = 0 ; | |
ae8162c8 | 13683 | bool arg3 = (bool) false ; |
d55e5bfc | 13684 | bool result; |
ae8162c8 | 13685 | bool temp2 = false ; |
d55e5bfc RD |
13686 | PyObject * obj0 = 0 ; |
13687 | PyObject * obj1 = 0 ; | |
13688 | PyObject * obj2 = 0 ; | |
13689 | char *kwnames[] = { | |
13690 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
13691 | }; | |
13692 | ||
13693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13696 | { | |
13697 | arg2 = wxString_in_helper(obj1); | |
13698 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13699 | temp2 = true; |
d55e5bfc RD |
13700 | } |
13701 | if (obj2) { | |
c32bde28 | 13702 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
13703 | if (PyErr_Occurred()) SWIG_fail; |
13704 | } | |
13705 | { | |
13706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13707 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
13708 | ||
13709 | wxPyEndAllowThreads(__tstate); | |
13710 | if (PyErr_Occurred()) SWIG_fail; | |
13711 | } | |
13712 | { | |
13713 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13714 | } | |
13715 | { | |
13716 | if (temp2) | |
13717 | delete arg2; | |
13718 | } | |
13719 | return resultobj; | |
13720 | fail: | |
13721 | { | |
13722 | if (temp2) | |
13723 | delete arg2; | |
13724 | } | |
13725 | return NULL; | |
13726 | } | |
13727 | ||
13728 | ||
c32bde28 | 13729 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13730 | PyObject *resultobj; |
13731 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13732 | wxString *arg2 = 0 ; | |
13733 | bool result; | |
ae8162c8 | 13734 | bool temp2 = false ; |
d55e5bfc RD |
13735 | PyObject * obj0 = 0 ; |
13736 | PyObject * obj1 = 0 ; | |
13737 | char *kwnames[] = { | |
13738 | (char *) "self",(char *) "filename", NULL | |
13739 | }; | |
13740 | ||
13741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
13742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13744 | { | |
13745 | arg2 = wxString_in_helper(obj1); | |
13746 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13747 | temp2 = true; |
d55e5bfc RD |
13748 | } |
13749 | { | |
13750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13751 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
13752 | ||
13753 | wxPyEndAllowThreads(__tstate); | |
13754 | if (PyErr_Occurred()) SWIG_fail; | |
13755 | } | |
13756 | { | |
13757 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13758 | } | |
13759 | { | |
13760 | if (temp2) | |
13761 | delete arg2; | |
13762 | } | |
13763 | return resultobj; | |
13764 | fail: | |
13765 | { | |
13766 | if (temp2) | |
13767 | delete arg2; | |
13768 | } | |
13769 | return NULL; | |
13770 | } | |
13771 | ||
13772 | ||
c32bde28 | 13773 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13774 | PyObject *resultobj; |
13775 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13776 | PyObject *result; | |
13777 | PyObject * obj0 = 0 ; | |
13778 | char *kwnames[] = { | |
13779 | (char *) "self", NULL | |
13780 | }; | |
13781 | ||
13782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
13783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13785 | { | |
13786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13787 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
13788 | ||
13789 | wxPyEndAllowThreads(__tstate); | |
13790 | if (PyErr_Occurred()) SWIG_fail; | |
13791 | } | |
13792 | resultobj = result; | |
13793 | return resultobj; | |
13794 | fail: | |
13795 | return NULL; | |
13796 | } | |
13797 | ||
13798 | ||
c32bde28 | 13799 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13800 | PyObject *resultobj; |
13801 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13802 | wxFileTypeInfo *arg2 = 0 ; | |
13803 | PyObject * obj0 = 0 ; | |
13804 | PyObject * obj1 = 0 ; | |
13805 | char *kwnames[] = { | |
13806 | (char *) "self",(char *) "ft", NULL | |
13807 | }; | |
13808 | ||
13809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
13810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13812 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13813 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13814 | SWIG_fail; | |
13815 | if (arg2 == NULL) { | |
13816 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13817 | SWIG_fail; | |
13818 | } | |
13819 | { | |
13820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13821 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
13822 | ||
13823 | wxPyEndAllowThreads(__tstate); | |
13824 | if (PyErr_Occurred()) SWIG_fail; | |
13825 | } | |
13826 | Py_INCREF(Py_None); resultobj = Py_None; | |
13827 | return resultobj; | |
13828 | fail: | |
13829 | return NULL; | |
13830 | } | |
13831 | ||
13832 | ||
c32bde28 | 13833 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13834 | PyObject *resultobj; |
13835 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13836 | wxFileTypeInfo *arg2 = 0 ; | |
13837 | wxFileType *result; | |
13838 | PyObject * obj0 = 0 ; | |
13839 | PyObject * obj1 = 0 ; | |
13840 | char *kwnames[] = { | |
13841 | (char *) "self",(char *) "ftInfo", NULL | |
13842 | }; | |
13843 | ||
13844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
13845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13847 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13848 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13849 | SWIG_fail; | |
13850 | if (arg2 == NULL) { | |
13851 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13852 | SWIG_fail; | |
13853 | } | |
13854 | { | |
13855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13856 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
13857 | ||
13858 | wxPyEndAllowThreads(__tstate); | |
13859 | if (PyErr_Occurred()) SWIG_fail; | |
13860 | } | |
13861 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13862 | return resultobj; | |
13863 | fail: | |
13864 | return NULL; | |
13865 | } | |
13866 | ||
13867 | ||
c32bde28 | 13868 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13869 | PyObject *resultobj; |
13870 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13871 | wxFileType *arg2 = (wxFileType *) 0 ; | |
13872 | bool result; | |
13873 | PyObject * obj0 = 0 ; | |
13874 | PyObject * obj1 = 0 ; | |
13875 | char *kwnames[] = { | |
13876 | (char *) "self",(char *) "ft", NULL | |
13877 | }; | |
13878 | ||
13879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
13880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13882 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType, | |
13883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13884 | { | |
13885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13886 | result = (bool)(arg1)->Unassociate(arg2); | |
13887 | ||
13888 | wxPyEndAllowThreads(__tstate); | |
13889 | if (PyErr_Occurred()) SWIG_fail; | |
13890 | } | |
13891 | { | |
13892 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13893 | } | |
13894 | return resultobj; | |
13895 | fail: | |
13896 | return NULL; | |
13897 | } | |
13898 | ||
13899 | ||
c32bde28 | 13900 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13901 | PyObject *resultobj; |
13902 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13903 | PyObject * obj0 = 0 ; | |
13904 | char *kwnames[] = { | |
13905 | (char *) "self", NULL | |
13906 | }; | |
13907 | ||
13908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
13909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13911 | { | |
13912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13913 | delete arg1; | |
13914 | ||
13915 | wxPyEndAllowThreads(__tstate); | |
13916 | if (PyErr_Occurred()) SWIG_fail; | |
13917 | } | |
13918 | Py_INCREF(Py_None); resultobj = Py_None; | |
13919 | return resultobj; | |
13920 | fail: | |
13921 | return NULL; | |
13922 | } | |
13923 | ||
13924 | ||
c32bde28 | 13925 | static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13926 | PyObject *obj; |
13927 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13928 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
13929 | Py_INCREF(obj); | |
13930 | return Py_BuildValue((char *)""); | |
13931 | } | |
c32bde28 | 13932 | static int _wrap_ART_TOOLBAR_set(PyObject *) { |
d55e5bfc RD |
13933 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); |
13934 | return 1; | |
13935 | } | |
13936 | ||
13937 | ||
13938 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
13939 | PyObject *pyobj; | |
13940 | ||
13941 | { | |
13942 | #if wxUSE_UNICODE | |
13943 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13944 | #else | |
13945 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13946 | #endif | |
13947 | } | |
13948 | return pyobj; | |
13949 | } | |
13950 | ||
13951 | ||
c32bde28 | 13952 | static int _wrap_ART_MENU_set(PyObject *) { |
d55e5bfc RD |
13953 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); |
13954 | return 1; | |
13955 | } | |
13956 | ||
13957 | ||
13958 | static PyObject *_wrap_ART_MENU_get() { | |
13959 | PyObject *pyobj; | |
13960 | ||
13961 | { | |
13962 | #if wxUSE_UNICODE | |
13963 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13964 | #else | |
13965 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13966 | #endif | |
13967 | } | |
13968 | return pyobj; | |
13969 | } | |
13970 | ||
13971 | ||
c32bde28 | 13972 | static int _wrap_ART_FRAME_ICON_set(PyObject *) { |
d55e5bfc RD |
13973 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); |
13974 | return 1; | |
13975 | } | |
13976 | ||
13977 | ||
13978 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
13979 | PyObject *pyobj; | |
13980 | ||
13981 | { | |
13982 | #if wxUSE_UNICODE | |
13983 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13984 | #else | |
13985 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13986 | #endif | |
13987 | } | |
13988 | return pyobj; | |
13989 | } | |
13990 | ||
13991 | ||
c32bde28 | 13992 | static int _wrap_ART_CMN_DIALOG_set(PyObject *) { |
d55e5bfc RD |
13993 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); |
13994 | return 1; | |
13995 | } | |
13996 | ||
13997 | ||
13998 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
13999 | PyObject *pyobj; | |
14000 | ||
14001 | { | |
14002 | #if wxUSE_UNICODE | |
14003 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
14004 | #else | |
14005 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
14006 | #endif | |
14007 | } | |
14008 | return pyobj; | |
14009 | } | |
14010 | ||
14011 | ||
c32bde28 | 14012 | static int _wrap_ART_HELP_BROWSER_set(PyObject *) { |
d55e5bfc RD |
14013 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); |
14014 | return 1; | |
14015 | } | |
14016 | ||
14017 | ||
14018 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
14019 | PyObject *pyobj; | |
14020 | ||
14021 | { | |
14022 | #if wxUSE_UNICODE | |
14023 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
14024 | #else | |
14025 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
14026 | #endif | |
14027 | } | |
14028 | return pyobj; | |
14029 | } | |
14030 | ||
14031 | ||
c32bde28 | 14032 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *) { |
d55e5bfc RD |
14033 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); |
14034 | return 1; | |
14035 | } | |
14036 | ||
14037 | ||
14038 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
14039 | PyObject *pyobj; | |
14040 | ||
14041 | { | |
14042 | #if wxUSE_UNICODE | |
14043 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
14044 | #else | |
14045 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
14046 | #endif | |
14047 | } | |
14048 | return pyobj; | |
14049 | } | |
14050 | ||
14051 | ||
c32bde28 | 14052 | static int _wrap_ART_BUTTON_set(PyObject *) { |
4cf4100f RD |
14053 | PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only."); |
14054 | return 1; | |
14055 | } | |
14056 | ||
14057 | ||
14058 | static PyObject *_wrap_ART_BUTTON_get() { | |
14059 | PyObject *pyobj; | |
14060 | ||
14061 | { | |
14062 | #if wxUSE_UNICODE | |
14063 | pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
14064 | #else | |
14065 | pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
14066 | #endif | |
14067 | } | |
14068 | return pyobj; | |
14069 | } | |
14070 | ||
14071 | ||
c32bde28 | 14072 | static int _wrap_ART_OTHER_set(PyObject *) { |
d55e5bfc RD |
14073 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); |
14074 | return 1; | |
14075 | } | |
14076 | ||
14077 | ||
14078 | static PyObject *_wrap_ART_OTHER_get() { | |
14079 | PyObject *pyobj; | |
14080 | ||
14081 | { | |
14082 | #if wxUSE_UNICODE | |
14083 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
14084 | #else | |
14085 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
14086 | #endif | |
14087 | } | |
14088 | return pyobj; | |
14089 | } | |
14090 | ||
14091 | ||
c32bde28 | 14092 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) { |
d55e5bfc RD |
14093 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); |
14094 | return 1; | |
14095 | } | |
14096 | ||
14097 | ||
14098 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
14099 | PyObject *pyobj; | |
14100 | ||
14101 | { | |
14102 | #if wxUSE_UNICODE | |
14103 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
14104 | #else | |
14105 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
14106 | #endif | |
14107 | } | |
14108 | return pyobj; | |
14109 | } | |
14110 | ||
14111 | ||
c32bde28 | 14112 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) { |
d55e5bfc RD |
14113 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); |
14114 | return 1; | |
14115 | } | |
14116 | ||
14117 | ||
14118 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
14119 | PyObject *pyobj; | |
14120 | ||
14121 | { | |
14122 | #if wxUSE_UNICODE | |
14123 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
14124 | #else | |
14125 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
14126 | #endif | |
14127 | } | |
14128 | return pyobj; | |
14129 | } | |
14130 | ||
14131 | ||
c32bde28 | 14132 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) { |
d55e5bfc RD |
14133 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); |
14134 | return 1; | |
14135 | } | |
14136 | ||
14137 | ||
14138 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
14139 | PyObject *pyobj; | |
14140 | ||
14141 | { | |
14142 | #if wxUSE_UNICODE | |
14143 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
14144 | #else | |
14145 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
14146 | #endif | |
14147 | } | |
14148 | return pyobj; | |
14149 | } | |
14150 | ||
14151 | ||
c32bde28 | 14152 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *) { |
d55e5bfc RD |
14153 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); |
14154 | return 1; | |
14155 | } | |
14156 | ||
14157 | ||
14158 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
14159 | PyObject *pyobj; | |
14160 | ||
14161 | { | |
14162 | #if wxUSE_UNICODE | |
14163 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
14164 | #else | |
14165 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
14166 | #endif | |
14167 | } | |
14168 | return pyobj; | |
14169 | } | |
14170 | ||
14171 | ||
c32bde28 | 14172 | static int _wrap_ART_HELP_BOOK_set(PyObject *) { |
d55e5bfc RD |
14173 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); |
14174 | return 1; | |
14175 | } | |
14176 | ||
14177 | ||
14178 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
14179 | PyObject *pyobj; | |
14180 | ||
14181 | { | |
14182 | #if wxUSE_UNICODE | |
14183 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
14184 | #else | |
14185 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
14186 | #endif | |
14187 | } | |
14188 | return pyobj; | |
14189 | } | |
14190 | ||
14191 | ||
c32bde28 | 14192 | static int _wrap_ART_HELP_FOLDER_set(PyObject *) { |
d55e5bfc RD |
14193 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); |
14194 | return 1; | |
14195 | } | |
14196 | ||
14197 | ||
14198 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
14199 | PyObject *pyobj; | |
14200 | ||
14201 | { | |
14202 | #if wxUSE_UNICODE | |
14203 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
14204 | #else | |
14205 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
14206 | #endif | |
14207 | } | |
14208 | return pyobj; | |
14209 | } | |
14210 | ||
14211 | ||
c32bde28 | 14212 | static int _wrap_ART_HELP_PAGE_set(PyObject *) { |
d55e5bfc RD |
14213 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); |
14214 | return 1; | |
14215 | } | |
14216 | ||
14217 | ||
14218 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
14219 | PyObject *pyobj; | |
14220 | ||
14221 | { | |
14222 | #if wxUSE_UNICODE | |
14223 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
14224 | #else | |
14225 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
14226 | #endif | |
14227 | } | |
14228 | return pyobj; | |
14229 | } | |
14230 | ||
14231 | ||
c32bde28 | 14232 | static int _wrap_ART_GO_BACK_set(PyObject *) { |
d55e5bfc RD |
14233 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); |
14234 | return 1; | |
14235 | } | |
14236 | ||
14237 | ||
14238 | static PyObject *_wrap_ART_GO_BACK_get() { | |
14239 | PyObject *pyobj; | |
14240 | ||
14241 | { | |
14242 | #if wxUSE_UNICODE | |
14243 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
14244 | #else | |
14245 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
14246 | #endif | |
14247 | } | |
14248 | return pyobj; | |
14249 | } | |
14250 | ||
14251 | ||
c32bde28 | 14252 | static int _wrap_ART_GO_FORWARD_set(PyObject *) { |
d55e5bfc RD |
14253 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); |
14254 | return 1; | |
14255 | } | |
14256 | ||
14257 | ||
14258 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
14259 | PyObject *pyobj; | |
14260 | ||
14261 | { | |
14262 | #if wxUSE_UNICODE | |
14263 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
14264 | #else | |
14265 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
14266 | #endif | |
14267 | } | |
14268 | return pyobj; | |
14269 | } | |
14270 | ||
14271 | ||
c32bde28 | 14272 | static int _wrap_ART_GO_UP_set(PyObject *) { |
d55e5bfc RD |
14273 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); |
14274 | return 1; | |
14275 | } | |
14276 | ||
14277 | ||
14278 | static PyObject *_wrap_ART_GO_UP_get() { | |
14279 | PyObject *pyobj; | |
14280 | ||
14281 | { | |
14282 | #if wxUSE_UNICODE | |
14283 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
14284 | #else | |
14285 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
14286 | #endif | |
14287 | } | |
14288 | return pyobj; | |
14289 | } | |
14290 | ||
14291 | ||
c32bde28 | 14292 | static int _wrap_ART_GO_DOWN_set(PyObject *) { |
d55e5bfc RD |
14293 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); |
14294 | return 1; | |
14295 | } | |
14296 | ||
14297 | ||
14298 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
14299 | PyObject *pyobj; | |
14300 | ||
14301 | { | |
14302 | #if wxUSE_UNICODE | |
14303 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
14304 | #else | |
14305 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
14306 | #endif | |
14307 | } | |
14308 | return pyobj; | |
14309 | } | |
14310 | ||
14311 | ||
c32bde28 | 14312 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *) { |
d55e5bfc RD |
14313 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); |
14314 | return 1; | |
14315 | } | |
14316 | ||
14317 | ||
14318 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
14319 | PyObject *pyobj; | |
14320 | ||
14321 | { | |
14322 | #if wxUSE_UNICODE | |
14323 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
14324 | #else | |
14325 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
14326 | #endif | |
14327 | } | |
14328 | return pyobj; | |
14329 | } | |
14330 | ||
14331 | ||
c32bde28 | 14332 | static int _wrap_ART_GO_HOME_set(PyObject *) { |
d55e5bfc RD |
14333 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); |
14334 | return 1; | |
14335 | } | |
14336 | ||
14337 | ||
14338 | static PyObject *_wrap_ART_GO_HOME_get() { | |
14339 | PyObject *pyobj; | |
14340 | ||
14341 | { | |
14342 | #if wxUSE_UNICODE | |
14343 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
14344 | #else | |
14345 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
14346 | #endif | |
14347 | } | |
14348 | return pyobj; | |
14349 | } | |
14350 | ||
14351 | ||
c32bde28 | 14352 | static int _wrap_ART_FILE_OPEN_set(PyObject *) { |
d55e5bfc RD |
14353 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); |
14354 | return 1; | |
14355 | } | |
14356 | ||
14357 | ||
14358 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
14359 | PyObject *pyobj; | |
14360 | ||
14361 | { | |
14362 | #if wxUSE_UNICODE | |
14363 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
14364 | #else | |
14365 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
14366 | #endif | |
14367 | } | |
14368 | return pyobj; | |
14369 | } | |
14370 | ||
14371 | ||
c32bde28 | 14372 | static int _wrap_ART_PRINT_set(PyObject *) { |
d55e5bfc RD |
14373 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); |
14374 | return 1; | |
14375 | } | |
14376 | ||
14377 | ||
14378 | static PyObject *_wrap_ART_PRINT_get() { | |
14379 | PyObject *pyobj; | |
14380 | ||
14381 | { | |
14382 | #if wxUSE_UNICODE | |
14383 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
14384 | #else | |
14385 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
14386 | #endif | |
14387 | } | |
14388 | return pyobj; | |
14389 | } | |
14390 | ||
14391 | ||
c32bde28 | 14392 | static int _wrap_ART_HELP_set(PyObject *) { |
d55e5bfc RD |
14393 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); |
14394 | return 1; | |
14395 | } | |
14396 | ||
14397 | ||
14398 | static PyObject *_wrap_ART_HELP_get() { | |
14399 | PyObject *pyobj; | |
14400 | ||
14401 | { | |
14402 | #if wxUSE_UNICODE | |
14403 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14404 | #else | |
14405 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14406 | #endif | |
14407 | } | |
14408 | return pyobj; | |
14409 | } | |
14410 | ||
14411 | ||
c32bde28 | 14412 | static int _wrap_ART_TIP_set(PyObject *) { |
d55e5bfc RD |
14413 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); |
14414 | return 1; | |
14415 | } | |
14416 | ||
14417 | ||
14418 | static PyObject *_wrap_ART_TIP_get() { | |
14419 | PyObject *pyobj; | |
14420 | ||
14421 | { | |
14422 | #if wxUSE_UNICODE | |
14423 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14424 | #else | |
14425 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14426 | #endif | |
14427 | } | |
14428 | return pyobj; | |
14429 | } | |
14430 | ||
14431 | ||
c32bde28 | 14432 | static int _wrap_ART_REPORT_VIEW_set(PyObject *) { |
d55e5bfc RD |
14433 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); |
14434 | return 1; | |
14435 | } | |
14436 | ||
14437 | ||
14438 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
14439 | PyObject *pyobj; | |
14440 | ||
14441 | { | |
14442 | #if wxUSE_UNICODE | |
14443 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14444 | #else | |
14445 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14446 | #endif | |
14447 | } | |
14448 | return pyobj; | |
14449 | } | |
14450 | ||
14451 | ||
c32bde28 | 14452 | static int _wrap_ART_LIST_VIEW_set(PyObject *) { |
d55e5bfc RD |
14453 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); |
14454 | return 1; | |
14455 | } | |
14456 | ||
14457 | ||
14458 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
14459 | PyObject *pyobj; | |
14460 | ||
14461 | { | |
14462 | #if wxUSE_UNICODE | |
14463 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14464 | #else | |
14465 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14466 | #endif | |
14467 | } | |
14468 | return pyobj; | |
14469 | } | |
14470 | ||
14471 | ||
c32bde28 | 14472 | static int _wrap_ART_NEW_DIR_set(PyObject *) { |
d55e5bfc RD |
14473 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); |
14474 | return 1; | |
14475 | } | |
14476 | ||
14477 | ||
14478 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
14479 | PyObject *pyobj; | |
14480 | ||
14481 | { | |
14482 | #if wxUSE_UNICODE | |
14483 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14484 | #else | |
14485 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14486 | #endif | |
14487 | } | |
14488 | return pyobj; | |
14489 | } | |
14490 | ||
14491 | ||
c32bde28 | 14492 | static int _wrap_ART_FOLDER_set(PyObject *) { |
d55e5bfc RD |
14493 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); |
14494 | return 1; | |
14495 | } | |
14496 | ||
14497 | ||
14498 | static PyObject *_wrap_ART_FOLDER_get() { | |
14499 | PyObject *pyobj; | |
14500 | ||
14501 | { | |
14502 | #if wxUSE_UNICODE | |
14503 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14504 | #else | |
14505 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14506 | #endif | |
14507 | } | |
14508 | return pyobj; | |
14509 | } | |
14510 | ||
14511 | ||
c32bde28 | 14512 | static int _wrap_ART_GO_DIR_UP_set(PyObject *) { |
d55e5bfc RD |
14513 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); |
14514 | return 1; | |
14515 | } | |
14516 | ||
14517 | ||
14518 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
14519 | PyObject *pyobj; | |
14520 | ||
14521 | { | |
14522 | #if wxUSE_UNICODE | |
14523 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14524 | #else | |
14525 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14526 | #endif | |
14527 | } | |
14528 | return pyobj; | |
14529 | } | |
14530 | ||
14531 | ||
c32bde28 | 14532 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) { |
d55e5bfc RD |
14533 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); |
14534 | return 1; | |
14535 | } | |
14536 | ||
14537 | ||
14538 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
14539 | PyObject *pyobj; | |
14540 | ||
14541 | { | |
14542 | #if wxUSE_UNICODE | |
14543 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14544 | #else | |
14545 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14546 | #endif | |
14547 | } | |
14548 | return pyobj; | |
14549 | } | |
14550 | ||
14551 | ||
c32bde28 | 14552 | static int _wrap_ART_NORMAL_FILE_set(PyObject *) { |
d55e5bfc RD |
14553 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); |
14554 | return 1; | |
14555 | } | |
14556 | ||
14557 | ||
14558 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
14559 | PyObject *pyobj; | |
14560 | ||
14561 | { | |
14562 | #if wxUSE_UNICODE | |
14563 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14564 | #else | |
14565 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14566 | #endif | |
14567 | } | |
14568 | return pyobj; | |
14569 | } | |
14570 | ||
14571 | ||
c32bde28 | 14572 | static int _wrap_ART_TICK_MARK_set(PyObject *) { |
d55e5bfc RD |
14573 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); |
14574 | return 1; | |
14575 | } | |
14576 | ||
14577 | ||
14578 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
14579 | PyObject *pyobj; | |
14580 | ||
14581 | { | |
14582 | #if wxUSE_UNICODE | |
14583 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14584 | #else | |
14585 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14586 | #endif | |
14587 | } | |
14588 | return pyobj; | |
14589 | } | |
14590 | ||
14591 | ||
c32bde28 | 14592 | static int _wrap_ART_CROSS_MARK_set(PyObject *) { |
d55e5bfc RD |
14593 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); |
14594 | return 1; | |
14595 | } | |
14596 | ||
14597 | ||
14598 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
14599 | PyObject *pyobj; | |
14600 | ||
14601 | { | |
14602 | #if wxUSE_UNICODE | |
14603 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14604 | #else | |
14605 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14606 | #endif | |
14607 | } | |
14608 | return pyobj; | |
14609 | } | |
14610 | ||
14611 | ||
c32bde28 | 14612 | static int _wrap_ART_ERROR_set(PyObject *) { |
d55e5bfc RD |
14613 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); |
14614 | return 1; | |
14615 | } | |
14616 | ||
14617 | ||
14618 | static PyObject *_wrap_ART_ERROR_get() { | |
14619 | PyObject *pyobj; | |
14620 | ||
14621 | { | |
14622 | #if wxUSE_UNICODE | |
14623 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14624 | #else | |
14625 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14626 | #endif | |
14627 | } | |
14628 | return pyobj; | |
14629 | } | |
14630 | ||
14631 | ||
c32bde28 | 14632 | static int _wrap_ART_QUESTION_set(PyObject *) { |
d55e5bfc RD |
14633 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); |
14634 | return 1; | |
14635 | } | |
14636 | ||
14637 | ||
14638 | static PyObject *_wrap_ART_QUESTION_get() { | |
14639 | PyObject *pyobj; | |
14640 | ||
14641 | { | |
14642 | #if wxUSE_UNICODE | |
14643 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14644 | #else | |
14645 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14646 | #endif | |
14647 | } | |
14648 | return pyobj; | |
14649 | } | |
14650 | ||
14651 | ||
c32bde28 | 14652 | static int _wrap_ART_WARNING_set(PyObject *) { |
d55e5bfc RD |
14653 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); |
14654 | return 1; | |
14655 | } | |
14656 | ||
14657 | ||
14658 | static PyObject *_wrap_ART_WARNING_get() { | |
14659 | PyObject *pyobj; | |
14660 | ||
14661 | { | |
14662 | #if wxUSE_UNICODE | |
14663 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14664 | #else | |
14665 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14666 | #endif | |
14667 | } | |
14668 | return pyobj; | |
14669 | } | |
14670 | ||
14671 | ||
c32bde28 | 14672 | static int _wrap_ART_INFORMATION_set(PyObject *) { |
d55e5bfc RD |
14673 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); |
14674 | return 1; | |
14675 | } | |
14676 | ||
14677 | ||
14678 | static PyObject *_wrap_ART_INFORMATION_get() { | |
14679 | PyObject *pyobj; | |
14680 | ||
14681 | { | |
14682 | #if wxUSE_UNICODE | |
14683 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14684 | #else | |
14685 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14686 | #endif | |
14687 | } | |
14688 | return pyobj; | |
14689 | } | |
14690 | ||
14691 | ||
c32bde28 | 14692 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *) { |
d55e5bfc RD |
14693 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); |
14694 | return 1; | |
14695 | } | |
14696 | ||
14697 | ||
14698 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
14699 | PyObject *pyobj; | |
14700 | ||
14701 | { | |
14702 | #if wxUSE_UNICODE | |
14703 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14704 | #else | |
14705 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14706 | #endif | |
14707 | } | |
14708 | return pyobj; | |
14709 | } | |
14710 | ||
14711 | ||
c32bde28 | 14712 | static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14713 | PyObject *resultobj; |
14714 | wxPyArtProvider *result; | |
14715 | char *kwnames[] = { | |
14716 | NULL | |
14717 | }; | |
14718 | ||
14719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
14720 | { | |
0439c23b | 14721 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14723 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
14724 | ||
14725 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14726 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14727 | } |
14728 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); | |
14729 | return resultobj; | |
14730 | fail: | |
14731 | return NULL; | |
14732 | } | |
14733 | ||
14734 | ||
c32bde28 | 14735 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14736 | PyObject *resultobj; |
14737 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14738 | PyObject *arg2 = (PyObject *) 0 ; | |
14739 | PyObject *arg3 = (PyObject *) 0 ; | |
14740 | PyObject * obj0 = 0 ; | |
14741 | PyObject * obj1 = 0 ; | |
14742 | PyObject * obj2 = 0 ; | |
14743 | char *kwnames[] = { | |
14744 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14745 | }; | |
14746 | ||
14747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14750 | arg2 = obj1; | |
14751 | arg3 = obj2; | |
14752 | { | |
14753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14754 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14755 | ||
14756 | wxPyEndAllowThreads(__tstate); | |
14757 | if (PyErr_Occurred()) SWIG_fail; | |
14758 | } | |
14759 | Py_INCREF(Py_None); resultobj = Py_None; | |
14760 | return resultobj; | |
14761 | fail: | |
14762 | return NULL; | |
14763 | } | |
14764 | ||
14765 | ||
c32bde28 | 14766 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14767 | PyObject *resultobj; |
14768 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14769 | PyObject * obj0 = 0 ; | |
14770 | char *kwnames[] = { | |
14771 | (char *) "provider", NULL | |
14772 | }; | |
14773 | ||
14774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
14775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14777 | { | |
14778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14779 | wxPyArtProvider::PushProvider(arg1); | |
14780 | ||
14781 | wxPyEndAllowThreads(__tstate); | |
14782 | if (PyErr_Occurred()) SWIG_fail; | |
14783 | } | |
14784 | Py_INCREF(Py_None); resultobj = Py_None; | |
14785 | return resultobj; | |
14786 | fail: | |
14787 | return NULL; | |
14788 | } | |
14789 | ||
14790 | ||
c32bde28 | 14791 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14792 | PyObject *resultobj; |
14793 | bool result; | |
14794 | char *kwnames[] = { | |
14795 | NULL | |
14796 | }; | |
14797 | ||
14798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
14799 | { | |
14800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14801 | result = (bool)wxPyArtProvider::PopProvider(); | |
14802 | ||
14803 | wxPyEndAllowThreads(__tstate); | |
14804 | if (PyErr_Occurred()) SWIG_fail; | |
14805 | } | |
14806 | { | |
14807 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14808 | } | |
14809 | return resultobj; | |
14810 | fail: | |
14811 | return NULL; | |
14812 | } | |
14813 | ||
14814 | ||
c32bde28 | 14815 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14816 | PyObject *resultobj; |
14817 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14818 | bool result; | |
14819 | PyObject * obj0 = 0 ; | |
14820 | char *kwnames[] = { | |
14821 | (char *) "provider", NULL | |
14822 | }; | |
14823 | ||
14824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
14825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14827 | { | |
14828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14829 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
14830 | ||
14831 | wxPyEndAllowThreads(__tstate); | |
14832 | if (PyErr_Occurred()) SWIG_fail; | |
14833 | } | |
14834 | { | |
14835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14836 | } | |
14837 | return resultobj; | |
14838 | fail: | |
14839 | return NULL; | |
14840 | } | |
14841 | ||
14842 | ||
c32bde28 | 14843 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14844 | PyObject *resultobj; |
14845 | wxString *arg1 = 0 ; | |
14846 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14847 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14848 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14849 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14850 | wxBitmap result; | |
ae8162c8 RD |
14851 | bool temp1 = false ; |
14852 | bool temp2 = false ; | |
d55e5bfc RD |
14853 | wxSize temp3 ; |
14854 | PyObject * obj0 = 0 ; | |
14855 | PyObject * obj1 = 0 ; | |
14856 | PyObject * obj2 = 0 ; | |
14857 | char *kwnames[] = { | |
14858 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14859 | }; | |
14860 | ||
14861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14862 | { | |
14863 | arg1 = wxString_in_helper(obj0); | |
14864 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 14865 | temp1 = true; |
d55e5bfc RD |
14866 | } |
14867 | if (obj1) { | |
14868 | { | |
14869 | arg2 = wxString_in_helper(obj1); | |
14870 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14871 | temp2 = true; |
d55e5bfc RD |
14872 | } |
14873 | } | |
14874 | if (obj2) { | |
14875 | { | |
14876 | arg3 = &temp3; | |
14877 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14878 | } | |
14879 | } | |
14880 | { | |
0439c23b | 14881 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14883 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14884 | ||
14885 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14886 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14887 | } |
14888 | { | |
14889 | wxBitmap * resultptr; | |
14890 | resultptr = new wxBitmap((wxBitmap &) result); | |
14891 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
14892 | } | |
14893 | { | |
14894 | if (temp1) | |
14895 | delete arg1; | |
14896 | } | |
14897 | { | |
14898 | if (temp2) | |
14899 | delete arg2; | |
14900 | } | |
14901 | return resultobj; | |
14902 | fail: | |
14903 | { | |
14904 | if (temp1) | |
14905 | delete arg1; | |
14906 | } | |
14907 | { | |
14908 | if (temp2) | |
14909 | delete arg2; | |
14910 | } | |
14911 | return NULL; | |
14912 | } | |
14913 | ||
14914 | ||
c32bde28 | 14915 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14916 | PyObject *resultobj; |
14917 | wxString *arg1 = 0 ; | |
14918 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14919 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14920 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14921 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14922 | wxIcon result; | |
ae8162c8 RD |
14923 | bool temp1 = false ; |
14924 | bool temp2 = false ; | |
d55e5bfc RD |
14925 | wxSize temp3 ; |
14926 | PyObject * obj0 = 0 ; | |
14927 | PyObject * obj1 = 0 ; | |
14928 | PyObject * obj2 = 0 ; | |
14929 | char *kwnames[] = { | |
14930 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14931 | }; | |
14932 | ||
14933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14934 | { | |
14935 | arg1 = wxString_in_helper(obj0); | |
14936 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 14937 | temp1 = true; |
d55e5bfc RD |
14938 | } |
14939 | if (obj1) { | |
14940 | { | |
14941 | arg2 = wxString_in_helper(obj1); | |
14942 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14943 | temp2 = true; |
d55e5bfc RD |
14944 | } |
14945 | } | |
14946 | if (obj2) { | |
14947 | { | |
14948 | arg3 = &temp3; | |
14949 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14950 | } | |
14951 | } | |
14952 | { | |
0439c23b | 14953 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14955 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14956 | ||
14957 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14958 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14959 | } |
14960 | { | |
14961 | wxIcon * resultptr; | |
14962 | resultptr = new wxIcon((wxIcon &) result); | |
14963 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
14964 | } | |
14965 | { | |
14966 | if (temp1) | |
14967 | delete arg1; | |
14968 | } | |
14969 | { | |
14970 | if (temp2) | |
14971 | delete arg2; | |
14972 | } | |
14973 | return resultobj; | |
14974 | fail: | |
14975 | { | |
14976 | if (temp1) | |
14977 | delete arg1; | |
14978 | } | |
14979 | { | |
14980 | if (temp2) | |
14981 | delete arg2; | |
14982 | } | |
14983 | return NULL; | |
14984 | } | |
14985 | ||
14986 | ||
c32bde28 | 14987 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14988 | PyObject *resultobj; |
14989 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14990 | PyObject * obj0 = 0 ; | |
14991 | char *kwnames[] = { | |
14992 | (char *) "self", NULL | |
14993 | }; | |
14994 | ||
14995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
14996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14998 | { | |
14999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15000 | wxPyArtProvider_Destroy(arg1); | |
15001 | ||
15002 | wxPyEndAllowThreads(__tstate); | |
15003 | if (PyErr_Occurred()) SWIG_fail; | |
15004 | } | |
15005 | Py_INCREF(Py_None); resultobj = Py_None; | |
15006 | return resultobj; | |
15007 | fail: | |
15008 | return NULL; | |
15009 | } | |
15010 | ||
15011 | ||
c32bde28 | 15012 | static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15013 | PyObject *obj; |
15014 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15015 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
15016 | Py_INCREF(obj); | |
15017 | return Py_BuildValue((char *)""); | |
15018 | } | |
c32bde28 | 15019 | static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15020 | PyObject *resultobj; |
15021 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15022 | PyObject * obj0 = 0 ; | |
15023 | char *kwnames[] = { | |
15024 | (char *) "self", NULL | |
15025 | }; | |
15026 | ||
15027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
15028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15030 | { | |
15031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15032 | delete 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_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15045 | PyObject *resultobj; |
15046 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15047 | wxConfigBase *result; | |
15048 | PyObject * obj0 = 0 ; | |
15049 | char *kwnames[] = { | |
15050 | (char *) "config", NULL | |
15051 | }; | |
15052 | ||
15053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
15054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15056 | { | |
15057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15058 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
15059 | ||
15060 | wxPyEndAllowThreads(__tstate); | |
15061 | if (PyErr_Occurred()) SWIG_fail; | |
15062 | } | |
15063 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
15064 | return resultobj; | |
15065 | fail: | |
15066 | return NULL; | |
15067 | } | |
15068 | ||
15069 | ||
c32bde28 | 15070 | static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 15071 | PyObject *resultobj; |
ae8162c8 | 15072 | bool arg1 = (bool) true ; |
d55e5bfc RD |
15073 | wxConfigBase *result; |
15074 | PyObject * obj0 = 0 ; | |
15075 | char *kwnames[] = { | |
15076 | (char *) "createOnDemand", NULL | |
15077 | }; | |
15078 | ||
15079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
15080 | if (obj0) { | |
c32bde28 | 15081 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
15082 | if (PyErr_Occurred()) SWIG_fail; |
15083 | } | |
15084 | { | |
15085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15086 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
15087 | ||
15088 | wxPyEndAllowThreads(__tstate); | |
15089 | if (PyErr_Occurred()) SWIG_fail; | |
15090 | } | |
15091 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
15092 | return resultobj; | |
15093 | fail: | |
15094 | return NULL; | |
15095 | } | |
15096 | ||
15097 | ||
c32bde28 | 15098 | static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15099 | PyObject *resultobj; |
15100 | wxConfigBase *result; | |
15101 | char *kwnames[] = { | |
15102 | NULL | |
15103 | }; | |
15104 | ||
15105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
15106 | { | |
15107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15108 | result = (wxConfigBase *)wxConfigBase::Create(); | |
15109 | ||
15110 | wxPyEndAllowThreads(__tstate); | |
15111 | if (PyErr_Occurred()) SWIG_fail; | |
15112 | } | |
15113 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
15114 | return resultobj; | |
15115 | fail: | |
15116 | return NULL; | |
15117 | } | |
15118 | ||
15119 | ||
c32bde28 | 15120 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15121 | PyObject *resultobj; |
15122 | char *kwnames[] = { | |
15123 | NULL | |
15124 | }; | |
15125 | ||
15126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
15127 | { | |
15128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15129 | wxConfigBase::DontCreateOnDemand(); | |
15130 | ||
15131 | wxPyEndAllowThreads(__tstate); | |
15132 | if (PyErr_Occurred()) SWIG_fail; | |
15133 | } | |
15134 | Py_INCREF(Py_None); resultobj = Py_None; | |
15135 | return resultobj; | |
15136 | fail: | |
15137 | return NULL; | |
15138 | } | |
15139 | ||
15140 | ||
c32bde28 | 15141 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15142 | PyObject *resultobj; |
15143 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15144 | wxString *arg2 = 0 ; | |
ae8162c8 | 15145 | bool temp2 = false ; |
d55e5bfc RD |
15146 | PyObject * obj0 = 0 ; |
15147 | PyObject * obj1 = 0 ; | |
15148 | char *kwnames[] = { | |
15149 | (char *) "self",(char *) "path", NULL | |
15150 | }; | |
15151 | ||
15152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
15153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15155 | { | |
15156 | arg2 = wxString_in_helper(obj1); | |
15157 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15158 | temp2 = true; |
d55e5bfc RD |
15159 | } |
15160 | { | |
15161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15162 | (arg1)->SetPath((wxString const &)*arg2); | |
15163 | ||
15164 | wxPyEndAllowThreads(__tstate); | |
15165 | if (PyErr_Occurred()) SWIG_fail; | |
15166 | } | |
15167 | Py_INCREF(Py_None); resultobj = Py_None; | |
15168 | { | |
15169 | if (temp2) | |
15170 | delete arg2; | |
15171 | } | |
15172 | return resultobj; | |
15173 | fail: | |
15174 | { | |
15175 | if (temp2) | |
15176 | delete arg2; | |
15177 | } | |
15178 | return NULL; | |
15179 | } | |
15180 | ||
15181 | ||
c32bde28 | 15182 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15183 | PyObject *resultobj; |
15184 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15185 | wxString *result; | |
15186 | PyObject * obj0 = 0 ; | |
15187 | char *kwnames[] = { | |
15188 | (char *) "self", NULL | |
15189 | }; | |
15190 | ||
15191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
15192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15194 | { | |
15195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15196 | { | |
15197 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
15198 | result = (wxString *) &_result_ref; | |
15199 | } | |
15200 | ||
15201 | wxPyEndAllowThreads(__tstate); | |
15202 | if (PyErr_Occurred()) SWIG_fail; | |
15203 | } | |
15204 | { | |
15205 | #if wxUSE_UNICODE | |
15206 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
15207 | #else | |
15208 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
15209 | #endif | |
15210 | } | |
15211 | return resultobj; | |
15212 | fail: | |
15213 | return NULL; | |
15214 | } | |
15215 | ||
15216 | ||
c32bde28 | 15217 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15218 | PyObject *resultobj; |
15219 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15220 | PyObject *result; | |
15221 | PyObject * obj0 = 0 ; | |
15222 | char *kwnames[] = { | |
15223 | (char *) "self", NULL | |
15224 | }; | |
15225 | ||
15226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
15227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15229 | { | |
15230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15231 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
15232 | ||
15233 | wxPyEndAllowThreads(__tstate); | |
15234 | if (PyErr_Occurred()) SWIG_fail; | |
15235 | } | |
15236 | resultobj = result; | |
15237 | return resultobj; | |
15238 | fail: | |
15239 | return NULL; | |
15240 | } | |
15241 | ||
15242 | ||
c32bde28 | 15243 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15244 | PyObject *resultobj; |
15245 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15246 | long arg2 ; | |
15247 | PyObject *result; | |
15248 | PyObject * obj0 = 0 ; | |
15249 | PyObject * obj1 = 0 ; | |
15250 | char *kwnames[] = { | |
15251 | (char *) "self",(char *) "index", NULL | |
15252 | }; | |
15253 | ||
15254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; | |
15255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15257 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
15258 | if (PyErr_Occurred()) SWIG_fail; |
15259 | { | |
15260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15261 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
15262 | ||
15263 | wxPyEndAllowThreads(__tstate); | |
15264 | if (PyErr_Occurred()) SWIG_fail; | |
15265 | } | |
15266 | resultobj = result; | |
15267 | return resultobj; | |
15268 | fail: | |
15269 | return NULL; | |
15270 | } | |
15271 | ||
15272 | ||
c32bde28 | 15273 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15274 | PyObject *resultobj; |
15275 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15276 | PyObject *result; | |
15277 | PyObject * obj0 = 0 ; | |
15278 | char *kwnames[] = { | |
15279 | (char *) "self", NULL | |
15280 | }; | |
15281 | ||
15282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
15283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15285 | { | |
15286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15287 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
15288 | ||
15289 | wxPyEndAllowThreads(__tstate); | |
15290 | if (PyErr_Occurred()) SWIG_fail; | |
15291 | } | |
15292 | resultobj = result; | |
15293 | return resultobj; | |
15294 | fail: | |
15295 | return NULL; | |
15296 | } | |
15297 | ||
15298 | ||
c32bde28 | 15299 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15300 | PyObject *resultobj; |
15301 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15302 | long arg2 ; | |
15303 | PyObject *result; | |
15304 | PyObject * obj0 = 0 ; | |
15305 | PyObject * obj1 = 0 ; | |
15306 | char *kwnames[] = { | |
15307 | (char *) "self",(char *) "index", NULL | |
15308 | }; | |
15309 | ||
15310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; | |
15311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15313 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
15314 | if (PyErr_Occurred()) SWIG_fail; |
15315 | { | |
15316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15317 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
15318 | ||
15319 | wxPyEndAllowThreads(__tstate); | |
15320 | if (PyErr_Occurred()) SWIG_fail; | |
15321 | } | |
15322 | resultobj = result; | |
15323 | return resultobj; | |
15324 | fail: | |
15325 | return NULL; | |
15326 | } | |
15327 | ||
15328 | ||
c32bde28 | 15329 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15330 | PyObject *resultobj; |
15331 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
ae8162c8 | 15332 | bool arg2 = (bool) false ; |
d55e5bfc RD |
15333 | size_t result; |
15334 | PyObject * obj0 = 0 ; | |
15335 | PyObject * obj1 = 0 ; | |
15336 | char *kwnames[] = { | |
15337 | (char *) "self",(char *) "recursive", NULL | |
15338 | }; | |
15339 | ||
15340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
15341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15343 | if (obj1) { | |
c32bde28 | 15344 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15345 | if (PyErr_Occurred()) SWIG_fail; |
15346 | } | |
15347 | { | |
15348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15349 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
15350 | ||
15351 | wxPyEndAllowThreads(__tstate); | |
15352 | if (PyErr_Occurred()) SWIG_fail; | |
15353 | } | |
c32bde28 | 15354 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
15355 | return resultobj; |
15356 | fail: | |
15357 | return NULL; | |
15358 | } | |
15359 | ||
15360 | ||
c32bde28 | 15361 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15362 | PyObject *resultobj; |
15363 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
ae8162c8 | 15364 | bool arg2 = (bool) false ; |
d55e5bfc RD |
15365 | size_t result; |
15366 | PyObject * obj0 = 0 ; | |
15367 | PyObject * obj1 = 0 ; | |
15368 | char *kwnames[] = { | |
15369 | (char *) "self",(char *) "recursive", NULL | |
15370 | }; | |
15371 | ||
15372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
15373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15375 | if (obj1) { | |
c32bde28 | 15376 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15377 | if (PyErr_Occurred()) SWIG_fail; |
15378 | } | |
15379 | { | |
15380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15381 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
15382 | ||
15383 | wxPyEndAllowThreads(__tstate); | |
15384 | if (PyErr_Occurred()) SWIG_fail; | |
15385 | } | |
c32bde28 | 15386 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
15387 | return resultobj; |
15388 | fail: | |
15389 | return NULL; | |
15390 | } | |
15391 | ||
15392 | ||
c32bde28 | 15393 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15394 | PyObject *resultobj; |
15395 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15396 | wxString *arg2 = 0 ; | |
15397 | bool result; | |
ae8162c8 | 15398 | bool temp2 = false ; |
d55e5bfc RD |
15399 | PyObject * obj0 = 0 ; |
15400 | PyObject * obj1 = 0 ; | |
15401 | char *kwnames[] = { | |
15402 | (char *) "self",(char *) "name", NULL | |
15403 | }; | |
15404 | ||
15405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",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 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
15416 | ||
15417 | wxPyEndAllowThreads(__tstate); | |
15418 | if (PyErr_Occurred()) SWIG_fail; | |
15419 | } | |
15420 | { | |
15421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15422 | } | |
15423 | { | |
15424 | if (temp2) | |
15425 | delete arg2; | |
15426 | } | |
15427 | return resultobj; | |
15428 | fail: | |
15429 | { | |
15430 | if (temp2) | |
15431 | delete arg2; | |
15432 | } | |
15433 | return NULL; | |
15434 | } | |
15435 | ||
15436 | ||
c32bde28 | 15437 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15438 | PyObject *resultobj; |
15439 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15440 | wxString *arg2 = 0 ; | |
15441 | bool result; | |
ae8162c8 | 15442 | bool temp2 = false ; |
d55e5bfc RD |
15443 | PyObject * obj0 = 0 ; |
15444 | PyObject * obj1 = 0 ; | |
15445 | char *kwnames[] = { | |
15446 | (char *) "self",(char *) "name", NULL | |
15447 | }; | |
15448 | ||
15449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
15450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15452 | { | |
15453 | arg2 = wxString_in_helper(obj1); | |
15454 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15455 | temp2 = true; |
d55e5bfc RD |
15456 | } |
15457 | { | |
15458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15459 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
15460 | ||
15461 | wxPyEndAllowThreads(__tstate); | |
15462 | if (PyErr_Occurred()) SWIG_fail; | |
15463 | } | |
15464 | { | |
15465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15466 | } | |
15467 | { | |
15468 | if (temp2) | |
15469 | delete arg2; | |
15470 | } | |
15471 | return resultobj; | |
15472 | fail: | |
15473 | { | |
15474 | if (temp2) | |
15475 | delete arg2; | |
15476 | } | |
15477 | return NULL; | |
15478 | } | |
15479 | ||
15480 | ||
c32bde28 | 15481 | static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15482 | PyObject *resultobj; |
15483 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15484 | wxString *arg2 = 0 ; | |
15485 | bool result; | |
ae8162c8 | 15486 | bool temp2 = false ; |
d55e5bfc RD |
15487 | PyObject * obj0 = 0 ; |
15488 | PyObject * obj1 = 0 ; | |
15489 | char *kwnames[] = { | |
15490 | (char *) "self",(char *) "name", NULL | |
15491 | }; | |
15492 | ||
15493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
15494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15496 | { | |
15497 | arg2 = wxString_in_helper(obj1); | |
15498 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15499 | temp2 = true; |
d55e5bfc RD |
15500 | } |
15501 | { | |
15502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15503 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
15504 | ||
15505 | wxPyEndAllowThreads(__tstate); | |
15506 | if (PyErr_Occurred()) SWIG_fail; | |
15507 | } | |
15508 | { | |
15509 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15510 | } | |
15511 | { | |
15512 | if (temp2) | |
15513 | delete arg2; | |
15514 | } | |
15515 | return resultobj; | |
15516 | fail: | |
15517 | { | |
15518 | if (temp2) | |
15519 | delete arg2; | |
15520 | } | |
15521 | return NULL; | |
15522 | } | |
15523 | ||
15524 | ||
c32bde28 | 15525 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15526 | PyObject *resultobj; |
15527 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15528 | wxString *arg2 = 0 ; | |
15529 | int result; | |
ae8162c8 | 15530 | bool temp2 = false ; |
d55e5bfc RD |
15531 | PyObject * obj0 = 0 ; |
15532 | PyObject * obj1 = 0 ; | |
15533 | char *kwnames[] = { | |
15534 | (char *) "self",(char *) "name", NULL | |
15535 | }; | |
15536 | ||
15537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
15538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15540 | { | |
15541 | arg2 = wxString_in_helper(obj1); | |
15542 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15543 | temp2 = true; |
d55e5bfc RD |
15544 | } |
15545 | { | |
15546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15547 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
15548 | ||
15549 | wxPyEndAllowThreads(__tstate); | |
15550 | if (PyErr_Occurred()) SWIG_fail; | |
15551 | } | |
c32bde28 | 15552 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15553 | { |
15554 | if (temp2) | |
15555 | delete arg2; | |
15556 | } | |
15557 | return resultobj; | |
15558 | fail: | |
15559 | { | |
15560 | if (temp2) | |
15561 | delete arg2; | |
15562 | } | |
15563 | return NULL; | |
15564 | } | |
15565 | ||
15566 | ||
c32bde28 | 15567 | static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15568 | PyObject *resultobj; |
15569 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15570 | wxString *arg2 = 0 ; | |
15571 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15572 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15573 | wxString result; | |
ae8162c8 RD |
15574 | bool temp2 = false ; |
15575 | bool temp3 = false ; | |
d55e5bfc RD |
15576 | PyObject * obj0 = 0 ; |
15577 | PyObject * obj1 = 0 ; | |
15578 | PyObject * obj2 = 0 ; | |
15579 | char *kwnames[] = { | |
15580 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15581 | }; | |
15582 | ||
15583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15586 | { | |
15587 | arg2 = wxString_in_helper(obj1); | |
15588 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15589 | temp2 = true; |
d55e5bfc RD |
15590 | } |
15591 | if (obj2) { | |
15592 | { | |
15593 | arg3 = wxString_in_helper(obj2); | |
15594 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15595 | temp3 = true; |
d55e5bfc RD |
15596 | } |
15597 | } | |
15598 | { | |
15599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15600 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
15601 | ||
15602 | wxPyEndAllowThreads(__tstate); | |
15603 | if (PyErr_Occurred()) SWIG_fail; | |
15604 | } | |
15605 | { | |
15606 | #if wxUSE_UNICODE | |
15607 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15608 | #else | |
15609 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15610 | #endif | |
15611 | } | |
15612 | { | |
15613 | if (temp2) | |
15614 | delete arg2; | |
15615 | } | |
15616 | { | |
15617 | if (temp3) | |
15618 | delete arg3; | |
15619 | } | |
15620 | return resultobj; | |
15621 | fail: | |
15622 | { | |
15623 | if (temp2) | |
15624 | delete arg2; | |
15625 | } | |
15626 | { | |
15627 | if (temp3) | |
15628 | delete arg3; | |
15629 | } | |
15630 | return NULL; | |
15631 | } | |
15632 | ||
15633 | ||
c32bde28 | 15634 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15635 | PyObject *resultobj; |
15636 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15637 | wxString *arg2 = 0 ; | |
15638 | long arg3 = (long) 0 ; | |
15639 | long result; | |
ae8162c8 | 15640 | bool temp2 = false ; |
d55e5bfc RD |
15641 | PyObject * obj0 = 0 ; |
15642 | PyObject * obj1 = 0 ; | |
15643 | PyObject * obj2 = 0 ; | |
15644 | char *kwnames[] = { | |
15645 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15646 | }; | |
15647 | ||
15648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15651 | { | |
15652 | arg2 = wxString_in_helper(obj1); | |
15653 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15654 | temp2 = true; |
d55e5bfc RD |
15655 | } |
15656 | if (obj2) { | |
c32bde28 | 15657 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
15658 | if (PyErr_Occurred()) SWIG_fail; |
15659 | } | |
15660 | { | |
15661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15662 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
15663 | ||
15664 | wxPyEndAllowThreads(__tstate); | |
15665 | if (PyErr_Occurred()) SWIG_fail; | |
15666 | } | |
c32bde28 | 15667 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
15668 | { |
15669 | if (temp2) | |
15670 | delete arg2; | |
15671 | } | |
15672 | return resultobj; | |
15673 | fail: | |
15674 | { | |
15675 | if (temp2) | |
15676 | delete arg2; | |
15677 | } | |
15678 | return NULL; | |
15679 | } | |
15680 | ||
15681 | ||
c32bde28 | 15682 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15683 | PyObject *resultobj; |
15684 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15685 | wxString *arg2 = 0 ; | |
15686 | double arg3 = (double) 0.0 ; | |
15687 | double result; | |
ae8162c8 | 15688 | bool temp2 = false ; |
d55e5bfc RD |
15689 | PyObject * obj0 = 0 ; |
15690 | PyObject * obj1 = 0 ; | |
15691 | PyObject * obj2 = 0 ; | |
15692 | char *kwnames[] = { | |
15693 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15694 | }; | |
15695 | ||
15696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15699 | { | |
15700 | arg2 = wxString_in_helper(obj1); | |
15701 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15702 | temp2 = true; |
d55e5bfc RD |
15703 | } |
15704 | if (obj2) { | |
c32bde28 | 15705 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
15706 | if (PyErr_Occurred()) SWIG_fail; |
15707 | } | |
15708 | { | |
15709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15710 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
15711 | ||
15712 | wxPyEndAllowThreads(__tstate); | |
15713 | if (PyErr_Occurred()) SWIG_fail; | |
15714 | } | |
c32bde28 | 15715 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
15716 | { |
15717 | if (temp2) | |
15718 | delete arg2; | |
15719 | } | |
15720 | return resultobj; | |
15721 | fail: | |
15722 | { | |
15723 | if (temp2) | |
15724 | delete arg2; | |
15725 | } | |
15726 | return NULL; | |
15727 | } | |
15728 | ||
15729 | ||
c32bde28 | 15730 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15731 | PyObject *resultobj; |
15732 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15733 | wxString *arg2 = 0 ; | |
ae8162c8 | 15734 | bool arg3 = (bool) false ; |
d55e5bfc | 15735 | bool result; |
ae8162c8 | 15736 | bool temp2 = false ; |
d55e5bfc RD |
15737 | PyObject * obj0 = 0 ; |
15738 | PyObject * obj1 = 0 ; | |
15739 | PyObject * obj2 = 0 ; | |
15740 | char *kwnames[] = { | |
15741 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15742 | }; | |
15743 | ||
15744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15747 | { | |
15748 | arg2 = wxString_in_helper(obj1); | |
15749 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15750 | temp2 = true; |
d55e5bfc RD |
15751 | } |
15752 | if (obj2) { | |
c32bde28 | 15753 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
15754 | if (PyErr_Occurred()) SWIG_fail; |
15755 | } | |
15756 | { | |
15757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15758 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
15759 | ||
15760 | wxPyEndAllowThreads(__tstate); | |
15761 | if (PyErr_Occurred()) SWIG_fail; | |
15762 | } | |
15763 | { | |
15764 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15765 | } | |
15766 | { | |
15767 | if (temp2) | |
15768 | delete arg2; | |
15769 | } | |
15770 | return resultobj; | |
15771 | fail: | |
15772 | { | |
15773 | if (temp2) | |
15774 | delete arg2; | |
15775 | } | |
15776 | return NULL; | |
15777 | } | |
15778 | ||
15779 | ||
c32bde28 | 15780 | static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15781 | PyObject *resultobj; |
15782 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15783 | wxString *arg2 = 0 ; | |
15784 | wxString *arg3 = 0 ; | |
15785 | bool result; | |
ae8162c8 RD |
15786 | bool temp2 = false ; |
15787 | bool temp3 = false ; | |
d55e5bfc RD |
15788 | PyObject * obj0 = 0 ; |
15789 | PyObject * obj1 = 0 ; | |
15790 | PyObject * obj2 = 0 ; | |
15791 | char *kwnames[] = { | |
15792 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15793 | }; | |
15794 | ||
15795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15798 | { | |
15799 | arg2 = wxString_in_helper(obj1); | |
15800 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15801 | temp2 = true; |
d55e5bfc RD |
15802 | } |
15803 | { | |
15804 | arg3 = wxString_in_helper(obj2); | |
15805 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15806 | temp3 = true; |
d55e5bfc RD |
15807 | } |
15808 | { | |
15809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15810 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
15811 | ||
15812 | wxPyEndAllowThreads(__tstate); | |
15813 | if (PyErr_Occurred()) SWIG_fail; | |
15814 | } | |
15815 | { | |
15816 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15817 | } | |
15818 | { | |
15819 | if (temp2) | |
15820 | delete arg2; | |
15821 | } | |
15822 | { | |
15823 | if (temp3) | |
15824 | delete arg3; | |
15825 | } | |
15826 | return resultobj; | |
15827 | fail: | |
15828 | { | |
15829 | if (temp2) | |
15830 | delete arg2; | |
15831 | } | |
15832 | { | |
15833 | if (temp3) | |
15834 | delete arg3; | |
15835 | } | |
15836 | return NULL; | |
15837 | } | |
15838 | ||
15839 | ||
c32bde28 | 15840 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15841 | PyObject *resultobj; |
15842 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15843 | wxString *arg2 = 0 ; | |
15844 | long arg3 ; | |
15845 | bool result; | |
ae8162c8 | 15846 | bool temp2 = false ; |
d55e5bfc RD |
15847 | PyObject * obj0 = 0 ; |
15848 | PyObject * obj1 = 0 ; | |
15849 | PyObject * obj2 = 0 ; | |
15850 | char *kwnames[] = { | |
15851 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15852 | }; | |
15853 | ||
15854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15857 | { | |
15858 | arg2 = wxString_in_helper(obj1); | |
15859 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15860 | temp2 = true; |
d55e5bfc | 15861 | } |
c32bde28 | 15862 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
15863 | if (PyErr_Occurred()) SWIG_fail; |
15864 | { | |
15865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15866 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15867 | ||
15868 | wxPyEndAllowThreads(__tstate); | |
15869 | if (PyErr_Occurred()) SWIG_fail; | |
15870 | } | |
15871 | { | |
15872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15873 | } | |
15874 | { | |
15875 | if (temp2) | |
15876 | delete arg2; | |
15877 | } | |
15878 | return resultobj; | |
15879 | fail: | |
15880 | { | |
15881 | if (temp2) | |
15882 | delete arg2; | |
15883 | } | |
15884 | return NULL; | |
15885 | } | |
15886 | ||
15887 | ||
c32bde28 | 15888 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15889 | PyObject *resultobj; |
15890 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15891 | wxString *arg2 = 0 ; | |
15892 | double arg3 ; | |
15893 | bool result; | |
ae8162c8 | 15894 | bool temp2 = false ; |
d55e5bfc RD |
15895 | PyObject * obj0 = 0 ; |
15896 | PyObject * obj1 = 0 ; | |
15897 | PyObject * obj2 = 0 ; | |
15898 | char *kwnames[] = { | |
15899 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15900 | }; | |
15901 | ||
15902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15905 | { | |
15906 | arg2 = wxString_in_helper(obj1); | |
15907 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15908 | temp2 = true; |
d55e5bfc | 15909 | } |
c32bde28 | 15910 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
15911 | if (PyErr_Occurred()) SWIG_fail; |
15912 | { | |
15913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15914 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15915 | ||
15916 | wxPyEndAllowThreads(__tstate); | |
15917 | if (PyErr_Occurred()) SWIG_fail; | |
15918 | } | |
15919 | { | |
15920 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15921 | } | |
15922 | { | |
15923 | if (temp2) | |
15924 | delete arg2; | |
15925 | } | |
15926 | return resultobj; | |
15927 | fail: | |
15928 | { | |
15929 | if (temp2) | |
15930 | delete arg2; | |
15931 | } | |
15932 | return NULL; | |
15933 | } | |
15934 | ||
15935 | ||
c32bde28 | 15936 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15937 | PyObject *resultobj; |
15938 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15939 | wxString *arg2 = 0 ; | |
15940 | bool arg3 ; | |
15941 | bool result; | |
ae8162c8 | 15942 | bool temp2 = false ; |
d55e5bfc RD |
15943 | PyObject * obj0 = 0 ; |
15944 | PyObject * obj1 = 0 ; | |
15945 | PyObject * obj2 = 0 ; | |
15946 | char *kwnames[] = { | |
15947 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15948 | }; | |
15949 | ||
15950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15953 | { | |
15954 | arg2 = wxString_in_helper(obj1); | |
15955 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15956 | temp2 = true; |
d55e5bfc | 15957 | } |
c32bde28 | 15958 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
15959 | if (PyErr_Occurred()) SWIG_fail; |
15960 | { | |
15961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15962 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15963 | ||
15964 | wxPyEndAllowThreads(__tstate); | |
15965 | if (PyErr_Occurred()) SWIG_fail; | |
15966 | } | |
15967 | { | |
15968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15969 | } | |
15970 | { | |
15971 | if (temp2) | |
15972 | delete arg2; | |
15973 | } | |
15974 | return resultobj; | |
15975 | fail: | |
15976 | { | |
15977 | if (temp2) | |
15978 | delete arg2; | |
15979 | } | |
15980 | return NULL; | |
15981 | } | |
15982 | ||
15983 | ||
c32bde28 | 15984 | static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15985 | PyObject *resultobj; |
15986 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
ae8162c8 | 15987 | bool arg2 = (bool) false ; |
d55e5bfc RD |
15988 | bool result; |
15989 | PyObject * obj0 = 0 ; | |
15990 | PyObject * obj1 = 0 ; | |
15991 | char *kwnames[] = { | |
15992 | (char *) "self",(char *) "currentOnly", NULL | |
15993 | }; | |
15994 | ||
15995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
15996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15998 | if (obj1) { | |
c32bde28 | 15999 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16000 | if (PyErr_Occurred()) SWIG_fail; |
16001 | } | |
16002 | { | |
16003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16004 | result = (bool)(arg1)->Flush(arg2); | |
16005 | ||
16006 | wxPyEndAllowThreads(__tstate); | |
16007 | if (PyErr_Occurred()) SWIG_fail; | |
16008 | } | |
16009 | { | |
16010 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16011 | } | |
16012 | return resultobj; | |
16013 | fail: | |
16014 | return NULL; | |
16015 | } | |
16016 | ||
16017 | ||
c32bde28 | 16018 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16019 | PyObject *resultobj; |
16020 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16021 | wxString *arg2 = 0 ; | |
16022 | wxString *arg3 = 0 ; | |
16023 | bool result; | |
ae8162c8 RD |
16024 | bool temp2 = false ; |
16025 | bool temp3 = false ; | |
d55e5bfc RD |
16026 | PyObject * obj0 = 0 ; |
16027 | PyObject * obj1 = 0 ; | |
16028 | PyObject * obj2 = 0 ; | |
16029 | char *kwnames[] = { | |
16030 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
16031 | }; | |
16032 | ||
16033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16036 | { | |
16037 | arg2 = wxString_in_helper(obj1); | |
16038 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16039 | temp2 = true; |
d55e5bfc RD |
16040 | } |
16041 | { | |
16042 | arg3 = wxString_in_helper(obj2); | |
16043 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16044 | temp3 = true; |
d55e5bfc RD |
16045 | } |
16046 | { | |
16047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16048 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
16049 | ||
16050 | wxPyEndAllowThreads(__tstate); | |
16051 | if (PyErr_Occurred()) SWIG_fail; | |
16052 | } | |
16053 | { | |
16054 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16055 | } | |
16056 | { | |
16057 | if (temp2) | |
16058 | delete arg2; | |
16059 | } | |
16060 | { | |
16061 | if (temp3) | |
16062 | delete arg3; | |
16063 | } | |
16064 | return resultobj; | |
16065 | fail: | |
16066 | { | |
16067 | if (temp2) | |
16068 | delete arg2; | |
16069 | } | |
16070 | { | |
16071 | if (temp3) | |
16072 | delete arg3; | |
16073 | } | |
16074 | return NULL; | |
16075 | } | |
16076 | ||
16077 | ||
c32bde28 | 16078 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16079 | PyObject *resultobj; |
16080 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16081 | wxString *arg2 = 0 ; | |
16082 | wxString *arg3 = 0 ; | |
16083 | bool result; | |
ae8162c8 RD |
16084 | bool temp2 = false ; |
16085 | bool temp3 = false ; | |
d55e5bfc RD |
16086 | PyObject * obj0 = 0 ; |
16087 | PyObject * obj1 = 0 ; | |
16088 | PyObject * obj2 = 0 ; | |
16089 | char *kwnames[] = { | |
16090 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
16091 | }; | |
16092 | ||
16093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16096 | { | |
16097 | arg2 = wxString_in_helper(obj1); | |
16098 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16099 | temp2 = true; |
d55e5bfc RD |
16100 | } |
16101 | { | |
16102 | arg3 = wxString_in_helper(obj2); | |
16103 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16104 | temp3 = true; |
d55e5bfc RD |
16105 | } |
16106 | { | |
16107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16108 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
16109 | ||
16110 | wxPyEndAllowThreads(__tstate); | |
16111 | if (PyErr_Occurred()) SWIG_fail; | |
16112 | } | |
16113 | { | |
16114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16115 | } | |
16116 | { | |
16117 | if (temp2) | |
16118 | delete arg2; | |
16119 | } | |
16120 | { | |
16121 | if (temp3) | |
16122 | delete arg3; | |
16123 | } | |
16124 | return resultobj; | |
16125 | fail: | |
16126 | { | |
16127 | if (temp2) | |
16128 | delete arg2; | |
16129 | } | |
16130 | { | |
16131 | if (temp3) | |
16132 | delete arg3; | |
16133 | } | |
16134 | return NULL; | |
16135 | } | |
16136 | ||
16137 | ||
c32bde28 | 16138 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16139 | PyObject *resultobj; |
16140 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16141 | wxString *arg2 = 0 ; | |
ae8162c8 | 16142 | bool arg3 = (bool) true ; |
d55e5bfc | 16143 | bool result; |
ae8162c8 | 16144 | bool temp2 = false ; |
d55e5bfc RD |
16145 | PyObject * obj0 = 0 ; |
16146 | PyObject * obj1 = 0 ; | |
16147 | PyObject * obj2 = 0 ; | |
16148 | char *kwnames[] = { | |
16149 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL | |
16150 | }; | |
16151 | ||
16152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16155 | { | |
16156 | arg2 = wxString_in_helper(obj1); | |
16157 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16158 | temp2 = true; |
d55e5bfc RD |
16159 | } |
16160 | if (obj2) { | |
c32bde28 | 16161 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
16162 | if (PyErr_Occurred()) SWIG_fail; |
16163 | } | |
16164 | { | |
16165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16166 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
16167 | ||
16168 | wxPyEndAllowThreads(__tstate); | |
16169 | if (PyErr_Occurred()) SWIG_fail; | |
16170 | } | |
16171 | { | |
16172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16173 | } | |
16174 | { | |
16175 | if (temp2) | |
16176 | delete arg2; | |
16177 | } | |
16178 | return resultobj; | |
16179 | fail: | |
16180 | { | |
16181 | if (temp2) | |
16182 | delete arg2; | |
16183 | } | |
16184 | return NULL; | |
16185 | } | |
16186 | ||
16187 | ||
c32bde28 | 16188 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16189 | PyObject *resultobj; |
16190 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16191 | wxString *arg2 = 0 ; | |
16192 | bool result; | |
ae8162c8 | 16193 | bool temp2 = false ; |
d55e5bfc RD |
16194 | PyObject * obj0 = 0 ; |
16195 | PyObject * obj1 = 0 ; | |
16196 | char *kwnames[] = { | |
16197 | (char *) "self",(char *) "key", NULL | |
16198 | }; | |
16199 | ||
16200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
16201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16203 | { | |
16204 | arg2 = wxString_in_helper(obj1); | |
16205 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16206 | temp2 = true; |
d55e5bfc RD |
16207 | } |
16208 | { | |
16209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16210 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
16211 | ||
16212 | wxPyEndAllowThreads(__tstate); | |
16213 | if (PyErr_Occurred()) SWIG_fail; | |
16214 | } | |
16215 | { | |
16216 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16217 | } | |
16218 | { | |
16219 | if (temp2) | |
16220 | delete arg2; | |
16221 | } | |
16222 | return resultobj; | |
16223 | fail: | |
16224 | { | |
16225 | if (temp2) | |
16226 | delete arg2; | |
16227 | } | |
16228 | return NULL; | |
16229 | } | |
16230 | ||
16231 | ||
c32bde28 | 16232 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16233 | PyObject *resultobj; |
16234 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16235 | bool result; | |
16236 | PyObject * obj0 = 0 ; | |
16237 | char *kwnames[] = { | |
16238 | (char *) "self", NULL | |
16239 | }; | |
16240 | ||
16241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
16242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16244 | { | |
16245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16246 | result = (bool)(arg1)->DeleteAll(); | |
16247 | ||
16248 | wxPyEndAllowThreads(__tstate); | |
16249 | if (PyErr_Occurred()) SWIG_fail; | |
16250 | } | |
16251 | { | |
16252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16253 | } | |
16254 | return resultobj; | |
16255 | fail: | |
16256 | return NULL; | |
16257 | } | |
16258 | ||
16259 | ||
c32bde28 | 16260 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16261 | PyObject *resultobj; |
16262 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
ae8162c8 | 16263 | bool arg2 = (bool) true ; |
d55e5bfc RD |
16264 | PyObject * obj0 = 0 ; |
16265 | PyObject * obj1 = 0 ; | |
16266 | char *kwnames[] = { | |
16267 | (char *) "self",(char *) "doIt", NULL | |
16268 | }; | |
16269 | ||
16270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
16271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16273 | if (obj1) { | |
c32bde28 | 16274 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16275 | if (PyErr_Occurred()) SWIG_fail; |
16276 | } | |
16277 | { | |
16278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16279 | (arg1)->SetExpandEnvVars(arg2); | |
16280 | ||
16281 | wxPyEndAllowThreads(__tstate); | |
16282 | if (PyErr_Occurred()) SWIG_fail; | |
16283 | } | |
16284 | Py_INCREF(Py_None); resultobj = Py_None; | |
16285 | return resultobj; | |
16286 | fail: | |
16287 | return NULL; | |
16288 | } | |
16289 | ||
16290 | ||
c32bde28 | 16291 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16292 | PyObject *resultobj; |
16293 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16294 | bool result; | |
16295 | PyObject * obj0 = 0 ; | |
16296 | char *kwnames[] = { | |
16297 | (char *) "self", NULL | |
16298 | }; | |
16299 | ||
16300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
16301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16303 | { | |
16304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16305 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
16306 | ||
16307 | wxPyEndAllowThreads(__tstate); | |
16308 | if (PyErr_Occurred()) SWIG_fail; | |
16309 | } | |
16310 | { | |
16311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16312 | } | |
16313 | return resultobj; | |
16314 | fail: | |
16315 | return NULL; | |
16316 | } | |
16317 | ||
16318 | ||
c32bde28 | 16319 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16320 | PyObject *resultobj; |
16321 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
ae8162c8 | 16322 | bool arg2 = (bool) true ; |
d55e5bfc RD |
16323 | PyObject * obj0 = 0 ; |
16324 | PyObject * obj1 = 0 ; | |
16325 | char *kwnames[] = { | |
16326 | (char *) "self",(char *) "doIt", NULL | |
16327 | }; | |
16328 | ||
16329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
16330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16332 | if (obj1) { | |
c32bde28 | 16333 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16334 | if (PyErr_Occurred()) SWIG_fail; |
16335 | } | |
16336 | { | |
16337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16338 | (arg1)->SetRecordDefaults(arg2); | |
16339 | ||
16340 | wxPyEndAllowThreads(__tstate); | |
16341 | if (PyErr_Occurred()) SWIG_fail; | |
16342 | } | |
16343 | Py_INCREF(Py_None); resultobj = Py_None; | |
16344 | return resultobj; | |
16345 | fail: | |
16346 | return NULL; | |
16347 | } | |
16348 | ||
16349 | ||
c32bde28 | 16350 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16351 | PyObject *resultobj; |
16352 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16353 | bool result; | |
16354 | PyObject * obj0 = 0 ; | |
16355 | char *kwnames[] = { | |
16356 | (char *) "self", NULL | |
16357 | }; | |
16358 | ||
16359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
16360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16362 | { | |
16363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16364 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
16365 | ||
16366 | wxPyEndAllowThreads(__tstate); | |
16367 | if (PyErr_Occurred()) SWIG_fail; | |
16368 | } | |
16369 | { | |
16370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16371 | } | |
16372 | return resultobj; | |
16373 | fail: | |
16374 | return NULL; | |
16375 | } | |
16376 | ||
16377 | ||
c32bde28 | 16378 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16379 | PyObject *resultobj; |
16380 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16381 | wxString *arg2 = 0 ; | |
16382 | wxString result; | |
ae8162c8 | 16383 | bool temp2 = false ; |
d55e5bfc RD |
16384 | PyObject * obj0 = 0 ; |
16385 | PyObject * obj1 = 0 ; | |
16386 | char *kwnames[] = { | |
16387 | (char *) "self",(char *) "str", NULL | |
16388 | }; | |
16389 | ||
16390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
16391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16393 | { | |
16394 | arg2 = wxString_in_helper(obj1); | |
16395 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16396 | temp2 = true; |
d55e5bfc RD |
16397 | } |
16398 | { | |
16399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16400 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
16401 | ||
16402 | wxPyEndAllowThreads(__tstate); | |
16403 | if (PyErr_Occurred()) SWIG_fail; | |
16404 | } | |
16405 | { | |
16406 | #if wxUSE_UNICODE | |
16407 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16408 | #else | |
16409 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16410 | #endif | |
16411 | } | |
16412 | { | |
16413 | if (temp2) | |
16414 | delete arg2; | |
16415 | } | |
16416 | return resultobj; | |
16417 | fail: | |
16418 | { | |
16419 | if (temp2) | |
16420 | delete arg2; | |
16421 | } | |
16422 | return NULL; | |
16423 | } | |
16424 | ||
16425 | ||
c32bde28 | 16426 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16427 | PyObject *resultobj; |
16428 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16429 | wxString result; | |
16430 | PyObject * obj0 = 0 ; | |
16431 | char *kwnames[] = { | |
16432 | (char *) "self", NULL | |
16433 | }; | |
16434 | ||
16435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
16436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16438 | { | |
16439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16440 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
16441 | ||
16442 | wxPyEndAllowThreads(__tstate); | |
16443 | if (PyErr_Occurred()) SWIG_fail; | |
16444 | } | |
16445 | { | |
16446 | #if wxUSE_UNICODE | |
16447 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16448 | #else | |
16449 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16450 | #endif | |
16451 | } | |
16452 | return resultobj; | |
16453 | fail: | |
16454 | return NULL; | |
16455 | } | |
16456 | ||
16457 | ||
c32bde28 | 16458 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16459 | PyObject *resultobj; |
16460 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16461 | wxString result; | |
16462 | PyObject * obj0 = 0 ; | |
16463 | char *kwnames[] = { | |
16464 | (char *) "self", NULL | |
16465 | }; | |
16466 | ||
16467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
16468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16470 | { | |
16471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16472 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
16473 | ||
16474 | wxPyEndAllowThreads(__tstate); | |
16475 | if (PyErr_Occurred()) SWIG_fail; | |
16476 | } | |
16477 | { | |
16478 | #if wxUSE_UNICODE | |
16479 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16480 | #else | |
16481 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16482 | #endif | |
16483 | } | |
16484 | return resultobj; | |
16485 | fail: | |
16486 | return NULL; | |
16487 | } | |
16488 | ||
16489 | ||
c32bde28 | 16490 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16491 | PyObject *resultobj; |
16492 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16493 | wxString *arg2 = 0 ; | |
ae8162c8 | 16494 | bool temp2 = false ; |
d55e5bfc RD |
16495 | PyObject * obj0 = 0 ; |
16496 | PyObject * obj1 = 0 ; | |
16497 | char *kwnames[] = { | |
16498 | (char *) "self",(char *) "appName", NULL | |
16499 | }; | |
16500 | ||
16501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
16502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16504 | { | |
16505 | arg2 = wxString_in_helper(obj1); | |
16506 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16507 | temp2 = true; |
d55e5bfc RD |
16508 | } |
16509 | { | |
16510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16511 | (arg1)->SetAppName((wxString const &)*arg2); | |
16512 | ||
16513 | wxPyEndAllowThreads(__tstate); | |
16514 | if (PyErr_Occurred()) SWIG_fail; | |
16515 | } | |
16516 | Py_INCREF(Py_None); resultobj = Py_None; | |
16517 | { | |
16518 | if (temp2) | |
16519 | delete arg2; | |
16520 | } | |
16521 | return resultobj; | |
16522 | fail: | |
16523 | { | |
16524 | if (temp2) | |
16525 | delete arg2; | |
16526 | } | |
16527 | return NULL; | |
16528 | } | |
16529 | ||
16530 | ||
c32bde28 | 16531 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16532 | PyObject *resultobj; |
16533 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16534 | wxString *arg2 = 0 ; | |
ae8162c8 | 16535 | bool temp2 = false ; |
d55e5bfc RD |
16536 | PyObject * obj0 = 0 ; |
16537 | PyObject * obj1 = 0 ; | |
16538 | char *kwnames[] = { | |
16539 | (char *) "self",(char *) "vendorName", NULL | |
16540 | }; | |
16541 | ||
16542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
16543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16545 | { | |
16546 | arg2 = wxString_in_helper(obj1); | |
16547 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16548 | temp2 = true; |
d55e5bfc RD |
16549 | } |
16550 | { | |
16551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16552 | (arg1)->SetVendorName((wxString const &)*arg2); | |
16553 | ||
16554 | wxPyEndAllowThreads(__tstate); | |
16555 | if (PyErr_Occurred()) SWIG_fail; | |
16556 | } | |
16557 | Py_INCREF(Py_None); resultobj = Py_None; | |
16558 | { | |
16559 | if (temp2) | |
16560 | delete arg2; | |
16561 | } | |
16562 | return resultobj; | |
16563 | fail: | |
16564 | { | |
16565 | if (temp2) | |
16566 | delete arg2; | |
16567 | } | |
16568 | return NULL; | |
16569 | } | |
16570 | ||
16571 | ||
c32bde28 | 16572 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16573 | PyObject *resultobj; |
16574 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16575 | long arg2 ; | |
16576 | PyObject * obj0 = 0 ; | |
16577 | PyObject * obj1 = 0 ; | |
16578 | char *kwnames[] = { | |
16579 | (char *) "self",(char *) "style", NULL | |
16580 | }; | |
16581 | ||
16582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
16583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16585 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
16586 | if (PyErr_Occurred()) SWIG_fail; |
16587 | { | |
16588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16589 | (arg1)->SetStyle(arg2); | |
16590 | ||
16591 | wxPyEndAllowThreads(__tstate); | |
16592 | if (PyErr_Occurred()) SWIG_fail; | |
16593 | } | |
16594 | Py_INCREF(Py_None); resultobj = Py_None; | |
16595 | return resultobj; | |
16596 | fail: | |
16597 | return NULL; | |
16598 | } | |
16599 | ||
16600 | ||
c32bde28 | 16601 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16602 | PyObject *resultobj; |
16603 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16604 | long result; | |
16605 | PyObject * obj0 = 0 ; | |
16606 | char *kwnames[] = { | |
16607 | (char *) "self", NULL | |
16608 | }; | |
16609 | ||
16610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
16611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16613 | { | |
16614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16615 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
16616 | ||
16617 | wxPyEndAllowThreads(__tstate); | |
16618 | if (PyErr_Occurred()) SWIG_fail; | |
16619 | } | |
c32bde28 | 16620 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
16621 | return resultobj; |
16622 | fail: | |
16623 | return NULL; | |
16624 | } | |
16625 | ||
16626 | ||
c32bde28 | 16627 | static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16628 | PyObject *obj; |
16629 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16630 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
16631 | Py_INCREF(obj); | |
16632 | return Py_BuildValue((char *)""); | |
16633 | } | |
c32bde28 | 16634 | static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16635 | PyObject *resultobj; |
16636 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16637 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16638 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16639 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16640 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16641 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16642 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16643 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16644 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
16645 | wxConfig *result; | |
ae8162c8 RD |
16646 | bool temp1 = false ; |
16647 | bool temp2 = false ; | |
16648 | bool temp3 = false ; | |
16649 | bool temp4 = false ; | |
d55e5bfc RD |
16650 | PyObject * obj0 = 0 ; |
16651 | PyObject * obj1 = 0 ; | |
16652 | PyObject * obj2 = 0 ; | |
16653 | PyObject * obj3 = 0 ; | |
16654 | PyObject * obj4 = 0 ; | |
16655 | char *kwnames[] = { | |
16656 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16657 | }; | |
16658 | ||
16659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16660 | if (obj0) { | |
16661 | { | |
16662 | arg1 = wxString_in_helper(obj0); | |
16663 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 16664 | temp1 = true; |
d55e5bfc RD |
16665 | } |
16666 | } | |
16667 | if (obj1) { | |
16668 | { | |
16669 | arg2 = wxString_in_helper(obj1); | |
16670 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16671 | temp2 = true; |
d55e5bfc RD |
16672 | } |
16673 | } | |
16674 | if (obj2) { | |
16675 | { | |
16676 | arg3 = wxString_in_helper(obj2); | |
16677 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16678 | temp3 = true; |
d55e5bfc RD |
16679 | } |
16680 | } | |
16681 | if (obj3) { | |
16682 | { | |
16683 | arg4 = wxString_in_helper(obj3); | |
16684 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 16685 | temp4 = true; |
d55e5bfc RD |
16686 | } |
16687 | } | |
16688 | if (obj4) { | |
c32bde28 | 16689 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
16690 | if (PyErr_Occurred()) SWIG_fail; |
16691 | } | |
16692 | { | |
16693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16694 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16695 | ||
16696 | wxPyEndAllowThreads(__tstate); | |
16697 | if (PyErr_Occurred()) SWIG_fail; | |
16698 | } | |
16699 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); | |
16700 | { | |
16701 | if (temp1) | |
16702 | delete arg1; | |
16703 | } | |
16704 | { | |
16705 | if (temp2) | |
16706 | delete arg2; | |
16707 | } | |
16708 | { | |
16709 | if (temp3) | |
16710 | delete arg3; | |
16711 | } | |
16712 | { | |
16713 | if (temp4) | |
16714 | delete arg4; | |
16715 | } | |
16716 | return resultobj; | |
16717 | fail: | |
16718 | { | |
16719 | if (temp1) | |
16720 | delete arg1; | |
16721 | } | |
16722 | { | |
16723 | if (temp2) | |
16724 | delete arg2; | |
16725 | } | |
16726 | { | |
16727 | if (temp3) | |
16728 | delete arg3; | |
16729 | } | |
16730 | { | |
16731 | if (temp4) | |
16732 | delete arg4; | |
16733 | } | |
16734 | return NULL; | |
16735 | } | |
16736 | ||
16737 | ||
c32bde28 | 16738 | static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16739 | PyObject *resultobj; |
16740 | wxConfig *arg1 = (wxConfig *) 0 ; | |
16741 | PyObject * obj0 = 0 ; | |
16742 | char *kwnames[] = { | |
16743 | (char *) "self", NULL | |
16744 | }; | |
16745 | ||
16746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
16747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig, | |
16748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16749 | { | |
16750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16751 | delete arg1; | |
16752 | ||
16753 | wxPyEndAllowThreads(__tstate); | |
16754 | if (PyErr_Occurred()) SWIG_fail; | |
16755 | } | |
16756 | Py_INCREF(Py_None); resultobj = Py_None; | |
16757 | return resultobj; | |
16758 | fail: | |
16759 | return NULL; | |
16760 | } | |
16761 | ||
16762 | ||
c32bde28 | 16763 | static PyObject * Config_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16764 | PyObject *obj; |
16765 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16766 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
16767 | Py_INCREF(obj); | |
16768 | return Py_BuildValue((char *)""); | |
16769 | } | |
c32bde28 | 16770 | static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16771 | PyObject *resultobj; |
16772 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16773 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16774 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16775 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16776 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16777 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16778 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16779 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16780 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
16781 | wxFileConfig *result; | |
ae8162c8 RD |
16782 | bool temp1 = false ; |
16783 | bool temp2 = false ; | |
16784 | bool temp3 = false ; | |
16785 | bool temp4 = false ; | |
d55e5bfc RD |
16786 | PyObject * obj0 = 0 ; |
16787 | PyObject * obj1 = 0 ; | |
16788 | PyObject * obj2 = 0 ; | |
16789 | PyObject * obj3 = 0 ; | |
16790 | PyObject * obj4 = 0 ; | |
16791 | char *kwnames[] = { | |
16792 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16793 | }; | |
16794 | ||
16795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16796 | if (obj0) { | |
16797 | { | |
16798 | arg1 = wxString_in_helper(obj0); | |
16799 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 16800 | temp1 = true; |
d55e5bfc RD |
16801 | } |
16802 | } | |
16803 | if (obj1) { | |
16804 | { | |
16805 | arg2 = wxString_in_helper(obj1); | |
16806 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16807 | temp2 = true; |
d55e5bfc RD |
16808 | } |
16809 | } | |
16810 | if (obj2) { | |
16811 | { | |
16812 | arg3 = wxString_in_helper(obj2); | |
16813 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16814 | temp3 = true; |
d55e5bfc RD |
16815 | } |
16816 | } | |
16817 | if (obj3) { | |
16818 | { | |
16819 | arg4 = wxString_in_helper(obj3); | |
16820 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 16821 | temp4 = true; |
d55e5bfc RD |
16822 | } |
16823 | } | |
16824 | if (obj4) { | |
c32bde28 | 16825 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
16826 | if (PyErr_Occurred()) SWIG_fail; |
16827 | } | |
16828 | { | |
16829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16830 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16831 | ||
16832 | wxPyEndAllowThreads(__tstate); | |
16833 | if (PyErr_Occurred()) SWIG_fail; | |
16834 | } | |
16835 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); | |
16836 | { | |
16837 | if (temp1) | |
16838 | delete arg1; | |
16839 | } | |
16840 | { | |
16841 | if (temp2) | |
16842 | delete arg2; | |
16843 | } | |
16844 | { | |
16845 | if (temp3) | |
16846 | delete arg3; | |
16847 | } | |
16848 | { | |
16849 | if (temp4) | |
16850 | delete arg4; | |
16851 | } | |
16852 | return resultobj; | |
16853 | fail: | |
16854 | { | |
16855 | if (temp1) | |
16856 | delete arg1; | |
16857 | } | |
16858 | { | |
16859 | if (temp2) | |
16860 | delete arg2; | |
16861 | } | |
16862 | { | |
16863 | if (temp3) | |
16864 | delete arg3; | |
16865 | } | |
16866 | { | |
16867 | if (temp4) | |
16868 | delete arg4; | |
16869 | } | |
16870 | return NULL; | |
16871 | } | |
16872 | ||
16873 | ||
c32bde28 | 16874 | static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16875 | PyObject *resultobj; |
16876 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
16877 | PyObject * obj0 = 0 ; | |
16878 | char *kwnames[] = { | |
16879 | (char *) "self", NULL | |
16880 | }; | |
16881 | ||
16882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
16883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig, | |
16884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16885 | { | |
16886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16887 | delete arg1; | |
16888 | ||
16889 | wxPyEndAllowThreads(__tstate); | |
16890 | if (PyErr_Occurred()) SWIG_fail; | |
16891 | } | |
16892 | Py_INCREF(Py_None); resultobj = Py_None; | |
16893 | return resultobj; | |
16894 | fail: | |
16895 | return NULL; | |
16896 | } | |
16897 | ||
16898 | ||
c32bde28 | 16899 | static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16900 | PyObject *obj; |
16901 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16902 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
16903 | Py_INCREF(obj); | |
16904 | return Py_BuildValue((char *)""); | |
16905 | } | |
c32bde28 | 16906 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16907 | PyObject *resultobj; |
16908 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16909 | wxString *arg2 = 0 ; | |
16910 | wxConfigPathChanger *result; | |
ae8162c8 | 16911 | bool temp2 = false ; |
d55e5bfc RD |
16912 | PyObject * obj0 = 0 ; |
16913 | PyObject * obj1 = 0 ; | |
16914 | char *kwnames[] = { | |
16915 | (char *) "config",(char *) "entry", NULL | |
16916 | }; | |
16917 | ||
16918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
16919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16921 | { | |
16922 | arg2 = wxString_in_helper(obj1); | |
16923 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16924 | temp2 = true; |
d55e5bfc RD |
16925 | } |
16926 | { | |
16927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16928 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
16929 | ||
16930 | wxPyEndAllowThreads(__tstate); | |
16931 | if (PyErr_Occurred()) SWIG_fail; | |
16932 | } | |
16933 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); | |
16934 | { | |
16935 | if (temp2) | |
16936 | delete arg2; | |
16937 | } | |
16938 | return resultobj; | |
16939 | fail: | |
16940 | { | |
16941 | if (temp2) | |
16942 | delete arg2; | |
16943 | } | |
16944 | return NULL; | |
16945 | } | |
16946 | ||
16947 | ||
c32bde28 | 16948 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16949 | PyObject *resultobj; |
16950 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16951 | PyObject * obj0 = 0 ; | |
16952 | char *kwnames[] = { | |
16953 | (char *) "self", NULL | |
16954 | }; | |
16955 | ||
16956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
16957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
16958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16959 | { | |
16960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16961 | delete arg1; | |
16962 | ||
16963 | wxPyEndAllowThreads(__tstate); | |
16964 | if (PyErr_Occurred()) SWIG_fail; | |
16965 | } | |
16966 | Py_INCREF(Py_None); resultobj = Py_None; | |
16967 | return resultobj; | |
16968 | fail: | |
16969 | return NULL; | |
16970 | } | |
16971 | ||
16972 | ||
c32bde28 | 16973 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16974 | PyObject *resultobj; |
16975 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16976 | wxString *result; | |
16977 | PyObject * obj0 = 0 ; | |
16978 | char *kwnames[] = { | |
16979 | (char *) "self", NULL | |
16980 | }; | |
16981 | ||
16982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
16983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
16984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16985 | { | |
16986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16987 | { | |
16988 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
16989 | result = (wxString *) &_result_ref; | |
16990 | } | |
16991 | ||
16992 | wxPyEndAllowThreads(__tstate); | |
16993 | if (PyErr_Occurred()) SWIG_fail; | |
16994 | } | |
16995 | { | |
16996 | #if wxUSE_UNICODE | |
16997 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16998 | #else | |
16999 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17000 | #endif | |
17001 | } | |
17002 | return resultobj; | |
17003 | fail: | |
17004 | return NULL; | |
17005 | } | |
17006 | ||
17007 | ||
c32bde28 | 17008 | static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17009 | PyObject *obj; |
17010 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17011 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
17012 | Py_INCREF(obj); | |
17013 | return Py_BuildValue((char *)""); | |
17014 | } | |
c32bde28 | 17015 | static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17016 | PyObject *resultobj; |
17017 | wxString *arg1 = 0 ; | |
17018 | wxString result; | |
ae8162c8 | 17019 | bool temp1 = false ; |
d55e5bfc RD |
17020 | PyObject * obj0 = 0 ; |
17021 | char *kwnames[] = { | |
17022 | (char *) "sz", NULL | |
17023 | }; | |
17024 | ||
17025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
17026 | { | |
17027 | arg1 = wxString_in_helper(obj0); | |
17028 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 17029 | temp1 = true; |
d55e5bfc RD |
17030 | } |
17031 | { | |
17032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17033 | result = wxExpandEnvVars((wxString const &)*arg1); | |
17034 | ||
17035 | wxPyEndAllowThreads(__tstate); | |
17036 | if (PyErr_Occurred()) SWIG_fail; | |
17037 | } | |
17038 | { | |
17039 | #if wxUSE_UNICODE | |
17040 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17041 | #else | |
17042 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17043 | #endif | |
17044 | } | |
17045 | { | |
17046 | if (temp1) | |
17047 | delete arg1; | |
17048 | } | |
17049 | return resultobj; | |
17050 | fail: | |
17051 | { | |
17052 | if (temp1) | |
17053 | delete arg1; | |
17054 | } | |
17055 | return NULL; | |
17056 | } | |
17057 | ||
17058 | ||
c32bde28 | 17059 | static int _wrap_DateFormatStr_set(PyObject *) { |
d55e5bfc RD |
17060 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); |
17061 | return 1; | |
17062 | } | |
17063 | ||
17064 | ||
17065 | static PyObject *_wrap_DateFormatStr_get() { | |
17066 | PyObject *pyobj; | |
17067 | ||
17068 | { | |
17069 | #if wxUSE_UNICODE | |
17070 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
17071 | #else | |
17072 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
17073 | #endif | |
17074 | } | |
17075 | return pyobj; | |
17076 | } | |
17077 | ||
17078 | ||
c32bde28 | 17079 | static int _wrap_TimeSpanFormatStr_set(PyObject *) { |
d55e5bfc RD |
17080 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); |
17081 | return 1; | |
17082 | } | |
17083 | ||
17084 | ||
17085 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
17086 | PyObject *pyobj; | |
17087 | ||
17088 | { | |
17089 | #if wxUSE_UNICODE | |
17090 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
17091 | #else | |
17092 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
17093 | #endif | |
17094 | } | |
17095 | return pyobj; | |
17096 | } | |
17097 | ||
17098 | ||
c32bde28 | 17099 | static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17100 | PyObject *resultobj; |
17101 | int arg1 ; | |
17102 | PyObject * obj0 = 0 ; | |
17103 | char *kwnames[] = { | |
17104 | (char *) "country", NULL | |
17105 | }; | |
17106 | ||
17107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; | |
c32bde28 | 17108 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17109 | if (PyErr_Occurred()) SWIG_fail; |
17110 | { | |
17111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17112 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
17113 | ||
17114 | wxPyEndAllowThreads(__tstate); | |
17115 | if (PyErr_Occurred()) SWIG_fail; | |
17116 | } | |
17117 | Py_INCREF(Py_None); resultobj = Py_None; | |
17118 | return resultobj; | |
17119 | fail: | |
17120 | return NULL; | |
17121 | } | |
17122 | ||
17123 | ||
c32bde28 | 17124 | static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17125 | PyObject *resultobj; |
17126 | int result; | |
17127 | char *kwnames[] = { | |
17128 | NULL | |
17129 | }; | |
17130 | ||
17131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
17132 | { | |
17133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17134 | result = (int)wxDateTime::GetCountry(); | |
17135 | ||
17136 | wxPyEndAllowThreads(__tstate); | |
17137 | if (PyErr_Occurred()) SWIG_fail; | |
17138 | } | |
c32bde28 | 17139 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17140 | return resultobj; |
17141 | fail: | |
17142 | return NULL; | |
17143 | } | |
17144 | ||
17145 | ||
c32bde28 | 17146 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17147 | PyObject *resultobj; |
17148 | int arg1 = (int) wxDateTime::Country_Default ; | |
17149 | bool result; | |
17150 | PyObject * obj0 = 0 ; | |
17151 | char *kwnames[] = { | |
17152 | (char *) "country", NULL | |
17153 | }; | |
17154 | ||
17155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; | |
17156 | if (obj0) { | |
c32bde28 | 17157 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17158 | if (PyErr_Occurred()) SWIG_fail; |
17159 | } | |
17160 | { | |
17161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17162 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
17163 | ||
17164 | wxPyEndAllowThreads(__tstate); | |
17165 | if (PyErr_Occurred()) SWIG_fail; | |
17166 | } | |
17167 | { | |
17168 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17169 | } | |
17170 | return resultobj; | |
17171 | fail: | |
17172 | return NULL; | |
17173 | } | |
17174 | ||
17175 | ||
c32bde28 | 17176 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17177 | PyObject *resultobj; |
17178 | int arg1 = (int) wxDateTime::Gregorian ; | |
17179 | int result; | |
17180 | PyObject * obj0 = 0 ; | |
17181 | char *kwnames[] = { | |
17182 | (char *) "cal", NULL | |
17183 | }; | |
17184 | ||
17185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; | |
17186 | if (obj0) { | |
c32bde28 | 17187 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17188 | if (PyErr_Occurred()) SWIG_fail; |
17189 | } | |
17190 | { | |
17191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17192 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
17193 | ||
17194 | wxPyEndAllowThreads(__tstate); | |
17195 | if (PyErr_Occurred()) SWIG_fail; | |
17196 | } | |
c32bde28 | 17197 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17198 | return resultobj; |
17199 | fail: | |
17200 | return NULL; | |
17201 | } | |
17202 | ||
17203 | ||
c32bde28 | 17204 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17205 | PyObject *resultobj; |
17206 | int arg1 ; | |
17207 | int result; | |
17208 | PyObject * obj0 = 0 ; | |
17209 | char *kwnames[] = { | |
17210 | (char *) "year", NULL | |
17211 | }; | |
17212 | ||
17213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; | |
c32bde28 | 17214 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17215 | if (PyErr_Occurred()) SWIG_fail; |
17216 | { | |
17217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17218 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
17219 | ||
17220 | wxPyEndAllowThreads(__tstate); | |
17221 | if (PyErr_Occurred()) SWIG_fail; | |
17222 | } | |
c32bde28 | 17223 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17224 | return resultobj; |
17225 | fail: | |
17226 | return NULL; | |
17227 | } | |
17228 | ||
17229 | ||
c32bde28 | 17230 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17231 | PyObject *resultobj; |
17232 | int arg1 = (int) wxDateTime::Gregorian ; | |
17233 | int result; | |
17234 | PyObject * obj0 = 0 ; | |
17235 | char *kwnames[] = { | |
17236 | (char *) "cal", NULL | |
17237 | }; | |
17238 | ||
17239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; | |
17240 | if (obj0) { | |
c32bde28 | 17241 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17242 | if (PyErr_Occurred()) SWIG_fail; |
17243 | } | |
17244 | { | |
17245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17246 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
17247 | ||
17248 | wxPyEndAllowThreads(__tstate); | |
17249 | if (PyErr_Occurred()) SWIG_fail; | |
17250 | } | |
c32bde28 | 17251 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17252 | return resultobj; |
17253 | fail: | |
17254 | return NULL; | |
17255 | } | |
17256 | ||
17257 | ||
c32bde28 | 17258 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17259 | PyObject *resultobj; |
17260 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17261 | int arg2 = (int) wxDateTime::Gregorian ; | |
17262 | bool result; | |
17263 | PyObject * obj0 = 0 ; | |
17264 | PyObject * obj1 = 0 ; | |
17265 | char *kwnames[] = { | |
17266 | (char *) "year",(char *) "cal", NULL | |
17267 | }; | |
17268 | ||
17269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; | |
17270 | if (obj0) { | |
c32bde28 | 17271 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17272 | if (PyErr_Occurred()) SWIG_fail; |
17273 | } | |
17274 | if (obj1) { | |
c32bde28 | 17275 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17276 | if (PyErr_Occurred()) SWIG_fail; |
17277 | } | |
17278 | { | |
17279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17280 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
17281 | ||
17282 | wxPyEndAllowThreads(__tstate); | |
17283 | if (PyErr_Occurred()) SWIG_fail; | |
17284 | } | |
17285 | { | |
17286 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17287 | } | |
17288 | return resultobj; | |
17289 | fail: | |
17290 | return NULL; | |
17291 | } | |
17292 | ||
17293 | ||
c32bde28 | 17294 | static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17295 | PyObject *resultobj; |
17296 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17297 | int result; | |
17298 | PyObject * obj0 = 0 ; | |
17299 | char *kwnames[] = { | |
17300 | (char *) "year", NULL | |
17301 | }; | |
17302 | ||
17303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; | |
17304 | if (obj0) { | |
c32bde28 | 17305 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17306 | if (PyErr_Occurred()) SWIG_fail; |
17307 | } | |
17308 | { | |
17309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17310 | result = (int)wxDateTime::GetCentury(arg1); | |
17311 | ||
17312 | wxPyEndAllowThreads(__tstate); | |
17313 | if (PyErr_Occurred()) SWIG_fail; | |
17314 | } | |
c32bde28 | 17315 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17316 | return resultobj; |
17317 | fail: | |
17318 | return NULL; | |
17319 | } | |
17320 | ||
17321 | ||
c32bde28 | 17322 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17323 | PyObject *resultobj; |
17324 | int arg1 ; | |
17325 | int arg2 = (int) wxDateTime::Gregorian ; | |
17326 | int result; | |
17327 | PyObject * obj0 = 0 ; | |
17328 | PyObject * obj1 = 0 ; | |
17329 | char *kwnames[] = { | |
17330 | (char *) "year",(char *) "cal", NULL | |
17331 | }; | |
17332 | ||
17333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 17334 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17335 | if (PyErr_Occurred()) SWIG_fail; |
17336 | if (obj1) { | |
c32bde28 | 17337 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17338 | if (PyErr_Occurred()) SWIG_fail; |
17339 | } | |
17340 | { | |
17341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17342 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); | |
17343 | ||
17344 | wxPyEndAllowThreads(__tstate); | |
17345 | if (PyErr_Occurred()) SWIG_fail; | |
17346 | } | |
c32bde28 | 17347 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17348 | return resultobj; |
17349 | fail: | |
17350 | return NULL; | |
17351 | } | |
17352 | ||
17353 | ||
c32bde28 | 17354 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17355 | PyObject *resultobj; |
17356 | int arg1 ; | |
17357 | int arg2 = (int) wxDateTime::Inv_Year ; | |
17358 | int arg3 = (int) wxDateTime::Gregorian ; | |
17359 | int result; | |
17360 | PyObject * obj0 = 0 ; | |
17361 | PyObject * obj1 = 0 ; | |
17362 | PyObject * obj2 = 0 ; | |
17363 | char *kwnames[] = { | |
17364 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
17365 | }; | |
17366 | ||
17367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c32bde28 | 17368 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17369 | if (PyErr_Occurred()) SWIG_fail; |
17370 | if (obj1) { | |
c32bde28 | 17371 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17372 | if (PyErr_Occurred()) SWIG_fail; |
17373 | } | |
17374 | if (obj2) { | |
c32bde28 | 17375 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17376 | if (PyErr_Occurred()) SWIG_fail; |
17377 | } | |
17378 | { | |
17379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17380 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); | |
17381 | ||
17382 | wxPyEndAllowThreads(__tstate); | |
17383 | if (PyErr_Occurred()) SWIG_fail; | |
17384 | } | |
c32bde28 | 17385 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17386 | return resultobj; |
17387 | fail: | |
17388 | return NULL; | |
17389 | } | |
17390 | ||
17391 | ||
c32bde28 | 17392 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17393 | PyObject *resultobj; |
17394 | int arg1 ; | |
17395 | int arg2 = (int) wxDateTime::Name_Full ; | |
17396 | wxString result; | |
17397 | PyObject * obj0 = 0 ; | |
17398 | PyObject * obj1 = 0 ; | |
17399 | char *kwnames[] = { | |
17400 | (char *) "month",(char *) "flags", NULL | |
17401 | }; | |
17402 | ||
17403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 17404 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17405 | if (PyErr_Occurred()) SWIG_fail; |
17406 | if (obj1) { | |
c32bde28 | 17407 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17408 | if (PyErr_Occurred()) SWIG_fail; |
17409 | } | |
17410 | { | |
17411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17412 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
17413 | ||
17414 | wxPyEndAllowThreads(__tstate); | |
17415 | if (PyErr_Occurred()) SWIG_fail; | |
17416 | } | |
17417 | { | |
17418 | #if wxUSE_UNICODE | |
17419 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17420 | #else | |
17421 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17422 | #endif | |
17423 | } | |
17424 | return resultobj; | |
17425 | fail: | |
17426 | return NULL; | |
17427 | } | |
17428 | ||
17429 | ||
c32bde28 | 17430 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17431 | PyObject *resultobj; |
17432 | int arg1 ; | |
17433 | int arg2 = (int) wxDateTime::Name_Full ; | |
17434 | wxString result; | |
17435 | PyObject * obj0 = 0 ; | |
17436 | PyObject * obj1 = 0 ; | |
17437 | char *kwnames[] = { | |
17438 | (char *) "weekday",(char *) "flags", NULL | |
17439 | }; | |
17440 | ||
17441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 17442 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17443 | if (PyErr_Occurred()) SWIG_fail; |
17444 | if (obj1) { | |
c32bde28 | 17445 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17446 | if (PyErr_Occurred()) SWIG_fail; |
17447 | } | |
17448 | { | |
17449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17450 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
17451 | ||
17452 | wxPyEndAllowThreads(__tstate); | |
17453 | if (PyErr_Occurred()) SWIG_fail; | |
17454 | } | |
17455 | { | |
17456 | #if wxUSE_UNICODE | |
17457 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17458 | #else | |
17459 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17460 | #endif | |
17461 | } | |
17462 | return resultobj; | |
17463 | fail: | |
17464 | return NULL; | |
17465 | } | |
17466 | ||
17467 | ||
c32bde28 | 17468 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17469 | PyObject *resultobj; |
17470 | wxString *arg1 = (wxString *) 0 ; | |
17471 | wxString *arg2 = (wxString *) 0 ; | |
ae8162c8 RD |
17472 | bool temp1 = false ; |
17473 | bool temp2 = false ; | |
d55e5bfc RD |
17474 | PyObject * obj0 = 0 ; |
17475 | PyObject * obj1 = 0 ; | |
17476 | char *kwnames[] = { | |
17477 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
17478 | }; | |
17479 | ||
17480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
17481 | { | |
17482 | arg1 = wxString_in_helper(obj0); | |
17483 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 17484 | temp1 = true; |
d55e5bfc RD |
17485 | } |
17486 | { | |
17487 | arg2 = wxString_in_helper(obj1); | |
17488 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17489 | temp2 = true; |
d55e5bfc RD |
17490 | } |
17491 | { | |
17492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17493 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
17494 | ||
17495 | wxPyEndAllowThreads(__tstate); | |
17496 | if (PyErr_Occurred()) SWIG_fail; | |
17497 | } | |
17498 | Py_INCREF(Py_None); resultobj = Py_None; | |
17499 | { | |
17500 | if (temp1) | |
17501 | delete arg1; | |
17502 | } | |
17503 | { | |
17504 | if (temp2) | |
17505 | delete arg2; | |
17506 | } | |
17507 | return resultobj; | |
17508 | fail: | |
17509 | { | |
17510 | if (temp1) | |
17511 | delete arg1; | |
17512 | } | |
17513 | { | |
17514 | if (temp2) | |
17515 | delete arg2; | |
17516 | } | |
17517 | return NULL; | |
17518 | } | |
17519 | ||
17520 | ||
c32bde28 | 17521 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17522 | PyObject *resultobj; |
17523 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17524 | int arg2 = (int) wxDateTime::Country_Default ; | |
17525 | bool result; | |
17526 | PyObject * obj0 = 0 ; | |
17527 | PyObject * obj1 = 0 ; | |
17528 | char *kwnames[] = { | |
17529 | (char *) "year",(char *) "country", NULL | |
17530 | }; | |
17531 | ||
17532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; | |
17533 | if (obj0) { | |
c32bde28 | 17534 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17535 | if (PyErr_Occurred()) SWIG_fail; |
17536 | } | |
17537 | if (obj1) { | |
c32bde28 | 17538 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17539 | if (PyErr_Occurred()) SWIG_fail; |
17540 | } | |
17541 | { | |
17542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17543 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
17544 | ||
17545 | wxPyEndAllowThreads(__tstate); | |
17546 | if (PyErr_Occurred()) SWIG_fail; | |
17547 | } | |
17548 | { | |
17549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17550 | } | |
17551 | return resultobj; | |
17552 | fail: | |
17553 | return NULL; | |
17554 | } | |
17555 | ||
17556 | ||
c32bde28 | 17557 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17558 | PyObject *resultobj; |
17559 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17560 | int arg2 = (int) wxDateTime::Country_Default ; | |
17561 | wxDateTime result; | |
17562 | PyObject * obj0 = 0 ; | |
17563 | PyObject * obj1 = 0 ; | |
17564 | char *kwnames[] = { | |
17565 | (char *) "year",(char *) "country", NULL | |
17566 | }; | |
17567 | ||
17568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; | |
17569 | if (obj0) { | |
c32bde28 | 17570 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17571 | if (PyErr_Occurred()) SWIG_fail; |
17572 | } | |
17573 | if (obj1) { | |
c32bde28 | 17574 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17575 | if (PyErr_Occurred()) SWIG_fail; |
17576 | } | |
17577 | { | |
17578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17579 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
17580 | ||
17581 | wxPyEndAllowThreads(__tstate); | |
17582 | if (PyErr_Occurred()) SWIG_fail; | |
17583 | } | |
17584 | { | |
17585 | wxDateTime * resultptr; | |
17586 | resultptr = new wxDateTime((wxDateTime &) result); | |
17587 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17588 | } | |
17589 | return resultobj; | |
17590 | fail: | |
17591 | return NULL; | |
17592 | } | |
17593 | ||
17594 | ||
c32bde28 | 17595 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17596 | PyObject *resultobj; |
17597 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17598 | int arg2 = (int) wxDateTime::Country_Default ; | |
17599 | wxDateTime result; | |
17600 | PyObject * obj0 = 0 ; | |
17601 | PyObject * obj1 = 0 ; | |
17602 | char *kwnames[] = { | |
17603 | (char *) "year",(char *) "country", NULL | |
17604 | }; | |
17605 | ||
17606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; | |
17607 | if (obj0) { | |
c32bde28 | 17608 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17609 | if (PyErr_Occurred()) SWIG_fail; |
17610 | } | |
17611 | if (obj1) { | |
c32bde28 | 17612 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17613 | if (PyErr_Occurred()) SWIG_fail; |
17614 | } | |
17615 | { | |
17616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17617 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
17618 | ||
17619 | wxPyEndAllowThreads(__tstate); | |
17620 | if (PyErr_Occurred()) SWIG_fail; | |
17621 | } | |
17622 | { | |
17623 | wxDateTime * resultptr; | |
17624 | resultptr = new wxDateTime((wxDateTime &) result); | |
17625 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17626 | } | |
17627 | return resultobj; | |
17628 | fail: | |
17629 | return NULL; | |
17630 | } | |
17631 | ||
17632 | ||
c32bde28 | 17633 | static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17634 | PyObject *resultobj; |
17635 | wxDateTime result; | |
17636 | char *kwnames[] = { | |
17637 | NULL | |
17638 | }; | |
17639 | ||
17640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
17641 | { | |
17642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17643 | result = wxDateTime::Now(); | |
17644 | ||
17645 | wxPyEndAllowThreads(__tstate); | |
17646 | if (PyErr_Occurred()) SWIG_fail; | |
17647 | } | |
17648 | { | |
17649 | wxDateTime * resultptr; | |
17650 | resultptr = new wxDateTime((wxDateTime &) result); | |
17651 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17652 | } | |
17653 | return resultobj; | |
17654 | fail: | |
17655 | return NULL; | |
17656 | } | |
17657 | ||
17658 | ||
c32bde28 | 17659 | static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17660 | PyObject *resultobj; |
17661 | wxDateTime result; | |
17662 | char *kwnames[] = { | |
17663 | NULL | |
17664 | }; | |
17665 | ||
17666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
17667 | { | |
17668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17669 | result = wxDateTime::UNow(); | |
17670 | ||
17671 | wxPyEndAllowThreads(__tstate); | |
17672 | if (PyErr_Occurred()) SWIG_fail; | |
17673 | } | |
17674 | { | |
17675 | wxDateTime * resultptr; | |
17676 | resultptr = new wxDateTime((wxDateTime &) result); | |
17677 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17678 | } | |
17679 | return resultobj; | |
17680 | fail: | |
17681 | return NULL; | |
17682 | } | |
17683 | ||
17684 | ||
c32bde28 | 17685 | static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17686 | PyObject *resultobj; |
17687 | wxDateTime result; | |
17688 | char *kwnames[] = { | |
17689 | NULL | |
17690 | }; | |
17691 | ||
17692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
17693 | { | |
17694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17695 | result = wxDateTime::Today(); | |
17696 | ||
17697 | wxPyEndAllowThreads(__tstate); | |
17698 | if (PyErr_Occurred()) SWIG_fail; | |
17699 | } | |
17700 | { | |
17701 | wxDateTime * resultptr; | |
17702 | resultptr = new wxDateTime((wxDateTime &) result); | |
17703 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17704 | } | |
17705 | return resultobj; | |
17706 | fail: | |
17707 | return NULL; | |
17708 | } | |
17709 | ||
17710 | ||
c32bde28 | 17711 | static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17712 | PyObject *resultobj; |
17713 | wxDateTime *result; | |
17714 | char *kwnames[] = { | |
17715 | NULL | |
17716 | }; | |
17717 | ||
17718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
17719 | { | |
17720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17721 | result = (wxDateTime *)new wxDateTime(); | |
17722 | ||
17723 | wxPyEndAllowThreads(__tstate); | |
17724 | if (PyErr_Occurred()) SWIG_fail; | |
17725 | } | |
17726 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17727 | return resultobj; | |
17728 | fail: | |
17729 | return NULL; | |
17730 | } | |
17731 | ||
17732 | ||
c32bde28 | 17733 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17734 | PyObject *resultobj; |
17735 | time_t arg1 ; | |
17736 | wxDateTime *result; | |
17737 | PyObject * obj0 = 0 ; | |
17738 | char *kwnames[] = { | |
17739 | (char *) "timet", NULL | |
17740 | }; | |
17741 | ||
17742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
c32bde28 | 17743 | arg1 = (time_t)SWIG_As_unsigned_SS_int(obj0); |
d55e5bfc RD |
17744 | if (PyErr_Occurred()) SWIG_fail; |
17745 | { | |
17746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17747 | result = (wxDateTime *)new wxDateTime(arg1); | |
17748 | ||
17749 | wxPyEndAllowThreads(__tstate); | |
17750 | if (PyErr_Occurred()) SWIG_fail; | |
17751 | } | |
17752 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17753 | return resultobj; | |
17754 | fail: | |
17755 | return NULL; | |
17756 | } | |
17757 | ||
17758 | ||
c32bde28 | 17759 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17760 | PyObject *resultobj; |
17761 | double arg1 ; | |
17762 | wxDateTime *result; | |
17763 | PyObject * obj0 = 0 ; | |
17764 | char *kwnames[] = { | |
17765 | (char *) "jdn", NULL | |
17766 | }; | |
17767 | ||
17768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; | |
c32bde28 | 17769 | arg1 = (double)SWIG_As_double(obj0); |
d55e5bfc RD |
17770 | if (PyErr_Occurred()) SWIG_fail; |
17771 | { | |
17772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17773 | result = (wxDateTime *)new wxDateTime(arg1); | |
17774 | ||
17775 | wxPyEndAllowThreads(__tstate); | |
17776 | if (PyErr_Occurred()) SWIG_fail; | |
17777 | } | |
17778 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17779 | return resultobj; | |
17780 | fail: | |
17781 | return NULL; | |
17782 | } | |
17783 | ||
17784 | ||
c32bde28 | 17785 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17786 | PyObject *resultobj; |
17787 | int arg1 ; | |
17788 | int arg2 = (int) 0 ; | |
17789 | int arg3 = (int) 0 ; | |
17790 | int arg4 = (int) 0 ; | |
17791 | wxDateTime *result; | |
17792 | PyObject * obj0 = 0 ; | |
17793 | PyObject * obj1 = 0 ; | |
17794 | PyObject * obj2 = 0 ; | |
17795 | PyObject * obj3 = 0 ; | |
17796 | char *kwnames[] = { | |
17797 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17798 | }; | |
17799 | ||
17800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
c32bde28 | 17801 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17802 | if (PyErr_Occurred()) SWIG_fail; |
17803 | if (obj1) { | |
c32bde28 | 17804 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17805 | if (PyErr_Occurred()) SWIG_fail; |
17806 | } | |
17807 | if (obj2) { | |
c32bde28 | 17808 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17809 | if (PyErr_Occurred()) SWIG_fail; |
17810 | } | |
17811 | if (obj3) { | |
c32bde28 | 17812 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
17813 | if (PyErr_Occurred()) SWIG_fail; |
17814 | } | |
17815 | { | |
17816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17817 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
17818 | ||
17819 | wxPyEndAllowThreads(__tstate); | |
17820 | if (PyErr_Occurred()) SWIG_fail; | |
17821 | } | |
17822 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17823 | return resultobj; | |
17824 | fail: | |
17825 | return NULL; | |
17826 | } | |
17827 | ||
17828 | ||
c32bde28 | 17829 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17830 | PyObject *resultobj; |
17831 | int arg1 ; | |
17832 | int arg2 = (int) wxDateTime::Inv_Month ; | |
17833 | int arg3 = (int) wxDateTime::Inv_Year ; | |
17834 | int arg4 = (int) 0 ; | |
17835 | int arg5 = (int) 0 ; | |
17836 | int arg6 = (int) 0 ; | |
17837 | int arg7 = (int) 0 ; | |
17838 | wxDateTime *result; | |
17839 | PyObject * obj0 = 0 ; | |
17840 | PyObject * obj1 = 0 ; | |
17841 | PyObject * obj2 = 0 ; | |
17842 | PyObject * obj3 = 0 ; | |
17843 | PyObject * obj4 = 0 ; | |
17844 | PyObject * obj5 = 0 ; | |
17845 | PyObject * obj6 = 0 ; | |
17846 | char *kwnames[] = { | |
17847 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17848 | }; | |
17849 | ||
17850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
c32bde28 | 17851 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17852 | if (PyErr_Occurred()) SWIG_fail; |
17853 | if (obj1) { | |
c32bde28 | 17854 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17855 | if (PyErr_Occurred()) SWIG_fail; |
17856 | } | |
17857 | if (obj2) { | |
c32bde28 | 17858 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17859 | if (PyErr_Occurred()) SWIG_fail; |
17860 | } | |
17861 | if (obj3) { | |
c32bde28 | 17862 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
17863 | if (PyErr_Occurred()) SWIG_fail; |
17864 | } | |
17865 | if (obj4) { | |
c32bde28 | 17866 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
17867 | if (PyErr_Occurred()) SWIG_fail; |
17868 | } | |
17869 | if (obj5) { | |
c32bde28 | 17870 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
17871 | if (PyErr_Occurred()) SWIG_fail; |
17872 | } | |
17873 | if (obj6) { | |
c32bde28 | 17874 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
17875 | if (PyErr_Occurred()) SWIG_fail; |
17876 | } | |
17877 | { | |
17878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17879 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
17880 | ||
17881 | wxPyEndAllowThreads(__tstate); | |
17882 | if (PyErr_Occurred()) SWIG_fail; | |
17883 | } | |
17884 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17885 | return resultobj; | |
17886 | fail: | |
17887 | return NULL; | |
17888 | } | |
17889 | ||
17890 | ||
c32bde28 | 17891 | static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17892 | PyObject *resultobj; |
17893 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17894 | PyObject * obj0 = 0 ; | |
17895 | char *kwnames[] = { | |
17896 | (char *) "self", NULL | |
17897 | }; | |
17898 | ||
17899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
17900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17902 | { | |
17903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17904 | delete arg1; | |
17905 | ||
17906 | wxPyEndAllowThreads(__tstate); | |
17907 | if (PyErr_Occurred()) SWIG_fail; | |
17908 | } | |
17909 | Py_INCREF(Py_None); resultobj = Py_None; | |
17910 | return resultobj; | |
17911 | fail: | |
17912 | return NULL; | |
17913 | } | |
17914 | ||
17915 | ||
c32bde28 | 17916 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17917 | PyObject *resultobj; |
17918 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17919 | wxDateTime *result; | |
17920 | PyObject * obj0 = 0 ; | |
17921 | char *kwnames[] = { | |
17922 | (char *) "self", NULL | |
17923 | }; | |
17924 | ||
17925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
17926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17928 | { | |
17929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17930 | { | |
17931 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
17932 | result = (wxDateTime *) &_result_ref; | |
17933 | } | |
17934 | ||
17935 | wxPyEndAllowThreads(__tstate); | |
17936 | if (PyErr_Occurred()) SWIG_fail; | |
17937 | } | |
17938 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17939 | return resultobj; | |
17940 | fail: | |
17941 | return NULL; | |
17942 | } | |
17943 | ||
17944 | ||
c32bde28 | 17945 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17946 | PyObject *resultobj; |
17947 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17948 | time_t arg2 ; | |
17949 | wxDateTime *result; | |
17950 | PyObject * obj0 = 0 ; | |
17951 | PyObject * obj1 = 0 ; | |
17952 | char *kwnames[] = { | |
17953 | (char *) "self",(char *) "timet", NULL | |
17954 | }; | |
17955 | ||
17956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
17957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17959 | arg2 = (time_t)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
17960 | if (PyErr_Occurred()) SWIG_fail; |
17961 | { | |
17962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17963 | { | |
17964 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17965 | result = (wxDateTime *) &_result_ref; | |
17966 | } | |
17967 | ||
17968 | wxPyEndAllowThreads(__tstate); | |
17969 | if (PyErr_Occurred()) SWIG_fail; | |
17970 | } | |
17971 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17972 | return resultobj; | |
17973 | fail: | |
17974 | return NULL; | |
17975 | } | |
17976 | ||
17977 | ||
c32bde28 | 17978 | static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17979 | PyObject *resultobj; |
17980 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17981 | double arg2 ; | |
17982 | wxDateTime *result; | |
17983 | PyObject * obj0 = 0 ; | |
17984 | PyObject * obj1 = 0 ; | |
17985 | char *kwnames[] = { | |
17986 | (char *) "self",(char *) "jdn", NULL | |
17987 | }; | |
17988 | ||
17989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; | |
17990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17992 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
17993 | if (PyErr_Occurred()) SWIG_fail; |
17994 | { | |
17995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17996 | { | |
17997 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17998 | result = (wxDateTime *) &_result_ref; | |
17999 | } | |
18000 | ||
18001 | wxPyEndAllowThreads(__tstate); | |
18002 | if (PyErr_Occurred()) SWIG_fail; | |
18003 | } | |
18004 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18005 | return resultobj; | |
18006 | fail: | |
18007 | return NULL; | |
18008 | } | |
18009 | ||
18010 | ||
c32bde28 | 18011 | static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18012 | PyObject *resultobj; |
18013 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18014 | int arg2 ; | |
18015 | int arg3 = (int) 0 ; | |
18016 | int arg4 = (int) 0 ; | |
18017 | int arg5 = (int) 0 ; | |
18018 | wxDateTime *result; | |
18019 | PyObject * obj0 = 0 ; | |
18020 | PyObject * obj1 = 0 ; | |
18021 | PyObject * obj2 = 0 ; | |
18022 | PyObject * obj3 = 0 ; | |
18023 | PyObject * obj4 = 0 ; | |
18024 | char *kwnames[] = { | |
18025 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
18026 | }; | |
18027 | ||
18028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18031 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18032 | if (PyErr_Occurred()) SWIG_fail; |
18033 | if (obj2) { | |
c32bde28 | 18034 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18035 | if (PyErr_Occurred()) SWIG_fail; |
18036 | } | |
18037 | if (obj3) { | |
c32bde28 | 18038 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18039 | if (PyErr_Occurred()) SWIG_fail; |
18040 | } | |
18041 | if (obj4) { | |
c32bde28 | 18042 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18043 | if (PyErr_Occurred()) SWIG_fail; |
18044 | } | |
18045 | { | |
18046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18047 | { | |
18048 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
18049 | result = (wxDateTime *) &_result_ref; | |
18050 | } | |
18051 | ||
18052 | wxPyEndAllowThreads(__tstate); | |
18053 | if (PyErr_Occurred()) SWIG_fail; | |
18054 | } | |
18055 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18056 | return resultobj; | |
18057 | fail: | |
18058 | return NULL; | |
18059 | } | |
18060 | ||
18061 | ||
c32bde28 | 18062 | static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18063 | PyObject *resultobj; |
18064 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18065 | int arg2 ; | |
18066 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18067 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18068 | int arg5 = (int) 0 ; | |
18069 | int arg6 = (int) 0 ; | |
18070 | int arg7 = (int) 0 ; | |
18071 | int arg8 = (int) 0 ; | |
18072 | wxDateTime *result; | |
18073 | PyObject * obj0 = 0 ; | |
18074 | PyObject * obj1 = 0 ; | |
18075 | PyObject * obj2 = 0 ; | |
18076 | PyObject * obj3 = 0 ; | |
18077 | PyObject * obj4 = 0 ; | |
18078 | PyObject * obj5 = 0 ; | |
18079 | PyObject * obj6 = 0 ; | |
18080 | PyObject * obj7 = 0 ; | |
18081 | char *kwnames[] = { | |
18082 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
18083 | }; | |
18084 | ||
18085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
18086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18088 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18089 | if (PyErr_Occurred()) SWIG_fail; |
18090 | if (obj2) { | |
c32bde28 | 18091 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18092 | if (PyErr_Occurred()) SWIG_fail; |
18093 | } | |
18094 | if (obj3) { | |
c32bde28 | 18095 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18096 | if (PyErr_Occurred()) SWIG_fail; |
18097 | } | |
18098 | if (obj4) { | |
c32bde28 | 18099 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18100 | if (PyErr_Occurred()) SWIG_fail; |
18101 | } | |
18102 | if (obj5) { | |
c32bde28 | 18103 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
18104 | if (PyErr_Occurred()) SWIG_fail; |
18105 | } | |
18106 | if (obj6) { | |
c32bde28 | 18107 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
18108 | if (PyErr_Occurred()) SWIG_fail; |
18109 | } | |
18110 | if (obj7) { | |
c32bde28 | 18111 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
18112 | if (PyErr_Occurred()) SWIG_fail; |
18113 | } | |
18114 | { | |
18115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18116 | { | |
18117 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
18118 | result = (wxDateTime *) &_result_ref; | |
18119 | } | |
18120 | ||
18121 | wxPyEndAllowThreads(__tstate); | |
18122 | if (PyErr_Occurred()) SWIG_fail; | |
18123 | } | |
18124 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18125 | return resultobj; | |
18126 | fail: | |
18127 | return NULL; | |
18128 | } | |
18129 | ||
18130 | ||
c32bde28 | 18131 | static PyObject *_wrap_DateTime_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18132 | PyObject *resultobj; |
18133 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18134 | wxDateTime *result; | |
18135 | PyObject * obj0 = 0 ; | |
18136 | char *kwnames[] = { | |
18137 | (char *) "self", NULL | |
18138 | }; | |
18139 | ||
18140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
18141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18143 | { | |
18144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18145 | { | |
18146 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
18147 | result = (wxDateTime *) &_result_ref; | |
18148 | } | |
18149 | ||
18150 | wxPyEndAllowThreads(__tstate); | |
18151 | if (PyErr_Occurred()) SWIG_fail; | |
18152 | } | |
18153 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18154 | return resultobj; | |
18155 | fail: | |
18156 | return NULL; | |
18157 | } | |
18158 | ||
18159 | ||
c32bde28 | 18160 | static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18161 | PyObject *resultobj; |
18162 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18163 | int arg2 ; | |
18164 | wxDateTime *result; | |
18165 | PyObject * obj0 = 0 ; | |
18166 | PyObject * obj1 = 0 ; | |
18167 | char *kwnames[] = { | |
18168 | (char *) "self",(char *) "year", NULL | |
18169 | }; | |
18170 | ||
18171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; | |
18172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18174 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18175 | if (PyErr_Occurred()) SWIG_fail; |
18176 | { | |
18177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18178 | { | |
18179 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
18180 | result = (wxDateTime *) &_result_ref; | |
18181 | } | |
18182 | ||
18183 | wxPyEndAllowThreads(__tstate); | |
18184 | if (PyErr_Occurred()) SWIG_fail; | |
18185 | } | |
18186 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18187 | return resultobj; | |
18188 | fail: | |
18189 | return NULL; | |
18190 | } | |
18191 | ||
18192 | ||
c32bde28 | 18193 | static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18194 | PyObject *resultobj; |
18195 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18196 | int arg2 ; | |
18197 | wxDateTime *result; | |
18198 | PyObject * obj0 = 0 ; | |
18199 | PyObject * obj1 = 0 ; | |
18200 | char *kwnames[] = { | |
18201 | (char *) "self",(char *) "month", NULL | |
18202 | }; | |
18203 | ||
18204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; | |
18205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18207 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18208 | if (PyErr_Occurred()) SWIG_fail; |
18209 | { | |
18210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18211 | { | |
18212 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
18213 | result = (wxDateTime *) &_result_ref; | |
18214 | } | |
18215 | ||
18216 | wxPyEndAllowThreads(__tstate); | |
18217 | if (PyErr_Occurred()) SWIG_fail; | |
18218 | } | |
18219 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18220 | return resultobj; | |
18221 | fail: | |
18222 | return NULL; | |
18223 | } | |
18224 | ||
18225 | ||
c32bde28 | 18226 | static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18227 | PyObject *resultobj; |
18228 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18229 | int arg2 ; | |
18230 | wxDateTime *result; | |
18231 | PyObject * obj0 = 0 ; | |
18232 | PyObject * obj1 = 0 ; | |
18233 | char *kwnames[] = { | |
18234 | (char *) "self",(char *) "day", NULL | |
18235 | }; | |
18236 | ||
18237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; | |
18238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18240 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18241 | if (PyErr_Occurred()) SWIG_fail; |
18242 | { | |
18243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18244 | { | |
18245 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
18246 | result = (wxDateTime *) &_result_ref; | |
18247 | } | |
18248 | ||
18249 | wxPyEndAllowThreads(__tstate); | |
18250 | if (PyErr_Occurred()) SWIG_fail; | |
18251 | } | |
18252 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18253 | return resultobj; | |
18254 | fail: | |
18255 | return NULL; | |
18256 | } | |
18257 | ||
18258 | ||
c32bde28 | 18259 | static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18260 | PyObject *resultobj; |
18261 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18262 | int arg2 ; | |
18263 | wxDateTime *result; | |
18264 | PyObject * obj0 = 0 ; | |
18265 | PyObject * obj1 = 0 ; | |
18266 | char *kwnames[] = { | |
18267 | (char *) "self",(char *) "hour", NULL | |
18268 | }; | |
18269 | ||
18270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; | |
18271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18273 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18274 | if (PyErr_Occurred()) SWIG_fail; |
18275 | { | |
18276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18277 | { | |
18278 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
18279 | result = (wxDateTime *) &_result_ref; | |
18280 | } | |
18281 | ||
18282 | wxPyEndAllowThreads(__tstate); | |
18283 | if (PyErr_Occurred()) SWIG_fail; | |
18284 | } | |
18285 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18286 | return resultobj; | |
18287 | fail: | |
18288 | return NULL; | |
18289 | } | |
18290 | ||
18291 | ||
c32bde28 | 18292 | static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18293 | PyObject *resultobj; |
18294 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18295 | int arg2 ; | |
18296 | wxDateTime *result; | |
18297 | PyObject * obj0 = 0 ; | |
18298 | PyObject * obj1 = 0 ; | |
18299 | char *kwnames[] = { | |
18300 | (char *) "self",(char *) "minute", NULL | |
18301 | }; | |
18302 | ||
18303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; | |
18304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18306 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18307 | if (PyErr_Occurred()) SWIG_fail; |
18308 | { | |
18309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18310 | { | |
18311 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
18312 | result = (wxDateTime *) &_result_ref; | |
18313 | } | |
18314 | ||
18315 | wxPyEndAllowThreads(__tstate); | |
18316 | if (PyErr_Occurred()) SWIG_fail; | |
18317 | } | |
18318 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18319 | return resultobj; | |
18320 | fail: | |
18321 | return NULL; | |
18322 | } | |
18323 | ||
18324 | ||
c32bde28 | 18325 | static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18326 | PyObject *resultobj; |
18327 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18328 | int arg2 ; | |
18329 | wxDateTime *result; | |
18330 | PyObject * obj0 = 0 ; | |
18331 | PyObject * obj1 = 0 ; | |
18332 | char *kwnames[] = { | |
18333 | (char *) "self",(char *) "second", NULL | |
18334 | }; | |
18335 | ||
18336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; | |
18337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18339 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18340 | if (PyErr_Occurred()) SWIG_fail; |
18341 | { | |
18342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18343 | { | |
18344 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
18345 | result = (wxDateTime *) &_result_ref; | |
18346 | } | |
18347 | ||
18348 | wxPyEndAllowThreads(__tstate); | |
18349 | if (PyErr_Occurred()) SWIG_fail; | |
18350 | } | |
18351 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18352 | return resultobj; | |
18353 | fail: | |
18354 | return NULL; | |
18355 | } | |
18356 | ||
18357 | ||
c32bde28 | 18358 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18359 | PyObject *resultobj; |
18360 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18361 | int arg2 ; | |
18362 | wxDateTime *result; | |
18363 | PyObject * obj0 = 0 ; | |
18364 | PyObject * obj1 = 0 ; | |
18365 | char *kwnames[] = { | |
18366 | (char *) "self",(char *) "millisecond", NULL | |
18367 | }; | |
18368 | ||
18369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
18370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18372 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18373 | if (PyErr_Occurred()) SWIG_fail; |
18374 | { | |
18375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18376 | { | |
18377 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
18378 | result = (wxDateTime *) &_result_ref; | |
18379 | } | |
18380 | ||
18381 | wxPyEndAllowThreads(__tstate); | |
18382 | if (PyErr_Occurred()) SWIG_fail; | |
18383 | } | |
18384 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18385 | return resultobj; | |
18386 | fail: | |
18387 | return NULL; | |
18388 | } | |
18389 | ||
18390 | ||
c32bde28 | 18391 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18392 | PyObject *resultobj; |
18393 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18394 | int arg2 ; | |
18395 | int arg3 = (int) wxDateTime::Monday_First ; | |
18396 | wxDateTime *result; | |
18397 | PyObject * obj0 = 0 ; | |
18398 | PyObject * obj1 = 0 ; | |
18399 | PyObject * obj2 = 0 ; | |
18400 | char *kwnames[] = { | |
18401 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18402 | }; | |
18403 | ||
18404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18407 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18408 | if (PyErr_Occurred()) SWIG_fail; |
18409 | if (obj2) { | |
c32bde28 | 18410 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18411 | if (PyErr_Occurred()) SWIG_fail; |
18412 | } | |
18413 | { | |
18414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18415 | { | |
18416 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18417 | result = (wxDateTime *) &_result_ref; | |
18418 | } | |
18419 | ||
18420 | wxPyEndAllowThreads(__tstate); | |
18421 | if (PyErr_Occurred()) SWIG_fail; | |
18422 | } | |
18423 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18424 | return resultobj; | |
18425 | fail: | |
18426 | return NULL; | |
18427 | } | |
18428 | ||
18429 | ||
c32bde28 | 18430 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18431 | PyObject *resultobj; |
18432 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18433 | int arg2 ; | |
18434 | int arg3 = (int) wxDateTime::Monday_First ; | |
18435 | wxDateTime result; | |
18436 | PyObject * obj0 = 0 ; | |
18437 | PyObject * obj1 = 0 ; | |
18438 | PyObject * obj2 = 0 ; | |
18439 | char *kwnames[] = { | |
18440 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18441 | }; | |
18442 | ||
18443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18446 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18447 | if (PyErr_Occurred()) SWIG_fail; |
18448 | if (obj2) { | |
c32bde28 | 18449 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18450 | if (PyErr_Occurred()) SWIG_fail; |
18451 | } | |
18452 | { | |
18453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18454 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18455 | ||
18456 | wxPyEndAllowThreads(__tstate); | |
18457 | if (PyErr_Occurred()) SWIG_fail; | |
18458 | } | |
18459 | { | |
18460 | wxDateTime * resultptr; | |
18461 | resultptr = new wxDateTime((wxDateTime &) result); | |
18462 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18463 | } | |
18464 | return resultobj; | |
18465 | fail: | |
18466 | return NULL; | |
18467 | } | |
18468 | ||
18469 | ||
c32bde28 | 18470 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18471 | PyObject *resultobj; |
18472 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18473 | int arg2 ; | |
18474 | wxDateTime *result; | |
18475 | PyObject * obj0 = 0 ; | |
18476 | PyObject * obj1 = 0 ; | |
18477 | char *kwnames[] = { | |
18478 | (char *) "self",(char *) "weekday", NULL | |
18479 | }; | |
18480 | ||
18481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18484 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18485 | if (PyErr_Occurred()) SWIG_fail; |
18486 | { | |
18487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18488 | { | |
18489 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
18490 | result = (wxDateTime *) &_result_ref; | |
18491 | } | |
18492 | ||
18493 | wxPyEndAllowThreads(__tstate); | |
18494 | if (PyErr_Occurred()) SWIG_fail; | |
18495 | } | |
18496 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18497 | return resultobj; | |
18498 | fail: | |
18499 | return NULL; | |
18500 | } | |
18501 | ||
18502 | ||
c32bde28 | 18503 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18504 | PyObject *resultobj; |
18505 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18506 | int arg2 ; | |
18507 | wxDateTime result; | |
18508 | PyObject * obj0 = 0 ; | |
18509 | PyObject * obj1 = 0 ; | |
18510 | char *kwnames[] = { | |
18511 | (char *) "self",(char *) "weekday", NULL | |
18512 | }; | |
18513 | ||
18514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18517 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18518 | if (PyErr_Occurred()) SWIG_fail; |
18519 | { | |
18520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18521 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
18522 | ||
18523 | wxPyEndAllowThreads(__tstate); | |
18524 | if (PyErr_Occurred()) SWIG_fail; | |
18525 | } | |
18526 | { | |
18527 | wxDateTime * resultptr; | |
18528 | resultptr = new wxDateTime((wxDateTime &) result); | |
18529 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18530 | } | |
18531 | return resultobj; | |
18532 | fail: | |
18533 | return NULL; | |
18534 | } | |
18535 | ||
18536 | ||
c32bde28 | 18537 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18538 | PyObject *resultobj; |
18539 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18540 | int arg2 ; | |
18541 | wxDateTime *result; | |
18542 | PyObject * obj0 = 0 ; | |
18543 | PyObject * obj1 = 0 ; | |
18544 | char *kwnames[] = { | |
18545 | (char *) "self",(char *) "weekday", NULL | |
18546 | }; | |
18547 | ||
18548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18551 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18552 | if (PyErr_Occurred()) SWIG_fail; |
18553 | { | |
18554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18555 | { | |
18556 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18557 | result = (wxDateTime *) &_result_ref; | |
18558 | } | |
18559 | ||
18560 | wxPyEndAllowThreads(__tstate); | |
18561 | if (PyErr_Occurred()) SWIG_fail; | |
18562 | } | |
18563 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18564 | return resultobj; | |
18565 | fail: | |
18566 | return NULL; | |
18567 | } | |
18568 | ||
18569 | ||
c32bde28 | 18570 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18571 | PyObject *resultobj; |
18572 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18573 | int arg2 ; | |
18574 | wxDateTime result; | |
18575 | PyObject * obj0 = 0 ; | |
18576 | PyObject * obj1 = 0 ; | |
18577 | char *kwnames[] = { | |
18578 | (char *) "self",(char *) "weekday", NULL | |
18579 | }; | |
18580 | ||
18581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18584 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18585 | if (PyErr_Occurred()) SWIG_fail; |
18586 | { | |
18587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18588 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18589 | ||
18590 | wxPyEndAllowThreads(__tstate); | |
18591 | if (PyErr_Occurred()) SWIG_fail; | |
18592 | } | |
18593 | { | |
18594 | wxDateTime * resultptr; | |
18595 | resultptr = new wxDateTime((wxDateTime &) result); | |
18596 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18597 | } | |
18598 | return resultobj; | |
18599 | fail: | |
18600 | return NULL; | |
18601 | } | |
18602 | ||
18603 | ||
c32bde28 | 18604 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18605 | PyObject *resultobj; |
18606 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18607 | int arg2 ; | |
18608 | int arg3 = (int) 1 ; | |
18609 | int arg4 = (int) wxDateTime::Inv_Month ; | |
18610 | int arg5 = (int) wxDateTime::Inv_Year ; | |
18611 | bool result; | |
18612 | PyObject * obj0 = 0 ; | |
18613 | PyObject * obj1 = 0 ; | |
18614 | PyObject * obj2 = 0 ; | |
18615 | PyObject * obj3 = 0 ; | |
18616 | PyObject * obj4 = 0 ; | |
18617 | char *kwnames[] = { | |
18618 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
18619 | }; | |
18620 | ||
18621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18624 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18625 | if (PyErr_Occurred()) SWIG_fail; |
18626 | if (obj2) { | |
c32bde28 | 18627 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18628 | if (PyErr_Occurred()) SWIG_fail; |
18629 | } | |
18630 | if (obj3) { | |
c32bde28 | 18631 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18632 | if (PyErr_Occurred()) SWIG_fail; |
18633 | } | |
18634 | if (obj4) { | |
c32bde28 | 18635 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18636 | if (PyErr_Occurred()) SWIG_fail; |
18637 | } | |
18638 | { | |
18639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18640 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
18641 | ||
18642 | wxPyEndAllowThreads(__tstate); | |
18643 | if (PyErr_Occurred()) SWIG_fail; | |
18644 | } | |
18645 | { | |
18646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18647 | } | |
18648 | return resultobj; | |
18649 | fail: | |
18650 | return NULL; | |
18651 | } | |
18652 | ||
18653 | ||
c32bde28 | 18654 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18655 | PyObject *resultobj; |
18656 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18657 | int arg2 ; | |
18658 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18659 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18660 | bool result; | |
18661 | PyObject * obj0 = 0 ; | |
18662 | PyObject * obj1 = 0 ; | |
18663 | PyObject * obj2 = 0 ; | |
18664 | PyObject * obj3 = 0 ; | |
18665 | char *kwnames[] = { | |
18666 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18667 | }; | |
18668 | ||
18669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18672 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18673 | if (PyErr_Occurred()) SWIG_fail; |
18674 | if (obj2) { | |
c32bde28 | 18675 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18676 | if (PyErr_Occurred()) SWIG_fail; |
18677 | } | |
18678 | if (obj3) { | |
c32bde28 | 18679 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18680 | if (PyErr_Occurred()) SWIG_fail; |
18681 | } | |
18682 | { | |
18683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18684 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18685 | ||
18686 | wxPyEndAllowThreads(__tstate); | |
18687 | if (PyErr_Occurred()) SWIG_fail; | |
18688 | } | |
18689 | { | |
18690 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18691 | } | |
18692 | return resultobj; | |
18693 | fail: | |
18694 | return NULL; | |
18695 | } | |
18696 | ||
18697 | ||
c32bde28 | 18698 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18699 | PyObject *resultobj; |
18700 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18701 | int arg2 ; | |
18702 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18703 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18704 | wxDateTime result; | |
18705 | PyObject * obj0 = 0 ; | |
18706 | PyObject * obj1 = 0 ; | |
18707 | PyObject * obj2 = 0 ; | |
18708 | PyObject * obj3 = 0 ; | |
18709 | char *kwnames[] = { | |
18710 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18711 | }; | |
18712 | ||
18713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18716 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18717 | if (PyErr_Occurred()) SWIG_fail; |
18718 | if (obj2) { | |
c32bde28 | 18719 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18720 | if (PyErr_Occurred()) SWIG_fail; |
18721 | } | |
18722 | if (obj3) { | |
c32bde28 | 18723 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18724 | if (PyErr_Occurred()) SWIG_fail; |
18725 | } | |
18726 | { | |
18727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18728 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18729 | ||
18730 | wxPyEndAllowThreads(__tstate); | |
18731 | if (PyErr_Occurred()) SWIG_fail; | |
18732 | } | |
18733 | { | |
18734 | wxDateTime * resultptr; | |
18735 | resultptr = new wxDateTime((wxDateTime &) result); | |
18736 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18737 | } | |
18738 | return resultobj; | |
18739 | fail: | |
18740 | return NULL; | |
18741 | } | |
18742 | ||
18743 | ||
c32bde28 | 18744 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18745 | PyObject *resultobj; |
18746 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18747 | int arg2 ; | |
18748 | int arg3 = (int) wxDateTime::Mon ; | |
18749 | int arg4 = (int) wxDateTime::Monday_First ; | |
18750 | bool result; | |
18751 | PyObject * obj0 = 0 ; | |
18752 | PyObject * obj1 = 0 ; | |
18753 | PyObject * obj2 = 0 ; | |
18754 | PyObject * obj3 = 0 ; | |
18755 | char *kwnames[] = { | |
18756 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18757 | }; | |
18758 | ||
18759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18762 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18763 | if (PyErr_Occurred()) SWIG_fail; |
18764 | if (obj2) { | |
c32bde28 | 18765 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18766 | if (PyErr_Occurred()) SWIG_fail; |
18767 | } | |
18768 | if (obj3) { | |
c32bde28 | 18769 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18770 | if (PyErr_Occurred()) SWIG_fail; |
18771 | } | |
18772 | { | |
18773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18774 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18775 | ||
18776 | wxPyEndAllowThreads(__tstate); | |
18777 | if (PyErr_Occurred()) SWIG_fail; | |
18778 | } | |
18779 | { | |
18780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18781 | } | |
18782 | return resultobj; | |
18783 | fail: | |
18784 | return NULL; | |
18785 | } | |
18786 | ||
18787 | ||
c32bde28 | 18788 | static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18789 | PyObject *resultobj; |
18790 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18791 | int arg2 ; | |
18792 | int arg3 = (int) wxDateTime::Mon ; | |
18793 | int arg4 = (int) wxDateTime::Monday_First ; | |
18794 | wxDateTime result; | |
18795 | PyObject * obj0 = 0 ; | |
18796 | PyObject * obj1 = 0 ; | |
18797 | PyObject * obj2 = 0 ; | |
18798 | PyObject * obj3 = 0 ; | |
18799 | char *kwnames[] = { | |
18800 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18801 | }; | |
18802 | ||
18803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18806 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18807 | if (PyErr_Occurred()) SWIG_fail; |
18808 | if (obj2) { | |
c32bde28 | 18809 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18810 | if (PyErr_Occurred()) SWIG_fail; |
18811 | } | |
18812 | if (obj3) { | |
c32bde28 | 18813 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18814 | if (PyErr_Occurred()) SWIG_fail; |
18815 | } | |
18816 | { | |
18817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18818 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18819 | ||
18820 | wxPyEndAllowThreads(__tstate); | |
18821 | if (PyErr_Occurred()) SWIG_fail; | |
18822 | } | |
18823 | { | |
18824 | wxDateTime * resultptr; | |
18825 | resultptr = new wxDateTime((wxDateTime &) result); | |
18826 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18827 | } | |
18828 | return resultobj; | |
18829 | fail: | |
18830 | return NULL; | |
18831 | } | |
18832 | ||
18833 | ||
7e63a440 RD |
18834 | static PyObject *_wrap_DateTime_SetToWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
18835 | PyObject *resultobj; | |
18836 | int arg1 ; | |
18837 | int arg2 ; | |
18838 | int arg3 = (int) wxDateTime::Mon ; | |
18839 | wxDateTime result; | |
18840 | PyObject * obj0 = 0 ; | |
18841 | PyObject * obj1 = 0 ; | |
18842 | PyObject * obj2 = 0 ; | |
18843 | char *kwnames[] = { | |
18844 | (char *) "year",(char *) "numWeek",(char *) "weekday", NULL | |
18845 | }; | |
18846 | ||
18847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18848 | arg1 = (int)SWIG_As_int(obj0); | |
18849 | if (PyErr_Occurred()) SWIG_fail; | |
18850 | arg2 = (int)SWIG_As_int(obj1); | |
18851 | if (PyErr_Occurred()) SWIG_fail; | |
18852 | if (obj2) { | |
18853 | arg3 = (int)SWIG_As_int(obj2); | |
18854 | if (PyErr_Occurred()) SWIG_fail; | |
18855 | } | |
18856 | { | |
18857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18858 | result = wxDateTime::SetToWeekOfYear(arg1,arg2,(wxDateTime::WeekDay )arg3); | |
18859 | ||
18860 | wxPyEndAllowThreads(__tstate); | |
18861 | if (PyErr_Occurred()) SWIG_fail; | |
18862 | } | |
18863 | { | |
18864 | wxDateTime * resultptr; | |
18865 | resultptr = new wxDateTime((wxDateTime &) result); | |
18866 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18867 | } | |
18868 | return resultobj; | |
18869 | fail: | |
18870 | return NULL; | |
18871 | } | |
18872 | ||
18873 | ||
c32bde28 | 18874 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18875 | PyObject *resultobj; |
18876 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18877 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18878 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18879 | wxDateTime *result; | |
18880 | PyObject * obj0 = 0 ; | |
18881 | PyObject * obj1 = 0 ; | |
18882 | PyObject * obj2 = 0 ; | |
18883 | char *kwnames[] = { | |
18884 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18885 | }; | |
18886 | ||
18887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18890 | if (obj1) { | |
c32bde28 | 18891 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18892 | if (PyErr_Occurred()) SWIG_fail; |
18893 | } | |
18894 | if (obj2) { | |
c32bde28 | 18895 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18896 | if (PyErr_Occurred()) SWIG_fail; |
18897 | } | |
18898 | { | |
18899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18900 | { | |
18901 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18902 | result = (wxDateTime *) &_result_ref; | |
18903 | } | |
18904 | ||
18905 | wxPyEndAllowThreads(__tstate); | |
18906 | if (PyErr_Occurred()) SWIG_fail; | |
18907 | } | |
18908 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18909 | return resultobj; | |
18910 | fail: | |
18911 | return NULL; | |
18912 | } | |
18913 | ||
18914 | ||
c32bde28 | 18915 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18916 | PyObject *resultobj; |
18917 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18918 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18919 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18920 | wxDateTime result; | |
18921 | PyObject * obj0 = 0 ; | |
18922 | PyObject * obj1 = 0 ; | |
18923 | PyObject * obj2 = 0 ; | |
18924 | char *kwnames[] = { | |
18925 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18926 | }; | |
18927 | ||
18928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18931 | if (obj1) { | |
c32bde28 | 18932 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18933 | if (PyErr_Occurred()) SWIG_fail; |
18934 | } | |
18935 | if (obj2) { | |
c32bde28 | 18936 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18937 | if (PyErr_Occurred()) SWIG_fail; |
18938 | } | |
18939 | { | |
18940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18941 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18942 | ||
18943 | wxPyEndAllowThreads(__tstate); | |
18944 | if (PyErr_Occurred()) SWIG_fail; | |
18945 | } | |
18946 | { | |
18947 | wxDateTime * resultptr; | |
18948 | resultptr = new wxDateTime((wxDateTime &) result); | |
18949 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18950 | } | |
18951 | return resultobj; | |
18952 | fail: | |
18953 | return NULL; | |
18954 | } | |
18955 | ||
18956 | ||
c32bde28 | 18957 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18958 | PyObject *resultobj; |
18959 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18960 | int arg2 ; | |
18961 | wxDateTime *result; | |
18962 | PyObject * obj0 = 0 ; | |
18963 | PyObject * obj1 = 0 ; | |
18964 | char *kwnames[] = { | |
18965 | (char *) "self",(char *) "yday", NULL | |
18966 | }; | |
18967 | ||
18968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; | |
18969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18971 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18972 | if (PyErr_Occurred()) SWIG_fail; |
18973 | { | |
18974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18975 | { | |
18976 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
18977 | result = (wxDateTime *) &_result_ref; | |
18978 | } | |
18979 | ||
18980 | wxPyEndAllowThreads(__tstate); | |
18981 | if (PyErr_Occurred()) SWIG_fail; | |
18982 | } | |
18983 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18984 | return resultobj; | |
18985 | fail: | |
18986 | return NULL; | |
18987 | } | |
18988 | ||
18989 | ||
c32bde28 | 18990 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18991 | PyObject *resultobj; |
18992 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18993 | int arg2 ; | |
18994 | wxDateTime result; | |
18995 | PyObject * obj0 = 0 ; | |
18996 | PyObject * obj1 = 0 ; | |
18997 | char *kwnames[] = { | |
18998 | (char *) "self",(char *) "yday", NULL | |
18999 | }; | |
19000 | ||
19001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; | |
19002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19004 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19005 | if (PyErr_Occurred()) SWIG_fail; |
19006 | { | |
19007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19008 | result = (arg1)->GetYearDay(arg2); | |
19009 | ||
19010 | wxPyEndAllowThreads(__tstate); | |
19011 | if (PyErr_Occurred()) SWIG_fail; | |
19012 | } | |
19013 | { | |
19014 | wxDateTime * resultptr; | |
19015 | resultptr = new wxDateTime((wxDateTime &) result); | |
19016 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19017 | } | |
19018 | return resultobj; | |
19019 | fail: | |
19020 | return NULL; | |
19021 | } | |
19022 | ||
19023 | ||
c32bde28 | 19024 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19025 | PyObject *resultobj; |
19026 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19027 | double result; | |
19028 | PyObject * obj0 = 0 ; | |
19029 | char *kwnames[] = { | |
19030 | (char *) "self", NULL | |
19031 | }; | |
19032 | ||
19033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
19034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19036 | { | |
19037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19038 | result = (double)(arg1)->GetJulianDayNumber(); | |
19039 | ||
19040 | wxPyEndAllowThreads(__tstate); | |
19041 | if (PyErr_Occurred()) SWIG_fail; | |
19042 | } | |
c32bde28 | 19043 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19044 | return resultobj; |
19045 | fail: | |
19046 | return NULL; | |
19047 | } | |
19048 | ||
19049 | ||
c32bde28 | 19050 | static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19051 | PyObject *resultobj; |
19052 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19053 | double result; | |
19054 | PyObject * obj0 = 0 ; | |
19055 | char *kwnames[] = { | |
19056 | (char *) "self", NULL | |
19057 | }; | |
19058 | ||
19059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
19060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19062 | { | |
19063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19064 | result = (double)(arg1)->GetJDN(); | |
19065 | ||
19066 | wxPyEndAllowThreads(__tstate); | |
19067 | if (PyErr_Occurred()) SWIG_fail; | |
19068 | } | |
c32bde28 | 19069 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19070 | return resultobj; |
19071 | fail: | |
19072 | return NULL; | |
19073 | } | |
19074 | ||
19075 | ||
c32bde28 | 19076 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19077 | PyObject *resultobj; |
19078 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19079 | double result; | |
19080 | PyObject * obj0 = 0 ; | |
19081 | char *kwnames[] = { | |
19082 | (char *) "self", NULL | |
19083 | }; | |
19084 | ||
19085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
19086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19088 | { | |
19089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19090 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
19091 | ||
19092 | wxPyEndAllowThreads(__tstate); | |
19093 | if (PyErr_Occurred()) SWIG_fail; | |
19094 | } | |
c32bde28 | 19095 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19096 | return resultobj; |
19097 | fail: | |
19098 | return NULL; | |
19099 | } | |
19100 | ||
19101 | ||
c32bde28 | 19102 | static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19103 | PyObject *resultobj; |
19104 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19105 | double result; | |
19106 | PyObject * obj0 = 0 ; | |
19107 | char *kwnames[] = { | |
19108 | (char *) "self", NULL | |
19109 | }; | |
19110 | ||
19111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
19112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19114 | { | |
19115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19116 | result = (double)(arg1)->GetMJD(); | |
19117 | ||
19118 | wxPyEndAllowThreads(__tstate); | |
19119 | if (PyErr_Occurred()) SWIG_fail; | |
19120 | } | |
c32bde28 | 19121 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19122 | return resultobj; |
19123 | fail: | |
19124 | return NULL; | |
19125 | } | |
19126 | ||
19127 | ||
c32bde28 | 19128 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19129 | PyObject *resultobj; |
19130 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19131 | double result; | |
19132 | PyObject * obj0 = 0 ; | |
19133 | char *kwnames[] = { | |
19134 | (char *) "self", NULL | |
19135 | }; | |
19136 | ||
19137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
19138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19140 | { | |
19141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19142 | result = (double)(arg1)->GetRataDie(); | |
19143 | ||
19144 | wxPyEndAllowThreads(__tstate); | |
19145 | if (PyErr_Occurred()) SWIG_fail; | |
19146 | } | |
c32bde28 | 19147 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19148 | return resultobj; |
19149 | fail: | |
19150 | return NULL; | |
19151 | } | |
19152 | ||
19153 | ||
c32bde28 | 19154 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19155 | PyObject *resultobj; |
19156 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19157 | wxDateTime::TimeZone *arg2 = 0 ; | |
ae8162c8 | 19158 | bool arg3 = (bool) false ; |
d55e5bfc | 19159 | wxDateTime result; |
ae8162c8 | 19160 | bool temp2 = false ; |
d55e5bfc RD |
19161 | PyObject * obj0 = 0 ; |
19162 | PyObject * obj1 = 0 ; | |
19163 | PyObject * obj2 = 0 ; | |
19164 | char *kwnames[] = { | |
19165 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
19166 | }; | |
19167 | ||
19168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19171 | { | |
19172 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19173 | temp2 = true; |
d55e5bfc RD |
19174 | } |
19175 | if (obj2) { | |
c32bde28 | 19176 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
19177 | if (PyErr_Occurred()) SWIG_fail; |
19178 | } | |
19179 | { | |
19180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19181 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
19182 | ||
19183 | wxPyEndAllowThreads(__tstate); | |
19184 | if (PyErr_Occurred()) SWIG_fail; | |
19185 | } | |
19186 | { | |
19187 | wxDateTime * resultptr; | |
19188 | resultptr = new wxDateTime((wxDateTime &) result); | |
19189 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19190 | } | |
19191 | { | |
19192 | if (temp2) delete arg2; | |
19193 | } | |
19194 | return resultobj; | |
19195 | fail: | |
19196 | { | |
19197 | if (temp2) delete arg2; | |
19198 | } | |
19199 | return NULL; | |
19200 | } | |
19201 | ||
19202 | ||
c32bde28 | 19203 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19204 | PyObject *resultobj; |
19205 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19206 | wxDateTime::TimeZone *arg2 = 0 ; | |
ae8162c8 | 19207 | bool arg3 = (bool) false ; |
d55e5bfc | 19208 | wxDateTime *result; |
ae8162c8 | 19209 | bool temp2 = false ; |
d55e5bfc RD |
19210 | PyObject * obj0 = 0 ; |
19211 | PyObject * obj1 = 0 ; | |
19212 | PyObject * obj2 = 0 ; | |
19213 | char *kwnames[] = { | |
19214 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
19215 | }; | |
19216 | ||
19217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19220 | { | |
19221 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19222 | temp2 = true; |
d55e5bfc RD |
19223 | } |
19224 | if (obj2) { | |
c32bde28 | 19225 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
19226 | if (PyErr_Occurred()) SWIG_fail; |
19227 | } | |
19228 | { | |
19229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19230 | { | |
19231 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
19232 | result = (wxDateTime *) &_result_ref; | |
19233 | } | |
19234 | ||
19235 | wxPyEndAllowThreads(__tstate); | |
19236 | if (PyErr_Occurred()) SWIG_fail; | |
19237 | } | |
19238 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19239 | { | |
19240 | if (temp2) delete arg2; | |
19241 | } | |
19242 | return resultobj; | |
19243 | fail: | |
19244 | { | |
19245 | if (temp2) delete arg2; | |
19246 | } | |
19247 | return NULL; | |
19248 | } | |
19249 | ||
19250 | ||
c32bde28 | 19251 | static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19252 | PyObject *resultobj; |
19253 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
ae8162c8 | 19254 | bool arg2 = (bool) false ; |
d55e5bfc RD |
19255 | wxDateTime result; |
19256 | PyObject * obj0 = 0 ; | |
19257 | PyObject * obj1 = 0 ; | |
19258 | char *kwnames[] = { | |
19259 | (char *) "self",(char *) "noDST", NULL | |
19260 | }; | |
19261 | ||
19262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
19263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19265 | if (obj1) { | |
c32bde28 | 19266 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19267 | if (PyErr_Occurred()) SWIG_fail; |
19268 | } | |
19269 | { | |
19270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19271 | result = (arg1)->ToGMT(arg2); | |
19272 | ||
19273 | wxPyEndAllowThreads(__tstate); | |
19274 | if (PyErr_Occurred()) SWIG_fail; | |
19275 | } | |
19276 | { | |
19277 | wxDateTime * resultptr; | |
19278 | resultptr = new wxDateTime((wxDateTime &) result); | |
19279 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19280 | } | |
19281 | return resultobj; | |
19282 | fail: | |
19283 | return NULL; | |
19284 | } | |
19285 | ||
19286 | ||
c32bde28 | 19287 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19288 | PyObject *resultobj; |
19289 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
ae8162c8 | 19290 | bool arg2 = (bool) false ; |
d55e5bfc RD |
19291 | wxDateTime *result; |
19292 | PyObject * obj0 = 0 ; | |
19293 | PyObject * obj1 = 0 ; | |
19294 | char *kwnames[] = { | |
19295 | (char *) "self",(char *) "noDST", NULL | |
19296 | }; | |
19297 | ||
19298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
19299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19301 | if (obj1) { | |
c32bde28 | 19302 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19303 | if (PyErr_Occurred()) SWIG_fail; |
19304 | } | |
19305 | { | |
19306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19307 | { | |
19308 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
19309 | result = (wxDateTime *) &_result_ref; | |
19310 | } | |
19311 | ||
19312 | wxPyEndAllowThreads(__tstate); | |
19313 | if (PyErr_Occurred()) SWIG_fail; | |
19314 | } | |
19315 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19316 | return resultobj; | |
19317 | fail: | |
19318 | return NULL; | |
19319 | } | |
19320 | ||
19321 | ||
c32bde28 | 19322 | static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19323 | PyObject *resultobj; |
19324 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19325 | int arg2 = (int) wxDateTime::Country_Default ; | |
19326 | int result; | |
19327 | PyObject * obj0 = 0 ; | |
19328 | PyObject * obj1 = 0 ; | |
19329 | char *kwnames[] = { | |
19330 | (char *) "self",(char *) "country", NULL | |
19331 | }; | |
19332 | ||
19333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; | |
19334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19336 | if (obj1) { | |
c32bde28 | 19337 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19338 | if (PyErr_Occurred()) SWIG_fail; |
19339 | } | |
19340 | { | |
19341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19342 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
19343 | ||
19344 | wxPyEndAllowThreads(__tstate); | |
19345 | if (PyErr_Occurred()) SWIG_fail; | |
19346 | } | |
c32bde28 | 19347 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19348 | return resultobj; |
19349 | fail: | |
19350 | return NULL; | |
19351 | } | |
19352 | ||
19353 | ||
c32bde28 | 19354 | static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19355 | PyObject *resultobj; |
19356 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19357 | bool result; | |
19358 | PyObject * obj0 = 0 ; | |
19359 | char *kwnames[] = { | |
19360 | (char *) "self", NULL | |
19361 | }; | |
19362 | ||
19363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
19364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19366 | { | |
19367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19368 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
19369 | ||
19370 | wxPyEndAllowThreads(__tstate); | |
19371 | if (PyErr_Occurred()) SWIG_fail; | |
19372 | } | |
19373 | { | |
19374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19375 | } | |
19376 | return resultobj; | |
19377 | fail: | |
19378 | return NULL; | |
19379 | } | |
19380 | ||
19381 | ||
c32bde28 | 19382 | static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19383 | PyObject *resultobj; |
19384 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19385 | time_t result; | |
19386 | PyObject * obj0 = 0 ; | |
19387 | char *kwnames[] = { | |
19388 | (char *) "self", NULL | |
19389 | }; | |
19390 | ||
19391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
19392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19394 | { | |
19395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19396 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
19397 | ||
19398 | wxPyEndAllowThreads(__tstate); | |
19399 | if (PyErr_Occurred()) SWIG_fail; | |
19400 | } | |
c32bde28 | 19401 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
19402 | return resultobj; |
19403 | fail: | |
19404 | return NULL; | |
19405 | } | |
19406 | ||
19407 | ||
c32bde28 | 19408 | static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19409 | PyObject *resultobj; |
19410 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19411 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19412 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19413 | int result; | |
ae8162c8 | 19414 | bool temp2 = false ; |
d55e5bfc RD |
19415 | PyObject * obj0 = 0 ; |
19416 | PyObject * obj1 = 0 ; | |
19417 | char *kwnames[] = { | |
19418 | (char *) "self",(char *) "tz", NULL | |
19419 | }; | |
19420 | ||
19421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
19422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19424 | if (obj1) { | |
19425 | { | |
19426 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19427 | temp2 = true; |
d55e5bfc RD |
19428 | } |
19429 | } | |
19430 | { | |
19431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19432 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
19433 | ||
19434 | wxPyEndAllowThreads(__tstate); | |
19435 | if (PyErr_Occurred()) SWIG_fail; | |
19436 | } | |
c32bde28 | 19437 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19438 | { |
19439 | if (temp2) delete arg2; | |
19440 | } | |
19441 | return resultobj; | |
19442 | fail: | |
19443 | { | |
19444 | if (temp2) delete arg2; | |
19445 | } | |
19446 | return NULL; | |
19447 | } | |
19448 | ||
19449 | ||
c32bde28 | 19450 | static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19451 | PyObject *resultobj; |
19452 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19453 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19454 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19455 | int result; | |
ae8162c8 | 19456 | bool temp2 = false ; |
d55e5bfc RD |
19457 | PyObject * obj0 = 0 ; |
19458 | PyObject * obj1 = 0 ; | |
19459 | char *kwnames[] = { | |
19460 | (char *) "self",(char *) "tz", NULL | |
19461 | }; | |
19462 | ||
19463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
19464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19466 | if (obj1) { | |
19467 | { | |
19468 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19469 | temp2 = true; |
d55e5bfc RD |
19470 | } |
19471 | } | |
19472 | { | |
19473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19474 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
19475 | ||
19476 | wxPyEndAllowThreads(__tstate); | |
19477 | if (PyErr_Occurred()) SWIG_fail; | |
19478 | } | |
c32bde28 | 19479 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19480 | { |
19481 | if (temp2) delete arg2; | |
19482 | } | |
19483 | return resultobj; | |
19484 | fail: | |
19485 | { | |
19486 | if (temp2) delete arg2; | |
19487 | } | |
19488 | return NULL; | |
19489 | } | |
19490 | ||
19491 | ||
c32bde28 | 19492 | static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19493 | PyObject *resultobj; |
19494 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19495 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19496 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19497 | int result; | |
ae8162c8 | 19498 | bool temp2 = false ; |
d55e5bfc RD |
19499 | PyObject * obj0 = 0 ; |
19500 | PyObject * obj1 = 0 ; | |
19501 | char *kwnames[] = { | |
19502 | (char *) "self",(char *) "tz", NULL | |
19503 | }; | |
19504 | ||
19505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
19506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19508 | if (obj1) { | |
19509 | { | |
19510 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19511 | temp2 = true; |
d55e5bfc RD |
19512 | } |
19513 | } | |
19514 | { | |
19515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19516 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); | |
19517 | ||
19518 | wxPyEndAllowThreads(__tstate); | |
19519 | if (PyErr_Occurred()) SWIG_fail; | |
19520 | } | |
c32bde28 | 19521 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19522 | { |
19523 | if (temp2) delete arg2; | |
19524 | } | |
19525 | return resultobj; | |
19526 | fail: | |
19527 | { | |
19528 | if (temp2) delete arg2; | |
19529 | } | |
19530 | return NULL; | |
19531 | } | |
19532 | ||
19533 | ||
c32bde28 | 19534 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19535 | PyObject *resultobj; |
19536 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19537 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19538 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19539 | int result; | |
ae8162c8 | 19540 | bool temp2 = false ; |
d55e5bfc RD |
19541 | PyObject * obj0 = 0 ; |
19542 | PyObject * obj1 = 0 ; | |
19543 | char *kwnames[] = { | |
19544 | (char *) "self",(char *) "tz", NULL | |
19545 | }; | |
19546 | ||
19547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
19548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19550 | if (obj1) { | |
19551 | { | |
19552 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19553 | temp2 = true; |
d55e5bfc RD |
19554 | } |
19555 | } | |
19556 | { | |
19557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19558 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
19559 | ||
19560 | wxPyEndAllowThreads(__tstate); | |
19561 | if (PyErr_Occurred()) SWIG_fail; | |
19562 | } | |
c32bde28 | 19563 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19564 | { |
19565 | if (temp2) delete arg2; | |
19566 | } | |
19567 | return resultobj; | |
19568 | fail: | |
19569 | { | |
19570 | if (temp2) delete arg2; | |
19571 | } | |
19572 | return NULL; | |
19573 | } | |
19574 | ||
19575 | ||
c32bde28 | 19576 | static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19577 | PyObject *resultobj; |
19578 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19579 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19580 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19581 | int result; | |
ae8162c8 | 19582 | bool temp2 = false ; |
d55e5bfc RD |
19583 | PyObject * obj0 = 0 ; |
19584 | PyObject * obj1 = 0 ; | |
19585 | char *kwnames[] = { | |
19586 | (char *) "self",(char *) "tz", NULL | |
19587 | }; | |
19588 | ||
19589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
19590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19592 | if (obj1) { | |
19593 | { | |
19594 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19595 | temp2 = true; |
d55e5bfc RD |
19596 | } |
19597 | } | |
19598 | { | |
19599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19600 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); | |
19601 | ||
19602 | wxPyEndAllowThreads(__tstate); | |
19603 | if (PyErr_Occurred()) SWIG_fail; | |
19604 | } | |
c32bde28 | 19605 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19606 | { |
19607 | if (temp2) delete arg2; | |
19608 | } | |
19609 | return resultobj; | |
19610 | fail: | |
19611 | { | |
19612 | if (temp2) delete arg2; | |
19613 | } | |
19614 | return NULL; | |
19615 | } | |
19616 | ||
19617 | ||
c32bde28 | 19618 | static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19619 | PyObject *resultobj; |
19620 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19621 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19622 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19623 | int result; | |
ae8162c8 | 19624 | bool temp2 = false ; |
d55e5bfc RD |
19625 | PyObject * obj0 = 0 ; |
19626 | PyObject * obj1 = 0 ; | |
19627 | char *kwnames[] = { | |
19628 | (char *) "self",(char *) "tz", NULL | |
19629 | }; | |
19630 | ||
19631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
19632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19634 | if (obj1) { | |
19635 | { | |
19636 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19637 | temp2 = true; |
d55e5bfc RD |
19638 | } |
19639 | } | |
19640 | { | |
19641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19642 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); | |
19643 | ||
19644 | wxPyEndAllowThreads(__tstate); | |
19645 | if (PyErr_Occurred()) SWIG_fail; | |
19646 | } | |
c32bde28 | 19647 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19648 | { |
19649 | if (temp2) delete arg2; | |
19650 | } | |
19651 | return resultobj; | |
19652 | fail: | |
19653 | { | |
19654 | if (temp2) delete arg2; | |
19655 | } | |
19656 | return NULL; | |
19657 | } | |
19658 | ||
19659 | ||
c32bde28 | 19660 | static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19661 | PyObject *resultobj; |
19662 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19663 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19664 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19665 | int result; | |
ae8162c8 | 19666 | bool temp2 = false ; |
d55e5bfc RD |
19667 | PyObject * obj0 = 0 ; |
19668 | PyObject * obj1 = 0 ; | |
19669 | char *kwnames[] = { | |
19670 | (char *) "self",(char *) "tz", NULL | |
19671 | }; | |
19672 | ||
19673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
19674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19676 | if (obj1) { | |
19677 | { | |
19678 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19679 | temp2 = true; |
d55e5bfc RD |
19680 | } |
19681 | } | |
19682 | { | |
19683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19684 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); | |
19685 | ||
19686 | wxPyEndAllowThreads(__tstate); | |
19687 | if (PyErr_Occurred()) SWIG_fail; | |
19688 | } | |
c32bde28 | 19689 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19690 | { |
19691 | if (temp2) delete arg2; | |
19692 | } | |
19693 | return resultobj; | |
19694 | fail: | |
19695 | { | |
19696 | if (temp2) delete arg2; | |
19697 | } | |
19698 | return NULL; | |
19699 | } | |
19700 | ||
19701 | ||
c32bde28 | 19702 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19703 | PyObject *resultobj; |
19704 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19705 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19706 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19707 | int result; | |
ae8162c8 | 19708 | bool temp2 = false ; |
d55e5bfc RD |
19709 | PyObject * obj0 = 0 ; |
19710 | PyObject * obj1 = 0 ; | |
19711 | char *kwnames[] = { | |
19712 | (char *) "self",(char *) "tz", NULL | |
19713 | }; | |
19714 | ||
19715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
19716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19718 | if (obj1) { | |
19719 | { | |
19720 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19721 | temp2 = true; |
d55e5bfc RD |
19722 | } |
19723 | } | |
19724 | { | |
19725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19726 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); | |
19727 | ||
19728 | wxPyEndAllowThreads(__tstate); | |
19729 | if (PyErr_Occurred()) SWIG_fail; | |
19730 | } | |
c32bde28 | 19731 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19732 | { |
19733 | if (temp2) delete arg2; | |
19734 | } | |
19735 | return resultobj; | |
19736 | fail: | |
19737 | { | |
19738 | if (temp2) delete arg2; | |
19739 | } | |
19740 | return NULL; | |
19741 | } | |
19742 | ||
19743 | ||
c32bde28 | 19744 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19745 | PyObject *resultobj; |
19746 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19747 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19748 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19749 | int result; | |
ae8162c8 | 19750 | bool temp2 = false ; |
d55e5bfc RD |
19751 | PyObject * obj0 = 0 ; |
19752 | PyObject * obj1 = 0 ; | |
19753 | char *kwnames[] = { | |
19754 | (char *) "self",(char *) "tz", NULL | |
19755 | }; | |
19756 | ||
19757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
19758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19760 | if (obj1) { | |
19761 | { | |
19762 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19763 | temp2 = true; |
d55e5bfc RD |
19764 | } |
19765 | } | |
19766 | { | |
19767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19768 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); | |
19769 | ||
19770 | wxPyEndAllowThreads(__tstate); | |
19771 | if (PyErr_Occurred()) SWIG_fail; | |
19772 | } | |
c32bde28 | 19773 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19774 | { |
19775 | if (temp2) delete arg2; | |
19776 | } | |
19777 | return resultobj; | |
19778 | fail: | |
19779 | { | |
19780 | if (temp2) delete arg2; | |
19781 | } | |
19782 | return NULL; | |
19783 | } | |
19784 | ||
19785 | ||
c32bde28 | 19786 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19787 | PyObject *resultobj; |
19788 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19789 | int arg2 = (int) wxDateTime::Monday_First ; | |
19790 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19791 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19792 | int result; | |
ae8162c8 | 19793 | bool temp3 = false ; |
d55e5bfc RD |
19794 | PyObject * obj0 = 0 ; |
19795 | PyObject * obj1 = 0 ; | |
19796 | PyObject * obj2 = 0 ; | |
19797 | char *kwnames[] = { | |
19798 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19799 | }; | |
19800 | ||
19801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19804 | if (obj1) { | |
c32bde28 | 19805 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19806 | if (PyErr_Occurred()) SWIG_fail; |
19807 | } | |
19808 | if (obj2) { | |
19809 | { | |
19810 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
ae8162c8 | 19811 | temp3 = true; |
d55e5bfc RD |
19812 | } |
19813 | } | |
19814 | { | |
19815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19816 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
19817 | ||
19818 | wxPyEndAllowThreads(__tstate); | |
19819 | if (PyErr_Occurred()) SWIG_fail; | |
19820 | } | |
c32bde28 | 19821 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19822 | { |
19823 | if (temp3) delete arg3; | |
19824 | } | |
19825 | return resultobj; | |
19826 | fail: | |
19827 | { | |
19828 | if (temp3) delete arg3; | |
19829 | } | |
19830 | return NULL; | |
19831 | } | |
19832 | ||
19833 | ||
c32bde28 | 19834 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19835 | PyObject *resultobj; |
19836 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19837 | int arg2 = (int) wxDateTime::Monday_First ; | |
19838 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19839 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19840 | int result; | |
ae8162c8 | 19841 | bool temp3 = false ; |
d55e5bfc RD |
19842 | PyObject * obj0 = 0 ; |
19843 | PyObject * obj1 = 0 ; | |
19844 | PyObject * obj2 = 0 ; | |
19845 | char *kwnames[] = { | |
19846 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19847 | }; | |
19848 | ||
19849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19852 | if (obj1) { | |
c32bde28 | 19853 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19854 | if (PyErr_Occurred()) SWIG_fail; |
19855 | } | |
19856 | if (obj2) { | |
19857 | { | |
19858 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
ae8162c8 | 19859 | temp3 = true; |
d55e5bfc RD |
19860 | } |
19861 | } | |
19862 | { | |
19863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19864 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
19865 | ||
19866 | wxPyEndAllowThreads(__tstate); | |
19867 | if (PyErr_Occurred()) SWIG_fail; | |
19868 | } | |
c32bde28 | 19869 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19870 | { |
19871 | if (temp3) delete arg3; | |
19872 | } | |
19873 | return resultobj; | |
19874 | fail: | |
19875 | { | |
19876 | if (temp3) delete arg3; | |
19877 | } | |
19878 | return NULL; | |
19879 | } | |
19880 | ||
19881 | ||
c32bde28 | 19882 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19883 | PyObject *resultobj; |
19884 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19885 | int arg2 = (int) wxDateTime::Country_Default ; | |
19886 | bool result; | |
19887 | PyObject * obj0 = 0 ; | |
19888 | PyObject * obj1 = 0 ; | |
19889 | char *kwnames[] = { | |
19890 | (char *) "self",(char *) "country", NULL | |
19891 | }; | |
19892 | ||
19893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; | |
19894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19896 | if (obj1) { | |
c32bde28 | 19897 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19898 | if (PyErr_Occurred()) SWIG_fail; |
19899 | } | |
19900 | { | |
19901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19902 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
19903 | ||
19904 | wxPyEndAllowThreads(__tstate); | |
19905 | if (PyErr_Occurred()) SWIG_fail; | |
19906 | } | |
19907 | { | |
19908 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19909 | } | |
19910 | return resultobj; | |
19911 | fail: | |
19912 | return NULL; | |
19913 | } | |
19914 | ||
19915 | ||
c32bde28 | 19916 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19917 | PyObject *resultobj; |
19918 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19919 | wxDateTime *arg2 = 0 ; | |
19920 | bool result; | |
19921 | PyObject * obj0 = 0 ; | |
19922 | PyObject * obj1 = 0 ; | |
19923 | char *kwnames[] = { | |
19924 | (char *) "self",(char *) "datetime", NULL | |
19925 | }; | |
19926 | ||
19927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
19928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19930 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19931 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19932 | SWIG_fail; | |
19933 | if (arg2 == NULL) { | |
19934 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19935 | SWIG_fail; | |
19936 | } | |
19937 | { | |
19938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19939 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
19940 | ||
19941 | wxPyEndAllowThreads(__tstate); | |
19942 | if (PyErr_Occurred()) SWIG_fail; | |
19943 | } | |
19944 | { | |
19945 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19946 | } | |
19947 | return resultobj; | |
19948 | fail: | |
19949 | return NULL; | |
19950 | } | |
19951 | ||
19952 | ||
c32bde28 | 19953 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19954 | PyObject *resultobj; |
19955 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19956 | wxDateTime *arg2 = 0 ; | |
19957 | bool result; | |
19958 | PyObject * obj0 = 0 ; | |
19959 | PyObject * obj1 = 0 ; | |
19960 | char *kwnames[] = { | |
19961 | (char *) "self",(char *) "datetime", NULL | |
19962 | }; | |
19963 | ||
19964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
19965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19967 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19968 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19969 | SWIG_fail; | |
19970 | if (arg2 == NULL) { | |
19971 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19972 | SWIG_fail; | |
19973 | } | |
19974 | { | |
19975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19976 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
19977 | ||
19978 | wxPyEndAllowThreads(__tstate); | |
19979 | if (PyErr_Occurred()) SWIG_fail; | |
19980 | } | |
19981 | { | |
19982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19983 | } | |
19984 | return resultobj; | |
19985 | fail: | |
19986 | return NULL; | |
19987 | } | |
19988 | ||
19989 | ||
c32bde28 | 19990 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19991 | PyObject *resultobj; |
19992 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19993 | wxDateTime *arg2 = 0 ; | |
19994 | bool result; | |
19995 | PyObject * obj0 = 0 ; | |
19996 | PyObject * obj1 = 0 ; | |
19997 | char *kwnames[] = { | |
19998 | (char *) "self",(char *) "datetime", NULL | |
19999 | }; | |
20000 | ||
20001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
20002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20004 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20005 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20006 | SWIG_fail; | |
20007 | if (arg2 == NULL) { | |
20008 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20009 | SWIG_fail; | |
20010 | } | |
20011 | { | |
20012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20013 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
20014 | ||
20015 | wxPyEndAllowThreads(__tstate); | |
20016 | if (PyErr_Occurred()) SWIG_fail; | |
20017 | } | |
20018 | { | |
20019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20020 | } | |
20021 | return resultobj; | |
20022 | fail: | |
20023 | return NULL; | |
20024 | } | |
20025 | ||
20026 | ||
c32bde28 | 20027 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20028 | PyObject *resultobj; |
20029 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20030 | wxDateTime *arg2 = 0 ; | |
20031 | wxDateTime *arg3 = 0 ; | |
20032 | bool result; | |
20033 | PyObject * obj0 = 0 ; | |
20034 | PyObject * obj1 = 0 ; | |
20035 | PyObject * obj2 = 0 ; | |
20036 | char *kwnames[] = { | |
20037 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
20038 | }; | |
20039 | ||
20040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20043 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20044 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20045 | SWIG_fail; | |
20046 | if (arg2 == NULL) { | |
20047 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20048 | SWIG_fail; | |
20049 | } | |
20050 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
20051 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20052 | SWIG_fail; | |
20053 | if (arg3 == NULL) { | |
20054 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20055 | SWIG_fail; | |
20056 | } | |
20057 | { | |
20058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20059 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
20060 | ||
20061 | wxPyEndAllowThreads(__tstate); | |
20062 | if (PyErr_Occurred()) SWIG_fail; | |
20063 | } | |
20064 | { | |
20065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20066 | } | |
20067 | return resultobj; | |
20068 | fail: | |
20069 | return NULL; | |
20070 | } | |
20071 | ||
20072 | ||
c32bde28 | 20073 | static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20074 | PyObject *resultobj; |
20075 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20076 | wxDateTime *arg2 = 0 ; | |
20077 | wxDateTime *arg3 = 0 ; | |
20078 | bool result; | |
20079 | PyObject * obj0 = 0 ; | |
20080 | PyObject * obj1 = 0 ; | |
20081 | PyObject * obj2 = 0 ; | |
20082 | char *kwnames[] = { | |
20083 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
20084 | }; | |
20085 | ||
20086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20089 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20090 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20091 | SWIG_fail; | |
20092 | if (arg2 == NULL) { | |
20093 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20094 | SWIG_fail; | |
20095 | } | |
20096 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
20097 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20098 | SWIG_fail; | |
20099 | if (arg3 == NULL) { | |
20100 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20101 | SWIG_fail; | |
20102 | } | |
20103 | { | |
20104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20105 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
20106 | ||
20107 | wxPyEndAllowThreads(__tstate); | |
20108 | if (PyErr_Occurred()) SWIG_fail; | |
20109 | } | |
20110 | { | |
20111 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20112 | } | |
20113 | return resultobj; | |
20114 | fail: | |
20115 | return NULL; | |
20116 | } | |
20117 | ||
20118 | ||
c32bde28 | 20119 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20120 | PyObject *resultobj; |
20121 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20122 | wxDateTime *arg2 = 0 ; | |
20123 | bool result; | |
20124 | PyObject * obj0 = 0 ; | |
20125 | PyObject * obj1 = 0 ; | |
20126 | char *kwnames[] = { | |
20127 | (char *) "self",(char *) "dt", NULL | |
20128 | }; | |
20129 | ||
20130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
20131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20133 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20134 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20135 | SWIG_fail; | |
20136 | if (arg2 == NULL) { | |
20137 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20138 | SWIG_fail; | |
20139 | } | |
20140 | { | |
20141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20142 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
20143 | ||
20144 | wxPyEndAllowThreads(__tstate); | |
20145 | if (PyErr_Occurred()) SWIG_fail; | |
20146 | } | |
20147 | { | |
20148 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20149 | } | |
20150 | return resultobj; | |
20151 | fail: | |
20152 | return NULL; | |
20153 | } | |
20154 | ||
20155 | ||
c32bde28 | 20156 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20157 | PyObject *resultobj; |
20158 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20159 | wxDateTime *arg2 = 0 ; | |
20160 | bool result; | |
20161 | PyObject * obj0 = 0 ; | |
20162 | PyObject * obj1 = 0 ; | |
20163 | char *kwnames[] = { | |
20164 | (char *) "self",(char *) "dt", NULL | |
20165 | }; | |
20166 | ||
20167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
20168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20170 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20171 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20172 | SWIG_fail; | |
20173 | if (arg2 == NULL) { | |
20174 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20175 | SWIG_fail; | |
20176 | } | |
20177 | { | |
20178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20179 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
20180 | ||
20181 | wxPyEndAllowThreads(__tstate); | |
20182 | if (PyErr_Occurred()) SWIG_fail; | |
20183 | } | |
20184 | { | |
20185 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20186 | } | |
20187 | return resultobj; | |
20188 | fail: | |
20189 | return NULL; | |
20190 | } | |
20191 | ||
20192 | ||
c32bde28 | 20193 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20194 | PyObject *resultobj; |
20195 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20196 | wxDateTime *arg2 = 0 ; | |
20197 | wxTimeSpan *arg3 = 0 ; | |
20198 | bool result; | |
20199 | PyObject * obj0 = 0 ; | |
20200 | PyObject * obj1 = 0 ; | |
20201 | PyObject * obj2 = 0 ; | |
20202 | char *kwnames[] = { | |
20203 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
20204 | }; | |
20205 | ||
20206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20209 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20210 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20211 | SWIG_fail; | |
20212 | if (arg2 == NULL) { | |
20213 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20214 | SWIG_fail; | |
20215 | } | |
20216 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan, | |
20217 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20218 | SWIG_fail; | |
20219 | if (arg3 == NULL) { | |
20220 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20221 | SWIG_fail; | |
20222 | } | |
20223 | { | |
20224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20225 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
20226 | ||
20227 | wxPyEndAllowThreads(__tstate); | |
20228 | if (PyErr_Occurred()) SWIG_fail; | |
20229 | } | |
20230 | { | |
20231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20232 | } | |
20233 | return resultobj; | |
20234 | fail: | |
20235 | return NULL; | |
20236 | } | |
20237 | ||
20238 | ||
c32bde28 | 20239 | static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20240 | PyObject *resultobj; |
20241 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20242 | wxTimeSpan *arg2 = 0 ; | |
20243 | wxDateTime *result; | |
20244 | PyObject * obj0 = 0 ; | |
20245 | PyObject * obj1 = 0 ; | |
20246 | char *kwnames[] = { | |
20247 | (char *) "self",(char *) "diff", NULL | |
20248 | }; | |
20249 | ||
20250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
20251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20253 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20254 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20255 | SWIG_fail; | |
20256 | if (arg2 == NULL) { | |
20257 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20258 | SWIG_fail; | |
20259 | } | |
20260 | { | |
20261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20262 | { | |
20263 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
20264 | result = (wxDateTime *) &_result_ref; | |
20265 | } | |
20266 | ||
20267 | wxPyEndAllowThreads(__tstate); | |
20268 | if (PyErr_Occurred()) SWIG_fail; | |
20269 | } | |
20270 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20271 | return resultobj; | |
20272 | fail: | |
20273 | return NULL; | |
20274 | } | |
20275 | ||
20276 | ||
c32bde28 | 20277 | static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20278 | PyObject *resultobj; |
20279 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20280 | wxDateSpan *arg2 = 0 ; | |
20281 | wxDateTime *result; | |
20282 | PyObject * obj0 = 0 ; | |
20283 | PyObject * obj1 = 0 ; | |
20284 | char *kwnames[] = { | |
20285 | (char *) "self",(char *) "diff", NULL | |
20286 | }; | |
20287 | ||
20288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
20289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20291 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20292 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20293 | SWIG_fail; | |
20294 | if (arg2 == NULL) { | |
20295 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20296 | SWIG_fail; | |
20297 | } | |
20298 | { | |
20299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20300 | { | |
20301 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
20302 | result = (wxDateTime *) &_result_ref; | |
20303 | } | |
20304 | ||
20305 | wxPyEndAllowThreads(__tstate); | |
20306 | if (PyErr_Occurred()) SWIG_fail; | |
20307 | } | |
20308 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20309 | return resultobj; | |
20310 | fail: | |
20311 | return NULL; | |
20312 | } | |
20313 | ||
20314 | ||
c32bde28 | 20315 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20316 | PyObject *resultobj; |
20317 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20318 | wxTimeSpan *arg2 = 0 ; | |
20319 | wxDateTime *result; | |
20320 | PyObject * obj0 = 0 ; | |
20321 | PyObject * obj1 = 0 ; | |
20322 | char *kwnames[] = { | |
20323 | (char *) "self",(char *) "diff", NULL | |
20324 | }; | |
20325 | ||
20326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
20327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20329 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20330 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20331 | SWIG_fail; | |
20332 | if (arg2 == NULL) { | |
20333 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20334 | SWIG_fail; | |
20335 | } | |
20336 | { | |
20337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20338 | { | |
20339 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
20340 | result = (wxDateTime *) &_result_ref; | |
20341 | } | |
20342 | ||
20343 | wxPyEndAllowThreads(__tstate); | |
20344 | if (PyErr_Occurred()) SWIG_fail; | |
20345 | } | |
20346 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20347 | return resultobj; | |
20348 | fail: | |
20349 | return NULL; | |
20350 | } | |
20351 | ||
20352 | ||
c32bde28 | 20353 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20354 | PyObject *resultobj; |
20355 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20356 | wxDateSpan *arg2 = 0 ; | |
20357 | wxDateTime *result; | |
20358 | PyObject * obj0 = 0 ; | |
20359 | PyObject * obj1 = 0 ; | |
20360 | char *kwnames[] = { | |
20361 | (char *) "self",(char *) "diff", NULL | |
20362 | }; | |
20363 | ||
20364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
20365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20367 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20368 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20369 | SWIG_fail; | |
20370 | if (arg2 == NULL) { | |
20371 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20372 | SWIG_fail; | |
20373 | } | |
20374 | { | |
20375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20376 | { | |
20377 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
20378 | result = (wxDateTime *) &_result_ref; | |
20379 | } | |
20380 | ||
20381 | wxPyEndAllowThreads(__tstate); | |
20382 | if (PyErr_Occurred()) SWIG_fail; | |
20383 | } | |
20384 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20385 | return resultobj; | |
20386 | fail: | |
20387 | return NULL; | |
20388 | } | |
20389 | ||
20390 | ||
c32bde28 | 20391 | static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20392 | PyObject *resultobj; |
20393 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20394 | wxDateTime *arg2 = 0 ; | |
20395 | wxTimeSpan result; | |
20396 | PyObject * obj0 = 0 ; | |
20397 | PyObject * obj1 = 0 ; | |
20398 | char *kwnames[] = { | |
20399 | (char *) "self",(char *) "dt", NULL | |
20400 | }; | |
20401 | ||
20402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
20403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20405 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20406 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20407 | SWIG_fail; | |
20408 | if (arg2 == NULL) { | |
20409 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20410 | SWIG_fail; | |
20411 | } | |
20412 | { | |
20413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20414 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
20415 | ||
20416 | wxPyEndAllowThreads(__tstate); | |
20417 | if (PyErr_Occurred()) SWIG_fail; | |
20418 | } | |
20419 | { | |
20420 | wxTimeSpan * resultptr; | |
20421 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20422 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
20423 | } | |
20424 | return resultobj; | |
20425 | fail: | |
20426 | return NULL; | |
20427 | } | |
20428 | ||
20429 | ||
c32bde28 | 20430 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
20431 | PyObject *resultobj; |
20432 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20433 | wxTimeSpan *arg2 = 0 ; | |
20434 | wxDateTime *result; | |
20435 | PyObject * obj0 = 0 ; | |
20436 | PyObject * obj1 = 0 ; | |
20437 | ||
20438 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
20439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
c32bde28 | 20440 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
20441 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, |
20442 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20443 | SWIG_fail; | |
20444 | if (arg2 == NULL) { | |
20445 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20446 | SWIG_fail; | |
20447 | } | |
20448 | { | |
20449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20450 | { | |
20451 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
20452 | result = (wxDateTime *) &_result_ref; | |
20453 | } | |
20454 | ||
20455 | wxPyEndAllowThreads(__tstate); | |
20456 | if (PyErr_Occurred()) SWIG_fail; | |
20457 | } | |
c32bde28 | 20458 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
20459 | return resultobj; |
20460 | fail: | |
20461 | return NULL; | |
20462 | } | |
20463 | ||
20464 | ||
c32bde28 | 20465 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
20466 | PyObject *resultobj; |
20467 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20468 | wxDateSpan *arg2 = 0 ; | |
20469 | wxDateTime *result; | |
20470 | PyObject * obj0 = 0 ; | |
20471 | PyObject * obj1 = 0 ; | |
20472 | ||
20473 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
20474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
c32bde28 | 20475 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
20476 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, |
20477 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20478 | SWIG_fail; | |
20479 | if (arg2 == NULL) { | |
20480 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20481 | SWIG_fail; | |
20482 | } | |
20483 | { | |
20484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20485 | { | |
20486 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
20487 | result = (wxDateTime *) &_result_ref; | |
20488 | } | |
20489 | ||
20490 | wxPyEndAllowThreads(__tstate); | |
20491 | if (PyErr_Occurred()) SWIG_fail; | |
20492 | } | |
c32bde28 | 20493 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
20494 | return resultobj; |
20495 | fail: | |
20496 | return NULL; | |
20497 | } | |
20498 | ||
20499 | ||
20500 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
20501 | int argc; | |
20502 | PyObject *argv[3]; | |
20503 | int ii; | |
20504 | ||
20505 | argc = PyObject_Length(args); | |
20506 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20507 | argv[ii] = PyTuple_GetItem(args,ii); | |
20508 | } | |
20509 | if (argc == 2) { | |
20510 | int _v; | |
20511 | { | |
20512 | void *ptr; | |
20513 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20514 | _v = 0; | |
20515 | PyErr_Clear(); | |
20516 | } else { | |
20517 | _v = 1; | |
20518 | } | |
20519 | } | |
20520 | if (_v) { | |
20521 | { | |
20522 | void *ptr; | |
20523 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20524 | _v = 0; | |
20525 | PyErr_Clear(); | |
20526 | } else { | |
20527 | _v = 1; | |
20528 | } | |
20529 | } | |
20530 | if (_v) { | |
20531 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
20532 | } | |
20533 | } | |
20534 | } | |
20535 | if (argc == 2) { | |
20536 | int _v; | |
20537 | { | |
20538 | void *ptr; | |
20539 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20540 | _v = 0; | |
20541 | PyErr_Clear(); | |
20542 | } else { | |
20543 | _v = 1; | |
20544 | } | |
20545 | } | |
20546 | if (_v) { | |
20547 | { | |
20548 | void *ptr; | |
20549 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20550 | _v = 0; | |
20551 | PyErr_Clear(); | |
20552 | } else { | |
20553 | _v = 1; | |
20554 | } | |
20555 | } | |
20556 | if (_v) { | |
20557 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
20558 | } | |
20559 | } | |
20560 | } | |
20561 | ||
20562 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
20563 | return NULL; | |
20564 | } | |
20565 | ||
20566 | ||
c32bde28 | 20567 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
20568 | PyObject *resultobj; |
20569 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20570 | wxTimeSpan *arg2 = 0 ; | |
20571 | wxDateTime *result; | |
20572 | PyObject * obj0 = 0 ; | |
20573 | PyObject * obj1 = 0 ; | |
20574 | ||
20575 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
c32bde28 | 20577 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
20578 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, |
20579 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20580 | SWIG_fail; | |
20581 | if (arg2 == NULL) { | |
20582 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20583 | SWIG_fail; | |
20584 | } | |
20585 | { | |
20586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20587 | { | |
20588 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
20589 | result = (wxDateTime *) &_result_ref; | |
20590 | } | |
20591 | ||
20592 | wxPyEndAllowThreads(__tstate); | |
20593 | if (PyErr_Occurred()) SWIG_fail; | |
20594 | } | |
c32bde28 | 20595 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
20596 | return resultobj; |
20597 | fail: | |
20598 | return NULL; | |
20599 | } | |
20600 | ||
20601 | ||
c32bde28 | 20602 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
20603 | PyObject *resultobj; |
20604 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20605 | wxDateSpan *arg2 = 0 ; | |
20606 | wxDateTime *result; | |
20607 | PyObject * obj0 = 0 ; | |
20608 | PyObject * obj1 = 0 ; | |
20609 | ||
20610 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
c32bde28 | 20612 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
20613 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, |
20614 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20615 | SWIG_fail; | |
20616 | if (arg2 == NULL) { | |
20617 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20618 | SWIG_fail; | |
20619 | } | |
20620 | { | |
20621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20622 | { | |
20623 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
20624 | result = (wxDateTime *) &_result_ref; | |
20625 | } | |
20626 | ||
20627 | wxPyEndAllowThreads(__tstate); | |
20628 | if (PyErr_Occurred()) SWIG_fail; | |
20629 | } | |
c32bde28 | 20630 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
20631 | return resultobj; |
20632 | fail: | |
20633 | return NULL; | |
20634 | } | |
20635 | ||
20636 | ||
20637 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
20638 | int argc; | |
20639 | PyObject *argv[3]; | |
20640 | int ii; | |
20641 | ||
20642 | argc = PyObject_Length(args); | |
20643 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20644 | argv[ii] = PyTuple_GetItem(args,ii); | |
20645 | } | |
20646 | if (argc == 2) { | |
20647 | int _v; | |
20648 | { | |
20649 | void *ptr; | |
20650 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20651 | _v = 0; | |
20652 | PyErr_Clear(); | |
20653 | } else { | |
20654 | _v = 1; | |
20655 | } | |
20656 | } | |
20657 | if (_v) { | |
20658 | { | |
20659 | void *ptr; | |
20660 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20661 | _v = 0; | |
20662 | PyErr_Clear(); | |
20663 | } else { | |
20664 | _v = 1; | |
20665 | } | |
20666 | } | |
20667 | if (_v) { | |
20668 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
20669 | } | |
20670 | } | |
20671 | } | |
20672 | if (argc == 2) { | |
20673 | int _v; | |
20674 | { | |
20675 | void *ptr; | |
20676 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20677 | _v = 0; | |
20678 | PyErr_Clear(); | |
20679 | } else { | |
20680 | _v = 1; | |
20681 | } | |
20682 | } | |
20683 | if (_v) { | |
20684 | { | |
20685 | void *ptr; | |
20686 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20687 | _v = 0; | |
20688 | PyErr_Clear(); | |
20689 | } else { | |
20690 | _v = 1; | |
20691 | } | |
20692 | } | |
20693 | if (_v) { | |
20694 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
20695 | } | |
20696 | } | |
20697 | } | |
20698 | ||
20699 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
20700 | return NULL; | |
20701 | } | |
20702 | ||
20703 | ||
c32bde28 | 20704 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
20705 | PyObject *resultobj; |
20706 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20707 | wxTimeSpan *arg2 = 0 ; | |
20708 | wxDateTime result; | |
20709 | PyObject * obj0 = 0 ; | |
20710 | PyObject * obj1 = 0 ; | |
20711 | ||
20712 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
20713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20715 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20716 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20717 | SWIG_fail; | |
20718 | if (arg2 == NULL) { | |
20719 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20720 | SWIG_fail; | |
20721 | } | |
20722 | { | |
20723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20724 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
20725 | ||
20726 | wxPyEndAllowThreads(__tstate); | |
20727 | if (PyErr_Occurred()) SWIG_fail; | |
20728 | } | |
20729 | { | |
20730 | wxDateTime * resultptr; | |
20731 | resultptr = new wxDateTime((wxDateTime &) result); | |
20732 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20733 | } | |
20734 | return resultobj; | |
20735 | fail: | |
20736 | return NULL; | |
20737 | } | |
20738 | ||
20739 | ||
c32bde28 | 20740 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
20741 | PyObject *resultobj; |
20742 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20743 | wxDateSpan *arg2 = 0 ; | |
20744 | wxDateTime result; | |
20745 | PyObject * obj0 = 0 ; | |
20746 | PyObject * obj1 = 0 ; | |
20747 | ||
20748 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
20749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20751 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20752 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20753 | SWIG_fail; | |
20754 | if (arg2 == NULL) { | |
20755 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20756 | SWIG_fail; | |
20757 | } | |
20758 | { | |
20759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20760 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
20761 | ||
20762 | wxPyEndAllowThreads(__tstate); | |
20763 | if (PyErr_Occurred()) SWIG_fail; | |
20764 | } | |
20765 | { | |
20766 | wxDateTime * resultptr; | |
20767 | resultptr = new wxDateTime((wxDateTime &) result); | |
20768 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20769 | } | |
20770 | return resultobj; | |
20771 | fail: | |
20772 | return NULL; | |
20773 | } | |
20774 | ||
20775 | ||
20776 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
20777 | int argc; | |
20778 | PyObject *argv[3]; | |
20779 | int ii; | |
20780 | ||
20781 | argc = PyObject_Length(args); | |
20782 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20783 | argv[ii] = PyTuple_GetItem(args,ii); | |
20784 | } | |
20785 | if (argc == 2) { | |
20786 | int _v; | |
20787 | { | |
20788 | void *ptr; | |
20789 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20790 | _v = 0; | |
20791 | PyErr_Clear(); | |
20792 | } else { | |
20793 | _v = 1; | |
20794 | } | |
20795 | } | |
20796 | if (_v) { | |
20797 | { | |
20798 | void *ptr; | |
20799 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20800 | _v = 0; | |
20801 | PyErr_Clear(); | |
20802 | } else { | |
20803 | _v = 1; | |
20804 | } | |
20805 | } | |
20806 | if (_v) { | |
20807 | return _wrap_DateTime___add____SWIG_0(self,args); | |
20808 | } | |
20809 | } | |
20810 | } | |
20811 | if (argc == 2) { | |
20812 | int _v; | |
20813 | { | |
20814 | void *ptr; | |
20815 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20816 | _v = 0; | |
20817 | PyErr_Clear(); | |
20818 | } else { | |
20819 | _v = 1; | |
20820 | } | |
20821 | } | |
20822 | if (_v) { | |
20823 | { | |
20824 | void *ptr; | |
20825 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20826 | _v = 0; | |
20827 | PyErr_Clear(); | |
20828 | } else { | |
20829 | _v = 1; | |
20830 | } | |
20831 | } | |
20832 | if (_v) { | |
20833 | return _wrap_DateTime___add____SWIG_1(self,args); | |
20834 | } | |
20835 | } | |
20836 | } | |
20837 | ||
20838 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
20839 | return NULL; | |
20840 | } | |
20841 | ||
20842 | ||
c32bde28 | 20843 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
20844 | PyObject *resultobj; |
20845 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20846 | wxDateTime *arg2 = 0 ; | |
20847 | wxTimeSpan result; | |
20848 | PyObject * obj0 = 0 ; | |
20849 | PyObject * obj1 = 0 ; | |
20850 | ||
20851 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20854 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20855 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20856 | SWIG_fail; | |
20857 | if (arg2 == NULL) { | |
20858 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20859 | SWIG_fail; | |
20860 | } | |
20861 | { | |
20862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20863 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
20864 | ||
20865 | wxPyEndAllowThreads(__tstate); | |
20866 | if (PyErr_Occurred()) SWIG_fail; | |
20867 | } | |
20868 | { | |
20869 | wxTimeSpan * resultptr; | |
20870 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20871 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
20872 | } | |
20873 | return resultobj; | |
20874 | fail: | |
20875 | return NULL; | |
20876 | } | |
20877 | ||
20878 | ||
c32bde28 | 20879 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
20880 | PyObject *resultobj; |
20881 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20882 | wxTimeSpan *arg2 = 0 ; | |
20883 | wxDateTime result; | |
20884 | PyObject * obj0 = 0 ; | |
20885 | PyObject * obj1 = 0 ; | |
20886 | ||
20887 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20890 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20891 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20892 | SWIG_fail; | |
20893 | if (arg2 == NULL) { | |
20894 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20895 | SWIG_fail; | |
20896 | } | |
20897 | { | |
20898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20899 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
20900 | ||
20901 | wxPyEndAllowThreads(__tstate); | |
20902 | if (PyErr_Occurred()) SWIG_fail; | |
20903 | } | |
20904 | { | |
20905 | wxDateTime * resultptr; | |
20906 | resultptr = new wxDateTime((wxDateTime &) result); | |
20907 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20908 | } | |
20909 | return resultobj; | |
20910 | fail: | |
20911 | return NULL; | |
20912 | } | |
20913 | ||
20914 | ||
c32bde28 | 20915 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
20916 | PyObject *resultobj; |
20917 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20918 | wxDateSpan *arg2 = 0 ; | |
20919 | wxDateTime result; | |
20920 | PyObject * obj0 = 0 ; | |
20921 | PyObject * obj1 = 0 ; | |
20922 | ||
20923 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20926 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20927 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20928 | SWIG_fail; | |
20929 | if (arg2 == NULL) { | |
20930 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20931 | SWIG_fail; | |
20932 | } | |
20933 | { | |
20934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20935 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
20936 | ||
20937 | wxPyEndAllowThreads(__tstate); | |
20938 | if (PyErr_Occurred()) SWIG_fail; | |
20939 | } | |
20940 | { | |
20941 | wxDateTime * resultptr; | |
20942 | resultptr = new wxDateTime((wxDateTime &) result); | |
20943 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20944 | } | |
20945 | return resultobj; | |
20946 | fail: | |
20947 | return NULL; | |
20948 | } | |
20949 | ||
20950 | ||
20951 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
20952 | int argc; | |
20953 | PyObject *argv[3]; | |
20954 | int ii; | |
20955 | ||
20956 | argc = PyObject_Length(args); | |
20957 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20958 | argv[ii] = PyTuple_GetItem(args,ii); | |
20959 | } | |
20960 | if (argc == 2) { | |
20961 | int _v; | |
20962 | { | |
20963 | void *ptr; | |
20964 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20965 | _v = 0; | |
20966 | PyErr_Clear(); | |
20967 | } else { | |
20968 | _v = 1; | |
20969 | } | |
20970 | } | |
20971 | if (_v) { | |
20972 | { | |
20973 | void *ptr; | |
20974 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20975 | _v = 0; | |
20976 | PyErr_Clear(); | |
20977 | } else { | |
20978 | _v = 1; | |
20979 | } | |
20980 | } | |
20981 | if (_v) { | |
20982 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
20983 | } | |
20984 | } | |
20985 | } | |
20986 | if (argc == 2) { | |
20987 | int _v; | |
20988 | { | |
20989 | void *ptr; | |
20990 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20991 | _v = 0; | |
20992 | PyErr_Clear(); | |
20993 | } else { | |
20994 | _v = 1; | |
20995 | } | |
20996 | } | |
20997 | if (_v) { | |
20998 | { | |
20999 | void *ptr; | |
21000 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
21001 | _v = 0; | |
21002 | PyErr_Clear(); | |
21003 | } else { | |
21004 | _v = 1; | |
21005 | } | |
21006 | } | |
21007 | if (_v) { | |
21008 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
21009 | } | |
21010 | } | |
21011 | } | |
21012 | if (argc == 2) { | |
21013 | int _v; | |
21014 | { | |
21015 | void *ptr; | |
21016 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
21017 | _v = 0; | |
21018 | PyErr_Clear(); | |
21019 | } else { | |
21020 | _v = 1; | |
21021 | } | |
21022 | } | |
21023 | if (_v) { | |
21024 | { | |
21025 | void *ptr; | |
21026 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
21027 | _v = 0; | |
21028 | PyErr_Clear(); | |
21029 | } else { | |
21030 | _v = 1; | |
21031 | } | |
21032 | } | |
21033 | if (_v) { | |
21034 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
21035 | } | |
21036 | } | |
21037 | } | |
21038 | ||
21039 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
21040 | return NULL; | |
21041 | } | |
21042 | ||
21043 | ||
c32bde28 | 21044 | static PyObject *_wrap_DateTime___lt__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21045 | PyObject *resultobj; |
21046 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21047 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21048 | bool result; | |
21049 | PyObject * obj0 = 0 ; | |
21050 | PyObject * obj1 = 0 ; | |
21051 | ||
21052 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
21053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21055 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21057 | { | |
21058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21059 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); | |
21060 | ||
21061 | wxPyEndAllowThreads(__tstate); | |
21062 | if (PyErr_Occurred()) SWIG_fail; | |
21063 | } | |
21064 | { | |
21065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21066 | } | |
21067 | return resultobj; | |
21068 | fail: | |
21069 | return NULL; | |
21070 | } | |
21071 | ||
21072 | ||
c32bde28 | 21073 | static PyObject *_wrap_DateTime___le__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21074 | PyObject *resultobj; |
21075 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21076 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21077 | bool result; | |
21078 | PyObject * obj0 = 0 ; | |
21079 | PyObject * obj1 = 0 ; | |
21080 | ||
21081 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
21082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21084 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21086 | { | |
21087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21088 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); | |
21089 | ||
21090 | wxPyEndAllowThreads(__tstate); | |
21091 | if (PyErr_Occurred()) SWIG_fail; | |
21092 | } | |
21093 | { | |
21094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21095 | } | |
21096 | return resultobj; | |
21097 | fail: | |
21098 | return NULL; | |
21099 | } | |
21100 | ||
21101 | ||
c32bde28 | 21102 | static PyObject *_wrap_DateTime___gt__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21103 | PyObject *resultobj; |
21104 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21105 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21106 | bool result; | |
21107 | PyObject * obj0 = 0 ; | |
21108 | PyObject * obj1 = 0 ; | |
21109 | ||
21110 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
21111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21113 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21115 | { | |
21116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21117 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); | |
21118 | ||
21119 | wxPyEndAllowThreads(__tstate); | |
21120 | if (PyErr_Occurred()) SWIG_fail; | |
21121 | } | |
21122 | { | |
21123 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21124 | } | |
21125 | return resultobj; | |
21126 | fail: | |
21127 | return NULL; | |
21128 | } | |
21129 | ||
21130 | ||
c32bde28 | 21131 | static PyObject *_wrap_DateTime___ge__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21132 | PyObject *resultobj; |
21133 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21134 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21135 | bool result; | |
21136 | PyObject * obj0 = 0 ; | |
21137 | PyObject * obj1 = 0 ; | |
21138 | ||
21139 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
21140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21142 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21144 | { | |
21145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21146 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); | |
21147 | ||
21148 | wxPyEndAllowThreads(__tstate); | |
21149 | if (PyErr_Occurred()) SWIG_fail; | |
21150 | } | |
21151 | { | |
21152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21153 | } | |
21154 | return resultobj; | |
21155 | fail: | |
21156 | return NULL; | |
21157 | } | |
21158 | ||
21159 | ||
c32bde28 | 21160 | static PyObject *_wrap_DateTime___eq__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21161 | PyObject *resultobj; |
21162 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21163 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21164 | bool result; | |
21165 | PyObject * obj0 = 0 ; | |
21166 | PyObject * obj1 = 0 ; | |
21167 | ||
21168 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
21169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21171 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21173 | { | |
21174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21175 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); | |
21176 | ||
21177 | wxPyEndAllowThreads(__tstate); | |
21178 | if (PyErr_Occurred()) SWIG_fail; | |
21179 | } | |
21180 | { | |
21181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21182 | } | |
21183 | return resultobj; | |
21184 | fail: | |
21185 | return NULL; | |
21186 | } | |
21187 | ||
21188 | ||
c32bde28 | 21189 | static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21190 | PyObject *resultobj; |
21191 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21192 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21193 | bool result; | |
21194 | PyObject * obj0 = 0 ; | |
21195 | PyObject * obj1 = 0 ; | |
21196 | ||
21197 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
21198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21200 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21202 | { | |
21203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21204 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); | |
21205 | ||
21206 | wxPyEndAllowThreads(__tstate); | |
21207 | if (PyErr_Occurred()) SWIG_fail; | |
21208 | } | |
21209 | { | |
21210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21211 | } | |
21212 | return resultobj; | |
21213 | fail: | |
21214 | return NULL; | |
21215 | } | |
21216 | ||
21217 | ||
c32bde28 | 21218 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21219 | PyObject *resultobj; |
21220 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21221 | wxString *arg2 = 0 ; | |
21222 | int result; | |
ae8162c8 | 21223 | bool temp2 = false ; |
d55e5bfc RD |
21224 | PyObject * obj0 = 0 ; |
21225 | PyObject * obj1 = 0 ; | |
21226 | char *kwnames[] = { | |
21227 | (char *) "self",(char *) "date", NULL | |
21228 | }; | |
21229 | ||
21230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
21231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21233 | { | |
21234 | arg2 = wxString_in_helper(obj1); | |
21235 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21236 | temp2 = true; |
d55e5bfc RD |
21237 | } |
21238 | { | |
21239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21240 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
21241 | ||
21242 | wxPyEndAllowThreads(__tstate); | |
21243 | if (PyErr_Occurred()) SWIG_fail; | |
21244 | } | |
c32bde28 | 21245 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21246 | { |
21247 | if (temp2) | |
21248 | delete arg2; | |
21249 | } | |
21250 | return resultobj; | |
21251 | fail: | |
21252 | { | |
21253 | if (temp2) | |
21254 | delete arg2; | |
21255 | } | |
21256 | return NULL; | |
21257 | } | |
21258 | ||
21259 | ||
c32bde28 | 21260 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21261 | PyObject *resultobj; |
21262 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21263 | wxString *arg2 = 0 ; | |
21264 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
21265 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
21266 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
21267 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
21268 | int result; | |
ae8162c8 RD |
21269 | bool temp2 = false ; |
21270 | bool temp3 = false ; | |
d55e5bfc RD |
21271 | PyObject * obj0 = 0 ; |
21272 | PyObject * obj1 = 0 ; | |
21273 | PyObject * obj2 = 0 ; | |
21274 | PyObject * obj3 = 0 ; | |
21275 | char *kwnames[] = { | |
21276 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
21277 | }; | |
21278 | ||
21279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21282 | { | |
21283 | arg2 = wxString_in_helper(obj1); | |
21284 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21285 | temp2 = true; |
d55e5bfc RD |
21286 | } |
21287 | if (obj2) { | |
21288 | { | |
21289 | arg3 = wxString_in_helper(obj2); | |
21290 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 21291 | temp3 = true; |
d55e5bfc RD |
21292 | } |
21293 | } | |
21294 | if (obj3) { | |
21295 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime, | |
21296 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21297 | SWIG_fail; | |
21298 | if (arg4 == NULL) { | |
21299 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21300 | SWIG_fail; | |
21301 | } | |
21302 | } | |
21303 | { | |
21304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21305 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
21306 | ||
21307 | wxPyEndAllowThreads(__tstate); | |
21308 | if (PyErr_Occurred()) SWIG_fail; | |
21309 | } | |
c32bde28 | 21310 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21311 | { |
21312 | if (temp2) | |
21313 | delete arg2; | |
21314 | } | |
21315 | { | |
21316 | if (temp3) | |
21317 | delete arg3; | |
21318 | } | |
21319 | return resultobj; | |
21320 | fail: | |
21321 | { | |
21322 | if (temp2) | |
21323 | delete arg2; | |
21324 | } | |
21325 | { | |
21326 | if (temp3) | |
21327 | delete arg3; | |
21328 | } | |
21329 | return NULL; | |
21330 | } | |
21331 | ||
21332 | ||
c32bde28 | 21333 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21334 | PyObject *resultobj; |
21335 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21336 | wxString *arg2 = 0 ; | |
21337 | int result; | |
ae8162c8 | 21338 | bool temp2 = false ; |
d55e5bfc RD |
21339 | PyObject * obj0 = 0 ; |
21340 | PyObject * obj1 = 0 ; | |
21341 | char *kwnames[] = { | |
21342 | (char *) "self",(char *) "datetime", NULL | |
21343 | }; | |
21344 | ||
21345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
21346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21348 | { | |
21349 | arg2 = wxString_in_helper(obj1); | |
21350 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21351 | temp2 = true; |
d55e5bfc RD |
21352 | } |
21353 | { | |
21354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21355 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
21356 | ||
21357 | wxPyEndAllowThreads(__tstate); | |
21358 | if (PyErr_Occurred()) SWIG_fail; | |
21359 | } | |
c32bde28 | 21360 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21361 | { |
21362 | if (temp2) | |
21363 | delete arg2; | |
21364 | } | |
21365 | return resultobj; | |
21366 | fail: | |
21367 | { | |
21368 | if (temp2) | |
21369 | delete arg2; | |
21370 | } | |
21371 | return NULL; | |
21372 | } | |
21373 | ||
21374 | ||
c32bde28 | 21375 | static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21376 | PyObject *resultobj; |
21377 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21378 | wxString *arg2 = 0 ; | |
21379 | int result; | |
ae8162c8 | 21380 | bool temp2 = false ; |
d55e5bfc RD |
21381 | PyObject * obj0 = 0 ; |
21382 | PyObject * obj1 = 0 ; | |
21383 | char *kwnames[] = { | |
21384 | (char *) "self",(char *) "date", NULL | |
21385 | }; | |
21386 | ||
21387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
21388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21390 | { | |
21391 | arg2 = wxString_in_helper(obj1); | |
21392 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21393 | temp2 = true; |
d55e5bfc RD |
21394 | } |
21395 | { | |
21396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21397 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
21398 | ||
21399 | wxPyEndAllowThreads(__tstate); | |
21400 | if (PyErr_Occurred()) SWIG_fail; | |
21401 | } | |
c32bde28 | 21402 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21403 | { |
21404 | if (temp2) | |
21405 | delete arg2; | |
21406 | } | |
21407 | return resultobj; | |
21408 | fail: | |
21409 | { | |
21410 | if (temp2) | |
21411 | delete arg2; | |
21412 | } | |
21413 | return NULL; | |
21414 | } | |
21415 | ||
21416 | ||
c32bde28 | 21417 | static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21418 | PyObject *resultobj; |
21419 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21420 | wxString *arg2 = 0 ; | |
21421 | int result; | |
ae8162c8 | 21422 | bool temp2 = false ; |
d55e5bfc RD |
21423 | PyObject * obj0 = 0 ; |
21424 | PyObject * obj1 = 0 ; | |
21425 | char *kwnames[] = { | |
21426 | (char *) "self",(char *) "time", NULL | |
21427 | }; | |
21428 | ||
21429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
21430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21432 | { | |
21433 | arg2 = wxString_in_helper(obj1); | |
21434 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21435 | temp2 = true; |
d55e5bfc RD |
21436 | } |
21437 | { | |
21438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21439 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
21440 | ||
21441 | wxPyEndAllowThreads(__tstate); | |
21442 | if (PyErr_Occurred()) SWIG_fail; | |
21443 | } | |
c32bde28 | 21444 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21445 | { |
21446 | if (temp2) | |
21447 | delete arg2; | |
21448 | } | |
21449 | return resultobj; | |
21450 | fail: | |
21451 | { | |
21452 | if (temp2) | |
21453 | delete arg2; | |
21454 | } | |
21455 | return NULL; | |
21456 | } | |
21457 | ||
21458 | ||
c32bde28 | 21459 | static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21460 | PyObject *resultobj; |
21461 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21462 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
21463 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
21464 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
21465 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
21466 | wxString result; | |
ae8162c8 RD |
21467 | bool temp2 = false ; |
21468 | bool temp3 = false ; | |
d55e5bfc RD |
21469 | PyObject * obj0 = 0 ; |
21470 | PyObject * obj1 = 0 ; | |
21471 | PyObject * obj2 = 0 ; | |
21472 | char *kwnames[] = { | |
21473 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
21474 | }; | |
21475 | ||
21476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21479 | if (obj1) { | |
21480 | { | |
21481 | arg2 = wxString_in_helper(obj1); | |
21482 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21483 | temp2 = true; |
d55e5bfc RD |
21484 | } |
21485 | } | |
21486 | if (obj2) { | |
21487 | { | |
21488 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
ae8162c8 | 21489 | temp3 = true; |
d55e5bfc RD |
21490 | } |
21491 | } | |
21492 | { | |
21493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21494 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
21495 | ||
21496 | wxPyEndAllowThreads(__tstate); | |
21497 | if (PyErr_Occurred()) SWIG_fail; | |
21498 | } | |
21499 | { | |
21500 | #if wxUSE_UNICODE | |
21501 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21502 | #else | |
21503 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21504 | #endif | |
21505 | } | |
21506 | { | |
21507 | if (temp2) | |
21508 | delete arg2; | |
21509 | } | |
21510 | { | |
21511 | if (temp3) delete arg3; | |
21512 | } | |
21513 | return resultobj; | |
21514 | fail: | |
21515 | { | |
21516 | if (temp2) | |
21517 | delete arg2; | |
21518 | } | |
21519 | { | |
21520 | if (temp3) delete arg3; | |
21521 | } | |
21522 | return NULL; | |
21523 | } | |
21524 | ||
21525 | ||
c32bde28 | 21526 | static PyObject *_wrap_DateTime_FormatDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21527 | PyObject *resultobj; |
21528 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21529 | wxString result; | |
21530 | PyObject * obj0 = 0 ; | |
21531 | char *kwnames[] = { | |
21532 | (char *) "self", NULL | |
21533 | }; | |
21534 | ||
21535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
21536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21538 | { | |
21539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21540 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
21541 | ||
21542 | wxPyEndAllowThreads(__tstate); | |
21543 | if (PyErr_Occurred()) SWIG_fail; | |
21544 | } | |
21545 | { | |
21546 | #if wxUSE_UNICODE | |
21547 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21548 | #else | |
21549 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21550 | #endif | |
21551 | } | |
21552 | return resultobj; | |
21553 | fail: | |
21554 | return NULL; | |
21555 | } | |
21556 | ||
21557 | ||
c32bde28 | 21558 | static PyObject *_wrap_DateTime_FormatTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21559 | PyObject *resultobj; |
21560 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21561 | wxString result; | |
21562 | PyObject * obj0 = 0 ; | |
21563 | char *kwnames[] = { | |
21564 | (char *) "self", NULL | |
21565 | }; | |
21566 | ||
21567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
21568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21570 | { | |
21571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21572 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
21573 | ||
21574 | wxPyEndAllowThreads(__tstate); | |
21575 | if (PyErr_Occurred()) SWIG_fail; | |
21576 | } | |
21577 | { | |
21578 | #if wxUSE_UNICODE | |
21579 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21580 | #else | |
21581 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21582 | #endif | |
21583 | } | |
21584 | return resultobj; | |
21585 | fail: | |
21586 | return NULL; | |
21587 | } | |
21588 | ||
21589 | ||
c32bde28 | 21590 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21591 | PyObject *resultobj; |
21592 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21593 | wxString result; | |
21594 | PyObject * obj0 = 0 ; | |
21595 | char *kwnames[] = { | |
21596 | (char *) "self", NULL | |
21597 | }; | |
21598 | ||
21599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
21600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21602 | { | |
21603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21604 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
21605 | ||
21606 | wxPyEndAllowThreads(__tstate); | |
21607 | if (PyErr_Occurred()) SWIG_fail; | |
21608 | } | |
21609 | { | |
21610 | #if wxUSE_UNICODE | |
21611 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21612 | #else | |
21613 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21614 | #endif | |
21615 | } | |
21616 | return resultobj; | |
21617 | fail: | |
21618 | return NULL; | |
21619 | } | |
21620 | ||
21621 | ||
c32bde28 | 21622 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21623 | PyObject *resultobj; |
21624 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21625 | wxString result; | |
21626 | PyObject * obj0 = 0 ; | |
21627 | char *kwnames[] = { | |
21628 | (char *) "self", NULL | |
21629 | }; | |
21630 | ||
21631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
21632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21634 | { | |
21635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21636 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
21637 | ||
21638 | wxPyEndAllowThreads(__tstate); | |
21639 | if (PyErr_Occurred()) SWIG_fail; | |
21640 | } | |
21641 | { | |
21642 | #if wxUSE_UNICODE | |
21643 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21644 | #else | |
21645 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21646 | #endif | |
21647 | } | |
21648 | return resultobj; | |
21649 | fail: | |
21650 | return NULL; | |
21651 | } | |
21652 | ||
21653 | ||
c32bde28 | 21654 | static PyObject * DateTime_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21655 | PyObject *obj; |
21656 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21657 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
21658 | Py_INCREF(obj); | |
21659 | return Py_BuildValue((char *)""); | |
21660 | } | |
c32bde28 | 21661 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21662 | PyObject *resultobj; |
21663 | long arg1 ; | |
21664 | wxTimeSpan result; | |
21665 | PyObject * obj0 = 0 ; | |
21666 | char *kwnames[] = { | |
21667 | (char *) "sec", NULL | |
21668 | }; | |
21669 | ||
21670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; | |
c32bde28 | 21671 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21672 | if (PyErr_Occurred()) SWIG_fail; |
21673 | { | |
21674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21675 | result = wxTimeSpan::Seconds(arg1); | |
21676 | ||
21677 | wxPyEndAllowThreads(__tstate); | |
21678 | if (PyErr_Occurred()) SWIG_fail; | |
21679 | } | |
21680 | { | |
21681 | wxTimeSpan * resultptr; | |
21682 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21683 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21684 | } | |
21685 | return resultobj; | |
21686 | fail: | |
21687 | return NULL; | |
21688 | } | |
21689 | ||
21690 | ||
c32bde28 | 21691 | static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21692 | PyObject *resultobj; |
21693 | wxTimeSpan result; | |
21694 | char *kwnames[] = { | |
21695 | NULL | |
21696 | }; | |
21697 | ||
21698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
21699 | { | |
21700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21701 | result = wxTimeSpan::Second(); | |
21702 | ||
21703 | wxPyEndAllowThreads(__tstate); | |
21704 | if (PyErr_Occurred()) SWIG_fail; | |
21705 | } | |
21706 | { | |
21707 | wxTimeSpan * resultptr; | |
21708 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21709 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21710 | } | |
21711 | return resultobj; | |
21712 | fail: | |
21713 | return NULL; | |
21714 | } | |
21715 | ||
21716 | ||
c32bde28 | 21717 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21718 | PyObject *resultobj; |
21719 | long arg1 ; | |
21720 | wxTimeSpan result; | |
21721 | PyObject * obj0 = 0 ; | |
21722 | char *kwnames[] = { | |
21723 | (char *) "min", NULL | |
21724 | }; | |
21725 | ||
21726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; | |
c32bde28 | 21727 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21728 | if (PyErr_Occurred()) SWIG_fail; |
21729 | { | |
21730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21731 | result = wxTimeSpan::Minutes(arg1); | |
21732 | ||
21733 | wxPyEndAllowThreads(__tstate); | |
21734 | if (PyErr_Occurred()) SWIG_fail; | |
21735 | } | |
21736 | { | |
21737 | wxTimeSpan * resultptr; | |
21738 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21739 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21740 | } | |
21741 | return resultobj; | |
21742 | fail: | |
21743 | return NULL; | |
21744 | } | |
21745 | ||
21746 | ||
c32bde28 | 21747 | static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21748 | PyObject *resultobj; |
21749 | wxTimeSpan result; | |
21750 | char *kwnames[] = { | |
21751 | NULL | |
21752 | }; | |
21753 | ||
21754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
21755 | { | |
21756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21757 | result = wxTimeSpan::Minute(); | |
21758 | ||
21759 | wxPyEndAllowThreads(__tstate); | |
21760 | if (PyErr_Occurred()) SWIG_fail; | |
21761 | } | |
21762 | { | |
21763 | wxTimeSpan * resultptr; | |
21764 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21765 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21766 | } | |
21767 | return resultobj; | |
21768 | fail: | |
21769 | return NULL; | |
21770 | } | |
21771 | ||
21772 | ||
c32bde28 | 21773 | static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21774 | PyObject *resultobj; |
21775 | long arg1 ; | |
21776 | wxTimeSpan result; | |
21777 | PyObject * obj0 = 0 ; | |
21778 | char *kwnames[] = { | |
21779 | (char *) "hours", NULL | |
21780 | }; | |
21781 | ||
21782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; | |
c32bde28 | 21783 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21784 | if (PyErr_Occurred()) SWIG_fail; |
21785 | { | |
21786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21787 | result = wxTimeSpan::Hours(arg1); | |
21788 | ||
21789 | wxPyEndAllowThreads(__tstate); | |
21790 | if (PyErr_Occurred()) SWIG_fail; | |
21791 | } | |
21792 | { | |
21793 | wxTimeSpan * resultptr; | |
21794 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21795 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21796 | } | |
21797 | return resultobj; | |
21798 | fail: | |
21799 | return NULL; | |
21800 | } | |
21801 | ||
21802 | ||
c32bde28 | 21803 | static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21804 | PyObject *resultobj; |
21805 | wxTimeSpan result; | |
21806 | char *kwnames[] = { | |
21807 | NULL | |
21808 | }; | |
21809 | ||
21810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
21811 | { | |
21812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21813 | result = wxTimeSpan::Hour(); | |
21814 | ||
21815 | wxPyEndAllowThreads(__tstate); | |
21816 | if (PyErr_Occurred()) SWIG_fail; | |
21817 | } | |
21818 | { | |
21819 | wxTimeSpan * resultptr; | |
21820 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21821 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21822 | } | |
21823 | return resultobj; | |
21824 | fail: | |
21825 | return NULL; | |
21826 | } | |
21827 | ||
21828 | ||
c32bde28 | 21829 | static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21830 | PyObject *resultobj; |
21831 | long arg1 ; | |
21832 | wxTimeSpan result; | |
21833 | PyObject * obj0 = 0 ; | |
21834 | char *kwnames[] = { | |
21835 | (char *) "days", NULL | |
21836 | }; | |
21837 | ||
21838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; | |
c32bde28 | 21839 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21840 | if (PyErr_Occurred()) SWIG_fail; |
21841 | { | |
21842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21843 | result = wxTimeSpan::Days(arg1); | |
21844 | ||
21845 | wxPyEndAllowThreads(__tstate); | |
21846 | if (PyErr_Occurred()) SWIG_fail; | |
21847 | } | |
21848 | { | |
21849 | wxTimeSpan * resultptr; | |
21850 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21851 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21852 | } | |
21853 | return resultobj; | |
21854 | fail: | |
21855 | return NULL; | |
21856 | } | |
21857 | ||
21858 | ||
c32bde28 | 21859 | static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21860 | PyObject *resultobj; |
21861 | wxTimeSpan result; | |
21862 | char *kwnames[] = { | |
21863 | NULL | |
21864 | }; | |
21865 | ||
21866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
21867 | { | |
21868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21869 | result = wxTimeSpan::Day(); | |
21870 | ||
21871 | wxPyEndAllowThreads(__tstate); | |
21872 | if (PyErr_Occurred()) SWIG_fail; | |
21873 | } | |
21874 | { | |
21875 | wxTimeSpan * resultptr; | |
21876 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21877 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21878 | } | |
21879 | return resultobj; | |
21880 | fail: | |
21881 | return NULL; | |
21882 | } | |
21883 | ||
21884 | ||
c32bde28 | 21885 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21886 | PyObject *resultobj; |
21887 | long arg1 ; | |
21888 | wxTimeSpan result; | |
21889 | PyObject * obj0 = 0 ; | |
21890 | char *kwnames[] = { | |
21891 | (char *) "days", NULL | |
21892 | }; | |
21893 | ||
21894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; | |
c32bde28 | 21895 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21896 | if (PyErr_Occurred()) SWIG_fail; |
21897 | { | |
21898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21899 | result = wxTimeSpan::Weeks(arg1); | |
21900 | ||
21901 | wxPyEndAllowThreads(__tstate); | |
21902 | if (PyErr_Occurred()) SWIG_fail; | |
21903 | } | |
21904 | { | |
21905 | wxTimeSpan * resultptr; | |
21906 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21907 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21908 | } | |
21909 | return resultobj; | |
21910 | fail: | |
21911 | return NULL; | |
21912 | } | |
21913 | ||
21914 | ||
c32bde28 | 21915 | static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21916 | PyObject *resultobj; |
21917 | wxTimeSpan result; | |
21918 | char *kwnames[] = { | |
21919 | NULL | |
21920 | }; | |
21921 | ||
21922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
21923 | { | |
21924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21925 | result = wxTimeSpan::Week(); | |
21926 | ||
21927 | wxPyEndAllowThreads(__tstate); | |
21928 | if (PyErr_Occurred()) SWIG_fail; | |
21929 | } | |
21930 | { | |
21931 | wxTimeSpan * resultptr; | |
21932 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21933 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21934 | } | |
21935 | return resultobj; | |
21936 | fail: | |
21937 | return NULL; | |
21938 | } | |
21939 | ||
21940 | ||
c32bde28 | 21941 | static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21942 | PyObject *resultobj; |
21943 | long arg1 = (long) 0 ; | |
21944 | long arg2 = (long) 0 ; | |
21945 | long arg3 = (long) 0 ; | |
21946 | long arg4 = (long) 0 ; | |
21947 | wxTimeSpan *result; | |
21948 | PyObject * obj0 = 0 ; | |
21949 | PyObject * obj1 = 0 ; | |
21950 | PyObject * obj2 = 0 ; | |
21951 | PyObject * obj3 = 0 ; | |
21952 | char *kwnames[] = { | |
21953 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
21954 | }; | |
21955 | ||
21956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21957 | if (obj0) { | |
c32bde28 | 21958 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21959 | if (PyErr_Occurred()) SWIG_fail; |
21960 | } | |
21961 | if (obj1) { | |
c32bde28 | 21962 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
21963 | if (PyErr_Occurred()) SWIG_fail; |
21964 | } | |
21965 | if (obj2) { | |
c32bde28 | 21966 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
21967 | if (PyErr_Occurred()) SWIG_fail; |
21968 | } | |
21969 | if (obj3) { | |
c32bde28 | 21970 | arg4 = (long)SWIG_As_long(obj3); |
d55e5bfc RD |
21971 | if (PyErr_Occurred()) SWIG_fail; |
21972 | } | |
21973 | { | |
21974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21975 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
21976 | ||
21977 | wxPyEndAllowThreads(__tstate); | |
21978 | if (PyErr_Occurred()) SWIG_fail; | |
21979 | } | |
21980 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); | |
21981 | return resultobj; | |
21982 | fail: | |
21983 | return NULL; | |
21984 | } | |
21985 | ||
21986 | ||
c32bde28 | 21987 | static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21988 | PyObject *resultobj; |
21989 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21990 | PyObject * obj0 = 0 ; | |
21991 | char *kwnames[] = { | |
21992 | (char *) "self", NULL | |
21993 | }; | |
21994 | ||
21995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
21996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21998 | { | |
21999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22000 | delete arg1; | |
22001 | ||
22002 | wxPyEndAllowThreads(__tstate); | |
22003 | if (PyErr_Occurred()) SWIG_fail; | |
22004 | } | |
22005 | Py_INCREF(Py_None); resultobj = Py_None; | |
22006 | return resultobj; | |
22007 | fail: | |
22008 | return NULL; | |
22009 | } | |
22010 | ||
22011 | ||
c32bde28 | 22012 | static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22013 | PyObject *resultobj; |
22014 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22015 | wxTimeSpan *arg2 = 0 ; | |
22016 | wxTimeSpan *result; | |
22017 | PyObject * obj0 = 0 ; | |
22018 | PyObject * obj1 = 0 ; | |
22019 | char *kwnames[] = { | |
22020 | (char *) "self",(char *) "diff", NULL | |
22021 | }; | |
22022 | ||
22023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
22024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22026 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22027 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22028 | SWIG_fail; | |
22029 | if (arg2 == NULL) { | |
22030 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22031 | SWIG_fail; | |
22032 | } | |
22033 | { | |
22034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22035 | { | |
22036 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
22037 | result = (wxTimeSpan *) &_result_ref; | |
22038 | } | |
22039 | ||
22040 | wxPyEndAllowThreads(__tstate); | |
22041 | if (PyErr_Occurred()) SWIG_fail; | |
22042 | } | |
22043 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22044 | return resultobj; | |
22045 | fail: | |
22046 | return NULL; | |
22047 | } | |
22048 | ||
22049 | ||
c32bde28 | 22050 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22051 | PyObject *resultobj; |
22052 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22053 | wxTimeSpan *arg2 = 0 ; | |
22054 | wxTimeSpan *result; | |
22055 | PyObject * obj0 = 0 ; | |
22056 | PyObject * obj1 = 0 ; | |
22057 | char *kwnames[] = { | |
22058 | (char *) "self",(char *) "diff", NULL | |
22059 | }; | |
22060 | ||
22061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
22062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22064 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22065 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22066 | SWIG_fail; | |
22067 | if (arg2 == NULL) { | |
22068 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22069 | SWIG_fail; | |
22070 | } | |
22071 | { | |
22072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22073 | { | |
22074 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
22075 | result = (wxTimeSpan *) &_result_ref; | |
22076 | } | |
22077 | ||
22078 | wxPyEndAllowThreads(__tstate); | |
22079 | if (PyErr_Occurred()) SWIG_fail; | |
22080 | } | |
22081 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22082 | return resultobj; | |
22083 | fail: | |
22084 | return NULL; | |
22085 | } | |
22086 | ||
22087 | ||
c32bde28 | 22088 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22089 | PyObject *resultobj; |
22090 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22091 | int arg2 ; | |
22092 | wxTimeSpan *result; | |
22093 | PyObject * obj0 = 0 ; | |
22094 | PyObject * obj1 = 0 ; | |
22095 | char *kwnames[] = { | |
22096 | (char *) "self",(char *) "n", NULL | |
22097 | }; | |
22098 | ||
22099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
22100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22102 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22103 | if (PyErr_Occurred()) SWIG_fail; |
22104 | { | |
22105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22106 | { | |
22107 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
22108 | result = (wxTimeSpan *) &_result_ref; | |
22109 | } | |
22110 | ||
22111 | wxPyEndAllowThreads(__tstate); | |
22112 | if (PyErr_Occurred()) SWIG_fail; | |
22113 | } | |
22114 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22115 | return resultobj; | |
22116 | fail: | |
22117 | return NULL; | |
22118 | } | |
22119 | ||
22120 | ||
c32bde28 | 22121 | static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22122 | PyObject *resultobj; |
22123 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22124 | wxTimeSpan *result; | |
22125 | PyObject * obj0 = 0 ; | |
22126 | char *kwnames[] = { | |
22127 | (char *) "self", NULL | |
22128 | }; | |
22129 | ||
22130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
22131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22133 | { | |
22134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22135 | { | |
22136 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
22137 | result = (wxTimeSpan *) &_result_ref; | |
22138 | } | |
22139 | ||
22140 | wxPyEndAllowThreads(__tstate); | |
22141 | if (PyErr_Occurred()) SWIG_fail; | |
22142 | } | |
22143 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22144 | return resultobj; | |
22145 | fail: | |
22146 | return NULL; | |
22147 | } | |
22148 | ||
22149 | ||
c32bde28 | 22150 | static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22151 | PyObject *resultobj; |
22152 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22153 | wxTimeSpan result; | |
22154 | PyObject * obj0 = 0 ; | |
22155 | char *kwnames[] = { | |
22156 | (char *) "self", NULL | |
22157 | }; | |
22158 | ||
22159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
22160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22162 | { | |
22163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22164 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
22165 | ||
22166 | wxPyEndAllowThreads(__tstate); | |
22167 | if (PyErr_Occurred()) SWIG_fail; | |
22168 | } | |
22169 | { | |
22170 | wxTimeSpan * resultptr; | |
22171 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22172 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22173 | } | |
22174 | return resultobj; | |
22175 | fail: | |
22176 | return NULL; | |
22177 | } | |
22178 | ||
22179 | ||
c32bde28 | 22180 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22181 | PyObject *resultobj; |
22182 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22183 | wxTimeSpan *arg2 = 0 ; | |
22184 | wxTimeSpan *result; | |
22185 | PyObject * obj0 = 0 ; | |
22186 | PyObject * obj1 = 0 ; | |
22187 | char *kwnames[] = { | |
22188 | (char *) "self",(char *) "diff", NULL | |
22189 | }; | |
22190 | ||
22191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
22192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
c32bde28 | 22193 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
22194 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, |
22195 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22196 | SWIG_fail; | |
22197 | if (arg2 == NULL) { | |
22198 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22199 | SWIG_fail; | |
22200 | } | |
22201 | { | |
22202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22203 | { | |
22204 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
22205 | result = (wxTimeSpan *) &_result_ref; | |
22206 | } | |
22207 | ||
22208 | wxPyEndAllowThreads(__tstate); | |
22209 | if (PyErr_Occurred()) SWIG_fail; | |
22210 | } | |
c32bde28 | 22211 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
22212 | return resultobj; |
22213 | fail: | |
22214 | return NULL; | |
22215 | } | |
22216 | ||
22217 | ||
c32bde28 | 22218 | static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22219 | PyObject *resultobj; |
22220 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22221 | wxTimeSpan *arg2 = 0 ; | |
22222 | wxTimeSpan *result; | |
22223 | PyObject * obj0 = 0 ; | |
22224 | PyObject * obj1 = 0 ; | |
22225 | char *kwnames[] = { | |
22226 | (char *) "self",(char *) "diff", NULL | |
22227 | }; | |
22228 | ||
22229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
22230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
c32bde28 | 22231 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
22232 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, |
22233 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22234 | SWIG_fail; | |
22235 | if (arg2 == NULL) { | |
22236 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22237 | SWIG_fail; | |
22238 | } | |
22239 | { | |
22240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22241 | { | |
22242 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
22243 | result = (wxTimeSpan *) &_result_ref; | |
22244 | } | |
22245 | ||
22246 | wxPyEndAllowThreads(__tstate); | |
22247 | if (PyErr_Occurred()) SWIG_fail; | |
22248 | } | |
c32bde28 | 22249 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
22250 | return resultobj; |
22251 | fail: | |
22252 | return NULL; | |
22253 | } | |
22254 | ||
22255 | ||
c32bde28 | 22256 | static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22257 | PyObject *resultobj; |
22258 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22259 | int arg2 ; | |
22260 | wxTimeSpan *result; | |
22261 | PyObject * obj0 = 0 ; | |
22262 | PyObject * obj1 = 0 ; | |
22263 | char *kwnames[] = { | |
22264 | (char *) "self",(char *) "n", NULL | |
22265 | }; | |
22266 | ||
22267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
22268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
c32bde28 RD |
22269 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
22270 | arg2 = (int)SWIG_As_int(obj1); | |
d55e5bfc RD |
22271 | if (PyErr_Occurred()) SWIG_fail; |
22272 | { | |
22273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22274 | { | |
22275 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
22276 | result = (wxTimeSpan *) &_result_ref; | |
22277 | } | |
22278 | ||
22279 | wxPyEndAllowThreads(__tstate); | |
22280 | if (PyErr_Occurred()) SWIG_fail; | |
22281 | } | |
c32bde28 | 22282 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
22283 | return resultobj; |
22284 | fail: | |
22285 | return NULL; | |
22286 | } | |
22287 | ||
22288 | ||
c32bde28 | 22289 | static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22290 | PyObject *resultobj; |
22291 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22292 | wxTimeSpan *result; | |
22293 | PyObject * obj0 = 0 ; | |
22294 | char *kwnames[] = { | |
22295 | (char *) "self", NULL | |
22296 | }; | |
22297 | ||
22298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
22299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22301 | { | |
22302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22303 | { | |
22304 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
22305 | result = (wxTimeSpan *) &_result_ref; | |
22306 | } | |
22307 | ||
22308 | wxPyEndAllowThreads(__tstate); | |
22309 | if (PyErr_Occurred()) SWIG_fail; | |
22310 | } | |
22311 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22312 | return resultobj; | |
22313 | fail: | |
22314 | return NULL; | |
22315 | } | |
22316 | ||
22317 | ||
c32bde28 | 22318 | static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22319 | PyObject *resultobj; |
22320 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22321 | wxTimeSpan *arg2 = 0 ; | |
22322 | wxTimeSpan result; | |
22323 | PyObject * obj0 = 0 ; | |
22324 | PyObject * obj1 = 0 ; | |
22325 | char *kwnames[] = { | |
22326 | (char *) "self",(char *) "other", NULL | |
22327 | }; | |
22328 | ||
22329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
22330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22332 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22333 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22334 | SWIG_fail; | |
22335 | if (arg2 == NULL) { | |
22336 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22337 | SWIG_fail; | |
22338 | } | |
22339 | { | |
22340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22341 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
22342 | ||
22343 | wxPyEndAllowThreads(__tstate); | |
22344 | if (PyErr_Occurred()) SWIG_fail; | |
22345 | } | |
22346 | { | |
22347 | wxTimeSpan * resultptr; | |
22348 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22349 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22350 | } | |
22351 | return resultobj; | |
22352 | fail: | |
22353 | return NULL; | |
22354 | } | |
22355 | ||
22356 | ||
c32bde28 | 22357 | static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22358 | PyObject *resultobj; |
22359 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22360 | wxTimeSpan *arg2 = 0 ; | |
22361 | wxTimeSpan result; | |
22362 | PyObject * obj0 = 0 ; | |
22363 | PyObject * obj1 = 0 ; | |
22364 | char *kwnames[] = { | |
22365 | (char *) "self",(char *) "other", NULL | |
22366 | }; | |
22367 | ||
22368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
22369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22371 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22372 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22373 | SWIG_fail; | |
22374 | if (arg2 == NULL) { | |
22375 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22376 | SWIG_fail; | |
22377 | } | |
22378 | { | |
22379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22380 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
22381 | ||
22382 | wxPyEndAllowThreads(__tstate); | |
22383 | if (PyErr_Occurred()) SWIG_fail; | |
22384 | } | |
22385 | { | |
22386 | wxTimeSpan * resultptr; | |
22387 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22388 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22389 | } | |
22390 | return resultobj; | |
22391 | fail: | |
22392 | return NULL; | |
22393 | } | |
22394 | ||
22395 | ||
c32bde28 | 22396 | static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22397 | PyObject *resultobj; |
22398 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22399 | int arg2 ; | |
22400 | wxTimeSpan result; | |
22401 | PyObject * obj0 = 0 ; | |
22402 | PyObject * obj1 = 0 ; | |
22403 | char *kwnames[] = { | |
22404 | (char *) "self",(char *) "n", NULL | |
22405 | }; | |
22406 | ||
22407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
22408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22410 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22411 | if (PyErr_Occurred()) SWIG_fail; |
22412 | { | |
22413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22414 | result = wxTimeSpan___mul__(arg1,arg2); | |
22415 | ||
22416 | wxPyEndAllowThreads(__tstate); | |
22417 | if (PyErr_Occurred()) SWIG_fail; | |
22418 | } | |
22419 | { | |
22420 | wxTimeSpan * resultptr; | |
22421 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22422 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22423 | } | |
22424 | return resultobj; | |
22425 | fail: | |
22426 | return NULL; | |
22427 | } | |
22428 | ||
22429 | ||
c32bde28 | 22430 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22431 | PyObject *resultobj; |
22432 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22433 | int arg2 ; | |
22434 | wxTimeSpan result; | |
22435 | PyObject * obj0 = 0 ; | |
22436 | PyObject * obj1 = 0 ; | |
22437 | char *kwnames[] = { | |
22438 | (char *) "self",(char *) "n", NULL | |
22439 | }; | |
22440 | ||
22441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
22442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22444 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22445 | if (PyErr_Occurred()) SWIG_fail; |
22446 | { | |
22447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22448 | result = wxTimeSpan___rmul__(arg1,arg2); | |
22449 | ||
22450 | wxPyEndAllowThreads(__tstate); | |
22451 | if (PyErr_Occurred()) SWIG_fail; | |
22452 | } | |
22453 | { | |
22454 | wxTimeSpan * resultptr; | |
22455 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22456 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22457 | } | |
22458 | return resultobj; | |
22459 | fail: | |
22460 | return NULL; | |
22461 | } | |
22462 | ||
22463 | ||
c32bde28 | 22464 | static PyObject *_wrap_TimeSpan___lt__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22465 | PyObject *resultobj; |
22466 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22467 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22468 | bool result; | |
22469 | PyObject * obj0 = 0 ; | |
22470 | PyObject * obj1 = 0 ; | |
22471 | char *kwnames[] = { | |
22472 | (char *) "self",(char *) "other", NULL | |
22473 | }; | |
22474 | ||
22475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
22476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22478 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22480 | { | |
22481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22482 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); | |
22483 | ||
22484 | wxPyEndAllowThreads(__tstate); | |
22485 | if (PyErr_Occurred()) SWIG_fail; | |
22486 | } | |
22487 | { | |
22488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22489 | } | |
22490 | return resultobj; | |
22491 | fail: | |
22492 | return NULL; | |
22493 | } | |
22494 | ||
22495 | ||
c32bde28 | 22496 | static PyObject *_wrap_TimeSpan___le__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22497 | PyObject *resultobj; |
22498 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22499 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22500 | bool result; | |
22501 | PyObject * obj0 = 0 ; | |
22502 | PyObject * obj1 = 0 ; | |
22503 | char *kwnames[] = { | |
22504 | (char *) "self",(char *) "other", NULL | |
22505 | }; | |
22506 | ||
22507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
22508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22510 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22512 | { | |
22513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22514 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); | |
22515 | ||
22516 | wxPyEndAllowThreads(__tstate); | |
22517 | if (PyErr_Occurred()) SWIG_fail; | |
22518 | } | |
22519 | { | |
22520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22521 | } | |
22522 | return resultobj; | |
22523 | fail: | |
22524 | return NULL; | |
22525 | } | |
22526 | ||
22527 | ||
c32bde28 | 22528 | static PyObject *_wrap_TimeSpan___gt__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22529 | PyObject *resultobj; |
22530 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22531 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22532 | bool result; | |
22533 | PyObject * obj0 = 0 ; | |
22534 | PyObject * obj1 = 0 ; | |
22535 | char *kwnames[] = { | |
22536 | (char *) "self",(char *) "other", NULL | |
22537 | }; | |
22538 | ||
22539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
22540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22542 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22544 | { | |
22545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22546 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); | |
22547 | ||
22548 | wxPyEndAllowThreads(__tstate); | |
22549 | if (PyErr_Occurred()) SWIG_fail; | |
22550 | } | |
22551 | { | |
22552 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22553 | } | |
22554 | return resultobj; | |
22555 | fail: | |
22556 | return NULL; | |
22557 | } | |
22558 | ||
22559 | ||
c32bde28 | 22560 | static PyObject *_wrap_TimeSpan___ge__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22561 | PyObject *resultobj; |
22562 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22563 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22564 | bool result; | |
22565 | PyObject * obj0 = 0 ; | |
22566 | PyObject * obj1 = 0 ; | |
22567 | char *kwnames[] = { | |
22568 | (char *) "self",(char *) "other", NULL | |
22569 | }; | |
22570 | ||
22571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
22572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22574 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22576 | { | |
22577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22578 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); | |
22579 | ||
22580 | wxPyEndAllowThreads(__tstate); | |
22581 | if (PyErr_Occurred()) SWIG_fail; | |
22582 | } | |
22583 | { | |
22584 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22585 | } | |
22586 | return resultobj; | |
22587 | fail: | |
22588 | return NULL; | |
22589 | } | |
22590 | ||
22591 | ||
c32bde28 | 22592 | static PyObject *_wrap_TimeSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22593 | PyObject *resultobj; |
22594 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22595 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22596 | bool result; | |
22597 | PyObject * obj0 = 0 ; | |
22598 | PyObject * obj1 = 0 ; | |
22599 | char *kwnames[] = { | |
22600 | (char *) "self",(char *) "other", NULL | |
22601 | }; | |
22602 | ||
22603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
22604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22606 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22608 | { | |
22609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22610 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); | |
22611 | ||
22612 | wxPyEndAllowThreads(__tstate); | |
22613 | if (PyErr_Occurred()) SWIG_fail; | |
22614 | } | |
22615 | { | |
22616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22617 | } | |
22618 | return resultobj; | |
22619 | fail: | |
22620 | return NULL; | |
22621 | } | |
22622 | ||
22623 | ||
c32bde28 | 22624 | static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22625 | PyObject *resultobj; |
22626 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22627 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22628 | bool result; | |
22629 | PyObject * obj0 = 0 ; | |
22630 | PyObject * obj1 = 0 ; | |
22631 | char *kwnames[] = { | |
22632 | (char *) "self",(char *) "other", NULL | |
22633 | }; | |
22634 | ||
22635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
22636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22638 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22640 | { | |
22641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22642 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); | |
22643 | ||
22644 | wxPyEndAllowThreads(__tstate); | |
22645 | if (PyErr_Occurred()) SWIG_fail; | |
22646 | } | |
22647 | { | |
22648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22649 | } | |
22650 | return resultobj; | |
22651 | fail: | |
22652 | return NULL; | |
22653 | } | |
22654 | ||
22655 | ||
c32bde28 | 22656 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22657 | PyObject *resultobj; |
22658 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22659 | bool result; | |
22660 | PyObject * obj0 = 0 ; | |
22661 | char *kwnames[] = { | |
22662 | (char *) "self", NULL | |
22663 | }; | |
22664 | ||
22665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
22666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22668 | { | |
22669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22670 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
22671 | ||
22672 | wxPyEndAllowThreads(__tstate); | |
22673 | if (PyErr_Occurred()) SWIG_fail; | |
22674 | } | |
22675 | { | |
22676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22677 | } | |
22678 | return resultobj; | |
22679 | fail: | |
22680 | return NULL; | |
22681 | } | |
22682 | ||
22683 | ||
c32bde28 | 22684 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22685 | PyObject *resultobj; |
22686 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22687 | bool result; | |
22688 | PyObject * obj0 = 0 ; | |
22689 | char *kwnames[] = { | |
22690 | (char *) "self", NULL | |
22691 | }; | |
22692 | ||
22693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
22694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22696 | { | |
22697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22698 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
22699 | ||
22700 | wxPyEndAllowThreads(__tstate); | |
22701 | if (PyErr_Occurred()) SWIG_fail; | |
22702 | } | |
22703 | { | |
22704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22705 | } | |
22706 | return resultobj; | |
22707 | fail: | |
22708 | return NULL; | |
22709 | } | |
22710 | ||
22711 | ||
c32bde28 | 22712 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22713 | PyObject *resultobj; |
22714 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22715 | bool result; | |
22716 | PyObject * obj0 = 0 ; | |
22717 | char *kwnames[] = { | |
22718 | (char *) "self", NULL | |
22719 | }; | |
22720 | ||
22721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
22722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22724 | { | |
22725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22726 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
22727 | ||
22728 | wxPyEndAllowThreads(__tstate); | |
22729 | if (PyErr_Occurred()) SWIG_fail; | |
22730 | } | |
22731 | { | |
22732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22733 | } | |
22734 | return resultobj; | |
22735 | fail: | |
22736 | return NULL; | |
22737 | } | |
22738 | ||
22739 | ||
c32bde28 | 22740 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22741 | PyObject *resultobj; |
22742 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22743 | wxTimeSpan *arg2 = 0 ; | |
22744 | bool result; | |
22745 | PyObject * obj0 = 0 ; | |
22746 | PyObject * obj1 = 0 ; | |
22747 | char *kwnames[] = { | |
22748 | (char *) "self",(char *) "ts", NULL | |
22749 | }; | |
22750 | ||
22751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
22752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22754 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22755 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22756 | SWIG_fail; | |
22757 | if (arg2 == NULL) { | |
22758 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22759 | SWIG_fail; | |
22760 | } | |
22761 | { | |
22762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22763 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
22764 | ||
22765 | wxPyEndAllowThreads(__tstate); | |
22766 | if (PyErr_Occurred()) SWIG_fail; | |
22767 | } | |
22768 | { | |
22769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22770 | } | |
22771 | return resultobj; | |
22772 | fail: | |
22773 | return NULL; | |
22774 | } | |
22775 | ||
22776 | ||
c32bde28 | 22777 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22778 | PyObject *resultobj; |
22779 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22780 | wxTimeSpan *arg2 = 0 ; | |
22781 | bool result; | |
22782 | PyObject * obj0 = 0 ; | |
22783 | PyObject * obj1 = 0 ; | |
22784 | char *kwnames[] = { | |
22785 | (char *) "self",(char *) "ts", NULL | |
22786 | }; | |
22787 | ||
22788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
22789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22791 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22792 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22793 | SWIG_fail; | |
22794 | if (arg2 == NULL) { | |
22795 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22796 | SWIG_fail; | |
22797 | } | |
22798 | { | |
22799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22800 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
22801 | ||
22802 | wxPyEndAllowThreads(__tstate); | |
22803 | if (PyErr_Occurred()) SWIG_fail; | |
22804 | } | |
22805 | { | |
22806 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22807 | } | |
22808 | return resultobj; | |
22809 | fail: | |
22810 | return NULL; | |
22811 | } | |
22812 | ||
22813 | ||
c32bde28 | 22814 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22815 | PyObject *resultobj; |
22816 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22817 | wxTimeSpan *arg2 = 0 ; | |
22818 | bool result; | |
22819 | PyObject * obj0 = 0 ; | |
22820 | PyObject * obj1 = 0 ; | |
22821 | char *kwnames[] = { | |
22822 | (char *) "self",(char *) "t", NULL | |
22823 | }; | |
22824 | ||
22825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
22826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22828 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22829 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22830 | SWIG_fail; | |
22831 | if (arg2 == NULL) { | |
22832 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22833 | SWIG_fail; | |
22834 | } | |
22835 | { | |
22836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22837 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
22838 | ||
22839 | wxPyEndAllowThreads(__tstate); | |
22840 | if (PyErr_Occurred()) SWIG_fail; | |
22841 | } | |
22842 | { | |
22843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22844 | } | |
22845 | return resultobj; | |
22846 | fail: | |
22847 | return NULL; | |
22848 | } | |
22849 | ||
22850 | ||
c32bde28 | 22851 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22852 | PyObject *resultobj; |
22853 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22854 | int result; | |
22855 | PyObject * obj0 = 0 ; | |
22856 | char *kwnames[] = { | |
22857 | (char *) "self", NULL | |
22858 | }; | |
22859 | ||
22860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
22861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22863 | { | |
22864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22865 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
22866 | ||
22867 | wxPyEndAllowThreads(__tstate); | |
22868 | if (PyErr_Occurred()) SWIG_fail; | |
22869 | } | |
c32bde28 | 22870 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22871 | return resultobj; |
22872 | fail: | |
22873 | return NULL; | |
22874 | } | |
22875 | ||
22876 | ||
c32bde28 | 22877 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22878 | PyObject *resultobj; |
22879 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22880 | int result; | |
22881 | PyObject * obj0 = 0 ; | |
22882 | char *kwnames[] = { | |
22883 | (char *) "self", NULL | |
22884 | }; | |
22885 | ||
22886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
22887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22889 | { | |
22890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22891 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
22892 | ||
22893 | wxPyEndAllowThreads(__tstate); | |
22894 | if (PyErr_Occurred()) SWIG_fail; | |
22895 | } | |
c32bde28 | 22896 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22897 | return resultobj; |
22898 | fail: | |
22899 | return NULL; | |
22900 | } | |
22901 | ||
22902 | ||
c32bde28 | 22903 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22904 | PyObject *resultobj; |
22905 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22906 | int result; | |
22907 | PyObject * obj0 = 0 ; | |
22908 | char *kwnames[] = { | |
22909 | (char *) "self", NULL | |
22910 | }; | |
22911 | ||
22912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
22913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22915 | { | |
22916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22917 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
22918 | ||
22919 | wxPyEndAllowThreads(__tstate); | |
22920 | if (PyErr_Occurred()) SWIG_fail; | |
22921 | } | |
c32bde28 | 22922 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22923 | return resultobj; |
22924 | fail: | |
22925 | return NULL; | |
22926 | } | |
22927 | ||
22928 | ||
c32bde28 | 22929 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22930 | PyObject *resultobj; |
22931 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22932 | int result; | |
22933 | PyObject * obj0 = 0 ; | |
22934 | char *kwnames[] = { | |
22935 | (char *) "self", NULL | |
22936 | }; | |
22937 | ||
22938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
22939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22941 | { | |
22942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22943 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
22944 | ||
22945 | wxPyEndAllowThreads(__tstate); | |
22946 | if (PyErr_Occurred()) SWIG_fail; | |
22947 | } | |
c32bde28 | 22948 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22949 | return resultobj; |
22950 | fail: | |
22951 | return NULL; | |
22952 | } | |
22953 | ||
22954 | ||
c32bde28 | 22955 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22956 | PyObject *resultobj; |
22957 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22958 | wxLongLong result; | |
22959 | PyObject * obj0 = 0 ; | |
22960 | char *kwnames[] = { | |
22961 | (char *) "self", NULL | |
22962 | }; | |
22963 | ||
22964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
22965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22967 | { | |
22968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22969 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
22970 | ||
22971 | wxPyEndAllowThreads(__tstate); | |
22972 | if (PyErr_Occurred()) SWIG_fail; | |
22973 | } | |
22974 | { | |
22975 | PyObject *hi, *lo, *shifter, *shifted; | |
22976 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22977 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22978 | shifter = PyLong_FromLong(32); | |
22979 | shifted = PyNumber_Lshift(hi, shifter); | |
22980 | resultobj = PyNumber_Or(shifted, lo); | |
22981 | Py_DECREF(hi); | |
22982 | Py_DECREF(lo); | |
22983 | Py_DECREF(shifter); | |
22984 | Py_DECREF(shifted); | |
22985 | } | |
22986 | return resultobj; | |
22987 | fail: | |
22988 | return NULL; | |
22989 | } | |
22990 | ||
22991 | ||
c32bde28 | 22992 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22993 | PyObject *resultobj; |
22994 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22995 | wxLongLong result; | |
22996 | PyObject * obj0 = 0 ; | |
22997 | char *kwnames[] = { | |
22998 | (char *) "self", NULL | |
22999 | }; | |
23000 | ||
23001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
23002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23004 | { | |
23005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23006 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
23007 | ||
23008 | wxPyEndAllowThreads(__tstate); | |
23009 | if (PyErr_Occurred()) SWIG_fail; | |
23010 | } | |
23011 | { | |
23012 | PyObject *hi, *lo, *shifter, *shifted; | |
23013 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23014 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23015 | shifter = PyLong_FromLong(32); | |
23016 | shifted = PyNumber_Lshift(hi, shifter); | |
23017 | resultobj = PyNumber_Or(shifted, lo); | |
23018 | Py_DECREF(hi); | |
23019 | Py_DECREF(lo); | |
23020 | Py_DECREF(shifter); | |
23021 | Py_DECREF(shifted); | |
23022 | } | |
23023 | return resultobj; | |
23024 | fail: | |
23025 | return NULL; | |
23026 | } | |
23027 | ||
23028 | ||
c32bde28 | 23029 | static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23030 | PyObject *resultobj; |
23031 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23032 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
23033 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
23034 | wxString result; | |
ae8162c8 | 23035 | bool temp2 = false ; |
d55e5bfc RD |
23036 | PyObject * obj0 = 0 ; |
23037 | PyObject * obj1 = 0 ; | |
23038 | char *kwnames[] = { | |
23039 | (char *) "self",(char *) "format", NULL | |
23040 | }; | |
23041 | ||
23042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
23043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23045 | if (obj1) { | |
23046 | { | |
23047 | arg2 = wxString_in_helper(obj1); | |
23048 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 23049 | temp2 = true; |
d55e5bfc RD |
23050 | } |
23051 | } | |
23052 | { | |
23053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23054 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
23055 | ||
23056 | wxPyEndAllowThreads(__tstate); | |
23057 | if (PyErr_Occurred()) SWIG_fail; | |
23058 | } | |
23059 | { | |
23060 | #if wxUSE_UNICODE | |
23061 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23062 | #else | |
23063 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23064 | #endif | |
23065 | } | |
23066 | { | |
23067 | if (temp2) | |
23068 | delete arg2; | |
23069 | } | |
23070 | return resultobj; | |
23071 | fail: | |
23072 | { | |
23073 | if (temp2) | |
23074 | delete arg2; | |
23075 | } | |
23076 | return NULL; | |
23077 | } | |
23078 | ||
23079 | ||
c32bde28 | 23080 | static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
23081 | PyObject *obj; |
23082 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23083 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
23084 | Py_INCREF(obj); | |
23085 | return Py_BuildValue((char *)""); | |
23086 | } | |
c32bde28 | 23087 | static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23088 | PyObject *resultobj; |
23089 | int arg1 = (int) 0 ; | |
23090 | int arg2 = (int) 0 ; | |
23091 | int arg3 = (int) 0 ; | |
23092 | int arg4 = (int) 0 ; | |
23093 | wxDateSpan *result; | |
23094 | PyObject * obj0 = 0 ; | |
23095 | PyObject * obj1 = 0 ; | |
23096 | PyObject * obj2 = 0 ; | |
23097 | PyObject * obj3 = 0 ; | |
23098 | char *kwnames[] = { | |
23099 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
23100 | }; | |
23101 | ||
23102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23103 | if (obj0) { | |
c32bde28 | 23104 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23105 | if (PyErr_Occurred()) SWIG_fail; |
23106 | } | |
23107 | if (obj1) { | |
c32bde28 | 23108 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23109 | if (PyErr_Occurred()) SWIG_fail; |
23110 | } | |
23111 | if (obj2) { | |
c32bde28 | 23112 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23113 | if (PyErr_Occurred()) SWIG_fail; |
23114 | } | |
23115 | if (obj3) { | |
c32bde28 | 23116 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
23117 | if (PyErr_Occurred()) SWIG_fail; |
23118 | } | |
23119 | { | |
23120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23121 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
23122 | ||
23123 | wxPyEndAllowThreads(__tstate); | |
23124 | if (PyErr_Occurred()) SWIG_fail; | |
23125 | } | |
23126 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); | |
23127 | return resultobj; | |
23128 | fail: | |
23129 | return NULL; | |
23130 | } | |
23131 | ||
23132 | ||
c32bde28 | 23133 | static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23134 | PyObject *resultobj; |
23135 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23136 | PyObject * obj0 = 0 ; | |
23137 | char *kwnames[] = { | |
23138 | (char *) "self", NULL | |
23139 | }; | |
23140 | ||
23141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
23142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23144 | { | |
23145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23146 | delete arg1; | |
23147 | ||
23148 | wxPyEndAllowThreads(__tstate); | |
23149 | if (PyErr_Occurred()) SWIG_fail; | |
23150 | } | |
23151 | Py_INCREF(Py_None); resultobj = Py_None; | |
23152 | return resultobj; | |
23153 | fail: | |
23154 | return NULL; | |
23155 | } | |
23156 | ||
23157 | ||
c32bde28 | 23158 | static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23159 | PyObject *resultobj; |
23160 | int arg1 ; | |
23161 | wxDateSpan result; | |
23162 | PyObject * obj0 = 0 ; | |
23163 | char *kwnames[] = { | |
23164 | (char *) "days", NULL | |
23165 | }; | |
23166 | ||
23167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; | |
c32bde28 | 23168 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23169 | if (PyErr_Occurred()) SWIG_fail; |
23170 | { | |
23171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23172 | result = wxDateSpan::Days(arg1); | |
23173 | ||
23174 | wxPyEndAllowThreads(__tstate); | |
23175 | if (PyErr_Occurred()) SWIG_fail; | |
23176 | } | |
23177 | { | |
23178 | wxDateSpan * resultptr; | |
23179 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23180 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23181 | } | |
23182 | return resultobj; | |
23183 | fail: | |
23184 | return NULL; | |
23185 | } | |
23186 | ||
23187 | ||
c32bde28 | 23188 | static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23189 | PyObject *resultobj; |
23190 | wxDateSpan result; | |
23191 | char *kwnames[] = { | |
23192 | NULL | |
23193 | }; | |
23194 | ||
23195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
23196 | { | |
23197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23198 | result = wxDateSpan::Day(); | |
23199 | ||
23200 | wxPyEndAllowThreads(__tstate); | |
23201 | if (PyErr_Occurred()) SWIG_fail; | |
23202 | } | |
23203 | { | |
23204 | wxDateSpan * resultptr; | |
23205 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23206 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23207 | } | |
23208 | return resultobj; | |
23209 | fail: | |
23210 | return NULL; | |
23211 | } | |
23212 | ||
23213 | ||
c32bde28 | 23214 | static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23215 | PyObject *resultobj; |
23216 | int arg1 ; | |
23217 | wxDateSpan result; | |
23218 | PyObject * obj0 = 0 ; | |
23219 | char *kwnames[] = { | |
23220 | (char *) "weeks", NULL | |
23221 | }; | |
23222 | ||
23223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; | |
c32bde28 | 23224 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23225 | if (PyErr_Occurred()) SWIG_fail; |
23226 | { | |
23227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23228 | result = wxDateSpan::Weeks(arg1); | |
23229 | ||
23230 | wxPyEndAllowThreads(__tstate); | |
23231 | if (PyErr_Occurred()) SWIG_fail; | |
23232 | } | |
23233 | { | |
23234 | wxDateSpan * resultptr; | |
23235 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23236 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23237 | } | |
23238 | return resultobj; | |
23239 | fail: | |
23240 | return NULL; | |
23241 | } | |
23242 | ||
23243 | ||
c32bde28 | 23244 | static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23245 | PyObject *resultobj; |
23246 | wxDateSpan result; | |
23247 | char *kwnames[] = { | |
23248 | NULL | |
23249 | }; | |
23250 | ||
23251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
23252 | { | |
23253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23254 | result = wxDateSpan::Week(); | |
23255 | ||
23256 | wxPyEndAllowThreads(__tstate); | |
23257 | if (PyErr_Occurred()) SWIG_fail; | |
23258 | } | |
23259 | { | |
23260 | wxDateSpan * resultptr; | |
23261 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23262 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23263 | } | |
23264 | return resultobj; | |
23265 | fail: | |
23266 | return NULL; | |
23267 | } | |
23268 | ||
23269 | ||
c32bde28 | 23270 | static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23271 | PyObject *resultobj; |
23272 | int arg1 ; | |
23273 | wxDateSpan result; | |
23274 | PyObject * obj0 = 0 ; | |
23275 | char *kwnames[] = { | |
23276 | (char *) "mon", NULL | |
23277 | }; | |
23278 | ||
23279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; | |
c32bde28 | 23280 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23281 | if (PyErr_Occurred()) SWIG_fail; |
23282 | { | |
23283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23284 | result = wxDateSpan::Months(arg1); | |
23285 | ||
23286 | wxPyEndAllowThreads(__tstate); | |
23287 | if (PyErr_Occurred()) SWIG_fail; | |
23288 | } | |
23289 | { | |
23290 | wxDateSpan * resultptr; | |
23291 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23292 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23293 | } | |
23294 | return resultobj; | |
23295 | fail: | |
23296 | return NULL; | |
23297 | } | |
23298 | ||
23299 | ||
c32bde28 | 23300 | static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23301 | PyObject *resultobj; |
23302 | wxDateSpan result; | |
23303 | char *kwnames[] = { | |
23304 | NULL | |
23305 | }; | |
23306 | ||
23307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
23308 | { | |
23309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23310 | result = wxDateSpan::Month(); | |
23311 | ||
23312 | wxPyEndAllowThreads(__tstate); | |
23313 | if (PyErr_Occurred()) SWIG_fail; | |
23314 | } | |
23315 | { | |
23316 | wxDateSpan * resultptr; | |
23317 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23318 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23319 | } | |
23320 | return resultobj; | |
23321 | fail: | |
23322 | return NULL; | |
23323 | } | |
23324 | ||
23325 | ||
c32bde28 | 23326 | static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23327 | PyObject *resultobj; |
23328 | int arg1 ; | |
23329 | wxDateSpan result; | |
23330 | PyObject * obj0 = 0 ; | |
23331 | char *kwnames[] = { | |
23332 | (char *) "years", NULL | |
23333 | }; | |
23334 | ||
23335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; | |
c32bde28 | 23336 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23337 | if (PyErr_Occurred()) SWIG_fail; |
23338 | { | |
23339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23340 | result = wxDateSpan::Years(arg1); | |
23341 | ||
23342 | wxPyEndAllowThreads(__tstate); | |
23343 | if (PyErr_Occurred()) SWIG_fail; | |
23344 | } | |
23345 | { | |
23346 | wxDateSpan * resultptr; | |
23347 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23348 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23349 | } | |
23350 | return resultobj; | |
23351 | fail: | |
23352 | return NULL; | |
23353 | } | |
23354 | ||
23355 | ||
c32bde28 | 23356 | static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23357 | PyObject *resultobj; |
23358 | wxDateSpan result; | |
23359 | char *kwnames[] = { | |
23360 | NULL | |
23361 | }; | |
23362 | ||
23363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
23364 | { | |
23365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23366 | result = wxDateSpan::Year(); | |
23367 | ||
23368 | wxPyEndAllowThreads(__tstate); | |
23369 | if (PyErr_Occurred()) SWIG_fail; | |
23370 | } | |
23371 | { | |
23372 | wxDateSpan * resultptr; | |
23373 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23374 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23375 | } | |
23376 | return resultobj; | |
23377 | fail: | |
23378 | return NULL; | |
23379 | } | |
23380 | ||
23381 | ||
c32bde28 | 23382 | static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23383 | PyObject *resultobj; |
23384 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23385 | int arg2 ; | |
23386 | wxDateSpan *result; | |
23387 | PyObject * obj0 = 0 ; | |
23388 | PyObject * obj1 = 0 ; | |
23389 | char *kwnames[] = { | |
23390 | (char *) "self",(char *) "n", NULL | |
23391 | }; | |
23392 | ||
23393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; | |
23394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23396 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23397 | if (PyErr_Occurred()) SWIG_fail; |
23398 | { | |
23399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23400 | { | |
23401 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
23402 | result = (wxDateSpan *) &_result_ref; | |
23403 | } | |
23404 | ||
23405 | wxPyEndAllowThreads(__tstate); | |
23406 | if (PyErr_Occurred()) SWIG_fail; | |
23407 | } | |
23408 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23409 | return resultobj; | |
23410 | fail: | |
23411 | return NULL; | |
23412 | } | |
23413 | ||
23414 | ||
c32bde28 | 23415 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23416 | PyObject *resultobj; |
23417 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23418 | int arg2 ; | |
23419 | wxDateSpan *result; | |
23420 | PyObject * obj0 = 0 ; | |
23421 | PyObject * obj1 = 0 ; | |
23422 | char *kwnames[] = { | |
23423 | (char *) "self",(char *) "n", NULL | |
23424 | }; | |
23425 | ||
23426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; | |
23427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23429 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23430 | if (PyErr_Occurred()) SWIG_fail; |
23431 | { | |
23432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23433 | { | |
23434 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
23435 | result = (wxDateSpan *) &_result_ref; | |
23436 | } | |
23437 | ||
23438 | wxPyEndAllowThreads(__tstate); | |
23439 | if (PyErr_Occurred()) SWIG_fail; | |
23440 | } | |
23441 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23442 | return resultobj; | |
23443 | fail: | |
23444 | return NULL; | |
23445 | } | |
23446 | ||
23447 | ||
c32bde28 | 23448 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23449 | PyObject *resultobj; |
23450 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23451 | int arg2 ; | |
23452 | wxDateSpan *result; | |
23453 | PyObject * obj0 = 0 ; | |
23454 | PyObject * obj1 = 0 ; | |
23455 | char *kwnames[] = { | |
23456 | (char *) "self",(char *) "n", NULL | |
23457 | }; | |
23458 | ||
23459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; | |
23460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23462 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23463 | if (PyErr_Occurred()) SWIG_fail; |
23464 | { | |
23465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23466 | { | |
23467 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
23468 | result = (wxDateSpan *) &_result_ref; | |
23469 | } | |
23470 | ||
23471 | wxPyEndAllowThreads(__tstate); | |
23472 | if (PyErr_Occurred()) SWIG_fail; | |
23473 | } | |
23474 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23475 | return resultobj; | |
23476 | fail: | |
23477 | return NULL; | |
23478 | } | |
23479 | ||
23480 | ||
c32bde28 | 23481 | static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23482 | PyObject *resultobj; |
23483 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23484 | int arg2 ; | |
23485 | wxDateSpan *result; | |
23486 | PyObject * obj0 = 0 ; | |
23487 | PyObject * obj1 = 0 ; | |
23488 | char *kwnames[] = { | |
23489 | (char *) "self",(char *) "n", NULL | |
23490 | }; | |
23491 | ||
23492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; | |
23493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23495 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23496 | if (PyErr_Occurred()) SWIG_fail; |
23497 | { | |
23498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23499 | { | |
23500 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
23501 | result = (wxDateSpan *) &_result_ref; | |
23502 | } | |
23503 | ||
23504 | wxPyEndAllowThreads(__tstate); | |
23505 | if (PyErr_Occurred()) SWIG_fail; | |
23506 | } | |
23507 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23508 | return resultobj; | |
23509 | fail: | |
23510 | return NULL; | |
23511 | } | |
23512 | ||
23513 | ||
c32bde28 | 23514 | static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23515 | PyObject *resultobj; |
23516 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23517 | int result; | |
23518 | PyObject * obj0 = 0 ; | |
23519 | char *kwnames[] = { | |
23520 | (char *) "self", NULL | |
23521 | }; | |
23522 | ||
23523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
23524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23526 | { | |
23527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23528 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
23529 | ||
23530 | wxPyEndAllowThreads(__tstate); | |
23531 | if (PyErr_Occurred()) SWIG_fail; | |
23532 | } | |
c32bde28 | 23533 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23534 | return resultobj; |
23535 | fail: | |
23536 | return NULL; | |
23537 | } | |
23538 | ||
23539 | ||
c32bde28 | 23540 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23541 | PyObject *resultobj; |
23542 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23543 | int result; | |
23544 | PyObject * obj0 = 0 ; | |
23545 | char *kwnames[] = { | |
23546 | (char *) "self", NULL | |
23547 | }; | |
23548 | ||
23549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
23550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23552 | { | |
23553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23554 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
23555 | ||
23556 | wxPyEndAllowThreads(__tstate); | |
23557 | if (PyErr_Occurred()) SWIG_fail; | |
23558 | } | |
c32bde28 | 23559 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23560 | return resultobj; |
23561 | fail: | |
23562 | return NULL; | |
23563 | } | |
23564 | ||
23565 | ||
c32bde28 | 23566 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23567 | PyObject *resultobj; |
23568 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23569 | int result; | |
23570 | PyObject * obj0 = 0 ; | |
23571 | char *kwnames[] = { | |
23572 | (char *) "self", NULL | |
23573 | }; | |
23574 | ||
23575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
23576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23578 | { | |
23579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23580 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
23581 | ||
23582 | wxPyEndAllowThreads(__tstate); | |
23583 | if (PyErr_Occurred()) SWIG_fail; | |
23584 | } | |
c32bde28 | 23585 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23586 | return resultobj; |
23587 | fail: | |
23588 | return NULL; | |
23589 | } | |
23590 | ||
23591 | ||
c32bde28 | 23592 | static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23593 | PyObject *resultobj; |
23594 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23595 | int result; | |
23596 | PyObject * obj0 = 0 ; | |
23597 | char *kwnames[] = { | |
23598 | (char *) "self", NULL | |
23599 | }; | |
23600 | ||
23601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
23602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23604 | { | |
23605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23606 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
23607 | ||
23608 | wxPyEndAllowThreads(__tstate); | |
23609 | if (PyErr_Occurred()) SWIG_fail; | |
23610 | } | |
c32bde28 | 23611 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23612 | return resultobj; |
23613 | fail: | |
23614 | return NULL; | |
23615 | } | |
23616 | ||
23617 | ||
c32bde28 | 23618 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23619 | PyObject *resultobj; |
23620 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23621 | int result; | |
23622 | PyObject * obj0 = 0 ; | |
23623 | char *kwnames[] = { | |
23624 | (char *) "self", NULL | |
23625 | }; | |
23626 | ||
23627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
23628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23630 | { | |
23631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23632 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
23633 | ||
23634 | wxPyEndAllowThreads(__tstate); | |
23635 | if (PyErr_Occurred()) SWIG_fail; | |
23636 | } | |
c32bde28 | 23637 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23638 | return resultobj; |
23639 | fail: | |
23640 | return NULL; | |
23641 | } | |
23642 | ||
23643 | ||
c32bde28 | 23644 | static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23645 | PyObject *resultobj; |
23646 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23647 | wxDateSpan *arg2 = 0 ; | |
23648 | wxDateSpan *result; | |
23649 | PyObject * obj0 = 0 ; | |
23650 | PyObject * obj1 = 0 ; | |
23651 | char *kwnames[] = { | |
23652 | (char *) "self",(char *) "other", NULL | |
23653 | }; | |
23654 | ||
23655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
23656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23658 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23659 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23660 | SWIG_fail; | |
23661 | if (arg2 == NULL) { | |
23662 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23663 | SWIG_fail; | |
23664 | } | |
23665 | { | |
23666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23667 | { | |
23668 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
23669 | result = (wxDateSpan *) &_result_ref; | |
23670 | } | |
23671 | ||
23672 | wxPyEndAllowThreads(__tstate); | |
23673 | if (PyErr_Occurred()) SWIG_fail; | |
23674 | } | |
23675 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23676 | return resultobj; | |
23677 | fail: | |
23678 | return NULL; | |
23679 | } | |
23680 | ||
23681 | ||
c32bde28 | 23682 | static PyObject *_wrap_DateSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23683 | PyObject *resultobj; |
23684 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23685 | wxDateSpan *arg2 = 0 ; | |
23686 | wxDateSpan *result; | |
23687 | PyObject * obj0 = 0 ; | |
23688 | PyObject * obj1 = 0 ; | |
23689 | char *kwnames[] = { | |
23690 | (char *) "self",(char *) "other", NULL | |
23691 | }; | |
23692 | ||
23693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
23694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23696 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23697 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23698 | SWIG_fail; | |
23699 | if (arg2 == NULL) { | |
23700 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23701 | SWIG_fail; | |
23702 | } | |
23703 | { | |
23704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23705 | { | |
23706 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
23707 | result = (wxDateSpan *) &_result_ref; | |
23708 | } | |
23709 | ||
23710 | wxPyEndAllowThreads(__tstate); | |
23711 | if (PyErr_Occurred()) SWIG_fail; | |
23712 | } | |
23713 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23714 | return resultobj; | |
23715 | fail: | |
23716 | return NULL; | |
23717 | } | |
23718 | ||
23719 | ||
c32bde28 | 23720 | static PyObject *_wrap_DateSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23721 | PyObject *resultobj; |
23722 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23723 | wxDateSpan *result; | |
23724 | PyObject * obj0 = 0 ; | |
23725 | char *kwnames[] = { | |
23726 | (char *) "self", NULL | |
23727 | }; | |
23728 | ||
23729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
23730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23732 | { | |
23733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23734 | { | |
23735 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
23736 | result = (wxDateSpan *) &_result_ref; | |
23737 | } | |
23738 | ||
23739 | wxPyEndAllowThreads(__tstate); | |
23740 | if (PyErr_Occurred()) SWIG_fail; | |
23741 | } | |
23742 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23743 | return resultobj; | |
23744 | fail: | |
23745 | return NULL; | |
23746 | } | |
23747 | ||
23748 | ||
c32bde28 | 23749 | static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23750 | PyObject *resultobj; |
23751 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23752 | int arg2 ; | |
23753 | wxDateSpan *result; | |
23754 | PyObject * obj0 = 0 ; | |
23755 | PyObject * obj1 = 0 ; | |
23756 | char *kwnames[] = { | |
23757 | (char *) "self",(char *) "factor", NULL | |
23758 | }; | |
23759 | ||
23760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
23761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23763 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23764 | if (PyErr_Occurred()) SWIG_fail; |
23765 | { | |
23766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23767 | { | |
23768 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
23769 | result = (wxDateSpan *) &_result_ref; | |
23770 | } | |
23771 | ||
23772 | wxPyEndAllowThreads(__tstate); | |
23773 | if (PyErr_Occurred()) SWIG_fail; | |
23774 | } | |
23775 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23776 | return resultobj; | |
23777 | fail: | |
23778 | return NULL; | |
23779 | } | |
23780 | ||
23781 | ||
c32bde28 | 23782 | static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23783 | PyObject *resultobj; |
23784 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23785 | wxDateSpan *arg2 = 0 ; | |
23786 | wxDateSpan *result; | |
23787 | PyObject * obj0 = 0 ; | |
23788 | PyObject * obj1 = 0 ; | |
23789 | char *kwnames[] = { | |
23790 | (char *) "self",(char *) "other", NULL | |
23791 | }; | |
23792 | ||
23793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
23794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
c32bde28 | 23795 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
23796 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, |
23797 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23798 | SWIG_fail; | |
23799 | if (arg2 == NULL) { | |
23800 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23801 | SWIG_fail; | |
23802 | } | |
23803 | { | |
23804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23805 | { | |
23806 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
23807 | result = (wxDateSpan *) &_result_ref; | |
23808 | } | |
23809 | ||
23810 | wxPyEndAllowThreads(__tstate); | |
23811 | if (PyErr_Occurred()) SWIG_fail; | |
23812 | } | |
c32bde28 | 23813 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
23814 | return resultobj; |
23815 | fail: | |
23816 | return NULL; | |
23817 | } | |
23818 | ||
23819 | ||
c32bde28 | 23820 | static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23821 | PyObject *resultobj; |
23822 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23823 | wxDateSpan *arg2 = 0 ; | |
23824 | wxDateSpan *result; | |
23825 | PyObject * obj0 = 0 ; | |
23826 | PyObject * obj1 = 0 ; | |
23827 | char *kwnames[] = { | |
23828 | (char *) "self",(char *) "other", NULL | |
23829 | }; | |
23830 | ||
23831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
23832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
c32bde28 | 23833 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
23834 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, |
23835 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23836 | SWIG_fail; | |
23837 | if (arg2 == NULL) { | |
23838 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23839 | SWIG_fail; | |
23840 | } | |
23841 | { | |
23842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23843 | { | |
23844 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
23845 | result = (wxDateSpan *) &_result_ref; | |
23846 | } | |
23847 | ||
23848 | wxPyEndAllowThreads(__tstate); | |
23849 | if (PyErr_Occurred()) SWIG_fail; | |
23850 | } | |
c32bde28 | 23851 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
23852 | return resultobj; |
23853 | fail: | |
23854 | return NULL; | |
23855 | } | |
23856 | ||
23857 | ||
c32bde28 | 23858 | static PyObject *_wrap_DateSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23859 | PyObject *resultobj; |
23860 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23861 | wxDateSpan *result; | |
23862 | PyObject * obj0 = 0 ; | |
23863 | char *kwnames[] = { | |
23864 | (char *) "self", NULL | |
23865 | }; | |
23866 | ||
23867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
23868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23870 | { | |
23871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23872 | { | |
23873 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
23874 | result = (wxDateSpan *) &_result_ref; | |
23875 | } | |
23876 | ||
23877 | wxPyEndAllowThreads(__tstate); | |
23878 | if (PyErr_Occurred()) SWIG_fail; | |
23879 | } | |
23880 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23881 | return resultobj; | |
23882 | fail: | |
23883 | return NULL; | |
23884 | } | |
23885 | ||
23886 | ||
c32bde28 | 23887 | static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23888 | PyObject *resultobj; |
23889 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23890 | int arg2 ; | |
23891 | wxDateSpan *result; | |
23892 | PyObject * obj0 = 0 ; | |
23893 | PyObject * obj1 = 0 ; | |
23894 | char *kwnames[] = { | |
23895 | (char *) "self",(char *) "factor", NULL | |
23896 | }; | |
23897 | ||
23898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
23899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
c32bde28 RD |
23900 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
23901 | arg2 = (int)SWIG_As_int(obj1); | |
d55e5bfc RD |
23902 | if (PyErr_Occurred()) SWIG_fail; |
23903 | { | |
23904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23905 | { | |
23906 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
23907 | result = (wxDateSpan *) &_result_ref; | |
23908 | } | |
23909 | ||
23910 | wxPyEndAllowThreads(__tstate); | |
23911 | if (PyErr_Occurred()) SWIG_fail; | |
23912 | } | |
c32bde28 | 23913 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
23914 | return resultobj; |
23915 | fail: | |
23916 | return NULL; | |
23917 | } | |
23918 | ||
23919 | ||
c32bde28 | 23920 | static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23921 | PyObject *resultobj; |
23922 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23923 | wxDateSpan *arg2 = 0 ; | |
23924 | wxDateSpan result; | |
23925 | PyObject * obj0 = 0 ; | |
23926 | PyObject * obj1 = 0 ; | |
23927 | char *kwnames[] = { | |
23928 | (char *) "self",(char *) "other", NULL | |
23929 | }; | |
23930 | ||
23931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
23932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23934 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23935 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23936 | SWIG_fail; | |
23937 | if (arg2 == NULL) { | |
23938 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23939 | SWIG_fail; | |
23940 | } | |
23941 | { | |
23942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23943 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
23944 | ||
23945 | wxPyEndAllowThreads(__tstate); | |
23946 | if (PyErr_Occurred()) SWIG_fail; | |
23947 | } | |
23948 | { | |
23949 | wxDateSpan * resultptr; | |
23950 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23951 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23952 | } | |
23953 | return resultobj; | |
23954 | fail: | |
23955 | return NULL; | |
23956 | } | |
23957 | ||
23958 | ||
c32bde28 | 23959 | static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23960 | PyObject *resultobj; |
23961 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23962 | wxDateSpan *arg2 = 0 ; | |
23963 | wxDateSpan result; | |
23964 | PyObject * obj0 = 0 ; | |
23965 | PyObject * obj1 = 0 ; | |
23966 | char *kwnames[] = { | |
23967 | (char *) "self",(char *) "other", NULL | |
23968 | }; | |
23969 | ||
23970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
23971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23973 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23974 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23975 | SWIG_fail; | |
23976 | if (arg2 == NULL) { | |
23977 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23978 | SWIG_fail; | |
23979 | } | |
23980 | { | |
23981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23982 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
23983 | ||
23984 | wxPyEndAllowThreads(__tstate); | |
23985 | if (PyErr_Occurred()) SWIG_fail; | |
23986 | } | |
23987 | { | |
23988 | wxDateSpan * resultptr; | |
23989 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23990 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23991 | } | |
23992 | return resultobj; | |
23993 | fail: | |
23994 | return NULL; | |
23995 | } | |
23996 | ||
23997 | ||
c32bde28 | 23998 | static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23999 | PyObject *resultobj; |
24000 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24001 | int arg2 ; | |
24002 | wxDateSpan result; | |
24003 | PyObject * obj0 = 0 ; | |
24004 | PyObject * obj1 = 0 ; | |
24005 | char *kwnames[] = { | |
24006 | (char *) "self",(char *) "n", NULL | |
24007 | }; | |
24008 | ||
24009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
24010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24012 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24013 | if (PyErr_Occurred()) SWIG_fail; |
24014 | { | |
24015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24016 | result = wxDateSpan___mul__(arg1,arg2); | |
24017 | ||
24018 | wxPyEndAllowThreads(__tstate); | |
24019 | if (PyErr_Occurred()) SWIG_fail; | |
24020 | } | |
24021 | { | |
24022 | wxDateSpan * resultptr; | |
24023 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
24024 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
24025 | } | |
24026 | return resultobj; | |
24027 | fail: | |
24028 | return NULL; | |
24029 | } | |
24030 | ||
24031 | ||
c32bde28 | 24032 | static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24033 | PyObject *resultobj; |
24034 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24035 | int arg2 ; | |
24036 | wxDateSpan result; | |
24037 | PyObject * obj0 = 0 ; | |
24038 | PyObject * obj1 = 0 ; | |
24039 | char *kwnames[] = { | |
24040 | (char *) "self",(char *) "n", NULL | |
24041 | }; | |
24042 | ||
24043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
24044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24046 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24047 | if (PyErr_Occurred()) SWIG_fail; |
24048 | { | |
24049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24050 | result = wxDateSpan___rmul__(arg1,arg2); | |
24051 | ||
24052 | wxPyEndAllowThreads(__tstate); | |
24053 | if (PyErr_Occurred()) SWIG_fail; | |
24054 | } | |
24055 | { | |
24056 | wxDateSpan * resultptr; | |
24057 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
24058 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
24059 | } | |
24060 | return resultobj; | |
24061 | fail: | |
24062 | return NULL; | |
24063 | } | |
24064 | ||
24065 | ||
c32bde28 | 24066 | static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24067 | PyObject *resultobj; |
24068 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24069 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
24070 | bool result; | |
24071 | PyObject * obj0 = 0 ; | |
24072 | PyObject * obj1 = 0 ; | |
24073 | char *kwnames[] = { | |
24074 | (char *) "self",(char *) "other", NULL | |
24075 | }; | |
24076 | ||
24077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
24078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24080 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
24081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24082 | { | |
24083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24084 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); | |
24085 | ||
24086 | wxPyEndAllowThreads(__tstate); | |
24087 | if (PyErr_Occurred()) SWIG_fail; | |
24088 | } | |
24089 | { | |
24090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24091 | } | |
24092 | return resultobj; | |
24093 | fail: | |
24094 | return NULL; | |
24095 | } | |
24096 | ||
24097 | ||
c32bde28 | 24098 | static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24099 | PyObject *resultobj; |
24100 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24101 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
24102 | bool result; | |
24103 | PyObject * obj0 = 0 ; | |
24104 | PyObject * obj1 = 0 ; | |
24105 | char *kwnames[] = { | |
24106 | (char *) "self",(char *) "other", NULL | |
24107 | }; | |
24108 | ||
24109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
24110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24112 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
24113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24114 | { | |
24115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24116 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); | |
24117 | ||
24118 | wxPyEndAllowThreads(__tstate); | |
24119 | if (PyErr_Occurred()) SWIG_fail; | |
24120 | } | |
24121 | { | |
24122 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24123 | } | |
24124 | return resultobj; | |
24125 | fail: | |
24126 | return NULL; | |
24127 | } | |
24128 | ||
24129 | ||
c32bde28 | 24130 | static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
24131 | PyObject *obj; |
24132 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24133 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
24134 | Py_INCREF(obj); | |
24135 | return Py_BuildValue((char *)""); | |
24136 | } | |
c32bde28 | 24137 | static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24138 | PyObject *resultobj; |
24139 | long result; | |
24140 | char *kwnames[] = { | |
24141 | NULL | |
24142 | }; | |
24143 | ||
24144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
24145 | { | |
24146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24147 | result = (long)wxGetLocalTime(); | |
24148 | ||
24149 | wxPyEndAllowThreads(__tstate); | |
24150 | if (PyErr_Occurred()) SWIG_fail; | |
24151 | } | |
c32bde28 | 24152 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24153 | return resultobj; |
24154 | fail: | |
24155 | return NULL; | |
24156 | } | |
24157 | ||
24158 | ||
c32bde28 | 24159 | static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24160 | PyObject *resultobj; |
24161 | long result; | |
24162 | char *kwnames[] = { | |
24163 | NULL | |
24164 | }; | |
24165 | ||
24166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
24167 | { | |
24168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24169 | result = (long)wxGetUTCTime(); | |
24170 | ||
24171 | wxPyEndAllowThreads(__tstate); | |
24172 | if (PyErr_Occurred()) SWIG_fail; | |
24173 | } | |
c32bde28 | 24174 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24175 | return resultobj; |
24176 | fail: | |
24177 | return NULL; | |
24178 | } | |
24179 | ||
24180 | ||
c32bde28 | 24181 | static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24182 | PyObject *resultobj; |
24183 | long result; | |
24184 | char *kwnames[] = { | |
24185 | NULL | |
24186 | }; | |
24187 | ||
24188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
24189 | { | |
24190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24191 | result = (long)wxGetCurrentTime(); | |
24192 | ||
24193 | wxPyEndAllowThreads(__tstate); | |
24194 | if (PyErr_Occurred()) SWIG_fail; | |
24195 | } | |
c32bde28 | 24196 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24197 | return resultobj; |
24198 | fail: | |
24199 | return NULL; | |
24200 | } | |
24201 | ||
24202 | ||
c32bde28 | 24203 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24204 | PyObject *resultobj; |
24205 | wxLongLong result; | |
24206 | char *kwnames[] = { | |
24207 | NULL | |
24208 | }; | |
24209 | ||
24210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
24211 | { | |
24212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24213 | result = wxGetLocalTimeMillis(); | |
24214 | ||
24215 | wxPyEndAllowThreads(__tstate); | |
24216 | if (PyErr_Occurred()) SWIG_fail; | |
24217 | } | |
24218 | { | |
24219 | PyObject *hi, *lo, *shifter, *shifted; | |
24220 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
24221 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
24222 | shifter = PyLong_FromLong(32); | |
24223 | shifted = PyNumber_Lshift(hi, shifter); | |
24224 | resultobj = PyNumber_Or(shifted, lo); | |
24225 | Py_DECREF(hi); | |
24226 | Py_DECREF(lo); | |
24227 | Py_DECREF(shifter); | |
24228 | Py_DECREF(shifted); | |
24229 | } | |
24230 | return resultobj; | |
24231 | fail: | |
24232 | return NULL; | |
24233 | } | |
24234 | ||
24235 | ||
c32bde28 | 24236 | static int _wrap_DefaultDateTime_set(PyObject *) { |
d55e5bfc RD |
24237 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); |
24238 | return 1; | |
24239 | } | |
24240 | ||
24241 | ||
24242 | static PyObject *_wrap_DefaultDateTime_get() { | |
24243 | PyObject *pyobj; | |
24244 | ||
24245 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); | |
24246 | return pyobj; | |
24247 | } | |
24248 | ||
24249 | ||
c32bde28 | 24250 | static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24251 | PyObject *resultobj; |
24252 | int arg1 ; | |
24253 | wxDataFormat *result; | |
24254 | PyObject * obj0 = 0 ; | |
24255 | char *kwnames[] = { | |
24256 | (char *) "type", NULL | |
24257 | }; | |
24258 | ||
24259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; | |
c32bde28 | 24260 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
24261 | if (PyErr_Occurred()) SWIG_fail; |
24262 | { | |
24263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24264 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
24265 | ||
24266 | wxPyEndAllowThreads(__tstate); | |
24267 | if (PyErr_Occurred()) SWIG_fail; | |
24268 | } | |
24269 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
24270 | return resultobj; | |
24271 | fail: | |
24272 | return NULL; | |
24273 | } | |
24274 | ||
24275 | ||
c32bde28 | 24276 | static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24277 | PyObject *resultobj; |
24278 | wxString *arg1 = 0 ; | |
24279 | wxDataFormat *result; | |
ae8162c8 | 24280 | bool temp1 = false ; |
d55e5bfc RD |
24281 | PyObject * obj0 = 0 ; |
24282 | char *kwnames[] = { | |
24283 | (char *) "format", NULL | |
24284 | }; | |
24285 | ||
24286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
24287 | { | |
24288 | arg1 = wxString_in_helper(obj0); | |
24289 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 24290 | temp1 = true; |
d55e5bfc RD |
24291 | } |
24292 | { | |
24293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24294 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
24295 | ||
24296 | wxPyEndAllowThreads(__tstate); | |
24297 | if (PyErr_Occurred()) SWIG_fail; | |
24298 | } | |
24299 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
24300 | { | |
24301 | if (temp1) | |
24302 | delete arg1; | |
24303 | } | |
24304 | return resultobj; | |
24305 | fail: | |
24306 | { | |
24307 | if (temp1) | |
24308 | delete arg1; | |
24309 | } | |
24310 | return NULL; | |
24311 | } | |
24312 | ||
24313 | ||
c32bde28 | 24314 | static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24315 | PyObject *resultobj; |
24316 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24317 | PyObject * obj0 = 0 ; | |
24318 | char *kwnames[] = { | |
24319 | (char *) "self", NULL | |
24320 | }; | |
24321 | ||
24322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
24323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24325 | { | |
24326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24327 | delete arg1; | |
24328 | ||
24329 | wxPyEndAllowThreads(__tstate); | |
24330 | if (PyErr_Occurred()) SWIG_fail; | |
24331 | } | |
24332 | Py_INCREF(Py_None); resultobj = Py_None; | |
24333 | return resultobj; | |
24334 | fail: | |
24335 | return NULL; | |
24336 | } | |
24337 | ||
24338 | ||
c32bde28 | 24339 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
24340 | PyObject *resultobj; |
24341 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24342 | int arg2 ; | |
24343 | bool result; | |
24344 | PyObject * obj0 = 0 ; | |
24345 | PyObject * obj1 = 0 ; | |
24346 | ||
24347 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
24348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24350 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24351 | if (PyErr_Occurred()) SWIG_fail; |
24352 | { | |
24353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24354 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); | |
24355 | ||
24356 | wxPyEndAllowThreads(__tstate); | |
24357 | if (PyErr_Occurred()) SWIG_fail; | |
24358 | } | |
24359 | { | |
24360 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24361 | } | |
24362 | return resultobj; | |
24363 | fail: | |
24364 | return NULL; | |
24365 | } | |
24366 | ||
24367 | ||
c32bde28 | 24368 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
24369 | PyObject *resultobj; |
24370 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24371 | int arg2 ; | |
24372 | bool result; | |
24373 | PyObject * obj0 = 0 ; | |
24374 | PyObject * obj1 = 0 ; | |
24375 | ||
24376 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
24377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24379 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24380 | if (PyErr_Occurred()) SWIG_fail; |
24381 | { | |
24382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24383 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); | |
24384 | ||
24385 | wxPyEndAllowThreads(__tstate); | |
24386 | if (PyErr_Occurred()) SWIG_fail; | |
24387 | } | |
24388 | { | |
24389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24390 | } | |
24391 | return resultobj; | |
24392 | fail: | |
24393 | return NULL; | |
24394 | } | |
24395 | ||
24396 | ||
c32bde28 | 24397 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
24398 | PyObject *resultobj; |
24399 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24400 | wxDataFormat *arg2 = 0 ; | |
24401 | bool result; | |
24402 | PyObject * obj0 = 0 ; | |
24403 | PyObject * obj1 = 0 ; | |
24404 | ||
24405 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
24406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24408 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24409 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24410 | SWIG_fail; | |
24411 | if (arg2 == NULL) { | |
24412 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24413 | SWIG_fail; | |
24414 | } | |
24415 | { | |
24416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24417 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
24418 | ||
24419 | wxPyEndAllowThreads(__tstate); | |
24420 | if (PyErr_Occurred()) SWIG_fail; | |
24421 | } | |
24422 | { | |
24423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24424 | } | |
24425 | return resultobj; | |
24426 | fail: | |
24427 | return NULL; | |
24428 | } | |
24429 | ||
24430 | ||
24431 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
24432 | int argc; | |
24433 | PyObject *argv[3]; | |
24434 | int ii; | |
24435 | ||
24436 | argc = PyObject_Length(args); | |
24437 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24438 | argv[ii] = PyTuple_GetItem(args,ii); | |
24439 | } | |
24440 | if (argc == 2) { | |
24441 | int _v; | |
24442 | { | |
24443 | void *ptr; | |
24444 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24445 | _v = 0; | |
24446 | PyErr_Clear(); | |
24447 | } else { | |
24448 | _v = 1; | |
24449 | } | |
24450 | } | |
24451 | if (_v) { | |
24452 | { | |
24453 | void *ptr; | |
24454 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24455 | _v = 0; | |
24456 | PyErr_Clear(); | |
24457 | } else { | |
24458 | _v = 1; | |
24459 | } | |
24460 | } | |
24461 | if (_v) { | |
24462 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
24463 | } | |
24464 | } | |
24465 | } | |
24466 | if (argc == 2) { | |
24467 | int _v; | |
24468 | { | |
24469 | void *ptr; | |
24470 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24471 | _v = 0; | |
24472 | PyErr_Clear(); | |
24473 | } else { | |
24474 | _v = 1; | |
24475 | } | |
24476 | } | |
24477 | if (_v) { | |
c32bde28 | 24478 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
24479 | if (_v) { |
24480 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
24481 | } | |
24482 | } | |
24483 | } | |
24484 | ||
24485 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
24486 | return NULL; | |
24487 | } | |
24488 | ||
24489 | ||
c32bde28 | 24490 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
24491 | PyObject *resultobj; |
24492 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24493 | wxDataFormat *arg2 = 0 ; | |
24494 | bool result; | |
24495 | PyObject * obj0 = 0 ; | |
24496 | PyObject * obj1 = 0 ; | |
24497 | ||
24498 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
24499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24501 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24502 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24503 | SWIG_fail; | |
24504 | if (arg2 == NULL) { | |
24505 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24506 | SWIG_fail; | |
24507 | } | |
24508 | { | |
24509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24510 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
24511 | ||
24512 | wxPyEndAllowThreads(__tstate); | |
24513 | if (PyErr_Occurred()) SWIG_fail; | |
24514 | } | |
24515 | { | |
24516 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24517 | } | |
24518 | return resultobj; | |
24519 | fail: | |
24520 | return NULL; | |
24521 | } | |
24522 | ||
24523 | ||
24524 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
24525 | int argc; | |
24526 | PyObject *argv[3]; | |
24527 | int ii; | |
24528 | ||
24529 | argc = PyObject_Length(args); | |
24530 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24531 | argv[ii] = PyTuple_GetItem(args,ii); | |
24532 | } | |
24533 | if (argc == 2) { | |
24534 | int _v; | |
24535 | { | |
24536 | void *ptr; | |
24537 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24538 | _v = 0; | |
24539 | PyErr_Clear(); | |
24540 | } else { | |
24541 | _v = 1; | |
24542 | } | |
24543 | } | |
24544 | if (_v) { | |
24545 | { | |
24546 | void *ptr; | |
24547 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24548 | _v = 0; | |
24549 | PyErr_Clear(); | |
24550 | } else { | |
24551 | _v = 1; | |
24552 | } | |
24553 | } | |
24554 | if (_v) { | |
24555 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
24556 | } | |
24557 | } | |
24558 | } | |
24559 | if (argc == 2) { | |
24560 | int _v; | |
24561 | { | |
24562 | void *ptr; | |
24563 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24564 | _v = 0; | |
24565 | PyErr_Clear(); | |
24566 | } else { | |
24567 | _v = 1; | |
24568 | } | |
24569 | } | |
24570 | if (_v) { | |
c32bde28 | 24571 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
24572 | if (_v) { |
24573 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
24574 | } | |
24575 | } | |
24576 | } | |
24577 | ||
24578 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
24579 | return NULL; | |
24580 | } | |
24581 | ||
24582 | ||
c32bde28 | 24583 | static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24584 | PyObject *resultobj; |
24585 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24586 | int arg2 ; | |
24587 | PyObject * obj0 = 0 ; | |
24588 | PyObject * obj1 = 0 ; | |
24589 | char *kwnames[] = { | |
24590 | (char *) "self",(char *) "format", NULL | |
24591 | }; | |
24592 | ||
24593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; | |
24594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24596 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24597 | if (PyErr_Occurred()) SWIG_fail; |
24598 | { | |
24599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24600 | (arg1)->SetType((wxDataFormatId )arg2); | |
24601 | ||
24602 | wxPyEndAllowThreads(__tstate); | |
24603 | if (PyErr_Occurred()) SWIG_fail; | |
24604 | } | |
24605 | Py_INCREF(Py_None); resultobj = Py_None; | |
24606 | return resultobj; | |
24607 | fail: | |
24608 | return NULL; | |
24609 | } | |
24610 | ||
24611 | ||
c32bde28 | 24612 | static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24613 | PyObject *resultobj; |
24614 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24615 | int result; | |
24616 | PyObject * obj0 = 0 ; | |
24617 | char *kwnames[] = { | |
24618 | (char *) "self", NULL | |
24619 | }; | |
24620 | ||
24621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
24622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24624 | { | |
24625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24626 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
24627 | ||
24628 | wxPyEndAllowThreads(__tstate); | |
24629 | if (PyErr_Occurred()) SWIG_fail; | |
24630 | } | |
c32bde28 | 24631 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24632 | return resultobj; |
24633 | fail: | |
24634 | return NULL; | |
24635 | } | |
24636 | ||
24637 | ||
c32bde28 | 24638 | static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24639 | PyObject *resultobj; |
24640 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24641 | wxString result; | |
24642 | PyObject * obj0 = 0 ; | |
24643 | char *kwnames[] = { | |
24644 | (char *) "self", NULL | |
24645 | }; | |
24646 | ||
24647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
24648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24650 | { | |
24651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24652 | result = ((wxDataFormat const *)arg1)->GetId(); | |
24653 | ||
24654 | wxPyEndAllowThreads(__tstate); | |
24655 | if (PyErr_Occurred()) SWIG_fail; | |
24656 | } | |
24657 | { | |
24658 | #if wxUSE_UNICODE | |
24659 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24660 | #else | |
24661 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24662 | #endif | |
24663 | } | |
24664 | return resultobj; | |
24665 | fail: | |
24666 | return NULL; | |
24667 | } | |
24668 | ||
24669 | ||
c32bde28 | 24670 | static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24671 | PyObject *resultobj; |
24672 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24673 | wxString *arg2 = 0 ; | |
ae8162c8 | 24674 | bool temp2 = false ; |
d55e5bfc RD |
24675 | PyObject * obj0 = 0 ; |
24676 | PyObject * obj1 = 0 ; | |
24677 | char *kwnames[] = { | |
24678 | (char *) "self",(char *) "format", NULL | |
24679 | }; | |
24680 | ||
24681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
24682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24684 | { | |
24685 | arg2 = wxString_in_helper(obj1); | |
24686 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 24687 | temp2 = true; |
d55e5bfc RD |
24688 | } |
24689 | { | |
24690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24691 | (arg1)->SetId((wxString const &)*arg2); | |
24692 | ||
24693 | wxPyEndAllowThreads(__tstate); | |
24694 | if (PyErr_Occurred()) SWIG_fail; | |
24695 | } | |
24696 | Py_INCREF(Py_None); resultobj = Py_None; | |
24697 | { | |
24698 | if (temp2) | |
24699 | delete arg2; | |
24700 | } | |
24701 | return resultobj; | |
24702 | fail: | |
24703 | { | |
24704 | if (temp2) | |
24705 | delete arg2; | |
24706 | } | |
24707 | return NULL; | |
24708 | } | |
24709 | ||
24710 | ||
c32bde28 | 24711 | static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
24712 | PyObject *obj; |
24713 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24714 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
24715 | Py_INCREF(obj); | |
24716 | return Py_BuildValue((char *)""); | |
24717 | } | |
c32bde28 | 24718 | static int _wrap_FormatInvalid_set(PyObject *) { |
d55e5bfc RD |
24719 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); |
24720 | return 1; | |
24721 | } | |
24722 | ||
24723 | ||
24724 | static PyObject *_wrap_FormatInvalid_get() { | |
24725 | PyObject *pyobj; | |
24726 | ||
24727 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); | |
24728 | return pyobj; | |
24729 | } | |
24730 | ||
24731 | ||
c32bde28 | 24732 | static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24733 | PyObject *resultobj; |
24734 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24735 | PyObject * obj0 = 0 ; | |
24736 | char *kwnames[] = { | |
24737 | (char *) "self", NULL | |
24738 | }; | |
24739 | ||
24740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
24741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24743 | { | |
24744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24745 | delete arg1; | |
24746 | ||
24747 | wxPyEndAllowThreads(__tstate); | |
24748 | if (PyErr_Occurred()) SWIG_fail; | |
24749 | } | |
24750 | Py_INCREF(Py_None); resultobj = Py_None; | |
24751 | return resultobj; | |
24752 | fail: | |
24753 | return NULL; | |
24754 | } | |
24755 | ||
24756 | ||
c32bde28 | 24757 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24758 | PyObject *resultobj; |
24759 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24760 | int arg2 = (int) wxDataObject::Get ; | |
24761 | SwigValueWrapper< wxDataFormat > result; | |
24762 | PyObject * obj0 = 0 ; | |
24763 | PyObject * obj1 = 0 ; | |
24764 | char *kwnames[] = { | |
24765 | (char *) "self",(char *) "dir", NULL | |
24766 | }; | |
24767 | ||
24768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; | |
24769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24771 | if (obj1) { | |
c32bde28 | 24772 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24773 | if (PyErr_Occurred()) SWIG_fail; |
24774 | } | |
24775 | { | |
24776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24777 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
24778 | ||
24779 | wxPyEndAllowThreads(__tstate); | |
24780 | if (PyErr_Occurred()) SWIG_fail; | |
24781 | } | |
24782 | { | |
24783 | wxDataFormat * resultptr; | |
24784 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
24785 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); | |
24786 | } | |
24787 | return resultobj; | |
24788 | fail: | |
24789 | return NULL; | |
24790 | } | |
24791 | ||
24792 | ||
c32bde28 | 24793 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24794 | PyObject *resultobj; |
24795 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24796 | int arg2 = (int) wxDataObject::Get ; | |
24797 | size_t result; | |
24798 | PyObject * obj0 = 0 ; | |
24799 | PyObject * obj1 = 0 ; | |
24800 | char *kwnames[] = { | |
24801 | (char *) "self",(char *) "dir", NULL | |
24802 | }; | |
24803 | ||
24804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; | |
24805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24807 | if (obj1) { | |
c32bde28 | 24808 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24809 | if (PyErr_Occurred()) SWIG_fail; |
24810 | } | |
24811 | { | |
24812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24813 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
24814 | ||
24815 | wxPyEndAllowThreads(__tstate); | |
24816 | if (PyErr_Occurred()) SWIG_fail; | |
24817 | } | |
c32bde28 | 24818 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
24819 | return resultobj; |
24820 | fail: | |
24821 | return NULL; | |
24822 | } | |
24823 | ||
24824 | ||
c32bde28 | 24825 | static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24826 | PyObject *resultobj; |
24827 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24828 | wxDataFormat *arg2 = 0 ; | |
24829 | int arg3 = (int) wxDataObject::Get ; | |
24830 | bool result; | |
24831 | PyObject * obj0 = 0 ; | |
24832 | PyObject * obj1 = 0 ; | |
24833 | PyObject * obj2 = 0 ; | |
24834 | char *kwnames[] = { | |
24835 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
24836 | }; | |
24837 | ||
24838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24841 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24842 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24843 | SWIG_fail; | |
24844 | if (arg2 == NULL) { | |
24845 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24846 | SWIG_fail; | |
24847 | } | |
24848 | if (obj2) { | |
c32bde28 | 24849 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
24850 | if (PyErr_Occurred()) SWIG_fail; |
24851 | } | |
24852 | { | |
24853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24854 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
24855 | ||
24856 | wxPyEndAllowThreads(__tstate); | |
24857 | if (PyErr_Occurred()) SWIG_fail; | |
24858 | } | |
24859 | { | |
24860 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24861 | } | |
24862 | return resultobj; | |
24863 | fail: | |
24864 | return NULL; | |
24865 | } | |
24866 | ||
24867 | ||
c32bde28 | 24868 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24869 | PyObject *resultobj; |
24870 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24871 | wxDataFormat *arg2 = 0 ; | |
24872 | size_t result; | |
24873 | PyObject * obj0 = 0 ; | |
24874 | PyObject * obj1 = 0 ; | |
24875 | char *kwnames[] = { | |
24876 | (char *) "self",(char *) "format", NULL | |
24877 | }; | |
24878 | ||
24879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
24880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24882 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24883 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24884 | SWIG_fail; | |
24885 | if (arg2 == NULL) { | |
24886 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24887 | SWIG_fail; | |
24888 | } | |
24889 | { | |
24890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24891 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
24892 | ||
24893 | wxPyEndAllowThreads(__tstate); | |
24894 | if (PyErr_Occurred()) SWIG_fail; | |
24895 | } | |
c32bde28 | 24896 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
24897 | return resultobj; |
24898 | fail: | |
24899 | return NULL; | |
24900 | } | |
24901 | ||
24902 | ||
c32bde28 | 24903 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24904 | PyObject *resultobj; |
24905 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
a07a67e6 RD |
24906 | int arg2 = (int) wxDataObject::Get ; |
24907 | PyObject *result; | |
d55e5bfc RD |
24908 | PyObject * obj0 = 0 ; |
24909 | PyObject * obj1 = 0 ; | |
d55e5bfc | 24910 | char *kwnames[] = { |
a07a67e6 | 24911 | (char *) "self",(char *) "dir", NULL |
d55e5bfc RD |
24912 | }; |
24913 | ||
a07a67e6 | 24914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
24915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a07a67e6 | 24917 | if (obj1) { |
c32bde28 | 24918 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24919 | if (PyErr_Occurred()) SWIG_fail; |
24920 | } | |
24921 | { | |
24922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a07a67e6 | 24923 | result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2); |
d55e5bfc RD |
24924 | |
24925 | wxPyEndAllowThreads(__tstate); | |
24926 | if (PyErr_Occurred()) SWIG_fail; | |
24927 | } | |
a07a67e6 | 24928 | resultobj = result; |
d55e5bfc RD |
24929 | return resultobj; |
24930 | fail: | |
24931 | return NULL; | |
24932 | } | |
24933 | ||
24934 | ||
c32bde28 | 24935 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24936 | PyObject *resultobj; |
24937 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24938 | wxDataFormat *arg2 = 0 ; | |
a07a67e6 | 24939 | PyObject *result; |
d55e5bfc RD |
24940 | PyObject * obj0 = 0 ; |
24941 | PyObject * obj1 = 0 ; | |
d55e5bfc | 24942 | char *kwnames[] = { |
a07a67e6 | 24943 | (char *) "self",(char *) "format", NULL |
d55e5bfc RD |
24944 | }; |
24945 | ||
a07a67e6 | 24946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
24947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24949 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24950 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24951 | SWIG_fail; | |
24952 | if (arg2 == NULL) { | |
24953 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24954 | SWIG_fail; | |
24955 | } | |
d55e5bfc RD |
24956 | { |
24957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a07a67e6 | 24958 | result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2); |
d55e5bfc RD |
24959 | |
24960 | wxPyEndAllowThreads(__tstate); | |
24961 | if (PyErr_Occurred()) SWIG_fail; | |
24962 | } | |
a07a67e6 | 24963 | resultobj = result; |
d55e5bfc RD |
24964 | return resultobj; |
24965 | fail: | |
24966 | return NULL; | |
24967 | } | |
24968 | ||
24969 | ||
c32bde28 | 24970 | static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24971 | PyObject *resultobj; |
24972 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24973 | wxDataFormat *arg2 = 0 ; | |
a07a67e6 | 24974 | PyObject *arg3 = (PyObject *) 0 ; |
d55e5bfc RD |
24975 | bool result; |
24976 | PyObject * obj0 = 0 ; | |
24977 | PyObject * obj1 = 0 ; | |
24978 | PyObject * obj2 = 0 ; | |
d55e5bfc | 24979 | char *kwnames[] = { |
a07a67e6 | 24980 | (char *) "self",(char *) "format",(char *) "data", NULL |
d55e5bfc RD |
24981 | }; |
24982 | ||
a07a67e6 | 24983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
24984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24986 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24987 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24988 | SWIG_fail; | |
24989 | if (arg2 == NULL) { | |
24990 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24991 | SWIG_fail; | |
24992 | } | |
a07a67e6 | 24993 | arg3 = obj2; |
d55e5bfc RD |
24994 | { |
24995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a07a67e6 | 24996 | result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3); |
d55e5bfc RD |
24997 | |
24998 | wxPyEndAllowThreads(__tstate); | |
24999 | if (PyErr_Occurred()) SWIG_fail; | |
25000 | } | |
25001 | { | |
25002 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25003 | } | |
25004 | return resultobj; | |
25005 | fail: | |
25006 | return NULL; | |
25007 | } | |
25008 | ||
25009 | ||
c32bde28 | 25010 | static PyObject * DataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25011 | PyObject *obj; |
25012 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25013 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
25014 | Py_INCREF(obj); | |
25015 | return Py_BuildValue((char *)""); | |
25016 | } | |
c32bde28 | 25017 | static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25018 | PyObject *resultobj; |
25019 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25020 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25021 | wxDataObjectSimple *result; | |
25022 | PyObject * obj0 = 0 ; | |
25023 | char *kwnames[] = { | |
25024 | (char *) "format", NULL | |
25025 | }; | |
25026 | ||
25027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
25028 | if (obj0) { | |
25029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25030 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25031 | SWIG_fail; | |
25032 | if (arg1 == NULL) { | |
25033 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25034 | SWIG_fail; | |
25035 | } | |
25036 | } | |
25037 | { | |
25038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25039 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
25040 | ||
25041 | wxPyEndAllowThreads(__tstate); | |
25042 | if (PyErr_Occurred()) SWIG_fail; | |
25043 | } | |
25044 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); | |
25045 | return resultobj; | |
25046 | fail: | |
25047 | return NULL; | |
25048 | } | |
25049 | ||
25050 | ||
c32bde28 | 25051 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25052 | PyObject *resultobj; |
25053 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25054 | wxDataFormat *result; | |
25055 | PyObject * obj0 = 0 ; | |
25056 | char *kwnames[] = { | |
25057 | (char *) "self", NULL | |
25058 | }; | |
25059 | ||
25060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
25061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25063 | { | |
25064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25065 | { | |
25066 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
25067 | result = (wxDataFormat *) &_result_ref; | |
25068 | } | |
25069 | ||
25070 | wxPyEndAllowThreads(__tstate); | |
25071 | if (PyErr_Occurred()) SWIG_fail; | |
25072 | } | |
25073 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); | |
25074 | return resultobj; | |
25075 | fail: | |
25076 | return NULL; | |
25077 | } | |
25078 | ||
25079 | ||
c32bde28 | 25080 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25081 | PyObject *resultobj; |
25082 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25083 | wxDataFormat *arg2 = 0 ; | |
25084 | PyObject * obj0 = 0 ; | |
25085 | PyObject * obj1 = 0 ; | |
25086 | char *kwnames[] = { | |
25087 | (char *) "self",(char *) "format", NULL | |
25088 | }; | |
25089 | ||
25090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
25091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25093 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
25094 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25095 | SWIG_fail; | |
25096 | if (arg2 == NULL) { | |
25097 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25098 | SWIG_fail; | |
25099 | } | |
25100 | { | |
25101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25102 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
25103 | ||
25104 | wxPyEndAllowThreads(__tstate); | |
25105 | if (PyErr_Occurred()) SWIG_fail; | |
25106 | } | |
25107 | Py_INCREF(Py_None); resultobj = Py_None; | |
25108 | return resultobj; | |
25109 | fail: | |
25110 | return NULL; | |
25111 | } | |
25112 | ||
25113 | ||
c32bde28 | 25114 | static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a07a67e6 RD |
25115 | PyObject *resultobj; |
25116 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25117 | size_t result; | |
25118 | PyObject * obj0 = 0 ; | |
25119 | char *kwnames[] = { | |
25120 | (char *) "self", NULL | |
25121 | }; | |
25122 | ||
25123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail; | |
25124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25126 | { | |
25127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25128 | result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize(); | |
25129 | ||
25130 | wxPyEndAllowThreads(__tstate); | |
25131 | if (PyErr_Occurred()) SWIG_fail; | |
25132 | } | |
c32bde28 | 25133 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
a07a67e6 RD |
25134 | return resultobj; |
25135 | fail: | |
25136 | return NULL; | |
25137 | } | |
25138 | ||
25139 | ||
c32bde28 | 25140 | static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) { |
a07a67e6 RD |
25141 | PyObject *resultobj; |
25142 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25143 | PyObject *result; | |
25144 | PyObject * obj0 = 0 ; | |
25145 | char *kwnames[] = { | |
25146 | (char *) "self", NULL | |
25147 | }; | |
25148 | ||
25149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail; | |
25150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25152 | { | |
25153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25154 | result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1); | |
25155 | ||
25156 | wxPyEndAllowThreads(__tstate); | |
25157 | if (PyErr_Occurred()) SWIG_fail; | |
25158 | } | |
25159 | resultobj = result; | |
25160 | return resultobj; | |
25161 | fail: | |
25162 | return NULL; | |
25163 | } | |
25164 | ||
25165 | ||
c32bde28 | 25166 | static PyObject *_wrap_DataObjectSimple_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
a07a67e6 RD |
25167 | PyObject *resultobj; |
25168 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25169 | PyObject *arg2 = (PyObject *) 0 ; | |
25170 | bool result; | |
25171 | PyObject * obj0 = 0 ; | |
25172 | PyObject * obj1 = 0 ; | |
25173 | char *kwnames[] = { | |
25174 | (char *) "self",(char *) "data", NULL | |
25175 | }; | |
25176 | ||
25177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25180 | arg2 = obj1; | |
25181 | { | |
25182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25183 | result = (bool)wxDataObjectSimple_SetData(arg1,arg2); | |
25184 | ||
25185 | wxPyEndAllowThreads(__tstate); | |
25186 | if (PyErr_Occurred()) SWIG_fail; | |
25187 | } | |
25188 | { | |
25189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25190 | } | |
25191 | return resultobj; | |
25192 | fail: | |
25193 | return NULL; | |
25194 | } | |
25195 | ||
25196 | ||
c32bde28 | 25197 | static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25198 | PyObject *obj; |
25199 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25200 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
25201 | Py_INCREF(obj); | |
25202 | return Py_BuildValue((char *)""); | |
25203 | } | |
c32bde28 | 25204 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25205 | PyObject *resultobj; |
25206 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25207 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25208 | wxPyDataObjectSimple *result; | |
25209 | PyObject * obj0 = 0 ; | |
25210 | char *kwnames[] = { | |
25211 | (char *) "format", NULL | |
25212 | }; | |
25213 | ||
25214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
25215 | if (obj0) { | |
25216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25217 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25218 | SWIG_fail; | |
25219 | if (arg1 == NULL) { | |
25220 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25221 | SWIG_fail; | |
25222 | } | |
25223 | } | |
25224 | { | |
25225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25226 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
25227 | ||
25228 | wxPyEndAllowThreads(__tstate); | |
25229 | if (PyErr_Occurred()) SWIG_fail; | |
25230 | } | |
25231 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
25232 | return resultobj; | |
25233 | fail: | |
25234 | return NULL; | |
25235 | } | |
25236 | ||
25237 | ||
c32bde28 | 25238 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25239 | PyObject *resultobj; |
25240 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
25241 | PyObject *arg2 = (PyObject *) 0 ; | |
25242 | PyObject *arg3 = (PyObject *) 0 ; | |
25243 | PyObject * obj0 = 0 ; | |
25244 | PyObject * obj1 = 0 ; | |
25245 | PyObject * obj2 = 0 ; | |
25246 | char *kwnames[] = { | |
25247 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25248 | }; | |
25249 | ||
25250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple, | |
25252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25253 | arg2 = obj1; | |
25254 | arg3 = obj2; | |
25255 | { | |
25256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25257 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25258 | ||
25259 | wxPyEndAllowThreads(__tstate); | |
25260 | if (PyErr_Occurred()) SWIG_fail; | |
25261 | } | |
25262 | Py_INCREF(Py_None); resultobj = Py_None; | |
25263 | return resultobj; | |
25264 | fail: | |
25265 | return NULL; | |
25266 | } | |
25267 | ||
25268 | ||
c32bde28 | 25269 | static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25270 | PyObject *obj; |
25271 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25272 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
25273 | Py_INCREF(obj); | |
25274 | return Py_BuildValue((char *)""); | |
25275 | } | |
c32bde28 | 25276 | static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25277 | PyObject *resultobj; |
25278 | wxDataObjectComposite *result; | |
25279 | char *kwnames[] = { | |
25280 | NULL | |
25281 | }; | |
25282 | ||
25283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
25284 | { | |
25285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25286 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
25287 | ||
25288 | wxPyEndAllowThreads(__tstate); | |
25289 | if (PyErr_Occurred()) SWIG_fail; | |
25290 | } | |
25291 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); | |
25292 | return resultobj; | |
25293 | fail: | |
25294 | return NULL; | |
25295 | } | |
25296 | ||
25297 | ||
c32bde28 | 25298 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25299 | PyObject *resultobj; |
25300 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
25301 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
ae8162c8 | 25302 | bool arg3 = (bool) false ; |
d55e5bfc RD |
25303 | PyObject * obj0 = 0 ; |
25304 | PyObject * obj1 = 0 ; | |
25305 | PyObject * obj2 = 0 ; | |
25306 | char *kwnames[] = { | |
25307 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
25308 | }; | |
25309 | ||
25310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite, | |
25312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25313 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple, | |
25314 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
25315 | if (obj2) { | |
c32bde28 | 25316 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
25317 | if (PyErr_Occurred()) SWIG_fail; |
25318 | } | |
25319 | { | |
25320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25321 | (arg1)->Add(arg2,arg3); | |
25322 | ||
25323 | wxPyEndAllowThreads(__tstate); | |
25324 | if (PyErr_Occurred()) SWIG_fail; | |
25325 | } | |
25326 | Py_INCREF(Py_None); resultobj = Py_None; | |
25327 | return resultobj; | |
25328 | fail: | |
25329 | return NULL; | |
25330 | } | |
25331 | ||
25332 | ||
c32bde28 | 25333 | static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25334 | PyObject *obj; |
25335 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25336 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
25337 | Py_INCREF(obj); | |
25338 | return Py_BuildValue((char *)""); | |
25339 | } | |
c32bde28 | 25340 | static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25341 | PyObject *resultobj; |
25342 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25343 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25344 | wxTextDataObject *result; | |
ae8162c8 | 25345 | bool temp1 = false ; |
d55e5bfc RD |
25346 | PyObject * obj0 = 0 ; |
25347 | char *kwnames[] = { | |
25348 | (char *) "text", NULL | |
25349 | }; | |
25350 | ||
25351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
25352 | if (obj0) { | |
25353 | { | |
25354 | arg1 = wxString_in_helper(obj0); | |
25355 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 25356 | temp1 = true; |
d55e5bfc RD |
25357 | } |
25358 | } | |
25359 | { | |
25360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25361 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
25362 | ||
25363 | wxPyEndAllowThreads(__tstate); | |
25364 | if (PyErr_Occurred()) SWIG_fail; | |
25365 | } | |
25366 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); | |
25367 | { | |
25368 | if (temp1) | |
25369 | delete arg1; | |
25370 | } | |
25371 | return resultobj; | |
25372 | fail: | |
25373 | { | |
25374 | if (temp1) | |
25375 | delete arg1; | |
25376 | } | |
25377 | return NULL; | |
25378 | } | |
25379 | ||
25380 | ||
c32bde28 | 25381 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25382 | PyObject *resultobj; |
25383 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25384 | size_t result; | |
25385 | PyObject * obj0 = 0 ; | |
25386 | char *kwnames[] = { | |
25387 | (char *) "self", NULL | |
25388 | }; | |
25389 | ||
25390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
25391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
25392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25393 | { | |
25394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25395 | result = (size_t)(arg1)->GetTextLength(); | |
25396 | ||
25397 | wxPyEndAllowThreads(__tstate); | |
25398 | if (PyErr_Occurred()) SWIG_fail; | |
25399 | } | |
c32bde28 | 25400 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
25401 | return resultobj; |
25402 | fail: | |
25403 | return NULL; | |
25404 | } | |
25405 | ||
25406 | ||
c32bde28 | 25407 | static PyObject *_wrap_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25408 | PyObject *resultobj; |
25409 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25410 | wxString result; | |
25411 | PyObject * obj0 = 0 ; | |
25412 | char *kwnames[] = { | |
25413 | (char *) "self", NULL | |
25414 | }; | |
25415 | ||
25416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
25417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
25418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25419 | { | |
25420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25421 | result = (arg1)->GetText(); | |
25422 | ||
25423 | wxPyEndAllowThreads(__tstate); | |
25424 | if (PyErr_Occurred()) SWIG_fail; | |
25425 | } | |
25426 | { | |
25427 | #if wxUSE_UNICODE | |
25428 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25429 | #else | |
25430 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25431 | #endif | |
25432 | } | |
25433 | return resultobj; | |
25434 | fail: | |
25435 | return NULL; | |
25436 | } | |
25437 | ||
25438 | ||
c32bde28 | 25439 | static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25440 | PyObject *resultobj; |
25441 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25442 | wxString *arg2 = 0 ; | |
ae8162c8 | 25443 | bool temp2 = false ; |
d55e5bfc RD |
25444 | PyObject * obj0 = 0 ; |
25445 | PyObject * obj1 = 0 ; | |
25446 | char *kwnames[] = { | |
25447 | (char *) "self",(char *) "text", NULL | |
25448 | }; | |
25449 | ||
25450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
25451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
25452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25453 | { | |
25454 | arg2 = wxString_in_helper(obj1); | |
25455 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25456 | temp2 = true; |
d55e5bfc RD |
25457 | } |
25458 | { | |
25459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25460 | (arg1)->SetText((wxString const &)*arg2); | |
25461 | ||
25462 | wxPyEndAllowThreads(__tstate); | |
25463 | if (PyErr_Occurred()) SWIG_fail; | |
25464 | } | |
25465 | Py_INCREF(Py_None); resultobj = Py_None; | |
25466 | { | |
25467 | if (temp2) | |
25468 | delete arg2; | |
25469 | } | |
25470 | return resultobj; | |
25471 | fail: | |
25472 | { | |
25473 | if (temp2) | |
25474 | delete arg2; | |
25475 | } | |
25476 | return NULL; | |
25477 | } | |
25478 | ||
25479 | ||
c32bde28 | 25480 | static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25481 | PyObject *obj; |
25482 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25483 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
25484 | Py_INCREF(obj); | |
25485 | return Py_BuildValue((char *)""); | |
25486 | } | |
c32bde28 | 25487 | static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25488 | PyObject *resultobj; |
25489 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25490 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25491 | wxPyTextDataObject *result; | |
ae8162c8 | 25492 | bool temp1 = false ; |
d55e5bfc RD |
25493 | PyObject * obj0 = 0 ; |
25494 | char *kwnames[] = { | |
25495 | (char *) "text", NULL | |
25496 | }; | |
25497 | ||
25498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
25499 | if (obj0) { | |
25500 | { | |
25501 | arg1 = wxString_in_helper(obj0); | |
25502 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 25503 | temp1 = true; |
d55e5bfc RD |
25504 | } |
25505 | } | |
25506 | { | |
25507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25508 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
25509 | ||
25510 | wxPyEndAllowThreads(__tstate); | |
25511 | if (PyErr_Occurred()) SWIG_fail; | |
25512 | } | |
25513 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); | |
25514 | { | |
25515 | if (temp1) | |
25516 | delete arg1; | |
25517 | } | |
25518 | return resultobj; | |
25519 | fail: | |
25520 | { | |
25521 | if (temp1) | |
25522 | delete arg1; | |
25523 | } | |
25524 | return NULL; | |
25525 | } | |
25526 | ||
25527 | ||
c32bde28 | 25528 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25529 | PyObject *resultobj; |
25530 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
25531 | PyObject *arg2 = (PyObject *) 0 ; | |
25532 | PyObject *arg3 = (PyObject *) 0 ; | |
25533 | PyObject * obj0 = 0 ; | |
25534 | PyObject * obj1 = 0 ; | |
25535 | PyObject * obj2 = 0 ; | |
25536 | char *kwnames[] = { | |
25537 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25538 | }; | |
25539 | ||
25540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject, | |
25542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25543 | arg2 = obj1; | |
25544 | arg3 = obj2; | |
25545 | { | |
25546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25547 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25548 | ||
25549 | wxPyEndAllowThreads(__tstate); | |
25550 | if (PyErr_Occurred()) SWIG_fail; | |
25551 | } | |
25552 | Py_INCREF(Py_None); resultobj = Py_None; | |
25553 | return resultobj; | |
25554 | fail: | |
25555 | return NULL; | |
25556 | } | |
25557 | ||
25558 | ||
c32bde28 | 25559 | static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25560 | PyObject *obj; |
25561 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25562 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
25563 | Py_INCREF(obj); | |
25564 | return Py_BuildValue((char *)""); | |
25565 | } | |
c32bde28 | 25566 | static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25567 | PyObject *resultobj; |
25568 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25569 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25570 | wxBitmapDataObject *result; | |
25571 | PyObject * obj0 = 0 ; | |
25572 | char *kwnames[] = { | |
25573 | (char *) "bitmap", NULL | |
25574 | }; | |
25575 | ||
25576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
25577 | if (obj0) { | |
25578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
25579 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25580 | SWIG_fail; | |
25581 | if (arg1 == NULL) { | |
25582 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25583 | SWIG_fail; | |
25584 | } | |
25585 | } | |
25586 | { | |
25587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25588 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
25589 | ||
25590 | wxPyEndAllowThreads(__tstate); | |
25591 | if (PyErr_Occurred()) SWIG_fail; | |
25592 | } | |
25593 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); | |
25594 | return resultobj; | |
25595 | fail: | |
25596 | return NULL; | |
25597 | } | |
25598 | ||
25599 | ||
c32bde28 | 25600 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25601 | PyObject *resultobj; |
25602 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25603 | wxBitmap result; | |
25604 | PyObject * obj0 = 0 ; | |
25605 | char *kwnames[] = { | |
25606 | (char *) "self", NULL | |
25607 | }; | |
25608 | ||
25609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
25610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25612 | { | |
25613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25614 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
25615 | ||
25616 | wxPyEndAllowThreads(__tstate); | |
25617 | if (PyErr_Occurred()) SWIG_fail; | |
25618 | } | |
25619 | { | |
25620 | wxBitmap * resultptr; | |
25621 | resultptr = new wxBitmap((wxBitmap &) result); | |
25622 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
25623 | } | |
25624 | return resultobj; | |
25625 | fail: | |
25626 | return NULL; | |
25627 | } | |
25628 | ||
25629 | ||
c32bde28 | 25630 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25631 | PyObject *resultobj; |
25632 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25633 | wxBitmap *arg2 = 0 ; | |
25634 | PyObject * obj0 = 0 ; | |
25635 | PyObject * obj1 = 0 ; | |
25636 | char *kwnames[] = { | |
25637 | (char *) "self",(char *) "bitmap", NULL | |
25638 | }; | |
25639 | ||
25640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
25641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25643 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
25644 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25645 | SWIG_fail; | |
25646 | if (arg2 == NULL) { | |
25647 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25648 | SWIG_fail; | |
25649 | } | |
25650 | { | |
25651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25652 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
25653 | ||
25654 | wxPyEndAllowThreads(__tstate); | |
25655 | if (PyErr_Occurred()) SWIG_fail; | |
25656 | } | |
25657 | Py_INCREF(Py_None); resultobj = Py_None; | |
25658 | return resultobj; | |
25659 | fail: | |
25660 | return NULL; | |
25661 | } | |
25662 | ||
25663 | ||
c32bde28 | 25664 | static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25665 | PyObject *obj; |
25666 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25667 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
25668 | Py_INCREF(obj); | |
25669 | return Py_BuildValue((char *)""); | |
25670 | } | |
c32bde28 | 25671 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25672 | PyObject *resultobj; |
25673 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25674 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25675 | wxPyBitmapDataObject *result; | |
25676 | PyObject * obj0 = 0 ; | |
25677 | char *kwnames[] = { | |
25678 | (char *) "bitmap", NULL | |
25679 | }; | |
25680 | ||
25681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
25682 | if (obj0) { | |
25683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
25684 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25685 | SWIG_fail; | |
25686 | if (arg1 == NULL) { | |
25687 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25688 | SWIG_fail; | |
25689 | } | |
25690 | } | |
25691 | { | |
25692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25693 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
25694 | ||
25695 | wxPyEndAllowThreads(__tstate); | |
25696 | if (PyErr_Occurred()) SWIG_fail; | |
25697 | } | |
25698 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
25699 | return resultobj; | |
25700 | fail: | |
25701 | return NULL; | |
25702 | } | |
25703 | ||
25704 | ||
c32bde28 | 25705 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25706 | PyObject *resultobj; |
25707 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
25708 | PyObject *arg2 = (PyObject *) 0 ; | |
25709 | PyObject *arg3 = (PyObject *) 0 ; | |
25710 | PyObject * obj0 = 0 ; | |
25711 | PyObject * obj1 = 0 ; | |
25712 | PyObject * obj2 = 0 ; | |
25713 | char *kwnames[] = { | |
25714 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25715 | }; | |
25716 | ||
25717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject, | |
25719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25720 | arg2 = obj1; | |
25721 | arg3 = obj2; | |
25722 | { | |
25723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25724 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25725 | ||
25726 | wxPyEndAllowThreads(__tstate); | |
25727 | if (PyErr_Occurred()) SWIG_fail; | |
25728 | } | |
25729 | Py_INCREF(Py_None); resultobj = Py_None; | |
25730 | return resultobj; | |
25731 | fail: | |
25732 | return NULL; | |
25733 | } | |
25734 | ||
25735 | ||
c32bde28 | 25736 | static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25737 | PyObject *obj; |
25738 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25739 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
25740 | Py_INCREF(obj); | |
25741 | return Py_BuildValue((char *)""); | |
25742 | } | |
c32bde28 | 25743 | static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25744 | PyObject *resultobj; |
25745 | wxFileDataObject *result; | |
25746 | char *kwnames[] = { | |
25747 | NULL | |
25748 | }; | |
25749 | ||
25750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
25751 | { | |
25752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25753 | result = (wxFileDataObject *)new wxFileDataObject(); | |
25754 | ||
25755 | wxPyEndAllowThreads(__tstate); | |
25756 | if (PyErr_Occurred()) SWIG_fail; | |
25757 | } | |
25758 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); | |
25759 | return resultobj; | |
25760 | fail: | |
25761 | return NULL; | |
25762 | } | |
25763 | ||
25764 | ||
c32bde28 | 25765 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25766 | PyObject *resultobj; |
25767 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25768 | wxArrayString *result; | |
25769 | PyObject * obj0 = 0 ; | |
25770 | char *kwnames[] = { | |
25771 | (char *) "self", NULL | |
25772 | }; | |
25773 | ||
25774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
25775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25777 | { | |
25778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25779 | { | |
25780 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
25781 | result = (wxArrayString *) &_result_ref; | |
25782 | } | |
25783 | ||
25784 | wxPyEndAllowThreads(__tstate); | |
25785 | if (PyErr_Occurred()) SWIG_fail; | |
25786 | } | |
25787 | { | |
25788 | resultobj = wxArrayString2PyList_helper(*result); | |
25789 | } | |
25790 | return resultobj; | |
25791 | fail: | |
25792 | return NULL; | |
25793 | } | |
25794 | ||
25795 | ||
c32bde28 | 25796 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25797 | PyObject *resultobj; |
25798 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25799 | wxString *arg2 = 0 ; | |
ae8162c8 | 25800 | bool temp2 = false ; |
d55e5bfc RD |
25801 | PyObject * obj0 = 0 ; |
25802 | PyObject * obj1 = 0 ; | |
25803 | char *kwnames[] = { | |
25804 | (char *) "self",(char *) "filename", NULL | |
25805 | }; | |
25806 | ||
25807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
25808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25810 | { | |
25811 | arg2 = wxString_in_helper(obj1); | |
25812 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25813 | temp2 = true; |
d55e5bfc RD |
25814 | } |
25815 | { | |
25816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25817 | (arg1)->AddFile((wxString const &)*arg2); | |
25818 | ||
25819 | wxPyEndAllowThreads(__tstate); | |
25820 | if (PyErr_Occurred()) SWIG_fail; | |
25821 | } | |
25822 | Py_INCREF(Py_None); resultobj = Py_None; | |
25823 | { | |
25824 | if (temp2) | |
25825 | delete arg2; | |
25826 | } | |
25827 | return resultobj; | |
25828 | fail: | |
25829 | { | |
25830 | if (temp2) | |
25831 | delete arg2; | |
25832 | } | |
25833 | return NULL; | |
25834 | } | |
25835 | ||
25836 | ||
c32bde28 | 25837 | static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25838 | PyObject *obj; |
25839 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25840 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
25841 | Py_INCREF(obj); | |
25842 | return Py_BuildValue((char *)""); | |
25843 | } | |
c32bde28 | 25844 | static PyObject *_wrap_new_CustomDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25845 | PyObject *resultobj; |
25846 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25847 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25848 | wxCustomDataObject *result; | |
25849 | PyObject * obj0 = 0 ; | |
25850 | char *kwnames[] = { | |
25851 | (char *) "format", NULL | |
25852 | }; | |
25853 | ||
25854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
25855 | if (obj0) { | |
25856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25857 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25858 | SWIG_fail; | |
25859 | if (arg1 == NULL) { | |
25860 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25861 | SWIG_fail; | |
25862 | } | |
25863 | } | |
25864 | { | |
25865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25866 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
25867 | ||
25868 | wxPyEndAllowThreads(__tstate); | |
25869 | if (PyErr_Occurred()) SWIG_fail; | |
25870 | } | |
25871 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
25872 | return resultobj; | |
25873 | fail: | |
25874 | return NULL; | |
25875 | } | |
25876 | ||
25877 | ||
c32bde28 | 25878 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25879 | PyObject *resultobj; |
25880 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25881 | PyObject *arg2 = (PyObject *) 0 ; | |
25882 | bool result; | |
25883 | PyObject * obj0 = 0 ; | |
25884 | PyObject * obj1 = 0 ; | |
25885 | char *kwnames[] = { | |
25886 | (char *) "self",(char *) "data", NULL | |
25887 | }; | |
25888 | ||
25889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25892 | arg2 = obj1; | |
25893 | { | |
25894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25895 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
25896 | ||
25897 | wxPyEndAllowThreads(__tstate); | |
25898 | if (PyErr_Occurred()) SWIG_fail; | |
25899 | } | |
25900 | { | |
25901 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25902 | } | |
25903 | return resultobj; | |
25904 | fail: | |
25905 | return NULL; | |
25906 | } | |
25907 | ||
25908 | ||
c32bde28 | 25909 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25910 | PyObject *resultobj; |
25911 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25912 | size_t result; | |
25913 | PyObject * obj0 = 0 ; | |
25914 | char *kwnames[] = { | |
25915 | (char *) "self", NULL | |
25916 | }; | |
25917 | ||
25918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
25919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25921 | { | |
25922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25923 | result = (size_t)(arg1)->GetSize(); | |
25924 | ||
25925 | wxPyEndAllowThreads(__tstate); | |
25926 | if (PyErr_Occurred()) SWIG_fail; | |
25927 | } | |
c32bde28 | 25928 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
25929 | return resultobj; |
25930 | fail: | |
25931 | return NULL; | |
25932 | } | |
25933 | ||
25934 | ||
c32bde28 | 25935 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25936 | PyObject *resultobj; |
25937 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25938 | PyObject *result; | |
25939 | PyObject * obj0 = 0 ; | |
25940 | char *kwnames[] = { | |
25941 | (char *) "self", NULL | |
25942 | }; | |
25943 | ||
25944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
25945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25947 | { | |
25948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25949 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
25950 | ||
25951 | wxPyEndAllowThreads(__tstate); | |
25952 | if (PyErr_Occurred()) SWIG_fail; | |
25953 | } | |
25954 | resultobj = result; | |
25955 | return resultobj; | |
25956 | fail: | |
25957 | return NULL; | |
25958 | } | |
25959 | ||
25960 | ||
c32bde28 | 25961 | static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25962 | PyObject *obj; |
25963 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25964 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
25965 | Py_INCREF(obj); | |
25966 | return Py_BuildValue((char *)""); | |
25967 | } | |
c32bde28 | 25968 | static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25969 | PyObject *resultobj; |
25970 | wxURLDataObject *result; | |
25971 | char *kwnames[] = { | |
25972 | NULL | |
25973 | }; | |
25974 | ||
25975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
25976 | { | |
25977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25978 | result = (wxURLDataObject *)new wxURLDataObject(); | |
25979 | ||
25980 | wxPyEndAllowThreads(__tstate); | |
25981 | if (PyErr_Occurred()) SWIG_fail; | |
25982 | } | |
25983 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); | |
25984 | return resultobj; | |
25985 | fail: | |
25986 | return NULL; | |
25987 | } | |
25988 | ||
25989 | ||
c32bde28 | 25990 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25991 | PyObject *resultobj; |
25992 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25993 | wxString result; | |
25994 | PyObject * obj0 = 0 ; | |
25995 | char *kwnames[] = { | |
25996 | (char *) "self", NULL | |
25997 | }; | |
25998 | ||
25999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
26000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
26001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26002 | { | |
26003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26004 | result = (arg1)->GetURL(); | |
26005 | ||
26006 | wxPyEndAllowThreads(__tstate); | |
26007 | if (PyErr_Occurred()) SWIG_fail; | |
26008 | } | |
26009 | { | |
26010 | #if wxUSE_UNICODE | |
26011 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26012 | #else | |
26013 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26014 | #endif | |
26015 | } | |
26016 | return resultobj; | |
26017 | fail: | |
26018 | return NULL; | |
26019 | } | |
26020 | ||
26021 | ||
c32bde28 | 26022 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26023 | PyObject *resultobj; |
26024 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
26025 | wxString *arg2 = 0 ; | |
ae8162c8 | 26026 | bool temp2 = false ; |
d55e5bfc RD |
26027 | PyObject * obj0 = 0 ; |
26028 | PyObject * obj1 = 0 ; | |
26029 | char *kwnames[] = { | |
26030 | (char *) "self",(char *) "url", NULL | |
26031 | }; | |
26032 | ||
26033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
26034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
26035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26036 | { | |
26037 | arg2 = wxString_in_helper(obj1); | |
26038 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 26039 | temp2 = true; |
d55e5bfc RD |
26040 | } |
26041 | { | |
26042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26043 | (arg1)->SetURL((wxString const &)*arg2); | |
26044 | ||
26045 | wxPyEndAllowThreads(__tstate); | |
26046 | if (PyErr_Occurred()) SWIG_fail; | |
26047 | } | |
26048 | Py_INCREF(Py_None); resultobj = Py_None; | |
26049 | { | |
26050 | if (temp2) | |
26051 | delete arg2; | |
26052 | } | |
26053 | return resultobj; | |
26054 | fail: | |
26055 | { | |
26056 | if (temp2) | |
26057 | delete arg2; | |
26058 | } | |
26059 | return NULL; | |
26060 | } | |
26061 | ||
26062 | ||
c32bde28 | 26063 | static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26064 | PyObject *obj; |
26065 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26066 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
26067 | Py_INCREF(obj); | |
26068 | return Py_BuildValue((char *)""); | |
26069 | } | |
c32bde28 | 26070 | static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26071 | PyObject *resultobj; |
26072 | wxMetafileDataObject *result; | |
26073 | char *kwnames[] = { | |
26074 | NULL | |
26075 | }; | |
26076 | ||
26077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
26078 | { | |
26079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26080 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
26081 | ||
26082 | wxPyEndAllowThreads(__tstate); | |
26083 | if (PyErr_Occurred()) SWIG_fail; | |
26084 | } | |
26085 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); | |
26086 | return resultobj; | |
26087 | fail: | |
26088 | return NULL; | |
26089 | } | |
26090 | ||
26091 | ||
c32bde28 | 26092 | static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26093 | PyObject *resultobj; |
26094 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
26095 | wxMetafile *arg2 = 0 ; | |
26096 | PyObject * obj0 = 0 ; | |
26097 | PyObject * obj1 = 0 ; | |
26098 | char *kwnames[] = { | |
26099 | (char *) "self",(char *) "metafile", NULL | |
26100 | }; | |
26101 | ||
26102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail; | |
26103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, | |
26104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26105 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile, | |
26106 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26107 | SWIG_fail; | |
26108 | if (arg2 == NULL) { | |
26109 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26110 | SWIG_fail; | |
26111 | } | |
26112 | { | |
26113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26114 | (arg1)->SetMetafile((wxMetafile const &)*arg2); | |
26115 | ||
26116 | wxPyEndAllowThreads(__tstate); | |
26117 | if (PyErr_Occurred()) SWIG_fail; | |
26118 | } | |
26119 | Py_INCREF(Py_None); resultobj = Py_None; | |
26120 | return resultobj; | |
26121 | fail: | |
26122 | return NULL; | |
26123 | } | |
26124 | ||
26125 | ||
c32bde28 | 26126 | static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26127 | PyObject *resultobj; |
26128 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
26129 | wxMetafile result; | |
26130 | PyObject * obj0 = 0 ; | |
26131 | char *kwnames[] = { | |
26132 | (char *) "self", NULL | |
26133 | }; | |
26134 | ||
26135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail; | |
26136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, | |
26137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26138 | { | |
26139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26140 | result = ((wxMetafileDataObject const *)arg1)->GetMetafile(); | |
26141 | ||
26142 | wxPyEndAllowThreads(__tstate); | |
26143 | if (PyErr_Occurred()) SWIG_fail; | |
26144 | } | |
26145 | { | |
26146 | wxMetafile * resultptr; | |
26147 | resultptr = new wxMetafile((wxMetafile &) result); | |
26148 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1); | |
26149 | } | |
26150 | return resultobj; | |
26151 | fail: | |
26152 | return NULL; | |
26153 | } | |
26154 | ||
26155 | ||
c32bde28 | 26156 | static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26157 | PyObject *obj; |
26158 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26159 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
26160 | Py_INCREF(obj); | |
26161 | return Py_BuildValue((char *)""); | |
26162 | } | |
c32bde28 | 26163 | static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26164 | PyObject *resultobj; |
26165 | int arg1 ; | |
26166 | bool result; | |
26167 | PyObject * obj0 = 0 ; | |
26168 | char *kwnames[] = { | |
26169 | (char *) "res", NULL | |
26170 | }; | |
26171 | ||
26172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; | |
c32bde28 | 26173 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
26174 | if (PyErr_Occurred()) SWIG_fail; |
26175 | { | |
26176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26177 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
26178 | ||
26179 | wxPyEndAllowThreads(__tstate); | |
26180 | if (PyErr_Occurred()) SWIG_fail; | |
26181 | } | |
26182 | { | |
26183 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26184 | } | |
26185 | return resultobj; | |
26186 | fail: | |
26187 | return NULL; | |
26188 | } | |
26189 | ||
26190 | ||
c32bde28 | 26191 | static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26192 | PyObject *resultobj; |
26193 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26194 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
26195 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
26196 | wxCursor const &arg3_defvalue = wxNullCursor ; | |
26197 | wxCursor *arg3 = (wxCursor *) &arg3_defvalue ; | |
26198 | wxCursor const &arg4_defvalue = wxNullCursor ; | |
26199 | wxCursor *arg4 = (wxCursor *) &arg4_defvalue ; | |
26200 | wxPyDropSource *result; | |
26201 | PyObject * obj0 = 0 ; | |
26202 | PyObject * obj1 = 0 ; | |
26203 | PyObject * obj2 = 0 ; | |
26204 | PyObject * obj3 = 0 ; | |
26205 | char *kwnames[] = { | |
26206 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
26207 | }; | |
26208 | ||
26209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26212 | if (obj1) { | |
26213 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
26214 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26215 | SWIG_fail; | |
26216 | if (arg2 == NULL) { | |
26217 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26218 | SWIG_fail; | |
26219 | } | |
26220 | } | |
26221 | if (obj2) { | |
26222 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
26223 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26224 | SWIG_fail; | |
26225 | if (arg3 == NULL) { | |
26226 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26227 | SWIG_fail; | |
26228 | } | |
26229 | } | |
26230 | if (obj3) { | |
26231 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor, | |
26232 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26233 | SWIG_fail; | |
26234 | if (arg4 == NULL) { | |
26235 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26236 | SWIG_fail; | |
26237 | } | |
26238 | } | |
26239 | { | |
26240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26241 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4); | |
26242 | ||
26243 | wxPyEndAllowThreads(__tstate); | |
26244 | if (PyErr_Occurred()) SWIG_fail; | |
26245 | } | |
26246 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); | |
26247 | return resultobj; | |
26248 | fail: | |
26249 | return NULL; | |
26250 | } | |
26251 | ||
26252 | ||
c32bde28 | 26253 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26254 | PyObject *resultobj; |
26255 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26256 | PyObject *arg2 = (PyObject *) 0 ; | |
26257 | PyObject *arg3 = (PyObject *) 0 ; | |
26258 | int arg4 ; | |
26259 | PyObject * obj0 = 0 ; | |
26260 | PyObject * obj1 = 0 ; | |
26261 | PyObject * obj2 = 0 ; | |
26262 | PyObject * obj3 = 0 ; | |
26263 | char *kwnames[] = { | |
26264 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
26265 | }; | |
26266 | ||
26267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26270 | arg2 = obj1; | |
26271 | arg3 = obj2; | |
c32bde28 | 26272 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26273 | if (PyErr_Occurred()) SWIG_fail; |
26274 | { | |
26275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26276 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
26277 | ||
26278 | wxPyEndAllowThreads(__tstate); | |
26279 | if (PyErr_Occurred()) SWIG_fail; | |
26280 | } | |
26281 | Py_INCREF(Py_None); resultobj = Py_None; | |
26282 | return resultobj; | |
26283 | fail: | |
26284 | return NULL; | |
26285 | } | |
26286 | ||
26287 | ||
c32bde28 | 26288 | static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26289 | PyObject *resultobj; |
26290 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26291 | PyObject * obj0 = 0 ; | |
26292 | char *kwnames[] = { | |
26293 | (char *) "self", NULL | |
26294 | }; | |
26295 | ||
26296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
26297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26299 | { | |
26300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26301 | delete arg1; | |
26302 | ||
26303 | wxPyEndAllowThreads(__tstate); | |
26304 | if (PyErr_Occurred()) SWIG_fail; | |
26305 | } | |
26306 | Py_INCREF(Py_None); resultobj = Py_None; | |
26307 | return resultobj; | |
26308 | fail: | |
26309 | return NULL; | |
26310 | } | |
26311 | ||
26312 | ||
c32bde28 | 26313 | static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26314 | PyObject *resultobj; |
26315 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26316 | wxDataObject *arg2 = 0 ; | |
26317 | PyObject * obj0 = 0 ; | |
26318 | PyObject * obj1 = 0 ; | |
26319 | char *kwnames[] = { | |
26320 | (char *) "self",(char *) "data", NULL | |
26321 | }; | |
26322 | ||
26323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
26324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26326 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26327 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26328 | SWIG_fail; | |
26329 | if (arg2 == NULL) { | |
26330 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26331 | SWIG_fail; | |
26332 | } | |
26333 | { | |
26334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26335 | (arg1)->SetData(*arg2); | |
26336 | ||
26337 | wxPyEndAllowThreads(__tstate); | |
26338 | if (PyErr_Occurred()) SWIG_fail; | |
26339 | } | |
26340 | Py_INCREF(Py_None); resultobj = Py_None; | |
26341 | return resultobj; | |
26342 | fail: | |
26343 | return NULL; | |
26344 | } | |
26345 | ||
26346 | ||
c32bde28 | 26347 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26348 | PyObject *resultobj; |
26349 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26350 | wxDataObject *result; | |
26351 | PyObject * obj0 = 0 ; | |
26352 | char *kwnames[] = { | |
26353 | (char *) "self", NULL | |
26354 | }; | |
26355 | ||
26356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
26357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26359 | { | |
26360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26361 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26362 | ||
26363 | wxPyEndAllowThreads(__tstate); | |
26364 | if (PyErr_Occurred()) SWIG_fail; | |
26365 | } | |
26366 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
26367 | return resultobj; | |
26368 | fail: | |
26369 | return NULL; | |
26370 | } | |
26371 | ||
26372 | ||
c32bde28 | 26373 | static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26374 | PyObject *resultobj; |
26375 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26376 | int arg2 ; | |
26377 | wxCursor *arg3 = 0 ; | |
26378 | PyObject * obj0 = 0 ; | |
26379 | PyObject * obj1 = 0 ; | |
26380 | PyObject * obj2 = 0 ; | |
26381 | char *kwnames[] = { | |
26382 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
26383 | }; | |
26384 | ||
26385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26388 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
26389 | if (PyErr_Occurred()) SWIG_fail; |
26390 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
26391 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26392 | SWIG_fail; | |
26393 | if (arg3 == NULL) { | |
26394 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26395 | SWIG_fail; | |
26396 | } | |
26397 | { | |
26398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26399 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
26400 | ||
26401 | wxPyEndAllowThreads(__tstate); | |
26402 | if (PyErr_Occurred()) SWIG_fail; | |
26403 | } | |
26404 | Py_INCREF(Py_None); resultobj = Py_None; | |
26405 | return resultobj; | |
26406 | fail: | |
26407 | return NULL; | |
26408 | } | |
26409 | ||
26410 | ||
c32bde28 | 26411 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26412 | PyObject *resultobj; |
26413 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26414 | int arg2 = (int) wxDrag_CopyOnly ; | |
26415 | int result; | |
26416 | PyObject * obj0 = 0 ; | |
26417 | PyObject * obj1 = 0 ; | |
26418 | char *kwnames[] = { | |
26419 | (char *) "self",(char *) "flags", NULL | |
26420 | }; | |
26421 | ||
26422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; | |
26423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26425 | if (obj1) { | |
c32bde28 | 26426 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
26427 | if (PyErr_Occurred()) SWIG_fail; |
26428 | } | |
26429 | { | |
26430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26431 | result = (int)(arg1)->DoDragDrop(arg2); | |
26432 | ||
26433 | wxPyEndAllowThreads(__tstate); | |
26434 | if (PyErr_Occurred()) SWIG_fail; | |
26435 | } | |
c32bde28 | 26436 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26437 | return resultobj; |
26438 | fail: | |
26439 | return NULL; | |
26440 | } | |
26441 | ||
26442 | ||
c32bde28 | 26443 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26444 | PyObject *resultobj; |
26445 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26446 | int arg2 ; | |
26447 | bool result; | |
26448 | PyObject * obj0 = 0 ; | |
26449 | PyObject * obj1 = 0 ; | |
26450 | char *kwnames[] = { | |
26451 | (char *) "self",(char *) "effect", NULL | |
26452 | }; | |
26453 | ||
26454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; | |
26455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26457 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
26458 | if (PyErr_Occurred()) SWIG_fail; |
26459 | { | |
26460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26461 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
26462 | ||
26463 | wxPyEndAllowThreads(__tstate); | |
26464 | if (PyErr_Occurred()) SWIG_fail; | |
26465 | } | |
26466 | { | |
26467 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26468 | } | |
26469 | return resultobj; | |
26470 | fail: | |
26471 | return NULL; | |
26472 | } | |
26473 | ||
26474 | ||
c32bde28 | 26475 | static PyObject * DropSource_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26476 | PyObject *obj; |
26477 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26478 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
26479 | Py_INCREF(obj); | |
26480 | return Py_BuildValue((char *)""); | |
26481 | } | |
c32bde28 | 26482 | static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26483 | PyObject *resultobj; |
26484 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
26485 | wxPyDropTarget *result; | |
26486 | PyObject * obj0 = 0 ; | |
26487 | char *kwnames[] = { | |
26488 | (char *) "dataObject", NULL | |
26489 | }; | |
26490 | ||
26491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; | |
26492 | if (obj0) { | |
26493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
26494 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26495 | } | |
26496 | { | |
26497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26498 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
26499 | ||
26500 | wxPyEndAllowThreads(__tstate); | |
26501 | if (PyErr_Occurred()) SWIG_fail; | |
26502 | } | |
26503 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); | |
26504 | return resultobj; | |
26505 | fail: | |
26506 | return NULL; | |
26507 | } | |
26508 | ||
26509 | ||
c32bde28 | 26510 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26511 | PyObject *resultobj; |
26512 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26513 | PyObject *arg2 = (PyObject *) 0 ; | |
26514 | PyObject *arg3 = (PyObject *) 0 ; | |
26515 | PyObject * obj0 = 0 ; | |
26516 | PyObject * obj1 = 0 ; | |
26517 | PyObject * obj2 = 0 ; | |
26518 | char *kwnames[] = { | |
26519 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26520 | }; | |
26521 | ||
26522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26525 | arg2 = obj1; | |
26526 | arg3 = obj2; | |
26527 | { | |
26528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26529 | (arg1)->_setCallbackInfo(arg2,arg3); | |
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_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26542 | PyObject *resultobj; |
26543 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26544 | PyObject * obj0 = 0 ; | |
26545 | char *kwnames[] = { | |
26546 | (char *) "self", NULL | |
26547 | }; | |
26548 | ||
26549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
26550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
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_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26567 | PyObject *resultobj; |
26568 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26569 | wxDataObject *result; | |
26570 | PyObject * obj0 = 0 ; | |
26571 | char *kwnames[] = { | |
26572 | (char *) "self", NULL | |
26573 | }; | |
26574 | ||
26575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
26576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26578 | { | |
26579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26580 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26581 | ||
26582 | wxPyEndAllowThreads(__tstate); | |
26583 | if (PyErr_Occurred()) SWIG_fail; | |
26584 | } | |
26585 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
26586 | return resultobj; | |
26587 | fail: | |
26588 | return NULL; | |
26589 | } | |
26590 | ||
26591 | ||
c32bde28 | 26592 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26593 | PyObject *resultobj; |
26594 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26595 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26596 | PyObject * obj0 = 0 ; | |
26597 | PyObject * obj1 = 0 ; | |
26598 | char *kwnames[] = { | |
26599 | (char *) "self",(char *) "dataObject", NULL | |
26600 | }; | |
26601 | ||
26602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
26603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26605 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26606 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26607 | { | |
26608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26609 | (arg1)->SetDataObject(arg2); | |
26610 | ||
26611 | wxPyEndAllowThreads(__tstate); | |
26612 | if (PyErr_Occurred()) SWIG_fail; | |
26613 | } | |
26614 | Py_INCREF(Py_None); resultobj = Py_None; | |
26615 | return resultobj; | |
26616 | fail: | |
26617 | return NULL; | |
26618 | } | |
26619 | ||
26620 | ||
c32bde28 | 26621 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26622 | PyObject *resultobj; |
26623 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26624 | int arg2 ; | |
26625 | int arg3 ; | |
26626 | int arg4 ; | |
26627 | int result; | |
26628 | PyObject * obj0 = 0 ; | |
26629 | PyObject * obj1 = 0 ; | |
26630 | PyObject * obj2 = 0 ; | |
26631 | PyObject * obj3 = 0 ; | |
26632 | char *kwnames[] = { | |
26633 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26634 | }; | |
26635 | ||
26636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26639 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26640 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26641 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 26642 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26643 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26644 | if (PyErr_Occurred()) SWIG_fail; |
26645 | { | |
26646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26647 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26648 | ||
26649 | wxPyEndAllowThreads(__tstate); | |
26650 | if (PyErr_Occurred()) SWIG_fail; | |
26651 | } | |
c32bde28 | 26652 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26653 | return resultobj; |
26654 | fail: | |
26655 | return NULL; | |
26656 | } | |
26657 | ||
26658 | ||
c32bde28 | 26659 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26660 | PyObject *resultobj; |
26661 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26662 | int arg2 ; | |
26663 | int arg3 ; | |
26664 | int arg4 ; | |
26665 | int result; | |
26666 | PyObject * obj0 = 0 ; | |
26667 | PyObject * obj1 = 0 ; | |
26668 | PyObject * obj2 = 0 ; | |
26669 | PyObject * obj3 = 0 ; | |
26670 | char *kwnames[] = { | |
26671 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26672 | }; | |
26673 | ||
26674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26677 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26678 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26679 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 26680 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26681 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26682 | if (PyErr_Occurred()) SWIG_fail; |
26683 | { | |
26684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26685 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26686 | ||
26687 | wxPyEndAllowThreads(__tstate); | |
26688 | if (PyErr_Occurred()) SWIG_fail; | |
26689 | } | |
c32bde28 | 26690 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26691 | return resultobj; |
26692 | fail: | |
26693 | return NULL; | |
26694 | } | |
26695 | ||
26696 | ||
c32bde28 | 26697 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26698 | PyObject *resultobj; |
26699 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26700 | PyObject * obj0 = 0 ; | |
26701 | char *kwnames[] = { | |
26702 | (char *) "self", NULL | |
26703 | }; | |
26704 | ||
26705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26708 | { | |
26709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26710 | (arg1)->base_OnLeave(); | |
26711 | ||
26712 | wxPyEndAllowThreads(__tstate); | |
26713 | if (PyErr_Occurred()) SWIG_fail; | |
26714 | } | |
26715 | Py_INCREF(Py_None); resultobj = Py_None; | |
26716 | return resultobj; | |
26717 | fail: | |
26718 | return NULL; | |
26719 | } | |
26720 | ||
26721 | ||
c32bde28 | 26722 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26723 | PyObject *resultobj; |
26724 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26725 | int arg2 ; | |
26726 | int arg3 ; | |
26727 | bool result; | |
26728 | PyObject * obj0 = 0 ; | |
26729 | PyObject * obj1 = 0 ; | |
26730 | PyObject * obj2 = 0 ; | |
26731 | char *kwnames[] = { | |
26732 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26733 | }; | |
26734 | ||
26735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26738 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26739 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26740 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26741 | if (PyErr_Occurred()) SWIG_fail; |
26742 | { | |
26743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26744 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26745 | ||
26746 | wxPyEndAllowThreads(__tstate); | |
26747 | if (PyErr_Occurred()) SWIG_fail; | |
26748 | } | |
26749 | { | |
26750 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26751 | } | |
26752 | return resultobj; | |
26753 | fail: | |
26754 | return NULL; | |
26755 | } | |
26756 | ||
26757 | ||
c32bde28 | 26758 | static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26759 | PyObject *resultobj; |
26760 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26761 | bool result; | |
26762 | PyObject * obj0 = 0 ; | |
26763 | char *kwnames[] = { | |
26764 | (char *) "self", NULL | |
26765 | }; | |
26766 | ||
26767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
26768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26770 | { | |
26771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26772 | result = (bool)(arg1)->GetData(); | |
26773 | ||
26774 | wxPyEndAllowThreads(__tstate); | |
26775 | if (PyErr_Occurred()) SWIG_fail; | |
26776 | } | |
26777 | { | |
26778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26779 | } | |
26780 | return resultobj; | |
26781 | fail: | |
26782 | return NULL; | |
26783 | } | |
26784 | ||
26785 | ||
c32bde28 | 26786 | static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26787 | PyObject *obj; |
26788 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26789 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
26790 | Py_INCREF(obj); | |
26791 | return Py_BuildValue((char *)""); | |
26792 | } | |
c32bde28 | 26793 | static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26794 | PyObject *resultobj; |
26795 | wxPyTextDropTarget *result; | |
26796 | char *kwnames[] = { | |
26797 | NULL | |
26798 | }; | |
26799 | ||
26800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
26801 | { | |
26802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26803 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
26804 | ||
26805 | wxPyEndAllowThreads(__tstate); | |
26806 | if (PyErr_Occurred()) SWIG_fail; | |
26807 | } | |
26808 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); | |
26809 | return resultobj; | |
26810 | fail: | |
26811 | return NULL; | |
26812 | } | |
26813 | ||
26814 | ||
c32bde28 | 26815 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26816 | PyObject *resultobj; |
26817 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26818 | PyObject *arg2 = (PyObject *) 0 ; | |
26819 | PyObject *arg3 = (PyObject *) 0 ; | |
26820 | PyObject * obj0 = 0 ; | |
26821 | PyObject * obj1 = 0 ; | |
26822 | PyObject * obj2 = 0 ; | |
26823 | char *kwnames[] = { | |
26824 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26825 | }; | |
26826 | ||
26827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26830 | arg2 = obj1; | |
26831 | arg3 = obj2; | |
26832 | { | |
26833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26834 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26835 | ||
26836 | wxPyEndAllowThreads(__tstate); | |
26837 | if (PyErr_Occurred()) SWIG_fail; | |
26838 | } | |
26839 | Py_INCREF(Py_None); resultobj = Py_None; | |
26840 | return resultobj; | |
26841 | fail: | |
26842 | return NULL; | |
26843 | } | |
26844 | ||
26845 | ||
c32bde28 | 26846 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26847 | PyObject *resultobj; |
26848 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26849 | int arg2 ; | |
26850 | int arg3 ; | |
26851 | int arg4 ; | |
26852 | int result; | |
26853 | PyObject * obj0 = 0 ; | |
26854 | PyObject * obj1 = 0 ; | |
26855 | PyObject * obj2 = 0 ; | |
26856 | PyObject * obj3 = 0 ; | |
26857 | char *kwnames[] = { | |
26858 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26859 | }; | |
26860 | ||
26861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26864 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26865 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26866 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 26867 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26868 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26869 | if (PyErr_Occurred()) SWIG_fail; |
26870 | { | |
26871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26872 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26873 | ||
26874 | wxPyEndAllowThreads(__tstate); | |
26875 | if (PyErr_Occurred()) SWIG_fail; | |
26876 | } | |
c32bde28 | 26877 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26878 | return resultobj; |
26879 | fail: | |
26880 | return NULL; | |
26881 | } | |
26882 | ||
26883 | ||
c32bde28 | 26884 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26885 | PyObject *resultobj; |
26886 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26887 | int arg2 ; | |
26888 | int arg3 ; | |
26889 | int arg4 ; | |
26890 | int result; | |
26891 | PyObject * obj0 = 0 ; | |
26892 | PyObject * obj1 = 0 ; | |
26893 | PyObject * obj2 = 0 ; | |
26894 | PyObject * obj3 = 0 ; | |
26895 | char *kwnames[] = { | |
26896 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26897 | }; | |
26898 | ||
26899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26902 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26903 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26904 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 26905 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26906 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26907 | if (PyErr_Occurred()) SWIG_fail; |
26908 | { | |
26909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26910 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26911 | ||
26912 | wxPyEndAllowThreads(__tstate); | |
26913 | if (PyErr_Occurred()) SWIG_fail; | |
26914 | } | |
c32bde28 | 26915 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26916 | return resultobj; |
26917 | fail: | |
26918 | return NULL; | |
26919 | } | |
26920 | ||
26921 | ||
c32bde28 | 26922 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26923 | PyObject *resultobj; |
26924 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26925 | PyObject * obj0 = 0 ; | |
26926 | char *kwnames[] = { | |
26927 | (char *) "self", NULL | |
26928 | }; | |
26929 | ||
26930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26933 | { | |
26934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26935 | (arg1)->base_OnLeave(); | |
26936 | ||
26937 | wxPyEndAllowThreads(__tstate); | |
26938 | if (PyErr_Occurred()) SWIG_fail; | |
26939 | } | |
26940 | Py_INCREF(Py_None); resultobj = Py_None; | |
26941 | return resultobj; | |
26942 | fail: | |
26943 | return NULL; | |
26944 | } | |
26945 | ||
26946 | ||
c32bde28 | 26947 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26948 | PyObject *resultobj; |
26949 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26950 | int arg2 ; | |
26951 | int arg3 ; | |
26952 | bool result; | |
26953 | PyObject * obj0 = 0 ; | |
26954 | PyObject * obj1 = 0 ; | |
26955 | PyObject * obj2 = 0 ; | |
26956 | char *kwnames[] = { | |
26957 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26958 | }; | |
26959 | ||
26960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26963 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26964 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26965 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26966 | if (PyErr_Occurred()) SWIG_fail; |
26967 | { | |
26968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26969 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26970 | ||
26971 | wxPyEndAllowThreads(__tstate); | |
26972 | if (PyErr_Occurred()) SWIG_fail; | |
26973 | } | |
26974 | { | |
26975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26976 | } | |
26977 | return resultobj; | |
26978 | fail: | |
26979 | return NULL; | |
26980 | } | |
26981 | ||
26982 | ||
c32bde28 | 26983 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26984 | PyObject *resultobj; |
26985 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26986 | int arg2 ; | |
26987 | int arg3 ; | |
26988 | int arg4 ; | |
26989 | int result; | |
26990 | PyObject * obj0 = 0 ; | |
26991 | PyObject * obj1 = 0 ; | |
26992 | PyObject * obj2 = 0 ; | |
26993 | PyObject * obj3 = 0 ; | |
26994 | char *kwnames[] = { | |
26995 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26996 | }; | |
26997 | ||
26998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
27000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27001 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27002 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27003 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27004 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27005 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27006 | if (PyErr_Occurred()) SWIG_fail; |
27007 | { | |
27008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27009 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
27010 | ||
27011 | wxPyEndAllowThreads(__tstate); | |
27012 | if (PyErr_Occurred()) SWIG_fail; | |
27013 | } | |
c32bde28 | 27014 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27015 | return resultobj; |
27016 | fail: | |
27017 | return NULL; | |
27018 | } | |
27019 | ||
27020 | ||
c32bde28 | 27021 | static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27022 | PyObject *obj; |
27023 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27024 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
27025 | Py_INCREF(obj); | |
27026 | return Py_BuildValue((char *)""); | |
27027 | } | |
c32bde28 | 27028 | static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27029 | PyObject *resultobj; |
27030 | wxPyFileDropTarget *result; | |
27031 | char *kwnames[] = { | |
27032 | NULL | |
27033 | }; | |
27034 | ||
27035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
27036 | { | |
27037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27038 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
27039 | ||
27040 | wxPyEndAllowThreads(__tstate); | |
27041 | if (PyErr_Occurred()) SWIG_fail; | |
27042 | } | |
27043 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); | |
27044 | return resultobj; | |
27045 | fail: | |
27046 | return NULL; | |
27047 | } | |
27048 | ||
27049 | ||
c32bde28 | 27050 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27051 | PyObject *resultobj; |
27052 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27053 | PyObject *arg2 = (PyObject *) 0 ; | |
27054 | PyObject *arg3 = (PyObject *) 0 ; | |
27055 | PyObject * obj0 = 0 ; | |
27056 | PyObject * obj1 = 0 ; | |
27057 | PyObject * obj2 = 0 ; | |
27058 | char *kwnames[] = { | |
27059 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27060 | }; | |
27061 | ||
27062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27065 | arg2 = obj1; | |
27066 | arg3 = obj2; | |
27067 | { | |
27068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27069 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27070 | ||
27071 | wxPyEndAllowThreads(__tstate); | |
27072 | if (PyErr_Occurred()) SWIG_fail; | |
27073 | } | |
27074 | Py_INCREF(Py_None); resultobj = Py_None; | |
27075 | return resultobj; | |
27076 | fail: | |
27077 | return NULL; | |
27078 | } | |
27079 | ||
27080 | ||
c32bde28 | 27081 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27082 | PyObject *resultobj; |
27083 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27084 | int arg2 ; | |
27085 | int arg3 ; | |
27086 | int arg4 ; | |
27087 | int result; | |
27088 | PyObject * obj0 = 0 ; | |
27089 | PyObject * obj1 = 0 ; | |
27090 | PyObject * obj2 = 0 ; | |
27091 | PyObject * obj3 = 0 ; | |
27092 | char *kwnames[] = { | |
27093 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27094 | }; | |
27095 | ||
27096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27099 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27100 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27101 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27102 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27103 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27104 | if (PyErr_Occurred()) SWIG_fail; |
27105 | { | |
27106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27107 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
27108 | ||
27109 | wxPyEndAllowThreads(__tstate); | |
27110 | if (PyErr_Occurred()) SWIG_fail; | |
27111 | } | |
c32bde28 | 27112 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27113 | return resultobj; |
27114 | fail: | |
27115 | return NULL; | |
27116 | } | |
27117 | ||
27118 | ||
c32bde28 | 27119 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27120 | PyObject *resultobj; |
27121 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27122 | int arg2 ; | |
27123 | int arg3 ; | |
27124 | int arg4 ; | |
27125 | int result; | |
27126 | PyObject * obj0 = 0 ; | |
27127 | PyObject * obj1 = 0 ; | |
27128 | PyObject * obj2 = 0 ; | |
27129 | PyObject * obj3 = 0 ; | |
27130 | char *kwnames[] = { | |
27131 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27132 | }; | |
27133 | ||
27134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27137 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27138 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27139 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27140 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27141 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27142 | if (PyErr_Occurred()) SWIG_fail; |
27143 | { | |
27144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27145 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
27146 | ||
27147 | wxPyEndAllowThreads(__tstate); | |
27148 | if (PyErr_Occurred()) SWIG_fail; | |
27149 | } | |
c32bde28 | 27150 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27151 | return resultobj; |
27152 | fail: | |
27153 | return NULL; | |
27154 | } | |
27155 | ||
27156 | ||
c32bde28 | 27157 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27158 | PyObject *resultobj; |
27159 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27160 | PyObject * obj0 = 0 ; | |
27161 | char *kwnames[] = { | |
27162 | (char *) "self", NULL | |
27163 | }; | |
27164 | ||
27165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
27166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27168 | { | |
27169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27170 | (arg1)->base_OnLeave(); | |
27171 | ||
27172 | wxPyEndAllowThreads(__tstate); | |
27173 | if (PyErr_Occurred()) SWIG_fail; | |
27174 | } | |
27175 | Py_INCREF(Py_None); resultobj = Py_None; | |
27176 | return resultobj; | |
27177 | fail: | |
27178 | return NULL; | |
27179 | } | |
27180 | ||
27181 | ||
c32bde28 | 27182 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27183 | PyObject *resultobj; |
27184 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27185 | int arg2 ; | |
27186 | int arg3 ; | |
27187 | bool result; | |
27188 | PyObject * obj0 = 0 ; | |
27189 | PyObject * obj1 = 0 ; | |
27190 | PyObject * obj2 = 0 ; | |
27191 | char *kwnames[] = { | |
27192 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27193 | }; | |
27194 | ||
27195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27198 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27199 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27200 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27201 | if (PyErr_Occurred()) SWIG_fail; |
27202 | { | |
27203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27204 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
27205 | ||
27206 | wxPyEndAllowThreads(__tstate); | |
27207 | if (PyErr_Occurred()) SWIG_fail; | |
27208 | } | |
27209 | { | |
27210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27211 | } | |
27212 | return resultobj; | |
27213 | fail: | |
27214 | return NULL; | |
27215 | } | |
27216 | ||
27217 | ||
c32bde28 | 27218 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27219 | PyObject *resultobj; |
27220 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27221 | int arg2 ; | |
27222 | int arg3 ; | |
27223 | int arg4 ; | |
27224 | int result; | |
27225 | PyObject * obj0 = 0 ; | |
27226 | PyObject * obj1 = 0 ; | |
27227 | PyObject * obj2 = 0 ; | |
27228 | PyObject * obj3 = 0 ; | |
27229 | char *kwnames[] = { | |
27230 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27231 | }; | |
27232 | ||
27233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27236 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27237 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27238 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27239 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27240 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27241 | if (PyErr_Occurred()) SWIG_fail; |
27242 | { | |
27243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27244 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
27245 | ||
27246 | wxPyEndAllowThreads(__tstate); | |
27247 | if (PyErr_Occurred()) SWIG_fail; | |
27248 | } | |
c32bde28 | 27249 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27250 | return resultobj; |
27251 | fail: | |
27252 | return NULL; | |
27253 | } | |
27254 | ||
27255 | ||
c32bde28 | 27256 | static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27257 | PyObject *obj; |
27258 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27259 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
27260 | Py_INCREF(obj); | |
27261 | return Py_BuildValue((char *)""); | |
27262 | } | |
c32bde28 | 27263 | static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27264 | PyObject *resultobj; |
27265 | wxClipboard *result; | |
27266 | char *kwnames[] = { | |
27267 | NULL | |
27268 | }; | |
27269 | ||
27270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
27271 | { | |
27272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27273 | result = (wxClipboard *)new wxClipboard(); | |
27274 | ||
27275 | wxPyEndAllowThreads(__tstate); | |
27276 | if (PyErr_Occurred()) SWIG_fail; | |
27277 | } | |
27278 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); | |
27279 | return resultobj; | |
27280 | fail: | |
27281 | return NULL; | |
27282 | } | |
27283 | ||
27284 | ||
c32bde28 | 27285 | static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27286 | PyObject *resultobj; |
27287 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27288 | PyObject * obj0 = 0 ; | |
27289 | char *kwnames[] = { | |
27290 | (char *) "self", NULL | |
27291 | }; | |
27292 | ||
27293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
27294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27296 | { | |
27297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27298 | delete arg1; | |
27299 | ||
27300 | wxPyEndAllowThreads(__tstate); | |
27301 | if (PyErr_Occurred()) SWIG_fail; | |
27302 | } | |
27303 | Py_INCREF(Py_None); resultobj = Py_None; | |
27304 | return resultobj; | |
27305 | fail: | |
27306 | return NULL; | |
27307 | } | |
27308 | ||
27309 | ||
c32bde28 | 27310 | static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27311 | PyObject *resultobj; |
27312 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27313 | bool result; | |
27314 | PyObject * obj0 = 0 ; | |
27315 | char *kwnames[] = { | |
27316 | (char *) "self", NULL | |
27317 | }; | |
27318 | ||
27319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
27320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27322 | { | |
27323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27324 | result = (bool)(arg1)->Open(); | |
27325 | ||
27326 | wxPyEndAllowThreads(__tstate); | |
27327 | if (PyErr_Occurred()) SWIG_fail; | |
27328 | } | |
27329 | { | |
27330 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27331 | } | |
27332 | return resultobj; | |
27333 | fail: | |
27334 | return NULL; | |
27335 | } | |
27336 | ||
27337 | ||
c32bde28 | 27338 | static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27339 | PyObject *resultobj; |
27340 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27341 | PyObject * obj0 = 0 ; | |
27342 | char *kwnames[] = { | |
27343 | (char *) "self", NULL | |
27344 | }; | |
27345 | ||
27346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
27347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27349 | { | |
27350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27351 | (arg1)->Close(); | |
27352 | ||
27353 | wxPyEndAllowThreads(__tstate); | |
27354 | if (PyErr_Occurred()) SWIG_fail; | |
27355 | } | |
27356 | Py_INCREF(Py_None); resultobj = Py_None; | |
27357 | return resultobj; | |
27358 | fail: | |
27359 | return NULL; | |
27360 | } | |
27361 | ||
27362 | ||
c32bde28 | 27363 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27364 | PyObject *resultobj; |
27365 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27366 | bool result; | |
27367 | PyObject * obj0 = 0 ; | |
27368 | char *kwnames[] = { | |
27369 | (char *) "self", NULL | |
27370 | }; | |
27371 | ||
27372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
27373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27375 | { | |
27376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27377 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
27378 | ||
27379 | wxPyEndAllowThreads(__tstate); | |
27380 | if (PyErr_Occurred()) SWIG_fail; | |
27381 | } | |
27382 | { | |
27383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27384 | } | |
27385 | return resultobj; | |
27386 | fail: | |
27387 | return NULL; | |
27388 | } | |
27389 | ||
27390 | ||
c32bde28 | 27391 | static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27392 | PyObject *resultobj; |
27393 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27394 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
27395 | bool result; | |
27396 | PyObject * obj0 = 0 ; | |
27397 | PyObject * obj1 = 0 ; | |
27398 | char *kwnames[] = { | |
27399 | (char *) "self",(char *) "data", NULL | |
27400 | }; | |
27401 | ||
27402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
27403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27405 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27406 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
27407 | { | |
27408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27409 | result = (bool)(arg1)->AddData(arg2); | |
27410 | ||
27411 | wxPyEndAllowThreads(__tstate); | |
27412 | if (PyErr_Occurred()) SWIG_fail; | |
27413 | } | |
27414 | { | |
27415 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27416 | } | |
27417 | return resultobj; | |
27418 | fail: | |
27419 | return NULL; | |
27420 | } | |
27421 | ||
27422 | ||
c32bde28 | 27423 | static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27424 | PyObject *resultobj; |
27425 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27426 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
27427 | bool result; | |
27428 | PyObject * obj0 = 0 ; | |
27429 | PyObject * obj1 = 0 ; | |
27430 | char *kwnames[] = { | |
27431 | (char *) "self",(char *) "data", NULL | |
27432 | }; | |
27433 | ||
27434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
27435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27437 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27438 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
27439 | { | |
27440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27441 | result = (bool)(arg1)->SetData(arg2); | |
27442 | ||
27443 | wxPyEndAllowThreads(__tstate); | |
27444 | if (PyErr_Occurred()) SWIG_fail; | |
27445 | } | |
27446 | { | |
27447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27448 | } | |
27449 | return resultobj; | |
27450 | fail: | |
27451 | return NULL; | |
27452 | } | |
27453 | ||
27454 | ||
c32bde28 | 27455 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27456 | PyObject *resultobj; |
27457 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27458 | wxDataFormat *arg2 = 0 ; | |
27459 | bool result; | |
27460 | PyObject * obj0 = 0 ; | |
27461 | PyObject * obj1 = 0 ; | |
27462 | char *kwnames[] = { | |
27463 | (char *) "self",(char *) "format", NULL | |
27464 | }; | |
27465 | ||
27466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
27467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27469 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
27470 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27471 | SWIG_fail; | |
27472 | if (arg2 == NULL) { | |
27473 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27474 | SWIG_fail; | |
27475 | } | |
27476 | { | |
27477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27478 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
27479 | ||
27480 | wxPyEndAllowThreads(__tstate); | |
27481 | if (PyErr_Occurred()) SWIG_fail; | |
27482 | } | |
27483 | { | |
27484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27485 | } | |
27486 | return resultobj; | |
27487 | fail: | |
27488 | return NULL; | |
27489 | } | |
27490 | ||
27491 | ||
c32bde28 | 27492 | static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27493 | PyObject *resultobj; |
27494 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27495 | wxDataObject *arg2 = 0 ; | |
27496 | bool result; | |
27497 | PyObject * obj0 = 0 ; | |
27498 | PyObject * obj1 = 0 ; | |
27499 | char *kwnames[] = { | |
27500 | (char *) "self",(char *) "data", NULL | |
27501 | }; | |
27502 | ||
27503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
27504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27506 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27507 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27508 | SWIG_fail; | |
27509 | if (arg2 == NULL) { | |
27510 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27511 | SWIG_fail; | |
27512 | } | |
27513 | { | |
27514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27515 | result = (bool)(arg1)->GetData(*arg2); | |
27516 | ||
27517 | wxPyEndAllowThreads(__tstate); | |
27518 | if (PyErr_Occurred()) SWIG_fail; | |
27519 | } | |
27520 | { | |
27521 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27522 | } | |
27523 | return resultobj; | |
27524 | fail: | |
27525 | return NULL; | |
27526 | } | |
27527 | ||
27528 | ||
c32bde28 | 27529 | static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27530 | PyObject *resultobj; |
27531 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27532 | PyObject * obj0 = 0 ; | |
27533 | char *kwnames[] = { | |
27534 | (char *) "self", NULL | |
27535 | }; | |
27536 | ||
27537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
27538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27540 | { | |
27541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27542 | (arg1)->Clear(); | |
27543 | ||
27544 | wxPyEndAllowThreads(__tstate); | |
27545 | if (PyErr_Occurred()) SWIG_fail; | |
27546 | } | |
27547 | Py_INCREF(Py_None); resultobj = Py_None; | |
27548 | return resultobj; | |
27549 | fail: | |
27550 | return NULL; | |
27551 | } | |
27552 | ||
27553 | ||
c32bde28 | 27554 | static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27555 | PyObject *resultobj; |
27556 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27557 | bool result; | |
27558 | PyObject * obj0 = 0 ; | |
27559 | char *kwnames[] = { | |
27560 | (char *) "self", NULL | |
27561 | }; | |
27562 | ||
27563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
27564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27566 | { | |
27567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27568 | result = (bool)(arg1)->Flush(); | |
27569 | ||
27570 | wxPyEndAllowThreads(__tstate); | |
27571 | if (PyErr_Occurred()) SWIG_fail; | |
27572 | } | |
27573 | { | |
27574 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27575 | } | |
27576 | return resultobj; | |
27577 | fail: | |
27578 | return NULL; | |
27579 | } | |
27580 | ||
27581 | ||
c32bde28 | 27582 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27583 | PyObject *resultobj; |
27584 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
ae8162c8 | 27585 | bool arg2 = (bool) true ; |
d55e5bfc RD |
27586 | PyObject * obj0 = 0 ; |
27587 | PyObject * obj1 = 0 ; | |
27588 | char *kwnames[] = { | |
27589 | (char *) "self",(char *) "primary", NULL | |
27590 | }; | |
27591 | ||
27592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
27593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27595 | if (obj1) { | |
c32bde28 | 27596 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
27597 | if (PyErr_Occurred()) SWIG_fail; |
27598 | } | |
27599 | { | |
27600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27601 | (arg1)->UsePrimarySelection(arg2); | |
27602 | ||
27603 | wxPyEndAllowThreads(__tstate); | |
27604 | if (PyErr_Occurred()) SWIG_fail; | |
27605 | } | |
27606 | Py_INCREF(Py_None); resultobj = Py_None; | |
27607 | return resultobj; | |
27608 | fail: | |
27609 | return NULL; | |
27610 | } | |
27611 | ||
27612 | ||
c32bde28 | 27613 | static PyObject *_wrap_Clipboard_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
27614 | PyObject *resultobj; |
27615 | wxClipboard *result; | |
27616 | char *kwnames[] = { | |
27617 | NULL | |
27618 | }; | |
27619 | ||
27620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail; | |
27621 | { | |
27622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27623 | result = (wxClipboard *)wxClipboard::Get(); | |
27624 | ||
27625 | wxPyEndAllowThreads(__tstate); | |
27626 | if (PyErr_Occurred()) SWIG_fail; | |
27627 | } | |
27628 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0); | |
27629 | return resultobj; | |
27630 | fail: | |
27631 | return NULL; | |
27632 | } | |
27633 | ||
27634 | ||
c32bde28 | 27635 | static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27636 | PyObject *obj; |
27637 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27638 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
27639 | Py_INCREF(obj); | |
27640 | return Py_BuildValue((char *)""); | |
27641 | } | |
c32bde28 | 27642 | static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27643 | PyObject *resultobj; |
27644 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
27645 | wxClipboardLocker *result; | |
27646 | PyObject * obj0 = 0 ; | |
27647 | char *kwnames[] = { | |
27648 | (char *) "clipboard", NULL | |
27649 | }; | |
27650 | ||
27651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27652 | if (obj0) { | |
27653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27655 | } | |
27656 | { | |
27657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27658 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
27659 | ||
27660 | wxPyEndAllowThreads(__tstate); | |
27661 | if (PyErr_Occurred()) SWIG_fail; | |
27662 | } | |
27663 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); | |
27664 | return resultobj; | |
27665 | fail: | |
27666 | return NULL; | |
27667 | } | |
27668 | ||
27669 | ||
c32bde28 | 27670 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27671 | PyObject *resultobj; |
27672 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27673 | PyObject * obj0 = 0 ; | |
27674 | char *kwnames[] = { | |
27675 | (char *) "self", NULL | |
27676 | }; | |
27677 | ||
27678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27681 | { | |
27682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27683 | delete arg1; | |
27684 | ||
27685 | wxPyEndAllowThreads(__tstate); | |
27686 | if (PyErr_Occurred()) SWIG_fail; | |
27687 | } | |
27688 | Py_INCREF(Py_None); resultobj = Py_None; | |
27689 | return resultobj; | |
27690 | fail: | |
27691 | return NULL; | |
27692 | } | |
27693 | ||
27694 | ||
c32bde28 | 27695 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27696 | PyObject *resultobj; |
27697 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27698 | bool result; | |
27699 | PyObject * obj0 = 0 ; | |
27700 | char *kwnames[] = { | |
27701 | (char *) "self", NULL | |
27702 | }; | |
27703 | ||
27704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
27705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27707 | { | |
27708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27709 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
27710 | ||
27711 | wxPyEndAllowThreads(__tstate); | |
27712 | if (PyErr_Occurred()) SWIG_fail; | |
27713 | } | |
27714 | { | |
27715 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27716 | } | |
27717 | return resultobj; | |
27718 | fail: | |
27719 | return NULL; | |
27720 | } | |
27721 | ||
27722 | ||
c32bde28 | 27723 | static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27724 | PyObject *obj; |
27725 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27726 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
27727 | Py_INCREF(obj); | |
27728 | return Py_BuildValue((char *)""); | |
27729 | } | |
c32bde28 | 27730 | static PyObject *_wrap_new_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27731 | PyObject *resultobj; |
27732 | int arg1 = (int) 0 ; | |
27733 | int arg2 = (int) 0 ; | |
27734 | int arg3 = (int) 0 ; | |
27735 | int arg4 = (int) 0 ; | |
27736 | wxVideoMode *result; | |
27737 | PyObject * obj0 = 0 ; | |
27738 | PyObject * obj1 = 0 ; | |
27739 | PyObject * obj2 = 0 ; | |
27740 | PyObject * obj3 = 0 ; | |
27741 | char *kwnames[] = { | |
27742 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
27743 | }; | |
27744 | ||
27745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27746 | if (obj0) { | |
c32bde28 | 27747 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
27748 | if (PyErr_Occurred()) SWIG_fail; |
27749 | } | |
27750 | if (obj1) { | |
c32bde28 | 27751 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
27752 | if (PyErr_Occurred()) SWIG_fail; |
27753 | } | |
27754 | if (obj2) { | |
c32bde28 | 27755 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27756 | if (PyErr_Occurred()) SWIG_fail; |
27757 | } | |
27758 | if (obj3) { | |
c32bde28 | 27759 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27760 | if (PyErr_Occurred()) SWIG_fail; |
27761 | } | |
27762 | { | |
27763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27764 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
27765 | ||
27766 | wxPyEndAllowThreads(__tstate); | |
27767 | if (PyErr_Occurred()) SWIG_fail; | |
27768 | } | |
27769 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
27770 | return resultobj; | |
27771 | fail: | |
27772 | return NULL; | |
27773 | } | |
27774 | ||
27775 | ||
c32bde28 | 27776 | static PyObject *_wrap_delete_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27777 | PyObject *resultobj; |
27778 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27779 | PyObject * obj0 = 0 ; | |
27780 | char *kwnames[] = { | |
27781 | (char *) "self", NULL | |
27782 | }; | |
27783 | ||
27784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
27785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27787 | { | |
27788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27789 | delete arg1; | |
27790 | ||
27791 | wxPyEndAllowThreads(__tstate); | |
27792 | if (PyErr_Occurred()) SWIG_fail; | |
27793 | } | |
27794 | Py_INCREF(Py_None); resultobj = Py_None; | |
27795 | return resultobj; | |
27796 | fail: | |
27797 | return NULL; | |
27798 | } | |
27799 | ||
27800 | ||
c32bde28 | 27801 | static PyObject *_wrap_VideoMode_Matches(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27802 | PyObject *resultobj; |
27803 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27804 | wxVideoMode *arg2 = 0 ; | |
27805 | bool result; | |
27806 | PyObject * obj0 = 0 ; | |
27807 | PyObject * obj1 = 0 ; | |
27808 | char *kwnames[] = { | |
27809 | (char *) "self",(char *) "other", NULL | |
27810 | }; | |
27811 | ||
27812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
27813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27815 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27816 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27817 | SWIG_fail; | |
27818 | if (arg2 == NULL) { | |
27819 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27820 | SWIG_fail; | |
27821 | } | |
27822 | { | |
27823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27824 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
27825 | ||
27826 | wxPyEndAllowThreads(__tstate); | |
27827 | if (PyErr_Occurred()) SWIG_fail; | |
27828 | } | |
27829 | { | |
27830 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27831 | } | |
27832 | return resultobj; | |
27833 | fail: | |
27834 | return NULL; | |
27835 | } | |
27836 | ||
27837 | ||
c32bde28 | 27838 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27839 | PyObject *resultobj; |
27840 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27841 | int result; | |
27842 | PyObject * obj0 = 0 ; | |
27843 | char *kwnames[] = { | |
27844 | (char *) "self", NULL | |
27845 | }; | |
27846 | ||
27847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
27848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27850 | { | |
27851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27852 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
27853 | ||
27854 | wxPyEndAllowThreads(__tstate); | |
27855 | if (PyErr_Occurred()) SWIG_fail; | |
27856 | } | |
c32bde28 | 27857 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27858 | return resultobj; |
27859 | fail: | |
27860 | return NULL; | |
27861 | } | |
27862 | ||
27863 | ||
c32bde28 | 27864 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27865 | PyObject *resultobj; |
27866 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27867 | int result; | |
27868 | PyObject * obj0 = 0 ; | |
27869 | char *kwnames[] = { | |
27870 | (char *) "self", NULL | |
27871 | }; | |
27872 | ||
27873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
27874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27876 | { | |
27877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27878 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
27879 | ||
27880 | wxPyEndAllowThreads(__tstate); | |
27881 | if (PyErr_Occurred()) SWIG_fail; | |
27882 | } | |
c32bde28 | 27883 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27884 | return resultobj; |
27885 | fail: | |
27886 | return NULL; | |
27887 | } | |
27888 | ||
27889 | ||
c32bde28 | 27890 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27891 | PyObject *resultobj; |
27892 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27893 | int result; | |
27894 | PyObject * obj0 = 0 ; | |
27895 | char *kwnames[] = { | |
27896 | (char *) "self", NULL | |
27897 | }; | |
27898 | ||
27899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
27900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27902 | { | |
27903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27904 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
27905 | ||
27906 | wxPyEndAllowThreads(__tstate); | |
27907 | if (PyErr_Occurred()) SWIG_fail; | |
27908 | } | |
c32bde28 | 27909 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27910 | return resultobj; |
27911 | fail: | |
27912 | return NULL; | |
27913 | } | |
27914 | ||
27915 | ||
c32bde28 | 27916 | static PyObject *_wrap_VideoMode_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27917 | PyObject *resultobj; |
27918 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27919 | bool result; | |
27920 | PyObject * obj0 = 0 ; | |
27921 | char *kwnames[] = { | |
27922 | (char *) "self", NULL | |
27923 | }; | |
27924 | ||
27925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
27926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27928 | { | |
27929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27930 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
27931 | ||
27932 | wxPyEndAllowThreads(__tstate); | |
27933 | if (PyErr_Occurred()) SWIG_fail; | |
27934 | } | |
27935 | { | |
27936 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27937 | } | |
27938 | return resultobj; | |
27939 | fail: | |
27940 | return NULL; | |
27941 | } | |
27942 | ||
27943 | ||
c32bde28 | 27944 | static PyObject *_wrap_VideoMode___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27945 | PyObject *resultobj; |
27946 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27947 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27948 | bool result; | |
27949 | PyObject * obj0 = 0 ; | |
27950 | PyObject * obj1 = 0 ; | |
27951 | char *kwnames[] = { | |
27952 | (char *) "self",(char *) "other", NULL | |
27953 | }; | |
27954 | ||
27955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
27956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27958 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27960 | { | |
27961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27962 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
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 *_wrap_VideoMode___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27977 | PyObject *resultobj; |
27978 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27979 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27980 | bool result; | |
27981 | PyObject * obj0 = 0 ; | |
27982 | PyObject * obj1 = 0 ; | |
27983 | char *kwnames[] = { | |
27984 | (char *) "self",(char *) "other", NULL | |
27985 | }; | |
27986 | ||
27987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
27988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27990 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27992 | { | |
27993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27994 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
27995 | ||
27996 | wxPyEndAllowThreads(__tstate); | |
27997 | if (PyErr_Occurred()) SWIG_fail; | |
27998 | } | |
27999 | { | |
28000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28001 | } | |
28002 | return resultobj; | |
28003 | fail: | |
28004 | return NULL; | |
28005 | } | |
28006 | ||
28007 | ||
c32bde28 | 28008 | static PyObject *_wrap_VideoMode_w_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28009 | PyObject *resultobj; |
28010 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28011 | int arg2 ; | |
28012 | PyObject * obj0 = 0 ; | |
28013 | PyObject * obj1 = 0 ; | |
28014 | char *kwnames[] = { | |
28015 | (char *) "self",(char *) "w", NULL | |
28016 | }; | |
28017 | ||
28018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
28019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28021 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28022 | if (PyErr_Occurred()) SWIG_fail; |
28023 | if (arg1) (arg1)->w = arg2; | |
28024 | ||
28025 | Py_INCREF(Py_None); resultobj = Py_None; | |
28026 | return resultobj; | |
28027 | fail: | |
28028 | return NULL; | |
28029 | } | |
28030 | ||
28031 | ||
c32bde28 | 28032 | static PyObject *_wrap_VideoMode_w_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28033 | PyObject *resultobj; |
28034 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28035 | int result; | |
28036 | PyObject * obj0 = 0 ; | |
28037 | char *kwnames[] = { | |
28038 | (char *) "self", NULL | |
28039 | }; | |
28040 | ||
28041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
28042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28044 | result = (int) ((arg1)->w); | |
28045 | ||
c32bde28 | 28046 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28047 | return resultobj; |
28048 | fail: | |
28049 | return NULL; | |
28050 | } | |
28051 | ||
28052 | ||
c32bde28 | 28053 | static PyObject *_wrap_VideoMode_h_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28054 | PyObject *resultobj; |
28055 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28056 | int arg2 ; | |
28057 | PyObject * obj0 = 0 ; | |
28058 | PyObject * obj1 = 0 ; | |
28059 | char *kwnames[] = { | |
28060 | (char *) "self",(char *) "h", NULL | |
28061 | }; | |
28062 | ||
28063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
28064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28066 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28067 | if (PyErr_Occurred()) SWIG_fail; |
28068 | if (arg1) (arg1)->h = arg2; | |
28069 | ||
28070 | Py_INCREF(Py_None); resultobj = Py_None; | |
28071 | return resultobj; | |
28072 | fail: | |
28073 | return NULL; | |
28074 | } | |
28075 | ||
28076 | ||
c32bde28 | 28077 | static PyObject *_wrap_VideoMode_h_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28078 | PyObject *resultobj; |
28079 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28080 | int result; | |
28081 | PyObject * obj0 = 0 ; | |
28082 | char *kwnames[] = { | |
28083 | (char *) "self", NULL | |
28084 | }; | |
28085 | ||
28086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
28087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28089 | result = (int) ((arg1)->h); | |
28090 | ||
c32bde28 | 28091 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28092 | return resultobj; |
28093 | fail: | |
28094 | return NULL; | |
28095 | } | |
28096 | ||
28097 | ||
c32bde28 | 28098 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28099 | PyObject *resultobj; |
28100 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28101 | int arg2 ; | |
28102 | PyObject * obj0 = 0 ; | |
28103 | PyObject * obj1 = 0 ; | |
28104 | char *kwnames[] = { | |
28105 | (char *) "self",(char *) "bpp", NULL | |
28106 | }; | |
28107 | ||
28108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
28109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28111 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28112 | if (PyErr_Occurred()) SWIG_fail; |
28113 | if (arg1) (arg1)->bpp = arg2; | |
28114 | ||
28115 | Py_INCREF(Py_None); resultobj = Py_None; | |
28116 | return resultobj; | |
28117 | fail: | |
28118 | return NULL; | |
28119 | } | |
28120 | ||
28121 | ||
c32bde28 | 28122 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28123 | PyObject *resultobj; |
28124 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28125 | int result; | |
28126 | PyObject * obj0 = 0 ; | |
28127 | char *kwnames[] = { | |
28128 | (char *) "self", NULL | |
28129 | }; | |
28130 | ||
28131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
28132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28134 | result = (int) ((arg1)->bpp); | |
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_refresh_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28144 | PyObject *resultobj; |
28145 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28146 | int arg2 ; | |
28147 | PyObject * obj0 = 0 ; | |
28148 | PyObject * obj1 = 0 ; | |
28149 | char *kwnames[] = { | |
28150 | (char *) "self",(char *) "refresh", NULL | |
28151 | }; | |
28152 | ||
28153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
28154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28156 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28157 | if (PyErr_Occurred()) SWIG_fail; |
28158 | if (arg1) (arg1)->refresh = arg2; | |
28159 | ||
28160 | Py_INCREF(Py_None); resultobj = Py_None; | |
28161 | return resultobj; | |
28162 | fail: | |
28163 | return NULL; | |
28164 | } | |
28165 | ||
28166 | ||
c32bde28 | 28167 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28168 | PyObject *resultobj; |
28169 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28170 | int result; | |
28171 | PyObject * obj0 = 0 ; | |
28172 | char *kwnames[] = { | |
28173 | (char *) "self", NULL | |
28174 | }; | |
28175 | ||
28176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
28177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28179 | result = (int) ((arg1)->refresh); | |
28180 | ||
c32bde28 | 28181 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28182 | return resultobj; |
28183 | fail: | |
28184 | return NULL; | |
28185 | } | |
28186 | ||
28187 | ||
c32bde28 | 28188 | static PyObject * VideoMode_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28189 | PyObject *obj; |
28190 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28191 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
28192 | Py_INCREF(obj); | |
28193 | return Py_BuildValue((char *)""); | |
28194 | } | |
c32bde28 | 28195 | static int _wrap_DefaultVideoMode_set(PyObject *) { |
d55e5bfc RD |
28196 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); |
28197 | return 1; | |
28198 | } | |
28199 | ||
28200 | ||
28201 | static PyObject *_wrap_DefaultVideoMode_get() { | |
28202 | PyObject *pyobj; | |
28203 | ||
28204 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
28205 | return pyobj; | |
28206 | } | |
28207 | ||
28208 | ||
c32bde28 | 28209 | static PyObject *_wrap_new_Display(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28210 | PyObject *resultobj; |
28211 | size_t arg1 = (size_t) 0 ; | |
28212 | wxDisplay *result; | |
28213 | PyObject * obj0 = 0 ; | |
28214 | char *kwnames[] = { | |
28215 | (char *) "index", NULL | |
28216 | }; | |
28217 | ||
28218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
28219 | if (obj0) { | |
c32bde28 | 28220 | arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
28221 | if (PyErr_Occurred()) SWIG_fail; |
28222 | } | |
28223 | { | |
28224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28225 | result = (wxDisplay *)new wxDisplay(arg1); | |
28226 | ||
28227 | wxPyEndAllowThreads(__tstate); | |
28228 | if (PyErr_Occurred()) SWIG_fail; | |
28229 | } | |
28230 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
28231 | return resultobj; | |
28232 | fail: | |
28233 | return NULL; | |
28234 | } | |
28235 | ||
28236 | ||
c32bde28 | 28237 | static PyObject *_wrap_delete_Display(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28238 | PyObject *resultobj; |
28239 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28240 | PyObject * obj0 = 0 ; | |
28241 | char *kwnames[] = { | |
28242 | (char *) "self", NULL | |
28243 | }; | |
28244 | ||
28245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
28246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28248 | { | |
28249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28250 | delete arg1; | |
28251 | ||
28252 | wxPyEndAllowThreads(__tstate); | |
28253 | if (PyErr_Occurred()) SWIG_fail; | |
28254 | } | |
28255 | Py_INCREF(Py_None); resultobj = Py_None; | |
28256 | return resultobj; | |
28257 | fail: | |
28258 | return NULL; | |
28259 | } | |
28260 | ||
28261 | ||
c32bde28 | 28262 | static PyObject *_wrap_Display_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28263 | PyObject *resultobj; |
28264 | size_t result; | |
28265 | char *kwnames[] = { | |
28266 | NULL | |
28267 | }; | |
28268 | ||
28269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
28270 | { | |
28271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28272 | result = (size_t)wxDisplay::GetCount(); | |
28273 | ||
28274 | wxPyEndAllowThreads(__tstate); | |
28275 | if (PyErr_Occurred()) SWIG_fail; | |
28276 | } | |
c32bde28 | 28277 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
28278 | return resultobj; |
28279 | fail: | |
28280 | return NULL; | |
28281 | } | |
28282 | ||
28283 | ||
c32bde28 | 28284 | static PyObject *_wrap_Display_GetFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28285 | PyObject *resultobj; |
28286 | wxPoint *arg1 = 0 ; | |
28287 | int result; | |
28288 | wxPoint temp1 ; | |
28289 | PyObject * obj0 = 0 ; | |
28290 | char *kwnames[] = { | |
28291 | (char *) "pt", NULL | |
28292 | }; | |
28293 | ||
28294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
28295 | { | |
28296 | arg1 = &temp1; | |
28297 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
28298 | } | |
28299 | { | |
28300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28301 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
28302 | ||
28303 | wxPyEndAllowThreads(__tstate); | |
28304 | if (PyErr_Occurred()) SWIG_fail; | |
28305 | } | |
c32bde28 | 28306 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28307 | return resultobj; |
28308 | fail: | |
28309 | return NULL; | |
28310 | } | |
28311 | ||
28312 | ||
c32bde28 | 28313 | static PyObject *_wrap_Display_GetFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28314 | PyObject *resultobj; |
28315 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28316 | int result; | |
28317 | PyObject * obj0 = 0 ; | |
28318 | char *kwnames[] = { | |
28319 | (char *) "window", NULL | |
28320 | }; | |
28321 | ||
28322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
28323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28325 | { | |
28326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28327 | result = (int)wxDisplay::GetFromWindow(arg1); | |
28328 | ||
28329 | wxPyEndAllowThreads(__tstate); | |
28330 | if (PyErr_Occurred()) SWIG_fail; | |
28331 | } | |
c32bde28 | 28332 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28333 | return resultobj; |
28334 | fail: | |
28335 | return NULL; | |
28336 | } | |
28337 | ||
28338 | ||
c32bde28 | 28339 | static PyObject *_wrap_Display_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28340 | PyObject *resultobj; |
28341 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28342 | bool result; | |
28343 | PyObject * obj0 = 0 ; | |
28344 | char *kwnames[] = { | |
28345 | (char *) "self", NULL | |
28346 | }; | |
28347 | ||
28348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
28349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28351 | { | |
28352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28353 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
28354 | ||
28355 | wxPyEndAllowThreads(__tstate); | |
28356 | if (PyErr_Occurred()) SWIG_fail; | |
28357 | } | |
28358 | { | |
28359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28360 | } | |
28361 | return resultobj; | |
28362 | fail: | |
28363 | return NULL; | |
28364 | } | |
28365 | ||
28366 | ||
c32bde28 | 28367 | static PyObject *_wrap_Display_GetGeometry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28368 | PyObject *resultobj; |
28369 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28370 | wxRect result; | |
28371 | PyObject * obj0 = 0 ; | |
28372 | char *kwnames[] = { | |
28373 | (char *) "self", NULL | |
28374 | }; | |
28375 | ||
28376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
28377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28379 | { | |
28380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28381 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
28382 | ||
28383 | wxPyEndAllowThreads(__tstate); | |
28384 | if (PyErr_Occurred()) SWIG_fail; | |
28385 | } | |
28386 | { | |
28387 | wxRect * resultptr; | |
28388 | resultptr = new wxRect((wxRect &) result); | |
28389 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
28390 | } | |
28391 | return resultobj; | |
28392 | fail: | |
28393 | return NULL; | |
28394 | } | |
28395 | ||
28396 | ||
c32bde28 | 28397 | static PyObject *_wrap_Display_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28398 | PyObject *resultobj; |
28399 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28400 | wxString result; | |
28401 | PyObject * obj0 = 0 ; | |
28402 | char *kwnames[] = { | |
28403 | (char *) "self", NULL | |
28404 | }; | |
28405 | ||
28406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
28407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28409 | { | |
28410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28411 | result = ((wxDisplay const *)arg1)->GetName(); | |
28412 | ||
28413 | wxPyEndAllowThreads(__tstate); | |
28414 | if (PyErr_Occurred()) SWIG_fail; | |
28415 | } | |
28416 | { | |
28417 | #if wxUSE_UNICODE | |
28418 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28419 | #else | |
28420 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28421 | #endif | |
28422 | } | |
28423 | return resultobj; | |
28424 | fail: | |
28425 | return NULL; | |
28426 | } | |
28427 | ||
28428 | ||
c32bde28 | 28429 | static PyObject *_wrap_Display_IsPrimary(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28430 | PyObject *resultobj; |
28431 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28432 | bool result; | |
28433 | PyObject * obj0 = 0 ; | |
28434 | char *kwnames[] = { | |
28435 | (char *) "self", NULL | |
28436 | }; | |
28437 | ||
28438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
28439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28441 | { | |
28442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28443 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
28444 | ||
28445 | wxPyEndAllowThreads(__tstate); | |
28446 | if (PyErr_Occurred()) SWIG_fail; | |
28447 | } | |
28448 | { | |
28449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28450 | } | |
28451 | return resultobj; | |
28452 | fail: | |
28453 | return NULL; | |
28454 | } | |
28455 | ||
28456 | ||
c32bde28 | 28457 | static PyObject *_wrap_Display_GetModes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28458 | PyObject *resultobj; |
28459 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28460 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28461 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28462 | PyObject *result; | |
28463 | PyObject * obj0 = 0 ; | |
28464 | PyObject * obj1 = 0 ; | |
28465 | char *kwnames[] = { | |
28466 | (char *) "self",(char *) "mode", NULL | |
28467 | }; | |
28468 | ||
28469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
28470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28472 | if (obj1) { | |
28473 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28474 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28475 | SWIG_fail; | |
28476 | if (arg2 == NULL) { | |
28477 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28478 | SWIG_fail; | |
28479 | } | |
28480 | } | |
28481 | { | |
28482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28483 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
28484 | ||
28485 | wxPyEndAllowThreads(__tstate); | |
28486 | if (PyErr_Occurred()) SWIG_fail; | |
28487 | } | |
28488 | resultobj = result; | |
28489 | return resultobj; | |
28490 | fail: | |
28491 | return NULL; | |
28492 | } | |
28493 | ||
28494 | ||
c32bde28 | 28495 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28496 | PyObject *resultobj; |
28497 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28498 | wxVideoMode result; | |
28499 | PyObject * obj0 = 0 ; | |
28500 | char *kwnames[] = { | |
28501 | (char *) "self", NULL | |
28502 | }; | |
28503 | ||
28504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
28505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28507 | { | |
28508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28509 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
28510 | ||
28511 | wxPyEndAllowThreads(__tstate); | |
28512 | if (PyErr_Occurred()) SWIG_fail; | |
28513 | } | |
28514 | { | |
28515 | wxVideoMode * resultptr; | |
28516 | resultptr = new wxVideoMode((wxVideoMode &) result); | |
28517 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); | |
28518 | } | |
28519 | return resultobj; | |
28520 | fail: | |
28521 | return NULL; | |
28522 | } | |
28523 | ||
28524 | ||
c32bde28 | 28525 | static PyObject *_wrap_Display_ChangeMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28526 | PyObject *resultobj; |
28527 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28528 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28529 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28530 | bool result; | |
28531 | PyObject * obj0 = 0 ; | |
28532 | PyObject * obj1 = 0 ; | |
28533 | char *kwnames[] = { | |
28534 | (char *) "self",(char *) "mode", NULL | |
28535 | }; | |
28536 | ||
28537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
28538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28540 | if (obj1) { | |
28541 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28542 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28543 | SWIG_fail; | |
28544 | if (arg2 == NULL) { | |
28545 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28546 | SWIG_fail; | |
28547 | } | |
28548 | } | |
28549 | { | |
28550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28551 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
28552 | ||
28553 | wxPyEndAllowThreads(__tstate); | |
28554 | if (PyErr_Occurred()) SWIG_fail; | |
28555 | } | |
28556 | { | |
28557 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28558 | } | |
28559 | return resultobj; | |
28560 | fail: | |
28561 | return NULL; | |
28562 | } | |
28563 | ||
28564 | ||
c32bde28 | 28565 | static PyObject *_wrap_Display_ResetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28566 | PyObject *resultobj; |
28567 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28568 | PyObject * obj0 = 0 ; | |
28569 | char *kwnames[] = { | |
28570 | (char *) "self", NULL | |
28571 | }; | |
28572 | ||
28573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
28574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28576 | { | |
28577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28578 | (arg1)->ResetMode(); | |
28579 | ||
28580 | wxPyEndAllowThreads(__tstate); | |
28581 | if (PyErr_Occurred()) SWIG_fail; | |
28582 | } | |
28583 | Py_INCREF(Py_None); resultobj = Py_None; | |
28584 | return resultobj; | |
28585 | fail: | |
28586 | return NULL; | |
28587 | } | |
28588 | ||
28589 | ||
c32bde28 | 28590 | static PyObject * Display_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28591 | PyObject *obj; |
28592 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28593 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
28594 | Py_INCREF(obj); | |
28595 | return Py_BuildValue((char *)""); | |
28596 | } | |
c1cb24a4 RD |
28597 | static PyObject *_wrap_StandardPaths_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
28598 | PyObject *resultobj; | |
28599 | wxStandardPaths *result; | |
28600 | char *kwnames[] = { | |
28601 | NULL | |
28602 | }; | |
28603 | ||
28604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StandardPaths_Get",kwnames)) goto fail; | |
28605 | { | |
28606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8fb0e70a | 28607 | result = (wxStandardPaths *)StandardPaths_Get(); |
c1cb24a4 RD |
28608 | |
28609 | wxPyEndAllowThreads(__tstate); | |
28610 | if (PyErr_Occurred()) SWIG_fail; | |
28611 | } | |
28612 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStandardPaths, 0); | |
28613 | return resultobj; | |
28614 | fail: | |
28615 | return NULL; | |
28616 | } | |
28617 | ||
28618 | ||
28619 | static PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28620 | PyObject *resultobj; | |
28621 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28622 | wxString result; | |
28623 | PyObject * obj0 = 0 ; | |
28624 | char *kwnames[] = { | |
28625 | (char *) "self", NULL | |
28626 | }; | |
28627 | ||
28628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetConfigDir",kwnames,&obj0)) goto fail; | |
28629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28631 | { | |
28632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28633 | result = ((wxStandardPaths const *)arg1)->GetConfigDir(); | |
28634 | ||
28635 | wxPyEndAllowThreads(__tstate); | |
28636 | if (PyErr_Occurred()) SWIG_fail; | |
28637 | } | |
28638 | { | |
28639 | #if wxUSE_UNICODE | |
28640 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28641 | #else | |
28642 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28643 | #endif | |
28644 | } | |
28645 | return resultobj; | |
28646 | fail: | |
28647 | return NULL; | |
28648 | } | |
28649 | ||
28650 | ||
28651 | static PyObject *_wrap_StandardPaths_GetUserConfigDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28652 | PyObject *resultobj; | |
28653 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28654 | wxString result; | |
28655 | PyObject * obj0 = 0 ; | |
28656 | char *kwnames[] = { | |
28657 | (char *) "self", NULL | |
28658 | }; | |
28659 | ||
28660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserConfigDir",kwnames,&obj0)) goto fail; | |
28661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28663 | { | |
28664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28665 | result = ((wxStandardPaths const *)arg1)->GetUserConfigDir(); | |
28666 | ||
28667 | wxPyEndAllowThreads(__tstate); | |
28668 | if (PyErr_Occurred()) SWIG_fail; | |
28669 | } | |
28670 | { | |
28671 | #if wxUSE_UNICODE | |
28672 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28673 | #else | |
28674 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28675 | #endif | |
28676 | } | |
28677 | return resultobj; | |
28678 | fail: | |
28679 | return NULL; | |
28680 | } | |
28681 | ||
28682 | ||
28683 | static PyObject *_wrap_StandardPaths_GetDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28684 | PyObject *resultobj; | |
28685 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28686 | wxString result; | |
28687 | PyObject * obj0 = 0 ; | |
28688 | char *kwnames[] = { | |
28689 | (char *) "self", NULL | |
28690 | }; | |
28691 | ||
28692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetDataDir",kwnames,&obj0)) goto fail; | |
28693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28695 | { | |
28696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28697 | result = ((wxStandardPaths const *)arg1)->GetDataDir(); | |
28698 | ||
28699 | wxPyEndAllowThreads(__tstate); | |
28700 | if (PyErr_Occurred()) SWIG_fail; | |
28701 | } | |
28702 | { | |
28703 | #if wxUSE_UNICODE | |
28704 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28705 | #else | |
28706 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28707 | #endif | |
28708 | } | |
28709 | return resultobj; | |
28710 | fail: | |
28711 | return NULL; | |
28712 | } | |
28713 | ||
28714 | ||
28715 | static PyObject *_wrap_StandardPaths_GetLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28716 | PyObject *resultobj; | |
28717 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28718 | wxString result; | |
28719 | PyObject * obj0 = 0 ; | |
28720 | char *kwnames[] = { | |
28721 | (char *) "self", NULL | |
28722 | }; | |
28723 | ||
28724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetLocalDataDir",kwnames,&obj0)) goto fail; | |
28725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28727 | { | |
28728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28729 | result = ((wxStandardPaths const *)arg1)->GetLocalDataDir(); | |
28730 | ||
28731 | wxPyEndAllowThreads(__tstate); | |
28732 | if (PyErr_Occurred()) SWIG_fail; | |
28733 | } | |
28734 | { | |
28735 | #if wxUSE_UNICODE | |
28736 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28737 | #else | |
28738 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28739 | #endif | |
28740 | } | |
28741 | return resultobj; | |
28742 | fail: | |
28743 | return NULL; | |
28744 | } | |
28745 | ||
28746 | ||
28747 | static PyObject *_wrap_StandardPaths_GetUserDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28748 | PyObject *resultobj; | |
28749 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28750 | wxString result; | |
28751 | PyObject * obj0 = 0 ; | |
28752 | char *kwnames[] = { | |
28753 | (char *) "self", NULL | |
28754 | }; | |
28755 | ||
28756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserDataDir",kwnames,&obj0)) goto fail; | |
28757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28759 | { | |
28760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28761 | result = ((wxStandardPaths const *)arg1)->GetUserDataDir(); | |
28762 | ||
28763 | wxPyEndAllowThreads(__tstate); | |
28764 | if (PyErr_Occurred()) SWIG_fail; | |
28765 | } | |
28766 | { | |
28767 | #if wxUSE_UNICODE | |
28768 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28769 | #else | |
28770 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28771 | #endif | |
28772 | } | |
28773 | return resultobj; | |
28774 | fail: | |
28775 | return NULL; | |
28776 | } | |
28777 | ||
28778 | ||
28779 | static PyObject *_wrap_StandardPaths_GetUserLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28780 | PyObject *resultobj; | |
28781 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28782 | wxString result; | |
28783 | PyObject * obj0 = 0 ; | |
28784 | char *kwnames[] = { | |
28785 | (char *) "self", NULL | |
28786 | }; | |
28787 | ||
28788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserLocalDataDir",kwnames,&obj0)) goto fail; | |
28789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28791 | { | |
28792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28793 | result = ((wxStandardPaths const *)arg1)->GetUserLocalDataDir(); | |
28794 | ||
28795 | wxPyEndAllowThreads(__tstate); | |
28796 | if (PyErr_Occurred()) SWIG_fail; | |
28797 | } | |
28798 | { | |
28799 | #if wxUSE_UNICODE | |
28800 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28801 | #else | |
28802 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28803 | #endif | |
28804 | } | |
28805 | return resultobj; | |
28806 | fail: | |
28807 | return NULL; | |
28808 | } | |
28809 | ||
28810 | ||
28811 | static PyObject *_wrap_StandardPaths_GetPluginsDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28812 | PyObject *resultobj; | |
28813 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28814 | wxString result; | |
28815 | PyObject * obj0 = 0 ; | |
28816 | char *kwnames[] = { | |
28817 | (char *) "self", NULL | |
28818 | }; | |
28819 | ||
28820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetPluginsDir",kwnames,&obj0)) goto fail; | |
28821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28823 | { | |
28824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28825 | result = ((wxStandardPaths const *)arg1)->GetPluginsDir(); | |
28826 | ||
28827 | wxPyEndAllowThreads(__tstate); | |
28828 | if (PyErr_Occurred()) SWIG_fail; | |
28829 | } | |
28830 | { | |
28831 | #if wxUSE_UNICODE | |
28832 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28833 | #else | |
28834 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28835 | #endif | |
28836 | } | |
28837 | return resultobj; | |
28838 | fail: | |
28839 | return NULL; | |
28840 | } | |
28841 | ||
28842 | ||
28843 | static PyObject *_wrap_StandardPaths_SetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) { | |
28844 | PyObject *resultobj; | |
28845 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28846 | wxString *arg2 = 0 ; | |
28847 | bool temp2 = false ; | |
28848 | PyObject * obj0 = 0 ; | |
28849 | PyObject * obj1 = 0 ; | |
28850 | char *kwnames[] = { | |
28851 | (char *) "self",(char *) "prefix", NULL | |
28852 | }; | |
28853 | ||
28854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StandardPaths_SetInstallPrefix",kwnames,&obj0,&obj1)) goto fail; | |
28855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28857 | { | |
28858 | arg2 = wxString_in_helper(obj1); | |
28859 | if (arg2 == NULL) SWIG_fail; | |
28860 | temp2 = true; | |
28861 | } | |
28862 | { | |
28863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28864 | wxStandardPaths_SetInstallPrefix(arg1,(wxString const &)*arg2); | |
28865 | ||
28866 | wxPyEndAllowThreads(__tstate); | |
28867 | if (PyErr_Occurred()) SWIG_fail; | |
28868 | } | |
28869 | Py_INCREF(Py_None); resultobj = Py_None; | |
28870 | { | |
28871 | if (temp2) | |
28872 | delete arg2; | |
28873 | } | |
28874 | return resultobj; | |
28875 | fail: | |
28876 | { | |
28877 | if (temp2) | |
28878 | delete arg2; | |
28879 | } | |
28880 | return NULL; | |
28881 | } | |
28882 | ||
28883 | ||
28884 | static PyObject *_wrap_StandardPaths_GetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) { | |
28885 | PyObject *resultobj; | |
28886 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28887 | wxString result; | |
28888 | PyObject * obj0 = 0 ; | |
28889 | char *kwnames[] = { | |
28890 | (char *) "self", NULL | |
28891 | }; | |
28892 | ||
28893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetInstallPrefix",kwnames,&obj0)) goto fail; | |
28894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28896 | { | |
28897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28898 | result = wxStandardPaths_GetInstallPrefix(arg1); | |
28899 | ||
28900 | wxPyEndAllowThreads(__tstate); | |
28901 | if (PyErr_Occurred()) SWIG_fail; | |
28902 | } | |
28903 | { | |
28904 | #if wxUSE_UNICODE | |
28905 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28906 | #else | |
28907 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28908 | #endif | |
28909 | } | |
28910 | return resultobj; | |
28911 | fail: | |
28912 | return NULL; | |
28913 | } | |
28914 | ||
28915 | ||
28916 | static PyObject * StandardPaths_swigregister(PyObject *, PyObject *args) { | |
28917 | PyObject *obj; | |
28918 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28919 | SWIG_TypeClientData(SWIGTYPE_p_wxStandardPaths, obj); | |
28920 | Py_INCREF(obj); | |
28921 | return Py_BuildValue((char *)""); | |
28922 | } | |
d55e5bfc | 28923 | static PyMethodDef SwigMethods[] = { |
c32bde28 RD |
28924 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
28925 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28926 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28927 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28928 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28929 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28930 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL }, | |
28931 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28932 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28933 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28934 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28935 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28936 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28937 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL }, | |
28938 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28939 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28940 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28941 | { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28942 | { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28943 | { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28944 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28945 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28946 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28947 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28948 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28949 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28950 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28951 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28952 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28953 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28954 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28955 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28956 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28957 | { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28958 | { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28959 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28960 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28961 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28962 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28963 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28964 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28965 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28966 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28967 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28968 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28969 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28970 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28971 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28972 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28973 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28974 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28975 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28976 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28977 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28978 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28979 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28980 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28981 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28982 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28983 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28984 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28985 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28986 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28987 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28988 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28989 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28990 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28991 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28992 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28993 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28994 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28995 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28996 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28997 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28998 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28999 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29000 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29001 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL }, | |
29002 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29003 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29004 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29005 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29006 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29007 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29008 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29009 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL }, | |
29010 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29011 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29012 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29013 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29014 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29015 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29016 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29017 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29018 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29019 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29020 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29021 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29022 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29023 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29024 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29025 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL }, | |
29026 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29027 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29028 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29029 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29030 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL }, | |
29031 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29032 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29033 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL }, | |
29034 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29035 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29036 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL }, | |
29037 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29038 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29039 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29040 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29041 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29042 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL }, | |
29043 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29044 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29045 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29046 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29047 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29048 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29049 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29050 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29051 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29052 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29053 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29054 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29055 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29056 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL }, | |
29057 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29058 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29059 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29060 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29061 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29062 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL }, | |
29063 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29064 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29065 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29066 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29067 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29068 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL }, | |
29069 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29070 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29071 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL }, | |
29072 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29073 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29074 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29075 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29076 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29077 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29078 | { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29079 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29080 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29081 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29082 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29083 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29084 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29085 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL }, | |
29086 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29087 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29088 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL }, | |
29089 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL }, | |
29090 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29091 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29092 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL }, | |
29093 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29094 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29095 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29096 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29097 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29098 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29099 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29100 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29101 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29102 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29103 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29104 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29105 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29106 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29107 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29108 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29109 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29110 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29111 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29112 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29113 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29114 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29115 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29116 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29117 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29118 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29119 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL }, | |
29120 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29121 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL }, | |
29122 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29123 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL }, | |
29124 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29125 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL }, | |
29126 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29127 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29128 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29129 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29130 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29131 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29132 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL }, | |
29133 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29134 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29135 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29136 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29137 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29138 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL }, | |
29139 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29140 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29141 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29142 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29143 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29144 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29145 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29146 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29147 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29148 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29149 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29150 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29151 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL }, | |
29152 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29153 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29154 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29155 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29156 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL }, | |
29157 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29158 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29159 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL }, | |
29160 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29161 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29162 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29163 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29164 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29165 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29166 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29167 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29168 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29169 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29170 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29171 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29172 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29173 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29174 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29175 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29176 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL }, | |
29177 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29178 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29179 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29180 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29181 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29182 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29183 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29184 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL }, | |
29185 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29186 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29187 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29188 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29189 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29190 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29191 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29192 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29193 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29194 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29195 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29196 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29197 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29198 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29199 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29200 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29201 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29202 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29203 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29204 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29205 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29206 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29207 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29208 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29209 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29210 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29211 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29212 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29213 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29214 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29215 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29216 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29217 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29218 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29219 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29220 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29221 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29222 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29223 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29224 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29225 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29226 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29227 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29228 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29229 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29230 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL }, | |
29231 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29232 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29233 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29234 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29235 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29236 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29237 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29238 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29239 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29240 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29241 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29242 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29243 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29244 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29245 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29246 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29247 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29248 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29249 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29250 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29251 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29252 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29253 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29254 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29255 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29256 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29257 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29258 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL }, | |
29259 | { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29260 | { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29261 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29262 | { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29263 | { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29264 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29265 | { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29266 | { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29267 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29268 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL }, | |
29269 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29270 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29271 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29272 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29273 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29274 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29275 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29276 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29277 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29278 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29279 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29280 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29281 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29282 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29283 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29284 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL }, | |
29285 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29286 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29287 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29288 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29289 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29290 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29291 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29292 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29293 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29294 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29295 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29296 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29297 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29298 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29299 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29300 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL }, | |
29301 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29302 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29303 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29304 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29305 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29306 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29307 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29308 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29309 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29310 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29311 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29312 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29313 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29314 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL }, | |
29315 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29316 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29317 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29318 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29319 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29320 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29321 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29322 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29323 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL }, | |
29324 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29325 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29326 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29327 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29328 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29329 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29330 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29331 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29332 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29333 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29334 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29335 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29336 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29337 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29338 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29339 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29340 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29341 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29342 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29343 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29344 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29345 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29346 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29347 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29348 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29349 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29350 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29351 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29352 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29353 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29354 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29355 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29356 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29357 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29358 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29359 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29360 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29361 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29362 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29363 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29364 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29365 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29366 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL }, | |
29367 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29368 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29369 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL }, | |
29370 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29371 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29372 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL }, | |
29373 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29374 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29375 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29376 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL }, | |
29377 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29378 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29379 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29380 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29381 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29382 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29383 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29384 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29385 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29386 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29387 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29388 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29389 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29390 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29391 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29392 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29393 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29394 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29395 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29396 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29397 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29398 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29399 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29400 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29401 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29402 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29403 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29404 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29405 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29406 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29407 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29408 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29409 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29410 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29411 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29412 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29413 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29414 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29415 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29416 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29417 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29418 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29419 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29420 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29421 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29422 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29423 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29424 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29425 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29426 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
7e63a440 | 29427 | { (char *)"DateTime_SetToWeekOfYear", (PyCFunction) _wrap_DateTime_SetToWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
29428 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL }, |
29429 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29430 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29431 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29432 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29433 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29434 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29435 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29436 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29437 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29438 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29439 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29440 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29441 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29442 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29443 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29444 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29445 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29446 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29447 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29448 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29449 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29450 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29451 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29452 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29453 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29454 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29455 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29456 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29457 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29458 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29459 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29460 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29461 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29462 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29463 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29464 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29465 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29466 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29467 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29468 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29469 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL }, | |
29470 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL }, | |
29471 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL }, | |
29472 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL }, | |
29473 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS, NULL }, | |
29474 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS, NULL }, | |
29475 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS, NULL }, | |
29476 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS, NULL }, | |
29477 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS, NULL }, | |
29478 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS, NULL }, | |
29479 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29480 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29481 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29482 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29483 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29484 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29485 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29486 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29487 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29488 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29489 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL }, | |
29490 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29491 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29492 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29493 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29494 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29495 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29496 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29497 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29498 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29499 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29500 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29501 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29502 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29503 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29504 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29505 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29506 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29507 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29508 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29509 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29510 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29511 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29512 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29513 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29514 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29515 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29516 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29517 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29518 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29519 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29520 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29521 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29522 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29523 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29524 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29525 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29526 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29527 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29528 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29529 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29530 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29531 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29532 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29533 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29534 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL }, | |
29535 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29536 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29537 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29538 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29539 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29540 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29541 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29542 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29543 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29544 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29545 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29546 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29547 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29548 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29549 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29550 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29551 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29552 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29553 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29554 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29555 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29556 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29557 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29558 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29559 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29560 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29561 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29562 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29563 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29564 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29565 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29566 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29567 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29568 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL }, | |
29569 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29570 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29571 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29572 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29573 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29574 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29575 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29576 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL }, | |
29577 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL }, | |
29578 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29579 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29580 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29581 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29582 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL }, | |
29583 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29584 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29585 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29586 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29587 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29588 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29589 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29590 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29591 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL }, | |
29592 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29593 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29594 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29595 | { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29596 | { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29597 | { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29598 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL }, | |
29599 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29600 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29601 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL }, | |
29602 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29603 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29604 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL }, | |
29605 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29606 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29607 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29608 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29609 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL }, | |
29610 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29611 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29612 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL }, | |
29613 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29614 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29615 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29616 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL }, | |
29617 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29618 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29619 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL }, | |
29620 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29621 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29622 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29623 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL }, | |
29624 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29625 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29626 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29627 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29628 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL }, | |
29629 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29630 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29631 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29632 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL }, | |
29633 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29634 | { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29635 | { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29636 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL }, | |
29637 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29638 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29639 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29640 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29641 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29642 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29643 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29644 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29645 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29646 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL }, | |
29647 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29648 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29649 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29650 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29651 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29652 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29653 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29654 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29655 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29656 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29657 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL }, | |
29658 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29659 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29660 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29661 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29662 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29663 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29664 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29665 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL }, | |
29666 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29667 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29668 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29669 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29670 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29671 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29672 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29673 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL }, | |
29674 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29675 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29676 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29677 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29678 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29679 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29680 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29681 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29682 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29683 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29684 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29685 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29686 | { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29687 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL }, | |
29688 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29689 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29690 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29691 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL }, | |
29692 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29693 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29694 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29695 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29696 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29697 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29698 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29699 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29700 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29701 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29702 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29703 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29704 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29705 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29706 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29707 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29708 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29709 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL }, | |
29710 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29711 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29712 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29713 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29714 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29715 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29716 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29717 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29718 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29719 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29720 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29721 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29722 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29723 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL }, | |
c1cb24a4 RD |
29724 | { (char *)"StandardPaths_Get", (PyCFunction) _wrap_StandardPaths_Get, METH_VARARGS | METH_KEYWORDS, NULL }, |
29725 | { (char *)"StandardPaths_GetConfigDir", (PyCFunction) _wrap_StandardPaths_GetConfigDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29726 | { (char *)"StandardPaths_GetUserConfigDir", (PyCFunction) _wrap_StandardPaths_GetUserConfigDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29727 | { (char *)"StandardPaths_GetDataDir", (PyCFunction) _wrap_StandardPaths_GetDataDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29728 | { (char *)"StandardPaths_GetLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29729 | { (char *)"StandardPaths_GetUserDataDir", (PyCFunction) _wrap_StandardPaths_GetUserDataDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29730 | { (char *)"StandardPaths_GetUserLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetUserLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29731 | { (char *)"StandardPaths_GetPluginsDir", (PyCFunction) _wrap_StandardPaths_GetPluginsDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29732 | { (char *)"StandardPaths_SetInstallPrefix", (PyCFunction) _wrap_StandardPaths_SetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29733 | { (char *)"StandardPaths_GetInstallPrefix", (PyCFunction) _wrap_StandardPaths_GetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29734 | { (char *)"StandardPaths_swigregister", StandardPaths_swigregister, METH_VARARGS, NULL }, | |
c32bde28 | 29735 | { NULL, NULL, 0, NULL } |
d55e5bfc RD |
29736 | }; |
29737 | ||
29738 | ||
29739 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
29740 | ||
29741 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
29742 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29743 | } | |
29744 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
29745 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
29746 | } | |
29747 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
29748 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
29749 | } | |
29750 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
29751 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
29752 | } | |
29753 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
29754 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
29755 | } | |
29756 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
29757 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
29758 | } | |
29759 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
29760 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
29761 | } | |
29762 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
29763 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
29764 | } | |
29765 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
29766 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
29767 | } | |
29768 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
29769 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
29770 | } | |
29771 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
29772 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29773 | } | |
29774 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
29775 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
29776 | } | |
29777 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
29778 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
29779 | } | |
29780 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
29781 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29782 | } | |
29783 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
29784 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29785 | } | |
29786 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
29787 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
29788 | } | |
29789 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
29790 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
29791 | } | |
29792 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
29793 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
29794 | } | |
29795 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
29796 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
29797 | } | |
29798 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
29799 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
29800 | } | |
29801 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
29802 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
29803 | } | |
29804 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
29805 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
29806 | } | |
29807 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
29808 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29809 | } | |
29810 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
29811 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29812 | } | |
29813 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
29814 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29815 | } | |
29816 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
29817 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29818 | } | |
29819 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
29820 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29821 | } | |
29822 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
29823 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
29824 | } | |
29825 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
29826 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
29827 | } | |
29828 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
29829 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29830 | } | |
29831 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
29832 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
29833 | } | |
29834 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
29835 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
29836 | } | |
29837 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
29838 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
29839 | } | |
29840 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
29841 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29842 | } | |
29843 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
29844 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29845 | } | |
29846 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
29847 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29848 | } | |
29849 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
29850 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
29851 | } | |
29852 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
29853 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
29854 | } | |
29855 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
29856 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
29857 | } | |
29858 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
29859 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
29860 | } | |
29861 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
29862 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29863 | } | |
29864 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
29865 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29866 | } | |
29867 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
29868 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
29869 | } | |
29870 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
29871 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
29872 | } | |
29873 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
29874 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
29875 | } | |
29876 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
29877 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
29878 | } | |
29879 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
29880 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29881 | } | |
29882 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
29883 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29884 | } | |
29885 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
29886 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29887 | } | |
29888 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
29889 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29890 | } | |
29891 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
29892 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29893 | } | |
29894 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
29895 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
29896 | } | |
29897 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
29898 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29899 | } | |
29900 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
29901 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
29902 | } | |
29903 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
29904 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
29905 | } | |
29906 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29907 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
29908 | } | |
29909 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29910 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29911 | } | |
29912 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29913 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29914 | } | |
29915 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29916 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29917 | } | |
29918 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29919 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29920 | } | |
29921 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29922 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29923 | } | |
29924 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29925 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29926 | } | |
29927 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
29928 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
29929 | } | |
29930 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
29931 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
29932 | } | |
29933 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
29934 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29935 | } | |
29936 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
29937 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
29938 | } | |
29939 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
29940 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
29941 | } | |
29942 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
29943 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
29944 | } | |
29945 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
29946 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
29947 | } | |
29948 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
29949 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
29950 | } | |
29951 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
29952 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
29953 | } | |
29954 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
29955 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
29956 | } | |
29957 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
29958 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
29959 | } | |
29960 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
29961 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
29962 | } | |
29963 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
29964 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
29965 | } | |
29966 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
29967 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
29968 | } | |
29969 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
29970 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
29971 | } | |
29972 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
29973 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
29974 | } | |
29975 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
29976 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
29977 | } | |
29978 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
29979 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
29980 | } | |
29981 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
29982 | return (void *)((wxObject *) ((wxSizer *) x)); | |
29983 | } | |
29984 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
29985 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
29986 | } | |
29987 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
29988 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
29989 | } | |
29990 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
29991 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29992 | } | |
29993 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
29994 | return (void *)((wxObject *) ((wxEvent *) x)); | |
29995 | } | |
29996 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
29997 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
29998 | } | |
29999 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
30000 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
30001 | } | |
30002 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
30003 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
30004 | } | |
30005 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
30006 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
30007 | } | |
30008 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
30009 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
30010 | } | |
30011 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
30012 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
30013 | } | |
30014 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
30015 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
30016 | } | |
30017 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
30018 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
30019 | } | |
30020 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
30021 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
30022 | } | |
30023 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
30024 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
30025 | } | |
30026 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
30027 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
30028 | } | |
30029 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
30030 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
30031 | } | |
30032 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
30033 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
30034 | } | |
30035 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
30036 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
30037 | } | |
30038 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
30039 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
30040 | } | |
30041 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
30042 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
30043 | } | |
30044 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
30045 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30046 | } | |
30047 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
30048 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
30049 | } | |
30050 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
30051 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
30052 | } | |
30053 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
30054 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
30055 | } | |
30056 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
30057 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
30058 | } | |
30059 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
30060 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30061 | } | |
30062 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
30063 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
30064 | } | |
30065 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
30066 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
30067 | } | |
30068 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
30069 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
30070 | } | |
30071 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
30072 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
30073 | } | |
30074 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
30075 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
30076 | } | |
30077 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
30078 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
30079 | } | |
30080 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
30081 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
30082 | } | |
30083 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
30084 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
30085 | } | |
30086 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
30087 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
30088 | } | |
30089 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
30090 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
30091 | } | |
30092 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
30093 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
30094 | } | |
30095 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
30096 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
30097 | } | |
30098 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
30099 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
30100 | } | |
30101 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
30102 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
30103 | } | |
30104 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
30105 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
30106 | } | |
30107 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
30108 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
30109 | } | |
30110 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
30111 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
30112 | } | |
30113 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
30114 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
30115 | } | |
30116 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
30117 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
30118 | } | |
30119 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
30120 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
30121 | } | |
30122 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
30123 | return (void *)((wxObject *) ((wxImage *) x)); | |
30124 | } | |
30125 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
30126 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
30127 | } | |
30128 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
30129 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
30130 | } | |
30131 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
30132 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
30133 | } | |
30134 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
30135 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30136 | } | |
30137 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
30138 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
30139 | } | |
30140 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
30141 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
30142 | } | |
30143 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
30144 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
30145 | } | |
30146 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
30147 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
30148 | } | |
30149 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
30150 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
30151 | } | |
30152 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
30153 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
30154 | } | |
30155 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
30156 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
30157 | } | |
30158 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
30159 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
30160 | } | |
30161 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
30162 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
30163 | } | |
30164 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
30165 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
30166 | } | |
30167 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
30168 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
30169 | } | |
30170 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
30171 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
30172 | } | |
30173 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
30174 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
30175 | } | |
30176 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
30177 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
30178 | } | |
30179 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
30180 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30181 | } | |
30182 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
30183 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
30184 | } | |
30185 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
30186 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
30187 | } | |
30188 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
30189 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
30190 | } | |
30191 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
30192 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30193 | } | |
30194 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
30195 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
30196 | } | |
30197 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
30198 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
30199 | } | |
30200 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
30201 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
30202 | } | |
30203 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
30204 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
30205 | } | |
30206 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
30207 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
30208 | } | |
30209 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
30210 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
30211 | } | |
30212 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
30213 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
30214 | } | |
30215 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
30216 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
30217 | } | |
30218 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
30219 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
30220 | } | |
30221 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
30222 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
30223 | } | |
30224 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
30225 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
30226 | } | |
30227 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
30228 | return (void *)((wxWindow *) ((wxControl *) x)); | |
30229 | } | |
30230 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
30231 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
30232 | } | |
30233 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
30234 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
30235 | } | |
30236 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
30237 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
30238 | } | |
30239 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
30240 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
30241 | } | |
30242 | 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}}; | |
30243 | 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}}; | |
30244 | 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}}; | |
30245 | 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}}; | |
30246 | 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}}; | |
30247 | 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}}; | |
30248 | 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}}; | |
30249 | 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}}; | |
30250 | 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}}; | |
30251 | 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}}; | |
30252 | 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}}; | |
30253 | 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}}; | |
30254 | 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}}; | |
30255 | 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}}; | |
30256 | 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}}; | |
30257 | 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}}; | |
30258 | 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}}; | |
30259 | 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}}; | |
30260 | 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}}; | |
30261 | 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}}; | |
30262 | 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}}; | |
30263 | 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}}; | |
30264 | 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}}; | |
30265 | 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}}; | |
30266 | 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}}; | |
30267 | 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}}; | |
30268 | static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0, 0, 0, 0},{"_p_wxBusyCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
b1f29bf7 | 30269 | 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 |
30270 | 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}}; |
30271 | 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}}; | |
30272 | 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}}; | |
30273 | static swig_type_info _swigt__p_wxDataObject[] = {{"_p_wxDataObject", 0, "wxDataObject *", 0, 0, 0, 0},{"_p_wxDataObjectSimple", _p_wxDataObjectSimpleTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxDataObjectComposite", _p_wxDataObjectCompositeTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
30274 | 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}}; |
30275 | 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}}; | |
30276 | 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}}; | |
30277 | 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}}; | |
30278 | 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}}; | |
30279 | 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}}; | |
30280 | 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}}; | |
30281 | 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}}; | |
30282 | 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}}; | |
30283 | 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}}; | |
30284 | 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}}; | |
30285 | 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}}; | |
30286 | 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}}; | |
30287 | 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}}; | |
30288 | 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}}; | |
30289 | 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}}; | |
30290 | 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}}; | |
30291 | 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}}; | |
30292 | 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}}; | |
30293 | 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}}; | |
30294 | 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 | 30295 | 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 |
30296 | 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}}; |
30297 | 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}}; | |
30298 | 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}}; | |
30299 | 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}}; | |
30300 | 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}}; | |
30301 | 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}}; | |
30302 | 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}}; | |
30303 | 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}}; | |
30304 | 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}}; | |
30305 | 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}}; | |
30306 | 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}}; | |
30307 | 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}}; | |
30308 | 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}}; | |
30309 | 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}}; | |
30310 | 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}}; | |
30311 | 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}}; | |
30312 | 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}}; | |
30313 | 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}}; | |
30314 | 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}}; | |
30315 | 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}}; | |
30316 | 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}}; | |
30317 | 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}}; | |
30318 | 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}}; | |
30319 | 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}}; | |
30320 | 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}}; | |
30321 | 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}}; | |
30322 | 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}}; | |
30323 | 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}}; | |
30324 | 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}}; | |
30325 | 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 |
30326 | 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}}; |
30327 | 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}}; | |
30328 | 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}}; | |
30329 | ||
30330 | static swig_type_info *swig_types_initial[] = { | |
30331 | _swigt__p_wxLogChain, | |
30332 | _swigt__p_wxMutexGuiLocker, | |
30333 | _swigt__p_wxMetafile, | |
30334 | _swigt__p_wxFileHistory, | |
30335 | _swigt__p_wxLog, | |
30336 | _swigt__p_wxDateTime__TimeZone, | |
30337 | _swigt__p_wxMenu, | |
30338 | _swigt__p_wxEvent, | |
30339 | _swigt__p_wxConfigBase, | |
30340 | _swigt__p_wxDisplay, | |
30341 | _swigt__p_wxFileType, | |
30342 | _swigt__p_wxLogGui, | |
30343 | _swigt__p_wxFont, | |
30344 | _swigt__p_wxDataFormat, | |
30345 | _swigt__p_wxTimerEvent, | |
30346 | _swigt__p_wxCaret, | |
30347 | _swigt__p_int, | |
30348 | _swigt__p_wxSize, | |
30349 | _swigt__p_wxClipboard, | |
30350 | _swigt__p_wxStopWatch, | |
30351 | _swigt__p_wxDC, | |
30352 | _swigt__p_wxClipboardLocker, | |
30353 | _swigt__p_wxIcon, | |
30354 | _swigt__p_wxLogStderr, | |
30355 | _swigt__p_wxLogTextCtrl, | |
30356 | _swigt__p_wxTextCtrl, | |
30357 | _swigt__p_wxBusyCursor, | |
b1f29bf7 | 30358 | _swigt__p_wxPyBitmapDataObject, |
d55e5bfc RD |
30359 | _swigt__p_wxPyTextDataObject, |
30360 | _swigt__p_wxBitmapDataObject, | |
30361 | _swigt__p_wxTextDataObject, | |
30362 | _swigt__p_wxDataObject, | |
d55e5bfc RD |
30363 | _swigt__p_wxFileDataObject, |
30364 | _swigt__p_wxCustomDataObject, | |
30365 | _swigt__p_wxURLDataObject, | |
30366 | _swigt__p_wxMetafileDataObject, | |
30367 | _swigt__p_wxSound, | |
30368 | _swigt__p_wxTimerRunner, | |
30369 | _swigt__p_wxLogWindow, | |
30370 | _swigt__p_wxTimeSpan, | |
30371 | _swigt__p_wxArrayString, | |
30372 | _swigt__p_wxWindowDisabler, | |
30373 | _swigt__p_wxToolTip, | |
30374 | _swigt__p_wxDataObjectComposite, | |
30375 | _swigt__p_wxFileConfig, | |
30376 | _swigt__p_wxSystemSettings, | |
30377 | _swigt__p_wxVideoMode, | |
30378 | _swigt__p_wxPyDataObjectSimple, | |
30379 | _swigt__p_wxDataObjectSimple, | |
30380 | _swigt__p_wxEvtHandler, | |
30381 | _swigt__p_wxRect, | |
30382 | _swigt__p_char, | |
30383 | _swigt__p_wxSingleInstanceChecker, | |
c1cb24a4 | 30384 | _swigt__p_wxStandardPaths, |
d55e5bfc RD |
30385 | _swigt__p_wxFileTypeInfo, |
30386 | _swigt__p_wxFrame, | |
30387 | _swigt__p_wxTimer, | |
30388 | _swigt__p_wxMimeTypesManager, | |
30389 | _swigt__p_wxPyArtProvider, | |
30390 | _swigt__p_wxPyTipProvider, | |
30391 | _swigt__p_wxTipProvider, | |
30392 | _swigt__p_wxJoystick, | |
30393 | _swigt__p_wxSystemOptions, | |
30394 | _swigt__p_wxPoint, | |
30395 | _swigt__p_wxJoystickEvent, | |
30396 | _swigt__p_wxCursor, | |
30397 | _swigt__p_wxObject, | |
30398 | _swigt__p_wxOutputStream, | |
30399 | _swigt__p_wxDateTime, | |
30400 | _swigt__p_wxPyDropSource, | |
30401 | _swigt__p_wxWindow, | |
30402 | _swigt__p_wxString, | |
30403 | _swigt__p_wxPyProcess, | |
30404 | _swigt__p_wxBitmap, | |
30405 | _swigt__p_wxConfig, | |
30406 | _swigt__p_wxChar, | |
30407 | _swigt__p_wxBusyInfo, | |
30408 | _swigt__p_wxPyDropTarget, | |
30409 | _swigt__p_wxPyTextDropTarget, | |
30410 | _swigt__p_wxPyFileDropTarget, | |
30411 | _swigt__p_wxProcessEvent, | |
30412 | _swigt__p_wxPyLog, | |
30413 | _swigt__p_wxLogNull, | |
30414 | _swigt__p_wxColour, | |
d55e5bfc RD |
30415 | _swigt__p_wxConfigPathChanger, |
30416 | _swigt__p_wxPyTimer, | |
30417 | _swigt__p_wxDateSpan, | |
30418 | 0 | |
30419 | }; | |
30420 | ||
30421 | ||
30422 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
30423 | ||
30424 | static swig_const_info swig_const_table[] = { | |
30425 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, | |
30426 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
30427 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
30428 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
30429 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
c32bde28 | 30430 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
30431 | |
30432 | #ifdef __cplusplus | |
30433 | } | |
30434 | #endif | |
30435 | ||
30436 | #ifdef __cplusplus | |
30437 | extern "C" | |
30438 | #endif | |
30439 | SWIGEXPORT(void) SWIG_init(void) { | |
30440 | static PyObject *SWIG_globals = 0; | |
30441 | static int typeinit = 0; | |
30442 | PyObject *m, *d; | |
30443 | int i; | |
30444 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
30445 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
30446 | d = PyModule_GetDict(m); | |
30447 | ||
30448 | if (!typeinit) { | |
30449 | for (i = 0; swig_types_initial[i]; i++) { | |
30450 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
30451 | } | |
30452 | typeinit = 1; | |
30453 | } | |
30454 | SWIG_InstallConstants(d,swig_const_table); | |
30455 | ||
c32bde28 RD |
30456 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_From_int((int)wxSYS_OEM_FIXED_FONT)); |
30457 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_From_int((int)wxSYS_ANSI_FIXED_FONT)); | |
30458 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_From_int((int)wxSYS_ANSI_VAR_FONT)); | |
30459 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FONT)); | |
30460 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_From_int((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
30461 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_From_int((int)wxSYS_DEFAULT_PALETTE)); | |
30462 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FIXED_FONT)); | |
30463 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_From_int((int)wxSYS_DEFAULT_GUI_FONT)); | |
30464 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_From_int((int)wxSYS_ICONTITLE_FONT)); | |
30465 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_From_int((int)wxSYS_COLOUR_SCROLLBAR)); | |
30466 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_From_int((int)wxSYS_COLOUR_BACKGROUND)); | |
30467 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_From_int((int)wxSYS_COLOUR_DESKTOP)); | |
30468 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
30469 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
30470 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_From_int((int)wxSYS_COLOUR_MENU)); | |
30471 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_From_int((int)wxSYS_COLOUR_WINDOW)); | |
30472 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_From_int((int)wxSYS_COLOUR_WINDOWFRAME)); | |
30473 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_From_int((int)wxSYS_COLOUR_MENUTEXT)); | |
30474 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_From_int((int)wxSYS_COLOUR_WINDOWTEXT)); | |
30475 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
30476 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
30477 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
30478 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_From_int((int)wxSYS_COLOUR_APPWORKSPACE)); | |
30479 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHT)); | |
30480 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
30481 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_From_int((int)wxSYS_COLOUR_BTNFACE)); | |
30482 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_From_int((int)wxSYS_COLOUR_3DFACE)); | |
30483 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_From_int((int)wxSYS_COLOUR_BTNSHADOW)); | |
30484 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DSHADOW)); | |
30485 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_From_int((int)wxSYS_COLOUR_GRAYTEXT)); | |
30486 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_From_int((int)wxSYS_COLOUR_BTNTEXT)); | |
30487 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
30488 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
30489 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHILIGHT)); | |
30490 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
30491 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHILIGHT)); | |
30492 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DDKSHADOW)); | |
30493 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DLIGHT)); | |
30494 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_From_int((int)wxSYS_COLOUR_INFOTEXT)); | |
30495 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_From_int((int)wxSYS_COLOUR_INFOBK)); | |
30496 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_From_int((int)wxSYS_COLOUR_LISTBOX)); | |
30497 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HOTLIGHT)); | |
30498 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
30499 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
30500 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_MENUHILIGHT)); | |
30501 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_From_int((int)wxSYS_COLOUR_MENUBAR)); | |
30502 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_From_int((int)wxSYS_COLOUR_MAX)); | |
30503 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_From_int((int)wxSYS_MOUSE_BUTTONS)); | |
30504 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_From_int((int)wxSYS_BORDER_X)); | |
30505 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_From_int((int)wxSYS_BORDER_Y)); | |
30506 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_From_int((int)wxSYS_CURSOR_X)); | |
30507 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_From_int((int)wxSYS_CURSOR_Y)); | |
30508 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_From_int((int)wxSYS_DCLICK_X)); | |
30509 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_From_int((int)wxSYS_DCLICK_Y)); | |
30510 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_From_int((int)wxSYS_DRAG_X)); | |
30511 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_From_int((int)wxSYS_DRAG_Y)); | |
30512 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_From_int((int)wxSYS_EDGE_X)); | |
30513 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_From_int((int)wxSYS_EDGE_Y)); | |
30514 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_X)); | |
30515 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_Y)); | |
30516 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_From_int((int)wxSYS_HTHUMB_X)); | |
30517 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_From_int((int)wxSYS_ICON_X)); | |
30518 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_From_int((int)wxSYS_ICON_Y)); | |
30519 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_From_int((int)wxSYS_ICONSPACING_X)); | |
30520 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_From_int((int)wxSYS_ICONSPACING_Y)); | |
30521 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_From_int((int)wxSYS_WINDOWMIN_X)); | |
30522 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_From_int((int)wxSYS_WINDOWMIN_Y)); | |
30523 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_From_int((int)wxSYS_SCREEN_X)); | |
30524 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_From_int((int)wxSYS_SCREEN_Y)); | |
30525 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_From_int((int)wxSYS_FRAMESIZE_X)); | |
30526 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_From_int((int)wxSYS_FRAMESIZE_Y)); | |
30527 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_From_int((int)wxSYS_SMALLICON_X)); | |
30528 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_From_int((int)wxSYS_SMALLICON_Y)); | |
30529 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_From_int((int)wxSYS_HSCROLL_Y)); | |
30530 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_From_int((int)wxSYS_VSCROLL_X)); | |
30531 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_X)); | |
30532 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_Y)); | |
30533 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_From_int((int)wxSYS_VTHUMB_Y)); | |
30534 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_From_int((int)wxSYS_CAPTION_Y)); | |
30535 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_From_int((int)wxSYS_MENU_Y)); | |
30536 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_From_int((int)wxSYS_NETWORK_PRESENT)); | |
30537 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_From_int((int)wxSYS_PENWINDOWS_PRESENT)); | |
30538 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_From_int((int)wxSYS_SHOW_SOUNDS)); | |
30539 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_From_int((int)wxSYS_SWAP_BUTTONS)); | |
30540 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_From_int((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
30541 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_From_int((int)wxSYS_CAN_ICONIZE_FRAME)); | |
30542 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_From_int((int)wxSYS_SCREEN_NONE)); | |
30543 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_From_int((int)wxSYS_SCREEN_TINY)); | |
30544 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_From_int((int)wxSYS_SCREEN_PDA)); | |
30545 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_From_int((int)wxSYS_SCREEN_SMALL)); | |
30546 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_From_int((int)wxSYS_SCREEN_DESKTOP)); | |
d55e5bfc | 30547 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
7e63a440 | 30548 | SWIG_addvarlink(SWIG_globals,(char*)"WINDOW_DEFAULT_VARIANT",_wrap_WINDOW_DEFAULT_VARIANT_get, _wrap_WINDOW_DEFAULT_VARIANT_set); |
d55e5bfc RD |
30549 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); |
30550 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
30551 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
c32bde28 RD |
30552 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_From_int((int)wxSHUTDOWN_POWEROFF)); |
30553 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_From_int((int)wxSHUTDOWN_REBOOT)); | |
30554 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_From_int((int)wxTIMER_CONTINUOUS)); | |
30555 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_From_int((int)wxTIMER_ONE_SHOT)); | |
d55e5bfc | 30556 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); |
1a6bba1e RD |
30557 | |
30558 | wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer"); | |
30559 | ||
c32bde28 RD |
30560 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_From_int((int)wxLOG_FatalError)); |
30561 | PyDict_SetItemString(d,"LOG_Error", SWIG_From_int((int)wxLOG_Error)); | |
30562 | PyDict_SetItemString(d,"LOG_Warning", SWIG_From_int((int)wxLOG_Warning)); | |
30563 | PyDict_SetItemString(d,"LOG_Message", SWIG_From_int((int)wxLOG_Message)); | |
30564 | PyDict_SetItemString(d,"LOG_Status", SWIG_From_int((int)wxLOG_Status)); | |
30565 | PyDict_SetItemString(d,"LOG_Info", SWIG_From_int((int)wxLOG_Info)); | |
30566 | PyDict_SetItemString(d,"LOG_Debug", SWIG_From_int((int)wxLOG_Debug)); | |
30567 | PyDict_SetItemString(d,"LOG_Trace", SWIG_From_int((int)wxLOG_Trace)); | |
30568 | PyDict_SetItemString(d,"LOG_Progress", SWIG_From_int((int)wxLOG_Progress)); | |
30569 | PyDict_SetItemString(d,"LOG_User", SWIG_From_int((int)wxLOG_User)); | |
30570 | PyDict_SetItemString(d,"LOG_Max", SWIG_From_int((int)wxLOG_Max)); | |
d55e5bfc RD |
30571 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); |
30572 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); | |
30573 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
30574 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
30575 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
c32bde28 RD |
30576 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_From_int((int)0x0001)); |
30577 | PyDict_SetItemString(d,"TraceMessages", SWIG_From_int((int)0x0002)); | |
30578 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_From_int((int)0x0004)); | |
30579 | PyDict_SetItemString(d,"TraceRefCount", SWIG_From_int((int)0x0008)); | |
30580 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_From_int((int)0x0100)); | |
30581 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_From_int((int)wxPROCESS_DEFAULT)); | |
30582 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_From_int((int)wxPROCESS_REDIRECT)); | |
30583 | PyDict_SetItemString(d,"KILL_OK", SWIG_From_int((int)wxKILL_OK)); | |
30584 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_From_int((int)wxKILL_BAD_SIGNAL)); | |
30585 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_From_int((int)wxKILL_ACCESS_DENIED)); | |
30586 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_From_int((int)wxKILL_NO_PROCESS)); | |
30587 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_From_int((int)wxKILL_ERROR)); | |
30588 | PyDict_SetItemString(d,"SIGNONE", SWIG_From_int((int)wxSIGNONE)); | |
30589 | PyDict_SetItemString(d,"SIGHUP", SWIG_From_int((int)wxSIGHUP)); | |
30590 | PyDict_SetItemString(d,"SIGINT", SWIG_From_int((int)wxSIGINT)); | |
30591 | PyDict_SetItemString(d,"SIGQUIT", SWIG_From_int((int)wxSIGQUIT)); | |
30592 | PyDict_SetItemString(d,"SIGILL", SWIG_From_int((int)wxSIGILL)); | |
30593 | PyDict_SetItemString(d,"SIGTRAP", SWIG_From_int((int)wxSIGTRAP)); | |
30594 | PyDict_SetItemString(d,"SIGABRT", SWIG_From_int((int)wxSIGABRT)); | |
30595 | PyDict_SetItemString(d,"SIGIOT", SWIG_From_int((int)wxSIGIOT)); | |
30596 | PyDict_SetItemString(d,"SIGEMT", SWIG_From_int((int)wxSIGEMT)); | |
30597 | PyDict_SetItemString(d,"SIGFPE", SWIG_From_int((int)wxSIGFPE)); | |
30598 | PyDict_SetItemString(d,"SIGKILL", SWIG_From_int((int)wxSIGKILL)); | |
30599 | PyDict_SetItemString(d,"SIGBUS", SWIG_From_int((int)wxSIGBUS)); | |
30600 | PyDict_SetItemString(d,"SIGSEGV", SWIG_From_int((int)wxSIGSEGV)); | |
30601 | PyDict_SetItemString(d,"SIGSYS", SWIG_From_int((int)wxSIGSYS)); | |
30602 | PyDict_SetItemString(d,"SIGPIPE", SWIG_From_int((int)wxSIGPIPE)); | |
30603 | PyDict_SetItemString(d,"SIGALRM", SWIG_From_int((int)wxSIGALRM)); | |
30604 | PyDict_SetItemString(d,"SIGTERM", SWIG_From_int((int)wxSIGTERM)); | |
d55e5bfc | 30605 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); |
c32bde28 RD |
30606 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_From_int((int)wxEXEC_ASYNC)); |
30607 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_From_int((int)wxEXEC_SYNC)); | |
30608 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_From_int((int)wxEXEC_NOHIDE)); | |
30609 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_From_int((int)wxEXEC_MAKE_GROUP_LEADER)); | |
d55e5bfc RD |
30610 | |
30611 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
30612 | ||
c32bde28 RD |
30613 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_From_int((int)wxJOYSTICK1)); |
30614 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_From_int((int)wxJOYSTICK2)); | |
30615 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_From_int((int)wxJOY_BUTTON_ANY)); | |
30616 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_From_int((int)wxJOY_BUTTON1)); | |
30617 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_From_int((int)wxJOY_BUTTON2)); | |
30618 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_From_int((int)wxJOY_BUTTON3)); | |
30619 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_From_int((int)wxJOY_BUTTON4)); | |
d55e5bfc RD |
30620 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); |
30621 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
30622 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
30623 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
c32bde28 RD |
30624 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_From_int((int)wxSOUND_SYNC)); |
30625 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_From_int((int)wxSOUND_ASYNC)); | |
30626 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_From_int((int)wxSOUND_LOOP)); | |
30627 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_From_int((int)wxMAILCAP_STANDARD)); | |
30628 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_From_int((int)wxMAILCAP_NETSCAPE)); | |
30629 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_From_int((int)wxMAILCAP_KDE)); | |
30630 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_From_int((int)wxMAILCAP_GNOME)); | |
30631 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_From_int((int)wxMAILCAP_ALL)); | |
d55e5bfc RD |
30632 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); |
30633 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
30634 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
30635 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
30636 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
30637 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
30638 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
4cf4100f | 30639 | SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set); |
d55e5bfc RD |
30640 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); |
30641 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
30642 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
30643 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
30644 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
30645 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
30646 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
30647 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
30648 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
30649 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
30650 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
30651 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
30652 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
30653 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
30654 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
30655 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
30656 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
30657 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
30658 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
30659 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
30660 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
30661 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
30662 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
30663 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
30664 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
30665 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
30666 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
30667 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
30668 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
30669 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
30670 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
30671 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
30672 | ||
30673 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
30674 | ||
c32bde28 RD |
30675 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_From_int((int)wxCONFIG_USE_LOCAL_FILE)); |
30676 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_From_int((int)wxCONFIG_USE_GLOBAL_FILE)); | |
30677 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_From_int((int)wxCONFIG_USE_RELATIVE_PATH)); | |
30678 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_From_int((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
30679 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_From_int((int)wxConfigBase::Type_Unknown)); | |
30680 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_From_int((int)wxConfigBase::Type_String)); | |
30681 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_From_int((int)wxConfigBase::Type_Boolean)); | |
30682 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_From_int((int)wxConfigBase::Type_Integer)); | |
30683 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_From_int((int)wxConfigBase::Type_Float)); | |
d55e5bfc RD |
30684 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); |
30685 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
c32bde28 RD |
30686 | PyDict_SetItemString(d,"DateTime_Local", SWIG_From_int((int)wxDateTime::Local)); |
30687 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_From_int((int)wxDateTime::GMT_12)); | |
30688 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_From_int((int)wxDateTime::GMT_11)); | |
30689 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_From_int((int)wxDateTime::GMT_10)); | |
30690 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_From_int((int)wxDateTime::GMT_9)); | |
30691 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_From_int((int)wxDateTime::GMT_8)); | |
30692 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_From_int((int)wxDateTime::GMT_7)); | |
30693 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_From_int((int)wxDateTime::GMT_6)); | |
30694 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_From_int((int)wxDateTime::GMT_5)); | |
30695 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_From_int((int)wxDateTime::GMT_4)); | |
30696 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_From_int((int)wxDateTime::GMT_3)); | |
30697 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_From_int((int)wxDateTime::GMT_2)); | |
30698 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_From_int((int)wxDateTime::GMT_1)); | |
30699 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_From_int((int)wxDateTime::GMT0)); | |
30700 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_From_int((int)wxDateTime::GMT1)); | |
30701 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_From_int((int)wxDateTime::GMT2)); | |
30702 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_From_int((int)wxDateTime::GMT3)); | |
30703 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_From_int((int)wxDateTime::GMT4)); | |
30704 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_From_int((int)wxDateTime::GMT5)); | |
30705 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_From_int((int)wxDateTime::GMT6)); | |
30706 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_From_int((int)wxDateTime::GMT7)); | |
30707 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_From_int((int)wxDateTime::GMT8)); | |
30708 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_From_int((int)wxDateTime::GMT9)); | |
30709 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_From_int((int)wxDateTime::GMT10)); | |
30710 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_From_int((int)wxDateTime::GMT11)); | |
30711 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_From_int((int)wxDateTime::GMT12)); | |
30712 | PyDict_SetItemString(d,"DateTime_WET", SWIG_From_int((int)wxDateTime::WET)); | |
30713 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_From_int((int)wxDateTime::WEST)); | |
30714 | PyDict_SetItemString(d,"DateTime_CET", SWIG_From_int((int)wxDateTime::CET)); | |
30715 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_From_int((int)wxDateTime::CEST)); | |
30716 | PyDict_SetItemString(d,"DateTime_EET", SWIG_From_int((int)wxDateTime::EET)); | |
30717 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_From_int((int)wxDateTime::EEST)); | |
30718 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_From_int((int)wxDateTime::MSK)); | |
30719 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_From_int((int)wxDateTime::MSD)); | |
30720 | PyDict_SetItemString(d,"DateTime_AST", SWIG_From_int((int)wxDateTime::AST)); | |
30721 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_From_int((int)wxDateTime::ADT)); | |
30722 | PyDict_SetItemString(d,"DateTime_EST", SWIG_From_int((int)wxDateTime::EST)); | |
30723 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_From_int((int)wxDateTime::EDT)); | |
30724 | PyDict_SetItemString(d,"DateTime_CST", SWIG_From_int((int)wxDateTime::CST)); | |
30725 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_From_int((int)wxDateTime::CDT)); | |
30726 | PyDict_SetItemString(d,"DateTime_MST", SWIG_From_int((int)wxDateTime::MST)); | |
30727 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_From_int((int)wxDateTime::MDT)); | |
30728 | PyDict_SetItemString(d,"DateTime_PST", SWIG_From_int((int)wxDateTime::PST)); | |
30729 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_From_int((int)wxDateTime::PDT)); | |
30730 | PyDict_SetItemString(d,"DateTime_HST", SWIG_From_int((int)wxDateTime::HST)); | |
30731 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_From_int((int)wxDateTime::AKST)); | |
30732 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_From_int((int)wxDateTime::AKDT)); | |
30733 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_From_int((int)wxDateTime::A_WST)); | |
30734 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_From_int((int)wxDateTime::A_CST)); | |
30735 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_From_int((int)wxDateTime::A_EST)); | |
30736 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_From_int((int)wxDateTime::A_ESST)); | |
30737 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_From_int((int)wxDateTime::UTC)); | |
30738 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_From_int((int)wxDateTime::Gregorian)); | |
30739 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_From_int((int)wxDateTime::Julian)); | |
30740 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_From_int((int)wxDateTime::Gr_Unknown)); | |
30741 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_From_int((int)wxDateTime::Gr_Standard)); | |
30742 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_From_int((int)wxDateTime::Gr_Alaska)); | |
30743 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_From_int((int)wxDateTime::Gr_Albania)); | |
30744 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_From_int((int)wxDateTime::Gr_Austria)); | |
30745 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_From_int((int)wxDateTime::Gr_Austria_Brixen)); | |
30746 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_From_int((int)wxDateTime::Gr_Austria_Salzburg)); | |
30747 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_From_int((int)wxDateTime::Gr_Austria_Tyrol)); | |
30748 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_From_int((int)wxDateTime::Gr_Austria_Carinthia)); | |
30749 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_From_int((int)wxDateTime::Gr_Austria_Styria)); | |
30750 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_From_int((int)wxDateTime::Gr_Belgium)); | |
30751 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_From_int((int)wxDateTime::Gr_Bulgaria)); | |
30752 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_1)); | |
30753 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_2)); | |
30754 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_3)); | |
30755 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_From_int((int)wxDateTime::Gr_Canada)); | |
30756 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_From_int((int)wxDateTime::Gr_China)); | |
30757 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_From_int((int)wxDateTime::Gr_China_1)); | |
30758 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_From_int((int)wxDateTime::Gr_China_2)); | |
30759 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_From_int((int)wxDateTime::Gr_Czechoslovakia)); | |
30760 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_From_int((int)wxDateTime::Gr_Denmark)); | |
30761 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_From_int((int)wxDateTime::Gr_Egypt)); | |
30762 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_From_int((int)wxDateTime::Gr_Estonia)); | |
30763 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_From_int((int)wxDateTime::Gr_Finland)); | |
30764 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_From_int((int)wxDateTime::Gr_France)); | |
30765 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_From_int((int)wxDateTime::Gr_France_Alsace)); | |
30766 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_From_int((int)wxDateTime::Gr_France_Lorraine)); | |
30767 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_From_int((int)wxDateTime::Gr_France_Strasbourg)); | |
30768 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_From_int((int)wxDateTime::Gr_Germany)); | |
30769 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_From_int((int)wxDateTime::Gr_Germany_Catholic)); | |
30770 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_From_int((int)wxDateTime::Gr_Germany_Prussia)); | |
30771 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_From_int((int)wxDateTime::Gr_Germany_Protestant)); | |
30772 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_From_int((int)wxDateTime::Gr_GreatBritain)); | |
30773 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_From_int((int)wxDateTime::Gr_Greece)); | |
30774 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_From_int((int)wxDateTime::Gr_Hungary)); | |
30775 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_From_int((int)wxDateTime::Gr_Ireland)); | |
30776 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_From_int((int)wxDateTime::Gr_Italy)); | |
30777 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_From_int((int)wxDateTime::Gr_Japan)); | |
30778 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_From_int((int)wxDateTime::Gr_Japan_1)); | |
30779 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_From_int((int)wxDateTime::Gr_Japan_2)); | |
30780 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_From_int((int)wxDateTime::Gr_Japan_3)); | |
30781 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_From_int((int)wxDateTime::Gr_Latvia)); | |
30782 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_From_int((int)wxDateTime::Gr_Lithuania)); | |
30783 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_From_int((int)wxDateTime::Gr_Luxemburg)); | |
30784 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_From_int((int)wxDateTime::Gr_Netherlands)); | |
30785 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Groningen)); | |
30786 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
30787 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
30788 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Friesland)); | |
30789 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_From_int((int)wxDateTime::Gr_Norway)); | |
30790 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_From_int((int)wxDateTime::Gr_Poland)); | |
30791 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_From_int((int)wxDateTime::Gr_Portugal)); | |
30792 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_From_int((int)wxDateTime::Gr_Romania)); | |
30793 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_From_int((int)wxDateTime::Gr_Russia)); | |
30794 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_From_int((int)wxDateTime::Gr_Scotland)); | |
30795 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_From_int((int)wxDateTime::Gr_Spain)); | |
30796 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_From_int((int)wxDateTime::Gr_Sweden)); | |
30797 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_From_int((int)wxDateTime::Gr_Switzerland)); | |
30798 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Catholic)); | |
30799 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Protestant)); | |
30800 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_From_int((int)wxDateTime::Gr_Turkey)); | |
30801 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_From_int((int)wxDateTime::Gr_USA)); | |
30802 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_From_int((int)wxDateTime::Gr_Wales)); | |
30803 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_From_int((int)wxDateTime::Gr_Yugoslavia)); | |
30804 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_From_int((int)wxDateTime::Country_Unknown)); | |
30805 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_From_int((int)wxDateTime::Country_Default)); | |
30806 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_From_int((int)wxDateTime::Country_WesternEurope_Start)); | |
30807 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_From_int((int)wxDateTime::Country_EEC)); | |
30808 | PyDict_SetItemString(d,"DateTime_France", SWIG_From_int((int)wxDateTime::France)); | |
30809 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_From_int((int)wxDateTime::Germany)); | |
30810 | PyDict_SetItemString(d,"DateTime_UK", SWIG_From_int((int)wxDateTime::UK)); | |
30811 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_From_int((int)wxDateTime::Country_WesternEurope_End)); | |
30812 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_From_int((int)wxDateTime::Russia)); | |
30813 | PyDict_SetItemString(d,"DateTime_USA", SWIG_From_int((int)wxDateTime::USA)); | |
30814 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_From_int((int)wxDateTime::Jan)); | |
30815 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_From_int((int)wxDateTime::Feb)); | |
30816 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_From_int((int)wxDateTime::Mar)); | |
30817 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_From_int((int)wxDateTime::Apr)); | |
30818 | PyDict_SetItemString(d,"DateTime_May", SWIG_From_int((int)wxDateTime::May)); | |
30819 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_From_int((int)wxDateTime::Jun)); | |
30820 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_From_int((int)wxDateTime::Jul)); | |
30821 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_From_int((int)wxDateTime::Aug)); | |
30822 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_From_int((int)wxDateTime::Sep)); | |
30823 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_From_int((int)wxDateTime::Oct)); | |
30824 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_From_int((int)wxDateTime::Nov)); | |
30825 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_From_int((int)wxDateTime::Dec)); | |
30826 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_From_int((int)wxDateTime::Inv_Month)); | |
30827 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_From_int((int)wxDateTime::Sun)); | |
30828 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_From_int((int)wxDateTime::Mon)); | |
30829 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_From_int((int)wxDateTime::Tue)); | |
30830 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_From_int((int)wxDateTime::Wed)); | |
30831 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_From_int((int)wxDateTime::Thu)); | |
30832 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_From_int((int)wxDateTime::Fri)); | |
30833 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_From_int((int)wxDateTime::Sat)); | |
30834 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_From_int((int)wxDateTime::Inv_WeekDay)); | |
30835 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_From_int((int)wxDateTime::Inv_Year)); | |
30836 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_From_int((int)wxDateTime::Name_Full)); | |
30837 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_From_int((int)wxDateTime::Name_Abbr)); | |
30838 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_From_int((int)wxDateTime::Default_First)); | |
30839 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_From_int((int)wxDateTime::Monday_First)); | |
30840 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_From_int((int)wxDateTime::Sunday_First)); | |
d55e5bfc | 30841 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); |
c32bde28 RD |
30842 | PyDict_SetItemString(d,"DF_INVALID", SWIG_From_int((int)wxDF_INVALID)); |
30843 | PyDict_SetItemString(d,"DF_TEXT", SWIG_From_int((int)wxDF_TEXT)); | |
30844 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_From_int((int)wxDF_BITMAP)); | |
30845 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_From_int((int)wxDF_METAFILE)); | |
30846 | PyDict_SetItemString(d,"DF_SYLK", SWIG_From_int((int)wxDF_SYLK)); | |
30847 | PyDict_SetItemString(d,"DF_DIF", SWIG_From_int((int)wxDF_DIF)); | |
30848 | PyDict_SetItemString(d,"DF_TIFF", SWIG_From_int((int)wxDF_TIFF)); | |
30849 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_From_int((int)wxDF_OEMTEXT)); | |
30850 | PyDict_SetItemString(d,"DF_DIB", SWIG_From_int((int)wxDF_DIB)); | |
30851 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_From_int((int)wxDF_PALETTE)); | |
30852 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_From_int((int)wxDF_PENDATA)); | |
30853 | PyDict_SetItemString(d,"DF_RIFF", SWIG_From_int((int)wxDF_RIFF)); | |
30854 | PyDict_SetItemString(d,"DF_WAVE", SWIG_From_int((int)wxDF_WAVE)); | |
30855 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_From_int((int)wxDF_UNICODETEXT)); | |
30856 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_From_int((int)wxDF_ENHMETAFILE)); | |
30857 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_From_int((int)wxDF_FILENAME)); | |
30858 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_From_int((int)wxDF_LOCALE)); | |
30859 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_From_int((int)wxDF_PRIVATE)); | |
30860 | PyDict_SetItemString(d,"DF_HTML", SWIG_From_int((int)wxDF_HTML)); | |
30861 | PyDict_SetItemString(d,"DF_MAX", SWIG_From_int((int)wxDF_MAX)); | |
d55e5bfc | 30862 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); |
c32bde28 RD |
30863 | PyDict_SetItemString(d,"DataObject_Get", SWIG_From_int((int)wxDataObject::Get)); |
30864 | PyDict_SetItemString(d,"DataObject_Set", SWIG_From_int((int)wxDataObject::Set)); | |
30865 | PyDict_SetItemString(d,"DataObject_Both", SWIG_From_int((int)wxDataObject::Both)); | |
30866 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_From_int((int)wxDrag_CopyOnly)); | |
30867 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_From_int((int)wxDrag_AllowMove)); | |
30868 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_From_int((int)wxDrag_DefaultMove)); | |
30869 | PyDict_SetItemString(d,"DragError", SWIG_From_int((int)wxDragError)); | |
30870 | PyDict_SetItemString(d,"DragNone", SWIG_From_int((int)wxDragNone)); | |
30871 | PyDict_SetItemString(d,"DragCopy", SWIG_From_int((int)wxDragCopy)); | |
30872 | PyDict_SetItemString(d,"DragMove", SWIG_From_int((int)wxDragMove)); | |
30873 | PyDict_SetItemString(d,"DragLink", SWIG_From_int((int)wxDragLink)); | |
30874 | PyDict_SetItemString(d,"DragCancel", SWIG_From_int((int)wxDragCancel)); | |
d55e5bfc RD |
30875 | |
30876 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
30877 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
30878 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
30879 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
30880 | ||
d55e5bfc RD |
30881 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); |
30882 | } | |
30883 |