]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
83448d71 | 3 | * Version 1.3.22 |
d14a1e28 RD |
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 | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
9fd4be55 RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
f0983263 RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
f0983263 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
f0983263 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
f0983263 | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
f0983263 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
f0983263 | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
f0983263 RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
126 | /*********************************************************************** | |
127 | * pyrun.swg for wxPython | |
128 | * | |
129 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
130 | * but not the runtime functions themselves. This helps keep the | |
131 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
132 | * anyway. | |
133 | * | |
134 | ************************************************************************/ | |
135 | ||
d14a1e28 RD |
136 | #include "Python.h" |
137 | ||
138 | #ifdef __cplusplus | |
139 | extern "C" { | |
140 | #endif | |
141 | ||
142 | #define SWIG_PY_INT 1 | |
143 | #define SWIG_PY_FLOAT 2 | |
144 | #define SWIG_PY_STRING 3 | |
145 | #define SWIG_PY_POINTER 4 | |
146 | #define SWIG_PY_BINARY 5 | |
147 | ||
148 | /* Flags for pointer conversion */ | |
149 | ||
150 | #define SWIG_POINTER_EXCEPTION 0x1 | |
151 | #define SWIG_POINTER_DISOWN 0x2 | |
152 | ||
153 | /* Exception handling in wrappers */ | |
154 | #define SWIG_fail goto fail | |
155 | ||
156 | /* Constant information structure */ | |
157 | typedef struct swig_const_info { | |
158 | int type; | |
159 | char *name; | |
160 | long lvalue; | |
161 | double dvalue; | |
162 | void *pvalue; | |
163 | swig_type_info **ptype; | |
164 | } swig_const_info; | |
165 | ||
d14a1e28 RD |
166 | /* Common SWIG API */ |
167 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
168 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
169 | #define SWIG_NewPointerObj(p, type, flags) \ | |
170 | SWIG_Python_NewPointerObj(p, type, flags) | |
171 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
172 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
83448d71 | 173 | |
d14a1e28 RD |
174 | /* Python-specific SWIG API */ |
175 | #define SWIG_newvarlink() \ | |
176 | SWIG_Python_newvarlink() | |
177 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
178 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
179 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
180 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
181 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
182 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
183 | #define SWIG_InstallConstants(d, constants) \ | |
184 | SWIG_Python_InstallConstants(d, constants) | |
185 | ||
8edf1c75 | 186 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 187 | |
f0983263 RD |
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 196 | |
d14a1e28 RD |
197 | |
198 | /* Contract support */ | |
199 | ||
423f194a | 200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 201 | |
d14a1e28 RD |
202 | #ifdef __cplusplus |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
d14a1e28 RD |
207 | /* -------- TYPES TABLE (BEGIN) -------- */ |
208 | ||
209 | #define SWIGTYPE_p_wxLogChain swig_types[0] | |
210 | #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1] | |
83448d71 RD |
211 | #define SWIGTYPE_p_wxMetafile swig_types[2] |
212 | #define SWIGTYPE_p_wxFileHistory swig_types[3] | |
213 | #define SWIGTYPE_p_wxLog swig_types[4] | |
214 | #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5] | |
215 | #define SWIGTYPE_p_wxMenu swig_types[6] | |
216 | #define SWIGTYPE_p_wxEvent swig_types[7] | |
217 | #define SWIGTYPE_p_wxConfigBase swig_types[8] | |
fe763115 RD |
218 | #define SWIGTYPE_p_wxDisplay swig_types[9] |
219 | #define SWIGTYPE_p_wxFileType swig_types[10] | |
220 | #define SWIGTYPE_p_wxLogGui swig_types[11] | |
221 | #define SWIGTYPE_p_wxFont swig_types[12] | |
222 | #define SWIGTYPE_p_wxDataFormat swig_types[13] | |
223 | #define SWIGTYPE_p_wxTimerEvent swig_types[14] | |
224 | #define SWIGTYPE_p_wxCaret swig_types[15] | |
225 | #define SWIGTYPE_p_int swig_types[16] | |
226 | #define SWIGTYPE_p_wxSize swig_types[17] | |
227 | #define SWIGTYPE_p_wxClipboard swig_types[18] | |
228 | #define SWIGTYPE_p_wxStopWatch swig_types[19] | |
229 | #define SWIGTYPE_p_wxDC swig_types[20] | |
230 | #define SWIGTYPE_p_wxClipboardLocker swig_types[21] | |
231 | #define SWIGTYPE_p_wxIcon swig_types[22] | |
232 | #define SWIGTYPE_p_wxLogStderr swig_types[23] | |
233 | #define SWIGTYPE_p_wxLogTextCtrl swig_types[24] | |
234 | #define SWIGTYPE_p_wxTextCtrl swig_types[25] | |
235 | #define SWIGTYPE_p_wxBusyCursor swig_types[26] | |
236 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[27] | |
237 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[28] | |
238 | #define SWIGTYPE_p_wxTextDataObject swig_types[29] | |
239 | #define SWIGTYPE_p_wxDataObject swig_types[30] | |
240 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[31] | |
241 | #define SWIGTYPE_p_wxFileDataObject swig_types[32] | |
242 | #define SWIGTYPE_p_wxCustomDataObject swig_types[33] | |
243 | #define SWIGTYPE_p_wxURLDataObject swig_types[34] | |
244 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[35] | |
245 | #define SWIGTYPE_p_wxSound swig_types[36] | |
246 | #define SWIGTYPE_p_wxTimerRunner swig_types[37] | |
247 | #define SWIGTYPE_p_wxLogWindow swig_types[38] | |
248 | #define SWIGTYPE_p_wxTimeSpan swig_types[39] | |
249 | #define SWIGTYPE_p_wxArrayString swig_types[40] | |
250 | #define SWIGTYPE_p_wxWindowDisabler swig_types[41] | |
251 | #define SWIGTYPE_p_wxToolTip swig_types[42] | |
252 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[43] | |
253 | #define SWIGTYPE_p_wxFileConfig swig_types[44] | |
254 | #define SWIGTYPE_p_wxSystemSettings swig_types[45] | |
255 | #define SWIGTYPE_p_wxVideoMode swig_types[46] | |
256 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[47] | |
257 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[48] | |
258 | #define SWIGTYPE_p_wxEvtHandler swig_types[49] | |
259 | #define SWIGTYPE_p_wxRect swig_types[50] | |
260 | #define SWIGTYPE_p_char swig_types[51] | |
261 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[52] | |
262 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[53] | |
263 | #define SWIGTYPE_p_wxFrame swig_types[54] | |
264 | #define SWIGTYPE_p_wxTimer swig_types[55] | |
265 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[56] | |
266 | #define SWIGTYPE_p_wxPyArtProvider swig_types[57] | |
267 | #define SWIGTYPE_p_wxPyTipProvider swig_types[58] | |
268 | #define SWIGTYPE_p_wxTipProvider swig_types[59] | |
269 | #define SWIGTYPE_p_wxJoystick swig_types[60] | |
270 | #define SWIGTYPE_p_wxSystemOptions swig_types[61] | |
271 | #define SWIGTYPE_p_wxPoint swig_types[62] | |
272 | #define SWIGTYPE_p_wxJoystickEvent swig_types[63] | |
273 | #define SWIGTYPE_p_wxCursor swig_types[64] | |
274 | #define SWIGTYPE_p_wxObject swig_types[65] | |
275 | #define SWIGTYPE_p_wxOutputStream swig_types[66] | |
276 | #define SWIGTYPE_p_wxDateTime swig_types[67] | |
277 | #define SWIGTYPE_p_wxPyDropSource swig_types[68] | |
278 | #define SWIGTYPE_p_wxWindow swig_types[69] | |
279 | #define SWIGTYPE_p_wxString swig_types[70] | |
280 | #define SWIGTYPE_p_wxPyProcess swig_types[71] | |
281 | #define SWIGTYPE_p_wxBitmap swig_types[72] | |
282 | #define SWIGTYPE_p_wxConfig swig_types[73] | |
283 | #define SWIGTYPE_p_wxChar swig_types[74] | |
284 | #define SWIGTYPE_p_wxBusyInfo swig_types[75] | |
285 | #define SWIGTYPE_p_wxPyDropTarget swig_types[76] | |
286 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[77] | |
287 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[78] | |
288 | #define SWIGTYPE_p_wxProcessEvent swig_types[79] | |
289 | #define SWIGTYPE_p_wxPyLog swig_types[80] | |
290 | #define SWIGTYPE_p_wxLogNull swig_types[81] | |
291 | #define SWIGTYPE_p_wxColour swig_types[82] | |
292 | #define SWIGTYPE_p_wxByte swig_types[83] | |
293 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[84] | |
294 | #define SWIGTYPE_p_wxPyTimer swig_types[85] | |
295 | #define SWIGTYPE_p_wxDateSpan swig_types[86] | |
296 | static swig_type_info *swig_types[88]; | |
d14a1e28 RD |
297 | |
298 | /* -------- TYPES TABLE (END) -------- */ | |
299 | ||
300 | ||
301 | /*----------------------------------------------- | |
302 | @(target):= _misc.so | |
303 | ------------------------------------------------*/ | |
304 | #define SWIG_init init_misc | |
305 | ||
306 | #define SWIG_name "_misc" | |
307 | ||
2f4c0a16 | 308 | /* Auxiliar swig macros */ |
8edf1c75 | 309 | |
8edf1c75 | 310 | #ifdef __cplusplus |
2f4c0a16 | 311 | #define SWIGSTATICINLINE(a) static inline a |
8edf1c75 | 312 | #define SWIGSTATIC(a) static a |
2f4c0a16 RD |
313 | #define swig_new_array(type, size) (new type[(size)]) |
314 | #define swig_delete_array(cptr) delete[] cptr | |
315 | #define swig_const_cast(type,a) const_cast<type>(a) | |
316 | #define swig_static_cast(type,a) static_cast<type>(a) | |
317 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
8edf1c75 | 318 | |
8edf1c75 | 319 | #ifdef HAVE_NUMERIC_CAST |
2f4c0a16 | 320 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) |
8edf1c75 | 321 | #else |
2f4c0a16 | 322 | #define swig_numeric_cast(type,a) static_cast<type>(a) |
8edf1c75 RD |
323 | #endif |
324 | ||
2f4c0a16 RD |
325 | #else /* C case */ |
326 | ||
327 | #define SWIGSTATICINLINE(a) static a | |
328 | #define SWIGSTATIC(a) static a | |
329 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
330 | #define swig_delete_array(cptr) free((char*)cptr) | |
331 | #define swig_const_cast(type,a) (type)(a) | |
332 | #define swig_static_cast(type,a) (type)(a) | |
333 | #define swig_reinterpret_cast(type,a) (type)(a) | |
334 | #define swig_numeric_cast(type,a) (type)(a) | |
335 | ||
336 | #endif /* __cplusplus */ | |
8edf1c75 RD |
337 | |
338 | ||
2f4c0a16 RD |
339 | #define SWIG_FromSignedChar PyInt_FromLong |
340 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
341 | #define SWIG_FromShort PyInt_FromLong | |
342 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
343 | #define SWIG_FromInt PyInt_FromLong | |
344 | #define SWIG_FromLong PyInt_FromLong | |
345 | #define SWIG_FromFloat PyFloat_FromDouble | |
346 | #define SWIG_FromDouble PyFloat_FromDouble | |
347 | #define SWIG_FromFloat PyFloat_FromDouble | |
348 | #define SWIG_FromDouble PyFloat_FromDouble | |
8edf1c75 RD |
349 | |
350 | ||
d14a1e28 RD |
351 | #include "wx/wxPython/wxPython.h" |
352 | #include "wx/wxPython/pyclasses.h" | |
353 | #include "wx/wxPython/pyistream.h" | |
354 | ||
d14a1e28 | 355 | |
d03fd34d | 356 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 RD |
357 | |
358 | ||
8edf1c75 | 359 | |
2f4c0a16 RD |
360 | #include <limits.h> |
361 | ||
362 | ||
363 | SWIGSTATICINLINE(long) | |
364 | SWIG_CheckLongInRange(long value, const char* type, | |
365 | long min_value, long max_value) | |
366 | { | |
367 | if (!PyErr_Occurred()) { | |
368 | if (value < min_value) { | |
369 | PyObject *err = | |
370 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
371 | value, type, min_value); | |
372 | ||
373 | PyErr_SetObject(PyExc_OverflowError, err); | |
374 | Py_DECREF(err); | |
375 | } else if (value > max_value) { | |
376 | PyObject *err = | |
377 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
378 | value, type, max_value); | |
379 | PyErr_SetObject(PyExc_OverflowError, err); | |
380 | Py_DECREF(err); | |
381 | } | |
382 | } | |
383 | return value; | |
384 | } | |
385 | ||
386 | ||
387 | SWIGSTATICINLINE(long) | |
388 | SWIG_AsLong(PyObject * obj) | |
389 | { | |
390 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
391 | } | |
392 | ||
393 | ||
394 | #if INT_MAX != LONG_MAX | |
395 | SWIGSTATICINLINE(int) | |
396 | SWIG_AsInt(PyObject *obj) | |
8edf1c75 | 397 | { |
2f4c0a16 RD |
398 | return swig_numeric_cast(int, |
399 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
400 | "int", INT_MIN, INT_MAX)); | |
401 | } | |
402 | #else | |
403 | #define SWIG_AsInt SWIG_AsLong | |
404 | #endif | |
405 | ||
406 | ||
407 | SWIGSTATICINLINE(int) | |
408 | SWIG_CheckInt(PyObject* obj) | |
409 | { | |
410 | SWIG_AsInt(obj); | |
411 | if (PyErr_Occurred()) { | |
412 | PyErr_Clear(); | |
413 | return 0; | |
414 | } else { | |
415 | return 1; | |
416 | } | |
8edf1c75 RD |
417 | } |
418 | ||
d03fd34d RD |
419 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
420 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
421 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
d14a1e28 | 422 | |
2f4c0a16 RD |
423 | SWIGSTATICINLINE(int) |
424 | SWIG_CheckLong(PyObject* obj) | |
8edf1c75 | 425 | { |
2f4c0a16 RD |
426 | SWIG_AsLong(obj); |
427 | if (PyErr_Occurred()) { | |
428 | PyErr_Clear(); | |
429 | return 0; | |
430 | } else { | |
431 | return 1; | |
432 | } | |
8edf1c75 RD |
433 | } |
434 | ||
435 | ||
2f4c0a16 RD |
436 | SWIGSTATICINLINE(bool) |
437 | SWIG_AsBool(PyObject *obj) | |
8edf1c75 RD |
438 | { |
439 | return PyObject_IsTrue(obj) ? true : false; | |
440 | } | |
441 | ||
442 | ||
2f4c0a16 RD |
443 | SWIGSTATICINLINE(int) |
444 | SWIG_CheckBool(PyObject* obj) | |
445 | { | |
446 | SWIG_AsBool(obj); | |
447 | if (PyErr_Occurred()) { | |
448 | PyErr_Clear(); | |
449 | return 0; | |
450 | } else { | |
451 | return 1; | |
452 | } | |
453 | } | |
454 | ||
455 | ||
d14a1e28 RD |
456 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
457 | PyObject* o2; | |
458 | PyObject* o3; | |
459 | ||
460 | if (!target) { | |
461 | target = o; | |
462 | } else if (target == Py_None) { | |
463 | Py_DECREF(Py_None); | |
464 | target = o; | |
465 | } else { | |
466 | if (!PyTuple_Check(target)) { | |
467 | o2 = target; | |
468 | target = PyTuple_New(1); | |
469 | PyTuple_SetItem(target, 0, o2); | |
470 | } | |
471 | o3 = PyTuple_New(1); | |
472 | PyTuple_SetItem(o3, 0, o); | |
473 | ||
474 | o2 = target; | |
475 | target = PySequence_Concat(o2, o3); | |
476 | Py_DECREF(o2); | |
477 | Py_DECREF(o3); | |
478 | } | |
479 | return target; | |
480 | } | |
481 | ||
482 | ||
2f4c0a16 RD |
483 | SWIGSTATICINLINE(unsigned long) |
484 | SWIG_AsUnsignedLong(PyObject * obj) | |
485 | { | |
486 | if (PyLong_Check(obj)) { | |
487 | return PyLong_AsUnsignedLong(obj); | |
488 | } else { | |
489 | long i = PyInt_AsLong(obj); | |
490 | if ( !PyErr_Occurred() && (i < 0)) { | |
491 | PyErr_SetString(PyExc_TypeError, "negative value for unsigned type"); | |
492 | } | |
493 | return i; | |
494 | } | |
495 | } | |
496 | ||
497 | ||
498 | SWIGSTATICINLINE(int) | |
499 | SWIG_CheckUnsignedLong(PyObject* obj) | |
500 | { | |
501 | SWIG_AsUnsignedLong(obj); | |
502 | if (PyErr_Occurred()) { | |
503 | PyErr_Clear(); | |
504 | return 0; | |
505 | } else { | |
506 | return 1; | |
507 | } | |
508 | } | |
509 | ||
510 | ||
511 | SWIGSTATICINLINE(PyObject* ) | |
512 | SWIG_FromUnsignedLong(unsigned long value) | |
8edf1c75 | 513 | { |
2f4c0a16 RD |
514 | return (value > LONG_MAX) ? |
515 | PyLong_FromUnsignedLong(value) | |
516 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
8edf1c75 RD |
517 | } |
518 | ||
519 | ||
d14a1e28 RD |
520 | bool wxThread_IsMain() { |
521 | #ifdef WXP_WITH_THREAD | |
522 | return wxThread::IsMain(); | |
523 | #else | |
423f194a | 524 | return True; |
d14a1e28 RD |
525 | #endif |
526 | } | |
527 | ||
528 | ||
529 | int wxCaret_GetBlinkTime() { | |
530 | return wxCaret::GetBlinkTime(); | |
531 | } | |
532 | ||
533 | void wxCaret_SetBlinkTime(int milliseconds) { | |
534 | wxCaret::SetBlinkTime(milliseconds); | |
535 | } | |
536 | ||
537 | ||
538 | #include <wx/snglinst.h> | |
539 | ||
540 | ||
541 | #ifdef __WXMSW__ | |
542 | #include <wx/msw/private.h> | |
543 | #include <wx/dynload.h> | |
544 | #endif | |
545 | ||
546 | ||
547 | ||
548 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
549 | { | |
550 | #ifdef __WXMSW__ | |
551 | ||
552 | switch (method) | |
553 | { | |
554 | case 1: | |
555 | // This one only partially works. Appears to be an undocumented | |
556 | // "standard" convention that not all widgets adhear to. For | |
557 | // example, for some widgets backgrounds or non-client areas may | |
558 | // not be painted. | |
559 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
560 | break; | |
561 | ||
562 | case 2: | |
563 | // This one works much better, except for on XP. On Win2k nearly | |
564 | // all widgets and their children are captured correctly[**]. On | |
565 | // XP with Themes activated most native widgets draw only | |
566 | // partially, if at all. Without themes it works just like on | |
567 | // Win2k. | |
568 | // | |
569 | // ** For example the radio buttons in a wxRadioBox are not its | |
570 | // children by default, but you can capture it via the panel | |
571 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
572 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
573 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
574 | PRF_ERASEBKGND | PRF_OWNED ); | |
575 | break; | |
576 | ||
577 | case 3: | |
578 | // This one is only defined in the latest SDK and is only | |
579 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
580 | // so I expect that it will work similar to the above. Since it | |
581 | // is avaialble only on XP, it can't be compiled like this and | |
582 | // will have to be loaded dynamically. | |
583 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
584 | ||
585 | // fall through | |
586 | ||
587 | case 4: | |
588 | // Use PrintWindow if available, or fallback to WM_PRINT | |
589 | // otherwise. Unfortunately using PrintWindow is even worse than | |
590 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
591 | // at all, with or without Themes. | |
592 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
423f194a | 593 | static bool s_triedToLoad = False; |
d14a1e28 RD |
594 | static PrintWindow_t pfnPrintWindow = NULL; |
595 | if ( !s_triedToLoad ) | |
596 | { | |
597 | ||
423f194a | 598 | s_triedToLoad = True; |
d14a1e28 RD |
599 | wxDynamicLibrary dllUser32(_T("user32.dll")); |
600 | if ( dllUser32.IsLoaded() ) | |
601 | { | |
602 | wxLogNull nolog; // Don't report errors here | |
603 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
604 | } | |
605 | } | |
606 | if (pfnPrintWindow) | |
607 | { | |
608 | printf("Using PrintWindow\n"); | |
609 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
610 | } | |
611 | else | |
612 | { | |
613 | printf("Using WM_PRINT\n"); | |
614 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
615 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
616 | } | |
617 | } | |
618 | #endif | |
619 | } | |
620 | ||
621 | ||
622 | ||
623 | #include <wx/tipdlg.h> | |
624 | ||
625 | ||
626 | class wxPyTipProvider : public wxTipProvider { | |
627 | public: | |
628 | wxPyTipProvider(size_t currentTip) | |
629 | : wxTipProvider(currentTip) {} | |
630 | ||
631 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
632 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
633 | PYPRIVATE; | |
634 | }; | |
635 | ||
636 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
637 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
638 | ||
639 | ||
fe763115 RD |
640 | //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); |
641 | ||
642 | void wxPyTimer::Notify() { | |
643 | bool found; | |
644 | wxPyBeginBlockThreads(); | |
645 | if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) | |
646 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); | |
647 | wxPyEndBlockThreads(); | |
648 | if (! found) | |
649 | wxTimer::Notify(); | |
650 | } | |
651 | void wxPyTimer::base_Notify() { | |
652 | wxTimer::Notify(); | |
653 | } | |
654 | ||
d14a1e28 | 655 | |
8edf1c75 | 656 | |
2f4c0a16 RD |
657 | SWIGSTATICINLINE(PyObject *) |
658 | SWIG_FromCharPtr(const char* cptr) | |
659 | { | |
660 | size_t size = cptr ? strlen(cptr) : 0; | |
661 | if (cptr) { | |
662 | if (size > INT_MAX) { | |
663 | return SWIG_NewPointerObj(swig_const_cast(char*,cptr), | |
664 | SWIG_TypeQuery("char *"), 0); | |
665 | } else { | |
666 | return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size)); | |
667 | } | |
668 | } else { | |
669 | Py_INCREF(Py_None); | |
670 | return Py_None; | |
671 | } | |
672 | } | |
673 | ||
674 | ||
675 | SWIGSTATICINLINE(unsigned long) | |
676 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
677 | unsigned long max_value) | |
678 | { | |
679 | if (!PyErr_Occurred()) { | |
680 | if (value > max_value) { | |
681 | PyObject *err = | |
682 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
683 | value, type, max_value); | |
684 | PyErr_SetObject(PyExc_OverflowError, err); | |
685 | Py_DECREF(err); | |
686 | } | |
687 | } | |
688 | return value; | |
689 | } | |
690 | ||
691 | ||
692 | #if UINT_MAX != ULONG_MAX | |
693 | SWIGSTATICINLINE(unsigned int) | |
694 | SWIG_AsUnsignedInt(PyObject *obj) | |
8edf1c75 | 695 | { |
2f4c0a16 RD |
696 | return swig_numeric_cast(unsigned int, |
697 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
698 | "unsigned int", UINT_MAX)); | |
699 | } | |
700 | #else | |
701 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
702 | #endif | |
703 | ||
704 | ||
705 | SWIGSTATICINLINE(int) | |
706 | SWIG_CheckUnsignedInt(PyObject* obj) | |
707 | { | |
708 | SWIG_AsUnsignedInt(obj); | |
709 | if (PyErr_Occurred()) { | |
710 | PyErr_Clear(); | |
711 | return 0; | |
712 | } else { | |
713 | return 1; | |
714 | } | |
8edf1c75 RD |
715 | } |
716 | ||
d14a1e28 RD |
717 | wxString Log_TimeStamp(){ |
718 | wxString msg; | |
719 | wxLog::TimeStamp(&msg); | |
720 | return msg; | |
721 | } | |
722 | void wxLog_Destroy(wxLog *self){ delete self; } | |
723 | ||
724 | // A wxLog class that can be derived from in wxPython | |
725 | class wxPyLog : public wxLog { | |
726 | public: | |
727 | wxPyLog() : wxLog() {} | |
728 | ||
729 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
730 | bool found; | |
731 | wxPyBeginBlockThreads(); | |
732 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
733 | PyObject* s = wx2PyString(szString); | |
734 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
735 | Py_DECREF(s); | |
736 | } | |
737 | wxPyEndBlockThreads(); | |
738 | if (! found) | |
739 | wxLog::DoLog(level, szString, t); | |
740 | } | |
741 | ||
742 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
743 | bool found; | |
744 | wxPyBeginBlockThreads(); | |
745 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
746 | PyObject* s = wx2PyString(szString); | |
747 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
748 | Py_DECREF(s); | |
749 | } | |
750 | wxPyEndBlockThreads(); | |
751 | if (! found) | |
752 | wxLog::DoLogString(szString, t); | |
753 | } | |
754 | ||
755 | PYPRIVATE; | |
756 | }; | |
757 | ||
758 | ||
759 | ||
760 | ||
761 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
762 | ||
763 | ||
764 | #include <wx/joystick.h> | |
765 | ||
766 | ||
767 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
768 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
769 | class wxJoystick : public wxObject { | |
770 | public: | |
771 | wxJoystick(int joystick = wxJOYSTICK1) { | |
772 | wxPyBeginBlockThreads(); | |
cbd72d4f RD |
773 | PyErr_SetString(PyExc_NotImplementedError, |
774 | "wxJoystick is not available on this platform."); | |
d14a1e28 RD |
775 | wxPyEndBlockThreads(); |
776 | } | |
777 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
778 | int GetZPosition() { return -1; } | |
779 | int GetButtonState() { return -1; } | |
780 | int GetPOVPosition() { return -1; } | |
781 | int GetPOVCTSPosition() { return -1; } | |
782 | int GetRudderPosition() { return -1; } | |
783 | int GetUPosition() { return -1; } | |
784 | int GetVPosition() { return -1; } | |
785 | int GetMovementThreshold() { return -1; } | |
786 | void SetMovementThreshold(int threshold) {} | |
787 | ||
423f194a | 788 | bool IsOk(void) { return False; } |
d14a1e28 RD |
789 | int GetNumberJoysticks() { return -1; } |
790 | int GetManufacturerId() { return -1; } | |
791 | int GetProductId() { return -1; } | |
792 | wxString GetProductName() { return ""; } | |
793 | int GetXMin() { return -1; } | |
794 | int GetYMin() { return -1; } | |
795 | int GetZMin() { return -1; } | |
796 | int GetXMax() { return -1; } | |
797 | int GetYMax() { return -1; } | |
798 | int GetZMax() { return -1; } | |
799 | int GetNumberButtons() { return -1; } | |
800 | int GetNumberAxes() { return -1; } | |
801 | int GetMaxButtons() { return -1; } | |
802 | int GetMaxAxes() { return -1; } | |
803 | int GetPollingMin() { return -1; } | |
804 | int GetPollingMax() { return -1; } | |
805 | int GetRudderMin() { return -1; } | |
806 | int GetRudderMax() { return -1; } | |
807 | int GetUMin() { return -1; } | |
808 | int GetUMax() { return -1; } | |
809 | int GetVMin() { return -1; } | |
810 | int GetVMax() { return -1; } | |
811 | ||
423f194a RD |
812 | bool HasRudder() { return False; } |
813 | bool HasZ() { return False; } | |
814 | bool HasU() { return False; } | |
815 | bool HasV() { return False; } | |
816 | bool HasPOV() { return False; } | |
817 | bool HasPOV4Dir() { return False; } | |
818 | bool HasPOVCTS() { return False; } | |
d14a1e28 | 819 | |
423f194a RD |
820 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; } |
821 | bool ReleaseCapture() { return False; } | |
d14a1e28 RD |
822 | }; |
823 | #endif | |
824 | ||
825 | ||
4e760a36 | 826 | #include <wx/sound.h> |
d14a1e28 RD |
827 | |
828 | ||
dff1fa9b | 829 | #if !wxUSE_SOUND |
d14a1e28 | 830 | // A C++ stub class for wxWave for platforms that don't have it. |
4e760a36 | 831 | class wxSound : public wxObject |
d14a1e28 RD |
832 | { |
833 | public: | |
4e760a36 | 834 | wxSound() { |
d14a1e28 | 835 | wxPyBeginBlockThreads(); |
cbd72d4f | 836 | PyErr_SetString(PyExc_NotImplementedError, |
4e760a36 | 837 | "wxSound is not available on this platform."); |
d14a1e28 RD |
838 | wxPyEndBlockThreads(); |
839 | } | |
4e760a36 | 840 | wxSound(const wxString&, bool) { |
d14a1e28 | 841 | wxPyBeginBlockThreads(); |
cbd72d4f | 842 | PyErr_SetString(PyExc_NotImplementedError, |
4e760a36 | 843 | "wxSound is not available on this platform."); |
d14a1e28 RD |
844 | wxPyEndBlockThreads(); |
845 | } | |
4e760a36 RD |
846 | wxSound(int, const wxByte*) { |
847 | wxPyBeginBlockThreads(); | |
848 | PyErr_SetString(PyExc_NotImplementedError, | |
849 | "wxSound is not available on this platform."); | |
850 | wxPyEndBlockThreads(); | |
851 | } | |
852 | ||
853 | ~wxSound() {}; | |
d14a1e28 | 854 | |
4e760a36 RD |
855 | bool Create(const wxString&, bool) { return false; } |
856 | bool Create(int, const wxByte*) { return false; }; | |
857 | bool IsOk() { return false; }; | |
858 | bool Play(unsigned) const { return false; } | |
859 | static bool Play(const wxString&, unsigned) { return false; } | |
860 | static void Stop() {} | |
d14a1e28 RD |
861 | }; |
862 | ||
863 | #endif | |
864 | ||
d14a1e28 RD |
865 | |
866 | #include <wx/mimetype.h> | |
867 | ||
868 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
869 | wxString str; | |
870 | if (self->GetMimeType(&str)) | |
871 | return wx2PyString(str); | |
872 | else | |
873 | RETURN_NONE(); | |
874 | } | |
875 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
876 | wxArrayString arr; | |
877 | if (self->GetMimeTypes(arr)) | |
878 | return wxArrayString2PyList_helper(arr); | |
879 | else | |
880 | RETURN_NONE(); | |
881 | } | |
882 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
883 | wxArrayString arr; | |
884 | if (self->GetExtensions(arr)) | |
885 | return wxArrayString2PyList_helper(arr); | |
886 | else | |
887 | RETURN_NONE(); | |
888 | } | |
889 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
890 | wxIconLocation loc; | |
891 | if (self->GetIcon(&loc)) | |
892 | return new wxIcon(loc); | |
893 | else | |
894 | return NULL; | |
895 | } | |
896 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
897 | wxIconLocation loc; | |
898 | if (self->GetIcon(&loc)) { | |
899 | wxString iconFile = loc.GetFileName(); | |
900 | int iconIndex = -1; | |
901 | ||
902 | iconIndex = loc.GetIndex(); | |
903 | ||
904 | // Make a tuple and put the values in it | |
905 | wxPyBeginBlockThreads(); | |
906 | PyObject* tuple = PyTuple_New(3); | |
907 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
423f194a | 908 | wxT("wxIcon"), True)); |
d14a1e28 RD |
909 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); |
910 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
911 | wxPyEndBlockThreads(); | |
912 | return tuple; | |
913 | } | |
914 | else | |
915 | RETURN_NONE(); | |
916 | } | |
917 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
918 | wxString str; | |
919 | if (self->GetDescription(&str)) | |
920 | return wx2PyString(str); | |
921 | else | |
922 | RETURN_NONE(); | |
923 | } | |
924 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
925 | wxString str; | |
926 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
927 | return wx2PyString(str); | |
928 | else | |
929 | RETURN_NONE(); | |
930 | } | |
931 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
932 | wxString str; | |
933 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
934 | return wx2PyString(str); | |
935 | else | |
936 | RETURN_NONE(); | |
937 | } | |
938 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
939 | wxArrayString verbs; | |
940 | wxArrayString commands; | |
941 | if (self->GetAllCommands(&verbs, &commands, | |
942 | wxFileType::MessageParameters(filename, mimetype))) { | |
943 | wxPyBeginBlockThreads(); | |
944 | PyObject* tuple = PyTuple_New(2); | |
945 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
946 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
947 | wxPyEndBlockThreads(); | |
948 | return tuple; | |
949 | } | |
950 | else | |
951 | RETURN_NONE(); | |
952 | } | |
953 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
954 | return wxFileType::ExpandCommand(command, | |
955 | wxFileType::MessageParameters(filename, mimetype)); | |
956 | } | |
957 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
958 | wxArrayString arr; | |
959 | self->EnumAllFileTypes(arr); | |
960 | return wxArrayString2PyList_helper(arr); | |
961 | } | |
962 | ||
963 | #include <wx/artprov.h> | |
964 | ||
965 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
966 | static const wxString wxPyART_MENU(wxART_MENU); | |
967 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
968 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
969 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
970 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
971 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
972 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
973 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
974 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
975 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
976 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
977 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
978 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
979 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
980 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
981 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
982 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
983 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
984 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
985 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
986 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
987 | static const wxString wxPyART_HELP(wxART_HELP); | |
988 | static const wxString wxPyART_TIP(wxART_TIP); | |
989 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
990 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
991 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
992 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
993 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
994 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
995 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
996 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
997 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
998 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
999 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
1000 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
1001 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
1002 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
1003 | // Python aware wxArtProvider | |
1004 | class wxPyArtProvider : public wxArtProvider { | |
1005 | public: | |
1006 | ||
1007 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
1008 | const wxArtClient& client, | |
1009 | const wxSize& size) { | |
1010 | wxBitmap rval = wxNullBitmap; | |
1011 | wxPyBeginBlockThreads(); | |
1012 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
1013 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
1014 | PyObject* ro; | |
1015 | wxBitmap* ptr; | |
1016 | PyObject* s1, *s2; | |
1017 | s1 = wx2PyString(id); | |
1018 | s2 = wx2PyString(client); | |
1019 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
1020 | Py_DECREF(so); | |
1021 | Py_DECREF(s1); | |
1022 | Py_DECREF(s2); | |
1023 | if (ro) { | |
1024 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
1025 | rval = *ptr; | |
1026 | Py_DECREF(ro); | |
1027 | } | |
1028 | } | |
1029 | wxPyEndBlockThreads(); | |
1030 | return rval; | |
1031 | } | |
1032 | ||
1033 | PYPRIVATE; | |
1034 | }; | |
1035 | ||
41f1cec7 | 1036 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } |
d14a1e28 RD |
1037 | |
1038 | ||
1039 | ||
1040 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
1041 | PyObject* ret = PyTuple_New(3); | |
1042 | if (ret) { | |
1043 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
1044 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
1045 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
1046 | } | |
1047 | return ret; | |
1048 | } | |
1049 | ||
1050 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
1051 | bool cont; | |
1052 | long index = 0; | |
1053 | wxString value; | |
1054 | ||
1055 | cont = self->GetFirstGroup(value, index); | |
1056 | return __EnumerationHelper(cont, value, index); | |
1057 | } | |
1058 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
1059 | bool cont; | |
1060 | wxString value; | |
1061 | ||
1062 | cont = self->GetNextGroup(value, index); | |
1063 | return __EnumerationHelper(cont, value, index); | |
1064 | } | |
1065 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
1066 | bool cont; | |
1067 | long index = 0; | |
1068 | wxString value; | |
1069 | ||
1070 | cont = self->GetFirstEntry(value, index); | |
1071 | return __EnumerationHelper(cont, value, index); | |
1072 | } | |
1073 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
1074 | bool cont; | |
1075 | wxString value; | |
1076 | ||
1077 | cont = self->GetNextEntry(value, index); | |
1078 | return __EnumerationHelper(cont, value, index); | |
1079 | } | |
1080 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
1081 | long rv; | |
1082 | self->Read(key, &rv, defaultVal); | |
1083 | return rv; | |
1084 | } | |
8edf1c75 | 1085 | |
2f4c0a16 RD |
1086 | SWIGSTATICINLINE(double) |
1087 | SWIG_AsDouble(PyObject *obj) | |
8edf1c75 | 1088 | { |
2f4c0a16 | 1089 | double val = (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : |
8edf1c75 | 1090 | #if HAVE_LONG_LONG |
2f4c0a16 | 1091 | ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); |
8edf1c75 | 1092 | #else |
2f4c0a16 | 1093 | ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj)); |
8edf1c75 RD |
1094 | #endif |
1095 | if (PyErr_Occurred()) { | |
1096 | PyErr_Clear(); | |
1097 | PyErr_SetString(PyExc_TypeError, "a double is expected"); | |
1098 | } | |
2f4c0a16 RD |
1099 | return val; |
1100 | } | |
1101 | ||
1102 | ||
1103 | SWIGSTATICINLINE(int) | |
1104 | SWIG_CheckDouble(PyObject* obj) | |
1105 | { | |
1106 | SWIG_AsDouble(obj); | |
1107 | if (PyErr_Occurred()) { | |
1108 | PyErr_Clear(); | |
1109 | return 0; | |
1110 | } else { | |
1111 | return 1; | |
1112 | } | |
8edf1c75 RD |
1113 | } |
1114 | ||
d14a1e28 RD |
1115 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ |
1116 | double rv; | |
1117 | self->Read(key, &rv, defaultVal); | |
1118 | return rv; | |
1119 | } | |
1120 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
1121 | bool rv; | |
1122 | self->Read(key, &rv, defaultVal); | |
1123 | return rv; | |
1124 | } | |
1125 | ||
1126 | #include <wx/datetime.h> | |
1127 | ||
d14a1e28 | 1128 | |
eb9b6107 RD |
1129 | static const wxString wxPyDateFormatStr(wxT("%c")); |
1130 | static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); | |
d14a1e28 RD |
1131 | |
1132 | #define LOCAL_TZ wxDateTime::Local | |
1133 | ||
8edf1c75 | 1134 | |
2f4c0a16 RD |
1135 | #if UINT_MAX < LONG_MAX |
1136 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
1137 | #else | |
1138 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
1139 | #endif | |
8edf1c75 | 1140 | |
d14a1e28 RD |
1141 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } |
1142 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
1143 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
1144 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
1145 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
328fcd84 RD |
1146 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ return other ? (*self < *other) : False; } |
1147 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ return other ? (*self <= *other) : False; } | |
1148 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ return other ? (*self > *other) : True; } | |
1149 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ return other ? (*self >= *other) : True; } | |
1150 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ return other ? (*self == *other) : False; } | |
1151 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
1152 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ |
1153 | const wxChar* rv; | |
1154 | const wxChar* _date = date; | |
1155 | rv = self->ParseRfc822Date(_date); | |
1156 | if (rv == NULL) return -1; | |
1157 | return rv - _date; | |
1158 | } | |
1159 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
1160 | const wxChar* rv; | |
1161 | const wxChar* _date = date; | |
1162 | rv = self->ParseFormat(_date, format, dateDef); | |
1163 | if (rv == NULL) return -1; | |
1164 | return rv - _date; | |
1165 | } | |
1166 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
1167 | const wxChar* rv; | |
1168 | const wxChar* _datetime = datetime; | |
1169 | rv = self->ParseDateTime(_datetime); | |
1170 | if (rv == NULL) return -1; | |
1171 | return rv - _datetime; | |
1172 | } | |
1173 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
1174 | const wxChar* rv; | |
1175 | const wxChar* _date = date; | |
1176 | rv = self->ParseDate(_date); | |
1177 | if (rv == NULL) return -1; | |
1178 | return rv - _date; | |
1179 | } | |
1180 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
1181 | const wxChar* rv; | |
1182 | const wxChar* _time = time; | |
1183 | rv = self->ParseTime(_time); | |
1184 | if (rv == NULL) return -1; | |
1185 | return rv - _time; | |
1186 | } | |
1187 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
1188 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
1189 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
1190 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
328fcd84 RD |
1191 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; } |
1192 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; } | |
1193 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; } | |
1194 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; } | |
1195 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; } | |
1196 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
1197 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } |
1198 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
1199 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
1200 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
328fcd84 RD |
1201 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; } |
1202 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
1203 | |
1204 | #include <wx/dataobj.h> | |
1205 | ||
1206 | // Create a new class for wxPython to use | |
1207 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1208 | public: | |
1209 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1210 | : wxDataObjectSimple(format) {} | |
1211 | ||
1212 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1213 | bool GetDataHere(void *buf) const; | |
1214 | bool SetData(size_t len, const void *buf) const; | |
1215 | PYPRIVATE; | |
1216 | }; | |
1217 | ||
1218 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1219 | ||
1220 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1221 | // We need to get the data for this object and write it to buf. I think | |
1222 | // the best way to do this for wxPython is to have the Python method | |
1223 | // return either a string or None and then act appropriately with the | |
1224 | // C++ version. | |
1225 | ||
423f194a | 1226 | bool rval = False; |
d14a1e28 RD |
1227 | wxPyBeginBlockThreads(); |
1228 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { | |
1229 | PyObject* ro; | |
1230 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1231 | if (ro) { | |
1232 | rval = (ro != Py_None && PyString_Check(ro)); | |
1233 | if (rval) | |
1234 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1235 | Py_DECREF(ro); | |
1236 | } | |
1237 | } | |
1238 | wxPyEndBlockThreads(); | |
1239 | return rval; | |
1240 | } | |
1241 | ||
1242 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1243 | // For this one we simply need to make a string from buf and len | |
1244 | // and send it to the Python method. | |
423f194a | 1245 | bool rval = False; |
d14a1e28 RD |
1246 | wxPyBeginBlockThreads(); |
1247 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { | |
1248 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1249 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1250 | Py_DECREF(data); | |
1251 | } | |
1252 | wxPyEndBlockThreads(); | |
1253 | return rval; | |
1254 | } | |
1255 | ||
1256 | // Create a new class for wxPython to use | |
1257 | class wxPyTextDataObject : public wxTextDataObject { | |
1258 | public: | |
1259 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1260 | : wxTextDataObject(text) {} | |
1261 | ||
1262 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1263 | DEC_PYCALLBACK_STRING__const(GetText); | |
1264 | DEC_PYCALLBACK__STRING(SetText); | |
1265 | PYPRIVATE; | |
1266 | }; | |
1267 | ||
1268 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1269 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1270 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1271 | ||
1272 | ||
1273 | // Create a new class for wxPython to use | |
1274 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1275 | public: | |
1276 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1277 | : wxBitmapDataObject(bitmap) {} | |
1278 | ||
1279 | wxBitmap GetBitmap() const; | |
1280 | void SetBitmap(const wxBitmap& bitmap); | |
1281 | PYPRIVATE; | |
1282 | }; | |
1283 | ||
1284 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1285 | wxBitmap* rval = &wxNullBitmap; | |
1286 | wxPyBeginBlockThreads(); | |
1287 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { | |
1288 | PyObject* ro; | |
1289 | wxBitmap* ptr; | |
1290 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1291 | if (ro) { | |
1292 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1293 | rval = ptr; | |
1294 | Py_DECREF(ro); | |
1295 | } | |
1296 | } | |
1297 | wxPyEndBlockThreads(); | |
1298 | return *rval; | |
1299 | } | |
1300 | ||
1301 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { | |
1302 | wxPyBeginBlockThreads(); | |
1303 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
423f194a | 1304 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False); |
d14a1e28 RD |
1305 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); |
1306 | Py_DECREF(bo); | |
1307 | } | |
1308 | wxPyEndBlockThreads(); | |
1309 | } | |
1310 | ||
1311 | void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){ | |
1312 | if (PyString_Check(data)) { | |
1313 | // for Python we just call SetData here since we always need it to make a copy. | |
1314 | self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1315 | } | |
1316 | else { | |
1317 | // raise a TypeError if not a string | |
1318 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1319 | } | |
1320 | } | |
1321 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ | |
1322 | if (PyString_Check(data)) { | |
1323 | return self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1324 | } | |
1325 | else { | |
1326 | // raise a TypeError if not a string | |
1327 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
423f194a | 1328 | return False; |
d14a1e28 RD |
1329 | } |
1330 | } | |
1331 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
1332 | return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
1333 | } | |
1334 | ||
83448d71 | 1335 | #include <wx/metafile.h> |
d14a1e28 RD |
1336 | |
1337 | ||
d14a1e28 RD |
1338 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); |
1339 | ||
1340 | ||
d14a1e28 RD |
1341 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); |
1342 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1343 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1344 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1345 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1346 | ||
1347 | ||
d14a1e28 RD |
1348 | class wxPyTextDropTarget : public wxTextDropTarget { |
1349 | public: | |
1350 | wxPyTextDropTarget() {} | |
1351 | ||
1352 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1353 | ||
1354 | DEC_PYCALLBACK__(OnLeave); | |
1355 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1356 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1357 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1358 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1359 | ||
1360 | PYPRIVATE; | |
1361 | }; | |
1362 | ||
1363 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1364 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1365 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1366 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1367 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1368 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1369 | ||
1370 | ||
1371 | ||
1372 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1373 | public: | |
1374 | wxPyFileDropTarget() {} | |
1375 | ||
1376 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1377 | ||
1378 | DEC_PYCALLBACK__(OnLeave); | |
1379 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1380 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1381 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1382 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1383 | ||
1384 | PYPRIVATE; | |
1385 | }; | |
1386 | ||
1387 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1388 | const wxArrayString& filenames) { | |
423f194a | 1389 | bool rval = False; |
d14a1e28 RD |
1390 | wxPyBeginBlockThreads(); |
1391 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
1392 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1393 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1394 | Py_DECREF(list); | |
1395 | } | |
1396 | wxPyEndBlockThreads(); | |
1397 | return rval; | |
1398 | } | |
1399 | ||
1400 | ||
1401 | ||
1402 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1403 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1404 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1405 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1406 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1407 | ||
1408 | ||
1409 | ||
1410 | ||
1411 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
fe763115 RD |
1412 | |
1413 | #include "wx/display.h" | |
1414 | ||
1415 | bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; } | |
1416 | bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; } | |
1417 | PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){ | |
1418 | PyObject* pyList = NULL; | |
1419 | wxArrayVideoModes arr = self->GetModes(mode); | |
1420 | wxPyBeginBlockThreads(); | |
1421 | pyList = PyList_New(0); | |
1422 | for (int i=0; i < arr.GetCount(); i++) { | |
1423 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
1424 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
1425 | PyList_Append(pyList, pyObj); | |
1426 | } | |
1427 | wxPyEndBlockThreads(); | |
1428 | return pyList; | |
1429 | } | |
d14a1e28 RD |
1430 | #ifdef __cplusplus |
1431 | extern "C" { | |
1432 | #endif | |
1433 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1434 | PyObject *resultobj; | |
1435 | int arg1 ; | |
1436 | wxColour result; | |
8edf1c75 | 1437 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1438 | char *kwnames[] = { |
1439 | (char *) "index", NULL | |
1440 | }; | |
1441 | ||
8edf1c75 | 1442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
1443 | arg1 = (wxSystemColour) SWIG_AsInt(obj0); |
1444 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1445 | { |
1446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1447 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1448 | ||
1449 | wxPyEndAllowThreads(__tstate); | |
1450 | if (PyErr_Occurred()) SWIG_fail; | |
1451 | } | |
1452 | { | |
1453 | wxColour * resultptr; | |
1454 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 1455 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1456 | } |
1457 | return resultobj; | |
1458 | fail: | |
1459 | return NULL; | |
1460 | } | |
1461 | ||
1462 | ||
1463 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1464 | PyObject *resultobj; | |
1465 | int arg1 ; | |
1466 | wxFont result; | |
8edf1c75 | 1467 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1468 | char *kwnames[] = { |
1469 | (char *) "index", NULL | |
1470 | }; | |
1471 | ||
8edf1c75 | 1472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
1473 | arg1 = (wxSystemFont) SWIG_AsInt(obj0); |
1474 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1475 | { |
1476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1477 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1478 | ||
1479 | wxPyEndAllowThreads(__tstate); | |
1480 | if (PyErr_Occurred()) SWIG_fail; | |
1481 | } | |
1482 | { | |
1483 | wxFont * resultptr; | |
1484 | resultptr = new wxFont((wxFont &) result); | |
2f4c0a16 | 1485 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
1486 | } |
1487 | return resultobj; | |
1488 | fail: | |
1489 | return NULL; | |
1490 | } | |
1491 | ||
1492 | ||
1493 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1494 | PyObject *resultobj; | |
1495 | int arg1 ; | |
1496 | int result; | |
8edf1c75 | 1497 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1498 | char *kwnames[] = { |
1499 | (char *) "index", NULL | |
1500 | }; | |
1501 | ||
8edf1c75 | 1502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
1503 | arg1 = (wxSystemMetric) SWIG_AsInt(obj0); |
1504 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1505 | { |
1506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1507 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1508 | ||
1509 | wxPyEndAllowThreads(__tstate); | |
1510 | if (PyErr_Occurred()) SWIG_fail; | |
1511 | } | |
2f4c0a16 | 1512 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1513 | return resultobj; |
1514 | fail: | |
1515 | return NULL; | |
1516 | } | |
1517 | ||
1518 | ||
1519 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1520 | PyObject *resultobj; | |
1521 | int arg1 ; | |
1522 | bool result; | |
8edf1c75 | 1523 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1524 | char *kwnames[] = { |
1525 | (char *) "index", NULL | |
1526 | }; | |
1527 | ||
8edf1c75 | 1528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
1529 | arg1 = (wxSystemFeature) SWIG_AsInt(obj0); |
1530 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1531 | { |
1532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1533 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1534 | ||
1535 | wxPyEndAllowThreads(__tstate); | |
1536 | if (PyErr_Occurred()) SWIG_fail; | |
1537 | } | |
4e760a36 | 1538 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1539 | return resultobj; |
1540 | fail: | |
1541 | return NULL; | |
1542 | } | |
1543 | ||
1544 | ||
1545 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1546 | PyObject *resultobj; | |
1547 | int result; | |
1548 | char *kwnames[] = { | |
1549 | NULL | |
1550 | }; | |
1551 | ||
1552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1553 | { | |
1554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1555 | result = (int)wxSystemSettings::GetScreenType(); | |
1556 | ||
1557 | wxPyEndAllowThreads(__tstate); | |
1558 | if (PyErr_Occurred()) SWIG_fail; | |
1559 | } | |
2f4c0a16 | 1560 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1561 | return resultobj; |
1562 | fail: | |
1563 | return NULL; | |
1564 | } | |
1565 | ||
1566 | ||
1567 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1568 | PyObject *resultobj; | |
1569 | int arg1 ; | |
8edf1c75 | 1570 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1571 | char *kwnames[] = { |
1572 | (char *) "screen", NULL | |
1573 | }; | |
1574 | ||
8edf1c75 | 1575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
1576 | arg1 = (wxSystemScreenType) SWIG_AsInt(obj0); |
1577 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1578 | { |
1579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1580 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1581 | ||
1582 | wxPyEndAllowThreads(__tstate); | |
1583 | if (PyErr_Occurred()) SWIG_fail; | |
1584 | } | |
1585 | Py_INCREF(Py_None); resultobj = Py_None; | |
1586 | return resultobj; | |
1587 | fail: | |
1588 | return NULL; | |
1589 | } | |
1590 | ||
1591 | ||
1592 | static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { | |
1593 | PyObject *obj; | |
1594 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1595 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1596 | Py_INCREF(obj); | |
1597 | return Py_BuildValue((char *)""); | |
1598 | } | |
1599 | static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1600 | PyObject *resultobj; | |
1601 | wxSystemOptions *result; | |
1602 | char *kwnames[] = { | |
1603 | NULL | |
1604 | }; | |
1605 | ||
1606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1607 | { | |
1608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1609 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1610 | ||
1611 | wxPyEndAllowThreads(__tstate); | |
1612 | if (PyErr_Occurred()) SWIG_fail; | |
1613 | } | |
2f4c0a16 | 1614 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); |
d14a1e28 RD |
1615 | return resultobj; |
1616 | fail: | |
1617 | return NULL; | |
1618 | } | |
1619 | ||
1620 | ||
1621 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1622 | PyObject *resultobj; | |
1623 | wxString *arg1 = 0 ; | |
1624 | wxString *arg2 = 0 ; | |
423f194a RD |
1625 | bool temp1 = False ; |
1626 | bool temp2 = False ; | |
d14a1e28 RD |
1627 | PyObject * obj0 = 0 ; |
1628 | PyObject * obj1 = 0 ; | |
1629 | char *kwnames[] = { | |
1630 | (char *) "name",(char *) "value", NULL | |
1631 | }; | |
1632 | ||
1633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1634 | { | |
1635 | arg1 = wxString_in_helper(obj0); | |
1636 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1637 | temp1 = True; |
d14a1e28 RD |
1638 | } |
1639 | { | |
1640 | arg2 = wxString_in_helper(obj1); | |
1641 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 1642 | temp2 = True; |
d14a1e28 RD |
1643 | } |
1644 | { | |
1645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1646 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
1647 | ||
1648 | wxPyEndAllowThreads(__tstate); | |
1649 | if (PyErr_Occurred()) SWIG_fail; | |
1650 | } | |
1651 | Py_INCREF(Py_None); resultobj = Py_None; | |
1652 | { | |
1653 | if (temp1) | |
1654 | delete arg1; | |
1655 | } | |
1656 | { | |
1657 | if (temp2) | |
1658 | delete arg2; | |
1659 | } | |
1660 | return resultobj; | |
1661 | fail: | |
1662 | { | |
1663 | if (temp1) | |
1664 | delete arg1; | |
1665 | } | |
1666 | { | |
1667 | if (temp2) | |
1668 | delete arg2; | |
1669 | } | |
1670 | return NULL; | |
1671 | } | |
1672 | ||
1673 | ||
1674 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1675 | PyObject *resultobj; | |
1676 | wxString *arg1 = 0 ; | |
1677 | int arg2 ; | |
423f194a | 1678 | bool temp1 = False ; |
d14a1e28 | 1679 | PyObject * obj0 = 0 ; |
8edf1c75 | 1680 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1681 | char *kwnames[] = { |
1682 | (char *) "name",(char *) "value", NULL | |
1683 | }; | |
1684 | ||
8edf1c75 | 1685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
1686 | { |
1687 | arg1 = wxString_in_helper(obj0); | |
1688 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1689 | temp1 = True; |
d14a1e28 | 1690 | } |
2f4c0a16 RD |
1691 | arg2 = (int) SWIG_AsInt(obj1); |
1692 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1693 | { |
1694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1695 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
1696 | ||
1697 | wxPyEndAllowThreads(__tstate); | |
1698 | if (PyErr_Occurred()) SWIG_fail; | |
1699 | } | |
1700 | Py_INCREF(Py_None); resultobj = Py_None; | |
1701 | { | |
1702 | if (temp1) | |
1703 | delete arg1; | |
1704 | } | |
1705 | return resultobj; | |
1706 | fail: | |
1707 | { | |
1708 | if (temp1) | |
1709 | delete arg1; | |
1710 | } | |
1711 | return NULL; | |
1712 | } | |
1713 | ||
1714 | ||
1715 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1716 | PyObject *resultobj; | |
1717 | wxString *arg1 = 0 ; | |
1718 | wxString result; | |
423f194a | 1719 | bool temp1 = False ; |
d14a1e28 RD |
1720 | PyObject * obj0 = 0 ; |
1721 | char *kwnames[] = { | |
1722 | (char *) "name", NULL | |
1723 | }; | |
1724 | ||
1725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
1726 | { | |
1727 | arg1 = wxString_in_helper(obj0); | |
1728 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1729 | temp1 = True; |
d14a1e28 RD |
1730 | } |
1731 | { | |
1732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1733 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
1734 | ||
1735 | wxPyEndAllowThreads(__tstate); | |
1736 | if (PyErr_Occurred()) SWIG_fail; | |
1737 | } | |
1738 | { | |
1739 | #if wxUSE_UNICODE | |
1740 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1741 | #else | |
1742 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1743 | #endif | |
1744 | } | |
1745 | { | |
1746 | if (temp1) | |
1747 | delete arg1; | |
1748 | } | |
1749 | return resultobj; | |
1750 | fail: | |
1751 | { | |
1752 | if (temp1) | |
1753 | delete arg1; | |
1754 | } | |
1755 | return NULL; | |
1756 | } | |
1757 | ||
1758 | ||
1759 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1760 | PyObject *resultobj; | |
1761 | wxString *arg1 = 0 ; | |
1762 | int result; | |
423f194a | 1763 | bool temp1 = False ; |
d14a1e28 RD |
1764 | PyObject * obj0 = 0 ; |
1765 | char *kwnames[] = { | |
1766 | (char *) "name", NULL | |
1767 | }; | |
1768 | ||
1769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
1770 | { | |
1771 | arg1 = wxString_in_helper(obj0); | |
1772 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1773 | temp1 = True; |
d14a1e28 RD |
1774 | } |
1775 | { | |
1776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1777 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
1778 | ||
1779 | wxPyEndAllowThreads(__tstate); | |
1780 | if (PyErr_Occurred()) SWIG_fail; | |
1781 | } | |
2f4c0a16 | 1782 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1783 | { |
1784 | if (temp1) | |
1785 | delete arg1; | |
1786 | } | |
1787 | return resultobj; | |
1788 | fail: | |
1789 | { | |
1790 | if (temp1) | |
1791 | delete arg1; | |
1792 | } | |
1793 | return NULL; | |
1794 | } | |
1795 | ||
1796 | ||
1797 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1798 | PyObject *resultobj; | |
1799 | wxString *arg1 = 0 ; | |
1800 | bool result; | |
423f194a | 1801 | bool temp1 = False ; |
d14a1e28 RD |
1802 | PyObject * obj0 = 0 ; |
1803 | char *kwnames[] = { | |
1804 | (char *) "name", NULL | |
1805 | }; | |
1806 | ||
1807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
1808 | { | |
1809 | arg1 = wxString_in_helper(obj0); | |
1810 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1811 | temp1 = True; |
d14a1e28 RD |
1812 | } |
1813 | { | |
1814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1815 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
1816 | ||
1817 | wxPyEndAllowThreads(__tstate); | |
1818 | if (PyErr_Occurred()) SWIG_fail; | |
1819 | } | |
4e760a36 | 1820 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1821 | { |
1822 | if (temp1) | |
1823 | delete arg1; | |
1824 | } | |
1825 | return resultobj; | |
1826 | fail: | |
1827 | { | |
1828 | if (temp1) | |
1829 | delete arg1; | |
1830 | } | |
1831 | return NULL; | |
1832 | } | |
1833 | ||
1834 | ||
1835 | static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) { | |
1836 | PyObject *obj; | |
1837 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1838 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
1839 | Py_INCREF(obj); | |
1840 | return Py_BuildValue((char *)""); | |
1841 | } | |
2f4c0a16 | 1842 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { |
d03fd34d RD |
1843 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); |
1844 | return 1; | |
1845 | } | |
1846 | ||
1847 | ||
1848 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
1849 | PyObject *pyobj; | |
1850 | ||
1851 | { | |
1852 | #if wxUSE_UNICODE | |
1853 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1854 | #else | |
1855 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1856 | #endif | |
1857 | } | |
1858 | return pyobj; | |
1859 | } | |
1860 | ||
1861 | ||
2f4c0a16 | 1862 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { |
d03fd34d RD |
1863 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); |
1864 | return 1; | |
1865 | } | |
1866 | ||
1867 | ||
1868 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
1869 | PyObject *pyobj; | |
1870 | ||
1871 | { | |
1872 | #if wxUSE_UNICODE | |
1873 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1874 | #else | |
1875 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1876 | #endif | |
1877 | } | |
1878 | return pyobj; | |
1879 | } | |
1880 | ||
1881 | ||
2f4c0a16 | 1882 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { |
d03fd34d RD |
1883 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); |
1884 | return 1; | |
1885 | } | |
1886 | ||
1887 | ||
1888 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
1889 | PyObject *pyobj; | |
1890 | ||
1891 | { | |
1892 | #if wxUSE_UNICODE | |
1893 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1894 | #else | |
1895 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1896 | #endif | |
1897 | } | |
1898 | return pyobj; | |
1899 | } | |
1900 | ||
1901 | ||
d14a1e28 RD |
1902 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { |
1903 | PyObject *resultobj; | |
1904 | long result; | |
1905 | char *kwnames[] = { | |
1906 | NULL | |
1907 | }; | |
1908 | ||
1909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
1910 | { | |
1911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1912 | result = (long)wxNewId(); | |
1913 | ||
1914 | wxPyEndAllowThreads(__tstate); | |
1915 | if (PyErr_Occurred()) SWIG_fail; | |
1916 | } | |
2f4c0a16 | 1917 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
1918 | return resultobj; |
1919 | fail: | |
1920 | return NULL; | |
1921 | } | |
1922 | ||
1923 | ||
1924 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1925 | PyObject *resultobj; | |
1926 | long arg1 ; | |
8edf1c75 | 1927 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1928 | char *kwnames[] = { |
1929 | (char *) "id", NULL | |
1930 | }; | |
1931 | ||
8edf1c75 | 1932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
1933 | arg1 = (long) SWIG_AsLong(obj0); |
1934 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1935 | { |
1936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1937 | wxRegisterId(arg1); | |
1938 | ||
1939 | wxPyEndAllowThreads(__tstate); | |
1940 | if (PyErr_Occurred()) SWIG_fail; | |
1941 | } | |
1942 | Py_INCREF(Py_None); resultobj = Py_None; | |
1943 | return resultobj; | |
1944 | fail: | |
1945 | return NULL; | |
1946 | } | |
1947 | ||
1948 | ||
1949 | static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1950 | PyObject *resultobj; | |
1951 | long result; | |
1952 | char *kwnames[] = { | |
1953 | NULL | |
1954 | }; | |
1955 | ||
1956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
1957 | { | |
1958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1959 | result = (long)wxGetCurrentId(); | |
1960 | ||
1961 | wxPyEndAllowThreads(__tstate); | |
1962 | if (PyErr_Occurred()) SWIG_fail; | |
1963 | } | |
2f4c0a16 | 1964 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
1965 | return resultobj; |
1966 | fail: | |
1967 | return NULL; | |
1968 | } | |
1969 | ||
1970 | ||
1971 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1972 | PyObject *resultobj; | |
1973 | char *kwnames[] = { | |
1974 | NULL | |
1975 | }; | |
1976 | ||
1977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
1978 | { | |
1979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1980 | wxBell(); | |
1981 | ||
1982 | wxPyEndAllowThreads(__tstate); | |
1983 | if (PyErr_Occurred()) SWIG_fail; | |
1984 | } | |
1985 | Py_INCREF(Py_None); resultobj = Py_None; | |
1986 | return resultobj; | |
1987 | fail: | |
1988 | return NULL; | |
1989 | } | |
1990 | ||
1991 | ||
1992 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1993 | PyObject *resultobj; | |
1994 | char *kwnames[] = { | |
1995 | NULL | |
1996 | }; | |
1997 | ||
1998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
1999 | { | |
2000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2001 | wxEndBusyCursor(); | |
2002 | ||
2003 | wxPyEndAllowThreads(__tstate); | |
2004 | if (PyErr_Occurred()) SWIG_fail; | |
2005 | } | |
2006 | Py_INCREF(Py_None); resultobj = Py_None; | |
2007 | return resultobj; | |
2008 | fail: | |
2009 | return NULL; | |
2010 | } | |
2011 | ||
2012 | ||
2013 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2014 | PyObject *resultobj; | |
423f194a | 2015 | bool arg1 = (bool) True ; |
d14a1e28 RD |
2016 | long result; |
2017 | PyObject * obj0 = 0 ; | |
2018 | char *kwnames[] = { | |
2019 | (char *) "resetTimer", NULL | |
2020 | }; | |
2021 | ||
2022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
2023 | if (obj0) { | |
2f4c0a16 RD |
2024 | arg1 = (bool) SWIG_AsBool(obj0); |
2025 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2026 | } |
2027 | { | |
2028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2029 | result = (long)wxGetElapsedTime(arg1); | |
2030 | ||
2031 | wxPyEndAllowThreads(__tstate); | |
2032 | if (PyErr_Occurred()) SWIG_fail; | |
2033 | } | |
2f4c0a16 | 2034 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2035 | return resultobj; |
2036 | fail: | |
2037 | return NULL; | |
2038 | } | |
2039 | ||
2040 | ||
2041 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2042 | PyObject *resultobj; | |
2043 | int *arg1 = (int *) 0 ; | |
2044 | int *arg2 = (int *) 0 ; | |
2045 | int temp1 ; | |
2046 | int temp2 ; | |
2047 | char *kwnames[] = { | |
2048 | NULL | |
2049 | }; | |
2050 | ||
2051 | arg1 = &temp1; | |
2052 | arg2 = &temp2; | |
2053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
2054 | { | |
2055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2056 | wxGetMousePosition(arg1,arg2); | |
2057 | ||
2058 | wxPyEndAllowThreads(__tstate); | |
2059 | if (PyErr_Occurred()) SWIG_fail; | |
2060 | } | |
2061 | Py_INCREF(Py_None); resultobj = Py_None; | |
2062 | { | |
2063 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2064 | resultobj = t_output_helper(resultobj,o); | |
2065 | } | |
2066 | { | |
2067 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2068 | resultobj = t_output_helper(resultobj,o); | |
2069 | } | |
2070 | return resultobj; | |
2071 | fail: | |
2072 | return NULL; | |
2073 | } | |
2074 | ||
2075 | ||
2076 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2077 | PyObject *resultobj; | |
2078 | bool result; | |
2079 | char *kwnames[] = { | |
2080 | NULL | |
2081 | }; | |
2082 | ||
2083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
2084 | { | |
2085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2086 | result = (bool)wxIsBusy(); | |
2087 | ||
2088 | wxPyEndAllowThreads(__tstate); | |
2089 | if (PyErr_Occurred()) SWIG_fail; | |
2090 | } | |
4e760a36 | 2091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2092 | return resultobj; |
2093 | fail: | |
2094 | return NULL; | |
2095 | } | |
2096 | ||
2097 | ||
2098 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2099 | PyObject *resultobj; | |
2100 | wxString result; | |
2101 | char *kwnames[] = { | |
2102 | NULL | |
2103 | }; | |
2104 | ||
2105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
2106 | { | |
2107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2108 | result = wxNow(); | |
2109 | ||
2110 | wxPyEndAllowThreads(__tstate); | |
2111 | if (PyErr_Occurred()) SWIG_fail; | |
2112 | } | |
2113 | { | |
2114 | #if wxUSE_UNICODE | |
2115 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2116 | #else | |
2117 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2118 | #endif | |
2119 | } | |
2120 | return resultobj; | |
2121 | fail: | |
2122 | return NULL; | |
2123 | } | |
2124 | ||
2125 | ||
2126 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2127 | PyObject *resultobj; | |
2128 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2129 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2130 | bool result; | |
423f194a | 2131 | bool temp1 = False ; |
d14a1e28 RD |
2132 | PyObject * obj0 = 0 ; |
2133 | char *kwnames[] = { | |
2134 | (char *) "command", NULL | |
2135 | }; | |
2136 | ||
2137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
2138 | if (obj0) { | |
2139 | { | |
2140 | arg1 = wxString_in_helper(obj0); | |
2141 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2142 | temp1 = True; |
d14a1e28 RD |
2143 | } |
2144 | } | |
2145 | { | |
2146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2147 | result = (bool)wxShell((wxString const &)*arg1); | |
2148 | ||
2149 | wxPyEndAllowThreads(__tstate); | |
2150 | if (PyErr_Occurred()) SWIG_fail; | |
2151 | } | |
4e760a36 | 2152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2153 | { |
2154 | if (temp1) | |
2155 | delete arg1; | |
2156 | } | |
2157 | return resultobj; | |
2158 | fail: | |
2159 | { | |
2160 | if (temp1) | |
2161 | delete arg1; | |
2162 | } | |
2163 | return NULL; | |
2164 | } | |
2165 | ||
2166 | ||
2167 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2168 | PyObject *resultobj; | |
2169 | char *kwnames[] = { | |
2170 | NULL | |
2171 | }; | |
2172 | ||
2173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2174 | { | |
2175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2176 | wxStartTimer(); | |
2177 | ||
2178 | wxPyEndAllowThreads(__tstate); | |
2179 | if (PyErr_Occurred()) SWIG_fail; | |
2180 | } | |
2181 | Py_INCREF(Py_None); resultobj = Py_None; | |
2182 | return resultobj; | |
2183 | fail: | |
2184 | return NULL; | |
2185 | } | |
2186 | ||
2187 | ||
2188 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2189 | PyObject *resultobj; | |
2190 | int *arg1 = (int *) 0 ; | |
2191 | int *arg2 = (int *) 0 ; | |
2192 | int result; | |
2193 | int temp1 ; | |
2194 | int temp2 ; | |
2195 | char *kwnames[] = { | |
2196 | NULL | |
2197 | }; | |
2198 | ||
2199 | arg1 = &temp1; | |
2200 | arg2 = &temp2; | |
2201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
2202 | { | |
2203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2204 | result = (int)wxGetOsVersion(arg1,arg2); | |
2205 | ||
2206 | wxPyEndAllowThreads(__tstate); | |
2207 | if (PyErr_Occurred()) SWIG_fail; | |
2208 | } | |
2f4c0a16 | 2209 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2210 | { |
2211 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2212 | resultobj = t_output_helper(resultobj,o); | |
2213 | } | |
2214 | { | |
2215 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2216 | resultobj = t_output_helper(resultobj,o); | |
2217 | } | |
2218 | return resultobj; | |
2219 | fail: | |
2220 | return NULL; | |
2221 | } | |
2222 | ||
2223 | ||
2224 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2225 | PyObject *resultobj; | |
2226 | wxString result; | |
2227 | char *kwnames[] = { | |
2228 | NULL | |
2229 | }; | |
2230 | ||
2231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2232 | { | |
2233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2234 | result = wxGetOsDescription(); | |
2235 | ||
2236 | wxPyEndAllowThreads(__tstate); | |
2237 | if (PyErr_Occurred()) SWIG_fail; | |
2238 | } | |
2239 | { | |
2240 | #if wxUSE_UNICODE | |
2241 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2242 | #else | |
2243 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2244 | #endif | |
2245 | } | |
2246 | return resultobj; | |
2247 | fail: | |
2248 | return NULL; | |
2249 | } | |
2250 | ||
2251 | ||
2252 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2253 | PyObject *resultobj; | |
2254 | long result; | |
2255 | char *kwnames[] = { | |
2256 | NULL | |
2257 | }; | |
2258 | ||
2259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2260 | { | |
2261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2262 | result = (long)wxGetFreeMemory(); | |
2263 | ||
2264 | wxPyEndAllowThreads(__tstate); | |
2265 | if (PyErr_Occurred()) SWIG_fail; | |
2266 | } | |
2f4c0a16 | 2267 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2268 | return resultobj; |
2269 | fail: | |
2270 | return NULL; | |
2271 | } | |
2272 | ||
2273 | ||
2274 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2275 | PyObject *resultobj; | |
2276 | int arg1 ; | |
2277 | bool result; | |
8edf1c75 | 2278 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2279 | char *kwnames[] = { |
2280 | (char *) "wFlags", NULL | |
2281 | }; | |
2282 | ||
8edf1c75 | 2283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
2284 | arg1 = (wxShutdownFlags) SWIG_AsInt(obj0); |
2285 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2286 | { |
2287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2288 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2289 | ||
2290 | wxPyEndAllowThreads(__tstate); | |
2291 | if (PyErr_Occurred()) SWIG_fail; | |
2292 | } | |
4e760a36 | 2293 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2294 | return resultobj; |
2295 | fail: | |
2296 | return NULL; | |
2297 | } | |
2298 | ||
2299 | ||
2300 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2301 | PyObject *resultobj; | |
2302 | int arg1 ; | |
8edf1c75 | 2303 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2304 | char *kwnames[] = { |
2305 | (char *) "secs", NULL | |
2306 | }; | |
2307 | ||
8edf1c75 | 2308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
2309 | arg1 = (int) SWIG_AsInt(obj0); |
2310 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2311 | { |
2312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2313 | wxSleep(arg1); | |
2314 | ||
2315 | wxPyEndAllowThreads(__tstate); | |
2316 | if (PyErr_Occurred()) SWIG_fail; | |
2317 | } | |
2318 | Py_INCREF(Py_None); resultobj = Py_None; | |
2319 | return resultobj; | |
2320 | fail: | |
2321 | return NULL; | |
2322 | } | |
2323 | ||
2324 | ||
2325 | static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2326 | PyObject *resultobj; | |
2327 | unsigned long arg1 ; | |
2328 | PyObject * obj0 = 0 ; | |
2329 | char *kwnames[] = { | |
2330 | (char *) "milliseconds", NULL | |
2331 | }; | |
2332 | ||
2333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2334 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
2335 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2336 | { |
2337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2338 | wxUsleep(arg1); | |
2339 | ||
2340 | wxPyEndAllowThreads(__tstate); | |
2341 | if (PyErr_Occurred()) SWIG_fail; | |
2342 | } | |
2343 | Py_INCREF(Py_None); resultobj = Py_None; | |
2344 | return resultobj; | |
2345 | fail: | |
2346 | return NULL; | |
2347 | } | |
2348 | ||
2349 | ||
2350 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2351 | PyObject *resultobj; | |
2352 | bool arg1 ; | |
2353 | PyObject * obj0 = 0 ; | |
2354 | char *kwnames[] = { | |
2355 | (char *) "enable", NULL | |
2356 | }; | |
2357 | ||
2358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2359 | arg1 = (bool) SWIG_AsBool(obj0); |
2360 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2361 | { |
2362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2363 | wxEnableTopLevelWindows(arg1); | |
2364 | ||
2365 | wxPyEndAllowThreads(__tstate); | |
2366 | if (PyErr_Occurred()) SWIG_fail; | |
2367 | } | |
2368 | Py_INCREF(Py_None); resultobj = Py_None; | |
2369 | return resultobj; | |
2370 | fail: | |
2371 | return NULL; | |
2372 | } | |
2373 | ||
2374 | ||
2375 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2376 | PyObject *resultobj; | |
2377 | wxString *arg1 = 0 ; | |
2378 | wxString result; | |
423f194a | 2379 | bool temp1 = False ; |
d14a1e28 RD |
2380 | PyObject * obj0 = 0 ; |
2381 | char *kwnames[] = { | |
2382 | (char *) "in", NULL | |
2383 | }; | |
2384 | ||
2385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2386 | { | |
2387 | arg1 = wxString_in_helper(obj0); | |
2388 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2389 | temp1 = True; |
d14a1e28 RD |
2390 | } |
2391 | { | |
2392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2393 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2394 | ||
2395 | wxPyEndAllowThreads(__tstate); | |
2396 | if (PyErr_Occurred()) SWIG_fail; | |
2397 | } | |
2398 | { | |
2399 | #if wxUSE_UNICODE | |
2400 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2401 | #else | |
2402 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2403 | #endif | |
2404 | } | |
2405 | { | |
2406 | if (temp1) | |
2407 | delete arg1; | |
2408 | } | |
2409 | return resultobj; | |
2410 | fail: | |
2411 | { | |
2412 | if (temp1) | |
2413 | delete arg1; | |
2414 | } | |
2415 | return NULL; | |
2416 | } | |
2417 | ||
2418 | ||
2419 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2420 | PyObject *resultobj; | |
2421 | wxString result; | |
2422 | char *kwnames[] = { | |
2423 | NULL | |
2424 | }; | |
2425 | ||
2426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2427 | { | |
2428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2429 | result = wxGetEmailAddress(); | |
2430 | ||
2431 | wxPyEndAllowThreads(__tstate); | |
2432 | if (PyErr_Occurred()) SWIG_fail; | |
2433 | } | |
2434 | { | |
2435 | #if wxUSE_UNICODE | |
2436 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2437 | #else | |
2438 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2439 | #endif | |
2440 | } | |
2441 | return resultobj; | |
2442 | fail: | |
2443 | return NULL; | |
2444 | } | |
2445 | ||
2446 | ||
2447 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2448 | PyObject *resultobj; | |
2449 | wxString result; | |
2450 | char *kwnames[] = { | |
2451 | NULL | |
2452 | }; | |
2453 | ||
2454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2455 | { | |
2456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2457 | result = wxGetHostName(); | |
2458 | ||
2459 | wxPyEndAllowThreads(__tstate); | |
2460 | if (PyErr_Occurred()) SWIG_fail; | |
2461 | } | |
2462 | { | |
2463 | #if wxUSE_UNICODE | |
2464 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2465 | #else | |
2466 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2467 | #endif | |
2468 | } | |
2469 | return resultobj; | |
2470 | fail: | |
2471 | return NULL; | |
2472 | } | |
2473 | ||
2474 | ||
2475 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2476 | PyObject *resultobj; | |
2477 | wxString result; | |
2478 | char *kwnames[] = { | |
2479 | NULL | |
2480 | }; | |
2481 | ||
2482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2483 | { | |
2484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2485 | result = wxGetFullHostName(); | |
2486 | ||
2487 | wxPyEndAllowThreads(__tstate); | |
2488 | if (PyErr_Occurred()) SWIG_fail; | |
2489 | } | |
2490 | { | |
2491 | #if wxUSE_UNICODE | |
2492 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2493 | #else | |
2494 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2495 | #endif | |
2496 | } | |
2497 | return resultobj; | |
2498 | fail: | |
2499 | return NULL; | |
2500 | } | |
2501 | ||
2502 | ||
2503 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2504 | PyObject *resultobj; | |
2505 | wxString result; | |
2506 | char *kwnames[] = { | |
2507 | NULL | |
2508 | }; | |
2509 | ||
2510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2511 | { | |
2512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2513 | result = wxGetUserId(); | |
2514 | ||
2515 | wxPyEndAllowThreads(__tstate); | |
2516 | if (PyErr_Occurred()) SWIG_fail; | |
2517 | } | |
2518 | { | |
2519 | #if wxUSE_UNICODE | |
2520 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2521 | #else | |
2522 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2523 | #endif | |
2524 | } | |
2525 | return resultobj; | |
2526 | fail: | |
2527 | return NULL; | |
2528 | } | |
2529 | ||
2530 | ||
2531 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2532 | PyObject *resultobj; | |
2533 | wxString result; | |
2534 | char *kwnames[] = { | |
2535 | NULL | |
2536 | }; | |
2537 | ||
2538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2539 | { | |
2540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2541 | result = wxGetUserName(); | |
2542 | ||
2543 | wxPyEndAllowThreads(__tstate); | |
2544 | if (PyErr_Occurred()) SWIG_fail; | |
2545 | } | |
2546 | { | |
2547 | #if wxUSE_UNICODE | |
2548 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2549 | #else | |
2550 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2551 | #endif | |
2552 | } | |
2553 | return resultobj; | |
2554 | fail: | |
2555 | return NULL; | |
2556 | } | |
2557 | ||
2558 | ||
2559 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2560 | PyObject *resultobj; | |
2561 | wxString result; | |
2562 | char *kwnames[] = { | |
2563 | NULL | |
2564 | }; | |
2565 | ||
2566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2567 | { | |
2568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2569 | result = wxGetHomeDir(); | |
2570 | ||
2571 | wxPyEndAllowThreads(__tstate); | |
2572 | if (PyErr_Occurred()) SWIG_fail; | |
2573 | } | |
2574 | { | |
2575 | #if wxUSE_UNICODE | |
2576 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2577 | #else | |
2578 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2579 | #endif | |
2580 | } | |
2581 | return resultobj; | |
2582 | fail: | |
2583 | return NULL; | |
2584 | } | |
2585 | ||
2586 | ||
2587 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2588 | PyObject *resultobj; | |
2589 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2590 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2591 | wxString result; | |
423f194a | 2592 | bool temp1 = False ; |
d14a1e28 RD |
2593 | PyObject * obj0 = 0 ; |
2594 | char *kwnames[] = { | |
2595 | (char *) "user", NULL | |
2596 | }; | |
2597 | ||
2598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2599 | if (obj0) { | |
2600 | { | |
2601 | arg1 = wxString_in_helper(obj0); | |
2602 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2603 | temp1 = True; |
d14a1e28 RD |
2604 | } |
2605 | } | |
2606 | { | |
2607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2608 | result = wxGetUserHome((wxString const &)*arg1); | |
2609 | ||
2610 | wxPyEndAllowThreads(__tstate); | |
2611 | if (PyErr_Occurred()) SWIG_fail; | |
2612 | } | |
2613 | { | |
2614 | #if wxUSE_UNICODE | |
2615 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2616 | #else | |
2617 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2618 | #endif | |
2619 | } | |
2620 | { | |
2621 | if (temp1) | |
2622 | delete arg1; | |
2623 | } | |
2624 | return resultobj; | |
2625 | fail: | |
2626 | { | |
2627 | if (temp1) | |
2628 | delete arg1; | |
2629 | } | |
2630 | return NULL; | |
2631 | } | |
2632 | ||
2633 | ||
2634 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2635 | PyObject *resultobj; | |
2636 | unsigned long result; | |
2637 | char *kwnames[] = { | |
2638 | NULL | |
2639 | }; | |
2640 | ||
2641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2642 | { | |
2643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2644 | result = (unsigned long)wxGetProcessId(); | |
2645 | ||
2646 | wxPyEndAllowThreads(__tstate); | |
2647 | if (PyErr_Occurred()) SWIG_fail; | |
2648 | } | |
2f4c0a16 | 2649 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
2650 | return resultobj; |
2651 | fail: | |
2652 | return NULL; | |
2653 | } | |
2654 | ||
2655 | ||
2656 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2657 | PyObject *resultobj; | |
2658 | char *kwnames[] = { | |
2659 | NULL | |
2660 | }; | |
2661 | ||
2662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
2663 | { | |
2664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2665 | wxTrap(); | |
2666 | ||
2667 | wxPyEndAllowThreads(__tstate); | |
2668 | if (PyErr_Occurred()) SWIG_fail; | |
2669 | } | |
2670 | Py_INCREF(Py_None); resultobj = Py_None; | |
2671 | return resultobj; | |
2672 | fail: | |
2673 | return NULL; | |
2674 | } | |
2675 | ||
2676 | ||
2677 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2678 | PyObject *resultobj; | |
2679 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
2680 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2681 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2682 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2683 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2684 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2685 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2686 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2687 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
2688 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2689 | int arg6 = (int) 0 ; | |
2690 | wxWindow *arg7 = (wxWindow *) NULL ; | |
2691 | int arg8 = (int) -1 ; | |
2692 | int arg9 = (int) -1 ; | |
2693 | wxString result; | |
423f194a RD |
2694 | bool temp1 = False ; |
2695 | bool temp2 = False ; | |
2696 | bool temp3 = False ; | |
2697 | bool temp4 = False ; | |
2698 | bool temp5 = False ; | |
d14a1e28 RD |
2699 | PyObject * obj0 = 0 ; |
2700 | PyObject * obj1 = 0 ; | |
2701 | PyObject * obj2 = 0 ; | |
2702 | PyObject * obj3 = 0 ; | |
2703 | PyObject * obj4 = 0 ; | |
8edf1c75 | 2704 | PyObject * obj5 = 0 ; |
d14a1e28 | 2705 | PyObject * obj6 = 0 ; |
8edf1c75 RD |
2706 | PyObject * obj7 = 0 ; |
2707 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
2708 | char *kwnames[] = { |
2709 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
2710 | }; | |
2711 | ||
8edf1c75 | 2712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
2713 | if (obj0) { |
2714 | { | |
2715 | arg1 = wxString_in_helper(obj0); | |
2716 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2717 | temp1 = True; |
d14a1e28 RD |
2718 | } |
2719 | } | |
2720 | if (obj1) { | |
2721 | { | |
2722 | arg2 = wxString_in_helper(obj1); | |
2723 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2724 | temp2 = True; |
d14a1e28 RD |
2725 | } |
2726 | } | |
2727 | if (obj2) { | |
2728 | { | |
2729 | arg3 = wxString_in_helper(obj2); | |
2730 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2731 | temp3 = True; |
d14a1e28 RD |
2732 | } |
2733 | } | |
2734 | if (obj3) { | |
2735 | { | |
2736 | arg4 = wxString_in_helper(obj3); | |
2737 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 2738 | temp4 = True; |
d14a1e28 RD |
2739 | } |
2740 | } | |
2741 | if (obj4) { | |
2742 | { | |
2743 | arg5 = wxString_in_helper(obj4); | |
2744 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 2745 | temp5 = True; |
d14a1e28 RD |
2746 | } |
2747 | } | |
8edf1c75 | 2748 | if (obj5) { |
2f4c0a16 RD |
2749 | arg6 = (int) SWIG_AsInt(obj5); |
2750 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2751 | } |
d14a1e28 | 2752 | if (obj6) { |
2f4c0a16 RD |
2753 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, |
2754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 2755 | } |
8edf1c75 | 2756 | if (obj7) { |
2f4c0a16 RD |
2757 | arg8 = (int) SWIG_AsInt(obj7); |
2758 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
2759 | } |
2760 | if (obj8) { | |
2f4c0a16 RD |
2761 | arg9 = (int) SWIG_AsInt(obj8); |
2762 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2763 | } |
d14a1e28 RD |
2764 | { |
2765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2766 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
2767 | ||
2768 | wxPyEndAllowThreads(__tstate); | |
2769 | if (PyErr_Occurred()) SWIG_fail; | |
2770 | } | |
2771 | { | |
2772 | #if wxUSE_UNICODE | |
2773 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2774 | #else | |
2775 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2776 | #endif | |
2777 | } | |
2778 | { | |
2779 | if (temp1) | |
2780 | delete arg1; | |
2781 | } | |
2782 | { | |
2783 | if (temp2) | |
2784 | delete arg2; | |
2785 | } | |
2786 | { | |
2787 | if (temp3) | |
2788 | delete arg3; | |
2789 | } | |
2790 | { | |
2791 | if (temp4) | |
2792 | delete arg4; | |
2793 | } | |
2794 | { | |
2795 | if (temp5) | |
2796 | delete arg5; | |
2797 | } | |
2798 | return resultobj; | |
2799 | fail: | |
2800 | { | |
2801 | if (temp1) | |
2802 | delete arg1; | |
2803 | } | |
2804 | { | |
2805 | if (temp2) | |
2806 | delete arg2; | |
2807 | } | |
2808 | { | |
2809 | if (temp3) | |
2810 | delete arg3; | |
2811 | } | |
2812 | { | |
2813 | if (temp4) | |
2814 | delete arg4; | |
2815 | } | |
2816 | { | |
2817 | if (temp5) | |
2818 | delete arg5; | |
2819 | } | |
2820 | return NULL; | |
2821 | } | |
2822 | ||
2823 | ||
2824 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2825 | PyObject *resultobj; | |
2826 | wxString *arg1 = 0 ; | |
2827 | wxString *arg2 = 0 ; | |
2828 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2829 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2830 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2831 | wxString result; | |
423f194a RD |
2832 | bool temp1 = False ; |
2833 | bool temp2 = False ; | |
2834 | bool temp3 = False ; | |
d14a1e28 RD |
2835 | PyObject * obj0 = 0 ; |
2836 | PyObject * obj1 = 0 ; | |
2837 | PyObject * obj2 = 0 ; | |
2838 | PyObject * obj3 = 0 ; | |
2839 | char *kwnames[] = { | |
2840 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2841 | }; | |
2842 | ||
2843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2844 | { | |
2845 | arg1 = wxString_in_helper(obj0); | |
2846 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2847 | temp1 = True; |
d14a1e28 RD |
2848 | } |
2849 | { | |
2850 | arg2 = wxString_in_helper(obj1); | |
2851 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2852 | temp2 = True; |
d14a1e28 RD |
2853 | } |
2854 | if (obj2) { | |
2855 | { | |
2856 | arg3 = wxString_in_helper(obj2); | |
2857 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2858 | temp3 = True; |
d14a1e28 RD |
2859 | } |
2860 | } | |
2861 | if (obj3) { | |
2f4c0a16 RD |
2862 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
2863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2864 | } |
2865 | { | |
2866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2867 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2868 | ||
2869 | wxPyEndAllowThreads(__tstate); | |
2870 | if (PyErr_Occurred()) SWIG_fail; | |
2871 | } | |
2872 | { | |
2873 | #if wxUSE_UNICODE | |
2874 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2875 | #else | |
2876 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2877 | #endif | |
2878 | } | |
2879 | { | |
2880 | if (temp1) | |
2881 | delete arg1; | |
2882 | } | |
2883 | { | |
2884 | if (temp2) | |
2885 | delete arg2; | |
2886 | } | |
2887 | { | |
2888 | if (temp3) | |
2889 | delete arg3; | |
2890 | } | |
2891 | return resultobj; | |
2892 | fail: | |
2893 | { | |
2894 | if (temp1) | |
2895 | delete arg1; | |
2896 | } | |
2897 | { | |
2898 | if (temp2) | |
2899 | delete arg2; | |
2900 | } | |
2901 | { | |
2902 | if (temp3) | |
2903 | delete arg3; | |
2904 | } | |
2905 | return NULL; | |
2906 | } | |
2907 | ||
2908 | ||
2909 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2910 | PyObject *resultobj; | |
2911 | wxString *arg1 = 0 ; | |
2912 | wxString *arg2 = 0 ; | |
2913 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2914 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2915 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2916 | wxString result; | |
423f194a RD |
2917 | bool temp1 = False ; |
2918 | bool temp2 = False ; | |
2919 | bool temp3 = False ; | |
d14a1e28 RD |
2920 | PyObject * obj0 = 0 ; |
2921 | PyObject * obj1 = 0 ; | |
2922 | PyObject * obj2 = 0 ; | |
2923 | PyObject * obj3 = 0 ; | |
2924 | char *kwnames[] = { | |
2925 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2926 | }; | |
2927 | ||
2928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2929 | { | |
2930 | arg1 = wxString_in_helper(obj0); | |
2931 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2932 | temp1 = True; |
d14a1e28 RD |
2933 | } |
2934 | { | |
2935 | arg2 = wxString_in_helper(obj1); | |
2936 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2937 | temp2 = True; |
d14a1e28 RD |
2938 | } |
2939 | if (obj2) { | |
2940 | { | |
2941 | arg3 = wxString_in_helper(obj2); | |
2942 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2943 | temp3 = True; |
d14a1e28 RD |
2944 | } |
2945 | } | |
2946 | if (obj3) { | |
2f4c0a16 RD |
2947 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
2948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2949 | } |
2950 | { | |
2951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2952 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2953 | ||
2954 | wxPyEndAllowThreads(__tstate); | |
2955 | if (PyErr_Occurred()) SWIG_fail; | |
2956 | } | |
2957 | { | |
2958 | #if wxUSE_UNICODE | |
2959 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2960 | #else | |
2961 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2962 | #endif | |
2963 | } | |
2964 | { | |
2965 | if (temp1) | |
2966 | delete arg1; | |
2967 | } | |
2968 | { | |
2969 | if (temp2) | |
2970 | delete arg2; | |
2971 | } | |
2972 | { | |
2973 | if (temp3) | |
2974 | delete arg3; | |
2975 | } | |
2976 | return resultobj; | |
2977 | fail: | |
2978 | { | |
2979 | if (temp1) | |
2980 | delete arg1; | |
2981 | } | |
2982 | { | |
2983 | if (temp2) | |
2984 | delete arg2; | |
2985 | } | |
2986 | { | |
2987 | if (temp3) | |
2988 | delete arg3; | |
2989 | } | |
2990 | return NULL; | |
2991 | } | |
2992 | ||
2993 | ||
2994 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2995 | PyObject *resultobj; | |
2996 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
2997 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2998 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2999 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3000 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
3001 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3002 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3003 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3004 | wxString result; | |
423f194a RD |
3005 | bool temp1 = False ; |
3006 | bool temp2 = False ; | |
d14a1e28 RD |
3007 | wxPoint temp4 ; |
3008 | PyObject * obj0 = 0 ; | |
3009 | PyObject * obj1 = 0 ; | |
8edf1c75 | 3010 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3011 | PyObject * obj3 = 0 ; |
3012 | PyObject * obj4 = 0 ; | |
3013 | char *kwnames[] = { | |
3014 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
3015 | }; | |
3016 | ||
8edf1c75 | 3017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
3018 | if (obj0) { |
3019 | { | |
3020 | arg1 = wxString_in_helper(obj0); | |
3021 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3022 | temp1 = True; |
d14a1e28 RD |
3023 | } |
3024 | } | |
3025 | if (obj1) { | |
3026 | { | |
3027 | arg2 = wxString_in_helper(obj1); | |
3028 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3029 | temp2 = True; |
d14a1e28 RD |
3030 | } |
3031 | } | |
8edf1c75 | 3032 | if (obj2) { |
2f4c0a16 RD |
3033 | arg3 = (long) SWIG_AsLong(obj2); |
3034 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3035 | } |
d14a1e28 RD |
3036 | if (obj3) { |
3037 | { | |
3038 | arg4 = &temp4; | |
3039 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3040 | } | |
3041 | } | |
3042 | if (obj4) { | |
2f4c0a16 RD |
3043 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3045 | } |
3046 | { | |
3047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3048 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
3049 | ||
3050 | wxPyEndAllowThreads(__tstate); | |
3051 | if (PyErr_Occurred()) SWIG_fail; | |
3052 | } | |
3053 | { | |
3054 | #if wxUSE_UNICODE | |
3055 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3056 | #else | |
3057 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3058 | #endif | |
3059 | } | |
3060 | { | |
3061 | if (temp1) | |
3062 | delete arg1; | |
3063 | } | |
3064 | { | |
3065 | if (temp2) | |
3066 | delete arg2; | |
3067 | } | |
3068 | return resultobj; | |
3069 | fail: | |
3070 | { | |
3071 | if (temp1) | |
3072 | delete arg1; | |
3073 | } | |
3074 | { | |
3075 | if (temp2) | |
3076 | delete arg2; | |
3077 | } | |
3078 | return NULL; | |
3079 | } | |
3080 | ||
3081 | ||
3082 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3083 | PyObject *resultobj; | |
3084 | wxString *arg1 = 0 ; | |
3085 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3086 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3087 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3088 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3089 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3090 | int arg5 = (int) -1 ; | |
3091 | int arg6 = (int) -1 ; | |
423f194a | 3092 | bool arg7 = (bool) True ; |
d14a1e28 | 3093 | wxString result; |
423f194a RD |
3094 | bool temp1 = False ; |
3095 | bool temp2 = False ; | |
3096 | bool temp3 = False ; | |
d14a1e28 RD |
3097 | PyObject * obj0 = 0 ; |
3098 | PyObject * obj1 = 0 ; | |
3099 | PyObject * obj2 = 0 ; | |
3100 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
3101 | PyObject * obj4 = 0 ; |
3102 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
3103 | PyObject * obj6 = 0 ; |
3104 | char *kwnames[] = { | |
3105 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
3106 | }; | |
3107 | ||
8edf1c75 | 3108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
3109 | { |
3110 | arg1 = wxString_in_helper(obj0); | |
3111 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3112 | temp1 = True; |
d14a1e28 RD |
3113 | } |
3114 | if (obj1) { | |
3115 | { | |
3116 | arg2 = wxString_in_helper(obj1); | |
3117 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3118 | temp2 = True; |
d14a1e28 RD |
3119 | } |
3120 | } | |
3121 | if (obj2) { | |
3122 | { | |
3123 | arg3 = wxString_in_helper(obj2); | |
3124 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 3125 | temp3 = True; |
d14a1e28 RD |
3126 | } |
3127 | } | |
3128 | if (obj3) { | |
2f4c0a16 RD |
3129 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3131 | } |
8edf1c75 | 3132 | if (obj4) { |
2f4c0a16 RD |
3133 | arg5 = (int) SWIG_AsInt(obj4); |
3134 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3135 | } |
3136 | if (obj5) { | |
2f4c0a16 RD |
3137 | arg6 = (int) SWIG_AsInt(obj5); |
3138 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3139 | } |
d14a1e28 | 3140 | if (obj6) { |
2f4c0a16 RD |
3141 | arg7 = (bool) SWIG_AsBool(obj6); |
3142 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3143 | } |
3144 | { | |
3145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3146 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
3147 | ||
3148 | wxPyEndAllowThreads(__tstate); | |
3149 | if (PyErr_Occurred()) SWIG_fail; | |
3150 | } | |
3151 | { | |
3152 | #if wxUSE_UNICODE | |
3153 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3154 | #else | |
3155 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3156 | #endif | |
3157 | } | |
3158 | { | |
3159 | if (temp1) | |
3160 | delete arg1; | |
3161 | } | |
3162 | { | |
3163 | if (temp2) | |
3164 | delete arg2; | |
3165 | } | |
3166 | { | |
3167 | if (temp3) | |
3168 | delete arg3; | |
3169 | } | |
3170 | return resultobj; | |
3171 | fail: | |
3172 | { | |
3173 | if (temp1) | |
3174 | delete arg1; | |
3175 | } | |
3176 | { | |
3177 | if (temp2) | |
3178 | delete arg2; | |
3179 | } | |
3180 | { | |
3181 | if (temp3) | |
3182 | delete arg3; | |
3183 | } | |
3184 | return NULL; | |
3185 | } | |
3186 | ||
3187 | ||
3188 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3189 | PyObject *resultobj; | |
3190 | wxString *arg1 = 0 ; | |
3191 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3192 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3193 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3194 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3195 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3196 | wxString result; | |
423f194a RD |
3197 | bool temp1 = False ; |
3198 | bool temp2 = False ; | |
3199 | bool temp3 = False ; | |
d14a1e28 RD |
3200 | PyObject * obj0 = 0 ; |
3201 | PyObject * obj1 = 0 ; | |
3202 | PyObject * obj2 = 0 ; | |
3203 | PyObject * obj3 = 0 ; | |
3204 | char *kwnames[] = { | |
3205 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3206 | }; | |
3207 | ||
3208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3209 | { | |
3210 | arg1 = wxString_in_helper(obj0); | |
3211 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3212 | temp1 = True; |
d14a1e28 RD |
3213 | } |
3214 | if (obj1) { | |
3215 | { | |
3216 | arg2 = wxString_in_helper(obj1); | |
3217 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3218 | temp2 = True; |
d14a1e28 RD |
3219 | } |
3220 | } | |
3221 | if (obj2) { | |
3222 | { | |
3223 | arg3 = wxString_in_helper(obj2); | |
3224 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 3225 | temp3 = True; |
d14a1e28 RD |
3226 | } |
3227 | } | |
3228 | if (obj3) { | |
2f4c0a16 RD |
3229 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3231 | } |
3232 | { | |
3233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3234 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3235 | ||
3236 | wxPyEndAllowThreads(__tstate); | |
3237 | if (PyErr_Occurred()) SWIG_fail; | |
3238 | } | |
3239 | { | |
3240 | #if wxUSE_UNICODE | |
3241 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3242 | #else | |
3243 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3244 | #endif | |
3245 | } | |
3246 | { | |
3247 | if (temp1) | |
3248 | delete arg1; | |
3249 | } | |
3250 | { | |
3251 | if (temp2) | |
3252 | delete arg2; | |
3253 | } | |
3254 | { | |
3255 | if (temp3) | |
3256 | delete arg3; | |
3257 | } | |
3258 | return resultobj; | |
3259 | fail: | |
3260 | { | |
3261 | if (temp1) | |
3262 | delete arg1; | |
3263 | } | |
3264 | { | |
3265 | if (temp2) | |
3266 | delete arg2; | |
3267 | } | |
3268 | { | |
3269 | if (temp3) | |
3270 | delete arg3; | |
3271 | } | |
3272 | return NULL; | |
3273 | } | |
3274 | ||
3275 | ||
3276 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3277 | PyObject *resultobj; | |
3278 | wxString *arg1 = 0 ; | |
3279 | wxString *arg2 = 0 ; | |
3280 | int arg3 ; | |
3281 | wxString *arg4 = (wxString *) 0 ; | |
3282 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3283 | int arg6 = (int) -1 ; | |
3284 | int arg7 = (int) -1 ; | |
423f194a | 3285 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3286 | int arg9 = (int) 150 ; |
3287 | int arg10 = (int) 200 ; | |
3288 | wxString result; | |
423f194a RD |
3289 | bool temp1 = False ; |
3290 | bool temp2 = False ; | |
d14a1e28 RD |
3291 | PyObject * obj0 = 0 ; |
3292 | PyObject * obj1 = 0 ; | |
3293 | PyObject * obj2 = 0 ; | |
3294 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
3295 | PyObject * obj4 = 0 ; |
3296 | PyObject * obj5 = 0 ; | |
d14a1e28 | 3297 | PyObject * obj6 = 0 ; |
8edf1c75 RD |
3298 | PyObject * obj7 = 0 ; |
3299 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
3300 | char *kwnames[] = { |
3301 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3302 | }; | |
3303 | ||
8edf1c75 | 3304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3305 | { |
3306 | arg1 = wxString_in_helper(obj0); | |
3307 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3308 | temp1 = True; |
d14a1e28 RD |
3309 | } |
3310 | { | |
3311 | arg2 = wxString_in_helper(obj1); | |
3312 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3313 | temp2 = True; |
d14a1e28 RD |
3314 | } |
3315 | { | |
3316 | arg3 = PyList_Size(obj2); | |
3317 | arg4 = wxString_LIST_helper(obj2); | |
3318 | if (arg4 == NULL) SWIG_fail; | |
3319 | } | |
3320 | if (obj3) { | |
2f4c0a16 RD |
3321 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3323 | } |
8edf1c75 | 3324 | if (obj4) { |
2f4c0a16 RD |
3325 | arg6 = (int) SWIG_AsInt(obj4); |
3326 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3327 | } |
3328 | if (obj5) { | |
2f4c0a16 RD |
3329 | arg7 = (int) SWIG_AsInt(obj5); |
3330 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3331 | } |
d14a1e28 | 3332 | if (obj6) { |
2f4c0a16 RD |
3333 | arg8 = (bool) SWIG_AsBool(obj6); |
3334 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3335 | } |
3336 | if (obj7) { | |
2f4c0a16 RD |
3337 | arg9 = (int) SWIG_AsInt(obj7); |
3338 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3339 | } |
3340 | if (obj8) { | |
2f4c0a16 RD |
3341 | arg10 = (int) SWIG_AsInt(obj8); |
3342 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3343 | } |
3344 | { | |
3345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3346 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3347 | ||
3348 | wxPyEndAllowThreads(__tstate); | |
3349 | if (PyErr_Occurred()) SWIG_fail; | |
3350 | } | |
3351 | { | |
3352 | #if wxUSE_UNICODE | |
3353 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3354 | #else | |
3355 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3356 | #endif | |
3357 | } | |
3358 | { | |
3359 | if (temp1) | |
3360 | delete arg1; | |
3361 | } | |
3362 | { | |
3363 | if (temp2) | |
3364 | delete arg2; | |
3365 | } | |
3366 | { | |
3367 | if (arg4) delete [] arg4; | |
3368 | } | |
3369 | return resultobj; | |
3370 | fail: | |
3371 | { | |
3372 | if (temp1) | |
3373 | delete arg1; | |
3374 | } | |
3375 | { | |
3376 | if (temp2) | |
3377 | delete arg2; | |
3378 | } | |
3379 | { | |
3380 | if (arg4) delete [] arg4; | |
3381 | } | |
3382 | return NULL; | |
3383 | } | |
3384 | ||
3385 | ||
3386 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3387 | PyObject *resultobj; | |
3388 | wxString *arg1 = 0 ; | |
3389 | wxString *arg2 = 0 ; | |
3390 | int arg3 ; | |
3391 | wxString *arg4 = (wxString *) 0 ; | |
3392 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3393 | int arg6 = (int) -1 ; | |
3394 | int arg7 = (int) -1 ; | |
423f194a | 3395 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3396 | int arg9 = (int) 150 ; |
3397 | int arg10 = (int) 200 ; | |
3398 | int result; | |
423f194a RD |
3399 | bool temp1 = False ; |
3400 | bool temp2 = False ; | |
d14a1e28 RD |
3401 | PyObject * obj0 = 0 ; |
3402 | PyObject * obj1 = 0 ; | |
3403 | PyObject * obj2 = 0 ; | |
3404 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
3405 | PyObject * obj4 = 0 ; |
3406 | PyObject * obj5 = 0 ; | |
d14a1e28 | 3407 | PyObject * obj6 = 0 ; |
8edf1c75 RD |
3408 | PyObject * obj7 = 0 ; |
3409 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
3410 | char *kwnames[] = { |
3411 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3412 | }; | |
3413 | ||
8edf1c75 | 3414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3415 | { |
3416 | arg1 = wxString_in_helper(obj0); | |
3417 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3418 | temp1 = True; |
d14a1e28 RD |
3419 | } |
3420 | { | |
3421 | arg2 = wxString_in_helper(obj1); | |
3422 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3423 | temp2 = True; |
d14a1e28 RD |
3424 | } |
3425 | { | |
3426 | arg3 = PyList_Size(obj2); | |
3427 | arg4 = wxString_LIST_helper(obj2); | |
3428 | if (arg4 == NULL) SWIG_fail; | |
3429 | } | |
3430 | if (obj3) { | |
2f4c0a16 RD |
3431 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3433 | } |
8edf1c75 | 3434 | if (obj4) { |
2f4c0a16 RD |
3435 | arg6 = (int) SWIG_AsInt(obj4); |
3436 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3437 | } |
3438 | if (obj5) { | |
2f4c0a16 RD |
3439 | arg7 = (int) SWIG_AsInt(obj5); |
3440 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3441 | } |
d14a1e28 | 3442 | if (obj6) { |
2f4c0a16 RD |
3443 | arg8 = (bool) SWIG_AsBool(obj6); |
3444 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3445 | } |
3446 | if (obj7) { | |
2f4c0a16 RD |
3447 | arg9 = (int) SWIG_AsInt(obj7); |
3448 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3449 | } |
3450 | if (obj8) { | |
2f4c0a16 RD |
3451 | arg10 = (int) SWIG_AsInt(obj8); |
3452 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3453 | } |
3454 | { | |
3455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3456 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3457 | ||
3458 | wxPyEndAllowThreads(__tstate); | |
3459 | if (PyErr_Occurred()) SWIG_fail; | |
3460 | } | |
2f4c0a16 | 3461 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3462 | { |
3463 | if (temp1) | |
3464 | delete arg1; | |
3465 | } | |
3466 | { | |
3467 | if (temp2) | |
3468 | delete arg2; | |
3469 | } | |
3470 | { | |
3471 | if (arg4) delete [] arg4; | |
3472 | } | |
3473 | return resultobj; | |
3474 | fail: | |
3475 | { | |
3476 | if (temp1) | |
3477 | delete arg1; | |
3478 | } | |
3479 | { | |
3480 | if (temp2) | |
3481 | delete arg2; | |
3482 | } | |
3483 | { | |
3484 | if (arg4) delete [] arg4; | |
3485 | } | |
3486 | return NULL; | |
3487 | } | |
3488 | ||
3489 | ||
3490 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3491 | PyObject *resultobj; | |
3492 | wxString *arg1 = 0 ; | |
3493 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3494 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3495 | int arg3 = (int) wxOK|wxCENTRE ; | |
3496 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3497 | int arg5 = (int) -1 ; | |
3498 | int arg6 = (int) -1 ; | |
3499 | int result; | |
423f194a RD |
3500 | bool temp1 = False ; |
3501 | bool temp2 = False ; | |
d14a1e28 RD |
3502 | PyObject * obj0 = 0 ; |
3503 | PyObject * obj1 = 0 ; | |
8edf1c75 | 3504 | PyObject * obj2 = 0 ; |
d14a1e28 | 3505 | PyObject * obj3 = 0 ; |
8edf1c75 RD |
3506 | PyObject * obj4 = 0 ; |
3507 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
3508 | char *kwnames[] = { |
3509 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3510 | }; | |
3511 | ||
8edf1c75 | 3512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
3513 | { |
3514 | arg1 = wxString_in_helper(obj0); | |
3515 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3516 | temp1 = True; |
d14a1e28 RD |
3517 | } |
3518 | if (obj1) { | |
3519 | { | |
3520 | arg2 = wxString_in_helper(obj1); | |
3521 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3522 | temp2 = True; |
d14a1e28 RD |
3523 | } |
3524 | } | |
8edf1c75 | 3525 | if (obj2) { |
2f4c0a16 RD |
3526 | arg3 = (int) SWIG_AsInt(obj2); |
3527 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3528 | } |
d14a1e28 | 3529 | if (obj3) { |
2f4c0a16 RD |
3530 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3532 | } |
8edf1c75 | 3533 | if (obj4) { |
2f4c0a16 RD |
3534 | arg5 = (int) SWIG_AsInt(obj4); |
3535 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3536 | } |
3537 | if (obj5) { | |
2f4c0a16 RD |
3538 | arg6 = (int) SWIG_AsInt(obj5); |
3539 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3540 | } |
d14a1e28 RD |
3541 | { |
3542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3543 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3544 | ||
3545 | wxPyEndAllowThreads(__tstate); | |
3546 | if (PyErr_Occurred()) SWIG_fail; | |
3547 | } | |
2f4c0a16 | 3548 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3549 | { |
3550 | if (temp1) | |
3551 | delete arg1; | |
3552 | } | |
3553 | { | |
3554 | if (temp2) | |
3555 | delete arg2; | |
3556 | } | |
3557 | return resultobj; | |
3558 | fail: | |
3559 | { | |
3560 | if (temp1) | |
3561 | delete arg1; | |
3562 | } | |
3563 | { | |
3564 | if (temp2) | |
3565 | delete arg2; | |
3566 | } | |
3567 | return NULL; | |
3568 | } | |
3569 | ||
3570 | ||
3571 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3572 | PyObject *resultobj; | |
3573 | wxString *arg1 = 0 ; | |
3574 | wxString *arg2 = 0 ; | |
3575 | wxString *arg3 = 0 ; | |
3576 | long arg4 ; | |
3577 | long arg5 = (long) 0 ; | |
3578 | long arg6 = (long) 100 ; | |
3579 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3580 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3581 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3582 | long result; | |
423f194a RD |
3583 | bool temp1 = False ; |
3584 | bool temp2 = False ; | |
3585 | bool temp3 = False ; | |
d14a1e28 RD |
3586 | wxPoint temp8 ; |
3587 | PyObject * obj0 = 0 ; | |
3588 | PyObject * obj1 = 0 ; | |
3589 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
3590 | PyObject * obj3 = 0 ; |
3591 | PyObject * obj4 = 0 ; | |
3592 | PyObject * obj5 = 0 ; | |
3593 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
3594 | PyObject * obj7 = 0 ; |
3595 | char *kwnames[] = { | |
3596 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3597 | }; | |
3598 | ||
8edf1c75 | 3599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
3600 | { |
3601 | arg1 = wxString_in_helper(obj0); | |
3602 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3603 | temp1 = True; |
d14a1e28 RD |
3604 | } |
3605 | { | |
3606 | arg2 = wxString_in_helper(obj1); | |
3607 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3608 | temp2 = True; |
d14a1e28 RD |
3609 | } |
3610 | { | |
3611 | arg3 = wxString_in_helper(obj2); | |
3612 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 3613 | temp3 = True; |
d14a1e28 | 3614 | } |
2f4c0a16 RD |
3615 | arg4 = (long) SWIG_AsLong(obj3); |
3616 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3617 | if (obj4) { |
2f4c0a16 RD |
3618 | arg5 = (long) SWIG_AsLong(obj4); |
3619 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3620 | } |
3621 | if (obj5) { | |
2f4c0a16 RD |
3622 | arg6 = (long) SWIG_AsLong(obj5); |
3623 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3624 | } |
d14a1e28 | 3625 | if (obj6) { |
2f4c0a16 RD |
3626 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, |
3627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3628 | } |
3629 | if (obj7) { | |
3630 | { | |
3631 | arg8 = &temp8; | |
3632 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3633 | } | |
3634 | } | |
3635 | { | |
3636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3637 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3638 | ||
3639 | wxPyEndAllowThreads(__tstate); | |
3640 | if (PyErr_Occurred()) SWIG_fail; | |
3641 | } | |
2f4c0a16 | 3642 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3643 | { |
3644 | if (temp1) | |
3645 | delete arg1; | |
3646 | } | |
3647 | { | |
3648 | if (temp2) | |
3649 | delete arg2; | |
3650 | } | |
3651 | { | |
3652 | if (temp3) | |
3653 | delete arg3; | |
3654 | } | |
3655 | return resultobj; | |
3656 | fail: | |
3657 | { | |
3658 | if (temp1) | |
3659 | delete arg1; | |
3660 | } | |
3661 | { | |
3662 | if (temp2) | |
3663 | delete arg2; | |
3664 | } | |
3665 | { | |
3666 | if (temp3) | |
3667 | delete arg3; | |
3668 | } | |
3669 | return NULL; | |
3670 | } | |
3671 | ||
3672 | ||
3673 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3674 | PyObject *resultobj; | |
3675 | bool result; | |
3676 | char *kwnames[] = { | |
3677 | NULL | |
3678 | }; | |
3679 | ||
3680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
3681 | { | |
3682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3683 | result = (bool)wxColourDisplay(); | |
3684 | ||
3685 | wxPyEndAllowThreads(__tstate); | |
3686 | if (PyErr_Occurred()) SWIG_fail; | |
3687 | } | |
4e760a36 | 3688 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3689 | return resultobj; |
3690 | fail: | |
3691 | return NULL; | |
3692 | } | |
3693 | ||
3694 | ||
3695 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3696 | PyObject *resultobj; | |
3697 | int result; | |
3698 | char *kwnames[] = { | |
3699 | NULL | |
3700 | }; | |
3701 | ||
3702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
3703 | { | |
3704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3705 | result = (int)wxDisplayDepth(); | |
3706 | ||
3707 | wxPyEndAllowThreads(__tstate); | |
3708 | if (PyErr_Occurred()) SWIG_fail; | |
3709 | } | |
2f4c0a16 | 3710 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3711 | return resultobj; |
3712 | fail: | |
3713 | return NULL; | |
3714 | } | |
3715 | ||
3716 | ||
3717 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3718 | PyObject *resultobj; | |
3719 | int result; | |
3720 | char *kwnames[] = { | |
3721 | NULL | |
3722 | }; | |
3723 | ||
3724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
3725 | { | |
3726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3727 | result = (int)wxGetDisplayDepth(); | |
3728 | ||
3729 | wxPyEndAllowThreads(__tstate); | |
3730 | if (PyErr_Occurred()) SWIG_fail; | |
3731 | } | |
2f4c0a16 | 3732 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3733 | return resultobj; |
3734 | fail: | |
3735 | return NULL; | |
3736 | } | |
3737 | ||
3738 | ||
3739 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3740 | PyObject *resultobj; | |
3741 | int *arg1 = (int *) 0 ; | |
3742 | int *arg2 = (int *) 0 ; | |
3743 | int temp1 ; | |
3744 | int temp2 ; | |
3745 | char *kwnames[] = { | |
3746 | NULL | |
3747 | }; | |
3748 | ||
3749 | arg1 = &temp1; | |
3750 | arg2 = &temp2; | |
3751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
3752 | { | |
3753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3754 | wxDisplaySize(arg1,arg2); | |
3755 | ||
3756 | wxPyEndAllowThreads(__tstate); | |
3757 | if (PyErr_Occurred()) SWIG_fail; | |
3758 | } | |
3759 | Py_INCREF(Py_None); resultobj = Py_None; | |
3760 | { | |
3761 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3762 | resultobj = t_output_helper(resultobj,o); | |
3763 | } | |
3764 | { | |
3765 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3766 | resultobj = t_output_helper(resultobj,o); | |
3767 | } | |
3768 | return resultobj; | |
3769 | fail: | |
3770 | return NULL; | |
3771 | } | |
3772 | ||
3773 | ||
3774 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3775 | PyObject *resultobj; | |
3776 | wxSize result; | |
3777 | char *kwnames[] = { | |
3778 | NULL | |
3779 | }; | |
3780 | ||
3781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
3782 | { | |
3783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3784 | result = wxGetDisplaySize(); | |
3785 | ||
3786 | wxPyEndAllowThreads(__tstate); | |
3787 | if (PyErr_Occurred()) SWIG_fail; | |
3788 | } | |
3789 | { | |
3790 | wxSize * resultptr; | |
3791 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 3792 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
3793 | } |
3794 | return resultobj; | |
3795 | fail: | |
3796 | return NULL; | |
3797 | } | |
3798 | ||
3799 | ||
3800 | static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3801 | PyObject *resultobj; | |
3802 | int *arg1 = (int *) 0 ; | |
3803 | int *arg2 = (int *) 0 ; | |
3804 | int temp1 ; | |
3805 | int temp2 ; | |
3806 | char *kwnames[] = { | |
3807 | NULL | |
3808 | }; | |
3809 | ||
3810 | arg1 = &temp1; | |
3811 | arg2 = &temp2; | |
3812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
3813 | { | |
3814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3815 | wxDisplaySizeMM(arg1,arg2); | |
3816 | ||
3817 | wxPyEndAllowThreads(__tstate); | |
3818 | if (PyErr_Occurred()) SWIG_fail; | |
3819 | } | |
3820 | Py_INCREF(Py_None); resultobj = Py_None; | |
3821 | { | |
3822 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3823 | resultobj = t_output_helper(resultobj,o); | |
3824 | } | |
3825 | { | |
3826 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3827 | resultobj = t_output_helper(resultobj,o); | |
3828 | } | |
3829 | return resultobj; | |
3830 | fail: | |
3831 | return NULL; | |
3832 | } | |
3833 | ||
3834 | ||
3835 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3836 | PyObject *resultobj; | |
3837 | wxSize result; | |
3838 | char *kwnames[] = { | |
3839 | NULL | |
3840 | }; | |
3841 | ||
3842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
3843 | { | |
3844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3845 | result = wxGetDisplaySizeMM(); | |
3846 | ||
3847 | wxPyEndAllowThreads(__tstate); | |
3848 | if (PyErr_Occurred()) SWIG_fail; | |
3849 | } | |
3850 | { | |
3851 | wxSize * resultptr; | |
3852 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 3853 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
3854 | } |
3855 | return resultobj; | |
3856 | fail: | |
3857 | return NULL; | |
3858 | } | |
3859 | ||
3860 | ||
3861 | static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3862 | PyObject *resultobj; | |
3863 | int *arg1 = (int *) 0 ; | |
3864 | int *arg2 = (int *) 0 ; | |
3865 | int *arg3 = (int *) 0 ; | |
3866 | int *arg4 = (int *) 0 ; | |
3867 | int temp1 ; | |
3868 | int temp2 ; | |
3869 | int temp3 ; | |
3870 | int temp4 ; | |
3871 | char *kwnames[] = { | |
3872 | NULL | |
3873 | }; | |
3874 | ||
3875 | arg1 = &temp1; | |
3876 | arg2 = &temp2; | |
3877 | arg3 = &temp3; | |
3878 | arg4 = &temp4; | |
3879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
3880 | { | |
3881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3882 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
3883 | ||
3884 | wxPyEndAllowThreads(__tstate); | |
3885 | if (PyErr_Occurred()) SWIG_fail; | |
3886 | } | |
3887 | Py_INCREF(Py_None); resultobj = Py_None; | |
3888 | { | |
3889 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3890 | resultobj = t_output_helper(resultobj,o); | |
3891 | } | |
3892 | { | |
3893 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3894 | resultobj = t_output_helper(resultobj,o); | |
3895 | } | |
3896 | { | |
3897 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
3898 | resultobj = t_output_helper(resultobj,o); | |
3899 | } | |
3900 | { | |
3901 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
3902 | resultobj = t_output_helper(resultobj,o); | |
3903 | } | |
3904 | return resultobj; | |
3905 | fail: | |
3906 | return NULL; | |
3907 | } | |
3908 | ||
3909 | ||
3910 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3911 | PyObject *resultobj; | |
3912 | wxRect result; | |
3913 | char *kwnames[] = { | |
3914 | NULL | |
3915 | }; | |
3916 | ||
3917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
3918 | { | |
3919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3920 | result = wxGetClientDisplayRect(); | |
3921 | ||
3922 | wxPyEndAllowThreads(__tstate); | |
3923 | if (PyErr_Occurred()) SWIG_fail; | |
3924 | } | |
3925 | { | |
3926 | wxRect * resultptr; | |
3927 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 3928 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3929 | } |
3930 | return resultobj; | |
3931 | fail: | |
3932 | return NULL; | |
3933 | } | |
3934 | ||
3935 | ||
3936 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3937 | PyObject *resultobj; | |
3938 | wxCursor *arg1 = 0 ; | |
3939 | PyObject * obj0 = 0 ; | |
3940 | char *kwnames[] = { | |
3941 | (char *) "cursor", NULL | |
3942 | }; | |
3943 | ||
3944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
3946 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3947 | SWIG_fail; | |
d14a1e28 | 3948 | if (arg1 == NULL) { |
2f4c0a16 RD |
3949 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3950 | SWIG_fail; | |
d14a1e28 RD |
3951 | } |
3952 | { | |
3953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3954 | wxSetCursor(*arg1); | |
3955 | ||
3956 | wxPyEndAllowThreads(__tstate); | |
3957 | if (PyErr_Occurred()) SWIG_fail; | |
3958 | } | |
3959 | Py_INCREF(Py_None); resultobj = Py_None; | |
3960 | return resultobj; | |
3961 | fail: | |
3962 | return NULL; | |
3963 | } | |
3964 | ||
3965 | ||
3966 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3967 | PyObject *resultobj; | |
3968 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
3969 | PyObject * obj0 = 0 ; | |
3970 | char *kwnames[] = { | |
3971 | (char *) "cursor", NULL | |
3972 | }; | |
3973 | ||
3974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
3975 | if (obj0) { | |
2f4c0a16 RD |
3976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
3977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3978 | } |
3979 | { | |
3980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3981 | wxBeginBusyCursor(arg1); | |
3982 | ||
3983 | wxPyEndAllowThreads(__tstate); | |
3984 | if (PyErr_Occurred()) SWIG_fail; | |
3985 | } | |
3986 | Py_INCREF(Py_None); resultobj = Py_None; | |
3987 | return resultobj; | |
3988 | fail: | |
3989 | return NULL; | |
3990 | } | |
3991 | ||
3992 | ||
3993 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3994 | PyObject *resultobj; | |
3995 | wxWindow *result; | |
3996 | char *kwnames[] = { | |
3997 | NULL | |
3998 | }; | |
3999 | ||
4000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
4001 | { | |
4002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4003 | result = (wxWindow *)wxGetActiveWindow(); | |
4004 | ||
4005 | wxPyEndAllowThreads(__tstate); | |
4006 | if (PyErr_Occurred()) SWIG_fail; | |
4007 | } | |
4008 | { | |
4009 | resultobj = wxPyMake_wxObject(result); | |
4010 | } | |
4011 | return resultobj; | |
4012 | fail: | |
4013 | return NULL; | |
4014 | } | |
4015 | ||
4016 | ||
4017 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4018 | PyObject *resultobj; | |
4019 | wxPoint *arg1 = 0 ; | |
4020 | wxWindow *result; | |
4021 | wxPoint temp1 ; | |
4022 | PyObject * obj0 = 0 ; | |
4023 | char *kwnames[] = { | |
4024 | (char *) "pt", NULL | |
4025 | }; | |
4026 | ||
4027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4028 | { | |
4029 | arg1 = &temp1; | |
4030 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4031 | } | |
4032 | { | |
4033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4034 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
4035 | ||
4036 | wxPyEndAllowThreads(__tstate); | |
4037 | if (PyErr_Occurred()) SWIG_fail; | |
4038 | } | |
4039 | { | |
4040 | resultobj = wxPyMake_wxObject(result); | |
4041 | } | |
4042 | return resultobj; | |
4043 | fail: | |
4044 | return NULL; | |
4045 | } | |
4046 | ||
4047 | ||
4048 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4049 | PyObject *resultobj; | |
4050 | wxPoint *arg1 = 0 ; | |
4051 | wxWindow *result; | |
4052 | wxPoint temp1 ; | |
4053 | PyObject * obj0 = 0 ; | |
4054 | char *kwnames[] = { | |
4055 | (char *) "pt", NULL | |
4056 | }; | |
4057 | ||
4058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4059 | { | |
4060 | arg1 = &temp1; | |
4061 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4062 | } | |
4063 | { | |
4064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4065 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
4066 | ||
4067 | wxPyEndAllowThreads(__tstate); | |
4068 | if (PyErr_Occurred()) SWIG_fail; | |
4069 | } | |
4070 | { | |
4071 | resultobj = wxPyMake_wxObject(result); | |
4072 | } | |
4073 | return resultobj; | |
4074 | fail: | |
4075 | return NULL; | |
4076 | } | |
4077 | ||
4078 | ||
4079 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4080 | PyObject *resultobj; | |
4081 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4082 | wxWindow *result; | |
4083 | PyObject * obj0 = 0 ; | |
4084 | char *kwnames[] = { | |
4085 | (char *) "win", NULL | |
4086 | }; | |
4087 | ||
4088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4091 | { |
4092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4093 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
4094 | ||
4095 | wxPyEndAllowThreads(__tstate); | |
4096 | if (PyErr_Occurred()) SWIG_fail; | |
4097 | } | |
4098 | { | |
4099 | resultobj = wxPyMake_wxObject(result); | |
4100 | } | |
4101 | return resultobj; | |
4102 | fail: | |
4103 | return NULL; | |
4104 | } | |
4105 | ||
4106 | ||
d03fd34d RD |
4107 | static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) { |
4108 | PyObject *resultobj; | |
4109 | int arg1 ; | |
4110 | bool result; | |
8edf1c75 | 4111 | PyObject * obj0 = 0 ; |
d03fd34d RD |
4112 | char *kwnames[] = { |
4113 | (char *) "key", NULL | |
4114 | }; | |
4115 | ||
8edf1c75 | 4116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
4117 | arg1 = (wxKeyCode) SWIG_AsInt(obj0); |
4118 | if (PyErr_Occurred()) SWIG_fail; | |
d03fd34d RD |
4119 | { |
4120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4121 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
4122 | ||
4123 | wxPyEndAllowThreads(__tstate); | |
4124 | if (PyErr_Occurred()) SWIG_fail; | |
4125 | } | |
4e760a36 | 4126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d03fd34d RD |
4127 | return resultobj; |
4128 | fail: | |
4129 | return NULL; | |
4130 | } | |
4131 | ||
4132 | ||
d14a1e28 RD |
4133 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
4134 | PyObject *resultobj; | |
4135 | char *kwnames[] = { | |
4136 | NULL | |
4137 | }; | |
4138 | ||
4139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4140 | { | |
4141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4142 | wxWakeUpMainThread(); | |
4143 | ||
4144 | wxPyEndAllowThreads(__tstate); | |
4145 | if (PyErr_Occurred()) SWIG_fail; | |
4146 | } | |
4147 | Py_INCREF(Py_None); resultobj = Py_None; | |
4148 | return resultobj; | |
4149 | fail: | |
4150 | return NULL; | |
4151 | } | |
4152 | ||
4153 | ||
4154 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4155 | PyObject *resultobj; | |
4156 | char *kwnames[] = { | |
4157 | NULL | |
4158 | }; | |
4159 | ||
4160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4161 | { | |
4162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4163 | wxMutexGuiEnter(); | |
4164 | ||
4165 | wxPyEndAllowThreads(__tstate); | |
4166 | if (PyErr_Occurred()) SWIG_fail; | |
4167 | } | |
4168 | Py_INCREF(Py_None); resultobj = Py_None; | |
4169 | return resultobj; | |
4170 | fail: | |
4171 | return NULL; | |
4172 | } | |
4173 | ||
4174 | ||
4175 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4176 | PyObject *resultobj; | |
4177 | char *kwnames[] = { | |
4178 | NULL | |
4179 | }; | |
4180 | ||
4181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4182 | { | |
4183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4184 | wxMutexGuiLeave(); | |
4185 | ||
4186 | wxPyEndAllowThreads(__tstate); | |
4187 | if (PyErr_Occurred()) SWIG_fail; | |
4188 | } | |
4189 | Py_INCREF(Py_None); resultobj = Py_None; | |
4190 | return resultobj; | |
4191 | fail: | |
4192 | return NULL; | |
4193 | } | |
4194 | ||
4195 | ||
4196 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4197 | PyObject *resultobj; | |
4198 | wxMutexGuiLocker *result; | |
4199 | char *kwnames[] = { | |
4200 | NULL | |
4201 | }; | |
4202 | ||
4203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4204 | { | |
4205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4206 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4207 | ||
4208 | wxPyEndAllowThreads(__tstate); | |
4209 | if (PyErr_Occurred()) SWIG_fail; | |
4210 | } | |
2f4c0a16 | 4211 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); |
d14a1e28 RD |
4212 | return resultobj; |
4213 | fail: | |
4214 | return NULL; | |
4215 | } | |
4216 | ||
4217 | ||
4218 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4219 | PyObject *resultobj; | |
4220 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4221 | PyObject * obj0 = 0 ; | |
4222 | char *kwnames[] = { | |
4223 | (char *) "self", NULL | |
4224 | }; | |
4225 | ||
4226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker, |
4228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4229 | { |
4230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4231 | delete arg1; | |
4232 | ||
4233 | wxPyEndAllowThreads(__tstate); | |
4234 | if (PyErr_Occurred()) SWIG_fail; | |
4235 | } | |
4236 | Py_INCREF(Py_None); resultobj = Py_None; | |
4237 | return resultobj; | |
4238 | fail: | |
4239 | return NULL; | |
4240 | } | |
4241 | ||
4242 | ||
4243 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
4244 | PyObject *obj; | |
4245 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4246 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4247 | Py_INCREF(obj); | |
4248 | return Py_BuildValue((char *)""); | |
4249 | } | |
4250 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4251 | PyObject *resultobj; | |
4252 | bool result; | |
4253 | char *kwnames[] = { | |
4254 | NULL | |
4255 | }; | |
4256 | ||
4257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4258 | { | |
4259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4260 | result = (bool)wxThread_IsMain(); | |
4261 | ||
4262 | wxPyEndAllowThreads(__tstate); | |
4263 | if (PyErr_Occurred()) SWIG_fail; | |
4264 | } | |
4e760a36 | 4265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4266 | return resultobj; |
4267 | fail: | |
4268 | return NULL; | |
4269 | } | |
4270 | ||
4271 | ||
4272 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4273 | PyObject *resultobj; | |
4274 | wxString *arg1 = 0 ; | |
4275 | wxToolTip *result; | |
423f194a | 4276 | bool temp1 = False ; |
d14a1e28 RD |
4277 | PyObject * obj0 = 0 ; |
4278 | char *kwnames[] = { | |
4279 | (char *) "tip", NULL | |
4280 | }; | |
4281 | ||
4282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4283 | { | |
4284 | arg1 = wxString_in_helper(obj0); | |
4285 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 4286 | temp1 = True; |
d14a1e28 RD |
4287 | } |
4288 | { | |
4289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4290 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4291 | ||
4292 | wxPyEndAllowThreads(__tstate); | |
4293 | if (PyErr_Occurred()) SWIG_fail; | |
4294 | } | |
4295 | { | |
4296 | resultobj = wxPyMake_wxObject(result); | |
4297 | } | |
4298 | { | |
4299 | if (temp1) | |
4300 | delete arg1; | |
4301 | } | |
4302 | return resultobj; | |
4303 | fail: | |
4304 | { | |
4305 | if (temp1) | |
4306 | delete arg1; | |
4307 | } | |
4308 | return NULL; | |
4309 | } | |
4310 | ||
4311 | ||
4312 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4313 | PyObject *resultobj; | |
4314 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4315 | wxString *arg2 = 0 ; | |
423f194a | 4316 | bool temp2 = False ; |
d14a1e28 RD |
4317 | PyObject * obj0 = 0 ; |
4318 | PyObject * obj1 = 0 ; | |
4319 | char *kwnames[] = { | |
4320 | (char *) "self",(char *) "tip", NULL | |
4321 | }; | |
4322 | ||
4323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4326 | { |
4327 | arg2 = wxString_in_helper(obj1); | |
4328 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 4329 | temp2 = True; |
d14a1e28 RD |
4330 | } |
4331 | { | |
4332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4333 | (arg1)->SetTip((wxString const &)*arg2); | |
4334 | ||
4335 | wxPyEndAllowThreads(__tstate); | |
4336 | if (PyErr_Occurred()) SWIG_fail; | |
4337 | } | |
4338 | Py_INCREF(Py_None); resultobj = Py_None; | |
4339 | { | |
4340 | if (temp2) | |
4341 | delete arg2; | |
4342 | } | |
4343 | return resultobj; | |
4344 | fail: | |
4345 | { | |
4346 | if (temp2) | |
4347 | delete arg2; | |
4348 | } | |
4349 | return NULL; | |
4350 | } | |
4351 | ||
4352 | ||
4353 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4354 | PyObject *resultobj; | |
4355 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4356 | wxString result; | |
4357 | PyObject * obj0 = 0 ; | |
4358 | char *kwnames[] = { | |
4359 | (char *) "self", NULL | |
4360 | }; | |
4361 | ||
4362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4365 | { |
4366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4367 | result = (arg1)->GetTip(); | |
4368 | ||
4369 | wxPyEndAllowThreads(__tstate); | |
4370 | if (PyErr_Occurred()) SWIG_fail; | |
4371 | } | |
4372 | { | |
4373 | #if wxUSE_UNICODE | |
4374 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4375 | #else | |
4376 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4377 | #endif | |
4378 | } | |
4379 | return resultobj; | |
4380 | fail: | |
4381 | return NULL; | |
4382 | } | |
4383 | ||
4384 | ||
4385 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4386 | PyObject *resultobj; | |
4387 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4388 | wxWindow *result; | |
4389 | PyObject * obj0 = 0 ; | |
4390 | char *kwnames[] = { | |
4391 | (char *) "self", NULL | |
4392 | }; | |
4393 | ||
4394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4397 | { |
4398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4399 | result = (wxWindow *)(arg1)->GetWindow(); | |
4400 | ||
4401 | wxPyEndAllowThreads(__tstate); | |
4402 | if (PyErr_Occurred()) SWIG_fail; | |
4403 | } | |
4404 | { | |
4405 | resultobj = wxPyMake_wxObject(result); | |
4406 | } | |
4407 | return resultobj; | |
4408 | fail: | |
4409 | return NULL; | |
4410 | } | |
4411 | ||
4412 | ||
4413 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4414 | PyObject *resultobj; | |
4415 | bool arg1 ; | |
4416 | PyObject * obj0 = 0 ; | |
4417 | char *kwnames[] = { | |
4418 | (char *) "flag", NULL | |
4419 | }; | |
4420 | ||
4421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4422 | arg1 = (bool) SWIG_AsBool(obj0); |
4423 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4424 | { |
4425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4426 | wxToolTip::Enable(arg1); | |
4427 | ||
4428 | wxPyEndAllowThreads(__tstate); | |
4429 | if (PyErr_Occurred()) SWIG_fail; | |
4430 | } | |
4431 | Py_INCREF(Py_None); resultobj = Py_None; | |
4432 | return resultobj; | |
4433 | fail: | |
4434 | return NULL; | |
4435 | } | |
4436 | ||
4437 | ||
4438 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4439 | PyObject *resultobj; | |
4440 | long arg1 ; | |
8edf1c75 | 4441 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4442 | char *kwnames[] = { |
4443 | (char *) "milliseconds", NULL | |
4444 | }; | |
4445 | ||
8edf1c75 | 4446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
4447 | arg1 = (long) SWIG_AsLong(obj0); |
4448 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4449 | { |
4450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4451 | wxToolTip::SetDelay(arg1); | |
4452 | ||
4453 | wxPyEndAllowThreads(__tstate); | |
4454 | if (PyErr_Occurred()) SWIG_fail; | |
4455 | } | |
4456 | Py_INCREF(Py_None); resultobj = Py_None; | |
4457 | return resultobj; | |
4458 | fail: | |
4459 | return NULL; | |
4460 | } | |
4461 | ||
4462 | ||
4463 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
4464 | PyObject *obj; | |
4465 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4466 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
4467 | Py_INCREF(obj); | |
4468 | return Py_BuildValue((char *)""); | |
4469 | } | |
4470 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4471 | PyObject *resultobj; | |
4472 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4473 | wxSize *arg2 = 0 ; | |
4474 | wxCaret *result; | |
4475 | wxSize temp2 ; | |
4476 | PyObject * obj0 = 0 ; | |
4477 | PyObject * obj1 = 0 ; | |
4478 | char *kwnames[] = { | |
4479 | (char *) "window",(char *) "size", NULL | |
4480 | }; | |
4481 | ||
4482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4485 | { |
4486 | arg2 = &temp2; | |
4487 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4488 | } | |
4489 | { | |
4490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4491 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
4492 | ||
4493 | wxPyEndAllowThreads(__tstate); | |
4494 | if (PyErr_Occurred()) SWIG_fail; | |
4495 | } | |
2f4c0a16 | 4496 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); |
d14a1e28 RD |
4497 | return resultobj; |
4498 | fail: | |
4499 | return NULL; | |
4500 | } | |
4501 | ||
4502 | ||
4503 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4504 | PyObject *resultobj; | |
4505 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4506 | PyObject * obj0 = 0 ; | |
4507 | char *kwnames[] = { | |
4508 | (char *) "self", NULL | |
4509 | }; | |
4510 | ||
4511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4514 | { |
4515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4516 | delete arg1; | |
4517 | ||
4518 | wxPyEndAllowThreads(__tstate); | |
4519 | if (PyErr_Occurred()) SWIG_fail; | |
4520 | } | |
4521 | Py_INCREF(Py_None); resultobj = Py_None; | |
4522 | return resultobj; | |
4523 | fail: | |
4524 | return NULL; | |
4525 | } | |
4526 | ||
4527 | ||
4528 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4529 | PyObject *resultobj; | |
4530 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4531 | bool result; | |
4532 | PyObject * obj0 = 0 ; | |
4533 | char *kwnames[] = { | |
4534 | (char *) "self", NULL | |
4535 | }; | |
4536 | ||
4537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4540 | { |
4541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4542 | result = (bool)(arg1)->IsOk(); | |
4543 | ||
4544 | wxPyEndAllowThreads(__tstate); | |
4545 | if (PyErr_Occurred()) SWIG_fail; | |
4546 | } | |
4e760a36 | 4547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4548 | return resultobj; |
4549 | fail: | |
4550 | return NULL; | |
4551 | } | |
4552 | ||
4553 | ||
4554 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4555 | PyObject *resultobj; | |
4556 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4557 | bool result; | |
4558 | PyObject * obj0 = 0 ; | |
4559 | char *kwnames[] = { | |
4560 | (char *) "self", NULL | |
4561 | }; | |
4562 | ||
4563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4566 | { |
4567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4568 | result = (bool)(arg1)->IsVisible(); | |
4569 | ||
4570 | wxPyEndAllowThreads(__tstate); | |
4571 | if (PyErr_Occurred()) SWIG_fail; | |
4572 | } | |
4e760a36 | 4573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4574 | return resultobj; |
4575 | fail: | |
4576 | return NULL; | |
4577 | } | |
4578 | ||
4579 | ||
44127b65 RD |
4580 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
4581 | PyObject *resultobj; | |
4582 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4583 | wxPoint result; | |
4584 | PyObject * obj0 = 0 ; | |
4585 | char *kwnames[] = { | |
4586 | (char *) "self", NULL | |
4587 | }; | |
4588 | ||
4589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4592 | { |
4593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4594 | result = (arg1)->GetPosition(); | |
4595 | ||
4596 | wxPyEndAllowThreads(__tstate); | |
4597 | if (PyErr_Occurred()) SWIG_fail; | |
4598 | } | |
4599 | { | |
4600 | wxPoint * resultptr; | |
4601 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 4602 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
44127b65 RD |
4603 | } |
4604 | return resultobj; | |
4605 | fail: | |
4606 | return NULL; | |
4607 | } | |
4608 | ||
4609 | ||
d14a1e28 RD |
4610 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
4611 | PyObject *resultobj; | |
4612 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4613 | int *arg2 = (int *) 0 ; | |
4614 | int *arg3 = (int *) 0 ; | |
4615 | int temp2 ; | |
4616 | int temp3 ; | |
4617 | PyObject * obj0 = 0 ; | |
4618 | char *kwnames[] = { | |
4619 | (char *) "self", NULL | |
4620 | }; | |
4621 | ||
4622 | arg2 = &temp2; | |
4623 | arg3 = &temp3; | |
4624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4627 | { |
4628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4629 | (arg1)->GetPosition(arg2,arg3); | |
4630 | ||
4631 | wxPyEndAllowThreads(__tstate); | |
4632 | if (PyErr_Occurred()) SWIG_fail; | |
4633 | } | |
4634 | Py_INCREF(Py_None); resultobj = Py_None; | |
4635 | { | |
4636 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4637 | resultobj = t_output_helper(resultobj,o); | |
4638 | } | |
4639 | { | |
4640 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4641 | resultobj = t_output_helper(resultobj,o); | |
4642 | } | |
4643 | return resultobj; | |
4644 | fail: | |
4645 | return NULL; | |
4646 | } | |
4647 | ||
4648 | ||
44127b65 | 4649 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4650 | PyObject *resultobj; |
4651 | wxCaret *arg1 = (wxCaret *) 0 ; | |
44127b65 | 4652 | wxSize result; |
d14a1e28 RD |
4653 | PyObject * obj0 = 0 ; |
4654 | char *kwnames[] = { | |
4655 | (char *) "self", NULL | |
4656 | }; | |
4657 | ||
44127b65 | 4658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
4659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4661 | { |
4662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 4663 | result = (arg1)->GetSize(); |
d14a1e28 RD |
4664 | |
4665 | wxPyEndAllowThreads(__tstate); | |
4666 | if (PyErr_Occurred()) SWIG_fail; | |
4667 | } | |
4668 | { | |
44127b65 RD |
4669 | wxSize * resultptr; |
4670 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 4671 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
4672 | } |
4673 | return resultobj; | |
4674 | fail: | |
4675 | return NULL; | |
4676 | } | |
4677 | ||
4678 | ||
4679 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4680 | PyObject *resultobj; | |
4681 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4682 | int *arg2 = (int *) 0 ; | |
4683 | int *arg3 = (int *) 0 ; | |
4684 | int temp2 ; | |
4685 | int temp3 ; | |
4686 | PyObject * obj0 = 0 ; | |
4687 | char *kwnames[] = { | |
4688 | (char *) "self", NULL | |
4689 | }; | |
4690 | ||
4691 | arg2 = &temp2; | |
4692 | arg3 = &temp3; | |
4693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4696 | { |
4697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4698 | (arg1)->GetSize(arg2,arg3); | |
4699 | ||
4700 | wxPyEndAllowThreads(__tstate); | |
4701 | if (PyErr_Occurred()) SWIG_fail; | |
4702 | } | |
4703 | Py_INCREF(Py_None); resultobj = Py_None; | |
4704 | { | |
4705 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4706 | resultobj = t_output_helper(resultobj,o); | |
4707 | } | |
4708 | { | |
4709 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4710 | resultobj = t_output_helper(resultobj,o); | |
4711 | } | |
4712 | return resultobj; | |
4713 | fail: | |
4714 | return NULL; | |
4715 | } | |
4716 | ||
4717 | ||
d14a1e28 RD |
4718 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
4719 | PyObject *resultobj; | |
4720 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4721 | wxWindow *result; | |
4722 | PyObject * obj0 = 0 ; | |
4723 | char *kwnames[] = { | |
4724 | (char *) "self", NULL | |
4725 | }; | |
4726 | ||
4727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4730 | { |
4731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4732 | result = (wxWindow *)(arg1)->GetWindow(); | |
4733 | ||
4734 | wxPyEndAllowThreads(__tstate); | |
4735 | if (PyErr_Occurred()) SWIG_fail; | |
4736 | } | |
4737 | { | |
4738 | resultobj = wxPyMake_wxObject(result); | |
4739 | } | |
4740 | return resultobj; | |
4741 | fail: | |
4742 | return NULL; | |
4743 | } | |
4744 | ||
4745 | ||
4746 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4747 | PyObject *resultobj; | |
4748 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4749 | int arg2 ; | |
4750 | int arg3 ; | |
4751 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4752 | PyObject * obj1 = 0 ; |
4753 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4754 | char *kwnames[] = { |
4755 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4756 | }; | |
4757 | ||
8edf1c75 | 4758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4761 | arg2 = (int) SWIG_AsInt(obj1); | |
4762 | if (PyErr_Occurred()) SWIG_fail; | |
4763 | arg3 = (int) SWIG_AsInt(obj2); | |
4764 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4765 | { |
4766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4767 | (arg1)->Move(arg2,arg3); | |
4768 | ||
4769 | wxPyEndAllowThreads(__tstate); | |
4770 | if (PyErr_Occurred()) SWIG_fail; | |
4771 | } | |
4772 | Py_INCREF(Py_None); resultobj = Py_None; | |
4773 | return resultobj; | |
4774 | fail: | |
4775 | return NULL; | |
4776 | } | |
4777 | ||
4778 | ||
4779 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4780 | PyObject *resultobj; | |
4781 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4782 | wxPoint *arg2 = 0 ; | |
4783 | wxPoint temp2 ; | |
4784 | PyObject * obj0 = 0 ; | |
4785 | PyObject * obj1 = 0 ; | |
4786 | char *kwnames[] = { | |
4787 | (char *) "self",(char *) "pt", NULL | |
4788 | }; | |
4789 | ||
4790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4793 | { |
4794 | arg2 = &temp2; | |
4795 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4796 | } | |
4797 | { | |
4798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4799 | (arg1)->Move((wxPoint const &)*arg2); | |
4800 | ||
4801 | wxPyEndAllowThreads(__tstate); | |
4802 | if (PyErr_Occurred()) SWIG_fail; | |
4803 | } | |
4804 | Py_INCREF(Py_None); resultobj = Py_None; | |
4805 | return resultobj; | |
4806 | fail: | |
4807 | return NULL; | |
4808 | } | |
4809 | ||
4810 | ||
4811 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4812 | PyObject *resultobj; | |
4813 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4814 | int arg2 ; | |
4815 | int arg3 ; | |
4816 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4817 | PyObject * obj1 = 0 ; |
4818 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4819 | char *kwnames[] = { |
4820 | (char *) "self",(char *) "width",(char *) "height", NULL | |
4821 | }; | |
4822 | ||
8edf1c75 | 4823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4826 | arg2 = (int) SWIG_AsInt(obj1); | |
4827 | if (PyErr_Occurred()) SWIG_fail; | |
4828 | arg3 = (int) SWIG_AsInt(obj2); | |
4829 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4830 | { |
4831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4832 | (arg1)->SetSize(arg2,arg3); | |
4833 | ||
4834 | wxPyEndAllowThreads(__tstate); | |
4835 | if (PyErr_Occurred()) SWIG_fail; | |
4836 | } | |
4837 | Py_INCREF(Py_None); resultobj = Py_None; | |
4838 | return resultobj; | |
4839 | fail: | |
4840 | return NULL; | |
4841 | } | |
4842 | ||
4843 | ||
4844 | static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4845 | PyObject *resultobj; | |
4846 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4847 | wxSize *arg2 = 0 ; | |
4848 | wxSize temp2 ; | |
4849 | PyObject * obj0 = 0 ; | |
4850 | PyObject * obj1 = 0 ; | |
4851 | char *kwnames[] = { | |
4852 | (char *) "self",(char *) "size", NULL | |
4853 | }; | |
4854 | ||
4855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4858 | { |
4859 | arg2 = &temp2; | |
4860 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4861 | } | |
4862 | { | |
4863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4864 | (arg1)->SetSize((wxSize const &)*arg2); | |
4865 | ||
4866 | wxPyEndAllowThreads(__tstate); | |
4867 | if (PyErr_Occurred()) SWIG_fail; | |
4868 | } | |
4869 | Py_INCREF(Py_None); resultobj = Py_None; | |
4870 | return resultobj; | |
4871 | fail: | |
4872 | return NULL; | |
4873 | } | |
4874 | ||
4875 | ||
4876 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4877 | PyObject *resultobj; | |
4878 | wxCaret *arg1 = (wxCaret *) 0 ; | |
423f194a | 4879 | int arg2 = (int) True ; |
d14a1e28 | 4880 | PyObject * obj0 = 0 ; |
8edf1c75 | 4881 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4882 | char *kwnames[] = { |
4883 | (char *) "self",(char *) "show", NULL | |
4884 | }; | |
4885 | ||
8edf1c75 | 4886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 4889 | if (obj1) { |
2f4c0a16 RD |
4890 | arg2 = (int) SWIG_AsInt(obj1); |
4891 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4892 | } |
d14a1e28 RD |
4893 | { |
4894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4895 | (arg1)->Show(arg2); | |
4896 | ||
4897 | wxPyEndAllowThreads(__tstate); | |
4898 | if (PyErr_Occurred()) SWIG_fail; | |
4899 | } | |
4900 | Py_INCREF(Py_None); resultobj = Py_None; | |
4901 | return resultobj; | |
4902 | fail: | |
4903 | return NULL; | |
4904 | } | |
4905 | ||
4906 | ||
4907 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4908 | PyObject *resultobj; | |
4909 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4910 | PyObject * obj0 = 0 ; | |
4911 | char *kwnames[] = { | |
4912 | (char *) "self", NULL | |
4913 | }; | |
4914 | ||
4915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4918 | { |
4919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4920 | (arg1)->Hide(); | |
4921 | ||
4922 | wxPyEndAllowThreads(__tstate); | |
4923 | if (PyErr_Occurred()) SWIG_fail; | |
4924 | } | |
4925 | Py_INCREF(Py_None); resultobj = Py_None; | |
4926 | return resultobj; | |
4927 | fail: | |
4928 | return NULL; | |
4929 | } | |
4930 | ||
4931 | ||
4932 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
4933 | PyObject *obj; | |
4934 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4935 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
4936 | Py_INCREF(obj); | |
4937 | return Py_BuildValue((char *)""); | |
4938 | } | |
4939 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4940 | PyObject *resultobj; | |
4941 | int result; | |
4942 | char *kwnames[] = { | |
4943 | NULL | |
4944 | }; | |
4945 | ||
4946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
4947 | { | |
4948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4949 | result = (int)wxCaret_GetBlinkTime(); | |
4950 | ||
4951 | wxPyEndAllowThreads(__tstate); | |
4952 | if (PyErr_Occurred()) SWIG_fail; | |
4953 | } | |
2f4c0a16 | 4954 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4955 | return resultobj; |
4956 | fail: | |
4957 | return NULL; | |
4958 | } | |
4959 | ||
4960 | ||
4961 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4962 | PyObject *resultobj; | |
4963 | int arg1 ; | |
8edf1c75 | 4964 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4965 | char *kwnames[] = { |
4966 | (char *) "milliseconds", NULL | |
4967 | }; | |
4968 | ||
8edf1c75 | 4969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
4970 | arg1 = (int) SWIG_AsInt(obj0); |
4971 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4972 | { |
4973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4974 | wxCaret_SetBlinkTime(arg1); | |
4975 | ||
4976 | wxPyEndAllowThreads(__tstate); | |
4977 | if (PyErr_Occurred()) SWIG_fail; | |
4978 | } | |
4979 | Py_INCREF(Py_None); resultobj = Py_None; | |
4980 | return resultobj; | |
4981 | fail: | |
4982 | return NULL; | |
4983 | } | |
4984 | ||
4985 | ||
4986 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4987 | PyObject *resultobj; | |
4988 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4989 | wxBusyCursor *result; | |
4990 | PyObject * obj0 = 0 ; | |
4991 | char *kwnames[] = { | |
4992 | (char *) "cursor", NULL | |
4993 | }; | |
4994 | ||
4995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
4996 | if (obj0) { | |
2f4c0a16 RD |
4997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4999 | } |
5000 | { | |
5001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5002 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
5003 | ||
5004 | wxPyEndAllowThreads(__tstate); | |
5005 | if (PyErr_Occurred()) SWIG_fail; | |
5006 | } | |
2f4c0a16 | 5007 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); |
d14a1e28 RD |
5008 | return resultobj; |
5009 | fail: | |
5010 | return NULL; | |
5011 | } | |
5012 | ||
5013 | ||
5014 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5015 | PyObject *resultobj; | |
5016 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
5017 | PyObject * obj0 = 0 ; | |
5018 | char *kwnames[] = { | |
5019 | (char *) "self", NULL | |
5020 | }; | |
5021 | ||
5022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor, |
5024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5025 | { |
5026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5027 | delete arg1; | |
5028 | ||
5029 | wxPyEndAllowThreads(__tstate); | |
5030 | if (PyErr_Occurred()) SWIG_fail; | |
5031 | } | |
5032 | Py_INCREF(Py_None); resultobj = Py_None; | |
5033 | return resultobj; | |
5034 | fail: | |
5035 | return NULL; | |
5036 | } | |
5037 | ||
5038 | ||
5039 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
5040 | PyObject *obj; | |
5041 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5042 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
5043 | Py_INCREF(obj); | |
5044 | return Py_BuildValue((char *)""); | |
5045 | } | |
5046 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5047 | PyObject *resultobj; | |
5048 | wxWindow *arg1 = (wxWindow *) NULL ; | |
5049 | wxWindowDisabler *result; | |
5050 | PyObject * obj0 = 0 ; | |
5051 | char *kwnames[] = { | |
5052 | (char *) "winToSkip", NULL | |
5053 | }; | |
5054 | ||
5055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
5056 | if (obj0) { | |
2f4c0a16 RD |
5057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5059 | } |
5060 | { | |
5061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5062 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
5063 | ||
5064 | wxPyEndAllowThreads(__tstate); | |
5065 | if (PyErr_Occurred()) SWIG_fail; | |
5066 | } | |
2f4c0a16 | 5067 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); |
d14a1e28 RD |
5068 | return resultobj; |
5069 | fail: | |
5070 | return NULL; | |
5071 | } | |
5072 | ||
5073 | ||
5074 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5075 | PyObject *resultobj; | |
5076 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
5077 | PyObject * obj0 = 0 ; | |
5078 | char *kwnames[] = { | |
5079 | (char *) "self", NULL | |
5080 | }; | |
5081 | ||
5082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler, |
5084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5085 | { |
5086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5087 | delete arg1; | |
5088 | ||
5089 | wxPyEndAllowThreads(__tstate); | |
5090 | if (PyErr_Occurred()) SWIG_fail; | |
5091 | } | |
5092 | Py_INCREF(Py_None); resultobj = Py_None; | |
5093 | return resultobj; | |
5094 | fail: | |
5095 | return NULL; | |
5096 | } | |
5097 | ||
5098 | ||
5099 | static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
5100 | PyObject *obj; | |
5101 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5102 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
5103 | Py_INCREF(obj); | |
5104 | return Py_BuildValue((char *)""); | |
5105 | } | |
5106 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5107 | PyObject *resultobj; | |
5108 | wxString *arg1 = 0 ; | |
5109 | wxBusyInfo *result; | |
423f194a | 5110 | bool temp1 = False ; |
d14a1e28 RD |
5111 | PyObject * obj0 = 0 ; |
5112 | char *kwnames[] = { | |
5113 | (char *) "message", NULL | |
5114 | }; | |
5115 | ||
5116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
5117 | { | |
5118 | arg1 = wxString_in_helper(obj0); | |
5119 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 5120 | temp1 = True; |
d14a1e28 RD |
5121 | } |
5122 | { | |
5123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5124 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
5125 | ||
5126 | wxPyEndAllowThreads(__tstate); | |
5127 | if (PyErr_Occurred()) SWIG_fail; | |
5128 | } | |
2f4c0a16 | 5129 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); |
d14a1e28 RD |
5130 | { |
5131 | if (temp1) | |
5132 | delete arg1; | |
5133 | } | |
5134 | return resultobj; | |
5135 | fail: | |
5136 | { | |
5137 | if (temp1) | |
5138 | delete arg1; | |
5139 | } | |
5140 | return NULL; | |
5141 | } | |
5142 | ||
5143 | ||
5144 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5145 | PyObject *resultobj; | |
5146 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5147 | PyObject * obj0 = 0 ; | |
5148 | char *kwnames[] = { | |
5149 | (char *) "self", NULL | |
5150 | }; | |
5151 | ||
5152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo, |
5154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5155 | { |
5156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5157 | delete arg1; | |
5158 | ||
5159 | wxPyEndAllowThreads(__tstate); | |
5160 | if (PyErr_Occurred()) SWIG_fail; | |
5161 | } | |
5162 | Py_INCREF(Py_None); resultobj = Py_None; | |
5163 | return resultobj; | |
5164 | fail: | |
5165 | return NULL; | |
5166 | } | |
5167 | ||
5168 | ||
5169 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
5170 | PyObject *obj; | |
5171 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5172 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5173 | Py_INCREF(obj); | |
5174 | return Py_BuildValue((char *)""); | |
5175 | } | |
5176 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5177 | PyObject *resultobj; | |
5178 | wxStopWatch *result; | |
5179 | char *kwnames[] = { | |
5180 | NULL | |
5181 | }; | |
5182 | ||
5183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5184 | { | |
5185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5186 | result = (wxStopWatch *)new wxStopWatch(); | |
5187 | ||
5188 | wxPyEndAllowThreads(__tstate); | |
5189 | if (PyErr_Occurred()) SWIG_fail; | |
5190 | } | |
2f4c0a16 | 5191 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); |
d14a1e28 RD |
5192 | return resultobj; |
5193 | fail: | |
5194 | return NULL; | |
5195 | } | |
5196 | ||
5197 | ||
5198 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5199 | PyObject *resultobj; | |
5200 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5201 | long arg2 = (long) 0 ; | |
5202 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5203 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5204 | char *kwnames[] = { |
5205 | (char *) "self",(char *) "t0", NULL | |
5206 | }; | |
5207 | ||
8edf1c75 | 5208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5211 | if (obj1) { |
2f4c0a16 RD |
5212 | arg2 = (long) SWIG_AsLong(obj1); |
5213 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5214 | } |
d14a1e28 RD |
5215 | { |
5216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5217 | (arg1)->Start(arg2); | |
5218 | ||
5219 | wxPyEndAllowThreads(__tstate); | |
5220 | if (PyErr_Occurred()) SWIG_fail; | |
5221 | } | |
5222 | Py_INCREF(Py_None); resultobj = Py_None; | |
5223 | return resultobj; | |
5224 | fail: | |
5225 | return NULL; | |
5226 | } | |
5227 | ||
5228 | ||
5229 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5230 | PyObject *resultobj; | |
5231 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5232 | PyObject * obj0 = 0 ; | |
5233 | char *kwnames[] = { | |
5234 | (char *) "self", NULL | |
5235 | }; | |
5236 | ||
5237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5240 | { |
5241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5242 | (arg1)->Pause(); | |
5243 | ||
5244 | wxPyEndAllowThreads(__tstate); | |
5245 | if (PyErr_Occurred()) SWIG_fail; | |
5246 | } | |
5247 | Py_INCREF(Py_None); resultobj = Py_None; | |
5248 | return resultobj; | |
5249 | fail: | |
5250 | return NULL; | |
5251 | } | |
5252 | ||
5253 | ||
5254 | static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5255 | PyObject *resultobj; | |
5256 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5257 | PyObject * obj0 = 0 ; | |
5258 | char *kwnames[] = { | |
5259 | (char *) "self", NULL | |
5260 | }; | |
5261 | ||
5262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5265 | { |
5266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5267 | (arg1)->Resume(); | |
5268 | ||
5269 | wxPyEndAllowThreads(__tstate); | |
5270 | if (PyErr_Occurred()) SWIG_fail; | |
5271 | } | |
5272 | Py_INCREF(Py_None); resultobj = Py_None; | |
5273 | return resultobj; | |
5274 | fail: | |
5275 | return NULL; | |
5276 | } | |
5277 | ||
5278 | ||
5279 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5280 | PyObject *resultobj; | |
5281 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5282 | long result; | |
5283 | PyObject * obj0 = 0 ; | |
5284 | char *kwnames[] = { | |
5285 | (char *) "self", NULL | |
5286 | }; | |
5287 | ||
5288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5291 | { |
5292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5293 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5294 | ||
5295 | wxPyEndAllowThreads(__tstate); | |
5296 | if (PyErr_Occurred()) SWIG_fail; | |
5297 | } | |
2f4c0a16 | 5298 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
5299 | return resultobj; |
5300 | fail: | |
5301 | return NULL; | |
5302 | } | |
5303 | ||
5304 | ||
5305 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
5306 | PyObject *obj; | |
5307 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5308 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5309 | Py_INCREF(obj); | |
5310 | return Py_BuildValue((char *)""); | |
5311 | } | |
5312 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5313 | PyObject *resultobj; | |
5314 | int arg1 = (int) 9 ; | |
5315 | wxFileHistory *result; | |
8edf1c75 | 5316 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
5317 | char *kwnames[] = { |
5318 | (char *) "maxFiles", NULL | |
5319 | }; | |
5320 | ||
8edf1c75 RD |
5321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail; |
5322 | if (obj0) { | |
2f4c0a16 RD |
5323 | arg1 = (int) SWIG_AsInt(obj0); |
5324 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5325 | } |
d14a1e28 RD |
5326 | { |
5327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5328 | result = (wxFileHistory *)new wxFileHistory(arg1); | |
5329 | ||
5330 | wxPyEndAllowThreads(__tstate); | |
5331 | if (PyErr_Occurred()) SWIG_fail; | |
5332 | } | |
2f4c0a16 | 5333 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); |
d14a1e28 RD |
5334 | return resultobj; |
5335 | fail: | |
5336 | return NULL; | |
5337 | } | |
5338 | ||
5339 | ||
5340 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5341 | PyObject *resultobj; | |
5342 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5343 | PyObject * obj0 = 0 ; | |
5344 | char *kwnames[] = { | |
5345 | (char *) "self", NULL | |
5346 | }; | |
5347 | ||
5348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5351 | { |
5352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5353 | delete arg1; | |
5354 | ||
5355 | wxPyEndAllowThreads(__tstate); | |
5356 | if (PyErr_Occurred()) SWIG_fail; | |
5357 | } | |
5358 | Py_INCREF(Py_None); resultobj = Py_None; | |
5359 | return resultobj; | |
5360 | fail: | |
5361 | return NULL; | |
5362 | } | |
5363 | ||
5364 | ||
5365 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5366 | PyObject *resultobj; | |
5367 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5368 | wxString *arg2 = 0 ; | |
423f194a | 5369 | bool temp2 = False ; |
d14a1e28 RD |
5370 | PyObject * obj0 = 0 ; |
5371 | PyObject * obj1 = 0 ; | |
5372 | char *kwnames[] = { | |
5373 | (char *) "self",(char *) "file", NULL | |
5374 | }; | |
5375 | ||
5376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5379 | { |
5380 | arg2 = wxString_in_helper(obj1); | |
5381 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5382 | temp2 = True; |
d14a1e28 RD |
5383 | } |
5384 | { | |
5385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5386 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
5387 | ||
5388 | wxPyEndAllowThreads(__tstate); | |
5389 | if (PyErr_Occurred()) SWIG_fail; | |
5390 | } | |
5391 | Py_INCREF(Py_None); resultobj = Py_None; | |
5392 | { | |
5393 | if (temp2) | |
5394 | delete arg2; | |
5395 | } | |
5396 | return resultobj; | |
5397 | fail: | |
5398 | { | |
5399 | if (temp2) | |
5400 | delete arg2; | |
5401 | } | |
5402 | return NULL; | |
5403 | } | |
5404 | ||
5405 | ||
5406 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5407 | PyObject *resultobj; | |
5408 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5409 | int arg2 ; | |
5410 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5411 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5412 | char *kwnames[] = { |
5413 | (char *) "self",(char *) "i", NULL | |
5414 | }; | |
5415 | ||
8edf1c75 | 5416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5419 | arg2 = (int) SWIG_AsInt(obj1); | |
5420 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5421 | { |
5422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5423 | (arg1)->RemoveFileFromHistory(arg2); | |
5424 | ||
5425 | wxPyEndAllowThreads(__tstate); | |
5426 | if (PyErr_Occurred()) SWIG_fail; | |
5427 | } | |
5428 | Py_INCREF(Py_None); resultobj = Py_None; | |
5429 | return resultobj; | |
5430 | fail: | |
5431 | return NULL; | |
5432 | } | |
5433 | ||
5434 | ||
5435 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5436 | PyObject *resultobj; | |
5437 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5438 | int result; | |
5439 | PyObject * obj0 = 0 ; | |
5440 | char *kwnames[] = { | |
5441 | (char *) "self", NULL | |
5442 | }; | |
5443 | ||
5444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5447 | { |
5448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5449 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
5450 | ||
5451 | wxPyEndAllowThreads(__tstate); | |
5452 | if (PyErr_Occurred()) SWIG_fail; | |
5453 | } | |
2f4c0a16 | 5454 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5455 | return resultobj; |
5456 | fail: | |
5457 | return NULL; | |
5458 | } | |
5459 | ||
5460 | ||
5461 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5462 | PyObject *resultobj; | |
5463 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5464 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5465 | PyObject * obj0 = 0 ; | |
5466 | PyObject * obj1 = 0 ; | |
5467 | char *kwnames[] = { | |
5468 | (char *) "self",(char *) "menu", NULL | |
5469 | }; | |
5470 | ||
5471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5474 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5476 | { |
5477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5478 | (arg1)->UseMenu(arg2); | |
5479 | ||
5480 | wxPyEndAllowThreads(__tstate); | |
5481 | if (PyErr_Occurred()) SWIG_fail; | |
5482 | } | |
5483 | Py_INCREF(Py_None); resultobj = Py_None; | |
5484 | return resultobj; | |
5485 | fail: | |
5486 | return NULL; | |
5487 | } | |
5488 | ||
5489 | ||
5490 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5491 | PyObject *resultobj; | |
5492 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5493 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5494 | PyObject * obj0 = 0 ; | |
5495 | PyObject * obj1 = 0 ; | |
5496 | char *kwnames[] = { | |
5497 | (char *) "self",(char *) "menu", NULL | |
5498 | }; | |
5499 | ||
5500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5503 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5505 | { |
5506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5507 | (arg1)->RemoveMenu(arg2); | |
5508 | ||
5509 | wxPyEndAllowThreads(__tstate); | |
5510 | if (PyErr_Occurred()) SWIG_fail; | |
5511 | } | |
5512 | Py_INCREF(Py_None); resultobj = Py_None; | |
5513 | return resultobj; | |
5514 | fail: | |
5515 | return NULL; | |
5516 | } | |
5517 | ||
5518 | ||
5519 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5520 | PyObject *resultobj; | |
5521 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5522 | wxConfigBase *arg2 = 0 ; | |
5523 | PyObject * obj0 = 0 ; | |
5524 | PyObject * obj1 = 0 ; | |
5525 | char *kwnames[] = { | |
5526 | (char *) "self",(char *) "config", NULL | |
5527 | }; | |
5528 | ||
5529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5532 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5533 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5534 | SWIG_fail; | |
d14a1e28 | 5535 | if (arg2 == NULL) { |
2f4c0a16 RD |
5536 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5537 | SWIG_fail; | |
d14a1e28 RD |
5538 | } |
5539 | { | |
5540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5541 | (arg1)->Load(*arg2); | |
5542 | ||
5543 | wxPyEndAllowThreads(__tstate); | |
5544 | if (PyErr_Occurred()) SWIG_fail; | |
5545 | } | |
5546 | Py_INCREF(Py_None); resultobj = Py_None; | |
5547 | return resultobj; | |
5548 | fail: | |
5549 | return NULL; | |
5550 | } | |
5551 | ||
5552 | ||
5553 | static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5554 | PyObject *resultobj; | |
5555 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5556 | wxConfigBase *arg2 = 0 ; | |
5557 | PyObject * obj0 = 0 ; | |
5558 | PyObject * obj1 = 0 ; | |
5559 | char *kwnames[] = { | |
5560 | (char *) "self",(char *) "config", NULL | |
5561 | }; | |
5562 | ||
5563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5566 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5567 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5568 | SWIG_fail; | |
d14a1e28 | 5569 | if (arg2 == NULL) { |
2f4c0a16 RD |
5570 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5571 | SWIG_fail; | |
d14a1e28 RD |
5572 | } |
5573 | { | |
5574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5575 | (arg1)->Save(*arg2); | |
5576 | ||
5577 | wxPyEndAllowThreads(__tstate); | |
5578 | if (PyErr_Occurred()) SWIG_fail; | |
5579 | } | |
5580 | Py_INCREF(Py_None); resultobj = Py_None; | |
5581 | return resultobj; | |
5582 | fail: | |
5583 | return NULL; | |
5584 | } | |
5585 | ||
5586 | ||
5587 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5588 | PyObject *resultobj; | |
5589 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5590 | PyObject * obj0 = 0 ; | |
5591 | char *kwnames[] = { | |
5592 | (char *) "self", NULL | |
5593 | }; | |
5594 | ||
5595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5598 | { |
5599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5600 | (arg1)->AddFilesToMenu(); | |
5601 | ||
5602 | wxPyEndAllowThreads(__tstate); | |
5603 | if (PyErr_Occurred()) SWIG_fail; | |
5604 | } | |
5605 | Py_INCREF(Py_None); resultobj = Py_None; | |
5606 | return resultobj; | |
5607 | fail: | |
5608 | return NULL; | |
5609 | } | |
5610 | ||
5611 | ||
5612 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5613 | PyObject *resultobj; | |
5614 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5615 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5616 | PyObject * obj0 = 0 ; | |
5617 | PyObject * obj1 = 0 ; | |
5618 | char *kwnames[] = { | |
5619 | (char *) "self",(char *) "menu", NULL | |
5620 | }; | |
5621 | ||
5622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5625 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5627 | { |
5628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5629 | (arg1)->AddFilesToMenu(arg2); | |
5630 | ||
5631 | wxPyEndAllowThreads(__tstate); | |
5632 | if (PyErr_Occurred()) SWIG_fail; | |
5633 | } | |
5634 | Py_INCREF(Py_None); resultobj = Py_None; | |
5635 | return resultobj; | |
5636 | fail: | |
5637 | return NULL; | |
5638 | } | |
5639 | ||
5640 | ||
5641 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5642 | PyObject *resultobj; | |
5643 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5644 | int arg2 ; | |
5645 | wxString result; | |
5646 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5647 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5648 | char *kwnames[] = { |
5649 | (char *) "self",(char *) "i", NULL | |
5650 | }; | |
5651 | ||
8edf1c75 | 5652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5655 | arg2 = (int) SWIG_AsInt(obj1); | |
5656 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5657 | { |
5658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5659 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
5660 | ||
5661 | wxPyEndAllowThreads(__tstate); | |
5662 | if (PyErr_Occurred()) SWIG_fail; | |
5663 | } | |
5664 | { | |
5665 | #if wxUSE_UNICODE | |
5666 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5667 | #else | |
5668 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5669 | #endif | |
5670 | } | |
5671 | return resultobj; | |
5672 | fail: | |
5673 | return NULL; | |
5674 | } | |
5675 | ||
5676 | ||
5677 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5678 | PyObject *resultobj; | |
5679 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5680 | int result; | |
5681 | PyObject * obj0 = 0 ; | |
5682 | char *kwnames[] = { | |
5683 | (char *) "self", NULL | |
5684 | }; | |
5685 | ||
5686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5689 | { |
5690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5691 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
5692 | ||
5693 | wxPyEndAllowThreads(__tstate); | |
5694 | if (PyErr_Occurred()) SWIG_fail; | |
5695 | } | |
2f4c0a16 | 5696 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5697 | return resultobj; |
5698 | fail: | |
5699 | return NULL; | |
5700 | } | |
5701 | ||
5702 | ||
5703 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
5704 | PyObject *obj; | |
5705 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5706 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
5707 | Py_INCREF(obj); | |
5708 | return Py_BuildValue((char *)""); | |
5709 | } | |
5710 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5711 | PyObject *resultobj; | |
5712 | wxString *arg1 = 0 ; | |
5713 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5714 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5715 | wxSingleInstanceChecker *result; | |
423f194a RD |
5716 | bool temp1 = False ; |
5717 | bool temp2 = False ; | |
d14a1e28 RD |
5718 | PyObject * obj0 = 0 ; |
5719 | PyObject * obj1 = 0 ; | |
5720 | char *kwnames[] = { | |
5721 | (char *) "name",(char *) "path", NULL | |
5722 | }; | |
5723 | ||
5724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
5725 | { | |
5726 | arg1 = wxString_in_helper(obj0); | |
5727 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 5728 | temp1 = True; |
d14a1e28 RD |
5729 | } |
5730 | if (obj1) { | |
5731 | { | |
5732 | arg2 = wxString_in_helper(obj1); | |
5733 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5734 | temp2 = True; |
d14a1e28 RD |
5735 | } |
5736 | } | |
5737 | { | |
5738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5739 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
5740 | ||
5741 | wxPyEndAllowThreads(__tstate); | |
5742 | if (PyErr_Occurred()) SWIG_fail; | |
5743 | } | |
2f4c0a16 | 5744 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); |
d14a1e28 RD |
5745 | { |
5746 | if (temp1) | |
5747 | delete arg1; | |
5748 | } | |
5749 | { | |
5750 | if (temp2) | |
5751 | delete arg2; | |
5752 | } | |
5753 | return resultobj; | |
5754 | fail: | |
5755 | { | |
5756 | if (temp1) | |
5757 | delete arg1; | |
5758 | } | |
5759 | { | |
5760 | if (temp2) | |
5761 | delete arg2; | |
5762 | } | |
5763 | return NULL; | |
5764 | } | |
5765 | ||
5766 | ||
5767 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5768 | PyObject *resultobj; | |
5769 | wxSingleInstanceChecker *result; | |
5770 | char *kwnames[] = { | |
5771 | NULL | |
5772 | }; | |
5773 | ||
5774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
5775 | { | |
5776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5777 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
5778 | ||
5779 | wxPyEndAllowThreads(__tstate); | |
5780 | if (PyErr_Occurred()) SWIG_fail; | |
5781 | } | |
2f4c0a16 | 5782 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); |
d14a1e28 RD |
5783 | return resultobj; |
5784 | fail: | |
5785 | return NULL; | |
5786 | } | |
5787 | ||
5788 | ||
5789 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5790 | PyObject *resultobj; | |
5791 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5792 | PyObject * obj0 = 0 ; | |
5793 | char *kwnames[] = { | |
5794 | (char *) "self", NULL | |
5795 | }; | |
5796 | ||
5797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
5799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5800 | { |
5801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5802 | delete arg1; | |
5803 | ||
5804 | wxPyEndAllowThreads(__tstate); | |
5805 | if (PyErr_Occurred()) SWIG_fail; | |
5806 | } | |
5807 | Py_INCREF(Py_None); resultobj = Py_None; | |
5808 | return resultobj; | |
5809 | fail: | |
5810 | return NULL; | |
5811 | } | |
5812 | ||
5813 | ||
5814 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5815 | PyObject *resultobj; | |
5816 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5817 | wxString *arg2 = 0 ; | |
5818 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5819 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5820 | bool result; | |
423f194a RD |
5821 | bool temp2 = False ; |
5822 | bool temp3 = False ; | |
d14a1e28 RD |
5823 | PyObject * obj0 = 0 ; |
5824 | PyObject * obj1 = 0 ; | |
5825 | PyObject * obj2 = 0 ; | |
5826 | char *kwnames[] = { | |
5827 | (char *) "self",(char *) "name",(char *) "path", NULL | |
5828 | }; | |
5829 | ||
5830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
5831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
5832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5833 | { |
5834 | arg2 = wxString_in_helper(obj1); | |
5835 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5836 | temp2 = True; |
d14a1e28 RD |
5837 | } |
5838 | if (obj2) { | |
5839 | { | |
5840 | arg3 = wxString_in_helper(obj2); | |
5841 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 5842 | temp3 = True; |
d14a1e28 RD |
5843 | } |
5844 | } | |
5845 | { | |
5846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5847 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
5848 | ||
5849 | wxPyEndAllowThreads(__tstate); | |
5850 | if (PyErr_Occurred()) SWIG_fail; | |
5851 | } | |
4e760a36 | 5852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5853 | { |
5854 | if (temp2) | |
5855 | delete arg2; | |
5856 | } | |
5857 | { | |
5858 | if (temp3) | |
5859 | delete arg3; | |
5860 | } | |
5861 | return resultobj; | |
5862 | fail: | |
5863 | { | |
5864 | if (temp2) | |
5865 | delete arg2; | |
5866 | } | |
5867 | { | |
5868 | if (temp3) | |
5869 | delete arg3; | |
5870 | } | |
5871 | return NULL; | |
5872 | } | |
5873 | ||
5874 | ||
5875 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5876 | PyObject *resultobj; | |
5877 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5878 | bool result; | |
5879 | PyObject * obj0 = 0 ; | |
5880 | char *kwnames[] = { | |
5881 | (char *) "self", NULL | |
5882 | }; | |
5883 | ||
5884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
5886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5887 | { |
5888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5889 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
5890 | ||
5891 | wxPyEndAllowThreads(__tstate); | |
5892 | if (PyErr_Occurred()) SWIG_fail; | |
5893 | } | |
4e760a36 | 5894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5895 | return resultobj; |
5896 | fail: | |
5897 | return NULL; | |
5898 | } | |
5899 | ||
5900 | ||
5901 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
5902 | PyObject *obj; | |
5903 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5904 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
5905 | Py_INCREF(obj); | |
5906 | return Py_BuildValue((char *)""); | |
5907 | } | |
5908 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5909 | PyObject *resultobj; | |
5910 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5911 | wxDC *arg2 = 0 ; | |
5912 | int arg3 ; | |
5913 | PyObject * obj0 = 0 ; | |
5914 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5915 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5916 | char *kwnames[] = { |
5917 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
5918 | }; | |
5919 | ||
8edf1c75 | 5920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5923 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
5924 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5925 | SWIG_fail; | |
d14a1e28 | 5926 | if (arg2 == NULL) { |
2f4c0a16 RD |
5927 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5928 | SWIG_fail; | |
8edf1c75 | 5929 | } |
2f4c0a16 RD |
5930 | arg3 = (int) SWIG_AsInt(obj2); |
5931 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5932 | { |
5933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5934 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
5935 | ||
5936 | wxPyEndAllowThreads(__tstate); | |
5937 | if (PyErr_Occurred()) SWIG_fail; | |
5938 | } | |
5939 | Py_INCREF(Py_None); resultobj = Py_None; | |
5940 | return resultobj; | |
5941 | fail: | |
5942 | return NULL; | |
5943 | } | |
5944 | ||
5945 | ||
5946 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5947 | PyObject *resultobj; | |
5948 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5949 | PyObject * obj0 = 0 ; | |
5950 | char *kwnames[] = { | |
5951 | (char *) "self", NULL | |
5952 | }; | |
5953 | ||
5954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
5956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5957 | { |
5958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5959 | delete arg1; | |
5960 | ||
5961 | wxPyEndAllowThreads(__tstate); | |
5962 | if (PyErr_Occurred()) SWIG_fail; | |
5963 | } | |
5964 | Py_INCREF(Py_None); resultobj = Py_None; | |
5965 | return resultobj; | |
5966 | fail: | |
5967 | return NULL; | |
5968 | } | |
5969 | ||
5970 | ||
5971 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5972 | PyObject *resultobj; | |
5973 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5974 | wxString result; | |
5975 | PyObject * obj0 = 0 ; | |
5976 | char *kwnames[] = { | |
5977 | (char *) "self", NULL | |
5978 | }; | |
5979 | ||
5980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
5982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5983 | { |
5984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5985 | result = (arg1)->GetTip(); | |
5986 | ||
5987 | wxPyEndAllowThreads(__tstate); | |
5988 | if (PyErr_Occurred()) SWIG_fail; | |
5989 | } | |
5990 | { | |
5991 | #if wxUSE_UNICODE | |
5992 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5993 | #else | |
5994 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5995 | #endif | |
5996 | } | |
5997 | return resultobj; | |
5998 | fail: | |
5999 | return NULL; | |
6000 | } | |
6001 | ||
6002 | ||
6003 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6004 | PyObject *resultobj; | |
6005 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6006 | size_t result; | |
6007 | PyObject * obj0 = 0 ; | |
6008 | char *kwnames[] = { | |
6009 | (char *) "self", NULL | |
6010 | }; | |
6011 | ||
6012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6015 | { |
6016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6017 | result = (size_t)(arg1)->GetCurrentTip(); | |
6018 | ||
6019 | wxPyEndAllowThreads(__tstate); | |
6020 | if (PyErr_Occurred()) SWIG_fail; | |
6021 | } | |
2f4c0a16 | 6022 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
6023 | return resultobj; |
6024 | fail: | |
6025 | return NULL; | |
6026 | } | |
6027 | ||
6028 | ||
6029 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6030 | PyObject *resultobj; | |
6031 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6032 | wxString *arg2 = 0 ; | |
6033 | wxString result; | |
423f194a | 6034 | bool temp2 = False ; |
d14a1e28 RD |
6035 | PyObject * obj0 = 0 ; |
6036 | PyObject * obj1 = 0 ; | |
6037 | char *kwnames[] = { | |
6038 | (char *) "self",(char *) "tip", NULL | |
6039 | }; | |
6040 | ||
6041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6044 | { |
6045 | arg2 = wxString_in_helper(obj1); | |
6046 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6047 | temp2 = True; |
d14a1e28 RD |
6048 | } |
6049 | { | |
6050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6051 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
6052 | ||
6053 | wxPyEndAllowThreads(__tstate); | |
6054 | if (PyErr_Occurred()) SWIG_fail; | |
6055 | } | |
6056 | { | |
6057 | #if wxUSE_UNICODE | |
6058 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6059 | #else | |
6060 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6061 | #endif | |
6062 | } | |
6063 | { | |
6064 | if (temp2) | |
6065 | delete arg2; | |
6066 | } | |
6067 | return resultobj; | |
6068 | fail: | |
6069 | { | |
6070 | if (temp2) | |
6071 | delete arg2; | |
6072 | } | |
6073 | return NULL; | |
6074 | } | |
6075 | ||
6076 | ||
6077 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
6078 | PyObject *obj; | |
6079 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6080 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
6081 | Py_INCREF(obj); | |
6082 | return Py_BuildValue((char *)""); | |
6083 | } | |
6084 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6085 | PyObject *resultobj; | |
6086 | size_t arg1 ; | |
6087 | wxPyTipProvider *result; | |
6088 | PyObject * obj0 = 0 ; | |
6089 | char *kwnames[] = { | |
6090 | (char *) "currentTip", NULL | |
6091 | }; | |
6092 | ||
6093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6094 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); |
6095 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6096 | { |
6097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6098 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
6099 | ||
6100 | wxPyEndAllowThreads(__tstate); | |
6101 | if (PyErr_Occurred()) SWIG_fail; | |
6102 | } | |
2f4c0a16 | 6103 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); |
d14a1e28 RD |
6104 | return resultobj; |
6105 | fail: | |
6106 | return NULL; | |
6107 | } | |
6108 | ||
6109 | ||
6110 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6111 | PyObject *resultobj; | |
6112 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
6113 | PyObject *arg2 = (PyObject *) 0 ; | |
6114 | PyObject *arg3 = (PyObject *) 0 ; | |
6115 | PyObject * obj0 = 0 ; | |
6116 | PyObject * obj1 = 0 ; | |
6117 | PyObject * obj2 = 0 ; | |
6118 | char *kwnames[] = { | |
6119 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6120 | }; | |
6121 | ||
6122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider, |
6124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6125 | arg2 = obj1; |
6126 | arg3 = obj2; | |
6127 | { | |
6128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6129 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6130 | ||
6131 | wxPyEndAllowThreads(__tstate); | |
6132 | if (PyErr_Occurred()) SWIG_fail; | |
6133 | } | |
6134 | Py_INCREF(Py_None); resultobj = Py_None; | |
6135 | return resultobj; | |
6136 | fail: | |
6137 | return NULL; | |
6138 | } | |
6139 | ||
6140 | ||
6141 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
6142 | PyObject *obj; | |
6143 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6144 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
6145 | Py_INCREF(obj); | |
6146 | return Py_BuildValue((char *)""); | |
6147 | } | |
6148 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6149 | PyObject *resultobj; | |
6150 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6151 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
423f194a | 6152 | bool arg3 = (bool) True ; |
d14a1e28 RD |
6153 | bool result; |
6154 | PyObject * obj0 = 0 ; | |
6155 | PyObject * obj1 = 0 ; | |
6156 | PyObject * obj2 = 0 ; | |
6157 | char *kwnames[] = { | |
6158 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
6159 | }; | |
6160 | ||
6161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6164 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider, | |
6165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6166 | if (obj2) { |
2f4c0a16 RD |
6167 | arg3 = (bool) SWIG_AsBool(obj2); |
6168 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6169 | } |
6170 | { | |
6171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6172 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6173 | ||
6174 | wxPyEndAllowThreads(__tstate); | |
6175 | if (PyErr_Occurred()) SWIG_fail; | |
6176 | } | |
4e760a36 | 6177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6178 | return resultobj; |
6179 | fail: | |
6180 | return NULL; | |
6181 | } | |
6182 | ||
6183 | ||
6184 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6185 | PyObject *resultobj; | |
6186 | wxString *arg1 = 0 ; | |
6187 | size_t arg2 ; | |
6188 | wxTipProvider *result; | |
423f194a | 6189 | bool temp1 = False ; |
d14a1e28 RD |
6190 | PyObject * obj0 = 0 ; |
6191 | PyObject * obj1 = 0 ; | |
6192 | char *kwnames[] = { | |
6193 | (char *) "filename",(char *) "currentTip", NULL | |
6194 | }; | |
6195 | ||
6196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6197 | { | |
6198 | arg1 = wxString_in_helper(obj0); | |
6199 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6200 | temp1 = True; |
d14a1e28 | 6201 | } |
2f4c0a16 RD |
6202 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); |
6203 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6204 | { |
6205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6206 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6207 | ||
6208 | wxPyEndAllowThreads(__tstate); | |
6209 | if (PyErr_Occurred()) SWIG_fail; | |
6210 | } | |
2f4c0a16 | 6211 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); |
d14a1e28 RD |
6212 | { |
6213 | if (temp1) | |
6214 | delete arg1; | |
6215 | } | |
6216 | return resultobj; | |
6217 | fail: | |
6218 | { | |
6219 | if (temp1) | |
6220 | delete arg1; | |
6221 | } | |
6222 | return NULL; | |
6223 | } | |
6224 | ||
6225 | ||
6226 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6227 | PyObject *resultobj; | |
6228 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6229 | int arg2 = (int) -1 ; | |
6230 | wxPyTimer *result; | |
6231 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6232 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6233 | char *kwnames[] = { |
6234 | (char *) "owner",(char *) "id", NULL | |
6235 | }; | |
6236 | ||
8edf1c75 | 6237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6238 | if (obj0) { |
2f4c0a16 RD |
6239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
6240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6241 | } |
8edf1c75 | 6242 | if (obj1) { |
2f4c0a16 RD |
6243 | arg2 = (int) SWIG_AsInt(obj1); |
6244 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6245 | } |
d14a1e28 RD |
6246 | { |
6247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6248 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6249 | ||
6250 | wxPyEndAllowThreads(__tstate); | |
6251 | if (PyErr_Occurred()) SWIG_fail; | |
6252 | } | |
2f4c0a16 | 6253 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); |
d14a1e28 RD |
6254 | return resultobj; |
6255 | fail: | |
6256 | return NULL; | |
6257 | } | |
6258 | ||
6259 | ||
6260 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6261 | PyObject *resultobj; | |
6262 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6263 | PyObject * obj0 = 0 ; | |
6264 | char *kwnames[] = { | |
6265 | (char *) "self", NULL | |
6266 | }; | |
6267 | ||
6268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6271 | { |
6272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6273 | delete arg1; | |
6274 | ||
6275 | wxPyEndAllowThreads(__tstate); | |
6276 | if (PyErr_Occurred()) SWIG_fail; | |
6277 | } | |
6278 | Py_INCREF(Py_None); resultobj = Py_None; | |
6279 | return resultobj; | |
6280 | fail: | |
6281 | return NULL; | |
6282 | } | |
6283 | ||
6284 | ||
44127b65 RD |
6285 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
6286 | PyObject *resultobj; | |
6287 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6288 | PyObject *arg2 = (PyObject *) 0 ; | |
6289 | PyObject *arg3 = (PyObject *) 0 ; | |
fe763115 | 6290 | int arg4 = (int) 1 ; |
44127b65 RD |
6291 | PyObject * obj0 = 0 ; |
6292 | PyObject * obj1 = 0 ; | |
6293 | PyObject * obj2 = 0 ; | |
fe763115 | 6294 | PyObject * obj3 = 0 ; |
44127b65 | 6295 | char *kwnames[] = { |
fe763115 | 6296 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL |
44127b65 RD |
6297 | }; |
6298 | ||
fe763115 | 6299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
6300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
6302 | arg2 = obj1; |
6303 | arg3 = obj2; | |
fe763115 RD |
6304 | if (obj3) { |
6305 | arg4 = (int) SWIG_AsInt(obj3); | |
6306 | if (PyErr_Occurred()) SWIG_fail; | |
6307 | } | |
44127b65 RD |
6308 | { |
6309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fe763115 | 6310 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); |
44127b65 RD |
6311 | |
6312 | wxPyEndAllowThreads(__tstate); | |
6313 | if (PyErr_Occurred()) SWIG_fail; | |
6314 | } | |
6315 | Py_INCREF(Py_None); resultobj = Py_None; | |
6316 | return resultobj; | |
6317 | fail: | |
6318 | return NULL; | |
6319 | } | |
6320 | ||
6321 | ||
d14a1e28 RD |
6322 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
6323 | PyObject *resultobj; | |
6324 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6325 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6326 | int arg3 = (int) -1 ; | |
6327 | PyObject * obj0 = 0 ; | |
6328 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6329 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6330 | char *kwnames[] = { |
6331 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6332 | }; | |
6333 | ||
8edf1c75 | 6334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6337 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
6338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 6339 | if (obj2) { |
2f4c0a16 RD |
6340 | arg3 = (int) SWIG_AsInt(obj2); |
6341 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6342 | } |
d14a1e28 RD |
6343 | { |
6344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6345 | (arg1)->SetOwner(arg2,arg3); | |
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 | ||
6357 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6358 | PyObject *resultobj; | |
6359 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6360 | int arg2 = (int) -1 ; | |
423f194a | 6361 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6362 | bool result; |
6363 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6364 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6365 | PyObject * obj2 = 0 ; |
6366 | char *kwnames[] = { | |
6367 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
6368 | }; | |
6369 | ||
8edf1c75 | 6370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 6373 | if (obj1) { |
2f4c0a16 RD |
6374 | arg2 = (int) SWIG_AsInt(obj1); |
6375 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6376 | } |
d14a1e28 | 6377 | if (obj2) { |
2f4c0a16 RD |
6378 | arg3 = (bool) SWIG_AsBool(obj2); |
6379 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6380 | } |
6381 | { | |
6382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6383 | result = (bool)(arg1)->Start(arg2,arg3); | |
6384 | ||
6385 | wxPyEndAllowThreads(__tstate); | |
6386 | if (PyErr_Occurred()) SWIG_fail; | |
6387 | } | |
4e760a36 | 6388 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6389 | return resultobj; |
6390 | fail: | |
6391 | return NULL; | |
6392 | } | |
6393 | ||
6394 | ||
6395 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6396 | PyObject *resultobj; | |
6397 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6398 | PyObject * obj0 = 0 ; | |
6399 | char *kwnames[] = { | |
6400 | (char *) "self", NULL | |
6401 | }; | |
6402 | ||
6403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6406 | { |
6407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6408 | (arg1)->Stop(); | |
6409 | ||
6410 | wxPyEndAllowThreads(__tstate); | |
6411 | if (PyErr_Occurred()) SWIG_fail; | |
6412 | } | |
6413 | Py_INCREF(Py_None); resultobj = Py_None; | |
6414 | return resultobj; | |
6415 | fail: | |
6416 | return NULL; | |
6417 | } | |
6418 | ||
6419 | ||
d14a1e28 RD |
6420 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { |
6421 | PyObject *resultobj; | |
6422 | wxPyTimer *arg1 = (wxPyTimer *) 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:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6432 | { |
6433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6434 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
6435 | ||
6436 | wxPyEndAllowThreads(__tstate); | |
6437 | if (PyErr_Occurred()) SWIG_fail; | |
6438 | } | |
4e760a36 | 6439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6440 | return resultobj; |
6441 | fail: | |
6442 | return NULL; | |
6443 | } | |
6444 | ||
6445 | ||
6446 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6447 | PyObject *resultobj; | |
6448 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6449 | int result; | |
6450 | PyObject * obj0 = 0 ; | |
6451 | char *kwnames[] = { | |
6452 | (char *) "self", NULL | |
6453 | }; | |
6454 | ||
6455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6458 | { |
6459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6460 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
6461 | ||
6462 | wxPyEndAllowThreads(__tstate); | |
6463 | if (PyErr_Occurred()) SWIG_fail; | |
6464 | } | |
2f4c0a16 | 6465 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6466 | return resultobj; |
6467 | fail: | |
6468 | return NULL; | |
6469 | } | |
6470 | ||
6471 | ||
6472 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6473 | PyObject *resultobj; | |
6474 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6475 | bool result; | |
6476 | PyObject * obj0 = 0 ; | |
6477 | char *kwnames[] = { | |
6478 | (char *) "self", NULL | |
6479 | }; | |
6480 | ||
6481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6484 | { |
6485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6486 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
6487 | ||
6488 | wxPyEndAllowThreads(__tstate); | |
6489 | if (PyErr_Occurred()) SWIG_fail; | |
6490 | } | |
4e760a36 | 6491 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6492 | return resultobj; |
6493 | fail: | |
6494 | return NULL; | |
6495 | } | |
6496 | ||
6497 | ||
f0983263 RD |
6498 | static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
6499 | PyObject *resultobj; | |
6500 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6501 | int result; | |
6502 | PyObject * obj0 = 0 ; | |
6503 | char *kwnames[] = { | |
6504 | (char *) "self", NULL | |
6505 | }; | |
6506 | ||
6507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
f0983263 RD |
6510 | { |
6511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6512 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
6513 | ||
6514 | wxPyEndAllowThreads(__tstate); | |
6515 | if (PyErr_Occurred()) SWIG_fail; | |
6516 | } | |
2f4c0a16 | 6517 | resultobj = SWIG_FromInt((int)result); |
f0983263 RD |
6518 | return resultobj; |
6519 | fail: | |
6520 | return NULL; | |
6521 | } | |
6522 | ||
6523 | ||
d14a1e28 RD |
6524 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { |
6525 | PyObject *obj; | |
6526 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6527 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
6528 | Py_INCREF(obj); | |
6529 | return Py_BuildValue((char *)""); | |
6530 | } | |
6531 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6532 | PyObject *resultobj; | |
6533 | int arg1 = (int) 0 ; | |
6534 | int arg2 = (int) 0 ; | |
6535 | wxTimerEvent *result; | |
8edf1c75 RD |
6536 | PyObject * obj0 = 0 ; |
6537 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
6538 | char *kwnames[] = { |
6539 | (char *) "timerid",(char *) "interval", NULL | |
6540 | }; | |
6541 | ||
8edf1c75 RD |
6542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; |
6543 | if (obj0) { | |
2f4c0a16 RD |
6544 | arg1 = (int) SWIG_AsInt(obj0); |
6545 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
6546 | } |
6547 | if (obj1) { | |
2f4c0a16 RD |
6548 | arg2 = (int) SWIG_AsInt(obj1); |
6549 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6550 | } |
d14a1e28 RD |
6551 | { |
6552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6553 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
6554 | ||
6555 | wxPyEndAllowThreads(__tstate); | |
6556 | if (PyErr_Occurred()) SWIG_fail; | |
6557 | } | |
2f4c0a16 | 6558 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); |
d14a1e28 RD |
6559 | return resultobj; |
6560 | fail: | |
6561 | return NULL; | |
6562 | } | |
6563 | ||
6564 | ||
6565 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6566 | PyObject *resultobj; | |
6567 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
6568 | int result; | |
6569 | PyObject * obj0 = 0 ; | |
6570 | char *kwnames[] = { | |
6571 | (char *) "self", NULL | |
6572 | }; | |
6573 | ||
6574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent, |
6576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6577 | { |
6578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6579 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
6580 | ||
6581 | wxPyEndAllowThreads(__tstate); | |
6582 | if (PyErr_Occurred()) SWIG_fail; | |
6583 | } | |
2f4c0a16 | 6584 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6585 | return resultobj; |
6586 | fail: | |
6587 | return NULL; | |
6588 | } | |
6589 | ||
6590 | ||
6591 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
6592 | PyObject *obj; | |
6593 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6594 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
6595 | Py_INCREF(obj); | |
6596 | return Py_BuildValue((char *)""); | |
6597 | } | |
6598 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
6599 | PyObject *resultobj; | |
6600 | wxTimer *arg1 = 0 ; | |
6601 | wxTimerRunner *result; | |
6602 | PyObject * obj0 = 0 ; | |
6603 | ||
6604 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
2f4c0a16 RD |
6605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, |
6606 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6607 | SWIG_fail; | |
d14a1e28 | 6608 | if (arg1 == NULL) { |
2f4c0a16 RD |
6609 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6610 | SWIG_fail; | |
d14a1e28 RD |
6611 | } |
6612 | { | |
6613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6614 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
6615 | ||
6616 | wxPyEndAllowThreads(__tstate); | |
6617 | if (PyErr_Occurred()) SWIG_fail; | |
6618 | } | |
2f4c0a16 | 6619 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); |
d14a1e28 RD |
6620 | return resultobj; |
6621 | fail: | |
6622 | return NULL; | |
6623 | } | |
6624 | ||
6625 | ||
6626 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { | |
6627 | PyObject *resultobj; | |
6628 | wxTimer *arg1 = 0 ; | |
6629 | int arg2 ; | |
423f194a | 6630 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6631 | wxTimerRunner *result; |
6632 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6633 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6634 | PyObject * obj2 = 0 ; |
6635 | ||
8edf1c75 | 6636 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, |
6638 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6639 | SWIG_fail; | |
d14a1e28 | 6640 | if (arg1 == NULL) { |
2f4c0a16 RD |
6641 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6642 | SWIG_fail; | |
8edf1c75 | 6643 | } |
2f4c0a16 RD |
6644 | arg2 = (int) SWIG_AsInt(obj1); |
6645 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 6646 | if (obj2) { |
2f4c0a16 RD |
6647 | arg3 = (bool) SWIG_AsBool(obj2); |
6648 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6649 | } |
6650 | { | |
6651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6652 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
6653 | ||
6654 | wxPyEndAllowThreads(__tstate); | |
6655 | if (PyErr_Occurred()) SWIG_fail; | |
6656 | } | |
2f4c0a16 | 6657 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); |
d14a1e28 RD |
6658 | return resultobj; |
6659 | fail: | |
6660 | return NULL; | |
6661 | } | |
6662 | ||
6663 | ||
6664 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
6665 | int argc; | |
6666 | PyObject *argv[4]; | |
6667 | int ii; | |
6668 | ||
6669 | argc = PyObject_Length(args); | |
6670 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
6671 | argv[ii] = PyTuple_GetItem(args,ii); | |
6672 | } | |
6673 | if (argc == 1) { | |
6674 | int _v; | |
6675 | { | |
6676 | void *ptr; | |
2f4c0a16 | 6677 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
d14a1e28 RD |
6678 | _v = 0; |
6679 | PyErr_Clear(); | |
6680 | } else { | |
6681 | _v = 1; | |
6682 | } | |
6683 | } | |
6684 | if (_v) { | |
6685 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
6686 | } | |
6687 | } | |
6688 | if ((argc >= 2) && (argc <= 3)) { | |
6689 | int _v; | |
6690 | { | |
6691 | void *ptr; | |
2f4c0a16 | 6692 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
d14a1e28 RD |
6693 | _v = 0; |
6694 | PyErr_Clear(); | |
6695 | } else { | |
6696 | _v = 1; | |
6697 | } | |
6698 | } | |
6699 | if (_v) { | |
2f4c0a16 | 6700 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
6701 | if (_v) { |
6702 | if (argc <= 2) { | |
6703 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6704 | } | |
2f4c0a16 | 6705 | _v = SWIG_CheckBool(argv[2]); |
d14a1e28 RD |
6706 | if (_v) { |
6707 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6708 | } | |
6709 | } | |
6710 | } | |
6711 | } | |
6712 | ||
6713 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
6714 | return NULL; | |
6715 | } | |
6716 | ||
6717 | ||
6718 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6719 | PyObject *resultobj; | |
6720 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6721 | PyObject * obj0 = 0 ; | |
6722 | char *kwnames[] = { | |
6723 | (char *) "self", NULL | |
6724 | }; | |
6725 | ||
6726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, |
6728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6729 | { |
6730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6731 | delete arg1; | |
6732 | ||
6733 | wxPyEndAllowThreads(__tstate); | |
6734 | if (PyErr_Occurred()) SWIG_fail; | |
6735 | } | |
6736 | Py_INCREF(Py_None); resultobj = Py_None; | |
6737 | return resultobj; | |
6738 | fail: | |
6739 | return NULL; | |
6740 | } | |
6741 | ||
6742 | ||
6743 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6744 | PyObject *resultobj; | |
6745 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6746 | int arg2 ; | |
423f194a | 6747 | bool arg3 = (bool) False ; |
d14a1e28 | 6748 | PyObject * obj0 = 0 ; |
8edf1c75 | 6749 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6750 | PyObject * obj2 = 0 ; |
6751 | char *kwnames[] = { | |
6752 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
6753 | }; | |
6754 | ||
8edf1c75 | 6755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, |
6757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6758 | arg2 = (int) SWIG_AsInt(obj1); | |
6759 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 6760 | if (obj2) { |
2f4c0a16 RD |
6761 | arg3 = (bool) SWIG_AsBool(obj2); |
6762 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6763 | } |
6764 | { | |
6765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6766 | (arg1)->Start(arg2,arg3); | |
6767 | ||
6768 | wxPyEndAllowThreads(__tstate); | |
6769 | if (PyErr_Occurred()) SWIG_fail; | |
6770 | } | |
6771 | Py_INCREF(Py_None); resultobj = Py_None; | |
6772 | return resultobj; | |
6773 | fail: | |
6774 | return NULL; | |
6775 | } | |
6776 | ||
6777 | ||
6778 | static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
6779 | PyObject *obj; | |
6780 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6781 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
6782 | Py_INCREF(obj); | |
6783 | return Py_BuildValue((char *)""); | |
6784 | } | |
6785 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6786 | PyObject *resultobj; | |
6787 | wxLog *result; | |
6788 | char *kwnames[] = { | |
6789 | NULL | |
6790 | }; | |
6791 | ||
6792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
6793 | { | |
6794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6795 | result = (wxLog *)new wxLog(); | |
6796 | ||
6797 | wxPyEndAllowThreads(__tstate); | |
6798 | if (PyErr_Occurred()) SWIG_fail; | |
6799 | } | |
2f4c0a16 | 6800 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); |
d14a1e28 RD |
6801 | return resultobj; |
6802 | fail: | |
6803 | return NULL; | |
6804 | } | |
6805 | ||
6806 | ||
6807 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6808 | PyObject *resultobj; | |
6809 | bool result; | |
6810 | char *kwnames[] = { | |
6811 | NULL | |
6812 | }; | |
6813 | ||
6814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
6815 | { | |
6816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6817 | result = (bool)wxLog::IsEnabled(); | |
6818 | ||
6819 | wxPyEndAllowThreads(__tstate); | |
6820 | if (PyErr_Occurred()) SWIG_fail; | |
6821 | } | |
4e760a36 | 6822 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6823 | return resultobj; |
6824 | fail: | |
6825 | return NULL; | |
6826 | } | |
6827 | ||
6828 | ||
6829 | static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6830 | PyObject *resultobj; | |
423f194a | 6831 | bool arg1 = (bool) True ; |
d14a1e28 RD |
6832 | bool result; |
6833 | PyObject * obj0 = 0 ; | |
6834 | char *kwnames[] = { | |
6835 | (char *) "doIt", NULL | |
6836 | }; | |
6837 | ||
6838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
6839 | if (obj0) { | |
2f4c0a16 RD |
6840 | arg1 = (bool) SWIG_AsBool(obj0); |
6841 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6842 | } |
6843 | { | |
6844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6845 | result = (bool)wxLog::EnableLogging(arg1); | |
6846 | ||
6847 | wxPyEndAllowThreads(__tstate); | |
6848 | if (PyErr_Occurred()) SWIG_fail; | |
6849 | } | |
4e760a36 | 6850 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6851 | return resultobj; |
6852 | fail: | |
6853 | return NULL; | |
6854 | } | |
6855 | ||
6856 | ||
6857 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6858 | PyObject *resultobj; | |
6859 | wxLogLevel arg1 ; | |
6860 | wxChar *arg2 = (wxChar *) 0 ; | |
6861 | time_t arg3 ; | |
6862 | PyObject * obj0 = 0 ; | |
6863 | PyObject * obj1 = 0 ; | |
6864 | PyObject * obj2 = 0 ; | |
6865 | char *kwnames[] = { | |
6866 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
6867 | }; | |
6868 | ||
6869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6870 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); |
6871 | if (PyErr_Occurred()) SWIG_fail; | |
6872 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar, | |
6873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6874 | arg3 = (time_t) SWIG_AsUnsignedInt(obj2); | |
6875 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6876 | { |
6877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6878 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
6879 | ||
6880 | wxPyEndAllowThreads(__tstate); | |
6881 | if (PyErr_Occurred()) SWIG_fail; | |
6882 | } | |
6883 | Py_INCREF(Py_None); resultobj = Py_None; | |
6884 | return resultobj; | |
6885 | fail: | |
6886 | return NULL; | |
6887 | } | |
6888 | ||
6889 | ||
6890 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6891 | PyObject *resultobj; | |
6892 | wxLog *arg1 = (wxLog *) 0 ; | |
6893 | PyObject * obj0 = 0 ; | |
6894 | char *kwnames[] = { | |
6895 | (char *) "self", NULL | |
6896 | }; | |
6897 | ||
6898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
6900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6901 | { |
6902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6903 | (arg1)->Flush(); | |
6904 | ||
6905 | wxPyEndAllowThreads(__tstate); | |
6906 | if (PyErr_Occurred()) SWIG_fail; | |
6907 | } | |
6908 | Py_INCREF(Py_None); resultobj = Py_None; | |
6909 | return resultobj; | |
6910 | fail: | |
6911 | return NULL; | |
6912 | } | |
6913 | ||
6914 | ||
6915 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6916 | PyObject *resultobj; | |
6917 | char *kwnames[] = { | |
6918 | NULL | |
6919 | }; | |
6920 | ||
6921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
6922 | { | |
6923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6924 | wxLog::FlushActive(); | |
6925 | ||
6926 | wxPyEndAllowThreads(__tstate); | |
6927 | if (PyErr_Occurred()) SWIG_fail; | |
6928 | } | |
6929 | Py_INCREF(Py_None); resultobj = Py_None; | |
6930 | return resultobj; | |
6931 | fail: | |
6932 | return NULL; | |
6933 | } | |
6934 | ||
6935 | ||
6936 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6937 | PyObject *resultobj; | |
6938 | wxLog *result; | |
6939 | char *kwnames[] = { | |
6940 | NULL | |
6941 | }; | |
6942 | ||
6943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
6944 | { | |
6945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6946 | result = (wxLog *)wxLog::GetActiveTarget(); | |
6947 | ||
6948 | wxPyEndAllowThreads(__tstate); | |
6949 | if (PyErr_Occurred()) SWIG_fail; | |
6950 | } | |
2f4c0a16 | 6951 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
6952 | return resultobj; |
6953 | fail: | |
6954 | return NULL; | |
6955 | } | |
6956 | ||
6957 | ||
6958 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6959 | PyObject *resultobj; | |
6960 | wxLog *arg1 = (wxLog *) 0 ; | |
6961 | wxLog *result; | |
6962 | PyObject * obj0 = 0 ; | |
6963 | char *kwnames[] = { | |
6964 | (char *) "pLogger", NULL | |
6965 | }; | |
6966 | ||
6967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
6969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6970 | { |
6971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6972 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
6973 | ||
6974 | wxPyEndAllowThreads(__tstate); | |
6975 | if (PyErr_Occurred()) SWIG_fail; | |
6976 | } | |
2f4c0a16 | 6977 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
6978 | return resultobj; |
6979 | fail: | |
6980 | return NULL; | |
6981 | } | |
6982 | ||
6983 | ||
6984 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6985 | PyObject *resultobj; | |
6986 | char *kwnames[] = { | |
6987 | NULL | |
6988 | }; | |
6989 | ||
6990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
6991 | { | |
6992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6993 | wxLog::Suspend(); | |
6994 | ||
6995 | wxPyEndAllowThreads(__tstate); | |
6996 | if (PyErr_Occurred()) SWIG_fail; | |
6997 | } | |
6998 | Py_INCREF(Py_None); resultobj = Py_None; | |
6999 | return resultobj; | |
7000 | fail: | |
7001 | return NULL; | |
7002 | } | |
7003 | ||
7004 | ||
7005 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7006 | PyObject *resultobj; | |
7007 | char *kwnames[] = { | |
7008 | NULL | |
7009 | }; | |
7010 | ||
7011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
7012 | { | |
7013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7014 | wxLog::Resume(); | |
7015 | ||
7016 | wxPyEndAllowThreads(__tstate); | |
7017 | if (PyErr_Occurred()) SWIG_fail; | |
7018 | } | |
7019 | Py_INCREF(Py_None); resultobj = Py_None; | |
7020 | return resultobj; | |
7021 | fail: | |
7022 | return NULL; | |
7023 | } | |
7024 | ||
7025 | ||
7026 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7027 | PyObject *resultobj; | |
423f194a | 7028 | bool arg1 = (bool) True ; |
d14a1e28 RD |
7029 | PyObject * obj0 = 0 ; |
7030 | char *kwnames[] = { | |
7031 | (char *) "bVerbose", NULL | |
7032 | }; | |
7033 | ||
7034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
7035 | if (obj0) { | |
2f4c0a16 RD |
7036 | arg1 = (bool) SWIG_AsBool(obj0); |
7037 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7038 | } |
7039 | { | |
7040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7041 | wxLog::SetVerbose(arg1); | |
7042 | ||
7043 | wxPyEndAllowThreads(__tstate); | |
7044 | if (PyErr_Occurred()) SWIG_fail; | |
7045 | } | |
7046 | Py_INCREF(Py_None); resultobj = Py_None; | |
7047 | return resultobj; | |
7048 | fail: | |
7049 | return NULL; | |
7050 | } | |
7051 | ||
7052 | ||
7053 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7054 | PyObject *resultobj; | |
7055 | wxLogLevel arg1 ; | |
7056 | PyObject * obj0 = 0 ; | |
7057 | char *kwnames[] = { | |
7058 | (char *) "logLevel", NULL | |
7059 | }; | |
7060 | ||
7061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7062 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); |
7063 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7064 | { |
7065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7066 | wxLog::SetLogLevel(arg1); | |
7067 | ||
7068 | wxPyEndAllowThreads(__tstate); | |
7069 | if (PyErr_Occurred()) SWIG_fail; | |
7070 | } | |
7071 | Py_INCREF(Py_None); resultobj = Py_None; | |
7072 | return resultobj; | |
7073 | fail: | |
7074 | return NULL; | |
7075 | } | |
7076 | ||
7077 | ||
7078 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7079 | PyObject *resultobj; | |
7080 | char *kwnames[] = { | |
7081 | NULL | |
7082 | }; | |
7083 | ||
7084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
7085 | { | |
7086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7087 | wxLog::DontCreateOnDemand(); | |
7088 | ||
7089 | wxPyEndAllowThreads(__tstate); | |
7090 | if (PyErr_Occurred()) SWIG_fail; | |
7091 | } | |
7092 | Py_INCREF(Py_None); resultobj = Py_None; | |
7093 | return resultobj; | |
7094 | fail: | |
7095 | return NULL; | |
7096 | } | |
7097 | ||
7098 | ||
7099 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7100 | PyObject *resultobj; | |
7101 | wxTraceMask arg1 ; | |
7102 | PyObject * obj0 = 0 ; | |
7103 | char *kwnames[] = { | |
7104 | (char *) "ulMask", NULL | |
7105 | }; | |
7106 | ||
7107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7108 | arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0); |
7109 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7110 | { |
7111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7112 | wxLog::SetTraceMask(arg1); | |
7113 | ||
7114 | wxPyEndAllowThreads(__tstate); | |
7115 | if (PyErr_Occurred()) SWIG_fail; | |
7116 | } | |
7117 | Py_INCREF(Py_None); resultobj = Py_None; | |
7118 | return resultobj; | |
7119 | fail: | |
7120 | return NULL; | |
7121 | } | |
7122 | ||
7123 | ||
7124 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7125 | PyObject *resultobj; | |
7126 | wxString *arg1 = 0 ; | |
423f194a | 7127 | bool temp1 = False ; |
d14a1e28 RD |
7128 | PyObject * obj0 = 0 ; |
7129 | char *kwnames[] = { | |
7130 | (char *) "str", NULL | |
7131 | }; | |
7132 | ||
7133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
7134 | { | |
7135 | arg1 = wxString_in_helper(obj0); | |
7136 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7137 | temp1 = True; |
d14a1e28 RD |
7138 | } |
7139 | { | |
7140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7141 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7142 | ||
7143 | wxPyEndAllowThreads(__tstate); | |
7144 | if (PyErr_Occurred()) SWIG_fail; | |
7145 | } | |
7146 | Py_INCREF(Py_None); resultobj = Py_None; | |
7147 | { | |
7148 | if (temp1) | |
7149 | delete arg1; | |
7150 | } | |
7151 | return resultobj; | |
7152 | fail: | |
7153 | { | |
7154 | if (temp1) | |
7155 | delete arg1; | |
7156 | } | |
7157 | return NULL; | |
7158 | } | |
7159 | ||
7160 | ||
7161 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7162 | PyObject *resultobj; | |
7163 | wxString *arg1 = 0 ; | |
423f194a | 7164 | bool temp1 = False ; |
d14a1e28 RD |
7165 | PyObject * obj0 = 0 ; |
7166 | char *kwnames[] = { | |
7167 | (char *) "str", NULL | |
7168 | }; | |
7169 | ||
7170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7171 | { | |
7172 | arg1 = wxString_in_helper(obj0); | |
7173 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7174 | temp1 = True; |
d14a1e28 RD |
7175 | } |
7176 | { | |
7177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7178 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7179 | ||
7180 | wxPyEndAllowThreads(__tstate); | |
7181 | if (PyErr_Occurred()) SWIG_fail; | |
7182 | } | |
7183 | Py_INCREF(Py_None); resultobj = Py_None; | |
7184 | { | |
7185 | if (temp1) | |
7186 | delete arg1; | |
7187 | } | |
7188 | return resultobj; | |
7189 | fail: | |
7190 | { | |
7191 | if (temp1) | |
7192 | delete arg1; | |
7193 | } | |
7194 | return NULL; | |
7195 | } | |
7196 | ||
7197 | ||
7198 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7199 | PyObject *resultobj; | |
7200 | char *kwnames[] = { | |
7201 | NULL | |
7202 | }; | |
7203 | ||
7204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7205 | { | |
7206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7207 | wxLog::ClearTraceMasks(); | |
7208 | ||
7209 | wxPyEndAllowThreads(__tstate); | |
7210 | if (PyErr_Occurred()) SWIG_fail; | |
7211 | } | |
7212 | Py_INCREF(Py_None); resultobj = Py_None; | |
7213 | return resultobj; | |
7214 | fail: | |
7215 | return NULL; | |
7216 | } | |
7217 | ||
7218 | ||
7219 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7220 | PyObject *resultobj; | |
7221 | wxArrayString *result; | |
7222 | char *kwnames[] = { | |
7223 | NULL | |
7224 | }; | |
7225 | ||
7226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7227 | { | |
7228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7229 | { | |
7230 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7231 | result = (wxArrayString *) &_result_ref; | |
7232 | } | |
7233 | ||
7234 | wxPyEndAllowThreads(__tstate); | |
7235 | if (PyErr_Occurred()) SWIG_fail; | |
7236 | } | |
7237 | { | |
7238 | resultobj = wxArrayString2PyList_helper(*result); | |
7239 | } | |
7240 | return resultobj; | |
7241 | fail: | |
7242 | return NULL; | |
7243 | } | |
7244 | ||
7245 | ||
7246 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7247 | PyObject *resultobj; | |
7248 | wxChar *arg1 = (wxChar *) 0 ; | |
7249 | PyObject * obj0 = 0 ; | |
7250 | char *kwnames[] = { | |
7251 | (char *) "ts", NULL | |
7252 | }; | |
7253 | ||
7254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, |
7256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7257 | { |
7258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7259 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7260 | ||
7261 | wxPyEndAllowThreads(__tstate); | |
7262 | if (PyErr_Occurred()) SWIG_fail; | |
7263 | } | |
7264 | Py_INCREF(Py_None); resultobj = Py_None; | |
7265 | return resultobj; | |
7266 | fail: | |
7267 | return NULL; | |
7268 | } | |
7269 | ||
7270 | ||
7271 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7272 | PyObject *resultobj; | |
7273 | bool result; | |
7274 | char *kwnames[] = { | |
7275 | NULL | |
7276 | }; | |
7277 | ||
7278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7279 | { | |
7280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7281 | result = (bool)wxLog::GetVerbose(); | |
7282 | ||
7283 | wxPyEndAllowThreads(__tstate); | |
7284 | if (PyErr_Occurred()) SWIG_fail; | |
7285 | } | |
4e760a36 | 7286 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7287 | return resultobj; |
7288 | fail: | |
7289 | return NULL; | |
7290 | } | |
7291 | ||
7292 | ||
7293 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7294 | PyObject *resultobj; | |
7295 | wxTraceMask result; | |
7296 | char *kwnames[] = { | |
7297 | NULL | |
7298 | }; | |
7299 | ||
7300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7301 | { | |
7302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7303 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7304 | ||
7305 | wxPyEndAllowThreads(__tstate); | |
7306 | if (PyErr_Occurred()) SWIG_fail; | |
7307 | } | |
2f4c0a16 | 7308 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7309 | return resultobj; |
7310 | fail: | |
7311 | return NULL; | |
7312 | } | |
7313 | ||
7314 | ||
7315 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7316 | PyObject *resultobj; | |
7317 | wxChar *arg1 = (wxChar *) 0 ; | |
7318 | bool result; | |
7319 | PyObject * obj0 = 0 ; | |
7320 | char *kwnames[] = { | |
7321 | (char *) "mask", NULL | |
7322 | }; | |
7323 | ||
7324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, |
7326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7327 | { |
7328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7329 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
7330 | ||
7331 | wxPyEndAllowThreads(__tstate); | |
7332 | if (PyErr_Occurred()) SWIG_fail; | |
7333 | } | |
4e760a36 | 7334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7335 | return resultobj; |
7336 | fail: | |
7337 | return NULL; | |
7338 | } | |
7339 | ||
7340 | ||
7341 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7342 | PyObject *resultobj; | |
7343 | wxLogLevel result; | |
7344 | char *kwnames[] = { | |
7345 | NULL | |
7346 | }; | |
7347 | ||
7348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
7349 | { | |
7350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7351 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
7352 | ||
7353 | wxPyEndAllowThreads(__tstate); | |
7354 | if (PyErr_Occurred()) SWIG_fail; | |
7355 | } | |
2f4c0a16 | 7356 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7357 | return resultobj; |
7358 | fail: | |
7359 | return NULL; | |
7360 | } | |
7361 | ||
7362 | ||
7363 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7364 | PyObject *resultobj; | |
7365 | wxChar *result; | |
7366 | char *kwnames[] = { | |
7367 | NULL | |
7368 | }; | |
7369 | ||
7370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
7371 | { | |
7372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7373 | result = (wxChar *)wxLog::GetTimestamp(); | |
7374 | ||
7375 | wxPyEndAllowThreads(__tstate); | |
7376 | if (PyErr_Occurred()) SWIG_fail; | |
7377 | } | |
2f4c0a16 | 7378 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); |
d14a1e28 RD |
7379 | return resultobj; |
7380 | fail: | |
7381 | return NULL; | |
7382 | } | |
7383 | ||
7384 | ||
7385 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7386 | PyObject *resultobj; | |
7387 | wxString result; | |
7388 | char *kwnames[] = { | |
7389 | NULL | |
7390 | }; | |
7391 | ||
7392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
7393 | { | |
7394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7395 | result = Log_TimeStamp(); | |
7396 | ||
7397 | wxPyEndAllowThreads(__tstate); | |
7398 | if (PyErr_Occurred()) SWIG_fail; | |
7399 | } | |
7400 | { | |
7401 | #if wxUSE_UNICODE | |
7402 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7403 | #else | |
7404 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7405 | #endif | |
7406 | } | |
7407 | return resultobj; | |
7408 | fail: | |
7409 | return NULL; | |
7410 | } | |
7411 | ||
7412 | ||
7413 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7414 | PyObject *resultobj; | |
7415 | wxLog *arg1 = (wxLog *) 0 ; | |
7416 | PyObject * obj0 = 0 ; | |
7417 | char *kwnames[] = { | |
7418 | (char *) "self", NULL | |
7419 | }; | |
7420 | ||
7421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7424 | { |
7425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7426 | wxLog_Destroy(arg1); | |
7427 | ||
7428 | wxPyEndAllowThreads(__tstate); | |
7429 | if (PyErr_Occurred()) SWIG_fail; | |
7430 | } | |
7431 | Py_INCREF(Py_None); resultobj = Py_None; | |
7432 | return resultobj; | |
7433 | fail: | |
7434 | return NULL; | |
7435 | } | |
7436 | ||
7437 | ||
7438 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
7439 | PyObject *obj; | |
7440 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7441 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
7442 | Py_INCREF(obj); | |
7443 | return Py_BuildValue((char *)""); | |
7444 | } | |
7445 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7446 | PyObject *resultobj; | |
7447 | wxLogStderr *result; | |
7448 | char *kwnames[] = { | |
7449 | NULL | |
7450 | }; | |
7451 | ||
7452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
7453 | { | |
7454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7455 | result = (wxLogStderr *)new wxLogStderr(); | |
7456 | ||
7457 | wxPyEndAllowThreads(__tstate); | |
7458 | if (PyErr_Occurred()) SWIG_fail; | |
7459 | } | |
2f4c0a16 | 7460 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); |
d14a1e28 RD |
7461 | return resultobj; |
7462 | fail: | |
7463 | return NULL; | |
7464 | } | |
7465 | ||
7466 | ||
7467 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
7468 | PyObject *obj; | |
7469 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7470 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
7471 | Py_INCREF(obj); | |
7472 | return Py_BuildValue((char *)""); | |
7473 | } | |
7474 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7475 | PyObject *resultobj; | |
7476 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7477 | wxLogTextCtrl *result; | |
7478 | PyObject * obj0 = 0 ; | |
7479 | char *kwnames[] = { | |
7480 | (char *) "pTextCtrl", NULL | |
7481 | }; | |
7482 | ||
7483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7486 | { |
7487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7488 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
7489 | ||
7490 | wxPyEndAllowThreads(__tstate); | |
7491 | if (PyErr_Occurred()) SWIG_fail; | |
7492 | } | |
2f4c0a16 | 7493 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); |
d14a1e28 RD |
7494 | return resultobj; |
7495 | fail: | |
7496 | return NULL; | |
7497 | } | |
7498 | ||
7499 | ||
7500 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
7501 | PyObject *obj; | |
7502 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7503 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
7504 | Py_INCREF(obj); | |
7505 | return Py_BuildValue((char *)""); | |
7506 | } | |
7507 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7508 | PyObject *resultobj; | |
7509 | wxLogGui *result; | |
7510 | char *kwnames[] = { | |
7511 | NULL | |
7512 | }; | |
7513 | ||
7514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
7515 | { | |
7516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7517 | result = (wxLogGui *)new wxLogGui(); | |
7518 | ||
7519 | wxPyEndAllowThreads(__tstate); | |
7520 | if (PyErr_Occurred()) SWIG_fail; | |
7521 | } | |
2f4c0a16 | 7522 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); |
d14a1e28 RD |
7523 | return resultobj; |
7524 | fail: | |
7525 | return NULL; | |
7526 | } | |
7527 | ||
7528 | ||
7529 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
7530 | PyObject *obj; | |
7531 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7532 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
7533 | Py_INCREF(obj); | |
7534 | return Py_BuildValue((char *)""); | |
7535 | } | |
7536 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7537 | PyObject *resultobj; | |
7538 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7539 | wxString *arg2 = 0 ; | |
423f194a RD |
7540 | bool arg3 = (bool) True ; |
7541 | bool arg4 = (bool) True ; | |
d14a1e28 | 7542 | wxLogWindow *result; |
423f194a | 7543 | bool temp2 = False ; |
d14a1e28 RD |
7544 | PyObject * obj0 = 0 ; |
7545 | PyObject * obj1 = 0 ; | |
7546 | PyObject * obj2 = 0 ; | |
7547 | PyObject * obj3 = 0 ; | |
7548 | char *kwnames[] = { | |
7549 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
7550 | }; | |
7551 | ||
7552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
7553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, |
7554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7555 | { |
7556 | arg2 = wxString_in_helper(obj1); | |
7557 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7558 | temp2 = True; |
d14a1e28 RD |
7559 | } |
7560 | if (obj2) { | |
2f4c0a16 RD |
7561 | arg3 = (bool) SWIG_AsBool(obj2); |
7562 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7563 | } |
7564 | if (obj3) { | |
2f4c0a16 RD |
7565 | arg4 = (bool) SWIG_AsBool(obj3); |
7566 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7567 | } |
7568 | { | |
7569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7570 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
7571 | ||
7572 | wxPyEndAllowThreads(__tstate); | |
7573 | if (PyErr_Occurred()) SWIG_fail; | |
7574 | } | |
2f4c0a16 | 7575 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); |
d14a1e28 RD |
7576 | { |
7577 | if (temp2) | |
7578 | delete arg2; | |
7579 | } | |
7580 | return resultobj; | |
7581 | fail: | |
7582 | { | |
7583 | if (temp2) | |
7584 | delete arg2; | |
7585 | } | |
7586 | return NULL; | |
7587 | } | |
7588 | ||
7589 | ||
7590 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7591 | PyObject *resultobj; | |
7592 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
423f194a | 7593 | bool arg2 = (bool) True ; |
d14a1e28 RD |
7594 | PyObject * obj0 = 0 ; |
7595 | PyObject * obj1 = 0 ; | |
7596 | char *kwnames[] = { | |
7597 | (char *) "self",(char *) "bShow", NULL | |
7598 | }; | |
7599 | ||
7600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 7603 | if (obj1) { |
2f4c0a16 RD |
7604 | arg2 = (bool) SWIG_AsBool(obj1); |
7605 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7606 | } |
7607 | { | |
7608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7609 | (arg1)->Show(arg2); | |
7610 | ||
7611 | wxPyEndAllowThreads(__tstate); | |
7612 | if (PyErr_Occurred()) SWIG_fail; | |
7613 | } | |
7614 | Py_INCREF(Py_None); resultobj = Py_None; | |
7615 | return resultobj; | |
7616 | fail: | |
7617 | return NULL; | |
7618 | } | |
7619 | ||
7620 | ||
7621 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7622 | PyObject *resultobj; | |
7623 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7624 | wxFrame *result; | |
7625 | PyObject * obj0 = 0 ; | |
7626 | char *kwnames[] = { | |
7627 | (char *) "self", NULL | |
7628 | }; | |
7629 | ||
7630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7633 | { |
7634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7635 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
7636 | ||
7637 | wxPyEndAllowThreads(__tstate); | |
7638 | if (PyErr_Occurred()) SWIG_fail; | |
7639 | } | |
7640 | { | |
7641 | resultobj = wxPyMake_wxObject(result); | |
7642 | } | |
7643 | return resultobj; | |
7644 | fail: | |
7645 | return NULL; | |
7646 | } | |
7647 | ||
7648 | ||
7649 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7650 | PyObject *resultobj; | |
7651 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7652 | wxLog *result; | |
7653 | PyObject * obj0 = 0 ; | |
7654 | char *kwnames[] = { | |
7655 | (char *) "self", NULL | |
7656 | }; | |
7657 | ||
7658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7661 | { |
7662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7663 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
7664 | ||
7665 | wxPyEndAllowThreads(__tstate); | |
7666 | if (PyErr_Occurred()) SWIG_fail; | |
7667 | } | |
2f4c0a16 | 7668 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
7669 | return resultobj; |
7670 | fail: | |
7671 | return NULL; | |
7672 | } | |
7673 | ||
7674 | ||
7675 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7676 | PyObject *resultobj; | |
7677 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7678 | bool result; | |
7679 | PyObject * obj0 = 0 ; | |
7680 | char *kwnames[] = { | |
7681 | (char *) "self", NULL | |
7682 | }; | |
7683 | ||
7684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7687 | { |
7688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7689 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
7690 | ||
7691 | wxPyEndAllowThreads(__tstate); | |
7692 | if (PyErr_Occurred()) SWIG_fail; | |
7693 | } | |
4e760a36 | 7694 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7695 | return resultobj; |
7696 | fail: | |
7697 | return NULL; | |
7698 | } | |
7699 | ||
7700 | ||
7701 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7702 | PyObject *resultobj; | |
7703 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7704 | bool arg2 ; | |
7705 | PyObject * obj0 = 0 ; | |
7706 | PyObject * obj1 = 0 ; | |
7707 | char *kwnames[] = { | |
7708 | (char *) "self",(char *) "bDoPass", NULL | |
7709 | }; | |
7710 | ||
7711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7714 | arg2 = (bool) SWIG_AsBool(obj1); | |
7715 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7716 | { |
7717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7718 | (arg1)->PassMessages(arg2); | |
7719 | ||
7720 | wxPyEndAllowThreads(__tstate); | |
7721 | if (PyErr_Occurred()) SWIG_fail; | |
7722 | } | |
7723 | Py_INCREF(Py_None); resultobj = Py_None; | |
7724 | return resultobj; | |
7725 | fail: | |
7726 | return NULL; | |
7727 | } | |
7728 | ||
7729 | ||
7730 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
7731 | PyObject *obj; | |
7732 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7733 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
7734 | Py_INCREF(obj); | |
7735 | return Py_BuildValue((char *)""); | |
7736 | } | |
7737 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7738 | PyObject *resultobj; | |
7739 | wxLog *arg1 = (wxLog *) 0 ; | |
7740 | wxLogChain *result; | |
7741 | PyObject * obj0 = 0 ; | |
7742 | char *kwnames[] = { | |
7743 | (char *) "logger", NULL | |
7744 | }; | |
7745 | ||
7746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7749 | { |
7750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7751 | result = (wxLogChain *)new wxLogChain(arg1); | |
7752 | ||
7753 | wxPyEndAllowThreads(__tstate); | |
7754 | if (PyErr_Occurred()) SWIG_fail; | |
7755 | } | |
2f4c0a16 | 7756 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); |
d14a1e28 RD |
7757 | return resultobj; |
7758 | fail: | |
7759 | return NULL; | |
7760 | } | |
7761 | ||
7762 | ||
7763 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7764 | PyObject *resultobj; | |
7765 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7766 | wxLog *arg2 = (wxLog *) 0 ; | |
7767 | PyObject * obj0 = 0 ; | |
7768 | PyObject * obj1 = 0 ; | |
7769 | char *kwnames[] = { | |
7770 | (char *) "self",(char *) "logger", NULL | |
7771 | }; | |
7772 | ||
7773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
7775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7776 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog, | |
7777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7778 | { |
7779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7780 | (arg1)->SetLog(arg2); | |
7781 | ||
7782 | wxPyEndAllowThreads(__tstate); | |
7783 | if (PyErr_Occurred()) SWIG_fail; | |
7784 | } | |
7785 | Py_INCREF(Py_None); resultobj = Py_None; | |
7786 | return resultobj; | |
7787 | fail: | |
7788 | return NULL; | |
7789 | } | |
7790 | ||
7791 | ||
7792 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7793 | PyObject *resultobj; | |
7794 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7795 | bool arg2 ; | |
7796 | PyObject * obj0 = 0 ; | |
7797 | PyObject * obj1 = 0 ; | |
7798 | char *kwnames[] = { | |
7799 | (char *) "self",(char *) "bDoPass", NULL | |
7800 | }; | |
7801 | ||
7802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
7804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7805 | arg2 = (bool) SWIG_AsBool(obj1); | |
7806 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7807 | { |
7808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7809 | (arg1)->PassMessages(arg2); | |
7810 | ||
7811 | wxPyEndAllowThreads(__tstate); | |
7812 | if (PyErr_Occurred()) SWIG_fail; | |
7813 | } | |
7814 | Py_INCREF(Py_None); resultobj = Py_None; | |
7815 | return resultobj; | |
7816 | fail: | |
7817 | return NULL; | |
7818 | } | |
7819 | ||
7820 | ||
7821 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7822 | PyObject *resultobj; | |
7823 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7824 | bool result; | |
7825 | PyObject * obj0 = 0 ; | |
7826 | char *kwnames[] = { | |
7827 | (char *) "self", NULL | |
7828 | }; | |
7829 | ||
7830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
7832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7833 | { |
7834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7835 | result = (bool)(arg1)->IsPassingMessages(); | |
7836 | ||
7837 | wxPyEndAllowThreads(__tstate); | |
7838 | if (PyErr_Occurred()) SWIG_fail; | |
7839 | } | |
4e760a36 | 7840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7841 | return resultobj; |
7842 | fail: | |
7843 | return NULL; | |
7844 | } | |
7845 | ||
7846 | ||
7847 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7848 | PyObject *resultobj; | |
7849 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7850 | wxLog *result; | |
7851 | PyObject * obj0 = 0 ; | |
7852 | char *kwnames[] = { | |
7853 | (char *) "self", NULL | |
7854 | }; | |
7855 | ||
7856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
7858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7859 | { |
7860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7861 | result = (wxLog *)(arg1)->GetOldLog(); | |
7862 | ||
7863 | wxPyEndAllowThreads(__tstate); | |
7864 | if (PyErr_Occurred()) SWIG_fail; | |
7865 | } | |
2f4c0a16 | 7866 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
7867 | return resultobj; |
7868 | fail: | |
7869 | return NULL; | |
7870 | } | |
7871 | ||
7872 | ||
7873 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
7874 | PyObject *obj; | |
7875 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7876 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
7877 | Py_INCREF(obj); | |
7878 | return Py_BuildValue((char *)""); | |
7879 | } | |
7880 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7881 | PyObject *resultobj; | |
7882 | unsigned long result; | |
7883 | char *kwnames[] = { | |
7884 | NULL | |
7885 | }; | |
7886 | ||
7887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
7888 | { | |
7889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7890 | result = (unsigned long)wxSysErrorCode(); | |
7891 | ||
7892 | wxPyEndAllowThreads(__tstate); | |
7893 | if (PyErr_Occurred()) SWIG_fail; | |
7894 | } | |
2f4c0a16 | 7895 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7896 | return resultobj; |
7897 | fail: | |
7898 | return NULL; | |
7899 | } | |
7900 | ||
7901 | ||
7902 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7903 | PyObject *resultobj; | |
7904 | unsigned long arg1 = (unsigned long) 0 ; | |
7905 | wxString result; | |
7906 | PyObject * obj0 = 0 ; | |
7907 | char *kwnames[] = { | |
7908 | (char *) "nErrCode", NULL | |
7909 | }; | |
7910 | ||
7911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
7912 | if (obj0) { | |
2f4c0a16 RD |
7913 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
7914 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7915 | } |
7916 | { | |
7917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7918 | result = wxSysErrorMsg(arg1); | |
7919 | ||
7920 | wxPyEndAllowThreads(__tstate); | |
7921 | if (PyErr_Occurred()) SWIG_fail; | |
7922 | } | |
7923 | { | |
7924 | #if wxUSE_UNICODE | |
7925 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7926 | #else | |
7927 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7928 | #endif | |
7929 | } | |
7930 | return resultobj; | |
7931 | fail: | |
7932 | return NULL; | |
7933 | } | |
7934 | ||
7935 | ||
7936 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7937 | PyObject *resultobj; | |
7938 | wxString *arg1 = 0 ; | |
423f194a | 7939 | bool temp1 = False ; |
d14a1e28 RD |
7940 | PyObject * obj0 = 0 ; |
7941 | char *kwnames[] = { | |
7942 | (char *) "msg", NULL | |
7943 | }; | |
7944 | ||
7945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
7946 | { | |
7947 | arg1 = wxString_in_helper(obj0); | |
7948 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7949 | temp1 = True; |
d14a1e28 RD |
7950 | } |
7951 | { | |
7952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7953 | wxLogFatalError((wxString const &)*arg1); | |
7954 | ||
7955 | wxPyEndAllowThreads(__tstate); | |
7956 | if (PyErr_Occurred()) SWIG_fail; | |
7957 | } | |
7958 | Py_INCREF(Py_None); resultobj = Py_None; | |
7959 | { | |
7960 | if (temp1) | |
7961 | delete arg1; | |
7962 | } | |
7963 | return resultobj; | |
7964 | fail: | |
7965 | { | |
7966 | if (temp1) | |
7967 | delete arg1; | |
7968 | } | |
7969 | return NULL; | |
7970 | } | |
7971 | ||
7972 | ||
7973 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7974 | PyObject *resultobj; | |
7975 | wxString *arg1 = 0 ; | |
423f194a | 7976 | bool temp1 = False ; |
d14a1e28 RD |
7977 | PyObject * obj0 = 0 ; |
7978 | char *kwnames[] = { | |
7979 | (char *) "msg", NULL | |
7980 | }; | |
7981 | ||
7982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
7983 | { | |
7984 | arg1 = wxString_in_helper(obj0); | |
7985 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7986 | temp1 = True; |
d14a1e28 RD |
7987 | } |
7988 | { | |
7989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7990 | wxLogError((wxString const &)*arg1); | |
7991 | ||
7992 | wxPyEndAllowThreads(__tstate); | |
7993 | if (PyErr_Occurred()) SWIG_fail; | |
7994 | } | |
7995 | Py_INCREF(Py_None); resultobj = Py_None; | |
7996 | { | |
7997 | if (temp1) | |
7998 | delete arg1; | |
7999 | } | |
8000 | return resultobj; | |
8001 | fail: | |
8002 | { | |
8003 | if (temp1) | |
8004 | delete arg1; | |
8005 | } | |
8006 | return NULL; | |
8007 | } | |
8008 | ||
8009 | ||
8010 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8011 | PyObject *resultobj; | |
8012 | wxString *arg1 = 0 ; | |
423f194a | 8013 | bool temp1 = False ; |
d14a1e28 RD |
8014 | PyObject * obj0 = 0 ; |
8015 | char *kwnames[] = { | |
8016 | (char *) "msg", NULL | |
8017 | }; | |
8018 | ||
8019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
8020 | { | |
8021 | arg1 = wxString_in_helper(obj0); | |
8022 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8023 | temp1 = True; |
d14a1e28 RD |
8024 | } |
8025 | { | |
8026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8027 | wxLogWarning((wxString const &)*arg1); | |
8028 | ||
8029 | wxPyEndAllowThreads(__tstate); | |
8030 | if (PyErr_Occurred()) SWIG_fail; | |
8031 | } | |
8032 | Py_INCREF(Py_None); resultobj = Py_None; | |
8033 | { | |
8034 | if (temp1) | |
8035 | delete arg1; | |
8036 | } | |
8037 | return resultobj; | |
8038 | fail: | |
8039 | { | |
8040 | if (temp1) | |
8041 | delete arg1; | |
8042 | } | |
8043 | return NULL; | |
8044 | } | |
8045 | ||
8046 | ||
8047 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8048 | PyObject *resultobj; | |
8049 | wxString *arg1 = 0 ; | |
423f194a | 8050 | bool temp1 = False ; |
d14a1e28 RD |
8051 | PyObject * obj0 = 0 ; |
8052 | char *kwnames[] = { | |
8053 | (char *) "msg", NULL | |
8054 | }; | |
8055 | ||
8056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
8057 | { | |
8058 | arg1 = wxString_in_helper(obj0); | |
8059 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8060 | temp1 = True; |
d14a1e28 RD |
8061 | } |
8062 | { | |
8063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8064 | wxLogMessage((wxString const &)*arg1); | |
8065 | ||
8066 | wxPyEndAllowThreads(__tstate); | |
8067 | if (PyErr_Occurred()) SWIG_fail; | |
8068 | } | |
8069 | Py_INCREF(Py_None); resultobj = Py_None; | |
8070 | { | |
8071 | if (temp1) | |
8072 | delete arg1; | |
8073 | } | |
8074 | return resultobj; | |
8075 | fail: | |
8076 | { | |
8077 | if (temp1) | |
8078 | delete arg1; | |
8079 | } | |
8080 | return NULL; | |
8081 | } | |
8082 | ||
8083 | ||
8084 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8085 | PyObject *resultobj; | |
8086 | wxString *arg1 = 0 ; | |
423f194a | 8087 | bool temp1 = False ; |
d14a1e28 RD |
8088 | PyObject * obj0 = 0 ; |
8089 | char *kwnames[] = { | |
8090 | (char *) "msg", NULL | |
8091 | }; | |
8092 | ||
8093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
8094 | { | |
8095 | arg1 = wxString_in_helper(obj0); | |
8096 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8097 | temp1 = True; |
d14a1e28 RD |
8098 | } |
8099 | { | |
8100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8101 | wxLogInfo((wxString const &)*arg1); | |
8102 | ||
8103 | wxPyEndAllowThreads(__tstate); | |
8104 | if (PyErr_Occurred()) SWIG_fail; | |
8105 | } | |
8106 | Py_INCREF(Py_None); resultobj = Py_None; | |
8107 | { | |
8108 | if (temp1) | |
8109 | delete arg1; | |
8110 | } | |
8111 | return resultobj; | |
8112 | fail: | |
8113 | { | |
8114 | if (temp1) | |
8115 | delete arg1; | |
8116 | } | |
8117 | return NULL; | |
8118 | } | |
8119 | ||
8120 | ||
8121 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8122 | PyObject *resultobj; | |
8123 | wxString *arg1 = 0 ; | |
423f194a | 8124 | bool temp1 = False ; |
d14a1e28 RD |
8125 | PyObject * obj0 = 0 ; |
8126 | char *kwnames[] = { | |
8127 | (char *) "msg", NULL | |
8128 | }; | |
8129 | ||
8130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
8131 | { | |
8132 | arg1 = wxString_in_helper(obj0); | |
8133 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8134 | temp1 = True; |
d14a1e28 RD |
8135 | } |
8136 | { | |
8137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8138 | wxLogDebug((wxString const &)*arg1); | |
8139 | ||
8140 | wxPyEndAllowThreads(__tstate); | |
8141 | if (PyErr_Occurred()) SWIG_fail; | |
8142 | } | |
8143 | Py_INCREF(Py_None); resultobj = Py_None; | |
8144 | { | |
8145 | if (temp1) | |
8146 | delete arg1; | |
8147 | } | |
8148 | return resultobj; | |
8149 | fail: | |
8150 | { | |
8151 | if (temp1) | |
8152 | delete arg1; | |
8153 | } | |
8154 | return NULL; | |
8155 | } | |
8156 | ||
8157 | ||
8158 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8159 | PyObject *resultobj; | |
8160 | wxString *arg1 = 0 ; | |
423f194a | 8161 | bool temp1 = False ; |
d14a1e28 RD |
8162 | PyObject * obj0 = 0 ; |
8163 | char *kwnames[] = { | |
8164 | (char *) "msg", NULL | |
8165 | }; | |
8166 | ||
8167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8168 | { | |
8169 | arg1 = wxString_in_helper(obj0); | |
8170 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8171 | temp1 = True; |
d14a1e28 RD |
8172 | } |
8173 | { | |
8174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8175 | wxLogVerbose((wxString const &)*arg1); | |
8176 | ||
8177 | wxPyEndAllowThreads(__tstate); | |
8178 | if (PyErr_Occurred()) SWIG_fail; | |
8179 | } | |
8180 | Py_INCREF(Py_None); resultobj = Py_None; | |
8181 | { | |
8182 | if (temp1) | |
8183 | delete arg1; | |
8184 | } | |
8185 | return resultobj; | |
8186 | fail: | |
8187 | { | |
8188 | if (temp1) | |
8189 | delete arg1; | |
8190 | } | |
8191 | return NULL; | |
8192 | } | |
8193 | ||
8194 | ||
8195 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8196 | PyObject *resultobj; | |
8197 | wxString *arg1 = 0 ; | |
423f194a | 8198 | bool temp1 = False ; |
d14a1e28 RD |
8199 | PyObject * obj0 = 0 ; |
8200 | char *kwnames[] = { | |
8201 | (char *) "msg", NULL | |
8202 | }; | |
8203 | ||
8204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8205 | { | |
8206 | arg1 = wxString_in_helper(obj0); | |
8207 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8208 | temp1 = True; |
d14a1e28 RD |
8209 | } |
8210 | { | |
8211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8212 | wxLogStatus((wxString const &)*arg1); | |
8213 | ||
8214 | wxPyEndAllowThreads(__tstate); | |
8215 | if (PyErr_Occurred()) SWIG_fail; | |
8216 | } | |
8217 | Py_INCREF(Py_None); resultobj = Py_None; | |
8218 | { | |
8219 | if (temp1) | |
8220 | delete arg1; | |
8221 | } | |
8222 | return resultobj; | |
8223 | fail: | |
8224 | { | |
8225 | if (temp1) | |
8226 | delete arg1; | |
8227 | } | |
8228 | return NULL; | |
8229 | } | |
8230 | ||
8231 | ||
8232 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8233 | PyObject *resultobj; | |
8234 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8235 | wxString *arg2 = 0 ; | |
423f194a | 8236 | bool temp2 = False ; |
d14a1e28 RD |
8237 | PyObject * obj0 = 0 ; |
8238 | PyObject * obj1 = 0 ; | |
8239 | char *kwnames[] = { | |
8240 | (char *) "pFrame",(char *) "msg", NULL | |
8241 | }; | |
8242 | ||
8243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, |
8245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8246 | { |
8247 | arg2 = wxString_in_helper(obj1); | |
8248 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8249 | temp2 = True; |
d14a1e28 RD |
8250 | } |
8251 | { | |
8252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8253 | wxLogStatus(arg1,(wxString const &)*arg2); | |
8254 | ||
8255 | wxPyEndAllowThreads(__tstate); | |
8256 | if (PyErr_Occurred()) SWIG_fail; | |
8257 | } | |
8258 | Py_INCREF(Py_None); resultobj = Py_None; | |
8259 | { | |
8260 | if (temp2) | |
8261 | delete arg2; | |
8262 | } | |
8263 | return resultobj; | |
8264 | fail: | |
8265 | { | |
8266 | if (temp2) | |
8267 | delete arg2; | |
8268 | } | |
8269 | return NULL; | |
8270 | } | |
8271 | ||
8272 | ||
8273 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8274 | PyObject *resultobj; | |
8275 | wxString *arg1 = 0 ; | |
423f194a | 8276 | bool temp1 = False ; |
d14a1e28 RD |
8277 | PyObject * obj0 = 0 ; |
8278 | char *kwnames[] = { | |
8279 | (char *) "msg", NULL | |
8280 | }; | |
8281 | ||
8282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8283 | { | |
8284 | arg1 = wxString_in_helper(obj0); | |
8285 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8286 | temp1 = True; |
d14a1e28 RD |
8287 | } |
8288 | { | |
8289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8290 | wxLogSysError((wxString const &)*arg1); | |
8291 | ||
8292 | wxPyEndAllowThreads(__tstate); | |
8293 | if (PyErr_Occurred()) SWIG_fail; | |
8294 | } | |
8295 | Py_INCREF(Py_None); resultobj = Py_None; | |
8296 | { | |
8297 | if (temp1) | |
8298 | delete arg1; | |
8299 | } | |
8300 | return resultobj; | |
8301 | fail: | |
8302 | { | |
8303 | if (temp1) | |
8304 | delete arg1; | |
8305 | } | |
8306 | return NULL; | |
8307 | } | |
8308 | ||
8309 | ||
f0983263 | 8310 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 | 8311 | PyObject *resultobj; |
f0983263 RD |
8312 | unsigned long arg1 ; |
8313 | wxString *arg2 = 0 ; | |
8314 | bool temp2 = False ; | |
d14a1e28 | 8315 | PyObject * obj0 = 0 ; |
f0983263 | 8316 | PyObject * obj1 = 0 ; |
d14a1e28 | 8317 | |
f0983263 | 8318 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8319 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
8320 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 8321 | { |
f0983263 RD |
8322 | arg2 = wxString_in_helper(obj1); |
8323 | if (arg2 == NULL) SWIG_fail; | |
8324 | temp2 = True; | |
d14a1e28 RD |
8325 | } |
8326 | { | |
8327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f0983263 | 8328 | wxLogTrace(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
8329 | |
8330 | wxPyEndAllowThreads(__tstate); | |
8331 | if (PyErr_Occurred()) SWIG_fail; | |
8332 | } | |
8333 | Py_INCREF(Py_None); resultobj = Py_None; | |
8334 | { | |
f0983263 RD |
8335 | if (temp2) |
8336 | delete arg2; | |
d14a1e28 RD |
8337 | } |
8338 | return resultobj; | |
8339 | fail: | |
8340 | { | |
f0983263 RD |
8341 | if (temp2) |
8342 | delete arg2; | |
d14a1e28 RD |
8343 | } |
8344 | return NULL; | |
8345 | } | |
8346 | ||
8347 | ||
f0983263 | 8348 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
8349 | PyObject *resultobj; |
8350 | wxString *arg1 = 0 ; | |
8351 | wxString *arg2 = 0 ; | |
423f194a RD |
8352 | bool temp1 = False ; |
8353 | bool temp2 = False ; | |
d14a1e28 RD |
8354 | PyObject * obj0 = 0 ; |
8355 | PyObject * obj1 = 0 ; | |
d14a1e28 | 8356 | |
f0983263 | 8357 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
8358 | { |
8359 | arg1 = wxString_in_helper(obj0); | |
8360 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8361 | temp1 = True; |
d14a1e28 RD |
8362 | } |
8363 | { | |
8364 | arg2 = wxString_in_helper(obj1); | |
8365 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8366 | temp2 = True; |
d14a1e28 RD |
8367 | } |
8368 | { | |
8369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8370 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
8371 | ||
8372 | wxPyEndAllowThreads(__tstate); | |
8373 | if (PyErr_Occurred()) SWIG_fail; | |
8374 | } | |
8375 | Py_INCREF(Py_None); resultobj = Py_None; | |
8376 | { | |
8377 | if (temp1) | |
8378 | delete arg1; | |
8379 | } | |
8380 | { | |
8381 | if (temp2) | |
8382 | delete arg2; | |
8383 | } | |
8384 | return resultobj; | |
8385 | fail: | |
8386 | { | |
8387 | if (temp1) | |
8388 | delete arg1; | |
8389 | } | |
8390 | { | |
8391 | if (temp2) | |
8392 | delete arg2; | |
8393 | } | |
8394 | return NULL; | |
8395 | } | |
8396 | ||
8397 | ||
f0983263 RD |
8398 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { |
8399 | int argc; | |
8400 | PyObject *argv[3]; | |
8401 | int ii; | |
8402 | ||
8403 | argc = PyObject_Length(args); | |
8404 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
8405 | argv[ii] = PyTuple_GetItem(args,ii); | |
8406 | } | |
8407 | if (argc == 2) { | |
8408 | int _v; | |
8409 | { | |
4e760a36 | 8410 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
f0983263 RD |
8411 | } |
8412 | if (_v) { | |
8413 | { | |
4e760a36 | 8414 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
f0983263 RD |
8415 | } |
8416 | if (_v) { | |
8417 | return _wrap_LogTrace__SWIG_1(self,args); | |
8418 | } | |
8419 | } | |
8420 | } | |
8421 | if (argc == 2) { | |
8422 | int _v; | |
2f4c0a16 | 8423 | _v = SWIG_CheckUnsignedLong(argv[0]); |
f0983263 RD |
8424 | if (_v) { |
8425 | { | |
4e760a36 | 8426 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
f0983263 RD |
8427 | } |
8428 | if (_v) { | |
8429 | return _wrap_LogTrace__SWIG_0(self,args); | |
8430 | } | |
8431 | } | |
8432 | } | |
8433 | ||
8434 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
8435 | return NULL; | |
8436 | } | |
8437 | ||
8438 | ||
d14a1e28 RD |
8439 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { |
8440 | PyObject *resultobj; | |
8441 | unsigned long arg1 ; | |
8442 | wxString *arg2 = 0 ; | |
423f194a | 8443 | bool temp2 = False ; |
d14a1e28 RD |
8444 | PyObject * obj0 = 0 ; |
8445 | PyObject * obj1 = 0 ; | |
8446 | char *kwnames[] = { | |
8447 | (char *) "level",(char *) "msg", NULL | |
8448 | }; | |
8449 | ||
8450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8451 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
8452 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8453 | { |
8454 | arg2 = wxString_in_helper(obj1); | |
8455 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8456 | temp2 = True; |
d14a1e28 RD |
8457 | } |
8458 | { | |
8459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8460 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
8461 | ||
8462 | wxPyEndAllowThreads(__tstate); | |
8463 | if (PyErr_Occurred()) SWIG_fail; | |
8464 | } | |
8465 | Py_INCREF(Py_None); resultobj = Py_None; | |
8466 | { | |
8467 | if (temp2) | |
8468 | delete arg2; | |
8469 | } | |
8470 | return resultobj; | |
8471 | fail: | |
8472 | { | |
8473 | if (temp2) | |
8474 | delete arg2; | |
8475 | } | |
8476 | return NULL; | |
8477 | } | |
8478 | ||
8479 | ||
8480 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8481 | PyObject *resultobj; | |
8482 | wxString *arg1 = 0 ; | |
8483 | wxString *arg2 = 0 ; | |
423f194a RD |
8484 | bool temp1 = False ; |
8485 | bool temp2 = False ; | |
d14a1e28 RD |
8486 | PyObject * obj0 = 0 ; |
8487 | PyObject * obj1 = 0 ; | |
8488 | char *kwnames[] = { | |
8489 | (char *) "title",(char *) "text", NULL | |
8490 | }; | |
8491 | ||
8492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
8493 | { | |
8494 | arg1 = wxString_in_helper(obj0); | |
8495 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8496 | temp1 = True; |
d14a1e28 RD |
8497 | } |
8498 | { | |
8499 | arg2 = wxString_in_helper(obj1); | |
8500 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8501 | temp2 = True; |
d14a1e28 RD |
8502 | } |
8503 | { | |
8504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8505 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
8506 | ||
8507 | wxPyEndAllowThreads(__tstate); | |
8508 | if (PyErr_Occurred()) SWIG_fail; | |
8509 | } | |
8510 | Py_INCREF(Py_None); resultobj = Py_None; | |
8511 | { | |
8512 | if (temp1) | |
8513 | delete arg1; | |
8514 | } | |
8515 | { | |
8516 | if (temp2) | |
8517 | delete arg2; | |
8518 | } | |
8519 | return resultobj; | |
8520 | fail: | |
8521 | { | |
8522 | if (temp1) | |
8523 | delete arg1; | |
8524 | } | |
8525 | { | |
8526 | if (temp2) | |
8527 | delete arg2; | |
8528 | } | |
8529 | return NULL; | |
8530 | } | |
8531 | ||
8532 | ||
8533 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8534 | PyObject *resultobj; | |
8535 | wxLogNull *result; | |
8536 | char *kwnames[] = { | |
8537 | NULL | |
8538 | }; | |
8539 | ||
8540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
8541 | { | |
8542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8543 | result = (wxLogNull *)new wxLogNull(); | |
8544 | ||
8545 | wxPyEndAllowThreads(__tstate); | |
8546 | if (PyErr_Occurred()) SWIG_fail; | |
8547 | } | |
2f4c0a16 | 8548 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); |
d14a1e28 RD |
8549 | return resultobj; |
8550 | fail: | |
8551 | return NULL; | |
8552 | } | |
8553 | ||
8554 | ||
8555 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8556 | PyObject *resultobj; | |
8557 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
8558 | PyObject * obj0 = 0 ; | |
8559 | char *kwnames[] = { | |
8560 | (char *) "self", NULL | |
8561 | }; | |
8562 | ||
8563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull, |
8565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8566 | { |
8567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8568 | delete arg1; | |
8569 | ||
8570 | wxPyEndAllowThreads(__tstate); | |
8571 | if (PyErr_Occurred()) SWIG_fail; | |
8572 | } | |
8573 | Py_INCREF(Py_None); resultobj = Py_None; | |
8574 | return resultobj; | |
8575 | fail: | |
8576 | return NULL; | |
8577 | } | |
8578 | ||
8579 | ||
8580 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
8581 | PyObject *obj; | |
8582 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8583 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
8584 | Py_INCREF(obj); | |
8585 | return Py_BuildValue((char *)""); | |
8586 | } | |
8587 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8588 | PyObject *resultobj; | |
8589 | wxPyLog *result; | |
8590 | char *kwnames[] = { | |
8591 | NULL | |
8592 | }; | |
8593 | ||
8594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
8595 | { | |
8596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8597 | result = (wxPyLog *)new wxPyLog(); | |
8598 | ||
8599 | wxPyEndAllowThreads(__tstate); | |
8600 | if (PyErr_Occurred()) SWIG_fail; | |
8601 | } | |
2f4c0a16 | 8602 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); |
d14a1e28 RD |
8603 | return resultobj; |
8604 | fail: | |
8605 | return NULL; | |
8606 | } | |
8607 | ||
8608 | ||
8609 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8610 | PyObject *resultobj; | |
8611 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
8612 | PyObject *arg2 = (PyObject *) 0 ; | |
8613 | PyObject *arg3 = (PyObject *) 0 ; | |
8614 | PyObject * obj0 = 0 ; | |
8615 | PyObject * obj1 = 0 ; | |
8616 | PyObject * obj2 = 0 ; | |
8617 | char *kwnames[] = { | |
8618 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8619 | }; | |
8620 | ||
8621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
8622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog, |
8623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8624 | arg2 = obj1; |
8625 | arg3 = obj2; | |
8626 | { | |
8627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8628 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8629 | ||
8630 | wxPyEndAllowThreads(__tstate); | |
8631 | if (PyErr_Occurred()) SWIG_fail; | |
8632 | } | |
8633 | Py_INCREF(Py_None); resultobj = Py_None; | |
8634 | return resultobj; | |
8635 | fail: | |
8636 | return NULL; | |
8637 | } | |
8638 | ||
8639 | ||
8640 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
8641 | PyObject *obj; | |
8642 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8643 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
8644 | Py_INCREF(obj); | |
8645 | return Py_BuildValue((char *)""); | |
8646 | } | |
8647 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8648 | PyObject *resultobj; | |
8649 | int arg1 ; | |
8650 | int arg2 = (int) wxSIGTERM ; | |
8651 | int result; | |
8edf1c75 RD |
8652 | PyObject * obj0 = 0 ; |
8653 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8654 | char *kwnames[] = { |
8655 | (char *) "pid",(char *) "sig", NULL | |
8656 | }; | |
8657 | ||
8edf1c75 | 8658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8659 | arg1 = (int) SWIG_AsInt(obj0); |
8660 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8661 | if (obj1) { |
2f4c0a16 RD |
8662 | arg2 = (wxSignal) SWIG_AsInt(obj1); |
8663 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8664 | } |
d14a1e28 RD |
8665 | { |
8666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8667 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
8668 | ||
8669 | wxPyEndAllowThreads(__tstate); | |
8670 | if (PyErr_Occurred()) SWIG_fail; | |
8671 | } | |
2f4c0a16 | 8672 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8673 | return resultobj; |
8674 | fail: | |
8675 | return NULL; | |
8676 | } | |
8677 | ||
8678 | ||
8679 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8680 | PyObject *resultobj; | |
8681 | int arg1 ; | |
8682 | bool result; | |
8edf1c75 | 8683 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
8684 | char *kwnames[] = { |
8685 | (char *) "pid", NULL | |
8686 | }; | |
8687 | ||
8edf1c75 | 8688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
8689 | arg1 = (int) SWIG_AsInt(obj0); |
8690 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8691 | { |
8692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8693 | result = (bool)wxPyProcess::Exists(arg1); | |
8694 | ||
8695 | wxPyEndAllowThreads(__tstate); | |
8696 | if (PyErr_Occurred()) SWIG_fail; | |
8697 | } | |
4e760a36 | 8698 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8699 | return resultobj; |
8700 | fail: | |
8701 | return NULL; | |
8702 | } | |
8703 | ||
8704 | ||
8705 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8706 | PyObject *resultobj; | |
8707 | wxString *arg1 = 0 ; | |
8708 | int arg2 = (int) wxEXEC_ASYNC ; | |
8709 | wxPyProcess *result; | |
423f194a | 8710 | bool temp1 = False ; |
d14a1e28 | 8711 | PyObject * obj0 = 0 ; |
8edf1c75 | 8712 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8713 | char *kwnames[] = { |
8714 | (char *) "cmd",(char *) "flags", NULL | |
8715 | }; | |
8716 | ||
8edf1c75 | 8717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
8718 | { |
8719 | arg1 = wxString_in_helper(obj0); | |
8720 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8721 | temp1 = True; |
d14a1e28 | 8722 | } |
8edf1c75 | 8723 | if (obj1) { |
2f4c0a16 RD |
8724 | arg2 = (int) SWIG_AsInt(obj1); |
8725 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8726 | } |
d14a1e28 RD |
8727 | { |
8728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8729 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
8730 | ||
8731 | wxPyEndAllowThreads(__tstate); | |
8732 | if (PyErr_Occurred()) SWIG_fail; | |
8733 | } | |
2f4c0a16 | 8734 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); |
d14a1e28 RD |
8735 | { |
8736 | if (temp1) | |
8737 | delete arg1; | |
8738 | } | |
8739 | return resultobj; | |
8740 | fail: | |
8741 | { | |
8742 | if (temp1) | |
8743 | delete arg1; | |
8744 | } | |
8745 | return NULL; | |
8746 | } | |
8747 | ||
8748 | ||
8749 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8750 | PyObject *resultobj; | |
8751 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
8752 | int arg2 = (int) -1 ; | |
8753 | wxPyProcess *result; | |
8754 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8755 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8756 | char *kwnames[] = { |
8757 | (char *) "parent",(char *) "id", NULL | |
8758 | }; | |
8759 | ||
8edf1c75 | 8760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8761 | if (obj0) { |
2f4c0a16 RD |
8762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
8763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8764 | } |
8edf1c75 | 8765 | if (obj1) { |
2f4c0a16 RD |
8766 | arg2 = (int) SWIG_AsInt(obj1); |
8767 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8768 | } |
d14a1e28 RD |
8769 | { |
8770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8771 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
8772 | ||
8773 | wxPyEndAllowThreads(__tstate); | |
8774 | if (PyErr_Occurred()) SWIG_fail; | |
8775 | } | |
2f4c0a16 | 8776 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); |
d14a1e28 RD |
8777 | return resultobj; |
8778 | fail: | |
8779 | return NULL; | |
8780 | } | |
8781 | ||
8782 | ||
8783 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8784 | PyObject *resultobj; | |
8785 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8786 | PyObject *arg2 = (PyObject *) 0 ; | |
8787 | PyObject *arg3 = (PyObject *) 0 ; | |
8788 | PyObject * obj0 = 0 ; | |
8789 | PyObject * obj1 = 0 ; | |
8790 | PyObject * obj2 = 0 ; | |
8791 | char *kwnames[] = { | |
8792 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8793 | }; | |
8794 | ||
8795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
8796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
8797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8798 | arg2 = obj1; |
8799 | arg3 = obj2; | |
8800 | { | |
8801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8802 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8803 | ||
8804 | wxPyEndAllowThreads(__tstate); | |
8805 | if (PyErr_Occurred()) SWIG_fail; | |
8806 | } | |
8807 | Py_INCREF(Py_None); resultobj = Py_None; | |
8808 | return resultobj; | |
8809 | fail: | |
8810 | return NULL; | |
8811 | } | |
8812 | ||
8813 | ||
8814 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8815 | PyObject *resultobj; | |
8816 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8817 | int arg2 ; | |
8818 | int arg3 ; | |
8819 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8820 | PyObject * obj1 = 0 ; |
8821 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8822 | char *kwnames[] = { |
8823 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
8824 | }; | |
8825 | ||
8edf1c75 | 8826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
8828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8829 | arg2 = (int) SWIG_AsInt(obj1); | |
8830 | if (PyErr_Occurred()) SWIG_fail; | |
8831 | arg3 = (int) SWIG_AsInt(obj2); | |
8832 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8833 | { |
8834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8835 | (arg1)->base_OnTerminate(arg2,arg3); | |
8836 | ||
8837 | wxPyEndAllowThreads(__tstate); | |
8838 | if (PyErr_Occurred()) SWIG_fail; | |
8839 | } | |
8840 | Py_INCREF(Py_None); resultobj = Py_None; | |
8841 | return resultobj; | |
8842 | fail: | |
8843 | return NULL; | |
8844 | } | |
8845 | ||
8846 | ||
8847 | static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8848 | PyObject *resultobj; | |
8849 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8850 | PyObject * obj0 = 0 ; | |
8851 | char *kwnames[] = { | |
8852 | (char *) "self", NULL | |
8853 | }; | |
8854 | ||
8855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
8857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8858 | { |
8859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8860 | (arg1)->Redirect(); | |
8861 | ||
8862 | wxPyEndAllowThreads(__tstate); | |
8863 | if (PyErr_Occurred()) SWIG_fail; | |
8864 | } | |
8865 | Py_INCREF(Py_None); resultobj = Py_None; | |
8866 | return resultobj; | |
8867 | fail: | |
8868 | return NULL; | |
8869 | } | |
8870 | ||
8871 | ||
8872 | static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8873 | PyObject *resultobj; | |
8874 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8875 | bool result; | |
8876 | PyObject * obj0 = 0 ; | |
8877 | char *kwnames[] = { | |
8878 | (char *) "self", NULL | |
8879 | }; | |
8880 | ||
8881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
8883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8884 | { |
8885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8886 | result = (bool)(arg1)->IsRedirected(); | |
8887 | ||
8888 | wxPyEndAllowThreads(__tstate); | |
8889 | if (PyErr_Occurred()) SWIG_fail; | |
8890 | } | |
4e760a36 | 8891 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8892 | return resultobj; |
8893 | fail: | |
8894 | return NULL; | |
8895 | } | |
8896 | ||
8897 | ||
8898 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8899 | PyObject *resultobj; | |
8900 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8901 | PyObject * obj0 = 0 ; | |
8902 | char *kwnames[] = { | |
8903 | (char *) "self", NULL | |
8904 | }; | |
8905 | ||
8906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
8908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8909 | { |
8910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8911 | (arg1)->Detach(); | |
8912 | ||
8913 | wxPyEndAllowThreads(__tstate); | |
8914 | if (PyErr_Occurred()) SWIG_fail; | |
8915 | } | |
8916 | Py_INCREF(Py_None); resultobj = Py_None; | |
8917 | return resultobj; | |
8918 | fail: | |
8919 | return NULL; | |
8920 | } | |
8921 | ||
8922 | ||
8923 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8924 | PyObject *resultobj; | |
8925 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8926 | wxInputStream *result; | |
8927 | PyObject * obj0 = 0 ; | |
8928 | char *kwnames[] = { | |
8929 | (char *) "self", NULL | |
8930 | }; | |
8931 | ||
8932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
8934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8935 | { |
8936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8937 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
8938 | ||
8939 | wxPyEndAllowThreads(__tstate); | |
8940 | if (PyErr_Occurred()) SWIG_fail; | |
8941 | } | |
8942 | { | |
8943 | wxPyInputStream * _ptr = NULL; | |
8944 | ||
8945 | if (result) { | |
8946 | _ptr = new wxPyInputStream(result); | |
8947 | } | |
423f194a | 8948 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
8949 | } |
8950 | return resultobj; | |
8951 | fail: | |
8952 | return NULL; | |
8953 | } | |
8954 | ||
8955 | ||
8956 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8957 | PyObject *resultobj; | |
8958 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8959 | wxInputStream *result; | |
8960 | PyObject * obj0 = 0 ; | |
8961 | char *kwnames[] = { | |
8962 | (char *) "self", NULL | |
8963 | }; | |
8964 | ||
8965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
8967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8968 | { |
8969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8970 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
8971 | ||
8972 | wxPyEndAllowThreads(__tstate); | |
8973 | if (PyErr_Occurred()) SWIG_fail; | |
8974 | } | |
8975 | { | |
8976 | wxPyInputStream * _ptr = NULL; | |
8977 | ||
8978 | if (result) { | |
8979 | _ptr = new wxPyInputStream(result); | |
8980 | } | |
423f194a | 8981 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
8982 | } |
8983 | return resultobj; | |
8984 | fail: | |
8985 | return NULL; | |
8986 | } | |
8987 | ||
8988 | ||
8989 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8990 | PyObject *resultobj; | |
8991 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8992 | wxOutputStream *result; | |
8993 | PyObject * obj0 = 0 ; | |
8994 | char *kwnames[] = { | |
8995 | (char *) "self", NULL | |
8996 | }; | |
8997 | ||
8998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9001 | { |
9002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9003 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
9004 | ||
9005 | wxPyEndAllowThreads(__tstate); | |
9006 | if (PyErr_Occurred()) SWIG_fail; | |
9007 | } | |
2f4c0a16 | 9008 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); |
d14a1e28 RD |
9009 | return resultobj; |
9010 | fail: | |
9011 | return NULL; | |
9012 | } | |
9013 | ||
9014 | ||
9015 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9016 | PyObject *resultobj; | |
9017 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9018 | PyObject * obj0 = 0 ; | |
9019 | char *kwnames[] = { | |
9020 | (char *) "self", NULL | |
9021 | }; | |
9022 | ||
9023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9026 | { |
9027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9028 | (arg1)->CloseOutput(); | |
9029 | ||
9030 | wxPyEndAllowThreads(__tstate); | |
9031 | if (PyErr_Occurred()) SWIG_fail; | |
9032 | } | |
9033 | Py_INCREF(Py_None); resultobj = Py_None; | |
9034 | return resultobj; | |
9035 | fail: | |
9036 | return NULL; | |
9037 | } | |
9038 | ||
9039 | ||
9040 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9041 | PyObject *resultobj; | |
9042 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9043 | bool result; | |
9044 | PyObject * obj0 = 0 ; | |
9045 | char *kwnames[] = { | |
9046 | (char *) "self", NULL | |
9047 | }; | |
9048 | ||
9049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9052 | { |
9053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9054 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
9055 | ||
9056 | wxPyEndAllowThreads(__tstate); | |
9057 | if (PyErr_Occurred()) SWIG_fail; | |
9058 | } | |
4e760a36 | 9059 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9060 | return resultobj; |
9061 | fail: | |
9062 | return NULL; | |
9063 | } | |
9064 | ||
9065 | ||
9066 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9067 | PyObject *resultobj; | |
9068 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9069 | bool result; | |
9070 | PyObject * obj0 = 0 ; | |
9071 | char *kwnames[] = { | |
9072 | (char *) "self", NULL | |
9073 | }; | |
9074 | ||
9075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9078 | { |
9079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9080 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
9081 | ||
9082 | wxPyEndAllowThreads(__tstate); | |
9083 | if (PyErr_Occurred()) SWIG_fail; | |
9084 | } | |
4e760a36 | 9085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9086 | return resultobj; |
9087 | fail: | |
9088 | return NULL; | |
9089 | } | |
9090 | ||
9091 | ||
9092 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9093 | PyObject *resultobj; | |
9094 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9095 | bool result; | |
9096 | PyObject * obj0 = 0 ; | |
9097 | char *kwnames[] = { | |
9098 | (char *) "self", NULL | |
9099 | }; | |
9100 | ||
9101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9104 | { |
9105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9106 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
9107 | ||
9108 | wxPyEndAllowThreads(__tstate); | |
9109 | if (PyErr_Occurred()) SWIG_fail; | |
9110 | } | |
4e760a36 | 9111 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9112 | return resultobj; |
9113 | fail: | |
9114 | return NULL; | |
9115 | } | |
9116 | ||
9117 | ||
9118 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
9119 | PyObject *obj; | |
9120 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9121 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
9122 | Py_INCREF(obj); | |
9123 | return Py_BuildValue((char *)""); | |
9124 | } | |
9125 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9126 | PyObject *resultobj; | |
9127 | int arg1 = (int) 0 ; | |
9128 | int arg2 = (int) 0 ; | |
9129 | int arg3 = (int) 0 ; | |
9130 | wxProcessEvent *result; | |
8edf1c75 RD |
9131 | PyObject * obj0 = 0 ; |
9132 | PyObject * obj1 = 0 ; | |
9133 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9134 | char *kwnames[] = { |
9135 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9136 | }; | |
9137 | ||
8edf1c75 RD |
9138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
9139 | if (obj0) { | |
2f4c0a16 RD |
9140 | arg1 = (int) SWIG_AsInt(obj0); |
9141 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
9142 | } |
9143 | if (obj1) { | |
2f4c0a16 RD |
9144 | arg2 = (int) SWIG_AsInt(obj1); |
9145 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
9146 | } |
9147 | if (obj2) { | |
2f4c0a16 RD |
9148 | arg3 = (int) SWIG_AsInt(obj2); |
9149 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9150 | } |
d14a1e28 RD |
9151 | { |
9152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9153 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9154 | ||
9155 | wxPyEndAllowThreads(__tstate); | |
9156 | if (PyErr_Occurred()) SWIG_fail; | |
9157 | } | |
2f4c0a16 | 9158 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); |
d14a1e28 RD |
9159 | return resultobj; |
9160 | fail: | |
9161 | return NULL; | |
9162 | } | |
9163 | ||
9164 | ||
9165 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9166 | PyObject *resultobj; | |
9167 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9168 | int result; | |
9169 | PyObject * obj0 = 0 ; | |
9170 | char *kwnames[] = { | |
9171 | (char *) "self", NULL | |
9172 | }; | |
9173 | ||
9174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9177 | { |
9178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9179 | result = (int)(arg1)->GetPid(); | |
9180 | ||
9181 | wxPyEndAllowThreads(__tstate); | |
9182 | if (PyErr_Occurred()) SWIG_fail; | |
9183 | } | |
2f4c0a16 | 9184 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9185 | return resultobj; |
9186 | fail: | |
9187 | return NULL; | |
9188 | } | |
9189 | ||
9190 | ||
9191 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9192 | PyObject *resultobj; | |
9193 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9194 | int result; | |
9195 | PyObject * obj0 = 0 ; | |
9196 | char *kwnames[] = { | |
9197 | (char *) "self", NULL | |
9198 | }; | |
9199 | ||
9200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9203 | { |
9204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9205 | result = (int)(arg1)->GetExitCode(); | |
9206 | ||
9207 | wxPyEndAllowThreads(__tstate); | |
9208 | if (PyErr_Occurred()) SWIG_fail; | |
9209 | } | |
2f4c0a16 | 9210 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9211 | return resultobj; |
9212 | fail: | |
9213 | return NULL; | |
9214 | } | |
9215 | ||
9216 | ||
9217 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9218 | PyObject *resultobj; | |
9219 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9220 | int arg2 ; | |
9221 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9222 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9223 | char *kwnames[] = { |
9224 | (char *) "self",(char *) "m_pid", NULL | |
9225 | }; | |
9226 | ||
8edf1c75 | 9227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
9228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9230 | arg2 = (int) SWIG_AsInt(obj1); | |
9231 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9232 | if (arg1) (arg1)->m_pid = arg2; |
9233 | ||
9234 | Py_INCREF(Py_None); resultobj = Py_None; | |
9235 | return resultobj; | |
9236 | fail: | |
9237 | return NULL; | |
9238 | } | |
9239 | ||
9240 | ||
9241 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9242 | PyObject *resultobj; | |
9243 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9244 | int result; | |
9245 | PyObject * obj0 = 0 ; | |
9246 | char *kwnames[] = { | |
9247 | (char *) "self", NULL | |
9248 | }; | |
9249 | ||
9250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9253 | result = (int) ((arg1)->m_pid); |
9254 | ||
2f4c0a16 | 9255 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9256 | return resultobj; |
9257 | fail: | |
9258 | return NULL; | |
9259 | } | |
9260 | ||
9261 | ||
9262 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9263 | PyObject *resultobj; | |
9264 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9265 | int arg2 ; | |
9266 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9267 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9268 | char *kwnames[] = { |
9269 | (char *) "self",(char *) "m_exitcode", NULL | |
9270 | }; | |
9271 | ||
8edf1c75 | 9272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
9273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9275 | arg2 = (int) SWIG_AsInt(obj1); | |
9276 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9277 | if (arg1) (arg1)->m_exitcode = arg2; |
9278 | ||
9279 | Py_INCREF(Py_None); resultobj = Py_None; | |
9280 | return resultobj; | |
9281 | fail: | |
9282 | return NULL; | |
9283 | } | |
9284 | ||
9285 | ||
9286 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9287 | PyObject *resultobj; | |
9288 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9289 | int result; | |
9290 | PyObject * obj0 = 0 ; | |
9291 | char *kwnames[] = { | |
9292 | (char *) "self", NULL | |
9293 | }; | |
9294 | ||
9295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9298 | result = (int) ((arg1)->m_exitcode); |
9299 | ||
2f4c0a16 | 9300 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9301 | return resultobj; |
9302 | fail: | |
9303 | return NULL; | |
9304 | } | |
9305 | ||
9306 | ||
9307 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
9308 | PyObject *obj; | |
9309 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9310 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
9311 | Py_INCREF(obj); | |
9312 | return Py_BuildValue((char *)""); | |
9313 | } | |
9314 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9315 | PyObject *resultobj; | |
9316 | wxString *arg1 = 0 ; | |
9317 | int arg2 = (int) wxEXEC_ASYNC ; | |
9318 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
9319 | long result; | |
423f194a | 9320 | bool temp1 = False ; |
d14a1e28 | 9321 | PyObject * obj0 = 0 ; |
8edf1c75 | 9322 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9323 | PyObject * obj2 = 0 ; |
9324 | char *kwnames[] = { | |
9325 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
9326 | }; | |
9327 | ||
8edf1c75 | 9328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
9329 | { |
9330 | arg1 = wxString_in_helper(obj0); | |
9331 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9332 | temp1 = True; |
d14a1e28 | 9333 | } |
8edf1c75 | 9334 | if (obj1) { |
2f4c0a16 RD |
9335 | arg2 = (int) SWIG_AsInt(obj1); |
9336 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9337 | } |
d14a1e28 | 9338 | if (obj2) { |
2f4c0a16 RD |
9339 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess, |
9340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9341 | } |
9342 | { | |
9343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9344 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
9345 | ||
9346 | wxPyEndAllowThreads(__tstate); | |
9347 | if (PyErr_Occurred()) SWIG_fail; | |
9348 | } | |
2f4c0a16 | 9349 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9350 | { |
9351 | if (temp1) | |
9352 | delete arg1; | |
9353 | } | |
9354 | return resultobj; | |
9355 | fail: | |
9356 | { | |
9357 | if (temp1) | |
9358 | delete arg1; | |
9359 | } | |
9360 | return NULL; | |
9361 | } | |
9362 | ||
9363 | ||
9364 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9365 | PyObject *resultobj; | |
9366 | int arg1 = (int) wxJOYSTICK1 ; | |
9367 | wxJoystick *result; | |
8edf1c75 | 9368 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9369 | char *kwnames[] = { |
9370 | (char *) "joystick", NULL | |
9371 | }; | |
9372 | ||
8edf1c75 RD |
9373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; |
9374 | if (obj0) { | |
2f4c0a16 RD |
9375 | arg1 = (int) SWIG_AsInt(obj0); |
9376 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9377 | } |
d14a1e28 RD |
9378 | { |
9379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9380 | result = (wxJoystick *)new wxJoystick(arg1); | |
9381 | ||
9382 | wxPyEndAllowThreads(__tstate); | |
9383 | if (PyErr_Occurred()) SWIG_fail; | |
9384 | } | |
2f4c0a16 | 9385 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); |
d14a1e28 RD |
9386 | return resultobj; |
9387 | fail: | |
9388 | return NULL; | |
9389 | } | |
9390 | ||
9391 | ||
9392 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9393 | PyObject *resultobj; | |
9394 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9395 | PyObject * obj0 = 0 ; | |
9396 | char *kwnames[] = { | |
9397 | (char *) "self", NULL | |
9398 | }; | |
9399 | ||
9400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9403 | { |
9404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9405 | delete arg1; | |
9406 | ||
9407 | wxPyEndAllowThreads(__tstate); | |
9408 | if (PyErr_Occurred()) SWIG_fail; | |
9409 | } | |
9410 | Py_INCREF(Py_None); resultobj = Py_None; | |
9411 | return resultobj; | |
9412 | fail: | |
9413 | return NULL; | |
9414 | } | |
9415 | ||
9416 | ||
9417 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9418 | PyObject *resultobj; | |
9419 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9420 | wxPoint result; | |
9421 | PyObject * obj0 = 0 ; | |
9422 | char *kwnames[] = { | |
9423 | (char *) "self", NULL | |
9424 | }; | |
9425 | ||
9426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9429 | { |
9430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9431 | result = (arg1)->GetPosition(); | |
9432 | ||
9433 | wxPyEndAllowThreads(__tstate); | |
9434 | if (PyErr_Occurred()) SWIG_fail; | |
9435 | } | |
9436 | { | |
9437 | wxPoint * resultptr; | |
9438 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 9439 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
9440 | } |
9441 | return resultobj; | |
9442 | fail: | |
9443 | return NULL; | |
9444 | } | |
9445 | ||
9446 | ||
9447 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9448 | PyObject *resultobj; | |
9449 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9450 | int result; | |
9451 | PyObject * obj0 = 0 ; | |
9452 | char *kwnames[] = { | |
9453 | (char *) "self", NULL | |
9454 | }; | |
9455 | ||
9456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9459 | { |
9460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9461 | result = (int)(arg1)->GetZPosition(); | |
9462 | ||
9463 | wxPyEndAllowThreads(__tstate); | |
9464 | if (PyErr_Occurred()) SWIG_fail; | |
9465 | } | |
2f4c0a16 | 9466 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9467 | return resultobj; |
9468 | fail: | |
9469 | return NULL; | |
9470 | } | |
9471 | ||
9472 | ||
9473 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9474 | PyObject *resultobj; | |
9475 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9476 | int result; | |
9477 | PyObject * obj0 = 0 ; | |
9478 | char *kwnames[] = { | |
9479 | (char *) "self", NULL | |
9480 | }; | |
9481 | ||
9482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9485 | { |
9486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9487 | result = (int)(arg1)->GetButtonState(); | |
9488 | ||
9489 | wxPyEndAllowThreads(__tstate); | |
9490 | if (PyErr_Occurred()) SWIG_fail; | |
9491 | } | |
2f4c0a16 | 9492 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9493 | return resultobj; |
9494 | fail: | |
9495 | return NULL; | |
9496 | } | |
9497 | ||
9498 | ||
9499 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9500 | PyObject *resultobj; | |
9501 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9502 | int result; | |
9503 | PyObject * obj0 = 0 ; | |
9504 | char *kwnames[] = { | |
9505 | (char *) "self", NULL | |
9506 | }; | |
9507 | ||
9508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9511 | { |
9512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9513 | result = (int)(arg1)->GetPOVPosition(); | |
9514 | ||
9515 | wxPyEndAllowThreads(__tstate); | |
9516 | if (PyErr_Occurred()) SWIG_fail; | |
9517 | } | |
2f4c0a16 | 9518 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9519 | return resultobj; |
9520 | fail: | |
9521 | return NULL; | |
9522 | } | |
9523 | ||
9524 | ||
9525 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9526 | PyObject *resultobj; | |
9527 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9528 | int result; | |
9529 | PyObject * obj0 = 0 ; | |
9530 | char *kwnames[] = { | |
9531 | (char *) "self", NULL | |
9532 | }; | |
9533 | ||
9534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9537 | { |
9538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9539 | result = (int)(arg1)->GetPOVCTSPosition(); | |
9540 | ||
9541 | wxPyEndAllowThreads(__tstate); | |
9542 | if (PyErr_Occurred()) SWIG_fail; | |
9543 | } | |
2f4c0a16 | 9544 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9545 | return resultobj; |
9546 | fail: | |
9547 | return NULL; | |
9548 | } | |
9549 | ||
9550 | ||
9551 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9552 | PyObject *resultobj; | |
9553 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9554 | int result; | |
9555 | PyObject * obj0 = 0 ; | |
9556 | char *kwnames[] = { | |
9557 | (char *) "self", NULL | |
9558 | }; | |
9559 | ||
9560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9563 | { |
9564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9565 | result = (int)(arg1)->GetRudderPosition(); | |
9566 | ||
9567 | wxPyEndAllowThreads(__tstate); | |
9568 | if (PyErr_Occurred()) SWIG_fail; | |
9569 | } | |
2f4c0a16 | 9570 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9571 | return resultobj; |
9572 | fail: | |
9573 | return NULL; | |
9574 | } | |
9575 | ||
9576 | ||
9577 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9578 | PyObject *resultobj; | |
9579 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9580 | int result; | |
9581 | PyObject * obj0 = 0 ; | |
9582 | char *kwnames[] = { | |
9583 | (char *) "self", NULL | |
9584 | }; | |
9585 | ||
9586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9589 | { |
9590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9591 | result = (int)(arg1)->GetUPosition(); | |
9592 | ||
9593 | wxPyEndAllowThreads(__tstate); | |
9594 | if (PyErr_Occurred()) SWIG_fail; | |
9595 | } | |
2f4c0a16 | 9596 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9597 | return resultobj; |
9598 | fail: | |
9599 | return NULL; | |
9600 | } | |
9601 | ||
9602 | ||
9603 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9604 | PyObject *resultobj; | |
9605 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9606 | int result; | |
9607 | PyObject * obj0 = 0 ; | |
9608 | char *kwnames[] = { | |
9609 | (char *) "self", NULL | |
9610 | }; | |
9611 | ||
9612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9615 | { |
9616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9617 | result = (int)(arg1)->GetVPosition(); | |
9618 | ||
9619 | wxPyEndAllowThreads(__tstate); | |
9620 | if (PyErr_Occurred()) SWIG_fail; | |
9621 | } | |
2f4c0a16 | 9622 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9623 | return resultobj; |
9624 | fail: | |
9625 | return NULL; | |
9626 | } | |
9627 | ||
9628 | ||
9629 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9630 | PyObject *resultobj; | |
9631 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9632 | int result; | |
9633 | PyObject * obj0 = 0 ; | |
9634 | char *kwnames[] = { | |
9635 | (char *) "self", NULL | |
9636 | }; | |
9637 | ||
9638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9641 | { |
9642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9643 | result = (int)(arg1)->GetMovementThreshold(); | |
9644 | ||
9645 | wxPyEndAllowThreads(__tstate); | |
9646 | if (PyErr_Occurred()) SWIG_fail; | |
9647 | } | |
2f4c0a16 | 9648 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9649 | return resultobj; |
9650 | fail: | |
9651 | return NULL; | |
9652 | } | |
9653 | ||
9654 | ||
9655 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9656 | PyObject *resultobj; | |
9657 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9658 | int arg2 ; | |
9659 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9660 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9661 | char *kwnames[] = { |
9662 | (char *) "self",(char *) "threshold", NULL | |
9663 | }; | |
9664 | ||
8edf1c75 | 9665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
9666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9668 | arg2 = (int) SWIG_AsInt(obj1); | |
9669 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9670 | { |
9671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9672 | (arg1)->SetMovementThreshold(arg2); | |
9673 | ||
9674 | wxPyEndAllowThreads(__tstate); | |
9675 | if (PyErr_Occurred()) SWIG_fail; | |
9676 | } | |
9677 | Py_INCREF(Py_None); resultobj = Py_None; | |
9678 | return resultobj; | |
9679 | fail: | |
9680 | return NULL; | |
9681 | } | |
9682 | ||
9683 | ||
9684 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9685 | PyObject *resultobj; | |
9686 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9687 | bool result; | |
9688 | PyObject * obj0 = 0 ; | |
9689 | char *kwnames[] = { | |
9690 | (char *) "self", NULL | |
9691 | }; | |
9692 | ||
9693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9696 | { |
9697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9698 | result = (bool)(arg1)->IsOk(); | |
9699 | ||
9700 | wxPyEndAllowThreads(__tstate); | |
9701 | if (PyErr_Occurred()) SWIG_fail; | |
9702 | } | |
4e760a36 | 9703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9704 | return resultobj; |
9705 | fail: | |
9706 | return NULL; | |
9707 | } | |
9708 | ||
9709 | ||
9710 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9711 | PyObject *resultobj; | |
9712 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9713 | int result; | |
9714 | PyObject * obj0 = 0 ; | |
9715 | char *kwnames[] = { | |
9716 | (char *) "self", NULL | |
9717 | }; | |
9718 | ||
9719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9722 | { |
9723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9724 | result = (int)(arg1)->GetNumberJoysticks(); | |
9725 | ||
9726 | wxPyEndAllowThreads(__tstate); | |
9727 | if (PyErr_Occurred()) SWIG_fail; | |
9728 | } | |
2f4c0a16 | 9729 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9730 | return resultobj; |
9731 | fail: | |
9732 | return NULL; | |
9733 | } | |
9734 | ||
9735 | ||
9736 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9737 | PyObject *resultobj; | |
9738 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9739 | int result; | |
9740 | PyObject * obj0 = 0 ; | |
9741 | char *kwnames[] = { | |
9742 | (char *) "self", NULL | |
9743 | }; | |
9744 | ||
9745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9748 | { |
9749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9750 | result = (int)(arg1)->GetManufacturerId(); | |
9751 | ||
9752 | wxPyEndAllowThreads(__tstate); | |
9753 | if (PyErr_Occurred()) SWIG_fail; | |
9754 | } | |
2f4c0a16 | 9755 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9756 | return resultobj; |
9757 | fail: | |
9758 | return NULL; | |
9759 | } | |
9760 | ||
9761 | ||
9762 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9763 | PyObject *resultobj; | |
9764 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9765 | int result; | |
9766 | PyObject * obj0 = 0 ; | |
9767 | char *kwnames[] = { | |
9768 | (char *) "self", NULL | |
9769 | }; | |
9770 | ||
9771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9774 | { |
9775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9776 | result = (int)(arg1)->GetProductId(); | |
9777 | ||
9778 | wxPyEndAllowThreads(__tstate); | |
9779 | if (PyErr_Occurred()) SWIG_fail; | |
9780 | } | |
2f4c0a16 | 9781 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9782 | return resultobj; |
9783 | fail: | |
9784 | return NULL; | |
9785 | } | |
9786 | ||
9787 | ||
9788 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9789 | PyObject *resultobj; | |
9790 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9791 | wxString result; | |
9792 | PyObject * obj0 = 0 ; | |
9793 | char *kwnames[] = { | |
9794 | (char *) "self", NULL | |
9795 | }; | |
9796 | ||
9797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9800 | { |
9801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9802 | result = (arg1)->GetProductName(); | |
9803 | ||
9804 | wxPyEndAllowThreads(__tstate); | |
9805 | if (PyErr_Occurred()) SWIG_fail; | |
9806 | } | |
9807 | { | |
9808 | #if wxUSE_UNICODE | |
9809 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9810 | #else | |
9811 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9812 | #endif | |
9813 | } | |
9814 | return resultobj; | |
9815 | fail: | |
9816 | return NULL; | |
9817 | } | |
9818 | ||
9819 | ||
9820 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9821 | PyObject *resultobj; | |
9822 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9823 | int result; | |
9824 | PyObject * obj0 = 0 ; | |
9825 | char *kwnames[] = { | |
9826 | (char *) "self", NULL | |
9827 | }; | |
9828 | ||
9829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9832 | { |
9833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9834 | result = (int)(arg1)->GetXMin(); | |
9835 | ||
9836 | wxPyEndAllowThreads(__tstate); | |
9837 | if (PyErr_Occurred()) SWIG_fail; | |
9838 | } | |
2f4c0a16 | 9839 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9840 | return resultobj; |
9841 | fail: | |
9842 | return NULL; | |
9843 | } | |
9844 | ||
9845 | ||
9846 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9847 | PyObject *resultobj; | |
9848 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9849 | int result; | |
9850 | PyObject * obj0 = 0 ; | |
9851 | char *kwnames[] = { | |
9852 | (char *) "self", NULL | |
9853 | }; | |
9854 | ||
9855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9858 | { |
9859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9860 | result = (int)(arg1)->GetYMin(); | |
9861 | ||
9862 | wxPyEndAllowThreads(__tstate); | |
9863 | if (PyErr_Occurred()) SWIG_fail; | |
9864 | } | |
2f4c0a16 | 9865 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9866 | return resultobj; |
9867 | fail: | |
9868 | return NULL; | |
9869 | } | |
9870 | ||
9871 | ||
9872 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9873 | PyObject *resultobj; | |
9874 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9875 | int result; | |
9876 | PyObject * obj0 = 0 ; | |
9877 | char *kwnames[] = { | |
9878 | (char *) "self", NULL | |
9879 | }; | |
9880 | ||
9881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9884 | { |
9885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9886 | result = (int)(arg1)->GetZMin(); | |
9887 | ||
9888 | wxPyEndAllowThreads(__tstate); | |
9889 | if (PyErr_Occurred()) SWIG_fail; | |
9890 | } | |
2f4c0a16 | 9891 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9892 | return resultobj; |
9893 | fail: | |
9894 | return NULL; | |
9895 | } | |
9896 | ||
9897 | ||
9898 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9899 | PyObject *resultobj; | |
9900 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9901 | int result; | |
9902 | PyObject * obj0 = 0 ; | |
9903 | char *kwnames[] = { | |
9904 | (char *) "self", NULL | |
9905 | }; | |
9906 | ||
9907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9910 | { |
9911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9912 | result = (int)(arg1)->GetXMax(); | |
9913 | ||
9914 | wxPyEndAllowThreads(__tstate); | |
9915 | if (PyErr_Occurred()) SWIG_fail; | |
9916 | } | |
2f4c0a16 | 9917 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9918 | return resultobj; |
9919 | fail: | |
9920 | return NULL; | |
9921 | } | |
9922 | ||
9923 | ||
9924 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9925 | PyObject *resultobj; | |
9926 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9927 | int result; | |
9928 | PyObject * obj0 = 0 ; | |
9929 | char *kwnames[] = { | |
9930 | (char *) "self", NULL | |
9931 | }; | |
9932 | ||
9933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9936 | { |
9937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9938 | result = (int)(arg1)->GetYMax(); | |
9939 | ||
9940 | wxPyEndAllowThreads(__tstate); | |
9941 | if (PyErr_Occurred()) SWIG_fail; | |
9942 | } | |
2f4c0a16 | 9943 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9944 | return resultobj; |
9945 | fail: | |
9946 | return NULL; | |
9947 | } | |
9948 | ||
9949 | ||
9950 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9951 | PyObject *resultobj; | |
9952 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9953 | int result; | |
9954 | PyObject * obj0 = 0 ; | |
9955 | char *kwnames[] = { | |
9956 | (char *) "self", NULL | |
9957 | }; | |
9958 | ||
9959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9962 | { |
9963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9964 | result = (int)(arg1)->GetZMax(); | |
9965 | ||
9966 | wxPyEndAllowThreads(__tstate); | |
9967 | if (PyErr_Occurred()) SWIG_fail; | |
9968 | } | |
2f4c0a16 | 9969 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9970 | return resultobj; |
9971 | fail: | |
9972 | return NULL; | |
9973 | } | |
9974 | ||
9975 | ||
9976 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9977 | PyObject *resultobj; | |
9978 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9979 | int result; | |
9980 | PyObject * obj0 = 0 ; | |
9981 | char *kwnames[] = { | |
9982 | (char *) "self", NULL | |
9983 | }; | |
9984 | ||
9985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9988 | { |
9989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9990 | result = (int)(arg1)->GetNumberButtons(); | |
9991 | ||
9992 | wxPyEndAllowThreads(__tstate); | |
9993 | if (PyErr_Occurred()) SWIG_fail; | |
9994 | } | |
2f4c0a16 | 9995 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9996 | return resultobj; |
9997 | fail: | |
9998 | return NULL; | |
9999 | } | |
10000 | ||
10001 | ||
10002 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10003 | PyObject *resultobj; | |
10004 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10005 | int result; | |
10006 | PyObject * obj0 = 0 ; | |
10007 | char *kwnames[] = { | |
10008 | (char *) "self", NULL | |
10009 | }; | |
10010 | ||
10011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10014 | { |
10015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10016 | result = (int)(arg1)->GetNumberAxes(); | |
10017 | ||
10018 | wxPyEndAllowThreads(__tstate); | |
10019 | if (PyErr_Occurred()) SWIG_fail; | |
10020 | } | |
2f4c0a16 | 10021 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10022 | return resultobj; |
10023 | fail: | |
10024 | return NULL; | |
10025 | } | |
10026 | ||
10027 | ||
10028 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10029 | PyObject *resultobj; | |
10030 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10031 | int result; | |
10032 | PyObject * obj0 = 0 ; | |
10033 | char *kwnames[] = { | |
10034 | (char *) "self", NULL | |
10035 | }; | |
10036 | ||
10037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10040 | { |
10041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10042 | result = (int)(arg1)->GetMaxButtons(); | |
10043 | ||
10044 | wxPyEndAllowThreads(__tstate); | |
10045 | if (PyErr_Occurred()) SWIG_fail; | |
10046 | } | |
2f4c0a16 | 10047 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10048 | return resultobj; |
10049 | fail: | |
10050 | return NULL; | |
10051 | } | |
10052 | ||
10053 | ||
10054 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10055 | PyObject *resultobj; | |
10056 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10057 | int result; | |
10058 | PyObject * obj0 = 0 ; | |
10059 | char *kwnames[] = { | |
10060 | (char *) "self", NULL | |
10061 | }; | |
10062 | ||
10063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10066 | { |
10067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10068 | result = (int)(arg1)->GetMaxAxes(); | |
10069 | ||
10070 | wxPyEndAllowThreads(__tstate); | |
10071 | if (PyErr_Occurred()) SWIG_fail; | |
10072 | } | |
2f4c0a16 | 10073 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10074 | return resultobj; |
10075 | fail: | |
10076 | return NULL; | |
10077 | } | |
10078 | ||
10079 | ||
10080 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10081 | PyObject *resultobj; | |
10082 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10083 | int result; | |
10084 | PyObject * obj0 = 0 ; | |
10085 | char *kwnames[] = { | |
10086 | (char *) "self", NULL | |
10087 | }; | |
10088 | ||
10089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10092 | { |
10093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10094 | result = (int)(arg1)->GetPollingMin(); | |
10095 | ||
10096 | wxPyEndAllowThreads(__tstate); | |
10097 | if (PyErr_Occurred()) SWIG_fail; | |
10098 | } | |
2f4c0a16 | 10099 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10100 | return resultobj; |
10101 | fail: | |
10102 | return NULL; | |
10103 | } | |
10104 | ||
10105 | ||
10106 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10107 | PyObject *resultobj; | |
10108 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10109 | int result; | |
10110 | PyObject * obj0 = 0 ; | |
10111 | char *kwnames[] = { | |
10112 | (char *) "self", NULL | |
10113 | }; | |
10114 | ||
10115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10118 | { |
10119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10120 | result = (int)(arg1)->GetPollingMax(); | |
10121 | ||
10122 | wxPyEndAllowThreads(__tstate); | |
10123 | if (PyErr_Occurred()) SWIG_fail; | |
10124 | } | |
2f4c0a16 | 10125 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10126 | return resultobj; |
10127 | fail: | |
10128 | return NULL; | |
10129 | } | |
10130 | ||
10131 | ||
10132 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10133 | PyObject *resultobj; | |
10134 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10135 | int result; | |
10136 | PyObject * obj0 = 0 ; | |
10137 | char *kwnames[] = { | |
10138 | (char *) "self", NULL | |
10139 | }; | |
10140 | ||
10141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10144 | { |
10145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10146 | result = (int)(arg1)->GetRudderMin(); | |
10147 | ||
10148 | wxPyEndAllowThreads(__tstate); | |
10149 | if (PyErr_Occurred()) SWIG_fail; | |
10150 | } | |
2f4c0a16 | 10151 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10152 | return resultobj; |
10153 | fail: | |
10154 | return NULL; | |
10155 | } | |
10156 | ||
10157 | ||
10158 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10159 | PyObject *resultobj; | |
10160 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10161 | int result; | |
10162 | PyObject * obj0 = 0 ; | |
10163 | char *kwnames[] = { | |
10164 | (char *) "self", NULL | |
10165 | }; | |
10166 | ||
10167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10170 | { |
10171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10172 | result = (int)(arg1)->GetRudderMax(); | |
10173 | ||
10174 | wxPyEndAllowThreads(__tstate); | |
10175 | if (PyErr_Occurred()) SWIG_fail; | |
10176 | } | |
2f4c0a16 | 10177 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10178 | return resultobj; |
10179 | fail: | |
10180 | return NULL; | |
10181 | } | |
10182 | ||
10183 | ||
10184 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10185 | PyObject *resultobj; | |
10186 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10187 | int result; | |
10188 | PyObject * obj0 = 0 ; | |
10189 | char *kwnames[] = { | |
10190 | (char *) "self", NULL | |
10191 | }; | |
10192 | ||
10193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10196 | { |
10197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10198 | result = (int)(arg1)->GetUMin(); | |
10199 | ||
10200 | wxPyEndAllowThreads(__tstate); | |
10201 | if (PyErr_Occurred()) SWIG_fail; | |
10202 | } | |
2f4c0a16 | 10203 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10204 | return resultobj; |
10205 | fail: | |
10206 | return NULL; | |
10207 | } | |
10208 | ||
10209 | ||
10210 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10211 | PyObject *resultobj; | |
10212 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10213 | int result; | |
10214 | PyObject * obj0 = 0 ; | |
10215 | char *kwnames[] = { | |
10216 | (char *) "self", NULL | |
10217 | }; | |
10218 | ||
10219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10222 | { |
10223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10224 | result = (int)(arg1)->GetUMax(); | |
10225 | ||
10226 | wxPyEndAllowThreads(__tstate); | |
10227 | if (PyErr_Occurred()) SWIG_fail; | |
10228 | } | |
2f4c0a16 | 10229 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10230 | return resultobj; |
10231 | fail: | |
10232 | return NULL; | |
10233 | } | |
10234 | ||
10235 | ||
10236 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10237 | PyObject *resultobj; | |
10238 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10239 | int result; | |
10240 | PyObject * obj0 = 0 ; | |
10241 | char *kwnames[] = { | |
10242 | (char *) "self", NULL | |
10243 | }; | |
10244 | ||
10245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10248 | { |
10249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10250 | result = (int)(arg1)->GetVMin(); | |
10251 | ||
10252 | wxPyEndAllowThreads(__tstate); | |
10253 | if (PyErr_Occurred()) SWIG_fail; | |
10254 | } | |
2f4c0a16 | 10255 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10256 | return resultobj; |
10257 | fail: | |
10258 | return NULL; | |
10259 | } | |
10260 | ||
10261 | ||
10262 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10263 | PyObject *resultobj; | |
10264 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10265 | int result; | |
10266 | PyObject * obj0 = 0 ; | |
10267 | char *kwnames[] = { | |
10268 | (char *) "self", NULL | |
10269 | }; | |
10270 | ||
10271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10274 | { |
10275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10276 | result = (int)(arg1)->GetVMax(); | |
10277 | ||
10278 | wxPyEndAllowThreads(__tstate); | |
10279 | if (PyErr_Occurred()) SWIG_fail; | |
10280 | } | |
2f4c0a16 | 10281 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10282 | return resultobj; |
10283 | fail: | |
10284 | return NULL; | |
10285 | } | |
10286 | ||
10287 | ||
10288 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10289 | PyObject *resultobj; | |
10290 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10291 | bool result; | |
10292 | PyObject * obj0 = 0 ; | |
10293 | char *kwnames[] = { | |
10294 | (char *) "self", NULL | |
10295 | }; | |
10296 | ||
10297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10300 | { |
10301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10302 | result = (bool)(arg1)->HasRudder(); | |
10303 | ||
10304 | wxPyEndAllowThreads(__tstate); | |
10305 | if (PyErr_Occurred()) SWIG_fail; | |
10306 | } | |
4e760a36 | 10307 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10308 | return resultobj; |
10309 | fail: | |
10310 | return NULL; | |
10311 | } | |
10312 | ||
10313 | ||
10314 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10315 | PyObject *resultobj; | |
10316 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10317 | bool result; | |
10318 | PyObject * obj0 = 0 ; | |
10319 | char *kwnames[] = { | |
10320 | (char *) "self", NULL | |
10321 | }; | |
10322 | ||
10323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10326 | { |
10327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10328 | result = (bool)(arg1)->HasZ(); | |
10329 | ||
10330 | wxPyEndAllowThreads(__tstate); | |
10331 | if (PyErr_Occurred()) SWIG_fail; | |
10332 | } | |
4e760a36 | 10333 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10334 | return resultobj; |
10335 | fail: | |
10336 | return NULL; | |
10337 | } | |
10338 | ||
10339 | ||
10340 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10341 | PyObject *resultobj; | |
10342 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10343 | bool result; | |
10344 | PyObject * obj0 = 0 ; | |
10345 | char *kwnames[] = { | |
10346 | (char *) "self", NULL | |
10347 | }; | |
10348 | ||
10349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10352 | { |
10353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10354 | result = (bool)(arg1)->HasU(); | |
10355 | ||
10356 | wxPyEndAllowThreads(__tstate); | |
10357 | if (PyErr_Occurred()) SWIG_fail; | |
10358 | } | |
4e760a36 | 10359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10360 | return resultobj; |
10361 | fail: | |
10362 | return NULL; | |
10363 | } | |
10364 | ||
10365 | ||
10366 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10367 | PyObject *resultobj; | |
10368 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10369 | bool result; | |
10370 | PyObject * obj0 = 0 ; | |
10371 | char *kwnames[] = { | |
10372 | (char *) "self", NULL | |
10373 | }; | |
10374 | ||
10375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10378 | { |
10379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10380 | result = (bool)(arg1)->HasV(); | |
10381 | ||
10382 | wxPyEndAllowThreads(__tstate); | |
10383 | if (PyErr_Occurred()) SWIG_fail; | |
10384 | } | |
4e760a36 | 10385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10386 | return resultobj; |
10387 | fail: | |
10388 | return NULL; | |
10389 | } | |
10390 | ||
10391 | ||
10392 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10393 | PyObject *resultobj; | |
10394 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10395 | bool result; | |
10396 | PyObject * obj0 = 0 ; | |
10397 | char *kwnames[] = { | |
10398 | (char *) "self", NULL | |
10399 | }; | |
10400 | ||
10401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10404 | { |
10405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10406 | result = (bool)(arg1)->HasPOV(); | |
10407 | ||
10408 | wxPyEndAllowThreads(__tstate); | |
10409 | if (PyErr_Occurred()) SWIG_fail; | |
10410 | } | |
4e760a36 | 10411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10412 | return resultobj; |
10413 | fail: | |
10414 | return NULL; | |
10415 | } | |
10416 | ||
10417 | ||
10418 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10419 | PyObject *resultobj; | |
10420 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10421 | bool result; | |
10422 | PyObject * obj0 = 0 ; | |
10423 | char *kwnames[] = { | |
10424 | (char *) "self", NULL | |
10425 | }; | |
10426 | ||
10427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10430 | { |
10431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10432 | result = (bool)(arg1)->HasPOV4Dir(); | |
10433 | ||
10434 | wxPyEndAllowThreads(__tstate); | |
10435 | if (PyErr_Occurred()) SWIG_fail; | |
10436 | } | |
4e760a36 | 10437 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10438 | return resultobj; |
10439 | fail: | |
10440 | return NULL; | |
10441 | } | |
10442 | ||
10443 | ||
10444 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10445 | PyObject *resultobj; | |
10446 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10447 | bool result; | |
10448 | PyObject * obj0 = 0 ; | |
10449 | char *kwnames[] = { | |
10450 | (char *) "self", NULL | |
10451 | }; | |
10452 | ||
10453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10456 | { |
10457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10458 | result = (bool)(arg1)->HasPOVCTS(); | |
10459 | ||
10460 | wxPyEndAllowThreads(__tstate); | |
10461 | if (PyErr_Occurred()) SWIG_fail; | |
10462 | } | |
4e760a36 | 10463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10464 | return resultobj; |
10465 | fail: | |
10466 | return NULL; | |
10467 | } | |
10468 | ||
10469 | ||
10470 | static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10471 | PyObject *resultobj; | |
10472 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10473 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10474 | int arg3 = (int) 0 ; | |
10475 | bool result; | |
10476 | PyObject * obj0 = 0 ; | |
10477 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10478 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10479 | char *kwnames[] = { |
10480 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
10481 | }; | |
10482 | ||
8edf1c75 | 10483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10486 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 10488 | if (obj2) { |
2f4c0a16 RD |
10489 | arg3 = (int) SWIG_AsInt(obj2); |
10490 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10491 | } |
d14a1e28 RD |
10492 | { |
10493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10494 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
10495 | ||
10496 | wxPyEndAllowThreads(__tstate); | |
10497 | if (PyErr_Occurred()) SWIG_fail; | |
10498 | } | |
4e760a36 | 10499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10500 | return resultobj; |
10501 | fail: | |
10502 | return NULL; | |
10503 | } | |
10504 | ||
10505 | ||
10506 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10507 | PyObject *resultobj; | |
10508 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10509 | bool result; | |
10510 | PyObject * obj0 = 0 ; | |
10511 | char *kwnames[] = { | |
10512 | (char *) "self", NULL | |
10513 | }; | |
10514 | ||
10515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10518 | { |
10519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10520 | result = (bool)(arg1)->ReleaseCapture(); | |
10521 | ||
10522 | wxPyEndAllowThreads(__tstate); | |
10523 | if (PyErr_Occurred()) SWIG_fail; | |
10524 | } | |
4e760a36 | 10525 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10526 | return resultobj; |
10527 | fail: | |
10528 | return NULL; | |
10529 | } | |
10530 | ||
10531 | ||
10532 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
10533 | PyObject *obj; | |
10534 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10535 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
10536 | Py_INCREF(obj); | |
10537 | return Py_BuildValue((char *)""); | |
10538 | } | |
10539 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10540 | PyObject *resultobj; | |
10541 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10542 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10543 | PyObject * obj0 = 0 ; | |
10544 | PyObject * obj1 = 0 ; | |
10545 | char *kwnames[] = { | |
10546 | (char *) "self",(char *) "m_pos", NULL | |
10547 | }; | |
10548 | ||
10549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10552 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
10553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10554 | if (arg1) (arg1)->m_pos = *arg2; |
10555 | ||
10556 | Py_INCREF(Py_None); resultobj = Py_None; | |
10557 | return resultobj; | |
10558 | fail: | |
10559 | return NULL; | |
10560 | } | |
10561 | ||
10562 | ||
10563 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10564 | PyObject *resultobj; | |
10565 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10566 | wxPoint *result; | |
10567 | PyObject * obj0 = 0 ; | |
10568 | char *kwnames[] = { | |
10569 | (char *) "self", NULL | |
10570 | }; | |
10571 | ||
10572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10575 | result = (wxPoint *)& ((arg1)->m_pos); |
10576 | ||
2f4c0a16 | 10577 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
10578 | return resultobj; |
10579 | fail: | |
10580 | return NULL; | |
10581 | } | |
10582 | ||
10583 | ||
10584 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10585 | PyObject *resultobj; | |
10586 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10587 | int arg2 ; | |
10588 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10589 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10590 | char *kwnames[] = { |
10591 | (char *) "self",(char *) "m_zPosition", NULL | |
10592 | }; | |
10593 | ||
8edf1c75 | 10594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10597 | arg2 = (int) SWIG_AsInt(obj1); | |
10598 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10599 | if (arg1) (arg1)->m_zPosition = arg2; |
10600 | ||
10601 | Py_INCREF(Py_None); resultobj = Py_None; | |
10602 | return resultobj; | |
10603 | fail: | |
10604 | return NULL; | |
10605 | } | |
10606 | ||
10607 | ||
10608 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10609 | PyObject *resultobj; | |
10610 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10611 | int result; | |
10612 | PyObject * obj0 = 0 ; | |
10613 | char *kwnames[] = { | |
10614 | (char *) "self", NULL | |
10615 | }; | |
10616 | ||
10617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10620 | result = (int) ((arg1)->m_zPosition); |
10621 | ||
2f4c0a16 | 10622 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10623 | return resultobj; |
10624 | fail: | |
10625 | return NULL; | |
10626 | } | |
10627 | ||
10628 | ||
10629 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10630 | PyObject *resultobj; | |
10631 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10632 | int arg2 ; | |
10633 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10634 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10635 | char *kwnames[] = { |
10636 | (char *) "self",(char *) "m_buttonChange", NULL | |
10637 | }; | |
10638 | ||
8edf1c75 | 10639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10642 | arg2 = (int) SWIG_AsInt(obj1); | |
10643 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10644 | if (arg1) (arg1)->m_buttonChange = arg2; |
10645 | ||
10646 | Py_INCREF(Py_None); resultobj = Py_None; | |
10647 | return resultobj; | |
10648 | fail: | |
10649 | return NULL; | |
10650 | } | |
10651 | ||
10652 | ||
10653 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10654 | PyObject *resultobj; | |
10655 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10656 | int result; | |
10657 | PyObject * obj0 = 0 ; | |
10658 | char *kwnames[] = { | |
10659 | (char *) "self", NULL | |
10660 | }; | |
10661 | ||
10662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10665 | result = (int) ((arg1)->m_buttonChange); |
10666 | ||
2f4c0a16 | 10667 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10668 | return resultobj; |
10669 | fail: | |
10670 | return NULL; | |
10671 | } | |
10672 | ||
10673 | ||
10674 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10675 | PyObject *resultobj; | |
10676 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10677 | int arg2 ; | |
10678 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10679 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10680 | char *kwnames[] = { |
10681 | (char *) "self",(char *) "m_buttonState", NULL | |
10682 | }; | |
10683 | ||
8edf1c75 | 10684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10687 | arg2 = (int) SWIG_AsInt(obj1); | |
10688 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10689 | if (arg1) (arg1)->m_buttonState = arg2; |
10690 | ||
10691 | Py_INCREF(Py_None); resultobj = Py_None; | |
10692 | return resultobj; | |
10693 | fail: | |
10694 | return NULL; | |
10695 | } | |
10696 | ||
10697 | ||
10698 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10699 | PyObject *resultobj; | |
10700 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10701 | int result; | |
10702 | PyObject * obj0 = 0 ; | |
10703 | char *kwnames[] = { | |
10704 | (char *) "self", NULL | |
10705 | }; | |
10706 | ||
10707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10710 | result = (int) ((arg1)->m_buttonState); |
10711 | ||
2f4c0a16 | 10712 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10713 | return resultobj; |
10714 | fail: | |
10715 | return NULL; | |
10716 | } | |
10717 | ||
10718 | ||
10719 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10720 | PyObject *resultobj; | |
10721 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10722 | int arg2 ; | |
10723 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10724 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10725 | char *kwnames[] = { |
10726 | (char *) "self",(char *) "m_joyStick", NULL | |
10727 | }; | |
10728 | ||
8edf1c75 | 10729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10732 | arg2 = (int) SWIG_AsInt(obj1); | |
10733 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10734 | if (arg1) (arg1)->m_joyStick = arg2; |
10735 | ||
10736 | Py_INCREF(Py_None); resultobj = Py_None; | |
10737 | return resultobj; | |
10738 | fail: | |
10739 | return NULL; | |
10740 | } | |
10741 | ||
10742 | ||
10743 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10744 | PyObject *resultobj; | |
10745 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10746 | int result; | |
10747 | PyObject * obj0 = 0 ; | |
10748 | char *kwnames[] = { | |
10749 | (char *) "self", NULL | |
10750 | }; | |
10751 | ||
10752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10755 | result = (int) ((arg1)->m_joyStick); |
10756 | ||
2f4c0a16 | 10757 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10758 | return resultobj; |
10759 | fail: | |
10760 | return NULL; | |
10761 | } | |
10762 | ||
10763 | ||
10764 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10765 | PyObject *resultobj; | |
10766 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10767 | int arg2 = (int) 0 ; | |
10768 | int arg3 = (int) wxJOYSTICK1 ; | |
10769 | int arg4 = (int) 0 ; | |
10770 | wxJoystickEvent *result; | |
8edf1c75 RD |
10771 | PyObject * obj0 = 0 ; |
10772 | PyObject * obj1 = 0 ; | |
10773 | PyObject * obj2 = 0 ; | |
10774 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10775 | char *kwnames[] = { |
10776 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
10777 | }; | |
10778 | ||
8edf1c75 RD |
10779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
10780 | if (obj0) { | |
2f4c0a16 RD |
10781 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
10782 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10783 | } |
10784 | if (obj1) { | |
2f4c0a16 RD |
10785 | arg2 = (int) SWIG_AsInt(obj1); |
10786 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10787 | } |
10788 | if (obj2) { | |
2f4c0a16 RD |
10789 | arg3 = (int) SWIG_AsInt(obj2); |
10790 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10791 | } |
10792 | if (obj3) { | |
2f4c0a16 RD |
10793 | arg4 = (int) SWIG_AsInt(obj3); |
10794 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10795 | } |
d14a1e28 RD |
10796 | { |
10797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10798 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
10799 | ||
10800 | wxPyEndAllowThreads(__tstate); | |
10801 | if (PyErr_Occurred()) SWIG_fail; | |
10802 | } | |
2f4c0a16 | 10803 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); |
d14a1e28 RD |
10804 | return resultobj; |
10805 | fail: | |
10806 | return NULL; | |
10807 | } | |
10808 | ||
10809 | ||
10810 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10811 | PyObject *resultobj; | |
10812 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10813 | wxPoint result; | |
10814 | PyObject * obj0 = 0 ; | |
10815 | char *kwnames[] = { | |
10816 | (char *) "self", NULL | |
10817 | }; | |
10818 | ||
10819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10822 | { |
10823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10824 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
10825 | ||
10826 | wxPyEndAllowThreads(__tstate); | |
10827 | if (PyErr_Occurred()) SWIG_fail; | |
10828 | } | |
10829 | { | |
10830 | wxPoint * resultptr; | |
10831 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 10832 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
10833 | } |
10834 | return resultobj; | |
10835 | fail: | |
10836 | return NULL; | |
10837 | } | |
10838 | ||
10839 | ||
10840 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10841 | PyObject *resultobj; | |
10842 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10843 | int result; | |
10844 | PyObject * obj0 = 0 ; | |
10845 | char *kwnames[] = { | |
10846 | (char *) "self", NULL | |
10847 | }; | |
10848 | ||
10849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10852 | { |
10853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10854 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
10855 | ||
10856 | wxPyEndAllowThreads(__tstate); | |
10857 | if (PyErr_Occurred()) SWIG_fail; | |
10858 | } | |
2f4c0a16 | 10859 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10860 | return resultobj; |
10861 | fail: | |
10862 | return NULL; | |
10863 | } | |
10864 | ||
10865 | ||
10866 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10867 | PyObject *resultobj; | |
10868 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10869 | int result; | |
10870 | PyObject * obj0 = 0 ; | |
10871 | char *kwnames[] = { | |
10872 | (char *) "self", NULL | |
10873 | }; | |
10874 | ||
10875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10878 | { |
10879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10880 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
10881 | ||
10882 | wxPyEndAllowThreads(__tstate); | |
10883 | if (PyErr_Occurred()) SWIG_fail; | |
10884 | } | |
2f4c0a16 | 10885 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10886 | return resultobj; |
10887 | fail: | |
10888 | return NULL; | |
10889 | } | |
10890 | ||
10891 | ||
10892 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10893 | PyObject *resultobj; | |
10894 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10895 | int result; | |
10896 | PyObject * obj0 = 0 ; | |
10897 | char *kwnames[] = { | |
10898 | (char *) "self", NULL | |
10899 | }; | |
10900 | ||
10901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10904 | { |
10905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10906 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
10907 | ||
10908 | wxPyEndAllowThreads(__tstate); | |
10909 | if (PyErr_Occurred()) SWIG_fail; | |
10910 | } | |
2f4c0a16 | 10911 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10912 | return resultobj; |
10913 | fail: | |
10914 | return NULL; | |
10915 | } | |
10916 | ||
10917 | ||
10918 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10919 | PyObject *resultobj; | |
10920 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10921 | int result; | |
10922 | PyObject * obj0 = 0 ; | |
10923 | char *kwnames[] = { | |
10924 | (char *) "self", NULL | |
10925 | }; | |
10926 | ||
10927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10930 | { |
10931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10932 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
10933 | ||
10934 | wxPyEndAllowThreads(__tstate); | |
10935 | if (PyErr_Occurred()) SWIG_fail; | |
10936 | } | |
2f4c0a16 | 10937 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10938 | return resultobj; |
10939 | fail: | |
10940 | return NULL; | |
10941 | } | |
10942 | ||
10943 | ||
10944 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10945 | PyObject *resultobj; | |
10946 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10947 | int arg2 ; | |
10948 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10949 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10950 | char *kwnames[] = { |
10951 | (char *) "self",(char *) "stick", NULL | |
10952 | }; | |
10953 | ||
8edf1c75 | 10954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10957 | arg2 = (int) SWIG_AsInt(obj1); | |
10958 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10959 | { |
10960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10961 | (arg1)->SetJoystick(arg2); | |
10962 | ||
10963 | wxPyEndAllowThreads(__tstate); | |
10964 | if (PyErr_Occurred()) SWIG_fail; | |
10965 | } | |
10966 | Py_INCREF(Py_None); resultobj = Py_None; | |
10967 | return resultobj; | |
10968 | fail: | |
10969 | return NULL; | |
10970 | } | |
10971 | ||
10972 | ||
10973 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10974 | PyObject *resultobj; | |
10975 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10976 | int arg2 ; | |
10977 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10978 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10979 | char *kwnames[] = { |
10980 | (char *) "self",(char *) "state", NULL | |
10981 | }; | |
10982 | ||
8edf1c75 | 10983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10986 | arg2 = (int) SWIG_AsInt(obj1); | |
10987 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10988 | { |
10989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10990 | (arg1)->SetButtonState(arg2); | |
10991 | ||
10992 | wxPyEndAllowThreads(__tstate); | |
10993 | if (PyErr_Occurred()) SWIG_fail; | |
10994 | } | |
10995 | Py_INCREF(Py_None); resultobj = Py_None; | |
10996 | return resultobj; | |
10997 | fail: | |
10998 | return NULL; | |
10999 | } | |
11000 | ||
11001 | ||
11002 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11003 | PyObject *resultobj; | |
11004 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11005 | int arg2 ; | |
11006 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11007 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11008 | char *kwnames[] = { |
11009 | (char *) "self",(char *) "change", NULL | |
11010 | }; | |
11011 | ||
8edf1c75 | 11012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11015 | arg2 = (int) SWIG_AsInt(obj1); | |
11016 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11017 | { |
11018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11019 | (arg1)->SetButtonChange(arg2); | |
11020 | ||
11021 | wxPyEndAllowThreads(__tstate); | |
11022 | if (PyErr_Occurred()) SWIG_fail; | |
11023 | } | |
11024 | Py_INCREF(Py_None); resultobj = Py_None; | |
11025 | return resultobj; | |
11026 | fail: | |
11027 | return NULL; | |
11028 | } | |
11029 | ||
11030 | ||
11031 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11032 | PyObject *resultobj; | |
11033 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11034 | wxPoint *arg2 = 0 ; | |
11035 | wxPoint temp2 ; | |
11036 | PyObject * obj0 = 0 ; | |
11037 | PyObject * obj1 = 0 ; | |
11038 | char *kwnames[] = { | |
11039 | (char *) "self",(char *) "pos", NULL | |
11040 | }; | |
11041 | ||
11042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11045 | { |
11046 | arg2 = &temp2; | |
11047 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11048 | } | |
11049 | { | |
11050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11051 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
11052 | ||
11053 | wxPyEndAllowThreads(__tstate); | |
11054 | if (PyErr_Occurred()) SWIG_fail; | |
11055 | } | |
11056 | Py_INCREF(Py_None); resultobj = Py_None; | |
11057 | return resultobj; | |
11058 | fail: | |
11059 | return NULL; | |
11060 | } | |
11061 | ||
11062 | ||
11063 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11064 | PyObject *resultobj; | |
11065 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11066 | int arg2 ; | |
11067 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11068 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11069 | char *kwnames[] = { |
11070 | (char *) "self",(char *) "zPos", NULL | |
11071 | }; | |
11072 | ||
8edf1c75 | 11073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11076 | arg2 = (int) SWIG_AsInt(obj1); | |
11077 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11078 | { |
11079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11080 | (arg1)->SetZPosition(arg2); | |
11081 | ||
11082 | wxPyEndAllowThreads(__tstate); | |
11083 | if (PyErr_Occurred()) SWIG_fail; | |
11084 | } | |
11085 | Py_INCREF(Py_None); resultobj = Py_None; | |
11086 | return resultobj; | |
11087 | fail: | |
11088 | return NULL; | |
11089 | } | |
11090 | ||
11091 | ||
11092 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11093 | PyObject *resultobj; | |
11094 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11095 | bool result; | |
11096 | PyObject * obj0 = 0 ; | |
11097 | char *kwnames[] = { | |
11098 | (char *) "self", NULL | |
11099 | }; | |
11100 | ||
11101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11104 | { |
11105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11106 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
11107 | ||
11108 | wxPyEndAllowThreads(__tstate); | |
11109 | if (PyErr_Occurred()) SWIG_fail; | |
11110 | } | |
4e760a36 | 11111 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11112 | return resultobj; |
11113 | fail: | |
11114 | return NULL; | |
11115 | } | |
11116 | ||
11117 | ||
11118 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11119 | PyObject *resultobj; | |
11120 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11121 | bool result; | |
11122 | PyObject * obj0 = 0 ; | |
11123 | char *kwnames[] = { | |
11124 | (char *) "self", NULL | |
11125 | }; | |
11126 | ||
11127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11130 | { |
11131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11132 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
11133 | ||
11134 | wxPyEndAllowThreads(__tstate); | |
11135 | if (PyErr_Occurred()) SWIG_fail; | |
11136 | } | |
4e760a36 | 11137 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11138 | return resultobj; |
11139 | fail: | |
11140 | return NULL; | |
11141 | } | |
11142 | ||
11143 | ||
11144 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11145 | PyObject *resultobj; | |
11146 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11147 | bool result; | |
11148 | PyObject * obj0 = 0 ; | |
11149 | char *kwnames[] = { | |
11150 | (char *) "self", NULL | |
11151 | }; | |
11152 | ||
11153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11156 | { |
11157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11158 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
11159 | ||
11160 | wxPyEndAllowThreads(__tstate); | |
11161 | if (PyErr_Occurred()) SWIG_fail; | |
11162 | } | |
4e760a36 | 11163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11164 | return resultobj; |
11165 | fail: | |
11166 | return NULL; | |
11167 | } | |
11168 | ||
11169 | ||
11170 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11171 | PyObject *resultobj; | |
11172 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11173 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11174 | bool result; | |
11175 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11176 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11177 | char *kwnames[] = { |
11178 | (char *) "self",(char *) "but", NULL | |
11179 | }; | |
11180 | ||
8edf1c75 | 11181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 11184 | if (obj1) { |
2f4c0a16 RD |
11185 | arg2 = (int) SWIG_AsInt(obj1); |
11186 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11187 | } |
d14a1e28 RD |
11188 | { |
11189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11190 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11191 | ||
11192 | wxPyEndAllowThreads(__tstate); | |
11193 | if (PyErr_Occurred()) SWIG_fail; | |
11194 | } | |
4e760a36 | 11195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11196 | return resultobj; |
11197 | fail: | |
11198 | return NULL; | |
11199 | } | |
11200 | ||
11201 | ||
11202 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11203 | PyObject *resultobj; | |
11204 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11205 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11206 | bool result; | |
11207 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11208 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11209 | char *kwnames[] = { |
11210 | (char *) "self",(char *) "but", NULL | |
11211 | }; | |
11212 | ||
8edf1c75 | 11213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 11216 | if (obj1) { |
2f4c0a16 RD |
11217 | arg2 = (int) SWIG_AsInt(obj1); |
11218 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11219 | } |
d14a1e28 RD |
11220 | { |
11221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11222 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
11223 | ||
11224 | wxPyEndAllowThreads(__tstate); | |
11225 | if (PyErr_Occurred()) SWIG_fail; | |
11226 | } | |
4e760a36 | 11227 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11228 | return resultobj; |
11229 | fail: | |
11230 | return NULL; | |
11231 | } | |
11232 | ||
11233 | ||
11234 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11235 | PyObject *resultobj; | |
11236 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11237 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11238 | bool result; | |
11239 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11240 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11241 | char *kwnames[] = { |
11242 | (char *) "self",(char *) "but", NULL | |
11243 | }; | |
11244 | ||
8edf1c75 | 11245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 11248 | if (obj1) { |
2f4c0a16 RD |
11249 | arg2 = (int) SWIG_AsInt(obj1); |
11250 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11251 | } |
d14a1e28 RD |
11252 | { |
11253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11254 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
11255 | ||
11256 | wxPyEndAllowThreads(__tstate); | |
11257 | if (PyErr_Occurred()) SWIG_fail; | |
11258 | } | |
4e760a36 | 11259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11260 | return resultobj; |
11261 | fail: | |
11262 | return NULL; | |
11263 | } | |
11264 | ||
11265 | ||
11266 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
11267 | PyObject *obj; | |
11268 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11269 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
11270 | Py_INCREF(obj); | |
11271 | return Py_BuildValue((char *)""); | |
11272 | } | |
4e760a36 RD |
11273 | static PyObject *_wrap_new_Sound__SWIG_0(PyObject *self, PyObject *args) { |
11274 | PyObject *resultobj; | |
11275 | wxSound *result; | |
11276 | ||
11277 | if(!PyArg_ParseTuple(args,(char *)":new_Sound")) goto fail; | |
11278 | { | |
11279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11280 | result = (wxSound *)new wxSound(); | |
11281 | ||
11282 | wxPyEndAllowThreads(__tstate); | |
11283 | if (PyErr_Occurred()) SWIG_fail; | |
11284 | } | |
2f4c0a16 | 11285 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); |
4e760a36 RD |
11286 | return resultobj; |
11287 | fail: | |
11288 | return NULL; | |
11289 | } | |
11290 | ||
11291 | ||
11292 | static PyObject *_wrap_new_Sound__SWIG_1(PyObject *self, PyObject *args) { | |
d14a1e28 RD |
11293 | PyObject *resultobj; |
11294 | wxString *arg1 = 0 ; | |
4e760a36 RD |
11295 | bool arg2 = (bool) false ; |
11296 | wxSound *result; | |
423f194a | 11297 | bool temp1 = False ; |
d14a1e28 RD |
11298 | PyObject * obj0 = 0 ; |
11299 | PyObject * obj1 = 0 ; | |
d14a1e28 | 11300 | |
4e760a36 | 11301 | if(!PyArg_ParseTuple(args,(char *)"O|O:new_Sound",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
11302 | { |
11303 | arg1 = wxString_in_helper(obj0); | |
11304 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 11305 | temp1 = True; |
d14a1e28 RD |
11306 | } |
11307 | if (obj1) { | |
2f4c0a16 RD |
11308 | arg2 = (bool) SWIG_AsBool(obj1); |
11309 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11310 | } |
11311 | { | |
11312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 11313 | result = (wxSound *)new wxSound((wxString const &)*arg1,arg2); |
d14a1e28 RD |
11314 | |
11315 | wxPyEndAllowThreads(__tstate); | |
11316 | if (PyErr_Occurred()) SWIG_fail; | |
11317 | } | |
2f4c0a16 | 11318 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
11319 | { |
11320 | if (temp1) | |
11321 | delete arg1; | |
11322 | } | |
11323 | return resultobj; | |
11324 | fail: | |
11325 | { | |
11326 | if (temp1) | |
11327 | delete arg1; | |
11328 | } | |
11329 | return NULL; | |
11330 | } | |
11331 | ||
11332 | ||
4e760a36 | 11333 | static PyObject *_wrap_new_Sound__SWIG_2(PyObject *self, PyObject *args) { |
d14a1e28 | 11334 | PyObject *resultobj; |
4e760a36 RD |
11335 | int arg1 ; |
11336 | wxByte *arg2 = (wxByte *) 0 ; | |
11337 | wxSound *result; | |
d14a1e28 | 11338 | PyObject * obj0 = 0 ; |
4e760a36 | 11339 | PyObject * obj1 = 0 ; |
d14a1e28 | 11340 | |
4e760a36 | 11341 | if(!PyArg_ParseTuple(args,(char *)"OO:new_Sound",&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11342 | arg1 = (int) SWIG_AsInt(obj0); |
11343 | if (PyErr_Occurred()) SWIG_fail; | |
11344 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxByte, | |
11345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11346 | { |
11347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 11348 | result = (wxSound *)new wxSound(arg1,(wxByte const *)arg2); |
d14a1e28 RD |
11349 | |
11350 | wxPyEndAllowThreads(__tstate); | |
11351 | if (PyErr_Occurred()) SWIG_fail; | |
11352 | } | |
2f4c0a16 | 11353 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
11354 | return resultobj; |
11355 | fail: | |
4e760a36 RD |
11356 | return NULL; |
11357 | } | |
11358 | ||
11359 | ||
11360 | static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args) { | |
11361 | int argc; | |
11362 | PyObject *argv[3]; | |
11363 | int ii; | |
11364 | ||
11365 | argc = PyObject_Length(args); | |
11366 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
11367 | argv[ii] = PyTuple_GetItem(args,ii); | |
d14a1e28 | 11368 | } |
4e760a36 RD |
11369 | if (argc == 0) { |
11370 | return _wrap_new_Sound__SWIG_0(self,args); | |
11371 | } | |
11372 | if ((argc >= 1) && (argc <= 2)) { | |
11373 | int _v; | |
11374 | { | |
11375 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
11376 | } | |
11377 | if (_v) { | |
11378 | if (argc <= 1) { | |
11379 | return _wrap_new_Sound__SWIG_1(self,args); | |
11380 | } | |
2f4c0a16 | 11381 | _v = SWIG_CheckBool(argv[1]); |
4e760a36 RD |
11382 | if (_v) { |
11383 | return _wrap_new_Sound__SWIG_1(self,args); | |
11384 | } | |
11385 | } | |
11386 | } | |
11387 | if (argc == 2) { | |
11388 | int _v; | |
2f4c0a16 | 11389 | _v = SWIG_CheckInt(argv[0]); |
4e760a36 RD |
11390 | if (_v) { |
11391 | { | |
11392 | void *ptr; | |
2f4c0a16 | 11393 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxByte, 0) == -1) { |
4e760a36 RD |
11394 | _v = 0; |
11395 | PyErr_Clear(); | |
11396 | } else { | |
11397 | _v = 1; | |
11398 | } | |
11399 | } | |
11400 | if (_v) { | |
11401 | return _wrap_new_Sound__SWIG_2(self,args); | |
11402 | } | |
11403 | } | |
11404 | } | |
11405 | ||
11406 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Sound'"); | |
d14a1e28 RD |
11407 | return NULL; |
11408 | } | |
11409 | ||
11410 | ||
4e760a36 | 11411 | static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11412 | PyObject *resultobj; |
4e760a36 | 11413 | wxSound *arg1 = (wxSound *) 0 ; |
d14a1e28 RD |
11414 | PyObject * obj0 = 0 ; |
11415 | char *kwnames[] = { | |
11416 | (char *) "self", NULL | |
11417 | }; | |
11418 | ||
4e760a36 | 11419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
11420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11422 | { |
11423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11424 | delete arg1; | |
11425 | ||
11426 | wxPyEndAllowThreads(__tstate); | |
11427 | if (PyErr_Occurred()) SWIG_fail; | |
11428 | } | |
11429 | Py_INCREF(Py_None); resultobj = Py_None; | |
11430 | return resultobj; | |
11431 | fail: | |
11432 | return NULL; | |
11433 | } | |
11434 | ||
11435 | ||
4e760a36 | 11436 | static PyObject *_wrap_Sound_Create__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 | 11437 | PyObject *resultobj; |
4e760a36 RD |
11438 | wxSound *arg1 = (wxSound *) 0 ; |
11439 | wxString *arg2 = 0 ; | |
11440 | bool arg3 = (bool) false ; | |
d14a1e28 | 11441 | bool result; |
4e760a36 | 11442 | bool temp2 = False ; |
d14a1e28 | 11443 | PyObject * obj0 = 0 ; |
4e760a36 RD |
11444 | PyObject * obj1 = 0 ; |
11445 | PyObject * obj2 = 0 ; | |
d14a1e28 | 11446 | |
4e760a36 | 11447 | if(!PyArg_ParseTuple(args,(char *)"OO|O:Sound_Create",&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4e760a36 RD |
11450 | { |
11451 | arg2 = wxString_in_helper(obj1); | |
11452 | if (arg2 == NULL) SWIG_fail; | |
11453 | temp2 = True; | |
11454 | } | |
11455 | if (obj2) { | |
2f4c0a16 RD |
11456 | arg3 = (bool) SWIG_AsBool(obj2); |
11457 | if (PyErr_Occurred()) SWIG_fail; | |
4e760a36 | 11458 | } |
d14a1e28 RD |
11459 | { |
11460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 11461 | result = (bool)(arg1)->Create((wxString const &)*arg2,arg3); |
d14a1e28 RD |
11462 | |
11463 | wxPyEndAllowThreads(__tstate); | |
11464 | if (PyErr_Occurred()) SWIG_fail; | |
11465 | } | |
4e760a36 RD |
11466 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
11467 | { | |
11468 | if (temp2) | |
11469 | delete arg2; | |
11470 | } | |
d14a1e28 RD |
11471 | return resultobj; |
11472 | fail: | |
4e760a36 RD |
11473 | { |
11474 | if (temp2) | |
11475 | delete arg2; | |
11476 | } | |
d14a1e28 RD |
11477 | return NULL; |
11478 | } | |
11479 | ||
11480 | ||
4e760a36 | 11481 | static PyObject *_wrap_Sound_Create__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 | 11482 | PyObject *resultobj; |
4e760a36 RD |
11483 | wxSound *arg1 = (wxSound *) 0 ; |
11484 | int arg2 ; | |
11485 | wxByte *arg3 = (wxByte *) 0 ; | |
d14a1e28 RD |
11486 | bool result; |
11487 | PyObject * obj0 = 0 ; | |
11488 | PyObject * obj1 = 0 ; | |
11489 | PyObject * obj2 = 0 ; | |
4e760a36 RD |
11490 | |
11491 | if(!PyArg_ParseTuple(args,(char *)"OOO:Sound_Create",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
11492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11494 | arg2 = (int) SWIG_AsInt(obj1); | |
11495 | if (PyErr_Occurred()) SWIG_fail; | |
11496 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxByte, | |
11497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4e760a36 RD |
11498 | { |
11499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11500 | result = (bool)(arg1)->Create(arg2,(wxByte const *)arg3); | |
11501 | ||
11502 | wxPyEndAllowThreads(__tstate); | |
11503 | if (PyErr_Occurred()) SWIG_fail; | |
11504 | } | |
11505 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11506 | return resultobj; | |
11507 | fail: | |
11508 | return NULL; | |
11509 | } | |
11510 | ||
11511 | ||
11512 | static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args) { | |
11513 | int argc; | |
11514 | PyObject *argv[4]; | |
11515 | int ii; | |
11516 | ||
11517 | argc = PyObject_Length(args); | |
11518 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
11519 | argv[ii] = PyTuple_GetItem(args,ii); | |
11520 | } | |
11521 | if ((argc >= 2) && (argc <= 3)) { | |
11522 | int _v; | |
11523 | { | |
11524 | void *ptr; | |
2f4c0a16 | 11525 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) { |
4e760a36 RD |
11526 | _v = 0; |
11527 | PyErr_Clear(); | |
11528 | } else { | |
11529 | _v = 1; | |
11530 | } | |
11531 | } | |
11532 | if (_v) { | |
11533 | { | |
11534 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
11535 | } | |
11536 | if (_v) { | |
11537 | if (argc <= 2) { | |
11538 | return _wrap_Sound_Create__SWIG_0(self,args); | |
11539 | } | |
2f4c0a16 | 11540 | _v = SWIG_CheckBool(argv[2]); |
4e760a36 RD |
11541 | if (_v) { |
11542 | return _wrap_Sound_Create__SWIG_0(self,args); | |
11543 | } | |
11544 | } | |
11545 | } | |
11546 | } | |
11547 | if (argc == 3) { | |
11548 | int _v; | |
11549 | { | |
11550 | void *ptr; | |
2f4c0a16 | 11551 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) { |
4e760a36 RD |
11552 | _v = 0; |
11553 | PyErr_Clear(); | |
11554 | } else { | |
11555 | _v = 1; | |
11556 | } | |
11557 | } | |
11558 | if (_v) { | |
2f4c0a16 | 11559 | _v = SWIG_CheckInt(argv[1]); |
4e760a36 RD |
11560 | if (_v) { |
11561 | { | |
11562 | void *ptr; | |
2f4c0a16 | 11563 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxByte, 0) == -1) { |
4e760a36 RD |
11564 | _v = 0; |
11565 | PyErr_Clear(); | |
11566 | } else { | |
11567 | _v = 1; | |
11568 | } | |
11569 | } | |
11570 | if (_v) { | |
11571 | return _wrap_Sound_Create__SWIG_1(self,args); | |
11572 | } | |
11573 | } | |
11574 | } | |
11575 | } | |
11576 | ||
11577 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Sound_Create'"); | |
11578 | return NULL; | |
11579 | } | |
11580 | ||
11581 | ||
11582 | static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11583 | PyObject *resultobj; | |
11584 | wxSound *arg1 = (wxSound *) 0 ; | |
11585 | bool result; | |
11586 | PyObject * obj0 = 0 ; | |
d14a1e28 | 11587 | char *kwnames[] = { |
4e760a36 | 11588 | (char *) "self", NULL |
d14a1e28 RD |
11589 | }; |
11590 | ||
4e760a36 | 11591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
11592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4e760a36 RD |
11594 | { |
11595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11596 | result = (bool)(arg1)->IsOk(); | |
11597 | ||
11598 | wxPyEndAllowThreads(__tstate); | |
11599 | if (PyErr_Occurred()) SWIG_fail; | |
11600 | } | |
11601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11602 | return resultobj; | |
11603 | fail: | |
11604 | return NULL; | |
11605 | } | |
11606 | ||
11607 | ||
11608 | static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args) { | |
11609 | PyObject *resultobj; | |
11610 | wxSound *arg1 = (wxSound *) 0 ; | |
11611 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11612 | bool result; | |
11613 | PyObject * obj0 = 0 ; | |
11614 | PyObject * obj1 = 0 ; | |
11615 | ||
11616 | if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_Play",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11619 | if (obj1) { |
2f4c0a16 RD |
11620 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); |
11621 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11622 | } |
4e760a36 RD |
11623 | { |
11624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11625 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
11626 | ||
11627 | wxPyEndAllowThreads(__tstate); | |
11628 | if (PyErr_Occurred()) SWIG_fail; | |
11629 | } | |
11630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11631 | return resultobj; | |
11632 | fail: | |
11633 | return NULL; | |
11634 | } | |
11635 | ||
11636 | ||
11637 | static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args) { | |
11638 | PyObject *resultobj; | |
11639 | wxString *arg1 = 0 ; | |
11640 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11641 | bool result; | |
11642 | bool temp1 = False ; | |
11643 | PyObject * obj0 = 0 ; | |
11644 | PyObject * obj1 = 0 ; | |
11645 | ||
11646 | if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_PlaySound",&obj0,&obj1)) goto fail; | |
11647 | { | |
11648 | arg1 = wxString_in_helper(obj0); | |
11649 | if (arg1 == NULL) SWIG_fail; | |
11650 | temp1 = True; | |
11651 | } | |
11652 | if (obj1) { | |
2f4c0a16 RD |
11653 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); |
11654 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11655 | } |
11656 | { | |
11657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 11658 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); |
d14a1e28 RD |
11659 | |
11660 | wxPyEndAllowThreads(__tstate); | |
11661 | if (PyErr_Occurred()) SWIG_fail; | |
11662 | } | |
4e760a36 RD |
11663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
11664 | { | |
11665 | if (temp1) | |
11666 | delete arg1; | |
11667 | } | |
d14a1e28 RD |
11668 | return resultobj; |
11669 | fail: | |
4e760a36 RD |
11670 | { |
11671 | if (temp1) | |
11672 | delete arg1; | |
11673 | } | |
d14a1e28 RD |
11674 | return NULL; |
11675 | } | |
11676 | ||
11677 | ||
4e760a36 RD |
11678 | static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { |
11679 | PyObject *resultobj; | |
11680 | char *kwnames[] = { | |
11681 | NULL | |
11682 | }; | |
11683 | ||
11684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
11685 | { | |
11686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11687 | wxSound::Stop(); | |
11688 | ||
11689 | wxPyEndAllowThreads(__tstate); | |
11690 | if (PyErr_Occurred()) SWIG_fail; | |
11691 | } | |
11692 | Py_INCREF(Py_None); resultobj = Py_None; | |
11693 | return resultobj; | |
11694 | fail: | |
11695 | return NULL; | |
11696 | } | |
11697 | ||
11698 | ||
11699 | static PyObject * Sound_swigregister(PyObject *self, PyObject *args) { | |
d14a1e28 RD |
11700 | PyObject *obj; |
11701 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4e760a36 | 11702 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); |
d14a1e28 RD |
11703 | Py_INCREF(obj); |
11704 | return Py_BuildValue((char *)""); | |
11705 | } | |
11706 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11707 | PyObject *resultobj; | |
11708 | wxString *arg1 = 0 ; | |
11709 | wxString *arg2 = 0 ; | |
11710 | wxString *arg3 = 0 ; | |
11711 | wxString *arg4 = 0 ; | |
11712 | wxFileTypeInfo *result; | |
423f194a RD |
11713 | bool temp1 = False ; |
11714 | bool temp2 = False ; | |
11715 | bool temp3 = False ; | |
11716 | bool temp4 = False ; | |
d14a1e28 RD |
11717 | PyObject * obj0 = 0 ; |
11718 | PyObject * obj1 = 0 ; | |
11719 | PyObject * obj2 = 0 ; | |
11720 | PyObject * obj3 = 0 ; | |
11721 | char *kwnames[] = { | |
11722 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
11723 | }; | |
11724 | ||
11725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11726 | { | |
11727 | arg1 = wxString_in_helper(obj0); | |
11728 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 11729 | temp1 = True; |
d14a1e28 RD |
11730 | } |
11731 | { | |
11732 | arg2 = wxString_in_helper(obj1); | |
11733 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11734 | temp2 = True; |
d14a1e28 RD |
11735 | } |
11736 | { | |
11737 | arg3 = wxString_in_helper(obj2); | |
11738 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11739 | temp3 = True; |
d14a1e28 RD |
11740 | } |
11741 | { | |
11742 | arg4 = wxString_in_helper(obj3); | |
11743 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 11744 | temp4 = True; |
d14a1e28 RD |
11745 | } |
11746 | { | |
11747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11748 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
11749 | ||
11750 | wxPyEndAllowThreads(__tstate); | |
11751 | if (PyErr_Occurred()) SWIG_fail; | |
11752 | } | |
2f4c0a16 | 11753 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 RD |
11754 | { |
11755 | if (temp1) | |
11756 | delete arg1; | |
11757 | } | |
11758 | { | |
11759 | if (temp2) | |
11760 | delete arg2; | |
11761 | } | |
11762 | { | |
11763 | if (temp3) | |
11764 | delete arg3; | |
11765 | } | |
11766 | { | |
11767 | if (temp4) | |
11768 | delete arg4; | |
11769 | } | |
11770 | return resultobj; | |
11771 | fail: | |
11772 | { | |
11773 | if (temp1) | |
11774 | delete arg1; | |
11775 | } | |
11776 | { | |
11777 | if (temp2) | |
11778 | delete arg2; | |
11779 | } | |
11780 | { | |
11781 | if (temp3) | |
11782 | delete arg3; | |
11783 | } | |
11784 | { | |
11785 | if (temp4) | |
11786 | delete arg4; | |
11787 | } | |
11788 | return NULL; | |
11789 | } | |
11790 | ||
11791 | ||
11792 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11793 | PyObject *resultobj; | |
11794 | wxArrayString *arg1 = 0 ; | |
11795 | wxFileTypeInfo *result; | |
db914595 | 11796 | bool temp1 = False ; |
d14a1e28 RD |
11797 | PyObject * obj0 = 0 ; |
11798 | char *kwnames[] = { | |
11799 | (char *) "sArray", NULL | |
11800 | }; | |
11801 | ||
11802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
11803 | { | |
11804 | if (! PySequence_Check(obj0)) { | |
11805 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11806 | SWIG_fail; | |
11807 | } | |
11808 | arg1 = new wxArrayString; | |
db914595 | 11809 | temp1 = True; |
d14a1e28 RD |
11810 | int i, len=PySequence_Length(obj0); |
11811 | for (i=0; i<len; i++) { | |
11812 | PyObject* item = PySequence_GetItem(obj0, i); | |
11813 | #if wxUSE_UNICODE | |
11814 | PyObject* str = PyObject_Unicode(item); | |
11815 | #else | |
11816 | PyObject* str = PyObject_Str(item); | |
11817 | #endif | |
11818 | arg1->Add(Py2wxString(str)); | |
11819 | Py_DECREF(item); | |
11820 | Py_DECREF(str); | |
11821 | } | |
11822 | } | |
11823 | { | |
11824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11825 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
11826 | ||
11827 | wxPyEndAllowThreads(__tstate); | |
11828 | if (PyErr_Occurred()) SWIG_fail; | |
11829 | } | |
2f4c0a16 | 11830 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 | 11831 | { |
db914595 | 11832 | if (temp1) delete arg1; |
d14a1e28 RD |
11833 | } |
11834 | return resultobj; | |
11835 | fail: | |
11836 | { | |
db914595 | 11837 | if (temp1) delete arg1; |
d14a1e28 RD |
11838 | } |
11839 | return NULL; | |
11840 | } | |
11841 | ||
11842 | ||
11843 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11844 | PyObject *resultobj; | |
11845 | wxFileTypeInfo *result; | |
11846 | char *kwnames[] = { | |
11847 | NULL | |
11848 | }; | |
11849 | ||
11850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
11851 | { | |
11852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11853 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
11854 | ||
11855 | wxPyEndAllowThreads(__tstate); | |
11856 | if (PyErr_Occurred()) SWIG_fail; | |
11857 | } | |
2f4c0a16 | 11858 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 RD |
11859 | return resultobj; |
11860 | fail: | |
11861 | return NULL; | |
11862 | } | |
11863 | ||
11864 | ||
11865 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11866 | PyObject *resultobj; | |
11867 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11868 | bool result; | |
11869 | PyObject * obj0 = 0 ; | |
11870 | char *kwnames[] = { | |
11871 | (char *) "self", NULL | |
11872 | }; | |
11873 | ||
11874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
11876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11877 | { |
11878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11879 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
11880 | ||
11881 | wxPyEndAllowThreads(__tstate); | |
11882 | if (PyErr_Occurred()) SWIG_fail; | |
11883 | } | |
4e760a36 | 11884 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11885 | return resultobj; |
11886 | fail: | |
11887 | return NULL; | |
11888 | } | |
11889 | ||
11890 | ||
11891 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11892 | PyObject *resultobj; | |
11893 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11894 | wxString *arg2 = 0 ; | |
11895 | int arg3 = (int) 0 ; | |
423f194a | 11896 | bool temp2 = False ; |
d14a1e28 RD |
11897 | PyObject * obj0 = 0 ; |
11898 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11899 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11900 | char *kwnames[] = { |
11901 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
11902 | }; | |
11903 | ||
8edf1c75 | 11904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
11906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11907 | { |
11908 | arg2 = wxString_in_helper(obj1); | |
11909 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11910 | temp2 = True; |
d14a1e28 | 11911 | } |
8edf1c75 | 11912 | if (obj2) { |
2f4c0a16 RD |
11913 | arg3 = (int) SWIG_AsInt(obj2); |
11914 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11915 | } |
d14a1e28 RD |
11916 | { |
11917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11918 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
11919 | ||
11920 | wxPyEndAllowThreads(__tstate); | |
11921 | if (PyErr_Occurred()) SWIG_fail; | |
11922 | } | |
11923 | Py_INCREF(Py_None); resultobj = Py_None; | |
11924 | { | |
11925 | if (temp2) | |
11926 | delete arg2; | |
11927 | } | |
11928 | return resultobj; | |
11929 | fail: | |
11930 | { | |
11931 | if (temp2) | |
11932 | delete arg2; | |
11933 | } | |
11934 | return NULL; | |
11935 | } | |
11936 | ||
11937 | ||
11938 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11939 | PyObject *resultobj; | |
11940 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11941 | wxString *arg2 = 0 ; | |
423f194a | 11942 | bool temp2 = False ; |
d14a1e28 RD |
11943 | PyObject * obj0 = 0 ; |
11944 | PyObject * obj1 = 0 ; | |
11945 | char *kwnames[] = { | |
11946 | (char *) "self",(char *) "shortDesc", NULL | |
11947 | }; | |
11948 | ||
11949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
11951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11952 | { |
11953 | arg2 = wxString_in_helper(obj1); | |
11954 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11955 | temp2 = True; |
d14a1e28 RD |
11956 | } |
11957 | { | |
11958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11959 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
11960 | ||
11961 | wxPyEndAllowThreads(__tstate); | |
11962 | if (PyErr_Occurred()) SWIG_fail; | |
11963 | } | |
11964 | Py_INCREF(Py_None); resultobj = Py_None; | |
11965 | { | |
11966 | if (temp2) | |
11967 | delete arg2; | |
11968 | } | |
11969 | return resultobj; | |
11970 | fail: | |
11971 | { | |
11972 | if (temp2) | |
11973 | delete arg2; | |
11974 | } | |
11975 | return NULL; | |
11976 | } | |
11977 | ||
11978 | ||
11979 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11980 | PyObject *resultobj; | |
11981 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11982 | wxString *result; | |
11983 | PyObject * obj0 = 0 ; | |
11984 | char *kwnames[] = { | |
11985 | (char *) "self", NULL | |
11986 | }; | |
11987 | ||
11988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
11990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11991 | { |
11992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11993 | { | |
11994 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
11995 | result = (wxString *) &_result_ref; | |
11996 | } | |
11997 | ||
11998 | wxPyEndAllowThreads(__tstate); | |
11999 | if (PyErr_Occurred()) SWIG_fail; | |
12000 | } | |
f0983263 RD |
12001 | { |
12002 | #if wxUSE_UNICODE | |
12003 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12004 | #else | |
12005 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12006 | #endif | |
12007 | } | |
d14a1e28 RD |
12008 | return resultobj; |
12009 | fail: | |
12010 | return NULL; | |
12011 | } | |
12012 | ||
12013 | ||
12014 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12015 | PyObject *resultobj; | |
12016 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12017 | wxString *result; | |
12018 | PyObject * obj0 = 0 ; | |
12019 | char *kwnames[] = { | |
12020 | (char *) "self", NULL | |
12021 | }; | |
12022 | ||
12023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12026 | { |
12027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12028 | { | |
12029 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
12030 | result = (wxString *) &_result_ref; | |
12031 | } | |
12032 | ||
12033 | wxPyEndAllowThreads(__tstate); | |
12034 | if (PyErr_Occurred()) SWIG_fail; | |
12035 | } | |
f0983263 RD |
12036 | { |
12037 | #if wxUSE_UNICODE | |
12038 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12039 | #else | |
12040 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12041 | #endif | |
12042 | } | |
d14a1e28 RD |
12043 | return resultobj; |
12044 | fail: | |
12045 | return NULL; | |
12046 | } | |
12047 | ||
12048 | ||
12049 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12050 | PyObject *resultobj; | |
12051 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12052 | wxString *result; | |
12053 | PyObject * obj0 = 0 ; | |
12054 | char *kwnames[] = { | |
12055 | (char *) "self", NULL | |
12056 | }; | |
12057 | ||
12058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12061 | { |
12062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12063 | { | |
12064 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
12065 | result = (wxString *) &_result_ref; | |
12066 | } | |
12067 | ||
12068 | wxPyEndAllowThreads(__tstate); | |
12069 | if (PyErr_Occurred()) SWIG_fail; | |
12070 | } | |
f0983263 RD |
12071 | { |
12072 | #if wxUSE_UNICODE | |
12073 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12074 | #else | |
12075 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12076 | #endif | |
12077 | } | |
d14a1e28 RD |
12078 | return resultobj; |
12079 | fail: | |
12080 | return NULL; | |
12081 | } | |
12082 | ||
12083 | ||
12084 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12085 | PyObject *resultobj; | |
12086 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12087 | wxString *result; | |
12088 | PyObject * obj0 = 0 ; | |
12089 | char *kwnames[] = { | |
12090 | (char *) "self", NULL | |
12091 | }; | |
12092 | ||
12093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12096 | { |
12097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12098 | { | |
12099 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
12100 | result = (wxString *) &_result_ref; | |
12101 | } | |
12102 | ||
12103 | wxPyEndAllowThreads(__tstate); | |
12104 | if (PyErr_Occurred()) SWIG_fail; | |
12105 | } | |
f0983263 RD |
12106 | { |
12107 | #if wxUSE_UNICODE | |
12108 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12109 | #else | |
12110 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12111 | #endif | |
12112 | } | |
d14a1e28 RD |
12113 | return resultobj; |
12114 | fail: | |
12115 | return NULL; | |
12116 | } | |
12117 | ||
12118 | ||
12119 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12120 | PyObject *resultobj; | |
12121 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12122 | wxString *result; | |
12123 | PyObject * obj0 = 0 ; | |
12124 | char *kwnames[] = { | |
12125 | (char *) "self", NULL | |
12126 | }; | |
12127 | ||
12128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12131 | { |
12132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12133 | { | |
12134 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
12135 | result = (wxString *) &_result_ref; | |
12136 | } | |
12137 | ||
12138 | wxPyEndAllowThreads(__tstate); | |
12139 | if (PyErr_Occurred()) SWIG_fail; | |
12140 | } | |
f0983263 RD |
12141 | { |
12142 | #if wxUSE_UNICODE | |
12143 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12144 | #else | |
12145 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12146 | #endif | |
12147 | } | |
d14a1e28 RD |
12148 | return resultobj; |
12149 | fail: | |
12150 | return NULL; | |
12151 | } | |
12152 | ||
12153 | ||
12154 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12155 | PyObject *resultobj; | |
12156 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12157 | wxArrayString *result; | |
12158 | PyObject * obj0 = 0 ; | |
12159 | char *kwnames[] = { | |
12160 | (char *) "self", NULL | |
12161 | }; | |
12162 | ||
12163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12166 | { |
12167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12168 | { | |
12169 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
12170 | result = (wxArrayString *) &_result_ref; | |
12171 | } | |
12172 | ||
12173 | wxPyEndAllowThreads(__tstate); | |
12174 | if (PyErr_Occurred()) SWIG_fail; | |
12175 | } | |
12176 | { | |
12177 | resultobj = wxArrayString2PyList_helper(*result); | |
12178 | } | |
12179 | return resultobj; | |
12180 | fail: | |
12181 | return NULL; | |
12182 | } | |
12183 | ||
12184 | ||
12185 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12186 | PyObject *resultobj; | |
12187 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12188 | int result; | |
12189 | PyObject * obj0 = 0 ; | |
12190 | char *kwnames[] = { | |
12191 | (char *) "self", NULL | |
12192 | }; | |
12193 | ||
12194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12197 | { |
12198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12199 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
12200 | ||
12201 | wxPyEndAllowThreads(__tstate); | |
12202 | if (PyErr_Occurred()) SWIG_fail; | |
12203 | } | |
2f4c0a16 | 12204 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12205 | return resultobj; |
12206 | fail: | |
12207 | return NULL; | |
12208 | } | |
12209 | ||
12210 | ||
12211 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12212 | PyObject *resultobj; | |
12213 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12214 | wxString *result; | |
12215 | PyObject * obj0 = 0 ; | |
12216 | char *kwnames[] = { | |
12217 | (char *) "self", NULL | |
12218 | }; | |
12219 | ||
12220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12223 | { |
12224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12225 | { | |
12226 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
12227 | result = (wxString *) &_result_ref; | |
12228 | } | |
12229 | ||
12230 | wxPyEndAllowThreads(__tstate); | |
12231 | if (PyErr_Occurred()) SWIG_fail; | |
12232 | } | |
f0983263 RD |
12233 | { |
12234 | #if wxUSE_UNICODE | |
12235 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12236 | #else | |
12237 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12238 | #endif | |
12239 | } | |
d14a1e28 RD |
12240 | return resultobj; |
12241 | fail: | |
12242 | return NULL; | |
12243 | } | |
12244 | ||
12245 | ||
12246 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12247 | PyObject *resultobj; | |
12248 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12249 | int result; | |
12250 | PyObject * obj0 = 0 ; | |
12251 | char *kwnames[] = { | |
12252 | (char *) "self", NULL | |
12253 | }; | |
12254 | ||
12255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12258 | { |
12259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12260 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
12261 | ||
12262 | wxPyEndAllowThreads(__tstate); | |
12263 | if (PyErr_Occurred()) SWIG_fail; | |
12264 | } | |
2f4c0a16 | 12265 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12266 | return resultobj; |
12267 | fail: | |
12268 | return NULL; | |
12269 | } | |
12270 | ||
12271 | ||
12272 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
12273 | PyObject *obj; | |
12274 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12275 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
12276 | Py_INCREF(obj); | |
12277 | return Py_BuildValue((char *)""); | |
12278 | } | |
12279 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12280 | PyObject *resultobj; | |
12281 | wxFileTypeInfo *arg1 = 0 ; | |
12282 | wxFileType *result; | |
12283 | PyObject * obj0 = 0 ; | |
12284 | char *kwnames[] = { | |
12285 | (char *) "ftInfo", NULL | |
12286 | }; | |
12287 | ||
12288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12290 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12291 | SWIG_fail; | |
d14a1e28 | 12292 | if (arg1 == NULL) { |
2f4c0a16 RD |
12293 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12294 | SWIG_fail; | |
d14a1e28 RD |
12295 | } |
12296 | { | |
12297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12298 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
12299 | ||
12300 | wxPyEndAllowThreads(__tstate); | |
12301 | if (PyErr_Occurred()) SWIG_fail; | |
12302 | } | |
2f4c0a16 | 12303 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
12304 | return resultobj; |
12305 | fail: | |
12306 | return NULL; | |
12307 | } | |
12308 | ||
12309 | ||
12310 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12311 | PyObject *resultobj; | |
12312 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12313 | PyObject * obj0 = 0 ; | |
12314 | char *kwnames[] = { | |
12315 | (char *) "self", NULL | |
12316 | }; | |
12317 | ||
12318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12321 | { |
12322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12323 | delete arg1; | |
12324 | ||
12325 | wxPyEndAllowThreads(__tstate); | |
12326 | if (PyErr_Occurred()) SWIG_fail; | |
12327 | } | |
12328 | Py_INCREF(Py_None); resultobj = Py_None; | |
12329 | return resultobj; | |
12330 | fail: | |
12331 | return NULL; | |
12332 | } | |
12333 | ||
12334 | ||
12335 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12336 | PyObject *resultobj; | |
12337 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12338 | PyObject *result; | |
12339 | PyObject * obj0 = 0 ; | |
12340 | char *kwnames[] = { | |
12341 | (char *) "self", NULL | |
12342 | }; | |
12343 | ||
12344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12347 | { |
12348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12349 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
12350 | ||
12351 | wxPyEndAllowThreads(__tstate); | |
12352 | if (PyErr_Occurred()) SWIG_fail; | |
12353 | } | |
12354 | resultobj = result; | |
12355 | return resultobj; | |
12356 | fail: | |
12357 | return NULL; | |
12358 | } | |
12359 | ||
12360 | ||
12361 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12362 | PyObject *resultobj; | |
12363 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12364 | PyObject *result; | |
12365 | PyObject * obj0 = 0 ; | |
12366 | char *kwnames[] = { | |
12367 | (char *) "self", NULL | |
12368 | }; | |
12369 | ||
12370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12373 | { |
12374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12375 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
12376 | ||
12377 | wxPyEndAllowThreads(__tstate); | |
12378 | if (PyErr_Occurred()) SWIG_fail; | |
12379 | } | |
12380 | resultobj = result; | |
12381 | return resultobj; | |
12382 | fail: | |
12383 | return NULL; | |
12384 | } | |
12385 | ||
12386 | ||
12387 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12388 | PyObject *resultobj; | |
12389 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12390 | PyObject *result; | |
12391 | PyObject * obj0 = 0 ; | |
12392 | char *kwnames[] = { | |
12393 | (char *) "self", NULL | |
12394 | }; | |
12395 | ||
12396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12399 | { |
12400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12401 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
12402 | ||
12403 | wxPyEndAllowThreads(__tstate); | |
12404 | if (PyErr_Occurred()) SWIG_fail; | |
12405 | } | |
12406 | resultobj = result; | |
12407 | return resultobj; | |
12408 | fail: | |
12409 | return NULL; | |
12410 | } | |
12411 | ||
12412 | ||
12413 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12414 | PyObject *resultobj; | |
12415 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12416 | wxIcon *result; | |
12417 | PyObject * obj0 = 0 ; | |
12418 | char *kwnames[] = { | |
12419 | (char *) "self", NULL | |
12420 | }; | |
12421 | ||
12422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12425 | { |
12426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12427 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
12428 | ||
12429 | wxPyEndAllowThreads(__tstate); | |
12430 | if (PyErr_Occurred()) SWIG_fail; | |
12431 | } | |
2f4c0a16 | 12432 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
12433 | return resultobj; |
12434 | fail: | |
12435 | return NULL; | |
12436 | } | |
12437 | ||
12438 | ||
12439 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12440 | PyObject *resultobj; | |
12441 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12442 | PyObject *result; | |
12443 | PyObject * obj0 = 0 ; | |
12444 | char *kwnames[] = { | |
12445 | (char *) "self", NULL | |
12446 | }; | |
12447 | ||
12448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12451 | { |
12452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12453 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
12454 | ||
12455 | wxPyEndAllowThreads(__tstate); | |
12456 | if (PyErr_Occurred()) SWIG_fail; | |
12457 | } | |
12458 | resultobj = result; | |
12459 | return resultobj; | |
12460 | fail: | |
12461 | return NULL; | |
12462 | } | |
12463 | ||
12464 | ||
12465 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12466 | PyObject *resultobj; | |
12467 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12468 | PyObject *result; | |
12469 | PyObject * obj0 = 0 ; | |
12470 | char *kwnames[] = { | |
12471 | (char *) "self", NULL | |
12472 | }; | |
12473 | ||
12474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12477 | { |
12478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12479 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
12480 | ||
12481 | wxPyEndAllowThreads(__tstate); | |
12482 | if (PyErr_Occurred()) SWIG_fail; | |
12483 | } | |
12484 | resultobj = result; | |
12485 | return resultobj; | |
12486 | fail: | |
12487 | return NULL; | |
12488 | } | |
12489 | ||
12490 | ||
12491 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12492 | PyObject *resultobj; | |
12493 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12494 | wxString *arg2 = 0 ; | |
12495 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12496 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12497 | PyObject *result; | |
423f194a RD |
12498 | bool temp2 = False ; |
12499 | bool temp3 = False ; | |
d14a1e28 RD |
12500 | PyObject * obj0 = 0 ; |
12501 | PyObject * obj1 = 0 ; | |
12502 | PyObject * obj2 = 0 ; | |
12503 | char *kwnames[] = { | |
12504 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12505 | }; | |
12506 | ||
12507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
12508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12510 | { |
12511 | arg2 = wxString_in_helper(obj1); | |
12512 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12513 | temp2 = True; |
d14a1e28 RD |
12514 | } |
12515 | if (obj2) { | |
12516 | { | |
12517 | arg3 = wxString_in_helper(obj2); | |
12518 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12519 | temp3 = True; |
d14a1e28 RD |
12520 | } |
12521 | } | |
12522 | { | |
12523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12524 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12525 | ||
12526 | wxPyEndAllowThreads(__tstate); | |
12527 | if (PyErr_Occurred()) SWIG_fail; | |
12528 | } | |
12529 | resultobj = result; | |
12530 | { | |
12531 | if (temp2) | |
12532 | delete arg2; | |
12533 | } | |
12534 | { | |
12535 | if (temp3) | |
12536 | delete arg3; | |
12537 | } | |
12538 | return resultobj; | |
12539 | fail: | |
12540 | { | |
12541 | if (temp2) | |
12542 | delete arg2; | |
12543 | } | |
12544 | { | |
12545 | if (temp3) | |
12546 | delete arg3; | |
12547 | } | |
12548 | return NULL; | |
12549 | } | |
12550 | ||
12551 | ||
12552 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12553 | PyObject *resultobj; | |
12554 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12555 | wxString *arg2 = 0 ; | |
12556 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12557 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12558 | PyObject *result; | |
423f194a RD |
12559 | bool temp2 = False ; |
12560 | bool temp3 = False ; | |
d14a1e28 RD |
12561 | PyObject * obj0 = 0 ; |
12562 | PyObject * obj1 = 0 ; | |
12563 | PyObject * obj2 = 0 ; | |
12564 | char *kwnames[] = { | |
12565 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12566 | }; | |
12567 | ||
12568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
12569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12571 | { |
12572 | arg2 = wxString_in_helper(obj1); | |
12573 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12574 | temp2 = True; |
d14a1e28 RD |
12575 | } |
12576 | if (obj2) { | |
12577 | { | |
12578 | arg3 = wxString_in_helper(obj2); | |
12579 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12580 | temp3 = True; |
d14a1e28 RD |
12581 | } |
12582 | } | |
12583 | { | |
12584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12585 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12586 | ||
12587 | wxPyEndAllowThreads(__tstate); | |
12588 | if (PyErr_Occurred()) SWIG_fail; | |
12589 | } | |
12590 | resultobj = result; | |
12591 | { | |
12592 | if (temp2) | |
12593 | delete arg2; | |
12594 | } | |
12595 | { | |
12596 | if (temp3) | |
12597 | delete arg3; | |
12598 | } | |
12599 | return resultobj; | |
12600 | fail: | |
12601 | { | |
12602 | if (temp2) | |
12603 | delete arg2; | |
12604 | } | |
12605 | { | |
12606 | if (temp3) | |
12607 | delete arg3; | |
12608 | } | |
12609 | return NULL; | |
12610 | } | |
12611 | ||
12612 | ||
12613 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12614 | PyObject *resultobj; | |
12615 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12616 | wxString *arg2 = 0 ; | |
12617 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12618 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12619 | PyObject *result; | |
423f194a RD |
12620 | bool temp2 = False ; |
12621 | bool temp3 = False ; | |
d14a1e28 RD |
12622 | PyObject * obj0 = 0 ; |
12623 | PyObject * obj1 = 0 ; | |
12624 | PyObject * obj2 = 0 ; | |
12625 | char *kwnames[] = { | |
12626 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12627 | }; | |
12628 | ||
12629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
12630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12632 | { |
12633 | arg2 = wxString_in_helper(obj1); | |
12634 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12635 | temp2 = True; |
d14a1e28 RD |
12636 | } |
12637 | if (obj2) { | |
12638 | { | |
12639 | arg3 = wxString_in_helper(obj2); | |
12640 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12641 | temp3 = True; |
d14a1e28 RD |
12642 | } |
12643 | } | |
12644 | { | |
12645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12646 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12647 | ||
12648 | wxPyEndAllowThreads(__tstate); | |
12649 | if (PyErr_Occurred()) SWIG_fail; | |
12650 | } | |
12651 | resultobj = result; | |
12652 | { | |
12653 | if (temp2) | |
12654 | delete arg2; | |
12655 | } | |
12656 | { | |
12657 | if (temp3) | |
12658 | delete arg3; | |
12659 | } | |
12660 | return resultobj; | |
12661 | fail: | |
12662 | { | |
12663 | if (temp2) | |
12664 | delete arg2; | |
12665 | } | |
12666 | { | |
12667 | if (temp3) | |
12668 | delete arg3; | |
12669 | } | |
12670 | return NULL; | |
12671 | } | |
12672 | ||
12673 | ||
12674 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12675 | PyObject *resultobj; | |
12676 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12677 | wxString *arg2 = 0 ; | |
12678 | wxString *arg3 = 0 ; | |
423f194a | 12679 | bool arg4 = (bool) True ; |
d14a1e28 | 12680 | bool result; |
423f194a RD |
12681 | bool temp2 = False ; |
12682 | bool temp3 = False ; | |
d14a1e28 RD |
12683 | PyObject * obj0 = 0 ; |
12684 | PyObject * obj1 = 0 ; | |
12685 | PyObject * obj2 = 0 ; | |
12686 | PyObject * obj3 = 0 ; | |
12687 | char *kwnames[] = { | |
12688 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
12689 | }; | |
12690 | ||
12691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
12692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12694 | { |
12695 | arg2 = wxString_in_helper(obj1); | |
12696 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12697 | temp2 = True; |
d14a1e28 RD |
12698 | } |
12699 | { | |
12700 | arg3 = wxString_in_helper(obj2); | |
12701 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12702 | temp3 = True; |
d14a1e28 RD |
12703 | } |
12704 | if (obj3) { | |
2f4c0a16 RD |
12705 | arg4 = (bool) SWIG_AsBool(obj3); |
12706 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12707 | } |
12708 | { | |
12709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12710 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
12711 | ||
12712 | wxPyEndAllowThreads(__tstate); | |
12713 | if (PyErr_Occurred()) SWIG_fail; | |
12714 | } | |
4e760a36 | 12715 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12716 | { |
12717 | if (temp2) | |
12718 | delete arg2; | |
12719 | } | |
12720 | { | |
12721 | if (temp3) | |
12722 | delete arg3; | |
12723 | } | |
12724 | return resultobj; | |
12725 | fail: | |
12726 | { | |
12727 | if (temp2) | |
12728 | delete arg2; | |
12729 | } | |
12730 | { | |
12731 | if (temp3) | |
12732 | delete arg3; | |
12733 | } | |
12734 | return NULL; | |
12735 | } | |
12736 | ||
12737 | ||
12738 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12739 | PyObject *resultobj; | |
12740 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12741 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12742 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
12743 | int arg3 = (int) 0 ; | |
12744 | bool result; | |
423f194a | 12745 | bool temp2 = False ; |
d14a1e28 RD |
12746 | PyObject * obj0 = 0 ; |
12747 | PyObject * obj1 = 0 ; | |
8edf1c75 | 12748 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12749 | char *kwnames[] = { |
12750 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
12751 | }; | |
12752 | ||
8edf1c75 | 12753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12756 | if (obj1) { |
12757 | { | |
12758 | arg2 = wxString_in_helper(obj1); | |
12759 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12760 | temp2 = True; |
d14a1e28 RD |
12761 | } |
12762 | } | |
8edf1c75 | 12763 | if (obj2) { |
2f4c0a16 RD |
12764 | arg3 = (int) SWIG_AsInt(obj2); |
12765 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12766 | } |
d14a1e28 RD |
12767 | { |
12768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12769 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
12770 | ||
12771 | wxPyEndAllowThreads(__tstate); | |
12772 | if (PyErr_Occurred()) SWIG_fail; | |
12773 | } | |
4e760a36 | 12774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12775 | { |
12776 | if (temp2) | |
12777 | delete arg2; | |
12778 | } | |
12779 | return resultobj; | |
12780 | fail: | |
12781 | { | |
12782 | if (temp2) | |
12783 | delete arg2; | |
12784 | } | |
12785 | return NULL; | |
12786 | } | |
12787 | ||
12788 | ||
12789 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12790 | PyObject *resultobj; | |
12791 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12792 | bool result; | |
12793 | PyObject * obj0 = 0 ; | |
12794 | char *kwnames[] = { | |
12795 | (char *) "self", NULL | |
12796 | }; | |
12797 | ||
12798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12801 | { |
12802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12803 | result = (bool)(arg1)->Unassociate(); | |
12804 | ||
12805 | wxPyEndAllowThreads(__tstate); | |
12806 | if (PyErr_Occurred()) SWIG_fail; | |
12807 | } | |
4e760a36 | 12808 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12809 | return resultobj; |
12810 | fail: | |
12811 | return NULL; | |
12812 | } | |
12813 | ||
12814 | ||
12815 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12816 | PyObject *resultobj; | |
12817 | wxString *arg1 = 0 ; | |
12818 | wxString *arg2 = 0 ; | |
12819 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12820 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12821 | wxString result; | |
423f194a RD |
12822 | bool temp1 = False ; |
12823 | bool temp2 = False ; | |
12824 | bool temp3 = False ; | |
d14a1e28 RD |
12825 | PyObject * obj0 = 0 ; |
12826 | PyObject * obj1 = 0 ; | |
12827 | PyObject * obj2 = 0 ; | |
12828 | char *kwnames[] = { | |
12829 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
12830 | }; | |
12831 | ||
12832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12833 | { | |
12834 | arg1 = wxString_in_helper(obj0); | |
12835 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 12836 | temp1 = True; |
d14a1e28 RD |
12837 | } |
12838 | { | |
12839 | arg2 = wxString_in_helper(obj1); | |
12840 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12841 | temp2 = True; |
d14a1e28 RD |
12842 | } |
12843 | if (obj2) { | |
12844 | { | |
12845 | arg3 = wxString_in_helper(obj2); | |
12846 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12847 | temp3 = True; |
d14a1e28 RD |
12848 | } |
12849 | } | |
12850 | { | |
12851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12852 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12853 | ||
12854 | wxPyEndAllowThreads(__tstate); | |
12855 | if (PyErr_Occurred()) SWIG_fail; | |
12856 | } | |
12857 | { | |
12858 | #if wxUSE_UNICODE | |
12859 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12860 | #else | |
12861 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12862 | #endif | |
12863 | } | |
12864 | { | |
12865 | if (temp1) | |
12866 | delete arg1; | |
12867 | } | |
12868 | { | |
12869 | if (temp2) | |
12870 | delete arg2; | |
12871 | } | |
12872 | { | |
12873 | if (temp3) | |
12874 | delete arg3; | |
12875 | } | |
12876 | return resultobj; | |
12877 | fail: | |
12878 | { | |
12879 | if (temp1) | |
12880 | delete arg1; | |
12881 | } | |
12882 | { | |
12883 | if (temp2) | |
12884 | delete arg2; | |
12885 | } | |
12886 | { | |
12887 | if (temp3) | |
12888 | delete arg3; | |
12889 | } | |
12890 | return NULL; | |
12891 | } | |
12892 | ||
12893 | ||
12894 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
12895 | PyObject *obj; | |
12896 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12897 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
12898 | Py_INCREF(obj); | |
12899 | return Py_BuildValue((char *)""); | |
12900 | } | |
2f4c0a16 | 12901 | static int _wrap_TheMimeTypesManager_set(PyObject *_val) { |
d14a1e28 RD |
12902 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); |
12903 | return 1; | |
12904 | } | |
12905 | ||
12906 | ||
12907 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
12908 | PyObject *pyobj; | |
12909 | ||
2f4c0a16 | 12910 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); |
d14a1e28 RD |
12911 | return pyobj; |
12912 | } | |
12913 | ||
12914 | ||
12915 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12916 | PyObject *resultobj; | |
12917 | wxString *arg1 = 0 ; | |
12918 | wxString *arg2 = 0 ; | |
12919 | bool result; | |
423f194a RD |
12920 | bool temp1 = False ; |
12921 | bool temp2 = False ; | |
d14a1e28 RD |
12922 | PyObject * obj0 = 0 ; |
12923 | PyObject * obj1 = 0 ; | |
12924 | char *kwnames[] = { | |
12925 | (char *) "mimeType",(char *) "wildcard", NULL | |
12926 | }; | |
12927 | ||
12928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
12929 | { | |
12930 | arg1 = wxString_in_helper(obj0); | |
12931 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 12932 | temp1 = True; |
d14a1e28 RD |
12933 | } |
12934 | { | |
12935 | arg2 = wxString_in_helper(obj1); | |
12936 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12937 | temp2 = True; |
d14a1e28 RD |
12938 | } |
12939 | { | |
12940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12941 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
12942 | ||
12943 | wxPyEndAllowThreads(__tstate); | |
12944 | if (PyErr_Occurred()) SWIG_fail; | |
12945 | } | |
4e760a36 | 12946 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12947 | { |
12948 | if (temp1) | |
12949 | delete arg1; | |
12950 | } | |
12951 | { | |
12952 | if (temp2) | |
12953 | delete arg2; | |
12954 | } | |
12955 | return resultobj; | |
12956 | fail: | |
12957 | { | |
12958 | if (temp1) | |
12959 | delete arg1; | |
12960 | } | |
12961 | { | |
12962 | if (temp2) | |
12963 | delete arg2; | |
12964 | } | |
12965 | return NULL; | |
12966 | } | |
12967 | ||
12968 | ||
12969 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12970 | PyObject *resultobj; | |
12971 | wxMimeTypesManager *result; | |
12972 | char *kwnames[] = { | |
12973 | NULL | |
12974 | }; | |
12975 | ||
12976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
12977 | { | |
12978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12979 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
12980 | ||
12981 | wxPyEndAllowThreads(__tstate); | |
12982 | if (PyErr_Occurred()) SWIG_fail; | |
12983 | } | |
2f4c0a16 | 12984 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); |
d14a1e28 RD |
12985 | return resultobj; |
12986 | fail: | |
12987 | return NULL; | |
12988 | } | |
12989 | ||
12990 | ||
12991 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12992 | PyObject *resultobj; | |
12993 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12994 | int arg2 = (int) wxMAILCAP_ALL ; | |
12995 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12996 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
423f194a | 12997 | bool temp3 = False ; |
d14a1e28 | 12998 | PyObject * obj0 = 0 ; |
8edf1c75 | 12999 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13000 | PyObject * obj2 = 0 ; |
13001 | char *kwnames[] = { | |
13002 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
13003 | }; | |
13004 | ||
8edf1c75 | 13005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
13006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 13008 | if (obj1) { |
2f4c0a16 RD |
13009 | arg2 = (int) SWIG_AsInt(obj1); |
13010 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13011 | } |
d14a1e28 RD |
13012 | if (obj2) { |
13013 | { | |
13014 | arg3 = wxString_in_helper(obj2); | |
13015 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13016 | temp3 = True; |
d14a1e28 RD |
13017 | } |
13018 | } | |
13019 | { | |
13020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13021 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
13022 | ||
13023 | wxPyEndAllowThreads(__tstate); | |
13024 | if (PyErr_Occurred()) SWIG_fail; | |
13025 | } | |
13026 | Py_INCREF(Py_None); resultobj = Py_None; | |
13027 | { | |
13028 | if (temp3) | |
13029 | delete arg3; | |
13030 | } | |
13031 | return resultobj; | |
13032 | fail: | |
13033 | { | |
13034 | if (temp3) | |
13035 | delete arg3; | |
13036 | } | |
13037 | return NULL; | |
13038 | } | |
13039 | ||
13040 | ||
13041 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13042 | PyObject *resultobj; | |
13043 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13044 | PyObject * obj0 = 0 ; | |
13045 | char *kwnames[] = { | |
13046 | (char *) "self", NULL | |
13047 | }; | |
13048 | ||
13049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13052 | { |
13053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13054 | (arg1)->ClearData(); | |
13055 | ||
13056 | wxPyEndAllowThreads(__tstate); | |
13057 | if (PyErr_Occurred()) SWIG_fail; | |
13058 | } | |
13059 | Py_INCREF(Py_None); resultobj = Py_None; | |
13060 | return resultobj; | |
13061 | fail: | |
13062 | return NULL; | |
13063 | } | |
13064 | ||
13065 | ||
13066 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13067 | PyObject *resultobj; | |
13068 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13069 | wxString *arg2 = 0 ; | |
13070 | wxFileType *result; | |
423f194a | 13071 | bool temp2 = False ; |
d14a1e28 RD |
13072 | PyObject * obj0 = 0 ; |
13073 | PyObject * obj1 = 0 ; | |
13074 | char *kwnames[] = { | |
13075 | (char *) "self",(char *) "ext", NULL | |
13076 | }; | |
13077 | ||
13078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13081 | { |
13082 | arg2 = wxString_in_helper(obj1); | |
13083 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13084 | temp2 = True; |
d14a1e28 RD |
13085 | } |
13086 | { | |
13087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13088 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
13089 | ||
13090 | wxPyEndAllowThreads(__tstate); | |
13091 | if (PyErr_Occurred()) SWIG_fail; | |
13092 | } | |
2f4c0a16 | 13093 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13094 | { |
13095 | if (temp2) | |
13096 | delete arg2; | |
13097 | } | |
13098 | return resultobj; | |
13099 | fail: | |
13100 | { | |
13101 | if (temp2) | |
13102 | delete arg2; | |
13103 | } | |
13104 | return NULL; | |
13105 | } | |
13106 | ||
13107 | ||
13108 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13109 | PyObject *resultobj; | |
13110 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13111 | wxString *arg2 = 0 ; | |
13112 | wxFileType *result; | |
423f194a | 13113 | bool temp2 = False ; |
d14a1e28 RD |
13114 | PyObject * obj0 = 0 ; |
13115 | PyObject * obj1 = 0 ; | |
13116 | char *kwnames[] = { | |
13117 | (char *) "self",(char *) "mimeType", NULL | |
13118 | }; | |
13119 | ||
13120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13123 | { |
13124 | arg2 = wxString_in_helper(obj1); | |
13125 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13126 | temp2 = True; |
d14a1e28 RD |
13127 | } |
13128 | { | |
13129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13130 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
13131 | ||
13132 | wxPyEndAllowThreads(__tstate); | |
13133 | if (PyErr_Occurred()) SWIG_fail; | |
13134 | } | |
2f4c0a16 | 13135 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13136 | { |
13137 | if (temp2) | |
13138 | delete arg2; | |
13139 | } | |
13140 | return resultobj; | |
13141 | fail: | |
13142 | { | |
13143 | if (temp2) | |
13144 | delete arg2; | |
13145 | } | |
13146 | return NULL; | |
13147 | } | |
13148 | ||
13149 | ||
13150 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13151 | PyObject *resultobj; | |
13152 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13153 | wxString *arg2 = 0 ; | |
423f194a | 13154 | bool arg3 = (bool) False ; |
d14a1e28 | 13155 | bool result; |
423f194a | 13156 | bool temp2 = False ; |
d14a1e28 RD |
13157 | PyObject * obj0 = 0 ; |
13158 | PyObject * obj1 = 0 ; | |
13159 | PyObject * obj2 = 0 ; | |
13160 | char *kwnames[] = { | |
13161 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
13162 | }; | |
13163 | ||
13164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
13165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13167 | { |
13168 | arg2 = wxString_in_helper(obj1); | |
13169 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13170 | temp2 = True; |
d14a1e28 RD |
13171 | } |
13172 | if (obj2) { | |
2f4c0a16 RD |
13173 | arg3 = (bool) SWIG_AsBool(obj2); |
13174 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13175 | } |
13176 | { | |
13177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13178 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
13179 | ||
13180 | wxPyEndAllowThreads(__tstate); | |
13181 | if (PyErr_Occurred()) SWIG_fail; | |
13182 | } | |
4e760a36 | 13183 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13184 | { |
13185 | if (temp2) | |
13186 | delete arg2; | |
13187 | } | |
13188 | return resultobj; | |
13189 | fail: | |
13190 | { | |
13191 | if (temp2) | |
13192 | delete arg2; | |
13193 | } | |
13194 | return NULL; | |
13195 | } | |
13196 | ||
13197 | ||
13198 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13199 | PyObject *resultobj; | |
13200 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13201 | wxString *arg2 = 0 ; | |
13202 | bool result; | |
423f194a | 13203 | bool temp2 = False ; |
d14a1e28 RD |
13204 | PyObject * obj0 = 0 ; |
13205 | PyObject * obj1 = 0 ; | |
13206 | char *kwnames[] = { | |
13207 | (char *) "self",(char *) "filename", NULL | |
13208 | }; | |
13209 | ||
13210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13213 | { |
13214 | arg2 = wxString_in_helper(obj1); | |
13215 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13216 | temp2 = True; |
d14a1e28 RD |
13217 | } |
13218 | { | |
13219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13220 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
13221 | ||
13222 | wxPyEndAllowThreads(__tstate); | |
13223 | if (PyErr_Occurred()) SWIG_fail; | |
13224 | } | |
4e760a36 | 13225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13226 | { |
13227 | if (temp2) | |
13228 | delete arg2; | |
13229 | } | |
13230 | return resultobj; | |
13231 | fail: | |
13232 | { | |
13233 | if (temp2) | |
13234 | delete arg2; | |
13235 | } | |
13236 | return NULL; | |
13237 | } | |
13238 | ||
13239 | ||
13240 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13241 | PyObject *resultobj; | |
13242 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13243 | PyObject *result; | |
13244 | PyObject * obj0 = 0 ; | |
13245 | char *kwnames[] = { | |
13246 | (char *) "self", NULL | |
13247 | }; | |
13248 | ||
13249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13252 | { |
13253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13254 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
13255 | ||
13256 | wxPyEndAllowThreads(__tstate); | |
13257 | if (PyErr_Occurred()) SWIG_fail; | |
13258 | } | |
13259 | resultobj = result; | |
13260 | return resultobj; | |
13261 | fail: | |
13262 | return NULL; | |
13263 | } | |
13264 | ||
13265 | ||
13266 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13267 | PyObject *resultobj; | |
13268 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13269 | wxFileTypeInfo *arg2 = 0 ; | |
13270 | PyObject * obj0 = 0 ; | |
13271 | PyObject * obj1 = 0 ; | |
13272 | char *kwnames[] = { | |
13273 | (char *) "self",(char *) "ft", NULL | |
13274 | }; | |
13275 | ||
13276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13279 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13280 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13281 | SWIG_fail; | |
d14a1e28 | 13282 | if (arg2 == NULL) { |
2f4c0a16 RD |
13283 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13284 | SWIG_fail; | |
d14a1e28 RD |
13285 | } |
13286 | { | |
13287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13288 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
13289 | ||
13290 | wxPyEndAllowThreads(__tstate); | |
13291 | if (PyErr_Occurred()) SWIG_fail; | |
13292 | } | |
13293 | Py_INCREF(Py_None); resultobj = Py_None; | |
13294 | return resultobj; | |
13295 | fail: | |
13296 | return NULL; | |
13297 | } | |
13298 | ||
13299 | ||
13300 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13301 | PyObject *resultobj; | |
13302 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13303 | wxFileTypeInfo *arg2 = 0 ; | |
13304 | wxFileType *result; | |
13305 | PyObject * obj0 = 0 ; | |
13306 | PyObject * obj1 = 0 ; | |
13307 | char *kwnames[] = { | |
13308 | (char *) "self",(char *) "ftInfo", NULL | |
13309 | }; | |
13310 | ||
13311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13314 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13315 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13316 | SWIG_fail; | |
d14a1e28 | 13317 | if (arg2 == NULL) { |
2f4c0a16 RD |
13318 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13319 | SWIG_fail; | |
d14a1e28 RD |
13320 | } |
13321 | { | |
13322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13323 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
13324 | ||
13325 | wxPyEndAllowThreads(__tstate); | |
13326 | if (PyErr_Occurred()) SWIG_fail; | |
13327 | } | |
2f4c0a16 | 13328 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13329 | return resultobj; |
13330 | fail: | |
13331 | return NULL; | |
13332 | } | |
13333 | ||
13334 | ||
13335 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13336 | PyObject *resultobj; | |
13337 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13338 | wxFileType *arg2 = (wxFileType *) 0 ; | |
13339 | bool result; | |
13340 | PyObject * obj0 = 0 ; | |
13341 | PyObject * obj1 = 0 ; | |
13342 | char *kwnames[] = { | |
13343 | (char *) "self",(char *) "ft", NULL | |
13344 | }; | |
13345 | ||
13346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13349 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType, | |
13350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13351 | { |
13352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13353 | result = (bool)(arg1)->Unassociate(arg2); | |
13354 | ||
13355 | wxPyEndAllowThreads(__tstate); | |
13356 | if (PyErr_Occurred()) SWIG_fail; | |
13357 | } | |
4e760a36 | 13358 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13359 | return resultobj; |
13360 | fail: | |
13361 | return NULL; | |
13362 | } | |
13363 | ||
13364 | ||
13365 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13366 | PyObject *resultobj; | |
13367 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13368 | PyObject * obj0 = 0 ; | |
13369 | char *kwnames[] = { | |
13370 | (char *) "self", NULL | |
13371 | }; | |
13372 | ||
13373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13376 | { |
13377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13378 | delete arg1; | |
13379 | ||
13380 | wxPyEndAllowThreads(__tstate); | |
13381 | if (PyErr_Occurred()) SWIG_fail; | |
13382 | } | |
13383 | Py_INCREF(Py_None); resultobj = Py_None; | |
13384 | return resultobj; | |
13385 | fail: | |
13386 | return NULL; | |
13387 | } | |
13388 | ||
13389 | ||
13390 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
13391 | PyObject *obj; | |
13392 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13393 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
13394 | Py_INCREF(obj); | |
13395 | return Py_BuildValue((char *)""); | |
13396 | } | |
2f4c0a16 | 13397 | static int _wrap_ART_TOOLBAR_set(PyObject *_val) { |
d14a1e28 RD |
13398 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); |
13399 | return 1; | |
13400 | } | |
13401 | ||
13402 | ||
13403 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
13404 | PyObject *pyobj; | |
13405 | ||
13406 | { | |
13407 | #if wxUSE_UNICODE | |
13408 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13409 | #else | |
13410 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13411 | #endif | |
13412 | } | |
13413 | return pyobj; | |
13414 | } | |
13415 | ||
13416 | ||
2f4c0a16 | 13417 | static int _wrap_ART_MENU_set(PyObject *_val) { |
d14a1e28 RD |
13418 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); |
13419 | return 1; | |
13420 | } | |
13421 | ||
13422 | ||
13423 | static PyObject *_wrap_ART_MENU_get() { | |
13424 | PyObject *pyobj; | |
13425 | ||
13426 | { | |
13427 | #if wxUSE_UNICODE | |
13428 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13429 | #else | |
13430 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13431 | #endif | |
13432 | } | |
13433 | return pyobj; | |
13434 | } | |
13435 | ||
13436 | ||
2f4c0a16 | 13437 | static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { |
d14a1e28 RD |
13438 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); |
13439 | return 1; | |
13440 | } | |
13441 | ||
13442 | ||
13443 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
13444 | PyObject *pyobj; | |
13445 | ||
13446 | { | |
13447 | #if wxUSE_UNICODE | |
13448 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13449 | #else | |
13450 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13451 | #endif | |
13452 | } | |
13453 | return pyobj; | |
13454 | } | |
13455 | ||
13456 | ||
2f4c0a16 | 13457 | static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { |
d14a1e28 RD |
13458 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); |
13459 | return 1; | |
13460 | } | |
13461 | ||
13462 | ||
13463 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
13464 | PyObject *pyobj; | |
13465 | ||
13466 | { | |
13467 | #if wxUSE_UNICODE | |
13468 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13469 | #else | |
13470 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13471 | #endif | |
13472 | } | |
13473 | return pyobj; | |
13474 | } | |
13475 | ||
13476 | ||
2f4c0a16 | 13477 | static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { |
d14a1e28 RD |
13478 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); |
13479 | return 1; | |
13480 | } | |
13481 | ||
13482 | ||
13483 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
13484 | PyObject *pyobj; | |
13485 | ||
13486 | { | |
13487 | #if wxUSE_UNICODE | |
13488 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13489 | #else | |
13490 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13491 | #endif | |
13492 | } | |
13493 | return pyobj; | |
13494 | } | |
13495 | ||
13496 | ||
2f4c0a16 | 13497 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { |
d14a1e28 RD |
13498 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); |
13499 | return 1; | |
13500 | } | |
13501 | ||
13502 | ||
13503 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
13504 | PyObject *pyobj; | |
13505 | ||
13506 | { | |
13507 | #if wxUSE_UNICODE | |
13508 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13509 | #else | |
13510 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13511 | #endif | |
13512 | } | |
13513 | return pyobj; | |
13514 | } | |
13515 | ||
13516 | ||
2f4c0a16 | 13517 | static int _wrap_ART_OTHER_set(PyObject *_val) { |
d14a1e28 RD |
13518 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); |
13519 | return 1; | |
13520 | } | |
13521 | ||
13522 | ||
13523 | static PyObject *_wrap_ART_OTHER_get() { | |
13524 | PyObject *pyobj; | |
13525 | ||
13526 | { | |
13527 | #if wxUSE_UNICODE | |
13528 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13529 | #else | |
13530 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13531 | #endif | |
13532 | } | |
13533 | return pyobj; | |
13534 | } | |
13535 | ||
13536 | ||
2f4c0a16 | 13537 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { |
d14a1e28 RD |
13538 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); |
13539 | return 1; | |
13540 | } | |
13541 | ||
13542 | ||
13543 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
13544 | PyObject *pyobj; | |
13545 | ||
13546 | { | |
13547 | #if wxUSE_UNICODE | |
13548 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13549 | #else | |
13550 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13551 | #endif | |
13552 | } | |
13553 | return pyobj; | |
13554 | } | |
13555 | ||
13556 | ||
2f4c0a16 | 13557 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { |
d14a1e28 RD |
13558 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); |
13559 | return 1; | |
13560 | } | |
13561 | ||
13562 | ||
13563 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
13564 | PyObject *pyobj; | |
13565 | ||
13566 | { | |
13567 | #if wxUSE_UNICODE | |
13568 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13569 | #else | |
13570 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13571 | #endif | |
13572 | } | |
13573 | return pyobj; | |
13574 | } | |
13575 | ||
13576 | ||
2f4c0a16 | 13577 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { |
d14a1e28 RD |
13578 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); |
13579 | return 1; | |
13580 | } | |
13581 | ||
13582 | ||
13583 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
13584 | PyObject *pyobj; | |
13585 | ||
13586 | { | |
13587 | #if wxUSE_UNICODE | |
13588 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13589 | #else | |
13590 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13591 | #endif | |
13592 | } | |
13593 | return pyobj; | |
13594 | } | |
13595 | ||
13596 | ||
2f4c0a16 | 13597 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { |
d14a1e28 RD |
13598 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); |
13599 | return 1; | |
13600 | } | |
13601 | ||
13602 | ||
13603 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
13604 | PyObject *pyobj; | |
13605 | ||
13606 | { | |
13607 | #if wxUSE_UNICODE | |
13608 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13609 | #else | |
13610 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13611 | #endif | |
13612 | } | |
13613 | return pyobj; | |
13614 | } | |
13615 | ||
13616 | ||
2f4c0a16 | 13617 | static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { |
d14a1e28 RD |
13618 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); |
13619 | return 1; | |
13620 | } | |
13621 | ||
13622 | ||
13623 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
13624 | PyObject *pyobj; | |
13625 | ||
13626 | { | |
13627 | #if wxUSE_UNICODE | |
13628 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13629 | #else | |
13630 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13631 | #endif | |
13632 | } | |
13633 | return pyobj; | |
13634 | } | |
13635 | ||
13636 | ||
2f4c0a16 | 13637 | static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { |
d14a1e28 RD |
13638 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); |
13639 | return 1; | |
13640 | } | |
13641 | ||
13642 | ||
13643 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
13644 | PyObject *pyobj; | |
13645 | ||
13646 | { | |
13647 | #if wxUSE_UNICODE | |
13648 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13649 | #else | |
13650 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13651 | #endif | |
13652 | } | |
13653 | return pyobj; | |
13654 | } | |
13655 | ||
13656 | ||
2f4c0a16 | 13657 | static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { |
d14a1e28 RD |
13658 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); |
13659 | return 1; | |
13660 | } | |
13661 | ||
13662 | ||
13663 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
13664 | PyObject *pyobj; | |
13665 | ||
13666 | { | |
13667 | #if wxUSE_UNICODE | |
13668 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13669 | #else | |
13670 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13671 | #endif | |
13672 | } | |
13673 | return pyobj; | |
13674 | } | |
13675 | ||
13676 | ||
2f4c0a16 | 13677 | static int _wrap_ART_GO_BACK_set(PyObject *_val) { |
d14a1e28 RD |
13678 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); |
13679 | return 1; | |
13680 | } | |
13681 | ||
13682 | ||
13683 | static PyObject *_wrap_ART_GO_BACK_get() { | |
13684 | PyObject *pyobj; | |
13685 | ||
13686 | { | |
13687 | #if wxUSE_UNICODE | |
13688 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13689 | #else | |
13690 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13691 | #endif | |
13692 | } | |
13693 | return pyobj; | |
13694 | } | |
13695 | ||
13696 | ||
2f4c0a16 | 13697 | static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { |
d14a1e28 RD |
13698 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); |
13699 | return 1; | |
13700 | } | |
13701 | ||
13702 | ||
13703 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
13704 | PyObject *pyobj; | |
13705 | ||
13706 | { | |
13707 | #if wxUSE_UNICODE | |
13708 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13709 | #else | |
13710 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13711 | #endif | |
13712 | } | |
13713 | return pyobj; | |
13714 | } | |
13715 | ||
13716 | ||
2f4c0a16 | 13717 | static int _wrap_ART_GO_UP_set(PyObject *_val) { |
d14a1e28 RD |
13718 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); |
13719 | return 1; | |
13720 | } | |
13721 | ||
13722 | ||
13723 | static PyObject *_wrap_ART_GO_UP_get() { | |
13724 | PyObject *pyobj; | |
13725 | ||
13726 | { | |
13727 | #if wxUSE_UNICODE | |
13728 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13729 | #else | |
13730 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13731 | #endif | |
13732 | } | |
13733 | return pyobj; | |
13734 | } | |
13735 | ||
13736 | ||
2f4c0a16 | 13737 | static int _wrap_ART_GO_DOWN_set(PyObject *_val) { |
d14a1e28 RD |
13738 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); |
13739 | return 1; | |
13740 | } | |
13741 | ||
13742 | ||
13743 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
13744 | PyObject *pyobj; | |
13745 | ||
13746 | { | |
13747 | #if wxUSE_UNICODE | |
13748 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13749 | #else | |
13750 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13751 | #endif | |
13752 | } | |
13753 | return pyobj; | |
13754 | } | |
13755 | ||
13756 | ||
2f4c0a16 | 13757 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { |
d14a1e28 RD |
13758 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); |
13759 | return 1; | |
13760 | } | |
13761 | ||
13762 | ||
13763 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
13764 | PyObject *pyobj; | |
13765 | ||
13766 | { | |
13767 | #if wxUSE_UNICODE | |
13768 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13769 | #else | |
13770 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13771 | #endif | |
13772 | } | |
13773 | return pyobj; | |
13774 | } | |
13775 | ||
13776 | ||
2f4c0a16 | 13777 | static int _wrap_ART_GO_HOME_set(PyObject *_val) { |
d14a1e28 RD |
13778 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); |
13779 | return 1; | |
13780 | } | |
13781 | ||
13782 | ||
13783 | static PyObject *_wrap_ART_GO_HOME_get() { | |
13784 | PyObject *pyobj; | |
13785 | ||
13786 | { | |
13787 | #if wxUSE_UNICODE | |
13788 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13789 | #else | |
13790 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13791 | #endif | |
13792 | } | |
13793 | return pyobj; | |
13794 | } | |
13795 | ||
13796 | ||
2f4c0a16 | 13797 | static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { |
d14a1e28 RD |
13798 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); |
13799 | return 1; | |
13800 | } | |
13801 | ||
13802 | ||
13803 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
13804 | PyObject *pyobj; | |
13805 | ||
13806 | { | |
13807 | #if wxUSE_UNICODE | |
13808 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13809 | #else | |
13810 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13811 | #endif | |
13812 | } | |
13813 | return pyobj; | |
13814 | } | |
13815 | ||
13816 | ||
2f4c0a16 | 13817 | static int _wrap_ART_PRINT_set(PyObject *_val) { |
d14a1e28 RD |
13818 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); |
13819 | return 1; | |
13820 | } | |
13821 | ||
13822 | ||
13823 | static PyObject *_wrap_ART_PRINT_get() { | |
13824 | PyObject *pyobj; | |
13825 | ||
13826 | { | |
13827 | #if wxUSE_UNICODE | |
13828 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13829 | #else | |
13830 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13831 | #endif | |
13832 | } | |
13833 | return pyobj; | |
13834 | } | |
13835 | ||
13836 | ||
2f4c0a16 | 13837 | static int _wrap_ART_HELP_set(PyObject *_val) { |
d14a1e28 RD |
13838 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); |
13839 | return 1; | |
13840 | } | |
13841 | ||
13842 | ||
13843 | static PyObject *_wrap_ART_HELP_get() { | |
13844 | PyObject *pyobj; | |
13845 | ||
13846 | { | |
13847 | #if wxUSE_UNICODE | |
13848 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
13849 | #else | |
13850 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
13851 | #endif | |
13852 | } | |
13853 | return pyobj; | |
13854 | } | |
13855 | ||
13856 | ||
2f4c0a16 | 13857 | static int _wrap_ART_TIP_set(PyObject *_val) { |
d14a1e28 RD |
13858 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); |
13859 | return 1; | |
13860 | } | |
13861 | ||
13862 | ||
13863 | static PyObject *_wrap_ART_TIP_get() { | |
13864 | PyObject *pyobj; | |
13865 | ||
13866 | { | |
13867 | #if wxUSE_UNICODE | |
13868 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
13869 | #else | |
13870 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
13871 | #endif | |
13872 | } | |
13873 | return pyobj; | |
13874 | } | |
13875 | ||
13876 | ||
2f4c0a16 | 13877 | static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { |
d14a1e28 RD |
13878 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); |
13879 | return 1; | |
13880 | } | |
13881 | ||
13882 | ||
13883 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
13884 | PyObject *pyobj; | |
13885 | ||
13886 | { | |
13887 | #if wxUSE_UNICODE | |
13888 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
13889 | #else | |
13890 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
13891 | #endif | |
13892 | } | |
13893 | return pyobj; | |
13894 | } | |
13895 | ||
13896 | ||
2f4c0a16 | 13897 | static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { |
d14a1e28 RD |
13898 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); |
13899 | return 1; | |
13900 | } | |
13901 | ||
13902 | ||
13903 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
13904 | PyObject *pyobj; | |
13905 | ||
13906 | { | |
13907 | #if wxUSE_UNICODE | |
13908 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
13909 | #else | |
13910 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
13911 | #endif | |
13912 | } | |
13913 | return pyobj; | |
13914 | } | |
13915 | ||
13916 | ||
2f4c0a16 | 13917 | static int _wrap_ART_NEW_DIR_set(PyObject *_val) { |
d14a1e28 RD |
13918 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); |
13919 | return 1; | |
13920 | } | |
13921 | ||
13922 | ||
13923 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
13924 | PyObject *pyobj; | |
13925 | ||
13926 | { | |
13927 | #if wxUSE_UNICODE | |
13928 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
13929 | #else | |
13930 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
13931 | #endif | |
13932 | } | |
13933 | return pyobj; | |
13934 | } | |
13935 | ||
13936 | ||
2f4c0a16 | 13937 | static int _wrap_ART_FOLDER_set(PyObject *_val) { |
d14a1e28 RD |
13938 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); |
13939 | return 1; | |
13940 | } | |
13941 | ||
13942 | ||
13943 | static PyObject *_wrap_ART_FOLDER_get() { | |
13944 | PyObject *pyobj; | |
13945 | ||
13946 | { | |
13947 | #if wxUSE_UNICODE | |
13948 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
13949 | #else | |
13950 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
13951 | #endif | |
13952 | } | |
13953 | return pyobj; | |
13954 | } | |
13955 | ||
13956 | ||
2f4c0a16 | 13957 | static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { |
d14a1e28 RD |
13958 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); |
13959 | return 1; | |
13960 | } | |
13961 | ||
13962 | ||
13963 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
13964 | PyObject *pyobj; | |
13965 | ||
13966 | { | |
13967 | #if wxUSE_UNICODE | |
13968 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
13969 | #else | |
13970 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
13971 | #endif | |
13972 | } | |
13973 | return pyobj; | |
13974 | } | |
13975 | ||
13976 | ||
2f4c0a16 | 13977 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { |
d14a1e28 RD |
13978 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); |
13979 | return 1; | |
13980 | } | |
13981 | ||
13982 | ||
13983 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
13984 | PyObject *pyobj; | |
13985 | ||
13986 | { | |
13987 | #if wxUSE_UNICODE | |
13988 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
13989 | #else | |
13990 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
13991 | #endif | |
13992 | } | |
13993 | return pyobj; | |
13994 | } | |
13995 | ||
13996 | ||
2f4c0a16 | 13997 | static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { |
d14a1e28 RD |
13998 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); |
13999 | return 1; | |
14000 | } | |
14001 | ||
14002 | ||
14003 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
14004 | PyObject *pyobj; | |
14005 | ||
14006 | { | |
14007 | #if wxUSE_UNICODE | |
14008 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14009 | #else | |
14010 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14011 | #endif | |
14012 | } | |
14013 | return pyobj; | |
14014 | } | |
14015 | ||
14016 | ||
2f4c0a16 | 14017 | static int _wrap_ART_TICK_MARK_set(PyObject *_val) { |
d14a1e28 RD |
14018 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); |
14019 | return 1; | |
14020 | } | |
14021 | ||
14022 | ||
14023 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
14024 | PyObject *pyobj; | |
14025 | ||
14026 | { | |
14027 | #if wxUSE_UNICODE | |
14028 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14029 | #else | |
14030 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14031 | #endif | |
14032 | } | |
14033 | return pyobj; | |
14034 | } | |
14035 | ||
14036 | ||
2f4c0a16 | 14037 | static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { |
d14a1e28 RD |
14038 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); |
14039 | return 1; | |
14040 | } | |
14041 | ||
14042 | ||
14043 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
14044 | PyObject *pyobj; | |
14045 | ||
14046 | { | |
14047 | #if wxUSE_UNICODE | |
14048 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14049 | #else | |
14050 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14051 | #endif | |
14052 | } | |
14053 | return pyobj; | |
14054 | } | |
14055 | ||
14056 | ||
2f4c0a16 | 14057 | static int _wrap_ART_ERROR_set(PyObject *_val) { |
d14a1e28 RD |
14058 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); |
14059 | return 1; | |
14060 | } | |
14061 | ||
14062 | ||
14063 | static PyObject *_wrap_ART_ERROR_get() { | |
14064 | PyObject *pyobj; | |
14065 | ||
14066 | { | |
14067 | #if wxUSE_UNICODE | |
14068 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14069 | #else | |
14070 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14071 | #endif | |
14072 | } | |
14073 | return pyobj; | |
14074 | } | |
14075 | ||
14076 | ||
2f4c0a16 | 14077 | static int _wrap_ART_QUESTION_set(PyObject *_val) { |
d14a1e28 RD |
14078 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); |
14079 | return 1; | |
14080 | } | |
14081 | ||
14082 | ||
14083 | static PyObject *_wrap_ART_QUESTION_get() { | |
14084 | PyObject *pyobj; | |
14085 | ||
14086 | { | |
14087 | #if wxUSE_UNICODE | |
14088 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14089 | #else | |
14090 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14091 | #endif | |
14092 | } | |
14093 | return pyobj; | |
14094 | } | |
14095 | ||
14096 | ||
2f4c0a16 | 14097 | static int _wrap_ART_WARNING_set(PyObject *_val) { |
d14a1e28 RD |
14098 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); |
14099 | return 1; | |
14100 | } | |
14101 | ||
14102 | ||
14103 | static PyObject *_wrap_ART_WARNING_get() { | |
14104 | PyObject *pyobj; | |
14105 | ||
14106 | { | |
14107 | #if wxUSE_UNICODE | |
14108 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14109 | #else | |
14110 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14111 | #endif | |
14112 | } | |
14113 | return pyobj; | |
14114 | } | |
14115 | ||
14116 | ||
2f4c0a16 | 14117 | static int _wrap_ART_INFORMATION_set(PyObject *_val) { |
d14a1e28 RD |
14118 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); |
14119 | return 1; | |
14120 | } | |
14121 | ||
14122 | ||
14123 | static PyObject *_wrap_ART_INFORMATION_get() { | |
14124 | PyObject *pyobj; | |
14125 | ||
14126 | { | |
14127 | #if wxUSE_UNICODE | |
14128 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14129 | #else | |
14130 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14131 | #endif | |
14132 | } | |
14133 | return pyobj; | |
14134 | } | |
14135 | ||
14136 | ||
2f4c0a16 | 14137 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { |
d14a1e28 RD |
14138 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); |
14139 | return 1; | |
14140 | } | |
14141 | ||
14142 | ||
14143 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
14144 | PyObject *pyobj; | |
14145 | ||
14146 | { | |
14147 | #if wxUSE_UNICODE | |
14148 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14149 | #else | |
14150 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14151 | #endif | |
14152 | } | |
14153 | return pyobj; | |
14154 | } | |
14155 | ||
14156 | ||
14157 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14158 | PyObject *resultobj; | |
14159 | wxPyArtProvider *result; | |
14160 | char *kwnames[] = { | |
14161 | NULL | |
14162 | }; | |
14163 | ||
14164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
14165 | { | |
14166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14167 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
14168 | ||
14169 | wxPyEndAllowThreads(__tstate); | |
14170 | if (PyErr_Occurred()) SWIG_fail; | |
14171 | } | |
2f4c0a16 | 14172 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); |
d14a1e28 RD |
14173 | return resultobj; |
14174 | fail: | |
14175 | return NULL; | |
14176 | } | |
14177 | ||
14178 | ||
d14a1e28 RD |
14179 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
14180 | PyObject *resultobj; | |
14181 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14182 | PyObject *arg2 = (PyObject *) 0 ; | |
14183 | PyObject *arg3 = (PyObject *) 0 ; | |
14184 | PyObject * obj0 = 0 ; | |
14185 | PyObject * obj1 = 0 ; | |
14186 | PyObject * obj2 = 0 ; | |
14187 | char *kwnames[] = { | |
14188 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14189 | }; | |
14190 | ||
14191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
14192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14194 | arg2 = obj1; |
14195 | arg3 = obj2; | |
14196 | { | |
14197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14198 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14199 | ||
14200 | wxPyEndAllowThreads(__tstate); | |
14201 | if (PyErr_Occurred()) SWIG_fail; | |
14202 | } | |
14203 | Py_INCREF(Py_None); resultobj = Py_None; | |
14204 | return resultobj; | |
14205 | fail: | |
14206 | return NULL; | |
14207 | } | |
14208 | ||
14209 | ||
14210 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14211 | PyObject *resultobj; | |
14212 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14213 | PyObject * obj0 = 0 ; | |
14214 | char *kwnames[] = { | |
14215 | (char *) "provider", NULL | |
14216 | }; | |
14217 | ||
14218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14221 | { |
14222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14223 | wxPyArtProvider::PushProvider(arg1); | |
14224 | ||
14225 | wxPyEndAllowThreads(__tstate); | |
14226 | if (PyErr_Occurred()) SWIG_fail; | |
14227 | } | |
14228 | Py_INCREF(Py_None); resultobj = Py_None; | |
14229 | return resultobj; | |
14230 | fail: | |
14231 | return NULL; | |
14232 | } | |
14233 | ||
14234 | ||
14235 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14236 | PyObject *resultobj; | |
14237 | bool result; | |
14238 | char *kwnames[] = { | |
14239 | NULL | |
14240 | }; | |
14241 | ||
14242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
14243 | { | |
14244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14245 | result = (bool)wxPyArtProvider::PopProvider(); | |
14246 | ||
14247 | wxPyEndAllowThreads(__tstate); | |
14248 | if (PyErr_Occurred()) SWIG_fail; | |
14249 | } | |
4e760a36 | 14250 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14251 | return resultobj; |
14252 | fail: | |
14253 | return NULL; | |
14254 | } | |
14255 | ||
14256 | ||
14257 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14258 | PyObject *resultobj; | |
14259 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14260 | bool result; | |
14261 | PyObject * obj0 = 0 ; | |
14262 | char *kwnames[] = { | |
14263 | (char *) "provider", NULL | |
14264 | }; | |
14265 | ||
14266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14269 | { |
14270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14271 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
14272 | ||
14273 | wxPyEndAllowThreads(__tstate); | |
14274 | if (PyErr_Occurred()) SWIG_fail; | |
14275 | } | |
4e760a36 | 14276 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14277 | return resultobj; |
14278 | fail: | |
14279 | return NULL; | |
14280 | } | |
14281 | ||
14282 | ||
14283 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14284 | PyObject *resultobj; | |
14285 | wxString *arg1 = 0 ; | |
14286 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14287 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14288 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14289 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14290 | wxBitmap result; | |
423f194a RD |
14291 | bool temp1 = False ; |
14292 | bool temp2 = False ; | |
d14a1e28 RD |
14293 | wxSize temp3 ; |
14294 | PyObject * obj0 = 0 ; | |
14295 | PyObject * obj1 = 0 ; | |
14296 | PyObject * obj2 = 0 ; | |
14297 | char *kwnames[] = { | |
14298 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14299 | }; | |
14300 | ||
14301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14302 | { | |
14303 | arg1 = wxString_in_helper(obj0); | |
14304 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 14305 | temp1 = True; |
d14a1e28 RD |
14306 | } |
14307 | if (obj1) { | |
14308 | { | |
14309 | arg2 = wxString_in_helper(obj1); | |
14310 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14311 | temp2 = True; |
d14a1e28 RD |
14312 | } |
14313 | } | |
14314 | if (obj2) { | |
14315 | { | |
14316 | arg3 = &temp3; | |
14317 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14318 | } | |
14319 | } | |
14320 | { | |
14321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14322 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14323 | ||
14324 | wxPyEndAllowThreads(__tstate); | |
14325 | if (PyErr_Occurred()) SWIG_fail; | |
14326 | } | |
14327 | { | |
14328 | wxBitmap * resultptr; | |
14329 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 14330 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
14331 | } |
14332 | { | |
14333 | if (temp1) | |
14334 | delete arg1; | |
14335 | } | |
14336 | { | |
14337 | if (temp2) | |
14338 | delete arg2; | |
14339 | } | |
14340 | return resultobj; | |
14341 | fail: | |
14342 | { | |
14343 | if (temp1) | |
14344 | delete arg1; | |
14345 | } | |
14346 | { | |
14347 | if (temp2) | |
14348 | delete arg2; | |
14349 | } | |
14350 | return NULL; | |
14351 | } | |
14352 | ||
14353 | ||
14354 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14355 | PyObject *resultobj; | |
14356 | wxString *arg1 = 0 ; | |
14357 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14358 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14359 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14360 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14361 | wxIcon result; | |
423f194a RD |
14362 | bool temp1 = False ; |
14363 | bool temp2 = False ; | |
d14a1e28 RD |
14364 | wxSize temp3 ; |
14365 | PyObject * obj0 = 0 ; | |
14366 | PyObject * obj1 = 0 ; | |
14367 | PyObject * obj2 = 0 ; | |
14368 | char *kwnames[] = { | |
14369 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14370 | }; | |
14371 | ||
14372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14373 | { | |
14374 | arg1 = wxString_in_helper(obj0); | |
14375 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 14376 | temp1 = True; |
d14a1e28 RD |
14377 | } |
14378 | if (obj1) { | |
14379 | { | |
14380 | arg2 = wxString_in_helper(obj1); | |
14381 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14382 | temp2 = True; |
d14a1e28 RD |
14383 | } |
14384 | } | |
14385 | if (obj2) { | |
14386 | { | |
14387 | arg3 = &temp3; | |
14388 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14389 | } | |
14390 | } | |
14391 | { | |
14392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14393 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14394 | ||
14395 | wxPyEndAllowThreads(__tstate); | |
14396 | if (PyErr_Occurred()) SWIG_fail; | |
14397 | } | |
14398 | { | |
14399 | wxIcon * resultptr; | |
14400 | resultptr = new wxIcon((wxIcon &) result); | |
2f4c0a16 | 14401 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
14402 | } |
14403 | { | |
14404 | if (temp1) | |
14405 | delete arg1; | |
14406 | } | |
14407 | { | |
14408 | if (temp2) | |
14409 | delete arg2; | |
14410 | } | |
14411 | return resultobj; | |
14412 | fail: | |
14413 | { | |
14414 | if (temp1) | |
14415 | delete arg1; | |
14416 | } | |
14417 | { | |
14418 | if (temp2) | |
14419 | delete arg2; | |
14420 | } | |
14421 | return NULL; | |
14422 | } | |
14423 | ||
14424 | ||
41f1cec7 RD |
14425 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
14426 | PyObject *resultobj; | |
14427 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14428 | PyObject * obj0 = 0 ; | |
14429 | char *kwnames[] = { | |
14430 | (char *) "self", NULL | |
14431 | }; | |
14432 | ||
14433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
14436 | { |
14437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14438 | wxPyArtProvider_Destroy(arg1); | |
14439 | ||
14440 | wxPyEndAllowThreads(__tstate); | |
14441 | if (PyErr_Occurred()) SWIG_fail; | |
14442 | } | |
14443 | Py_INCREF(Py_None); resultobj = Py_None; | |
14444 | return resultobj; | |
14445 | fail: | |
14446 | return NULL; | |
14447 | } | |
14448 | ||
14449 | ||
d14a1e28 RD |
14450 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { |
14451 | PyObject *obj; | |
14452 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14453 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
14454 | Py_INCREF(obj); | |
14455 | return Py_BuildValue((char *)""); | |
14456 | } | |
14457 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14458 | PyObject *resultobj; | |
14459 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14460 | PyObject * obj0 = 0 ; | |
14461 | char *kwnames[] = { | |
14462 | (char *) "self", NULL | |
14463 | }; | |
14464 | ||
14465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14468 | { |
14469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14470 | delete arg1; | |
14471 | ||
14472 | wxPyEndAllowThreads(__tstate); | |
14473 | if (PyErr_Occurred()) SWIG_fail; | |
14474 | } | |
14475 | Py_INCREF(Py_None); resultobj = Py_None; | |
14476 | return resultobj; | |
14477 | fail: | |
14478 | return NULL; | |
14479 | } | |
14480 | ||
14481 | ||
14482 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14483 | PyObject *resultobj; | |
14484 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14485 | wxConfigBase *result; | |
14486 | PyObject * obj0 = 0 ; | |
14487 | char *kwnames[] = { | |
328fcd84 | 14488 | (char *) "config", NULL |
d14a1e28 RD |
14489 | }; |
14490 | ||
14491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14494 | { |
14495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14496 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
14497 | ||
14498 | wxPyEndAllowThreads(__tstate); | |
14499 | if (PyErr_Occurred()) SWIG_fail; | |
14500 | } | |
2f4c0a16 | 14501 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14502 | return resultobj; |
14503 | fail: | |
14504 | return NULL; | |
14505 | } | |
14506 | ||
14507 | ||
14508 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14509 | PyObject *resultobj; | |
423f194a | 14510 | bool arg1 = (bool) True ; |
d14a1e28 RD |
14511 | wxConfigBase *result; |
14512 | PyObject * obj0 = 0 ; | |
14513 | char *kwnames[] = { | |
14514 | (char *) "createOnDemand", NULL | |
14515 | }; | |
14516 | ||
14517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
14518 | if (obj0) { | |
2f4c0a16 RD |
14519 | arg1 = (bool) SWIG_AsBool(obj0); |
14520 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14521 | } |
14522 | { | |
14523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14524 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
14525 | ||
14526 | wxPyEndAllowThreads(__tstate); | |
14527 | if (PyErr_Occurred()) SWIG_fail; | |
14528 | } | |
2f4c0a16 | 14529 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14530 | return resultobj; |
14531 | fail: | |
14532 | return NULL; | |
14533 | } | |
14534 | ||
14535 | ||
14536 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14537 | PyObject *resultobj; | |
14538 | wxConfigBase *result; | |
14539 | char *kwnames[] = { | |
14540 | NULL | |
14541 | }; | |
14542 | ||
14543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
14544 | { | |
14545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14546 | result = (wxConfigBase *)wxConfigBase::Create(); | |
14547 | ||
14548 | wxPyEndAllowThreads(__tstate); | |
14549 | if (PyErr_Occurred()) SWIG_fail; | |
14550 | } | |
2f4c0a16 | 14551 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14552 | return resultobj; |
14553 | fail: | |
14554 | return NULL; | |
14555 | } | |
14556 | ||
14557 | ||
14558 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14559 | PyObject *resultobj; | |
14560 | char *kwnames[] = { | |
14561 | NULL | |
14562 | }; | |
14563 | ||
14564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
14565 | { | |
14566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14567 | wxConfigBase::DontCreateOnDemand(); | |
14568 | ||
14569 | wxPyEndAllowThreads(__tstate); | |
14570 | if (PyErr_Occurred()) SWIG_fail; | |
14571 | } | |
14572 | Py_INCREF(Py_None); resultobj = Py_None; | |
14573 | return resultobj; | |
14574 | fail: | |
14575 | return NULL; | |
14576 | } | |
14577 | ||
14578 | ||
14579 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14580 | PyObject *resultobj; | |
14581 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14582 | wxString *arg2 = 0 ; | |
423f194a | 14583 | bool temp2 = False ; |
d14a1e28 RD |
14584 | PyObject * obj0 = 0 ; |
14585 | PyObject * obj1 = 0 ; | |
14586 | char *kwnames[] = { | |
328fcd84 | 14587 | (char *) "self",(char *) "path", NULL |
d14a1e28 RD |
14588 | }; |
14589 | ||
14590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14593 | { |
14594 | arg2 = wxString_in_helper(obj1); | |
14595 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14596 | temp2 = True; |
d14a1e28 RD |
14597 | } |
14598 | { | |
14599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14600 | (arg1)->SetPath((wxString const &)*arg2); | |
14601 | ||
14602 | wxPyEndAllowThreads(__tstate); | |
14603 | if (PyErr_Occurred()) SWIG_fail; | |
14604 | } | |
14605 | Py_INCREF(Py_None); resultobj = Py_None; | |
14606 | { | |
14607 | if (temp2) | |
14608 | delete arg2; | |
14609 | } | |
14610 | return resultobj; | |
14611 | fail: | |
14612 | { | |
14613 | if (temp2) | |
14614 | delete arg2; | |
14615 | } | |
14616 | return NULL; | |
14617 | } | |
14618 | ||
14619 | ||
14620 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14621 | PyObject *resultobj; | |
14622 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14623 | wxString *result; | |
14624 | PyObject * obj0 = 0 ; | |
14625 | char *kwnames[] = { | |
14626 | (char *) "self", NULL | |
14627 | }; | |
14628 | ||
14629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14632 | { |
14633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14634 | { | |
14635 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
14636 | result = (wxString *) &_result_ref; | |
14637 | } | |
14638 | ||
14639 | wxPyEndAllowThreads(__tstate); | |
14640 | if (PyErr_Occurred()) SWIG_fail; | |
14641 | } | |
f0983263 RD |
14642 | { |
14643 | #if wxUSE_UNICODE | |
14644 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14645 | #else | |
14646 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14647 | #endif | |
14648 | } | |
d14a1e28 RD |
14649 | return resultobj; |
14650 | fail: | |
14651 | return NULL; | |
14652 | } | |
14653 | ||
14654 | ||
14655 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14656 | PyObject *resultobj; | |
14657 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14658 | PyObject *result; | |
14659 | PyObject * obj0 = 0 ; | |
14660 | char *kwnames[] = { | |
14661 | (char *) "self", NULL | |
14662 | }; | |
14663 | ||
14664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14667 | { |
14668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14669 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
14670 | ||
14671 | wxPyEndAllowThreads(__tstate); | |
14672 | if (PyErr_Occurred()) SWIG_fail; | |
14673 | } | |
14674 | resultobj = result; | |
14675 | return resultobj; | |
14676 | fail: | |
14677 | return NULL; | |
14678 | } | |
14679 | ||
14680 | ||
14681 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14682 | PyObject *resultobj; | |
14683 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14684 | long arg2 ; | |
14685 | PyObject *result; | |
14686 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14687 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14688 | char *kwnames[] = { |
14689 | (char *) "self",(char *) "index", NULL | |
14690 | }; | |
14691 | ||
8edf1c75 | 14692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14695 | arg2 = (long) SWIG_AsLong(obj1); | |
14696 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14697 | { |
14698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14699 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
14700 | ||
14701 | wxPyEndAllowThreads(__tstate); | |
14702 | if (PyErr_Occurred()) SWIG_fail; | |
14703 | } | |
14704 | resultobj = result; | |
14705 | return resultobj; | |
14706 | fail: | |
14707 | return NULL; | |
14708 | } | |
14709 | ||
14710 | ||
14711 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14712 | PyObject *resultobj; | |
14713 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14714 | PyObject *result; | |
14715 | PyObject * obj0 = 0 ; | |
14716 | char *kwnames[] = { | |
14717 | (char *) "self", NULL | |
14718 | }; | |
14719 | ||
14720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14723 | { |
14724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14725 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
14726 | ||
14727 | wxPyEndAllowThreads(__tstate); | |
14728 | if (PyErr_Occurred()) SWIG_fail; | |
14729 | } | |
14730 | resultobj = result; | |
14731 | return resultobj; | |
14732 | fail: | |
14733 | return NULL; | |
14734 | } | |
14735 | ||
14736 | ||
14737 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14738 | PyObject *resultobj; | |
14739 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14740 | long arg2 ; | |
14741 | PyObject *result; | |
14742 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14743 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14744 | char *kwnames[] = { |
14745 | (char *) "self",(char *) "index", NULL | |
14746 | }; | |
14747 | ||
8edf1c75 | 14748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14751 | arg2 = (long) SWIG_AsLong(obj1); | |
14752 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14753 | { |
14754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14755 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
14756 | ||
14757 | wxPyEndAllowThreads(__tstate); | |
14758 | if (PyErr_Occurred()) SWIG_fail; | |
14759 | } | |
14760 | resultobj = result; | |
14761 | return resultobj; | |
14762 | fail: | |
14763 | return NULL; | |
14764 | } | |
14765 | ||
14766 | ||
14767 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14768 | PyObject *resultobj; | |
14769 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 14770 | bool arg2 = (bool) False ; |
d14a1e28 RD |
14771 | size_t result; |
14772 | PyObject * obj0 = 0 ; | |
14773 | PyObject * obj1 = 0 ; | |
14774 | char *kwnames[] = { | |
328fcd84 | 14775 | (char *) "self",(char *) "recursive", NULL |
d14a1e28 RD |
14776 | }; |
14777 | ||
14778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 14781 | if (obj1) { |
2f4c0a16 RD |
14782 | arg2 = (bool) SWIG_AsBool(obj1); |
14783 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14784 | } |
14785 | { | |
14786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14787 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
14788 | ||
14789 | wxPyEndAllowThreads(__tstate); | |
14790 | if (PyErr_Occurred()) SWIG_fail; | |
14791 | } | |
2f4c0a16 | 14792 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
14793 | return resultobj; |
14794 | fail: | |
14795 | return NULL; | |
14796 | } | |
14797 | ||
14798 | ||
14799 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14800 | PyObject *resultobj; | |
14801 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 14802 | bool arg2 = (bool) False ; |
d14a1e28 RD |
14803 | size_t result; |
14804 | PyObject * obj0 = 0 ; | |
14805 | PyObject * obj1 = 0 ; | |
14806 | char *kwnames[] = { | |
328fcd84 | 14807 | (char *) "self",(char *) "recursive", NULL |
d14a1e28 RD |
14808 | }; |
14809 | ||
14810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 14813 | if (obj1) { |
2f4c0a16 RD |
14814 | arg2 = (bool) SWIG_AsBool(obj1); |
14815 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14816 | } |
14817 | { | |
14818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14819 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
14820 | ||
14821 | wxPyEndAllowThreads(__tstate); | |
14822 | if (PyErr_Occurred()) SWIG_fail; | |
14823 | } | |
2f4c0a16 | 14824 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
14825 | return resultobj; |
14826 | fail: | |
14827 | return NULL; | |
14828 | } | |
14829 | ||
14830 | ||
14831 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14832 | PyObject *resultobj; | |
14833 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14834 | wxString *arg2 = 0 ; | |
14835 | bool result; | |
423f194a | 14836 | bool temp2 = False ; |
d14a1e28 RD |
14837 | PyObject * obj0 = 0 ; |
14838 | PyObject * obj1 = 0 ; | |
14839 | char *kwnames[] = { | |
328fcd84 | 14840 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
14841 | }; |
14842 | ||
14843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14846 | { |
14847 | arg2 = wxString_in_helper(obj1); | |
14848 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14849 | temp2 = True; |
d14a1e28 RD |
14850 | } |
14851 | { | |
14852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14853 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
14854 | ||
14855 | wxPyEndAllowThreads(__tstate); | |
14856 | if (PyErr_Occurred()) SWIG_fail; | |
14857 | } | |
4e760a36 | 14858 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14859 | { |
14860 | if (temp2) | |
14861 | delete arg2; | |
14862 | } | |
14863 | return resultobj; | |
14864 | fail: | |
14865 | { | |
14866 | if (temp2) | |
14867 | delete arg2; | |
14868 | } | |
14869 | return NULL; | |
14870 | } | |
14871 | ||
14872 | ||
14873 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14874 | PyObject *resultobj; | |
14875 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14876 | wxString *arg2 = 0 ; | |
14877 | bool result; | |
423f194a | 14878 | bool temp2 = False ; |
d14a1e28 RD |
14879 | PyObject * obj0 = 0 ; |
14880 | PyObject * obj1 = 0 ; | |
14881 | char *kwnames[] = { | |
328fcd84 | 14882 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
14883 | }; |
14884 | ||
14885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14888 | { |
14889 | arg2 = wxString_in_helper(obj1); | |
14890 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14891 | temp2 = True; |
d14a1e28 RD |
14892 | } |
14893 | { | |
14894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14895 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
14896 | ||
14897 | wxPyEndAllowThreads(__tstate); | |
14898 | if (PyErr_Occurred()) SWIG_fail; | |
14899 | } | |
4e760a36 | 14900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14901 | { |
14902 | if (temp2) | |
14903 | delete arg2; | |
14904 | } | |
14905 | return resultobj; | |
14906 | fail: | |
14907 | { | |
14908 | if (temp2) | |
14909 | delete arg2; | |
14910 | } | |
14911 | return NULL; | |
14912 | } | |
14913 | ||
14914 | ||
14915 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14916 | PyObject *resultobj; | |
14917 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14918 | wxString *arg2 = 0 ; | |
14919 | bool result; | |
423f194a | 14920 | bool temp2 = False ; |
d14a1e28 RD |
14921 | PyObject * obj0 = 0 ; |
14922 | PyObject * obj1 = 0 ; | |
14923 | char *kwnames[] = { | |
328fcd84 | 14924 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
14925 | }; |
14926 | ||
14927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14930 | { |
14931 | arg2 = wxString_in_helper(obj1); | |
14932 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14933 | temp2 = True; |
d14a1e28 RD |
14934 | } |
14935 | { | |
14936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14937 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
14938 | ||
14939 | wxPyEndAllowThreads(__tstate); | |
14940 | if (PyErr_Occurred()) SWIG_fail; | |
14941 | } | |
4e760a36 | 14942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14943 | { |
14944 | if (temp2) | |
14945 | delete arg2; | |
14946 | } | |
14947 | return resultobj; | |
14948 | fail: | |
14949 | { | |
14950 | if (temp2) | |
14951 | delete arg2; | |
14952 | } | |
14953 | return NULL; | |
14954 | } | |
14955 | ||
14956 | ||
14957 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14958 | PyObject *resultobj; | |
14959 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14960 | wxString *arg2 = 0 ; | |
14961 | int result; | |
423f194a | 14962 | bool temp2 = False ; |
d14a1e28 RD |
14963 | PyObject * obj0 = 0 ; |
14964 | PyObject * obj1 = 0 ; | |
14965 | char *kwnames[] = { | |
14966 | (char *) "self",(char *) "name", NULL | |
14967 | }; | |
14968 | ||
14969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14972 | { |
14973 | arg2 = wxString_in_helper(obj1); | |
14974 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14975 | temp2 = True; |
d14a1e28 RD |
14976 | } |
14977 | { | |
14978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14979 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
14980 | ||
14981 | wxPyEndAllowThreads(__tstate); | |
14982 | if (PyErr_Occurred()) SWIG_fail; | |
14983 | } | |
2f4c0a16 | 14984 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14985 | { |
14986 | if (temp2) | |
14987 | delete arg2; | |
14988 | } | |
14989 | return resultobj; | |
14990 | fail: | |
14991 | { | |
14992 | if (temp2) | |
14993 | delete arg2; | |
14994 | } | |
14995 | return NULL; | |
14996 | } | |
14997 | ||
14998 | ||
14999 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15000 | PyObject *resultobj; | |
15001 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15002 | wxString *arg2 = 0 ; | |
15003 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15004 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15005 | wxString result; | |
423f194a RD |
15006 | bool temp2 = False ; |
15007 | bool temp3 = False ; | |
d14a1e28 RD |
15008 | PyObject * obj0 = 0 ; |
15009 | PyObject * obj1 = 0 ; | |
15010 | PyObject * obj2 = 0 ; | |
15011 | char *kwnames[] = { | |
15012 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15013 | }; | |
15014 | ||
15015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
15016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15018 | { |
15019 | arg2 = wxString_in_helper(obj1); | |
15020 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15021 | temp2 = True; |
d14a1e28 RD |
15022 | } |
15023 | if (obj2) { | |
15024 | { | |
15025 | arg3 = wxString_in_helper(obj2); | |
15026 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 15027 | temp3 = True; |
d14a1e28 RD |
15028 | } |
15029 | } | |
15030 | { | |
15031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15032 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
15033 | ||
15034 | wxPyEndAllowThreads(__tstate); | |
15035 | if (PyErr_Occurred()) SWIG_fail; | |
15036 | } | |
15037 | { | |
15038 | #if wxUSE_UNICODE | |
15039 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15040 | #else | |
15041 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15042 | #endif | |
15043 | } | |
15044 | { | |
15045 | if (temp2) | |
15046 | delete arg2; | |
15047 | } | |
15048 | { | |
15049 | if (temp3) | |
15050 | delete arg3; | |
15051 | } | |
15052 | return resultobj; | |
15053 | fail: | |
15054 | { | |
15055 | if (temp2) | |
15056 | delete arg2; | |
15057 | } | |
15058 | { | |
15059 | if (temp3) | |
15060 | delete arg3; | |
15061 | } | |
15062 | return NULL; | |
15063 | } | |
15064 | ||
15065 | ||
15066 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15067 | PyObject *resultobj; | |
15068 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15069 | wxString *arg2 = 0 ; | |
15070 | long arg3 = (long) 0 ; | |
15071 | long result; | |
423f194a | 15072 | bool temp2 = False ; |
d14a1e28 RD |
15073 | PyObject * obj0 = 0 ; |
15074 | PyObject * obj1 = 0 ; | |
8edf1c75 | 15075 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15076 | char *kwnames[] = { |
15077 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15078 | }; | |
15079 | ||
8edf1c75 | 15080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
15081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15083 | { |
15084 | arg2 = wxString_in_helper(obj1); | |
15085 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15086 | temp2 = True; |
d14a1e28 | 15087 | } |
8edf1c75 | 15088 | if (obj2) { |
2f4c0a16 RD |
15089 | arg3 = (long) SWIG_AsLong(obj2); |
15090 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 15091 | } |
d14a1e28 RD |
15092 | { |
15093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15094 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
15095 | ||
15096 | wxPyEndAllowThreads(__tstate); | |
15097 | if (PyErr_Occurred()) SWIG_fail; | |
15098 | } | |
2f4c0a16 | 15099 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
15100 | { |
15101 | if (temp2) | |
15102 | delete arg2; | |
15103 | } | |
15104 | return resultobj; | |
15105 | fail: | |
15106 | { | |
15107 | if (temp2) | |
15108 | delete arg2; | |
15109 | } | |
15110 | return NULL; | |
15111 | } | |
15112 | ||
15113 | ||
15114 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15115 | PyObject *resultobj; | |
15116 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15117 | wxString *arg2 = 0 ; | |
15118 | double arg3 = (double) 0.0 ; | |
15119 | double result; | |
423f194a | 15120 | bool temp2 = False ; |
d14a1e28 RD |
15121 | PyObject * obj0 = 0 ; |
15122 | PyObject * obj1 = 0 ; | |
8edf1c75 | 15123 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15124 | char *kwnames[] = { |
15125 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15126 | }; | |
15127 | ||
8edf1c75 | 15128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
15129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15131 | { |
15132 | arg2 = wxString_in_helper(obj1); | |
15133 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15134 | temp2 = True; |
d14a1e28 | 15135 | } |
8edf1c75 | 15136 | if (obj2) { |
2f4c0a16 RD |
15137 | arg3 = (double) SWIG_AsDouble(obj2); |
15138 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 15139 | } |
d14a1e28 RD |
15140 | { |
15141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15142 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
15143 | ||
15144 | wxPyEndAllowThreads(__tstate); | |
15145 | if (PyErr_Occurred()) SWIG_fail; | |
15146 | } | |
2f4c0a16 | 15147 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
15148 | { |
15149 | if (temp2) | |
15150 | delete arg2; | |
15151 | } | |
15152 | return resultobj; | |
15153 | fail: | |
15154 | { | |
15155 | if (temp2) | |
15156 | delete arg2; | |
15157 | } | |
15158 | return NULL; | |
15159 | } | |
15160 | ||
15161 | ||
15162 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15163 | PyObject *resultobj; | |
15164 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15165 | wxString *arg2 = 0 ; | |
423f194a | 15166 | bool arg3 = (bool) False ; |
d14a1e28 | 15167 | bool result; |
423f194a | 15168 | bool temp2 = False ; |
d14a1e28 RD |
15169 | PyObject * obj0 = 0 ; |
15170 | PyObject * obj1 = 0 ; | |
15171 | PyObject * obj2 = 0 ; | |
15172 | char *kwnames[] = { | |
15173 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15174 | }; | |
15175 | ||
15176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
15177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15179 | { |
15180 | arg2 = wxString_in_helper(obj1); | |
15181 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15182 | temp2 = True; |
d14a1e28 RD |
15183 | } |
15184 | if (obj2) { | |
2f4c0a16 RD |
15185 | arg3 = (bool) SWIG_AsBool(obj2); |
15186 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15187 | } |
15188 | { | |
15189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15190 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
15191 | ||
15192 | wxPyEndAllowThreads(__tstate); | |
15193 | if (PyErr_Occurred()) SWIG_fail; | |
15194 | } | |
4e760a36 | 15195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15196 | { |
15197 | if (temp2) | |
15198 | delete arg2; | |
15199 | } | |
15200 | return resultobj; | |
15201 | fail: | |
15202 | { | |
15203 | if (temp2) | |
15204 | delete arg2; | |
15205 | } | |
15206 | return NULL; | |
15207 | } | |
15208 | ||
15209 | ||
15210 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15211 | PyObject *resultobj; | |
15212 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15213 | wxString *arg2 = 0 ; | |
15214 | wxString *arg3 = 0 ; | |
15215 | bool result; | |
423f194a RD |
15216 | bool temp2 = False ; |
15217 | bool temp3 = False ; | |
d14a1e28 RD |
15218 | PyObject * obj0 = 0 ; |
15219 | PyObject * obj1 = 0 ; | |
15220 | PyObject * obj2 = 0 ; | |
15221 | char *kwnames[] = { | |
15222 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15223 | }; | |
15224 | ||
15225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
15226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15228 | { |
15229 | arg2 = wxString_in_helper(obj1); | |
15230 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15231 | temp2 = True; |
d14a1e28 RD |
15232 | } |
15233 | { | |
15234 | arg3 = wxString_in_helper(obj2); | |
15235 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 15236 | temp3 = True; |
d14a1e28 RD |
15237 | } |
15238 | { | |
15239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15240 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
15241 | ||
15242 | wxPyEndAllowThreads(__tstate); | |
15243 | if (PyErr_Occurred()) SWIG_fail; | |
15244 | } | |
4e760a36 | 15245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15246 | { |
15247 | if (temp2) | |
15248 | delete arg2; | |
15249 | } | |
15250 | { | |
15251 | if (temp3) | |
15252 | delete arg3; | |
15253 | } | |
15254 | return resultobj; | |
15255 | fail: | |
15256 | { | |
15257 | if (temp2) | |
15258 | delete arg2; | |
15259 | } | |
15260 | { | |
15261 | if (temp3) | |
15262 | delete arg3; | |
15263 | } | |
15264 | return NULL; | |
15265 | } | |
15266 | ||
15267 | ||
15268 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15269 | PyObject *resultobj; | |
15270 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15271 | wxString *arg2 = 0 ; | |
15272 | long arg3 ; | |
15273 | bool result; | |
423f194a | 15274 | bool temp2 = False ; |
d14a1e28 RD |
15275 | PyObject * obj0 = 0 ; |
15276 | PyObject * obj1 = 0 ; | |
8edf1c75 | 15277 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15278 | char *kwnames[] = { |
15279 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15280 | }; | |
15281 | ||
8edf1c75 | 15282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
15283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15285 | { |
15286 | arg2 = wxString_in_helper(obj1); | |
15287 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15288 | temp2 = True; |
d14a1e28 | 15289 | } |
2f4c0a16 RD |
15290 | arg3 = (long) SWIG_AsLong(obj2); |
15291 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15292 | { |
15293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15294 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15295 | ||
15296 | wxPyEndAllowThreads(__tstate); | |
15297 | if (PyErr_Occurred()) SWIG_fail; | |
15298 | } | |
4e760a36 | 15299 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15300 | { |
15301 | if (temp2) | |
15302 | delete arg2; | |
15303 | } | |
15304 | return resultobj; | |
15305 | fail: | |
15306 | { | |
15307 | if (temp2) | |
15308 | delete arg2; | |
15309 | } | |
15310 | return NULL; | |
15311 | } | |
15312 | ||
15313 | ||
15314 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15315 | PyObject *resultobj; | |
15316 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15317 | wxString *arg2 = 0 ; | |
15318 | double arg3 ; | |
15319 | bool result; | |
423f194a | 15320 | bool temp2 = False ; |
d14a1e28 RD |
15321 | PyObject * obj0 = 0 ; |
15322 | PyObject * obj1 = 0 ; | |
8edf1c75 | 15323 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15324 | char *kwnames[] = { |
15325 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15326 | }; | |
15327 | ||
8edf1c75 | 15328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
15329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15331 | { |
15332 | arg2 = wxString_in_helper(obj1); | |
15333 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15334 | temp2 = True; |
d14a1e28 | 15335 | } |
2f4c0a16 RD |
15336 | arg3 = (double) SWIG_AsDouble(obj2); |
15337 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15338 | { |
15339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15340 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15341 | ||
15342 | wxPyEndAllowThreads(__tstate); | |
15343 | if (PyErr_Occurred()) SWIG_fail; | |
15344 | } | |
4e760a36 | 15345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15346 | { |
15347 | if (temp2) | |
15348 | delete arg2; | |
15349 | } | |
15350 | return resultobj; | |
15351 | fail: | |
15352 | { | |
15353 | if (temp2) | |
15354 | delete arg2; | |
15355 | } | |
15356 | return NULL; | |
15357 | } | |
15358 | ||
15359 | ||
15360 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15361 | PyObject *resultobj; | |
15362 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15363 | wxString *arg2 = 0 ; | |
15364 | bool arg3 ; | |
15365 | bool result; | |
423f194a | 15366 | bool temp2 = False ; |
d14a1e28 RD |
15367 | PyObject * obj0 = 0 ; |
15368 | PyObject * obj1 = 0 ; | |
15369 | PyObject * obj2 = 0 ; | |
15370 | char *kwnames[] = { | |
15371 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15372 | }; | |
15373 | ||
15374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
15375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15377 | { |
15378 | arg2 = wxString_in_helper(obj1); | |
15379 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15380 | temp2 = True; |
d14a1e28 | 15381 | } |
2f4c0a16 RD |
15382 | arg3 = (bool) SWIG_AsBool(obj2); |
15383 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15384 | { |
15385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15386 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15387 | ||
15388 | wxPyEndAllowThreads(__tstate); | |
15389 | if (PyErr_Occurred()) SWIG_fail; | |
15390 | } | |
4e760a36 | 15391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15392 | { |
15393 | if (temp2) | |
15394 | delete arg2; | |
15395 | } | |
15396 | return resultobj; | |
15397 | fail: | |
15398 | { | |
15399 | if (temp2) | |
15400 | delete arg2; | |
15401 | } | |
15402 | return NULL; | |
15403 | } | |
15404 | ||
15405 | ||
15406 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15407 | PyObject *resultobj; | |
15408 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 15409 | bool arg2 = (bool) False ; |
d14a1e28 RD |
15410 | bool result; |
15411 | PyObject * obj0 = 0 ; | |
15412 | PyObject * obj1 = 0 ; | |
15413 | char *kwnames[] = { | |
328fcd84 | 15414 | (char *) "self",(char *) "currentOnly", NULL |
d14a1e28 RD |
15415 | }; |
15416 | ||
15417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15420 | if (obj1) { |
2f4c0a16 RD |
15421 | arg2 = (bool) SWIG_AsBool(obj1); |
15422 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15423 | } |
15424 | { | |
15425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15426 | result = (bool)(arg1)->Flush(arg2); | |
15427 | ||
15428 | wxPyEndAllowThreads(__tstate); | |
15429 | if (PyErr_Occurred()) SWIG_fail; | |
15430 | } | |
4e760a36 | 15431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15432 | return resultobj; |
15433 | fail: | |
15434 | return NULL; | |
15435 | } | |
15436 | ||
15437 | ||
15438 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15439 | PyObject *resultobj; | |
15440 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15441 | wxString *arg2 = 0 ; | |
15442 | wxString *arg3 = 0 ; | |
15443 | bool result; | |
423f194a RD |
15444 | bool temp2 = False ; |
15445 | bool temp3 = False ; | |
d14a1e28 RD |
15446 | PyObject * obj0 = 0 ; |
15447 | PyObject * obj1 = 0 ; | |
15448 | PyObject * obj2 = 0 ; | |
15449 | char *kwnames[] = { | |
15450 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15451 | }; | |
15452 | ||
15453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
15454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15456 | { |
15457 | arg2 = wxString_in_helper(obj1); | |
15458 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15459 | temp2 = True; |
d14a1e28 RD |
15460 | } |
15461 | { | |
15462 | arg3 = wxString_in_helper(obj2); | |
15463 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 15464 | temp3 = True; |
d14a1e28 RD |
15465 | } |
15466 | { | |
15467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15468 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
15469 | ||
15470 | wxPyEndAllowThreads(__tstate); | |
15471 | if (PyErr_Occurred()) SWIG_fail; | |
15472 | } | |
4e760a36 | 15473 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15474 | { |
15475 | if (temp2) | |
15476 | delete arg2; | |
15477 | } | |
15478 | { | |
15479 | if (temp3) | |
15480 | delete arg3; | |
15481 | } | |
15482 | return resultobj; | |
15483 | fail: | |
15484 | { | |
15485 | if (temp2) | |
15486 | delete arg2; | |
15487 | } | |
15488 | { | |
15489 | if (temp3) | |
15490 | delete arg3; | |
15491 | } | |
15492 | return NULL; | |
15493 | } | |
15494 | ||
15495 | ||
15496 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15497 | PyObject *resultobj; | |
15498 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15499 | wxString *arg2 = 0 ; | |
15500 | wxString *arg3 = 0 ; | |
15501 | bool result; | |
423f194a RD |
15502 | bool temp2 = False ; |
15503 | bool temp3 = False ; | |
d14a1e28 RD |
15504 | PyObject * obj0 = 0 ; |
15505 | PyObject * obj1 = 0 ; | |
15506 | PyObject * obj2 = 0 ; | |
15507 | char *kwnames[] = { | |
15508 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15509 | }; | |
15510 | ||
15511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
15512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15514 | { |
15515 | arg2 = wxString_in_helper(obj1); | |
15516 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15517 | temp2 = True; |
d14a1e28 RD |
15518 | } |
15519 | { | |
15520 | arg3 = wxString_in_helper(obj2); | |
15521 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 15522 | temp3 = True; |
d14a1e28 RD |
15523 | } |
15524 | { | |
15525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15526 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
15527 | ||
15528 | wxPyEndAllowThreads(__tstate); | |
15529 | if (PyErr_Occurred()) SWIG_fail; | |
15530 | } | |
4e760a36 | 15531 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15532 | { |
15533 | if (temp2) | |
15534 | delete arg2; | |
15535 | } | |
15536 | { | |
15537 | if (temp3) | |
15538 | delete arg3; | |
15539 | } | |
15540 | return resultobj; | |
15541 | fail: | |
15542 | { | |
15543 | if (temp2) | |
15544 | delete arg2; | |
15545 | } | |
15546 | { | |
15547 | if (temp3) | |
15548 | delete arg3; | |
15549 | } | |
15550 | return NULL; | |
15551 | } | |
15552 | ||
15553 | ||
15554 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15555 | PyObject *resultobj; | |
15556 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15557 | wxString *arg2 = 0 ; | |
423f194a | 15558 | bool arg3 = (bool) True ; |
d14a1e28 | 15559 | bool result; |
423f194a | 15560 | bool temp2 = False ; |
d14a1e28 RD |
15561 | PyObject * obj0 = 0 ; |
15562 | PyObject * obj1 = 0 ; | |
15563 | PyObject * obj2 = 0 ; | |
15564 | char *kwnames[] = { | |
328fcd84 | 15565 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL |
d14a1e28 RD |
15566 | }; |
15567 | ||
15568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
15569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15571 | { |
15572 | arg2 = wxString_in_helper(obj1); | |
15573 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15574 | temp2 = True; |
d14a1e28 RD |
15575 | } |
15576 | if (obj2) { | |
2f4c0a16 RD |
15577 | arg3 = (bool) SWIG_AsBool(obj2); |
15578 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15579 | } |
15580 | { | |
15581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15582 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
15583 | ||
15584 | wxPyEndAllowThreads(__tstate); | |
15585 | if (PyErr_Occurred()) SWIG_fail; | |
15586 | } | |
4e760a36 | 15587 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15588 | { |
15589 | if (temp2) | |
15590 | delete arg2; | |
15591 | } | |
15592 | return resultobj; | |
15593 | fail: | |
15594 | { | |
15595 | if (temp2) | |
15596 | delete arg2; | |
15597 | } | |
15598 | return NULL; | |
15599 | } | |
15600 | ||
15601 | ||
15602 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15603 | PyObject *resultobj; | |
15604 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15605 | wxString *arg2 = 0 ; | |
15606 | bool result; | |
423f194a | 15607 | bool temp2 = False ; |
d14a1e28 RD |
15608 | PyObject * obj0 = 0 ; |
15609 | PyObject * obj1 = 0 ; | |
15610 | char *kwnames[] = { | |
15611 | (char *) "self",(char *) "key", NULL | |
15612 | }; | |
15613 | ||
15614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15617 | { |
15618 | arg2 = wxString_in_helper(obj1); | |
15619 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15620 | temp2 = True; |
d14a1e28 RD |
15621 | } |
15622 | { | |
15623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15624 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
15625 | ||
15626 | wxPyEndAllowThreads(__tstate); | |
15627 | if (PyErr_Occurred()) SWIG_fail; | |
15628 | } | |
4e760a36 | 15629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15630 | { |
15631 | if (temp2) | |
15632 | delete arg2; | |
15633 | } | |
15634 | return resultobj; | |
15635 | fail: | |
15636 | { | |
15637 | if (temp2) | |
15638 | delete arg2; | |
15639 | } | |
15640 | return NULL; | |
15641 | } | |
15642 | ||
15643 | ||
15644 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15645 | PyObject *resultobj; | |
15646 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15647 | bool result; | |
15648 | PyObject * obj0 = 0 ; | |
15649 | char *kwnames[] = { | |
15650 | (char *) "self", NULL | |
15651 | }; | |
15652 | ||
15653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15656 | { |
15657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15658 | result = (bool)(arg1)->DeleteAll(); | |
15659 | ||
15660 | wxPyEndAllowThreads(__tstate); | |
15661 | if (PyErr_Occurred()) SWIG_fail; | |
15662 | } | |
4e760a36 | 15663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15664 | return resultobj; |
15665 | fail: | |
15666 | return NULL; | |
15667 | } | |
15668 | ||
15669 | ||
328fcd84 | 15670 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15671 | PyObject *resultobj; |
15672 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
328fcd84 | 15673 | bool arg2 = (bool) True ; |
d14a1e28 | 15674 | PyObject * obj0 = 0 ; |
328fcd84 | 15675 | PyObject * obj1 = 0 ; |
d14a1e28 | 15676 | char *kwnames[] = { |
328fcd84 | 15677 | (char *) "self",(char *) "doIt", NULL |
d14a1e28 RD |
15678 | }; |
15679 | ||
328fcd84 | 15680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
328fcd84 | 15683 | if (obj1) { |
2f4c0a16 RD |
15684 | arg2 = (bool) SWIG_AsBool(obj1); |
15685 | if (PyErr_Occurred()) SWIG_fail; | |
328fcd84 | 15686 | } |
d14a1e28 RD |
15687 | { |
15688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 15689 | (arg1)->SetExpandEnvVars(arg2); |
d14a1e28 RD |
15690 | |
15691 | wxPyEndAllowThreads(__tstate); | |
15692 | if (PyErr_Occurred()) SWIG_fail; | |
15693 | } | |
328fcd84 | 15694 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
15695 | return resultobj; |
15696 | fail: | |
15697 | return NULL; | |
15698 | } | |
15699 | ||
15700 | ||
328fcd84 | 15701 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15702 | PyObject *resultobj; |
15703 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
328fcd84 | 15704 | bool result; |
d14a1e28 | 15705 | PyObject * obj0 = 0 ; |
d14a1e28 | 15706 | char *kwnames[] = { |
328fcd84 | 15707 | (char *) "self", NULL |
d14a1e28 RD |
15708 | }; |
15709 | ||
328fcd84 | 15710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
15711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15713 | { |
15714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 15715 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); |
d14a1e28 RD |
15716 | |
15717 | wxPyEndAllowThreads(__tstate); | |
15718 | if (PyErr_Occurred()) SWIG_fail; | |
15719 | } | |
328fcd84 | 15720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15721 | return resultobj; |
15722 | fail: | |
15723 | return NULL; | |
15724 | } | |
15725 | ||
15726 | ||
15727 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15728 | PyObject *resultobj; | |
15729 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 15730 | bool arg2 = (bool) True ; |
d14a1e28 RD |
15731 | PyObject * obj0 = 0 ; |
15732 | PyObject * obj1 = 0 ; | |
15733 | char *kwnames[] = { | |
328fcd84 | 15734 | (char *) "self",(char *) "doIt", NULL |
d14a1e28 RD |
15735 | }; |
15736 | ||
15737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15740 | if (obj1) { |
2f4c0a16 RD |
15741 | arg2 = (bool) SWIG_AsBool(obj1); |
15742 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15743 | } |
15744 | { | |
15745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15746 | (arg1)->SetRecordDefaults(arg2); | |
15747 | ||
15748 | wxPyEndAllowThreads(__tstate); | |
15749 | if (PyErr_Occurred()) SWIG_fail; | |
15750 | } | |
15751 | Py_INCREF(Py_None); resultobj = Py_None; | |
15752 | return resultobj; | |
15753 | fail: | |
15754 | return NULL; | |
15755 | } | |
15756 | ||
15757 | ||
15758 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15759 | PyObject *resultobj; | |
15760 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15761 | bool result; | |
15762 | PyObject * obj0 = 0 ; | |
15763 | char *kwnames[] = { | |
15764 | (char *) "self", NULL | |
15765 | }; | |
15766 | ||
15767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15770 | { |
15771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15772 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
15773 | ||
15774 | wxPyEndAllowThreads(__tstate); | |
15775 | if (PyErr_Occurred()) SWIG_fail; | |
15776 | } | |
4e760a36 | 15777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15778 | return resultobj; |
15779 | fail: | |
15780 | return NULL; | |
15781 | } | |
15782 | ||
15783 | ||
15784 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15785 | PyObject *resultobj; | |
15786 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15787 | wxString *arg2 = 0 ; | |
15788 | wxString result; | |
423f194a | 15789 | bool temp2 = False ; |
d14a1e28 RD |
15790 | PyObject * obj0 = 0 ; |
15791 | PyObject * obj1 = 0 ; | |
15792 | char *kwnames[] = { | |
15793 | (char *) "self",(char *) "str", NULL | |
15794 | }; | |
15795 | ||
15796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15799 | { |
15800 | arg2 = wxString_in_helper(obj1); | |
15801 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15802 | temp2 = True; |
d14a1e28 RD |
15803 | } |
15804 | { | |
15805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15806 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
15807 | ||
15808 | wxPyEndAllowThreads(__tstate); | |
15809 | if (PyErr_Occurred()) SWIG_fail; | |
15810 | } | |
15811 | { | |
15812 | #if wxUSE_UNICODE | |
15813 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15814 | #else | |
15815 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15816 | #endif | |
15817 | } | |
15818 | { | |
15819 | if (temp2) | |
15820 | delete arg2; | |
15821 | } | |
15822 | return resultobj; | |
15823 | fail: | |
15824 | { | |
15825 | if (temp2) | |
15826 | delete arg2; | |
15827 | } | |
15828 | return NULL; | |
15829 | } | |
15830 | ||
15831 | ||
15832 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15833 | PyObject *resultobj; | |
15834 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15835 | wxString result; | |
15836 | PyObject * obj0 = 0 ; | |
15837 | char *kwnames[] = { | |
15838 | (char *) "self", NULL | |
15839 | }; | |
15840 | ||
15841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15844 | { |
15845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15846 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
15847 | ||
15848 | wxPyEndAllowThreads(__tstate); | |
15849 | if (PyErr_Occurred()) SWIG_fail; | |
15850 | } | |
15851 | { | |
15852 | #if wxUSE_UNICODE | |
15853 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15854 | #else | |
15855 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15856 | #endif | |
15857 | } | |
15858 | return resultobj; | |
15859 | fail: | |
15860 | return NULL; | |
15861 | } | |
15862 | ||
15863 | ||
15864 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15865 | PyObject *resultobj; | |
15866 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15867 | wxString result; | |
15868 | PyObject * obj0 = 0 ; | |
15869 | char *kwnames[] = { | |
15870 | (char *) "self", NULL | |
15871 | }; | |
15872 | ||
15873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15876 | { |
15877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15878 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
15879 | ||
15880 | wxPyEndAllowThreads(__tstate); | |
15881 | if (PyErr_Occurred()) SWIG_fail; | |
15882 | } | |
15883 | { | |
15884 | #if wxUSE_UNICODE | |
15885 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15886 | #else | |
15887 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15888 | #endif | |
15889 | } | |
15890 | return resultobj; | |
15891 | fail: | |
15892 | return NULL; | |
15893 | } | |
15894 | ||
15895 | ||
15896 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15897 | PyObject *resultobj; | |
15898 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15899 | wxString *arg2 = 0 ; | |
423f194a | 15900 | bool temp2 = False ; |
d14a1e28 RD |
15901 | PyObject * obj0 = 0 ; |
15902 | PyObject * obj1 = 0 ; | |
15903 | char *kwnames[] = { | |
15904 | (char *) "self",(char *) "appName", NULL | |
15905 | }; | |
15906 | ||
15907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15910 | { |
15911 | arg2 = wxString_in_helper(obj1); | |
15912 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15913 | temp2 = True; |
d14a1e28 RD |
15914 | } |
15915 | { | |
15916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15917 | (arg1)->SetAppName((wxString const &)*arg2); | |
15918 | ||
15919 | wxPyEndAllowThreads(__tstate); | |
15920 | if (PyErr_Occurred()) SWIG_fail; | |
15921 | } | |
15922 | Py_INCREF(Py_None); resultobj = Py_None; | |
15923 | { | |
15924 | if (temp2) | |
15925 | delete arg2; | |
15926 | } | |
15927 | return resultobj; | |
15928 | fail: | |
15929 | { | |
15930 | if (temp2) | |
15931 | delete arg2; | |
15932 | } | |
15933 | return NULL; | |
15934 | } | |
15935 | ||
15936 | ||
15937 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15938 | PyObject *resultobj; | |
15939 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15940 | wxString *arg2 = 0 ; | |
423f194a | 15941 | bool temp2 = False ; |
d14a1e28 RD |
15942 | PyObject * obj0 = 0 ; |
15943 | PyObject * obj1 = 0 ; | |
15944 | char *kwnames[] = { | |
15945 | (char *) "self",(char *) "vendorName", NULL | |
15946 | }; | |
15947 | ||
15948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15951 | { |
15952 | arg2 = wxString_in_helper(obj1); | |
15953 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15954 | temp2 = True; |
d14a1e28 RD |
15955 | } |
15956 | { | |
15957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15958 | (arg1)->SetVendorName((wxString const &)*arg2); | |
15959 | ||
15960 | wxPyEndAllowThreads(__tstate); | |
15961 | if (PyErr_Occurred()) SWIG_fail; | |
15962 | } | |
15963 | Py_INCREF(Py_None); resultobj = Py_None; | |
15964 | { | |
15965 | if (temp2) | |
15966 | delete arg2; | |
15967 | } | |
15968 | return resultobj; | |
15969 | fail: | |
15970 | { | |
15971 | if (temp2) | |
15972 | delete arg2; | |
15973 | } | |
15974 | return NULL; | |
15975 | } | |
15976 | ||
15977 | ||
15978 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15979 | PyObject *resultobj; | |
15980 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15981 | long arg2 ; | |
15982 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15983 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15984 | char *kwnames[] = { |
15985 | (char *) "self",(char *) "style", NULL | |
15986 | }; | |
15987 | ||
8edf1c75 | 15988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15991 | arg2 = (long) SWIG_AsLong(obj1); | |
15992 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15993 | { |
15994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15995 | (arg1)->SetStyle(arg2); | |
15996 | ||
15997 | wxPyEndAllowThreads(__tstate); | |
15998 | if (PyErr_Occurred()) SWIG_fail; | |
15999 | } | |
16000 | Py_INCREF(Py_None); resultobj = Py_None; | |
16001 | return resultobj; | |
16002 | fail: | |
16003 | return NULL; | |
16004 | } | |
16005 | ||
16006 | ||
16007 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16008 | PyObject *resultobj; | |
16009 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16010 | long result; | |
16011 | PyObject * obj0 = 0 ; | |
16012 | char *kwnames[] = { | |
16013 | (char *) "self", NULL | |
16014 | }; | |
16015 | ||
16016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16019 | { |
16020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16021 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
16022 | ||
16023 | wxPyEndAllowThreads(__tstate); | |
16024 | if (PyErr_Occurred()) SWIG_fail; | |
16025 | } | |
2f4c0a16 | 16026 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
16027 | return resultobj; |
16028 | fail: | |
16029 | return NULL; | |
16030 | } | |
16031 | ||
16032 | ||
16033 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
16034 | PyObject *obj; | |
16035 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16036 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
16037 | Py_INCREF(obj); | |
16038 | return Py_BuildValue((char *)""); | |
16039 | } | |
d14a1e28 RD |
16040 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { |
16041 | PyObject *resultobj; | |
16042 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16043 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16044 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16045 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16046 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16047 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16048 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16049 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16050 | long arg5 = (long) 0 ; | |
16051 | wxConfig *result; | |
423f194a RD |
16052 | bool temp1 = False ; |
16053 | bool temp2 = False ; | |
16054 | bool temp3 = False ; | |
16055 | bool temp4 = False ; | |
d14a1e28 RD |
16056 | PyObject * obj0 = 0 ; |
16057 | PyObject * obj1 = 0 ; | |
16058 | PyObject * obj2 = 0 ; | |
16059 | PyObject * obj3 = 0 ; | |
8edf1c75 | 16060 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16061 | char *kwnames[] = { |
16062 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16063 | }; | |
16064 | ||
8edf1c75 | 16065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
16066 | if (obj0) { |
16067 | { | |
16068 | arg1 = wxString_in_helper(obj0); | |
16069 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 16070 | temp1 = True; |
d14a1e28 RD |
16071 | } |
16072 | } | |
16073 | if (obj1) { | |
16074 | { | |
16075 | arg2 = wxString_in_helper(obj1); | |
16076 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 16077 | temp2 = True; |
d14a1e28 RD |
16078 | } |
16079 | } | |
16080 | if (obj2) { | |
16081 | { | |
16082 | arg3 = wxString_in_helper(obj2); | |
16083 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16084 | temp3 = True; |
d14a1e28 RD |
16085 | } |
16086 | } | |
16087 | if (obj3) { | |
16088 | { | |
16089 | arg4 = wxString_in_helper(obj3); | |
16090 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 16091 | temp4 = True; |
d14a1e28 RD |
16092 | } |
16093 | } | |
8edf1c75 | 16094 | if (obj4) { |
2f4c0a16 RD |
16095 | arg5 = (long) SWIG_AsLong(obj4); |
16096 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16097 | } |
d14a1e28 RD |
16098 | { |
16099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16100 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16101 | ||
16102 | wxPyEndAllowThreads(__tstate); | |
16103 | if (PyErr_Occurred()) SWIG_fail; | |
16104 | } | |
2f4c0a16 | 16105 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); |
d14a1e28 RD |
16106 | { |
16107 | if (temp1) | |
16108 | delete arg1; | |
16109 | } | |
16110 | { | |
16111 | if (temp2) | |
16112 | delete arg2; | |
16113 | } | |
16114 | { | |
16115 | if (temp3) | |
16116 | delete arg3; | |
16117 | } | |
16118 | { | |
16119 | if (temp4) | |
16120 | delete arg4; | |
16121 | } | |
16122 | return resultobj; | |
16123 | fail: | |
16124 | { | |
16125 | if (temp1) | |
16126 | delete arg1; | |
16127 | } | |
16128 | { | |
16129 | if (temp2) | |
16130 | delete arg2; | |
16131 | } | |
16132 | { | |
16133 | if (temp3) | |
16134 | delete arg3; | |
16135 | } | |
16136 | { | |
16137 | if (temp4) | |
16138 | delete arg4; | |
16139 | } | |
16140 | return NULL; | |
16141 | } | |
16142 | ||
16143 | ||
16144 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16145 | PyObject *resultobj; | |
16146 | wxConfig *arg1 = (wxConfig *) 0 ; | |
16147 | PyObject * obj0 = 0 ; | |
16148 | char *kwnames[] = { | |
16149 | (char *) "self", NULL | |
16150 | }; | |
16151 | ||
16152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig, |
16154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16155 | { |
16156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16157 | delete arg1; | |
16158 | ||
16159 | wxPyEndAllowThreads(__tstate); | |
16160 | if (PyErr_Occurred()) SWIG_fail; | |
16161 | } | |
16162 | Py_INCREF(Py_None); resultobj = Py_None; | |
16163 | return resultobj; | |
16164 | fail: | |
16165 | return NULL; | |
16166 | } | |
16167 | ||
16168 | ||
16169 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
16170 | PyObject *obj; | |
16171 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16172 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
16173 | Py_INCREF(obj); | |
16174 | return Py_BuildValue((char *)""); | |
16175 | } | |
16176 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16177 | PyObject *resultobj; | |
16178 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16179 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16180 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16181 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16182 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16183 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16184 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16185 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
fe763115 | 16186 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; |
d14a1e28 | 16187 | wxFileConfig *result; |
423f194a RD |
16188 | bool temp1 = False ; |
16189 | bool temp2 = False ; | |
16190 | bool temp3 = False ; | |
16191 | bool temp4 = False ; | |
d14a1e28 RD |
16192 | PyObject * obj0 = 0 ; |
16193 | PyObject * obj1 = 0 ; | |
16194 | PyObject * obj2 = 0 ; | |
16195 | PyObject * obj3 = 0 ; | |
8edf1c75 | 16196 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16197 | char *kwnames[] = { |
16198 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16199 | }; | |
16200 | ||
8edf1c75 | 16201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
16202 | if (obj0) { |
16203 | { | |
16204 | arg1 = wxString_in_helper(obj0); | |
16205 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 16206 | temp1 = True; |
d14a1e28 RD |
16207 | } |
16208 | } | |
16209 | if (obj1) { | |
16210 | { | |
16211 | arg2 = wxString_in_helper(obj1); | |
16212 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 16213 | temp2 = True; |
d14a1e28 RD |
16214 | } |
16215 | } | |
16216 | if (obj2) { | |
16217 | { | |
16218 | arg3 = wxString_in_helper(obj2); | |
16219 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16220 | temp3 = True; |
d14a1e28 RD |
16221 | } |
16222 | } | |
16223 | if (obj3) { | |
16224 | { | |
16225 | arg4 = wxString_in_helper(obj3); | |
16226 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 16227 | temp4 = True; |
d14a1e28 RD |
16228 | } |
16229 | } | |
8edf1c75 | 16230 | if (obj4) { |
2f4c0a16 RD |
16231 | arg5 = (long) SWIG_AsLong(obj4); |
16232 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16233 | } |
d14a1e28 RD |
16234 | { |
16235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16236 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16237 | ||
16238 | wxPyEndAllowThreads(__tstate); | |
16239 | if (PyErr_Occurred()) SWIG_fail; | |
16240 | } | |
2f4c0a16 | 16241 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); |
d14a1e28 RD |
16242 | { |
16243 | if (temp1) | |
16244 | delete arg1; | |
16245 | } | |
16246 | { | |
16247 | if (temp2) | |
16248 | delete arg2; | |
16249 | } | |
16250 | { | |
16251 | if (temp3) | |
16252 | delete arg3; | |
16253 | } | |
16254 | { | |
16255 | if (temp4) | |
16256 | delete arg4; | |
16257 | } | |
16258 | return resultobj; | |
16259 | fail: | |
16260 | { | |
16261 | if (temp1) | |
16262 | delete arg1; | |
16263 | } | |
16264 | { | |
16265 | if (temp2) | |
16266 | delete arg2; | |
16267 | } | |
16268 | { | |
16269 | if (temp3) | |
16270 | delete arg3; | |
16271 | } | |
16272 | { | |
16273 | if (temp4) | |
16274 | delete arg4; | |
16275 | } | |
16276 | return NULL; | |
16277 | } | |
16278 | ||
16279 | ||
16280 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16281 | PyObject *resultobj; | |
16282 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
16283 | PyObject * obj0 = 0 ; | |
16284 | char *kwnames[] = { | |
16285 | (char *) "self", NULL | |
16286 | }; | |
16287 | ||
16288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig, |
16290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16291 | { |
16292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16293 | delete arg1; | |
16294 | ||
16295 | wxPyEndAllowThreads(__tstate); | |
16296 | if (PyErr_Occurred()) SWIG_fail; | |
16297 | } | |
16298 | Py_INCREF(Py_None); resultobj = Py_None; | |
16299 | return resultobj; | |
16300 | fail: | |
16301 | return NULL; | |
16302 | } | |
16303 | ||
16304 | ||
16305 | static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
16306 | PyObject *obj; | |
16307 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16308 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
16309 | Py_INCREF(obj); | |
16310 | return Py_BuildValue((char *)""); | |
16311 | } | |
328fcd84 RD |
16312 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { |
16313 | PyObject *resultobj; | |
16314 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16315 | wxString *arg2 = 0 ; | |
16316 | wxConfigPathChanger *result; | |
16317 | bool temp2 = False ; | |
16318 | PyObject * obj0 = 0 ; | |
16319 | PyObject * obj1 = 0 ; | |
16320 | char *kwnames[] = { | |
16321 | (char *) "config",(char *) "entry", NULL | |
16322 | }; | |
16323 | ||
16324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
328fcd84 RD |
16327 | { |
16328 | arg2 = wxString_in_helper(obj1); | |
16329 | if (arg2 == NULL) SWIG_fail; | |
16330 | temp2 = True; | |
16331 | } | |
16332 | { | |
16333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16334 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
16335 | ||
16336 | wxPyEndAllowThreads(__tstate); | |
16337 | if (PyErr_Occurred()) SWIG_fail; | |
16338 | } | |
2f4c0a16 | 16339 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); |
328fcd84 RD |
16340 | { |
16341 | if (temp2) | |
16342 | delete arg2; | |
16343 | } | |
16344 | return resultobj; | |
16345 | fail: | |
16346 | { | |
16347 | if (temp2) | |
16348 | delete arg2; | |
16349 | } | |
16350 | return NULL; | |
16351 | } | |
16352 | ||
16353 | ||
16354 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16355 | PyObject *resultobj; | |
16356 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16357 | PyObject * obj0 = 0 ; | |
16358 | char *kwnames[] = { | |
16359 | (char *) "self", NULL | |
16360 | }; | |
16361 | ||
16362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, |
16364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
328fcd84 RD |
16365 | { |
16366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16367 | delete arg1; | |
16368 | ||
16369 | wxPyEndAllowThreads(__tstate); | |
16370 | if (PyErr_Occurred()) SWIG_fail; | |
16371 | } | |
16372 | Py_INCREF(Py_None); resultobj = Py_None; | |
16373 | return resultobj; | |
16374 | fail: | |
16375 | return NULL; | |
16376 | } | |
16377 | ||
16378 | ||
16379 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16380 | PyObject *resultobj; | |
16381 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16382 | wxString *result; | |
16383 | PyObject * obj0 = 0 ; | |
16384 | char *kwnames[] = { | |
16385 | (char *) "self", NULL | |
16386 | }; | |
16387 | ||
16388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, |
16390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
328fcd84 RD |
16391 | { |
16392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16393 | { | |
16394 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
16395 | result = (wxString *) &_result_ref; | |
16396 | } | |
16397 | ||
16398 | wxPyEndAllowThreads(__tstate); | |
16399 | if (PyErr_Occurred()) SWIG_fail; | |
16400 | } | |
16401 | { | |
16402 | #if wxUSE_UNICODE | |
16403 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16404 | #else | |
16405 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16406 | #endif | |
16407 | } | |
16408 | return resultobj; | |
16409 | fail: | |
16410 | return NULL; | |
16411 | } | |
16412 | ||
16413 | ||
16414 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
16415 | PyObject *obj; | |
16416 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16417 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
16418 | Py_INCREF(obj); | |
16419 | return Py_BuildValue((char *)""); | |
16420 | } | |
d14a1e28 RD |
16421 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
16422 | PyObject *resultobj; | |
16423 | wxString *arg1 = 0 ; | |
16424 | wxString result; | |
423f194a | 16425 | bool temp1 = False ; |
d14a1e28 RD |
16426 | PyObject * obj0 = 0 ; |
16427 | char *kwnames[] = { | |
16428 | (char *) "sz", NULL | |
16429 | }; | |
16430 | ||
16431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
16432 | { | |
16433 | arg1 = wxString_in_helper(obj0); | |
16434 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 16435 | temp1 = True; |
d14a1e28 RD |
16436 | } |
16437 | { | |
16438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16439 | result = wxExpandEnvVars((wxString const &)*arg1); | |
16440 | ||
16441 | wxPyEndAllowThreads(__tstate); | |
16442 | if (PyErr_Occurred()) SWIG_fail; | |
16443 | } | |
16444 | { | |
16445 | #if wxUSE_UNICODE | |
16446 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16447 | #else | |
16448 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16449 | #endif | |
16450 | } | |
16451 | { | |
16452 | if (temp1) | |
16453 | delete arg1; | |
16454 | } | |
16455 | return resultobj; | |
16456 | fail: | |
16457 | { | |
16458 | if (temp1) | |
16459 | delete arg1; | |
16460 | } | |
16461 | return NULL; | |
16462 | } | |
16463 | ||
16464 | ||
2f4c0a16 | 16465 | static int _wrap_DateFormatStr_set(PyObject *_val) { |
d03fd34d RD |
16466 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); |
16467 | return 1; | |
16468 | } | |
16469 | ||
16470 | ||
16471 | static PyObject *_wrap_DateFormatStr_get() { | |
16472 | PyObject *pyobj; | |
16473 | ||
16474 | { | |
16475 | #if wxUSE_UNICODE | |
16476 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16477 | #else | |
16478 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16479 | #endif | |
16480 | } | |
16481 | return pyobj; | |
16482 | } | |
16483 | ||
16484 | ||
2f4c0a16 | 16485 | static int _wrap_TimeSpanFormatStr_set(PyObject *_val) { |
d03fd34d RD |
16486 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); |
16487 | return 1; | |
16488 | } | |
16489 | ||
16490 | ||
16491 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
16492 | PyObject *pyobj; | |
16493 | ||
16494 | { | |
16495 | #if wxUSE_UNICODE | |
16496 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16497 | #else | |
16498 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16499 | #endif | |
16500 | } | |
16501 | return pyobj; | |
16502 | } | |
16503 | ||
16504 | ||
d14a1e28 RD |
16505 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { |
16506 | PyObject *resultobj; | |
16507 | int arg1 ; | |
8edf1c75 | 16508 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16509 | char *kwnames[] = { |
16510 | (char *) "country", NULL | |
16511 | }; | |
16512 | ||
8edf1c75 | 16513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
16514 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); |
16515 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16516 | { |
16517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16518 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
16519 | ||
16520 | wxPyEndAllowThreads(__tstate); | |
16521 | if (PyErr_Occurred()) SWIG_fail; | |
16522 | } | |
16523 | Py_INCREF(Py_None); resultobj = Py_None; | |
16524 | return resultobj; | |
16525 | fail: | |
16526 | return NULL; | |
16527 | } | |
16528 | ||
16529 | ||
16530 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16531 | PyObject *resultobj; | |
16532 | int result; | |
16533 | char *kwnames[] = { | |
16534 | NULL | |
16535 | }; | |
16536 | ||
16537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
16538 | { | |
16539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16540 | result = (int)wxDateTime::GetCountry(); | |
16541 | ||
16542 | wxPyEndAllowThreads(__tstate); | |
16543 | if (PyErr_Occurred()) SWIG_fail; | |
16544 | } | |
2f4c0a16 | 16545 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16546 | return resultobj; |
16547 | fail: | |
16548 | return NULL; | |
16549 | } | |
16550 | ||
16551 | ||
16552 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16553 | PyObject *resultobj; | |
16554 | int arg1 = (int) wxDateTime::Country_Default ; | |
16555 | bool result; | |
8edf1c75 | 16556 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16557 | char *kwnames[] = { |
16558 | (char *) "country", NULL | |
16559 | }; | |
16560 | ||
8edf1c75 RD |
16561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; |
16562 | if (obj0) { | |
2f4c0a16 RD |
16563 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); |
16564 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16565 | } |
d14a1e28 RD |
16566 | { |
16567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16568 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
16569 | ||
16570 | wxPyEndAllowThreads(__tstate); | |
16571 | if (PyErr_Occurred()) SWIG_fail; | |
16572 | } | |
4e760a36 | 16573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16574 | return resultobj; |
16575 | fail: | |
16576 | return NULL; | |
16577 | } | |
16578 | ||
16579 | ||
16580 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16581 | PyObject *resultobj; | |
16582 | int arg1 = (int) wxDateTime::Gregorian ; | |
16583 | int result; | |
8edf1c75 | 16584 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16585 | char *kwnames[] = { |
16586 | (char *) "cal", NULL | |
16587 | }; | |
16588 | ||
8edf1c75 RD |
16589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; |
16590 | if (obj0) { | |
2f4c0a16 RD |
16591 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); |
16592 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16593 | } |
d14a1e28 RD |
16594 | { |
16595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16596 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
16597 | ||
16598 | wxPyEndAllowThreads(__tstate); | |
16599 | if (PyErr_Occurred()) SWIG_fail; | |
16600 | } | |
2f4c0a16 | 16601 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16602 | return resultobj; |
16603 | fail: | |
16604 | return NULL; | |
16605 | } | |
16606 | ||
16607 | ||
16608 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16609 | PyObject *resultobj; | |
16610 | int arg1 ; | |
16611 | int result; | |
8edf1c75 | 16612 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16613 | char *kwnames[] = { |
16614 | (char *) "year", NULL | |
16615 | }; | |
16616 | ||
8edf1c75 | 16617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
16618 | arg1 = (int) SWIG_AsInt(obj0); |
16619 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16620 | { |
16621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16622 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
16623 | ||
16624 | wxPyEndAllowThreads(__tstate); | |
16625 | if (PyErr_Occurred()) SWIG_fail; | |
16626 | } | |
2f4c0a16 | 16627 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16628 | return resultobj; |
16629 | fail: | |
16630 | return NULL; | |
16631 | } | |
16632 | ||
16633 | ||
16634 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16635 | PyObject *resultobj; | |
16636 | int arg1 = (int) wxDateTime::Gregorian ; | |
16637 | int result; | |
8edf1c75 | 16638 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16639 | char *kwnames[] = { |
16640 | (char *) "cal", NULL | |
16641 | }; | |
16642 | ||
8edf1c75 RD |
16643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; |
16644 | if (obj0) { | |
2f4c0a16 RD |
16645 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); |
16646 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16647 | } |
d14a1e28 RD |
16648 | { |
16649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16650 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
16651 | ||
16652 | wxPyEndAllowThreads(__tstate); | |
16653 | if (PyErr_Occurred()) SWIG_fail; | |
16654 | } | |
2f4c0a16 | 16655 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16656 | return resultobj; |
16657 | fail: | |
16658 | return NULL; | |
16659 | } | |
16660 | ||
16661 | ||
16662 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16663 | PyObject *resultobj; | |
16664 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16665 | int arg2 = (int) wxDateTime::Gregorian ; | |
16666 | bool result; | |
8edf1c75 RD |
16667 | PyObject * obj0 = 0 ; |
16668 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16669 | char *kwnames[] = { |
16670 | (char *) "year",(char *) "cal", NULL | |
16671 | }; | |
16672 | ||
8edf1c75 RD |
16673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; |
16674 | if (obj0) { | |
2f4c0a16 RD |
16675 | arg1 = (int) SWIG_AsInt(obj0); |
16676 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16677 | } |
16678 | if (obj1) { | |
2f4c0a16 RD |
16679 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); |
16680 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16681 | } |
d14a1e28 RD |
16682 | { |
16683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16684 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
16685 | ||
16686 | wxPyEndAllowThreads(__tstate); | |
16687 | if (PyErr_Occurred()) SWIG_fail; | |
16688 | } | |
4e760a36 | 16689 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16690 | return resultobj; |
16691 | fail: | |
16692 | return NULL; | |
16693 | } | |
16694 | ||
16695 | ||
16696 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16697 | PyObject *resultobj; | |
16698 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16699 | int result; | |
8edf1c75 | 16700 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16701 | char *kwnames[] = { |
16702 | (char *) "year", NULL | |
16703 | }; | |
16704 | ||
8edf1c75 RD |
16705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; |
16706 | if (obj0) { | |
2f4c0a16 RD |
16707 | arg1 = (int) SWIG_AsInt(obj0); |
16708 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16709 | } |
d14a1e28 RD |
16710 | { |
16711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16712 | result = (int)wxDateTime::GetCentury(arg1); | |
16713 | ||
16714 | wxPyEndAllowThreads(__tstate); | |
16715 | if (PyErr_Occurred()) SWIG_fail; | |
16716 | } | |
2f4c0a16 | 16717 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16718 | return resultobj; |
16719 | fail: | |
16720 | return NULL; | |
16721 | } | |
16722 | ||
16723 | ||
16724 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16725 | PyObject *resultobj; | |
16726 | int arg1 ; | |
16727 | int arg2 = (int) wxDateTime::Gregorian ; | |
44127b65 | 16728 | int result; |
8edf1c75 RD |
16729 | PyObject * obj0 = 0 ; |
16730 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16731 | char *kwnames[] = { |
16732 | (char *) "year",(char *) "cal", NULL | |
16733 | }; | |
16734 | ||
8edf1c75 | 16735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16736 | arg1 = (int) SWIG_AsInt(obj0); |
16737 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16738 | if (obj1) { |
2f4c0a16 RD |
16739 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); |
16740 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16741 | } |
d14a1e28 RD |
16742 | { |
16743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 16744 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); |
d14a1e28 RD |
16745 | |
16746 | wxPyEndAllowThreads(__tstate); | |
16747 | if (PyErr_Occurred()) SWIG_fail; | |
16748 | } | |
2f4c0a16 | 16749 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16750 | return resultobj; |
16751 | fail: | |
16752 | return NULL; | |
16753 | } | |
16754 | ||
16755 | ||
16756 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16757 | PyObject *resultobj; | |
16758 | int arg1 ; | |
16759 | int arg2 = (int) wxDateTime::Inv_Year ; | |
16760 | int arg3 = (int) wxDateTime::Gregorian ; | |
44127b65 | 16761 | int result; |
8edf1c75 RD |
16762 | PyObject * obj0 = 0 ; |
16763 | PyObject * obj1 = 0 ; | |
16764 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16765 | char *kwnames[] = { |
16766 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
16767 | }; | |
16768 | ||
8edf1c75 | 16769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16770 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); |
16771 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16772 | if (obj1) { |
2f4c0a16 RD |
16773 | arg2 = (int) SWIG_AsInt(obj1); |
16774 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16775 | } |
16776 | if (obj2) { | |
2f4c0a16 RD |
16777 | arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2); |
16778 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16779 | } |
d14a1e28 RD |
16780 | { |
16781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 16782 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); |
d14a1e28 RD |
16783 | |
16784 | wxPyEndAllowThreads(__tstate); | |
16785 | if (PyErr_Occurred()) SWIG_fail; | |
16786 | } | |
2f4c0a16 | 16787 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16788 | return resultobj; |
16789 | fail: | |
16790 | return NULL; | |
16791 | } | |
16792 | ||
16793 | ||
16794 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16795 | PyObject *resultobj; | |
16796 | int arg1 ; | |
16797 | int arg2 = (int) wxDateTime::Name_Full ; | |
16798 | wxString result; | |
8edf1c75 RD |
16799 | PyObject * obj0 = 0 ; |
16800 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16801 | char *kwnames[] = { |
16802 | (char *) "month",(char *) "flags", NULL | |
16803 | }; | |
16804 | ||
8edf1c75 | 16805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16806 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); |
16807 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16808 | if (obj1) { |
2f4c0a16 RD |
16809 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); |
16810 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16811 | } |
d14a1e28 RD |
16812 | { |
16813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16814 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
16815 | ||
16816 | wxPyEndAllowThreads(__tstate); | |
16817 | if (PyErr_Occurred()) SWIG_fail; | |
16818 | } | |
16819 | { | |
16820 | #if wxUSE_UNICODE | |
16821 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16822 | #else | |
16823 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16824 | #endif | |
16825 | } | |
16826 | return resultobj; | |
16827 | fail: | |
16828 | return NULL; | |
16829 | } | |
16830 | ||
16831 | ||
16832 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16833 | PyObject *resultobj; | |
16834 | int arg1 ; | |
16835 | int arg2 = (int) wxDateTime::Name_Full ; | |
16836 | wxString result; | |
8edf1c75 RD |
16837 | PyObject * obj0 = 0 ; |
16838 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16839 | char *kwnames[] = { |
16840 | (char *) "weekday",(char *) "flags", NULL | |
16841 | }; | |
16842 | ||
8edf1c75 | 16843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16844 | arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0); |
16845 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16846 | if (obj1) { |
2f4c0a16 RD |
16847 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); |
16848 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16849 | } |
d14a1e28 RD |
16850 | { |
16851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16852 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
16853 | ||
16854 | wxPyEndAllowThreads(__tstate); | |
16855 | if (PyErr_Occurred()) SWIG_fail; | |
16856 | } | |
16857 | { | |
16858 | #if wxUSE_UNICODE | |
16859 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16860 | #else | |
16861 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16862 | #endif | |
16863 | } | |
16864 | return resultobj; | |
16865 | fail: | |
16866 | return NULL; | |
16867 | } | |
16868 | ||
16869 | ||
16870 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16871 | PyObject *resultobj; | |
16872 | wxString *arg1 = (wxString *) 0 ; | |
16873 | wxString *arg2 = (wxString *) 0 ; | |
f775c30d RD |
16874 | bool temp1 = False ; |
16875 | bool temp2 = False ; | |
d14a1e28 RD |
16876 | PyObject * obj0 = 0 ; |
16877 | PyObject * obj1 = 0 ; | |
16878 | char *kwnames[] = { | |
16879 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
16880 | }; | |
16881 | ||
16882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
f775c30d RD |
16883 | { |
16884 | arg1 = wxString_in_helper(obj0); | |
16885 | if (arg1 == NULL) SWIG_fail; | |
16886 | temp1 = True; | |
16887 | } | |
16888 | { | |
16889 | arg2 = wxString_in_helper(obj1); | |
16890 | if (arg2 == NULL) SWIG_fail; | |
16891 | temp2 = True; | |
16892 | } | |
d14a1e28 RD |
16893 | { |
16894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16895 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
16896 | ||
16897 | wxPyEndAllowThreads(__tstate); | |
16898 | if (PyErr_Occurred()) SWIG_fail; | |
16899 | } | |
16900 | Py_INCREF(Py_None); resultobj = Py_None; | |
f775c30d RD |
16901 | { |
16902 | if (temp1) | |
16903 | delete arg1; | |
16904 | } | |
16905 | { | |
16906 | if (temp2) | |
16907 | delete arg2; | |
16908 | } | |
d14a1e28 RD |
16909 | return resultobj; |
16910 | fail: | |
f775c30d RD |
16911 | { |
16912 | if (temp1) | |
16913 | delete arg1; | |
16914 | } | |
16915 | { | |
16916 | if (temp2) | |
16917 | delete arg2; | |
16918 | } | |
d14a1e28 RD |
16919 | return NULL; |
16920 | } | |
16921 | ||
16922 | ||
16923 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16924 | PyObject *resultobj; | |
16925 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16926 | int arg2 = (int) wxDateTime::Country_Default ; | |
16927 | bool result; | |
8edf1c75 RD |
16928 | PyObject * obj0 = 0 ; |
16929 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16930 | char *kwnames[] = { |
16931 | (char *) "year",(char *) "country", NULL | |
16932 | }; | |
16933 | ||
8edf1c75 RD |
16934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; |
16935 | if (obj0) { | |
2f4c0a16 RD |
16936 | arg1 = (int) SWIG_AsInt(obj0); |
16937 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16938 | } |
16939 | if (obj1) { | |
2f4c0a16 RD |
16940 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
16941 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16942 | } |
d14a1e28 RD |
16943 | { |
16944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16945 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
16946 | ||
16947 | wxPyEndAllowThreads(__tstate); | |
16948 | if (PyErr_Occurred()) SWIG_fail; | |
16949 | } | |
4e760a36 | 16950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16951 | return resultobj; |
16952 | fail: | |
16953 | return NULL; | |
16954 | } | |
16955 | ||
16956 | ||
16957 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16958 | PyObject *resultobj; | |
16959 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16960 | int arg2 = (int) wxDateTime::Country_Default ; | |
16961 | wxDateTime result; | |
8edf1c75 RD |
16962 | PyObject * obj0 = 0 ; |
16963 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16964 | char *kwnames[] = { |
16965 | (char *) "year",(char *) "country", NULL | |
16966 | }; | |
16967 | ||
8edf1c75 RD |
16968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; |
16969 | if (obj0) { | |
2f4c0a16 RD |
16970 | arg1 = (int) SWIG_AsInt(obj0); |
16971 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16972 | } |
16973 | if (obj1) { | |
2f4c0a16 RD |
16974 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
16975 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16976 | } |
d14a1e28 RD |
16977 | { |
16978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16979 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
16980 | ||
16981 | wxPyEndAllowThreads(__tstate); | |
16982 | if (PyErr_Occurred()) SWIG_fail; | |
16983 | } | |
16984 | { | |
16985 | wxDateTime * resultptr; | |
16986 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 16987 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
16988 | } |
16989 | return resultobj; | |
16990 | fail: | |
16991 | return NULL; | |
16992 | } | |
16993 | ||
16994 | ||
16995 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16996 | PyObject *resultobj; | |
16997 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16998 | int arg2 = (int) wxDateTime::Country_Default ; | |
16999 | wxDateTime result; | |
8edf1c75 RD |
17000 | PyObject * obj0 = 0 ; |
17001 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17002 | char *kwnames[] = { |
17003 | (char *) "year",(char *) "country", NULL | |
17004 | }; | |
17005 | ||
8edf1c75 RD |
17006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; |
17007 | if (obj0) { | |
2f4c0a16 RD |
17008 | arg1 = (int) SWIG_AsInt(obj0); |
17009 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17010 | } |
17011 | if (obj1) { | |
2f4c0a16 RD |
17012 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
17013 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17014 | } |
d14a1e28 RD |
17015 | { |
17016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17017 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
17018 | ||
17019 | wxPyEndAllowThreads(__tstate); | |
17020 | if (PyErr_Occurred()) SWIG_fail; | |
17021 | } | |
17022 | { | |
17023 | wxDateTime * resultptr; | |
17024 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 17025 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17026 | } |
17027 | return resultobj; | |
17028 | fail: | |
17029 | return NULL; | |
17030 | } | |
17031 | ||
17032 | ||
17033 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17034 | PyObject *resultobj; | |
17035 | wxDateTime result; | |
17036 | char *kwnames[] = { | |
17037 | NULL | |
17038 | }; | |
17039 | ||
17040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
17041 | { | |
17042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17043 | result = wxDateTime::Now(); | |
17044 | ||
17045 | wxPyEndAllowThreads(__tstate); | |
17046 | if (PyErr_Occurred()) SWIG_fail; | |
17047 | } | |
17048 | { | |
17049 | wxDateTime * resultptr; | |
17050 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 17051 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17052 | } |
17053 | return resultobj; | |
17054 | fail: | |
17055 | return NULL; | |
17056 | } | |
17057 | ||
17058 | ||
17059 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17060 | PyObject *resultobj; | |
17061 | wxDateTime result; | |
17062 | char *kwnames[] = { | |
17063 | NULL | |
17064 | }; | |
17065 | ||
17066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
17067 | { | |
17068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17069 | result = wxDateTime::UNow(); | |
17070 | ||
17071 | wxPyEndAllowThreads(__tstate); | |
17072 | if (PyErr_Occurred()) SWIG_fail; | |
17073 | } | |
17074 | { | |
17075 | wxDateTime * resultptr; | |
17076 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 17077 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17078 | } |
17079 | return resultobj; | |
17080 | fail: | |
17081 | return NULL; | |
17082 | } | |
17083 | ||
17084 | ||
17085 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17086 | PyObject *resultobj; | |
17087 | wxDateTime result; | |
17088 | char *kwnames[] = { | |
17089 | NULL | |
17090 | }; | |
17091 | ||
17092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
17093 | { | |
17094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17095 | result = wxDateTime::Today(); | |
17096 | ||
17097 | wxPyEndAllowThreads(__tstate); | |
17098 | if (PyErr_Occurred()) SWIG_fail; | |
17099 | } | |
17100 | { | |
17101 | wxDateTime * resultptr; | |
17102 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 17103 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17104 | } |
17105 | return resultobj; | |
17106 | fail: | |
17107 | return NULL; | |
17108 | } | |
17109 | ||
17110 | ||
17111 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17112 | PyObject *resultobj; | |
17113 | wxDateTime *result; | |
17114 | char *kwnames[] = { | |
17115 | NULL | |
17116 | }; | |
17117 | ||
17118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
17119 | { | |
17120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17121 | result = (wxDateTime *)new wxDateTime(); | |
17122 | ||
17123 | wxPyEndAllowThreads(__tstate); | |
17124 | if (PyErr_Occurred()) SWIG_fail; | |
17125 | } | |
2f4c0a16 | 17126 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17127 | return resultobj; |
17128 | fail: | |
17129 | return NULL; | |
17130 | } | |
17131 | ||
17132 | ||
17133 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17134 | PyObject *resultobj; | |
17135 | time_t arg1 ; | |
17136 | wxDateTime *result; | |
17137 | PyObject * obj0 = 0 ; | |
17138 | char *kwnames[] = { | |
17139 | (char *) "timet", NULL | |
17140 | }; | |
17141 | ||
17142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17143 | arg1 = (time_t) SWIG_AsUnsignedInt(obj0); |
17144 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17145 | { |
17146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17147 | result = (wxDateTime *)new wxDateTime(arg1); | |
17148 | ||
17149 | wxPyEndAllowThreads(__tstate); | |
17150 | if (PyErr_Occurred()) SWIG_fail; | |
17151 | } | |
2f4c0a16 | 17152 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17153 | return resultobj; |
17154 | fail: | |
17155 | return NULL; | |
17156 | } | |
17157 | ||
17158 | ||
17159 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17160 | PyObject *resultobj; | |
17161 | double arg1 ; | |
17162 | wxDateTime *result; | |
8edf1c75 | 17163 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17164 | char *kwnames[] = { |
17165 | (char *) "jdn", NULL | |
17166 | }; | |
17167 | ||
8edf1c75 | 17168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
17169 | arg1 = (double) SWIG_AsDouble(obj0); |
17170 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17171 | { |
17172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17173 | result = (wxDateTime *)new wxDateTime(arg1); | |
17174 | ||
17175 | wxPyEndAllowThreads(__tstate); | |
17176 | if (PyErr_Occurred()) SWIG_fail; | |
17177 | } | |
2f4c0a16 | 17178 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17179 | return resultobj; |
17180 | fail: | |
17181 | return NULL; | |
17182 | } | |
17183 | ||
17184 | ||
17185 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17186 | PyObject *resultobj; | |
44127b65 RD |
17187 | int arg1 ; |
17188 | int arg2 = (int) 0 ; | |
17189 | int arg3 = (int) 0 ; | |
17190 | int arg4 = (int) 0 ; | |
d14a1e28 | 17191 | wxDateTime *result; |
8edf1c75 RD |
17192 | PyObject * obj0 = 0 ; |
17193 | PyObject * obj1 = 0 ; | |
17194 | PyObject * obj2 = 0 ; | |
17195 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
17196 | char *kwnames[] = { |
17197 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17198 | }; | |
17199 | ||
8edf1c75 | 17200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
17201 | arg1 = (int) SWIG_AsInt(obj0); |
17202 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17203 | if (obj1) { |
2f4c0a16 RD |
17204 | arg2 = (int) SWIG_AsInt(obj1); |
17205 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17206 | } |
17207 | if (obj2) { | |
2f4c0a16 RD |
17208 | arg3 = (int) SWIG_AsInt(obj2); |
17209 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17210 | } |
17211 | if (obj3) { | |
2f4c0a16 RD |
17212 | arg4 = (int) SWIG_AsInt(obj3); |
17213 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17214 | } |
d14a1e28 RD |
17215 | { |
17216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17217 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
17218 | ||
17219 | wxPyEndAllowThreads(__tstate); | |
17220 | if (PyErr_Occurred()) SWIG_fail; | |
17221 | } | |
2f4c0a16 | 17222 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17223 | return resultobj; |
17224 | fail: | |
17225 | return NULL; | |
17226 | } | |
17227 | ||
17228 | ||
17229 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17230 | PyObject *resultobj; | |
44127b65 | 17231 | int arg1 ; |
d14a1e28 RD |
17232 | int arg2 = (int) wxDateTime::Inv_Month ; |
17233 | int arg3 = (int) wxDateTime::Inv_Year ; | |
44127b65 RD |
17234 | int arg4 = (int) 0 ; |
17235 | int arg5 = (int) 0 ; | |
17236 | int arg6 = (int) 0 ; | |
17237 | int arg7 = (int) 0 ; | |
d14a1e28 | 17238 | wxDateTime *result; |
8edf1c75 RD |
17239 | PyObject * obj0 = 0 ; |
17240 | PyObject * obj1 = 0 ; | |
17241 | PyObject * obj2 = 0 ; | |
17242 | PyObject * obj3 = 0 ; | |
17243 | PyObject * obj4 = 0 ; | |
17244 | PyObject * obj5 = 0 ; | |
17245 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
17246 | char *kwnames[] = { |
17247 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17248 | }; | |
17249 | ||
8edf1c75 | 17250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
17251 | arg1 = (int) SWIG_AsInt(obj0); |
17252 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17253 | if (obj1) { |
2f4c0a16 RD |
17254 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
17255 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17256 | } |
17257 | if (obj2) { | |
2f4c0a16 RD |
17258 | arg3 = (int) SWIG_AsInt(obj2); |
17259 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17260 | } |
17261 | if (obj3) { | |
2f4c0a16 RD |
17262 | arg4 = (int) SWIG_AsInt(obj3); |
17263 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17264 | } |
17265 | if (obj4) { | |
2f4c0a16 RD |
17266 | arg5 = (int) SWIG_AsInt(obj4); |
17267 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17268 | } |
17269 | if (obj5) { | |
2f4c0a16 RD |
17270 | arg6 = (int) SWIG_AsInt(obj5); |
17271 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17272 | } |
17273 | if (obj6) { | |
2f4c0a16 RD |
17274 | arg7 = (int) SWIG_AsInt(obj6); |
17275 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17276 | } |
d14a1e28 RD |
17277 | { |
17278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17279 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
17280 | ||
17281 | wxPyEndAllowThreads(__tstate); | |
17282 | if (PyErr_Occurred()) SWIG_fail; | |
17283 | } | |
2f4c0a16 | 17284 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17285 | return resultobj; |
17286 | fail: | |
17287 | return NULL; | |
17288 | } | |
17289 | ||
17290 | ||
17291 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17292 | PyObject *resultobj; | |
17293 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17294 | PyObject * obj0 = 0 ; | |
17295 | char *kwnames[] = { | |
17296 | (char *) "self", NULL | |
17297 | }; | |
17298 | ||
17299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17302 | { |
17303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17304 | delete arg1; | |
17305 | ||
17306 | wxPyEndAllowThreads(__tstate); | |
17307 | if (PyErr_Occurred()) SWIG_fail; | |
17308 | } | |
17309 | Py_INCREF(Py_None); resultobj = Py_None; | |
17310 | return resultobj; | |
17311 | fail: | |
17312 | return NULL; | |
17313 | } | |
17314 | ||
17315 | ||
17316 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17317 | PyObject *resultobj; | |
17318 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17319 | wxDateTime *result; | |
17320 | PyObject * obj0 = 0 ; | |
17321 | char *kwnames[] = { | |
17322 | (char *) "self", NULL | |
17323 | }; | |
17324 | ||
17325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17328 | { |
17329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17330 | { | |
17331 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
17332 | result = (wxDateTime *) &_result_ref; | |
17333 | } | |
17334 | ||
17335 | wxPyEndAllowThreads(__tstate); | |
17336 | if (PyErr_Occurred()) SWIG_fail; | |
17337 | } | |
2f4c0a16 | 17338 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17339 | return resultobj; |
17340 | fail: | |
17341 | return NULL; | |
17342 | } | |
17343 | ||
17344 | ||
17345 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17346 | PyObject *resultobj; | |
17347 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17348 | time_t arg2 ; | |
17349 | wxDateTime *result; | |
17350 | PyObject * obj0 = 0 ; | |
17351 | PyObject * obj1 = 0 ; | |
17352 | char *kwnames[] = { | |
17353 | (char *) "self",(char *) "timet", NULL | |
17354 | }; | |
17355 | ||
17356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17359 | arg2 = (time_t) SWIG_AsUnsignedInt(obj1); | |
17360 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17361 | { |
17362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17363 | { | |
17364 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17365 | result = (wxDateTime *) &_result_ref; | |
17366 | } | |
17367 | ||
17368 | wxPyEndAllowThreads(__tstate); | |
17369 | if (PyErr_Occurred()) SWIG_fail; | |
17370 | } | |
2f4c0a16 | 17371 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17372 | return resultobj; |
17373 | fail: | |
17374 | return NULL; | |
17375 | } | |
17376 | ||
17377 | ||
17378 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17379 | PyObject *resultobj; | |
17380 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17381 | double arg2 ; | |
17382 | wxDateTime *result; | |
17383 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17384 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17385 | char *kwnames[] = { |
17386 | (char *) "self",(char *) "jdn", NULL | |
17387 | }; | |
17388 | ||
8edf1c75 | 17389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17392 | arg2 = (double) SWIG_AsDouble(obj1); | |
17393 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17394 | { |
17395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17396 | { | |
17397 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17398 | result = (wxDateTime *) &_result_ref; | |
17399 | } | |
17400 | ||
17401 | wxPyEndAllowThreads(__tstate); | |
17402 | if (PyErr_Occurred()) SWIG_fail; | |
17403 | } | |
2f4c0a16 | 17404 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17405 | return resultobj; |
17406 | fail: | |
17407 | return NULL; | |
17408 | } | |
17409 | ||
17410 | ||
17411 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17412 | PyObject *resultobj; | |
17413 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 RD |
17414 | int arg2 ; |
17415 | int arg3 = (int) 0 ; | |
17416 | int arg4 = (int) 0 ; | |
17417 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
17418 | wxDateTime *result; |
17419 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17420 | PyObject * obj1 = 0 ; |
17421 | PyObject * obj2 = 0 ; | |
17422 | PyObject * obj3 = 0 ; | |
17423 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
17424 | char *kwnames[] = { |
17425 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17426 | }; | |
17427 | ||
8edf1c75 | 17428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
17429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17431 | arg2 = (int) SWIG_AsInt(obj1); | |
17432 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17433 | if (obj2) { |
2f4c0a16 RD |
17434 | arg3 = (int) SWIG_AsInt(obj2); |
17435 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17436 | } |
17437 | if (obj3) { | |
2f4c0a16 RD |
17438 | arg4 = (int) SWIG_AsInt(obj3); |
17439 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17440 | } |
17441 | if (obj4) { | |
2f4c0a16 RD |
17442 | arg5 = (int) SWIG_AsInt(obj4); |
17443 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17444 | } |
d14a1e28 RD |
17445 | { |
17446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17447 | { | |
17448 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
17449 | result = (wxDateTime *) &_result_ref; | |
17450 | } | |
17451 | ||
17452 | wxPyEndAllowThreads(__tstate); | |
17453 | if (PyErr_Occurred()) SWIG_fail; | |
17454 | } | |
2f4c0a16 | 17455 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17456 | return resultobj; |
17457 | fail: | |
17458 | return NULL; | |
17459 | } | |
17460 | ||
17461 | ||
17462 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17463 | PyObject *resultobj; | |
17464 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 17465 | int arg2 ; |
d14a1e28 RD |
17466 | int arg3 = (int) wxDateTime::Inv_Month ; |
17467 | int arg4 = (int) wxDateTime::Inv_Year ; | |
44127b65 RD |
17468 | int arg5 = (int) 0 ; |
17469 | int arg6 = (int) 0 ; | |
17470 | int arg7 = (int) 0 ; | |
17471 | int arg8 = (int) 0 ; | |
d14a1e28 RD |
17472 | wxDateTime *result; |
17473 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17474 | PyObject * obj1 = 0 ; |
17475 | PyObject * obj2 = 0 ; | |
17476 | PyObject * obj3 = 0 ; | |
17477 | PyObject * obj4 = 0 ; | |
17478 | PyObject * obj5 = 0 ; | |
17479 | PyObject * obj6 = 0 ; | |
17480 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
17481 | char *kwnames[] = { |
17482 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17483 | }; | |
17484 | ||
8edf1c75 | 17485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
17486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17488 | arg2 = (int) SWIG_AsInt(obj1); | |
17489 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17490 | if (obj2) { |
2f4c0a16 RD |
17491 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
17492 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17493 | } |
17494 | if (obj3) { | |
2f4c0a16 RD |
17495 | arg4 = (int) SWIG_AsInt(obj3); |
17496 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17497 | } |
17498 | if (obj4) { | |
2f4c0a16 RD |
17499 | arg5 = (int) SWIG_AsInt(obj4); |
17500 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17501 | } |
17502 | if (obj5) { | |
2f4c0a16 RD |
17503 | arg6 = (int) SWIG_AsInt(obj5); |
17504 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17505 | } |
17506 | if (obj6) { | |
2f4c0a16 RD |
17507 | arg7 = (int) SWIG_AsInt(obj6); |
17508 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17509 | } |
17510 | if (obj7) { | |
2f4c0a16 RD |
17511 | arg8 = (int) SWIG_AsInt(obj7); |
17512 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17513 | } |
d14a1e28 RD |
17514 | { |
17515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17516 | { | |
17517 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
17518 | result = (wxDateTime *) &_result_ref; | |
17519 | } | |
17520 | ||
17521 | wxPyEndAllowThreads(__tstate); | |
17522 | if (PyErr_Occurred()) SWIG_fail; | |
17523 | } | |
2f4c0a16 | 17524 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17525 | return resultobj; |
17526 | fail: | |
17527 | return NULL; | |
17528 | } | |
17529 | ||
17530 | ||
17531 | static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17532 | PyObject *resultobj; | |
17533 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17534 | wxDateTime *result; | |
17535 | PyObject * obj0 = 0 ; | |
17536 | char *kwnames[] = { | |
17537 | (char *) "self", NULL | |
17538 | }; | |
17539 | ||
17540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17543 | { |
17544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17545 | { | |
17546 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
17547 | result = (wxDateTime *) &_result_ref; | |
17548 | } | |
17549 | ||
17550 | wxPyEndAllowThreads(__tstate); | |
17551 | if (PyErr_Occurred()) SWIG_fail; | |
17552 | } | |
2f4c0a16 | 17553 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17554 | return resultobj; |
17555 | fail: | |
17556 | return NULL; | |
17557 | } | |
17558 | ||
17559 | ||
17560 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17561 | PyObject *resultobj; | |
17562 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17563 | int arg2 ; | |
17564 | wxDateTime *result; | |
17565 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17566 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17567 | char *kwnames[] = { |
17568 | (char *) "self",(char *) "year", NULL | |
17569 | }; | |
17570 | ||
8edf1c75 | 17571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17574 | arg2 = (int) SWIG_AsInt(obj1); | |
17575 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17576 | { |
17577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17578 | { | |
17579 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
17580 | result = (wxDateTime *) &_result_ref; | |
17581 | } | |
17582 | ||
17583 | wxPyEndAllowThreads(__tstate); | |
17584 | if (PyErr_Occurred()) SWIG_fail; | |
17585 | } | |
2f4c0a16 | 17586 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17587 | return resultobj; |
17588 | fail: | |
17589 | return NULL; | |
17590 | } | |
17591 | ||
17592 | ||
17593 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17594 | PyObject *resultobj; | |
17595 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17596 | int arg2 ; | |
17597 | wxDateTime *result; | |
17598 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17599 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17600 | char *kwnames[] = { |
17601 | (char *) "self",(char *) "month", NULL | |
17602 | }; | |
17603 | ||
8edf1c75 | 17604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17607 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
17608 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17609 | { |
17610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17611 | { | |
17612 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
17613 | result = (wxDateTime *) &_result_ref; | |
17614 | } | |
17615 | ||
17616 | wxPyEndAllowThreads(__tstate); | |
17617 | if (PyErr_Occurred()) SWIG_fail; | |
17618 | } | |
2f4c0a16 | 17619 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17620 | return resultobj; |
17621 | fail: | |
17622 | return NULL; | |
17623 | } | |
17624 | ||
17625 | ||
17626 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17627 | PyObject *resultobj; | |
17628 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 17629 | int arg2 ; |
d14a1e28 RD |
17630 | wxDateTime *result; |
17631 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17632 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17633 | char *kwnames[] = { |
17634 | (char *) "self",(char *) "day", NULL | |
17635 | }; | |
17636 | ||
8edf1c75 | 17637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17640 | arg2 = (int) SWIG_AsInt(obj1); | |
17641 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17642 | { |
17643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17644 | { | |
17645 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
17646 | result = (wxDateTime *) &_result_ref; | |
17647 | } | |
17648 | ||
17649 | wxPyEndAllowThreads(__tstate); | |
17650 | if (PyErr_Occurred()) SWIG_fail; | |
17651 | } | |
2f4c0a16 | 17652 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17653 | return resultobj; |
17654 | fail: | |
17655 | return NULL; | |
17656 | } | |
17657 | ||
17658 | ||
17659 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17660 | PyObject *resultobj; | |
17661 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 17662 | int arg2 ; |
d14a1e28 RD |
17663 | wxDateTime *result; |
17664 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17665 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17666 | char *kwnames[] = { |
17667 | (char *) "self",(char *) "hour", NULL | |
17668 | }; | |
17669 | ||
8edf1c75 | 17670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17673 | arg2 = (int) SWIG_AsInt(obj1); | |
17674 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17675 | { |
17676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17677 | { | |
17678 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
17679 | result = (wxDateTime *) &_result_ref; | |
17680 | } | |
17681 | ||
17682 | wxPyEndAllowThreads(__tstate); | |
17683 | if (PyErr_Occurred()) SWIG_fail; | |
17684 | } | |
2f4c0a16 | 17685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17686 | return resultobj; |
17687 | fail: | |
17688 | return NULL; | |
17689 | } | |
17690 | ||
17691 | ||
17692 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17693 | PyObject *resultobj; | |
17694 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 17695 | int arg2 ; |
d14a1e28 RD |
17696 | wxDateTime *result; |
17697 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17698 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17699 | char *kwnames[] = { |
17700 | (char *) "self",(char *) "minute", NULL | |
17701 | }; | |
17702 | ||
8edf1c75 | 17703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17706 | arg2 = (int) SWIG_AsInt(obj1); | |
17707 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17708 | { |
17709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17710 | { | |
17711 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
17712 | result = (wxDateTime *) &_result_ref; | |
17713 | } | |
17714 | ||
17715 | wxPyEndAllowThreads(__tstate); | |
17716 | if (PyErr_Occurred()) SWIG_fail; | |
17717 | } | |
2f4c0a16 | 17718 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17719 | return resultobj; |
17720 | fail: | |
17721 | return NULL; | |
17722 | } | |
17723 | ||
17724 | ||
17725 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17726 | PyObject *resultobj; | |
17727 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 17728 | int arg2 ; |
d14a1e28 RD |
17729 | wxDateTime *result; |
17730 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17731 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17732 | char *kwnames[] = { |
17733 | (char *) "self",(char *) "second", NULL | |
17734 | }; | |
17735 | ||
8edf1c75 | 17736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17739 | arg2 = (int) SWIG_AsInt(obj1); | |
17740 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17741 | { |
17742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17743 | { | |
17744 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
17745 | result = (wxDateTime *) &_result_ref; | |
17746 | } | |
17747 | ||
17748 | wxPyEndAllowThreads(__tstate); | |
17749 | if (PyErr_Occurred()) SWIG_fail; | |
17750 | } | |
2f4c0a16 | 17751 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17752 | return resultobj; |
17753 | fail: | |
17754 | return NULL; | |
17755 | } | |
17756 | ||
17757 | ||
17758 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17759 | PyObject *resultobj; | |
17760 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 17761 | int arg2 ; |
d14a1e28 RD |
17762 | wxDateTime *result; |
17763 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17764 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17765 | char *kwnames[] = { |
17766 | (char *) "self",(char *) "millisecond", NULL | |
17767 | }; | |
17768 | ||
8edf1c75 | 17769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17772 | arg2 = (int) SWIG_AsInt(obj1); | |
17773 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17774 | { |
17775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17776 | { | |
17777 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
17778 | result = (wxDateTime *) &_result_ref; | |
17779 | } | |
17780 | ||
17781 | wxPyEndAllowThreads(__tstate); | |
17782 | if (PyErr_Occurred()) SWIG_fail; | |
17783 | } | |
2f4c0a16 | 17784 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17785 | return resultobj; |
17786 | fail: | |
17787 | return NULL; | |
17788 | } | |
17789 | ||
17790 | ||
17791 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17792 | PyObject *resultobj; | |
17793 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17794 | int arg2 ; | |
17795 | int arg3 = (int) wxDateTime::Monday_First ; | |
17796 | wxDateTime *result; | |
17797 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17798 | PyObject * obj1 = 0 ; |
17799 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17800 | char *kwnames[] = { |
17801 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
17802 | }; | |
17803 | ||
8edf1c75 | 17804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
17805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17807 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
17808 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17809 | if (obj2) { |
2f4c0a16 RD |
17810 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); |
17811 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17812 | } |
d14a1e28 RD |
17813 | { |
17814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17815 | { | |
17816 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
17817 | result = (wxDateTime *) &_result_ref; | |
17818 | } | |
17819 | ||
17820 | wxPyEndAllowThreads(__tstate); | |
17821 | if (PyErr_Occurred()) SWIG_fail; | |
17822 | } | |
2f4c0a16 | 17823 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17824 | return resultobj; |
17825 | fail: | |
17826 | return NULL; | |
17827 | } | |
17828 | ||
17829 | ||
17830 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17831 | PyObject *resultobj; | |
17832 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17833 | int arg2 ; | |
17834 | int arg3 = (int) wxDateTime::Monday_First ; | |
17835 | wxDateTime result; | |
17836 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17837 | PyObject * obj1 = 0 ; |
17838 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17839 | char *kwnames[] = { |
17840 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
17841 | }; | |
17842 | ||
8edf1c75 | 17843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
17844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17846 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
17847 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17848 | if (obj2) { |
2f4c0a16 RD |
17849 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); |
17850 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17851 | } |
d14a1e28 RD |
17852 | { |
17853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17854 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
17855 | ||
17856 | wxPyEndAllowThreads(__tstate); | |
17857 | if (PyErr_Occurred()) SWIG_fail; | |
17858 | } | |
17859 | { | |
17860 | wxDateTime * resultptr; | |
17861 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 17862 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17863 | } |
17864 | return resultobj; | |
17865 | fail: | |
17866 | return NULL; | |
17867 | } | |
17868 | ||
17869 | ||
17870 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17871 | PyObject *resultobj; | |
17872 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17873 | int arg2 ; | |
17874 | wxDateTime *result; | |
17875 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17876 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17877 | char *kwnames[] = { |
17878 | (char *) "self",(char *) "weekday", NULL | |
17879 | }; | |
17880 | ||
8edf1c75 | 17881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17884 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
17885 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17886 | { |
17887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17888 | { | |
17889 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
17890 | result = (wxDateTime *) &_result_ref; | |
17891 | } | |
17892 | ||
17893 | wxPyEndAllowThreads(__tstate); | |
17894 | if (PyErr_Occurred()) SWIG_fail; | |
17895 | } | |
2f4c0a16 | 17896 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17897 | return resultobj; |
17898 | fail: | |
17899 | return NULL; | |
17900 | } | |
17901 | ||
17902 | ||
17903 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17904 | PyObject *resultobj; | |
17905 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17906 | int arg2 ; | |
17907 | wxDateTime result; | |
17908 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17909 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17910 | char *kwnames[] = { |
17911 | (char *) "self",(char *) "weekday", NULL | |
17912 | }; | |
17913 | ||
8edf1c75 | 17914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17917 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
17918 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17919 | { |
17920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17921 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
17922 | ||
17923 | wxPyEndAllowThreads(__tstate); | |
17924 | if (PyErr_Occurred()) SWIG_fail; | |
17925 | } | |
17926 | { | |
17927 | wxDateTime * resultptr; | |
17928 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 17929 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17930 | } |
17931 | return resultobj; | |
17932 | fail: | |
17933 | return NULL; | |
17934 | } | |
17935 | ||
17936 | ||
17937 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17938 | PyObject *resultobj; | |
17939 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17940 | int arg2 ; | |
17941 | wxDateTime *result; | |
17942 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17943 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17944 | char *kwnames[] = { |
17945 | (char *) "self",(char *) "weekday", NULL | |
17946 | }; | |
17947 | ||
8edf1c75 | 17948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17951 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
17952 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17953 | { |
17954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17955 | { | |
17956 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
17957 | result = (wxDateTime *) &_result_ref; | |
17958 | } | |
17959 | ||
17960 | wxPyEndAllowThreads(__tstate); | |
17961 | if (PyErr_Occurred()) SWIG_fail; | |
17962 | } | |
2f4c0a16 | 17963 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17964 | return resultobj; |
17965 | fail: | |
17966 | return NULL; | |
17967 | } | |
17968 | ||
17969 | ||
17970 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17971 | PyObject *resultobj; | |
17972 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17973 | int arg2 ; | |
17974 | wxDateTime result; | |
17975 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17976 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17977 | char *kwnames[] = { |
17978 | (char *) "self",(char *) "weekday", NULL | |
17979 | }; | |
17980 | ||
8edf1c75 | 17981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17984 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
17985 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17986 | { |
17987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17988 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
17989 | ||
17990 | wxPyEndAllowThreads(__tstate); | |
17991 | if (PyErr_Occurred()) SWIG_fail; | |
17992 | } | |
17993 | { | |
17994 | wxDateTime * resultptr; | |
17995 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 17996 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17997 | } |
17998 | return resultobj; | |
17999 | fail: | |
18000 | return NULL; | |
18001 | } | |
18002 | ||
18003 | ||
18004 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18005 | PyObject *resultobj; | |
18006 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18007 | int arg2 ; | |
18008 | int arg3 = (int) 1 ; | |
18009 | int arg4 = (int) wxDateTime::Inv_Month ; | |
18010 | int arg5 = (int) wxDateTime::Inv_Year ; | |
18011 | bool result; | |
18012 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18013 | PyObject * obj1 = 0 ; |
18014 | PyObject * obj2 = 0 ; | |
18015 | PyObject * obj3 = 0 ; | |
18016 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
18017 | char *kwnames[] = { |
18018 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
18019 | }; | |
18020 | ||
8edf1c75 | 18021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
18022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18024 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18025 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18026 | if (obj2) { |
2f4c0a16 RD |
18027 | arg3 = (int) SWIG_AsInt(obj2); |
18028 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
18029 | } |
18030 | if (obj3) { | |
2f4c0a16 RD |
18031 | arg4 = (wxDateTime::Month) SWIG_AsInt(obj3); |
18032 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
18033 | } |
18034 | if (obj4) { | |
2f4c0a16 RD |
18035 | arg5 = (int) SWIG_AsInt(obj4); |
18036 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18037 | } |
d14a1e28 RD |
18038 | { |
18039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18040 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
18041 | ||
18042 | wxPyEndAllowThreads(__tstate); | |
18043 | if (PyErr_Occurred()) SWIG_fail; | |
18044 | } | |
4e760a36 | 18045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18046 | return resultobj; |
18047 | fail: | |
18048 | return NULL; | |
18049 | } | |
18050 | ||
18051 | ||
18052 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18053 | PyObject *resultobj; | |
18054 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18055 | int arg2 ; | |
18056 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18057 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18058 | bool result; | |
18059 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18060 | PyObject * obj1 = 0 ; |
18061 | PyObject * obj2 = 0 ; | |
18062 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18063 | char *kwnames[] = { |
18064 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18065 | }; | |
18066 | ||
8edf1c75 | 18067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
18068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18070 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18071 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18072 | if (obj2) { |
2f4c0a16 RD |
18073 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
18074 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
18075 | } |
18076 | if (obj3) { | |
2f4c0a16 RD |
18077 | arg4 = (int) SWIG_AsInt(obj3); |
18078 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18079 | } |
d14a1e28 RD |
18080 | { |
18081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18082 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18083 | ||
18084 | wxPyEndAllowThreads(__tstate); | |
18085 | if (PyErr_Occurred()) SWIG_fail; | |
18086 | } | |
4e760a36 | 18087 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18088 | return resultobj; |
18089 | fail: | |
18090 | return NULL; | |
18091 | } | |
18092 | ||
18093 | ||
18094 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18095 | PyObject *resultobj; | |
18096 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18097 | int arg2 ; | |
18098 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18099 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18100 | wxDateTime result; | |
18101 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18102 | PyObject * obj1 = 0 ; |
18103 | PyObject * obj2 = 0 ; | |
18104 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18105 | char *kwnames[] = { |
18106 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18107 | }; | |
18108 | ||
8edf1c75 | 18109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
18110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18112 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18113 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18114 | if (obj2) { |
2f4c0a16 RD |
18115 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
18116 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
18117 | } |
18118 | if (obj3) { | |
2f4c0a16 RD |
18119 | arg4 = (int) SWIG_AsInt(obj3); |
18120 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18121 | } |
d14a1e28 RD |
18122 | { |
18123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18124 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18125 | ||
18126 | wxPyEndAllowThreads(__tstate); | |
18127 | if (PyErr_Occurred()) SWIG_fail; | |
18128 | } | |
18129 | { | |
18130 | wxDateTime * resultptr; | |
18131 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 18132 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18133 | } |
18134 | return resultobj; | |
18135 | fail: | |
18136 | return NULL; | |
18137 | } | |
18138 | ||
18139 | ||
18140 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18141 | PyObject *resultobj; | |
18142 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 18143 | int arg2 ; |
d14a1e28 RD |
18144 | int arg3 = (int) wxDateTime::Mon ; |
18145 | int arg4 = (int) wxDateTime::Monday_First ; | |
18146 | bool result; | |
18147 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18148 | PyObject * obj1 = 0 ; |
18149 | PyObject * obj2 = 0 ; | |
18150 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18151 | char *kwnames[] = { |
18152 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18153 | }; | |
18154 | ||
8edf1c75 | 18155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
18156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18158 | arg2 = (int) SWIG_AsInt(obj1); | |
18159 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18160 | if (obj2) { |
2f4c0a16 RD |
18161 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); |
18162 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
18163 | } |
18164 | if (obj3) { | |
2f4c0a16 RD |
18165 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); |
18166 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18167 | } |
d14a1e28 RD |
18168 | { |
18169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18170 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18171 | ||
18172 | wxPyEndAllowThreads(__tstate); | |
18173 | if (PyErr_Occurred()) SWIG_fail; | |
18174 | } | |
4e760a36 | 18175 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18176 | return resultobj; |
18177 | fail: | |
18178 | return NULL; | |
18179 | } | |
18180 | ||
18181 | ||
18182 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18183 | PyObject *resultobj; | |
18184 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 18185 | int arg2 ; |
d14a1e28 RD |
18186 | int arg3 = (int) wxDateTime::Mon ; |
18187 | int arg4 = (int) wxDateTime::Monday_First ; | |
18188 | wxDateTime result; | |
18189 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18190 | PyObject * obj1 = 0 ; |
18191 | PyObject * obj2 = 0 ; | |
18192 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18193 | char *kwnames[] = { |
18194 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18195 | }; | |
18196 | ||
8edf1c75 | 18197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
18198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18200 | arg2 = (int) SWIG_AsInt(obj1); | |
18201 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18202 | if (obj2) { |
2f4c0a16 RD |
18203 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); |
18204 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
18205 | } |
18206 | if (obj3) { | |
2f4c0a16 RD |
18207 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); |
18208 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18209 | } |
d14a1e28 RD |
18210 | { |
18211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18212 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18213 | ||
18214 | wxPyEndAllowThreads(__tstate); | |
18215 | if (PyErr_Occurred()) SWIG_fail; | |
18216 | } | |
18217 | { | |
18218 | wxDateTime * resultptr; | |
18219 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 18220 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18221 | } |
18222 | return resultobj; | |
18223 | fail: | |
18224 | return NULL; | |
18225 | } | |
18226 | ||
18227 | ||
18228 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18229 | PyObject *resultobj; | |
18230 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18231 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18232 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18233 | wxDateTime *result; | |
18234 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18235 | PyObject * obj1 = 0 ; |
18236 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18237 | char *kwnames[] = { |
18238 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18239 | }; | |
18240 | ||
8edf1c75 | 18241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
18242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 18244 | if (obj1) { |
2f4c0a16 RD |
18245 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
18246 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
18247 | } |
18248 | if (obj2) { | |
2f4c0a16 RD |
18249 | arg3 = (int) SWIG_AsInt(obj2); |
18250 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18251 | } |
d14a1e28 RD |
18252 | { |
18253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18254 | { | |
18255 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18256 | result = (wxDateTime *) &_result_ref; | |
18257 | } | |
18258 | ||
18259 | wxPyEndAllowThreads(__tstate); | |
18260 | if (PyErr_Occurred()) SWIG_fail; | |
18261 | } | |
2f4c0a16 | 18262 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18263 | return resultobj; |
18264 | fail: | |
18265 | return NULL; | |
18266 | } | |
18267 | ||
18268 | ||
18269 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18270 | PyObject *resultobj; | |
18271 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18272 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18273 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18274 | wxDateTime result; | |
18275 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18276 | PyObject * obj1 = 0 ; |
18277 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18278 | char *kwnames[] = { |
18279 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18280 | }; | |
18281 | ||
8edf1c75 | 18282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
18283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 18285 | if (obj1) { |
2f4c0a16 RD |
18286 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
18287 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
18288 | } |
18289 | if (obj2) { | |
2f4c0a16 RD |
18290 | arg3 = (int) SWIG_AsInt(obj2); |
18291 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18292 | } |
d14a1e28 RD |
18293 | { |
18294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18295 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18296 | ||
18297 | wxPyEndAllowThreads(__tstate); | |
18298 | if (PyErr_Occurred()) SWIG_fail; | |
18299 | } | |
18300 | { | |
18301 | wxDateTime * resultptr; | |
18302 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 18303 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18304 | } |
18305 | return resultobj; | |
18306 | fail: | |
18307 | return NULL; | |
18308 | } | |
18309 | ||
18310 | ||
18311 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18312 | PyObject *resultobj; | |
18313 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 18314 | int arg2 ; |
d14a1e28 RD |
18315 | wxDateTime *result; |
18316 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18317 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18318 | char *kwnames[] = { |
18319 | (char *) "self",(char *) "yday", NULL | |
18320 | }; | |
18321 | ||
8edf1c75 | 18322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18325 | arg2 = (int) SWIG_AsInt(obj1); | |
18326 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18327 | { |
18328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18329 | { | |
18330 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
18331 | result = (wxDateTime *) &_result_ref; | |
18332 | } | |
18333 | ||
18334 | wxPyEndAllowThreads(__tstate); | |
18335 | if (PyErr_Occurred()) SWIG_fail; | |
18336 | } | |
2f4c0a16 | 18337 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18338 | return resultobj; |
18339 | fail: | |
18340 | return NULL; | |
18341 | } | |
18342 | ||
18343 | ||
18344 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18345 | PyObject *resultobj; | |
18346 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 18347 | int arg2 ; |
d14a1e28 RD |
18348 | wxDateTime result; |
18349 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18350 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18351 | char *kwnames[] = { |
18352 | (char *) "self",(char *) "yday", NULL | |
18353 | }; | |
18354 | ||
8edf1c75 | 18355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18358 | arg2 = (int) SWIG_AsInt(obj1); | |
18359 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18360 | { |
18361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18362 | result = (arg1)->GetYearDay(arg2); | |
18363 | ||
18364 | wxPyEndAllowThreads(__tstate); | |
18365 | if (PyErr_Occurred()) SWIG_fail; | |
18366 | } | |
18367 | { | |
18368 | wxDateTime * resultptr; | |
18369 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 18370 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18371 | } |
18372 | return resultobj; | |
18373 | fail: | |
18374 | return NULL; | |
18375 | } | |
18376 | ||
18377 | ||
18378 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18379 | PyObject *resultobj; | |
18380 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18381 | double result; | |
18382 | PyObject * obj0 = 0 ; | |
18383 | char *kwnames[] = { | |
18384 | (char *) "self", NULL | |
18385 | }; | |
18386 | ||
18387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18390 | { |
18391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18392 | result = (double)(arg1)->GetJulianDayNumber(); | |
18393 | ||
18394 | wxPyEndAllowThreads(__tstate); | |
18395 | if (PyErr_Occurred()) SWIG_fail; | |
18396 | } | |
2f4c0a16 | 18397 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18398 | return resultobj; |
18399 | fail: | |
18400 | return NULL; | |
18401 | } | |
18402 | ||
18403 | ||
18404 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18405 | PyObject *resultobj; | |
18406 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18407 | double result; | |
18408 | PyObject * obj0 = 0 ; | |
18409 | char *kwnames[] = { | |
18410 | (char *) "self", NULL | |
18411 | }; | |
18412 | ||
18413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18416 | { |
18417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18418 | result = (double)(arg1)->GetJDN(); | |
18419 | ||
18420 | wxPyEndAllowThreads(__tstate); | |
18421 | if (PyErr_Occurred()) SWIG_fail; | |
18422 | } | |
2f4c0a16 | 18423 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18424 | return resultobj; |
18425 | fail: | |
18426 | return NULL; | |
18427 | } | |
18428 | ||
18429 | ||
18430 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18431 | PyObject *resultobj; | |
18432 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18433 | double result; | |
18434 | PyObject * obj0 = 0 ; | |
18435 | char *kwnames[] = { | |
18436 | (char *) "self", NULL | |
18437 | }; | |
18438 | ||
18439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18442 | { |
18443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18444 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
18445 | ||
18446 | wxPyEndAllowThreads(__tstate); | |
18447 | if (PyErr_Occurred()) SWIG_fail; | |
18448 | } | |
2f4c0a16 | 18449 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18450 | return resultobj; |
18451 | fail: | |
18452 | return NULL; | |
18453 | } | |
18454 | ||
18455 | ||
18456 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18457 | PyObject *resultobj; | |
18458 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18459 | double result; | |
18460 | PyObject * obj0 = 0 ; | |
18461 | char *kwnames[] = { | |
18462 | (char *) "self", NULL | |
18463 | }; | |
18464 | ||
18465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18468 | { |
18469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18470 | result = (double)(arg1)->GetMJD(); | |
18471 | ||
18472 | wxPyEndAllowThreads(__tstate); | |
18473 | if (PyErr_Occurred()) SWIG_fail; | |
18474 | } | |
2f4c0a16 | 18475 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18476 | return resultobj; |
18477 | fail: | |
18478 | return NULL; | |
18479 | } | |
18480 | ||
18481 | ||
18482 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18483 | PyObject *resultobj; | |
18484 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18485 | double result; | |
18486 | PyObject * obj0 = 0 ; | |
18487 | char *kwnames[] = { | |
18488 | (char *) "self", NULL | |
18489 | }; | |
18490 | ||
18491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18494 | { |
18495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18496 | result = (double)(arg1)->GetRataDie(); | |
18497 | ||
18498 | wxPyEndAllowThreads(__tstate); | |
18499 | if (PyErr_Occurred()) SWIG_fail; | |
18500 | } | |
2f4c0a16 | 18501 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18502 | return resultobj; |
18503 | fail: | |
18504 | return NULL; | |
18505 | } | |
18506 | ||
18507 | ||
18508 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18509 | PyObject *resultobj; | |
18510 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18511 | wxDateTime::TimeZone *arg2 = 0 ; | |
423f194a | 18512 | bool arg3 = (bool) False ; |
d14a1e28 | 18513 | wxDateTime result; |
44127b65 | 18514 | bool temp2 = False ; |
d14a1e28 RD |
18515 | PyObject * obj0 = 0 ; |
18516 | PyObject * obj1 = 0 ; | |
18517 | PyObject * obj2 = 0 ; | |
18518 | char *kwnames[] = { | |
18519 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18520 | }; | |
18521 | ||
18522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
18523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18525 | { |
18526 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 18527 | temp2 = True; |
d14a1e28 RD |
18528 | } |
18529 | if (obj2) { | |
2f4c0a16 RD |
18530 | arg3 = (bool) SWIG_AsBool(obj2); |
18531 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18532 | } |
18533 | { | |
18534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18535 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18536 | ||
18537 | wxPyEndAllowThreads(__tstate); | |
18538 | if (PyErr_Occurred()) SWIG_fail; | |
18539 | } | |
18540 | { | |
18541 | wxDateTime * resultptr; | |
18542 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 18543 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18544 | } |
18545 | { | |
44127b65 | 18546 | if (temp2) delete arg2; |
d14a1e28 RD |
18547 | } |
18548 | return resultobj; | |
18549 | fail: | |
18550 | { | |
44127b65 | 18551 | if (temp2) delete arg2; |
d14a1e28 RD |
18552 | } |
18553 | return NULL; | |
18554 | } | |
18555 | ||
18556 | ||
18557 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18558 | PyObject *resultobj; | |
18559 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18560 | wxDateTime::TimeZone *arg2 = 0 ; | |
423f194a | 18561 | bool arg3 = (bool) False ; |
d14a1e28 | 18562 | wxDateTime *result; |
44127b65 | 18563 | bool temp2 = False ; |
d14a1e28 RD |
18564 | PyObject * obj0 = 0 ; |
18565 | PyObject * obj1 = 0 ; | |
18566 | PyObject * obj2 = 0 ; | |
18567 | char *kwnames[] = { | |
18568 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18569 | }; | |
18570 | ||
18571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
18572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18574 | { |
18575 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 18576 | temp2 = True; |
d14a1e28 RD |
18577 | } |
18578 | if (obj2) { | |
2f4c0a16 RD |
18579 | arg3 = (bool) SWIG_AsBool(obj2); |
18580 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18581 | } |
18582 | { | |
18583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18584 | { | |
18585 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18586 | result = (wxDateTime *) &_result_ref; | |
18587 | } | |
18588 | ||
18589 | wxPyEndAllowThreads(__tstate); | |
18590 | if (PyErr_Occurred()) SWIG_fail; | |
18591 | } | |
2f4c0a16 | 18592 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 | 18593 | { |
44127b65 | 18594 | if (temp2) delete arg2; |
d14a1e28 RD |
18595 | } |
18596 | return resultobj; | |
18597 | fail: | |
18598 | { | |
44127b65 | 18599 | if (temp2) delete arg2; |
d14a1e28 RD |
18600 | } |
18601 | return NULL; | |
18602 | } | |
18603 | ||
18604 | ||
18605 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18606 | PyObject *resultobj; | |
18607 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
423f194a | 18608 | bool arg2 = (bool) False ; |
d14a1e28 RD |
18609 | wxDateTime result; |
18610 | PyObject * obj0 = 0 ; | |
18611 | PyObject * obj1 = 0 ; | |
18612 | char *kwnames[] = { | |
18613 | (char *) "self",(char *) "noDST", NULL | |
18614 | }; | |
18615 | ||
18616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 18619 | if (obj1) { |
2f4c0a16 RD |
18620 | arg2 = (bool) SWIG_AsBool(obj1); |
18621 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18622 | } |
18623 | { | |
18624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18625 | result = (arg1)->ToGMT(arg2); | |
18626 | ||
18627 | wxPyEndAllowThreads(__tstate); | |
18628 | if (PyErr_Occurred()) SWIG_fail; | |
18629 | } | |
18630 | { | |
18631 | wxDateTime * resultptr; | |
18632 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 18633 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18634 | } |
18635 | return resultobj; | |
18636 | fail: | |
18637 | return NULL; | |
18638 | } | |
18639 | ||
18640 | ||
18641 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18642 | PyObject *resultobj; | |
18643 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
423f194a | 18644 | bool arg2 = (bool) False ; |
d14a1e28 RD |
18645 | wxDateTime *result; |
18646 | PyObject * obj0 = 0 ; | |
18647 | PyObject * obj1 = 0 ; | |
18648 | char *kwnames[] = { | |
18649 | (char *) "self",(char *) "noDST", NULL | |
18650 | }; | |
18651 | ||
18652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 18655 | if (obj1) { |
2f4c0a16 RD |
18656 | arg2 = (bool) SWIG_AsBool(obj1); |
18657 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18658 | } |
18659 | { | |
18660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18661 | { | |
18662 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
18663 | result = (wxDateTime *) &_result_ref; | |
18664 | } | |
18665 | ||
18666 | wxPyEndAllowThreads(__tstate); | |
18667 | if (PyErr_Occurred()) SWIG_fail; | |
18668 | } | |
2f4c0a16 | 18669 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18670 | return resultobj; |
18671 | fail: | |
18672 | return NULL; | |
18673 | } | |
18674 | ||
18675 | ||
18676 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18677 | PyObject *resultobj; | |
18678 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18679 | int arg2 = (int) wxDateTime::Country_Default ; | |
18680 | int result; | |
18681 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18682 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18683 | char *kwnames[] = { |
18684 | (char *) "self",(char *) "country", NULL | |
18685 | }; | |
18686 | ||
8edf1c75 | 18687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 18690 | if (obj1) { |
2f4c0a16 RD |
18691 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
18692 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18693 | } |
d14a1e28 RD |
18694 | { |
18695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18696 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
18697 | ||
18698 | wxPyEndAllowThreads(__tstate); | |
18699 | if (PyErr_Occurred()) SWIG_fail; | |
18700 | } | |
2f4c0a16 | 18701 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18702 | return resultobj; |
18703 | fail: | |
18704 | return NULL; | |
18705 | } | |
18706 | ||
18707 | ||
18708 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18709 | PyObject *resultobj; | |
18710 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18711 | bool result; | |
18712 | PyObject * obj0 = 0 ; | |
18713 | char *kwnames[] = { | |
18714 | (char *) "self", NULL | |
18715 | }; | |
18716 | ||
18717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18720 | { |
18721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18722 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
18723 | ||
18724 | wxPyEndAllowThreads(__tstate); | |
18725 | if (PyErr_Occurred()) SWIG_fail; | |
18726 | } | |
4e760a36 | 18727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18728 | return resultobj; |
18729 | fail: | |
18730 | return NULL; | |
18731 | } | |
18732 | ||
18733 | ||
18734 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18735 | PyObject *resultobj; | |
18736 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18737 | time_t result; | |
18738 | PyObject * obj0 = 0 ; | |
18739 | char *kwnames[] = { | |
18740 | (char *) "self", NULL | |
18741 | }; | |
18742 | ||
18743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18746 | { |
18747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18748 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
18749 | ||
18750 | wxPyEndAllowThreads(__tstate); | |
18751 | if (PyErr_Occurred()) SWIG_fail; | |
18752 | } | |
2f4c0a16 | 18753 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
18754 | return resultobj; |
18755 | fail: | |
18756 | return NULL; | |
18757 | } | |
18758 | ||
18759 | ||
18760 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18761 | PyObject *resultobj; | |
18762 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18763 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18764 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18765 | int result; | |
44127b65 | 18766 | bool temp2 = False ; |
d14a1e28 RD |
18767 | PyObject * obj0 = 0 ; |
18768 | PyObject * obj1 = 0 ; | |
18769 | char *kwnames[] = { | |
18770 | (char *) "self",(char *) "tz", NULL | |
18771 | }; | |
18772 | ||
18773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18776 | if (obj1) { |
18777 | { | |
18778 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 18779 | temp2 = True; |
d14a1e28 RD |
18780 | } |
18781 | } | |
18782 | { | |
18783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18784 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
18785 | ||
18786 | wxPyEndAllowThreads(__tstate); | |
18787 | if (PyErr_Occurred()) SWIG_fail; | |
18788 | } | |
2f4c0a16 | 18789 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 18790 | { |
44127b65 | 18791 | if (temp2) delete arg2; |
d14a1e28 RD |
18792 | } |
18793 | return resultobj; | |
18794 | fail: | |
18795 | { | |
44127b65 | 18796 | if (temp2) delete arg2; |
d14a1e28 RD |
18797 | } |
18798 | return NULL; | |
18799 | } | |
18800 | ||
18801 | ||
18802 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18803 | PyObject *resultobj; | |
18804 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18805 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18806 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18807 | int result; | |
44127b65 | 18808 | bool temp2 = False ; |
d14a1e28 RD |
18809 | PyObject * obj0 = 0 ; |
18810 | PyObject * obj1 = 0 ; | |
18811 | char *kwnames[] = { | |
18812 | (char *) "self",(char *) "tz", NULL | |
18813 | }; | |
18814 | ||
18815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18818 | if (obj1) { |
18819 | { | |
18820 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 18821 | temp2 = True; |
d14a1e28 RD |
18822 | } |
18823 | } | |
18824 | { | |
18825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18826 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
18827 | ||
18828 | wxPyEndAllowThreads(__tstate); | |
18829 | if (PyErr_Occurred()) SWIG_fail; | |
18830 | } | |
2f4c0a16 | 18831 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 18832 | { |
44127b65 | 18833 | if (temp2) delete arg2; |
d14a1e28 RD |
18834 | } |
18835 | return resultobj; | |
18836 | fail: | |
18837 | { | |
44127b65 | 18838 | if (temp2) delete arg2; |
d14a1e28 RD |
18839 | } |
18840 | return NULL; | |
18841 | } | |
18842 | ||
18843 | ||
18844 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18845 | PyObject *resultobj; | |
18846 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18847 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18848 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
18849 | int result; |
18850 | bool temp2 = False ; | |
d14a1e28 RD |
18851 | PyObject * obj0 = 0 ; |
18852 | PyObject * obj1 = 0 ; | |
18853 | char *kwnames[] = { | |
18854 | (char *) "self",(char *) "tz", NULL | |
18855 | }; | |
18856 | ||
18857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18860 | if (obj1) { |
18861 | { | |
18862 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 18863 | temp2 = True; |
d14a1e28 RD |
18864 | } |
18865 | } | |
18866 | { | |
18867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 18868 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
18869 | |
18870 | wxPyEndAllowThreads(__tstate); | |
18871 | if (PyErr_Occurred()) SWIG_fail; | |
18872 | } | |
2f4c0a16 | 18873 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 18874 | { |
44127b65 | 18875 | if (temp2) delete arg2; |
d14a1e28 RD |
18876 | } |
18877 | return resultobj; | |
18878 | fail: | |
18879 | { | |
44127b65 | 18880 | if (temp2) delete arg2; |
d14a1e28 RD |
18881 | } |
18882 | return NULL; | |
18883 | } | |
18884 | ||
18885 | ||
18886 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18887 | PyObject *resultobj; | |
18888 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18889 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18890 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18891 | int result; | |
44127b65 | 18892 | bool temp2 = False ; |
d14a1e28 RD |
18893 | PyObject * obj0 = 0 ; |
18894 | PyObject * obj1 = 0 ; | |
18895 | char *kwnames[] = { | |
18896 | (char *) "self",(char *) "tz", NULL | |
18897 | }; | |
18898 | ||
18899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18902 | if (obj1) { |
18903 | { | |
18904 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 18905 | temp2 = True; |
d14a1e28 RD |
18906 | } |
18907 | } | |
18908 | { | |
18909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18910 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
18911 | ||
18912 | wxPyEndAllowThreads(__tstate); | |
18913 | if (PyErr_Occurred()) SWIG_fail; | |
18914 | } | |
2f4c0a16 | 18915 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 18916 | { |
44127b65 | 18917 | if (temp2) delete arg2; |
d14a1e28 RD |
18918 | } |
18919 | return resultobj; | |
18920 | fail: | |
18921 | { | |
44127b65 | 18922 | if (temp2) delete arg2; |
d14a1e28 RD |
18923 | } |
18924 | return NULL; | |
18925 | } | |
18926 | ||
18927 | ||
18928 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18929 | PyObject *resultobj; | |
18930 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18931 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18932 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
18933 | int result; |
18934 | bool temp2 = False ; | |
d14a1e28 RD |
18935 | PyObject * obj0 = 0 ; |
18936 | PyObject * obj1 = 0 ; | |
18937 | char *kwnames[] = { | |
18938 | (char *) "self",(char *) "tz", NULL | |
18939 | }; | |
18940 | ||
18941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18944 | if (obj1) { |
18945 | { | |
18946 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 18947 | temp2 = True; |
d14a1e28 RD |
18948 | } |
18949 | } | |
18950 | { | |
18951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 18952 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
18953 | |
18954 | wxPyEndAllowThreads(__tstate); | |
18955 | if (PyErr_Occurred()) SWIG_fail; | |
18956 | } | |
2f4c0a16 | 18957 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 18958 | { |
44127b65 | 18959 | if (temp2) delete arg2; |
d14a1e28 RD |
18960 | } |
18961 | return resultobj; | |
18962 | fail: | |
18963 | { | |
44127b65 | 18964 | if (temp2) delete arg2; |
d14a1e28 RD |
18965 | } |
18966 | return NULL; | |
18967 | } | |
18968 | ||
18969 | ||
18970 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18971 | PyObject *resultobj; | |
18972 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18973 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18974 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
18975 | int result; |
18976 | bool temp2 = False ; | |
d14a1e28 RD |
18977 | PyObject * obj0 = 0 ; |
18978 | PyObject * obj1 = 0 ; | |
18979 | char *kwnames[] = { | |
18980 | (char *) "self",(char *) "tz", NULL | |
18981 | }; | |
18982 | ||
18983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18986 | if (obj1) { |
18987 | { | |
18988 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 18989 | temp2 = True; |
d14a1e28 RD |
18990 | } |
18991 | } | |
18992 | { | |
18993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 18994 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
18995 | |
18996 | wxPyEndAllowThreads(__tstate); | |
18997 | if (PyErr_Occurred()) SWIG_fail; | |
18998 | } | |
2f4c0a16 | 18999 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19000 | { |
44127b65 | 19001 | if (temp2) delete arg2; |
d14a1e28 RD |
19002 | } |
19003 | return resultobj; | |
19004 | fail: | |
19005 | { | |
44127b65 | 19006 | if (temp2) delete arg2; |
d14a1e28 RD |
19007 | } |
19008 | return NULL; | |
19009 | } | |
19010 | ||
19011 | ||
19012 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19013 | PyObject *resultobj; | |
19014 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19015 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19016 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
19017 | int result; |
19018 | bool temp2 = False ; | |
d14a1e28 RD |
19019 | PyObject * obj0 = 0 ; |
19020 | PyObject * obj1 = 0 ; | |
19021 | char *kwnames[] = { | |
19022 | (char *) "self",(char *) "tz", NULL | |
19023 | }; | |
19024 | ||
19025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19028 | if (obj1) { |
19029 | { | |
19030 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 19031 | temp2 = True; |
d14a1e28 RD |
19032 | } |
19033 | } | |
19034 | { | |
19035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 19036 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19037 | |
19038 | wxPyEndAllowThreads(__tstate); | |
19039 | if (PyErr_Occurred()) SWIG_fail; | |
19040 | } | |
2f4c0a16 | 19041 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19042 | { |
44127b65 | 19043 | if (temp2) delete arg2; |
d14a1e28 RD |
19044 | } |
19045 | return resultobj; | |
19046 | fail: | |
19047 | { | |
44127b65 | 19048 | if (temp2) delete arg2; |
d14a1e28 RD |
19049 | } |
19050 | return NULL; | |
19051 | } | |
19052 | ||
19053 | ||
19054 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19055 | PyObject *resultobj; | |
19056 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19057 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19058 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
19059 | int result; |
19060 | bool temp2 = False ; | |
d14a1e28 RD |
19061 | PyObject * obj0 = 0 ; |
19062 | PyObject * obj1 = 0 ; | |
19063 | char *kwnames[] = { | |
19064 | (char *) "self",(char *) "tz", NULL | |
19065 | }; | |
19066 | ||
19067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19070 | if (obj1) { |
19071 | { | |
19072 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 19073 | temp2 = True; |
d14a1e28 RD |
19074 | } |
19075 | } | |
19076 | { | |
19077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 19078 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19079 | |
19080 | wxPyEndAllowThreads(__tstate); | |
19081 | if (PyErr_Occurred()) SWIG_fail; | |
19082 | } | |
2f4c0a16 | 19083 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19084 | { |
44127b65 | 19085 | if (temp2) delete arg2; |
d14a1e28 RD |
19086 | } |
19087 | return resultobj; | |
19088 | fail: | |
19089 | { | |
44127b65 | 19090 | if (temp2) delete arg2; |
d14a1e28 RD |
19091 | } |
19092 | return NULL; | |
19093 | } | |
19094 | ||
19095 | ||
19096 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19097 | PyObject *resultobj; | |
19098 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19099 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19100 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
19101 | int result; |
19102 | bool temp2 = False ; | |
d14a1e28 RD |
19103 | PyObject * obj0 = 0 ; |
19104 | PyObject * obj1 = 0 ; | |
19105 | char *kwnames[] = { | |
19106 | (char *) "self",(char *) "tz", NULL | |
19107 | }; | |
19108 | ||
19109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19112 | if (obj1) { |
19113 | { | |
19114 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 19115 | temp2 = True; |
d14a1e28 RD |
19116 | } |
19117 | } | |
19118 | { | |
19119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 19120 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19121 | |
19122 | wxPyEndAllowThreads(__tstate); | |
19123 | if (PyErr_Occurred()) SWIG_fail; | |
19124 | } | |
2f4c0a16 | 19125 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19126 | { |
44127b65 | 19127 | if (temp2) delete arg2; |
d14a1e28 RD |
19128 | } |
19129 | return resultobj; | |
19130 | fail: | |
19131 | { | |
44127b65 | 19132 | if (temp2) delete arg2; |
d14a1e28 RD |
19133 | } |
19134 | return NULL; | |
19135 | } | |
19136 | ||
19137 | ||
19138 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19139 | PyObject *resultobj; | |
19140 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19141 | int arg2 = (int) wxDateTime::Monday_First ; | |
19142 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19143 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
44127b65 RD |
19144 | int result; |
19145 | bool temp3 = False ; | |
d14a1e28 | 19146 | PyObject * obj0 = 0 ; |
8edf1c75 | 19147 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19148 | PyObject * obj2 = 0 ; |
19149 | char *kwnames[] = { | |
19150 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19151 | }; | |
19152 | ||
8edf1c75 | 19153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
19154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19156 | if (obj1) { | |
19157 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); | |
19158 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 19159 | } |
d14a1e28 RD |
19160 | if (obj2) { |
19161 | { | |
19162 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
44127b65 | 19163 | temp3 = True; |
d14a1e28 RD |
19164 | } |
19165 | } | |
19166 | { | |
19167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 19168 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
19169 | |
19170 | wxPyEndAllowThreads(__tstate); | |
19171 | if (PyErr_Occurred()) SWIG_fail; | |
19172 | } | |
2f4c0a16 | 19173 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19174 | { |
44127b65 | 19175 | if (temp3) delete arg3; |
d14a1e28 RD |
19176 | } |
19177 | return resultobj; | |
19178 | fail: | |
19179 | { | |
44127b65 | 19180 | if (temp3) delete arg3; |
d14a1e28 RD |
19181 | } |
19182 | return NULL; | |
19183 | } | |
19184 | ||
19185 | ||
19186 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19187 | PyObject *resultobj; | |
19188 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19189 | int arg2 = (int) wxDateTime::Monday_First ; | |
19190 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19191 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
44127b65 RD |
19192 | int result; |
19193 | bool temp3 = False ; | |
d14a1e28 | 19194 | PyObject * obj0 = 0 ; |
8edf1c75 | 19195 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19196 | PyObject * obj2 = 0 ; |
19197 | char *kwnames[] = { | |
19198 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19199 | }; | |
19200 | ||
8edf1c75 | 19201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
19202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 19204 | if (obj1) { |
2f4c0a16 RD |
19205 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); |
19206 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 19207 | } |
d14a1e28 RD |
19208 | if (obj2) { |
19209 | { | |
19210 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
44127b65 | 19211 | temp3 = True; |
d14a1e28 RD |
19212 | } |
19213 | } | |
19214 | { | |
19215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 19216 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
19217 | |
19218 | wxPyEndAllowThreads(__tstate); | |
19219 | if (PyErr_Occurred()) SWIG_fail; | |
19220 | } | |
2f4c0a16 | 19221 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19222 | { |
44127b65 | 19223 | if (temp3) delete arg3; |
d14a1e28 RD |
19224 | } |
19225 | return resultobj; | |
19226 | fail: | |
19227 | { | |
44127b65 | 19228 | if (temp3) delete arg3; |
d14a1e28 RD |
19229 | } |
19230 | return NULL; | |
19231 | } | |
19232 | ||
19233 | ||
19234 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19235 | PyObject *resultobj; | |
19236 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19237 | int arg2 = (int) wxDateTime::Country_Default ; | |
19238 | bool result; | |
19239 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19240 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19241 | char *kwnames[] = { |
19242 | (char *) "self",(char *) "country", NULL | |
19243 | }; | |
19244 | ||
8edf1c75 | 19245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 19248 | if (obj1) { |
2f4c0a16 RD |
19249 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
19250 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 19251 | } |
d14a1e28 RD |
19252 | { |
19253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19254 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
19255 | ||
19256 | wxPyEndAllowThreads(__tstate); | |
19257 | if (PyErr_Occurred()) SWIG_fail; | |
19258 | } | |
4e760a36 | 19259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19260 | return resultobj; |
19261 | fail: | |
19262 | return NULL; | |
19263 | } | |
19264 | ||
19265 | ||
19266 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19267 | PyObject *resultobj; | |
19268 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19269 | wxDateTime *arg2 = 0 ; | |
19270 | bool result; | |
19271 | PyObject * obj0 = 0 ; | |
19272 | PyObject * obj1 = 0 ; | |
19273 | char *kwnames[] = { | |
19274 | (char *) "self",(char *) "datetime", NULL | |
19275 | }; | |
19276 | ||
19277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19280 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19281 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19282 | SWIG_fail; | |
d14a1e28 | 19283 | if (arg2 == NULL) { |
2f4c0a16 RD |
19284 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19285 | SWIG_fail; | |
d14a1e28 RD |
19286 | } |
19287 | { | |
19288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19289 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
19290 | ||
19291 | wxPyEndAllowThreads(__tstate); | |
19292 | if (PyErr_Occurred()) SWIG_fail; | |
19293 | } | |
4e760a36 | 19294 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19295 | return resultobj; |
19296 | fail: | |
19297 | return NULL; | |
19298 | } | |
19299 | ||
19300 | ||
19301 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19302 | PyObject *resultobj; | |
19303 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19304 | wxDateTime *arg2 = 0 ; | |
19305 | bool result; | |
19306 | PyObject * obj0 = 0 ; | |
19307 | PyObject * obj1 = 0 ; | |
19308 | char *kwnames[] = { | |
19309 | (char *) "self",(char *) "datetime", NULL | |
19310 | }; | |
19311 | ||
19312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19315 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19316 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19317 | SWIG_fail; | |
d14a1e28 | 19318 | if (arg2 == NULL) { |
2f4c0a16 RD |
19319 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19320 | SWIG_fail; | |
d14a1e28 RD |
19321 | } |
19322 | { | |
19323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19324 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
19325 | ||
19326 | wxPyEndAllowThreads(__tstate); | |
19327 | if (PyErr_Occurred()) SWIG_fail; | |
19328 | } | |
4e760a36 | 19329 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19330 | return resultobj; |
19331 | fail: | |
19332 | return NULL; | |
19333 | } | |
19334 | ||
19335 | ||
19336 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19337 | PyObject *resultobj; | |
19338 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19339 | wxDateTime *arg2 = 0 ; | |
19340 | bool result; | |
19341 | PyObject * obj0 = 0 ; | |
19342 | PyObject * obj1 = 0 ; | |
19343 | char *kwnames[] = { | |
19344 | (char *) "self",(char *) "datetime", NULL | |
19345 | }; | |
19346 | ||
19347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19350 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19351 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19352 | SWIG_fail; | |
d14a1e28 | 19353 | if (arg2 == NULL) { |
2f4c0a16 RD |
19354 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19355 | SWIG_fail; | |
d14a1e28 RD |
19356 | } |
19357 | { | |
19358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19359 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
19360 | ||
19361 | wxPyEndAllowThreads(__tstate); | |
19362 | if (PyErr_Occurred()) SWIG_fail; | |
19363 | } | |
4e760a36 | 19364 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19365 | return resultobj; |
19366 | fail: | |
19367 | return NULL; | |
19368 | } | |
19369 | ||
19370 | ||
19371 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19372 | PyObject *resultobj; | |
19373 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19374 | wxDateTime *arg2 = 0 ; | |
19375 | wxDateTime *arg3 = 0 ; | |
19376 | bool result; | |
19377 | PyObject * obj0 = 0 ; | |
19378 | PyObject * obj1 = 0 ; | |
19379 | PyObject * obj2 = 0 ; | |
19380 | char *kwnames[] = { | |
19381 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19382 | }; | |
19383 | ||
19384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
19385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19387 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19388 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19389 | SWIG_fail; | |
d14a1e28 | 19390 | if (arg2 == NULL) { |
2f4c0a16 RD |
19391 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19392 | SWIG_fail; | |
d14a1e28 | 19393 | } |
2f4c0a16 RD |
19394 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, |
19395 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19396 | SWIG_fail; | |
d14a1e28 | 19397 | if (arg3 == NULL) { |
2f4c0a16 RD |
19398 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19399 | SWIG_fail; | |
d14a1e28 RD |
19400 | } |
19401 | { | |
19402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19403 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19404 | ||
19405 | wxPyEndAllowThreads(__tstate); | |
19406 | if (PyErr_Occurred()) SWIG_fail; | |
19407 | } | |
4e760a36 | 19408 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19409 | return resultobj; |
19410 | fail: | |
19411 | return NULL; | |
19412 | } | |
19413 | ||
19414 | ||
19415 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19416 | PyObject *resultobj; | |
19417 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19418 | wxDateTime *arg2 = 0 ; | |
19419 | wxDateTime *arg3 = 0 ; | |
19420 | bool result; | |
19421 | PyObject * obj0 = 0 ; | |
19422 | PyObject * obj1 = 0 ; | |
19423 | PyObject * obj2 = 0 ; | |
19424 | char *kwnames[] = { | |
19425 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19426 | }; | |
19427 | ||
19428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
19429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19431 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19432 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19433 | SWIG_fail; | |
d14a1e28 | 19434 | if (arg2 == NULL) { |
2f4c0a16 RD |
19435 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19436 | SWIG_fail; | |
d14a1e28 | 19437 | } |
2f4c0a16 RD |
19438 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, |
19439 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19440 | SWIG_fail; | |
d14a1e28 | 19441 | if (arg3 == NULL) { |
2f4c0a16 RD |
19442 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19443 | SWIG_fail; | |
d14a1e28 RD |
19444 | } |
19445 | { | |
19446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19447 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19448 | ||
19449 | wxPyEndAllowThreads(__tstate); | |
19450 | if (PyErr_Occurred()) SWIG_fail; | |
19451 | } | |
4e760a36 | 19452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19453 | return resultobj; |
19454 | fail: | |
19455 | return NULL; | |
19456 | } | |
19457 | ||
19458 | ||
19459 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19460 | PyObject *resultobj; | |
19461 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19462 | wxDateTime *arg2 = 0 ; | |
19463 | bool result; | |
19464 | PyObject * obj0 = 0 ; | |
19465 | PyObject * obj1 = 0 ; | |
19466 | char *kwnames[] = { | |
19467 | (char *) "self",(char *) "dt", NULL | |
19468 | }; | |
19469 | ||
19470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19473 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19474 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19475 | SWIG_fail; | |
d14a1e28 | 19476 | if (arg2 == NULL) { |
2f4c0a16 RD |
19477 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19478 | SWIG_fail; | |
d14a1e28 RD |
19479 | } |
19480 | { | |
19481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19482 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
19483 | ||
19484 | wxPyEndAllowThreads(__tstate); | |
19485 | if (PyErr_Occurred()) SWIG_fail; | |
19486 | } | |
4e760a36 | 19487 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19488 | return resultobj; |
19489 | fail: | |
19490 | return NULL; | |
19491 | } | |
19492 | ||
19493 | ||
19494 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19495 | PyObject *resultobj; | |
19496 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19497 | wxDateTime *arg2 = 0 ; | |
19498 | bool result; | |
19499 | PyObject * obj0 = 0 ; | |
19500 | PyObject * obj1 = 0 ; | |
19501 | char *kwnames[] = { | |
19502 | (char *) "self",(char *) "dt", NULL | |
19503 | }; | |
19504 | ||
19505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19508 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19509 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19510 | SWIG_fail; | |
d14a1e28 | 19511 | if (arg2 == NULL) { |
2f4c0a16 RD |
19512 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19513 | SWIG_fail; | |
d14a1e28 RD |
19514 | } |
19515 | { | |
19516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19517 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
19518 | ||
19519 | wxPyEndAllowThreads(__tstate); | |
19520 | if (PyErr_Occurred()) SWIG_fail; | |
19521 | } | |
4e760a36 | 19522 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19523 | return resultobj; |
19524 | fail: | |
19525 | return NULL; | |
19526 | } | |
19527 | ||
19528 | ||
19529 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19530 | PyObject *resultobj; | |
19531 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19532 | wxDateTime *arg2 = 0 ; | |
19533 | wxTimeSpan *arg3 = 0 ; | |
19534 | bool result; | |
19535 | PyObject * obj0 = 0 ; | |
19536 | PyObject * obj1 = 0 ; | |
19537 | PyObject * obj2 = 0 ; | |
19538 | char *kwnames[] = { | |
19539 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
19540 | }; | |
19541 | ||
19542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
19543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19545 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19546 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19547 | SWIG_fail; | |
d14a1e28 | 19548 | if (arg2 == NULL) { |
2f4c0a16 RD |
19549 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19550 | SWIG_fail; | |
d14a1e28 | 19551 | } |
2f4c0a16 RD |
19552 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan, |
19553 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19554 | SWIG_fail; | |
d14a1e28 | 19555 | if (arg3 == NULL) { |
2f4c0a16 RD |
19556 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19557 | SWIG_fail; | |
d14a1e28 RD |
19558 | } |
19559 | { | |
19560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19561 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
19562 | ||
19563 | wxPyEndAllowThreads(__tstate); | |
19564 | if (PyErr_Occurred()) SWIG_fail; | |
19565 | } | |
4e760a36 | 19566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19567 | return resultobj; |
19568 | fail: | |
19569 | return NULL; | |
19570 | } | |
19571 | ||
19572 | ||
19573 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19574 | PyObject *resultobj; | |
19575 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19576 | wxTimeSpan *arg2 = 0 ; | |
19577 | wxDateTime *result; | |
19578 | PyObject * obj0 = 0 ; | |
19579 | PyObject * obj1 = 0 ; | |
19580 | char *kwnames[] = { | |
19581 | (char *) "self",(char *) "diff", NULL | |
19582 | }; | |
19583 | ||
19584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19587 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19588 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19589 | SWIG_fail; | |
d14a1e28 | 19590 | if (arg2 == NULL) { |
2f4c0a16 RD |
19591 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19592 | SWIG_fail; | |
d14a1e28 RD |
19593 | } |
19594 | { | |
19595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19596 | { | |
19597 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
19598 | result = (wxDateTime *) &_result_ref; | |
19599 | } | |
19600 | ||
19601 | wxPyEndAllowThreads(__tstate); | |
19602 | if (PyErr_Occurred()) SWIG_fail; | |
19603 | } | |
2f4c0a16 | 19604 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19605 | return resultobj; |
19606 | fail: | |
19607 | return NULL; | |
19608 | } | |
19609 | ||
19610 | ||
19611 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19612 | PyObject *resultobj; | |
19613 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19614 | wxDateSpan *arg2 = 0 ; | |
19615 | wxDateTime *result; | |
19616 | PyObject * obj0 = 0 ; | |
19617 | PyObject * obj1 = 0 ; | |
19618 | char *kwnames[] = { | |
19619 | (char *) "self",(char *) "diff", NULL | |
19620 | }; | |
19621 | ||
19622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19625 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19626 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19627 | SWIG_fail; | |
d14a1e28 | 19628 | if (arg2 == NULL) { |
2f4c0a16 RD |
19629 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19630 | SWIG_fail; | |
d14a1e28 RD |
19631 | } |
19632 | { | |
19633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19634 | { | |
19635 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
19636 | result = (wxDateTime *) &_result_ref; | |
19637 | } | |
19638 | ||
19639 | wxPyEndAllowThreads(__tstate); | |
19640 | if (PyErr_Occurred()) SWIG_fail; | |
19641 | } | |
2f4c0a16 | 19642 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19643 | return resultobj; |
19644 | fail: | |
19645 | return NULL; | |
19646 | } | |
19647 | ||
19648 | ||
19649 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19650 | PyObject *resultobj; | |
19651 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19652 | wxTimeSpan *arg2 = 0 ; | |
19653 | wxDateTime *result; | |
19654 | PyObject * obj0 = 0 ; | |
19655 | PyObject * obj1 = 0 ; | |
19656 | char *kwnames[] = { | |
19657 | (char *) "self",(char *) "diff", NULL | |
19658 | }; | |
19659 | ||
19660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19663 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19664 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19665 | SWIG_fail; | |
d14a1e28 | 19666 | if (arg2 == NULL) { |
2f4c0a16 RD |
19667 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19668 | SWIG_fail; | |
d14a1e28 RD |
19669 | } |
19670 | { | |
19671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19672 | { | |
19673 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
19674 | result = (wxDateTime *) &_result_ref; | |
19675 | } | |
19676 | ||
19677 | wxPyEndAllowThreads(__tstate); | |
19678 | if (PyErr_Occurred()) SWIG_fail; | |
19679 | } | |
2f4c0a16 | 19680 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19681 | return resultobj; |
19682 | fail: | |
19683 | return NULL; | |
19684 | } | |
19685 | ||
19686 | ||
19687 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19688 | PyObject *resultobj; | |
19689 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19690 | wxDateSpan *arg2 = 0 ; | |
19691 | wxDateTime *result; | |
19692 | PyObject * obj0 = 0 ; | |
19693 | PyObject * obj1 = 0 ; | |
19694 | char *kwnames[] = { | |
19695 | (char *) "self",(char *) "diff", NULL | |
19696 | }; | |
19697 | ||
19698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19701 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19702 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19703 | SWIG_fail; | |
d14a1e28 | 19704 | if (arg2 == NULL) { |
2f4c0a16 RD |
19705 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19706 | SWIG_fail; | |
d14a1e28 RD |
19707 | } |
19708 | { | |
19709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19710 | { | |
19711 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
19712 | result = (wxDateTime *) &_result_ref; | |
19713 | } | |
19714 | ||
19715 | wxPyEndAllowThreads(__tstate); | |
19716 | if (PyErr_Occurred()) SWIG_fail; | |
19717 | } | |
2f4c0a16 | 19718 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19719 | return resultobj; |
19720 | fail: | |
19721 | return NULL; | |
19722 | } | |
19723 | ||
19724 | ||
19725 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19726 | PyObject *resultobj; | |
19727 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19728 | wxDateTime *arg2 = 0 ; | |
19729 | wxTimeSpan result; | |
19730 | PyObject * obj0 = 0 ; | |
19731 | PyObject * obj1 = 0 ; | |
19732 | char *kwnames[] = { | |
19733 | (char *) "self",(char *) "dt", NULL | |
19734 | }; | |
19735 | ||
19736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19739 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19740 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19741 | SWIG_fail; | |
d14a1e28 | 19742 | if (arg2 == NULL) { |
2f4c0a16 RD |
19743 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19744 | SWIG_fail; | |
d14a1e28 RD |
19745 | } |
19746 | { | |
19747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19748 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
19749 | ||
19750 | wxPyEndAllowThreads(__tstate); | |
19751 | if (PyErr_Occurred()) SWIG_fail; | |
19752 | } | |
19753 | { | |
19754 | wxTimeSpan * resultptr; | |
19755 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
2f4c0a16 | 19756 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
19757 | } |
19758 | return resultobj; | |
19759 | fail: | |
19760 | return NULL; | |
19761 | } | |
19762 | ||
19763 | ||
19764 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
19765 | PyObject *resultobj; | |
19766 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19767 | wxTimeSpan *arg2 = 0 ; | |
19768 | wxDateTime *result; | |
19769 | PyObject * obj0 = 0 ; | |
19770 | PyObject * obj1 = 0 ; | |
19771 | ||
19772 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19775 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19776 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19777 | SWIG_fail; | |
d14a1e28 | 19778 | if (arg2 == NULL) { |
2f4c0a16 RD |
19779 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19780 | SWIG_fail; | |
d14a1e28 RD |
19781 | } |
19782 | { | |
19783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19784 | { | |
19785 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
19786 | result = (wxDateTime *) &_result_ref; | |
19787 | } | |
19788 | ||
19789 | wxPyEndAllowThreads(__tstate); | |
19790 | if (PyErr_Occurred()) SWIG_fail; | |
19791 | } | |
2f4c0a16 | 19792 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19793 | return resultobj; |
19794 | fail: | |
19795 | return NULL; | |
19796 | } | |
19797 | ||
19798 | ||
19799 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
19800 | PyObject *resultobj; | |
19801 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19802 | wxDateSpan *arg2 = 0 ; | |
19803 | wxDateTime *result; | |
19804 | PyObject * obj0 = 0 ; | |
19805 | PyObject * obj1 = 0 ; | |
19806 | ||
19807 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19810 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19811 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19812 | SWIG_fail; | |
d14a1e28 | 19813 | if (arg2 == NULL) { |
2f4c0a16 RD |
19814 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19815 | SWIG_fail; | |
d14a1e28 RD |
19816 | } |
19817 | { | |
19818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19819 | { | |
19820 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
19821 | result = (wxDateTime *) &_result_ref; | |
19822 | } | |
19823 | ||
19824 | wxPyEndAllowThreads(__tstate); | |
19825 | if (PyErr_Occurred()) SWIG_fail; | |
19826 | } | |
2f4c0a16 | 19827 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19828 | return resultobj; |
19829 | fail: | |
19830 | return NULL; | |
19831 | } | |
19832 | ||
19833 | ||
19834 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
19835 | int argc; | |
19836 | PyObject *argv[3]; | |
19837 | int ii; | |
19838 | ||
19839 | argc = PyObject_Length(args); | |
19840 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
19841 | argv[ii] = PyTuple_GetItem(args,ii); | |
19842 | } | |
19843 | if (argc == 2) { | |
19844 | int _v; | |
19845 | { | |
19846 | void *ptr; | |
2f4c0a16 | 19847 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
19848 | _v = 0; |
19849 | PyErr_Clear(); | |
19850 | } else { | |
19851 | _v = 1; | |
19852 | } | |
19853 | } | |
19854 | if (_v) { | |
19855 | { | |
19856 | void *ptr; | |
2f4c0a16 | 19857 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
19858 | _v = 0; |
19859 | PyErr_Clear(); | |
19860 | } else { | |
19861 | _v = 1; | |
19862 | } | |
19863 | } | |
19864 | if (_v) { | |
19865 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
19866 | } | |
19867 | } | |
19868 | } | |
19869 | if (argc == 2) { | |
19870 | int _v; | |
19871 | { | |
19872 | void *ptr; | |
2f4c0a16 | 19873 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
19874 | _v = 0; |
19875 | PyErr_Clear(); | |
19876 | } else { | |
19877 | _v = 1; | |
19878 | } | |
19879 | } | |
19880 | if (_v) { | |
19881 | { | |
19882 | void *ptr; | |
2f4c0a16 | 19883 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
19884 | _v = 0; |
19885 | PyErr_Clear(); | |
19886 | } else { | |
19887 | _v = 1; | |
19888 | } | |
19889 | } | |
19890 | if (_v) { | |
19891 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
19892 | } | |
19893 | } | |
19894 | } | |
19895 | ||
19896 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
19897 | return NULL; | |
19898 | } | |
19899 | ||
19900 | ||
19901 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
19902 | PyObject *resultobj; | |
19903 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19904 | wxTimeSpan *arg2 = 0 ; | |
19905 | wxDateTime *result; | |
19906 | PyObject * obj0 = 0 ; | |
19907 | PyObject * obj1 = 0 ; | |
19908 | ||
19909 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19912 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19913 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19914 | SWIG_fail; | |
d14a1e28 | 19915 | if (arg2 == NULL) { |
2f4c0a16 RD |
19916 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19917 | SWIG_fail; | |
d14a1e28 RD |
19918 | } |
19919 | { | |
19920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19921 | { | |
19922 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
19923 | result = (wxDateTime *) &_result_ref; | |
19924 | } | |
19925 | ||
19926 | wxPyEndAllowThreads(__tstate); | |
19927 | if (PyErr_Occurred()) SWIG_fail; | |
19928 | } | |
2f4c0a16 | 19929 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19930 | return resultobj; |
19931 | fail: | |
19932 | return NULL; | |
19933 | } | |
19934 | ||
19935 | ||
19936 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
19937 | PyObject *resultobj; | |
19938 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19939 | wxDateSpan *arg2 = 0 ; | |
19940 | wxDateTime *result; | |
19941 | PyObject * obj0 = 0 ; | |
19942 | PyObject * obj1 = 0 ; | |
19943 | ||
19944 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19947 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19948 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19949 | SWIG_fail; | |
d14a1e28 | 19950 | if (arg2 == NULL) { |
2f4c0a16 RD |
19951 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19952 | SWIG_fail; | |
d14a1e28 RD |
19953 | } |
19954 | { | |
19955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19956 | { | |
19957 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
19958 | result = (wxDateTime *) &_result_ref; | |
19959 | } | |
19960 | ||
19961 | wxPyEndAllowThreads(__tstate); | |
19962 | if (PyErr_Occurred()) SWIG_fail; | |
19963 | } | |
2f4c0a16 | 19964 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19965 | return resultobj; |
19966 | fail: | |
19967 | return NULL; | |
19968 | } | |
19969 | ||
19970 | ||
19971 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
19972 | int argc; | |
19973 | PyObject *argv[3]; | |
19974 | int ii; | |
19975 | ||
19976 | argc = PyObject_Length(args); | |
19977 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
19978 | argv[ii] = PyTuple_GetItem(args,ii); | |
19979 | } | |
19980 | if (argc == 2) { | |
19981 | int _v; | |
19982 | { | |
19983 | void *ptr; | |
2f4c0a16 | 19984 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
19985 | _v = 0; |
19986 | PyErr_Clear(); | |
19987 | } else { | |
19988 | _v = 1; | |
19989 | } | |
19990 | } | |
19991 | if (_v) { | |
19992 | { | |
19993 | void *ptr; | |
2f4c0a16 | 19994 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
19995 | _v = 0; |
19996 | PyErr_Clear(); | |
19997 | } else { | |
19998 | _v = 1; | |
19999 | } | |
20000 | } | |
20001 | if (_v) { | |
20002 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
20003 | } | |
20004 | } | |
20005 | } | |
20006 | if (argc == 2) { | |
20007 | int _v; | |
20008 | { | |
20009 | void *ptr; | |
2f4c0a16 | 20010 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20011 | _v = 0; |
20012 | PyErr_Clear(); | |
20013 | } else { | |
20014 | _v = 1; | |
20015 | } | |
20016 | } | |
20017 | if (_v) { | |
20018 | { | |
20019 | void *ptr; | |
2f4c0a16 | 20020 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20021 | _v = 0; |
20022 | PyErr_Clear(); | |
20023 | } else { | |
20024 | _v = 1; | |
20025 | } | |
20026 | } | |
20027 | if (_v) { | |
20028 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
20029 | } | |
20030 | } | |
20031 | } | |
20032 | ||
20033 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
20034 | return NULL; | |
20035 | } | |
20036 | ||
20037 | ||
20038 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
20039 | PyObject *resultobj; | |
20040 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20041 | wxTimeSpan *arg2 = 0 ; | |
20042 | wxDateTime result; | |
20043 | PyObject * obj0 = 0 ; | |
20044 | PyObject * obj1 = 0 ; | |
20045 | ||
20046 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20049 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20050 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20051 | SWIG_fail; | |
d14a1e28 | 20052 | if (arg2 == NULL) { |
2f4c0a16 RD |
20053 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20054 | SWIG_fail; | |
d14a1e28 RD |
20055 | } |
20056 | { | |
20057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20058 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
20059 | ||
20060 | wxPyEndAllowThreads(__tstate); | |
20061 | if (PyErr_Occurred()) SWIG_fail; | |
20062 | } | |
20063 | { | |
20064 | wxDateTime * resultptr; | |
20065 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 20066 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20067 | } |
20068 | return resultobj; | |
20069 | fail: | |
20070 | return NULL; | |
20071 | } | |
20072 | ||
20073 | ||
20074 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
20075 | PyObject *resultobj; | |
20076 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20077 | wxDateSpan *arg2 = 0 ; | |
20078 | wxDateTime result; | |
20079 | PyObject * obj0 = 0 ; | |
20080 | PyObject * obj1 = 0 ; | |
20081 | ||
20082 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20085 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20086 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20087 | SWIG_fail; | |
d14a1e28 | 20088 | if (arg2 == NULL) { |
2f4c0a16 RD |
20089 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20090 | SWIG_fail; | |
d14a1e28 RD |
20091 | } |
20092 | { | |
20093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20094 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
20095 | ||
20096 | wxPyEndAllowThreads(__tstate); | |
20097 | if (PyErr_Occurred()) SWIG_fail; | |
20098 | } | |
20099 | { | |
20100 | wxDateTime * resultptr; | |
20101 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 20102 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20103 | } |
20104 | return resultobj; | |
20105 | fail: | |
20106 | return NULL; | |
20107 | } | |
20108 | ||
20109 | ||
20110 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
20111 | int argc; | |
20112 | PyObject *argv[3]; | |
20113 | int ii; | |
20114 | ||
20115 | argc = PyObject_Length(args); | |
20116 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20117 | argv[ii] = PyTuple_GetItem(args,ii); | |
20118 | } | |
20119 | if (argc == 2) { | |
20120 | int _v; | |
20121 | { | |
20122 | void *ptr; | |
2f4c0a16 | 20123 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20124 | _v = 0; |
20125 | PyErr_Clear(); | |
20126 | } else { | |
20127 | _v = 1; | |
20128 | } | |
20129 | } | |
20130 | if (_v) { | |
20131 | { | |
20132 | void *ptr; | |
2f4c0a16 | 20133 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20134 | _v = 0; |
20135 | PyErr_Clear(); | |
20136 | } else { | |
20137 | _v = 1; | |
20138 | } | |
20139 | } | |
20140 | if (_v) { | |
20141 | return _wrap_DateTime___add____SWIG_0(self,args); | |
20142 | } | |
20143 | } | |
20144 | } | |
20145 | if (argc == 2) { | |
20146 | int _v; | |
20147 | { | |
20148 | void *ptr; | |
2f4c0a16 | 20149 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20150 | _v = 0; |
20151 | PyErr_Clear(); | |
20152 | } else { | |
20153 | _v = 1; | |
20154 | } | |
20155 | } | |
20156 | if (_v) { | |
20157 | { | |
20158 | void *ptr; | |
2f4c0a16 | 20159 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20160 | _v = 0; |
20161 | PyErr_Clear(); | |
20162 | } else { | |
20163 | _v = 1; | |
20164 | } | |
20165 | } | |
20166 | if (_v) { | |
20167 | return _wrap_DateTime___add____SWIG_1(self,args); | |
20168 | } | |
20169 | } | |
20170 | } | |
20171 | ||
20172 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
20173 | return NULL; | |
20174 | } | |
20175 | ||
20176 | ||
20177 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
20178 | PyObject *resultobj; | |
20179 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20180 | wxDateTime *arg2 = 0 ; | |
20181 | wxTimeSpan result; | |
20182 | PyObject * obj0 = 0 ; | |
20183 | PyObject * obj1 = 0 ; | |
20184 | ||
20185 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20188 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20189 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20190 | SWIG_fail; | |
d14a1e28 | 20191 | if (arg2 == NULL) { |
2f4c0a16 RD |
20192 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20193 | SWIG_fail; | |
d14a1e28 RD |
20194 | } |
20195 | { | |
20196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20197 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
20198 | ||
20199 | wxPyEndAllowThreads(__tstate); | |
20200 | if (PyErr_Occurred()) SWIG_fail; | |
20201 | } | |
20202 | { | |
20203 | wxTimeSpan * resultptr; | |
20204 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
2f4c0a16 | 20205 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
20206 | } |
20207 | return resultobj; | |
20208 | fail: | |
20209 | return NULL; | |
20210 | } | |
20211 | ||
20212 | ||
20213 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
20214 | PyObject *resultobj; | |
20215 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20216 | wxTimeSpan *arg2 = 0 ; | |
20217 | wxDateTime result; | |
20218 | PyObject * obj0 = 0 ; | |
20219 | PyObject * obj1 = 0 ; | |
20220 | ||
20221 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20224 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20225 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20226 | SWIG_fail; | |
d14a1e28 | 20227 | if (arg2 == NULL) { |
2f4c0a16 RD |
20228 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20229 | SWIG_fail; | |
d14a1e28 RD |
20230 | } |
20231 | { | |
20232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20233 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
20234 | ||
20235 | wxPyEndAllowThreads(__tstate); | |
20236 | if (PyErr_Occurred()) SWIG_fail; | |
20237 | } | |
20238 | { | |
20239 | wxDateTime * resultptr; | |
20240 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 20241 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20242 | } |
20243 | return resultobj; | |
20244 | fail: | |
20245 | return NULL; | |
20246 | } | |
20247 | ||
20248 | ||
20249 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
20250 | PyObject *resultobj; | |
20251 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20252 | wxDateSpan *arg2 = 0 ; | |
20253 | wxDateTime result; | |
20254 | PyObject * obj0 = 0 ; | |
20255 | PyObject * obj1 = 0 ; | |
20256 | ||
20257 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20260 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20261 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20262 | SWIG_fail; | |
d14a1e28 | 20263 | if (arg2 == NULL) { |
2f4c0a16 RD |
20264 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20265 | SWIG_fail; | |
d14a1e28 RD |
20266 | } |
20267 | { | |
20268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20269 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
20270 | ||
20271 | wxPyEndAllowThreads(__tstate); | |
20272 | if (PyErr_Occurred()) SWIG_fail; | |
20273 | } | |
20274 | { | |
20275 | wxDateTime * resultptr; | |
20276 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 20277 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20278 | } |
20279 | return resultobj; | |
20280 | fail: | |
20281 | return NULL; | |
20282 | } | |
20283 | ||
20284 | ||
20285 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
20286 | int argc; | |
20287 | PyObject *argv[3]; | |
20288 | int ii; | |
20289 | ||
20290 | argc = PyObject_Length(args); | |
20291 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20292 | argv[ii] = PyTuple_GetItem(args,ii); | |
20293 | } | |
20294 | if (argc == 2) { | |
20295 | int _v; | |
20296 | { | |
20297 | void *ptr; | |
2f4c0a16 | 20298 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20299 | _v = 0; |
20300 | PyErr_Clear(); | |
20301 | } else { | |
20302 | _v = 1; | |
20303 | } | |
20304 | } | |
20305 | if (_v) { | |
20306 | { | |
20307 | void *ptr; | |
2f4c0a16 | 20308 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20309 | _v = 0; |
20310 | PyErr_Clear(); | |
20311 | } else { | |
20312 | _v = 1; | |
20313 | } | |
20314 | } | |
20315 | if (_v) { | |
20316 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
20317 | } | |
20318 | } | |
20319 | } | |
20320 | if (argc == 2) { | |
20321 | int _v; | |
20322 | { | |
20323 | void *ptr; | |
2f4c0a16 | 20324 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20325 | _v = 0; |
20326 | PyErr_Clear(); | |
20327 | } else { | |
20328 | _v = 1; | |
20329 | } | |
20330 | } | |
20331 | if (_v) { | |
20332 | { | |
20333 | void *ptr; | |
2f4c0a16 | 20334 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20335 | _v = 0; |
20336 | PyErr_Clear(); | |
20337 | } else { | |
20338 | _v = 1; | |
20339 | } | |
20340 | } | |
20341 | if (_v) { | |
20342 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
20343 | } | |
20344 | } | |
20345 | } | |
20346 | if (argc == 2) { | |
20347 | int _v; | |
20348 | { | |
20349 | void *ptr; | |
2f4c0a16 | 20350 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20351 | _v = 0; |
20352 | PyErr_Clear(); | |
20353 | } else { | |
20354 | _v = 1; | |
20355 | } | |
20356 | } | |
20357 | if (_v) { | |
20358 | { | |
20359 | void *ptr; | |
2f4c0a16 | 20360 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20361 | _v = 0; |
20362 | PyErr_Clear(); | |
20363 | } else { | |
20364 | _v = 1; | |
20365 | } | |
20366 | } | |
20367 | if (_v) { | |
20368 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
20369 | } | |
20370 | } | |
20371 | } | |
20372 | ||
20373 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
20374 | return NULL; | |
20375 | } | |
20376 | ||
20377 | ||
20378 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
20379 | PyObject *resultobj; | |
20380 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
328fcd84 | 20381 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20382 | bool result; |
20383 | PyObject * obj0 = 0 ; | |
20384 | PyObject * obj1 = 0 ; | |
20385 | ||
20386 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20389 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20391 | { |
20392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 20393 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20394 | |
20395 | wxPyEndAllowThreads(__tstate); | |
20396 | if (PyErr_Occurred()) SWIG_fail; | |
20397 | } | |
4e760a36 | 20398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20399 | return resultobj; |
20400 | fail: | |
20401 | return NULL; | |
20402 | } | |
20403 | ||
20404 | ||
20405 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
20406 | PyObject *resultobj; | |
20407 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
328fcd84 | 20408 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20409 | bool result; |
20410 | PyObject * obj0 = 0 ; | |
20411 | PyObject * obj1 = 0 ; | |
20412 | ||
20413 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20416 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20418 | { |
20419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 20420 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20421 | |
20422 | wxPyEndAllowThreads(__tstate); | |
20423 | if (PyErr_Occurred()) SWIG_fail; | |
20424 | } | |
4e760a36 | 20425 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20426 | return resultobj; |
20427 | fail: | |
20428 | return NULL; | |
20429 | } | |
20430 | ||
20431 | ||
20432 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
20433 | PyObject *resultobj; | |
20434 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
328fcd84 | 20435 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20436 | bool result; |
20437 | PyObject * obj0 = 0 ; | |
20438 | PyObject * obj1 = 0 ; | |
20439 | ||
20440 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20443 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20445 | { |
20446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 20447 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20448 | |
20449 | wxPyEndAllowThreads(__tstate); | |
20450 | if (PyErr_Occurred()) SWIG_fail; | |
20451 | } | |
4e760a36 | 20452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20453 | return resultobj; |
20454 | fail: | |
20455 | return NULL; | |
20456 | } | |
20457 | ||
20458 | ||
20459 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
20460 | PyObject *resultobj; | |
20461 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
328fcd84 | 20462 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20463 | bool result; |
20464 | PyObject * obj0 = 0 ; | |
20465 | PyObject * obj1 = 0 ; | |
20466 | ||
20467 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20470 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20472 | { |
20473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 20474 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20475 | |
20476 | wxPyEndAllowThreads(__tstate); | |
20477 | if (PyErr_Occurred()) SWIG_fail; | |
20478 | } | |
4e760a36 | 20479 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20480 | return resultobj; |
20481 | fail: | |
20482 | return NULL; | |
20483 | } | |
20484 | ||
20485 | ||
20486 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
20487 | PyObject *resultobj; | |
20488 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
328fcd84 | 20489 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20490 | bool result; |
20491 | PyObject * obj0 = 0 ; | |
20492 | PyObject * obj1 = 0 ; | |
20493 | ||
20494 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20497 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20499 | { |
20500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 20501 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20502 | |
20503 | wxPyEndAllowThreads(__tstate); | |
20504 | if (PyErr_Occurred()) SWIG_fail; | |
20505 | } | |
4e760a36 | 20506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20507 | return resultobj; |
20508 | fail: | |
20509 | return NULL; | |
20510 | } | |
20511 | ||
20512 | ||
20513 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
20514 | PyObject *resultobj; | |
20515 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
328fcd84 | 20516 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20517 | bool result; |
20518 | PyObject * obj0 = 0 ; | |
20519 | PyObject * obj1 = 0 ; | |
20520 | ||
20521 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20524 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20526 | { |
20527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 20528 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20529 | |
20530 | wxPyEndAllowThreads(__tstate); | |
20531 | if (PyErr_Occurred()) SWIG_fail; | |
20532 | } | |
4e760a36 | 20533 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20534 | return resultobj; |
20535 | fail: | |
20536 | return NULL; | |
20537 | } | |
20538 | ||
20539 | ||
20540 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20541 | PyObject *resultobj; | |
20542 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20543 | wxString *arg2 = 0 ; | |
20544 | int result; | |
423f194a | 20545 | bool temp2 = False ; |
d14a1e28 RD |
20546 | PyObject * obj0 = 0 ; |
20547 | PyObject * obj1 = 0 ; | |
20548 | char *kwnames[] = { | |
20549 | (char *) "self",(char *) "date", NULL | |
20550 | }; | |
20551 | ||
20552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20555 | { |
20556 | arg2 = wxString_in_helper(obj1); | |
20557 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20558 | temp2 = True; |
d14a1e28 RD |
20559 | } |
20560 | { | |
20561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20562 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
20563 | ||
20564 | wxPyEndAllowThreads(__tstate); | |
20565 | if (PyErr_Occurred()) SWIG_fail; | |
20566 | } | |
2f4c0a16 | 20567 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20568 | { |
20569 | if (temp2) | |
20570 | delete arg2; | |
20571 | } | |
20572 | return resultobj; | |
20573 | fail: | |
20574 | { | |
20575 | if (temp2) | |
20576 | delete arg2; | |
20577 | } | |
20578 | return NULL; | |
20579 | } | |
20580 | ||
20581 | ||
20582 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20583 | PyObject *resultobj; | |
20584 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20585 | wxString *arg2 = 0 ; | |
20586 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
20587 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20588 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
20589 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
20590 | int result; | |
423f194a RD |
20591 | bool temp2 = False ; |
20592 | bool temp3 = False ; | |
d14a1e28 RD |
20593 | PyObject * obj0 = 0 ; |
20594 | PyObject * obj1 = 0 ; | |
20595 | PyObject * obj2 = 0 ; | |
20596 | PyObject * obj3 = 0 ; | |
20597 | char *kwnames[] = { | |
20598 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
20599 | }; | |
20600 | ||
20601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
20602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20604 | { |
20605 | arg2 = wxString_in_helper(obj1); | |
20606 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20607 | temp2 = True; |
d14a1e28 RD |
20608 | } |
20609 | if (obj2) { | |
20610 | { | |
20611 | arg3 = wxString_in_helper(obj2); | |
20612 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 20613 | temp3 = True; |
d14a1e28 RD |
20614 | } |
20615 | } | |
20616 | if (obj3) { | |
2f4c0a16 RD |
20617 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime, |
20618 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20619 | SWIG_fail; | |
d14a1e28 | 20620 | if (arg4 == NULL) { |
2f4c0a16 RD |
20621 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20622 | SWIG_fail; | |
d14a1e28 RD |
20623 | } |
20624 | } | |
20625 | { | |
20626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20627 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
20628 | ||
20629 | wxPyEndAllowThreads(__tstate); | |
20630 | if (PyErr_Occurred()) SWIG_fail; | |
20631 | } | |
2f4c0a16 | 20632 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20633 | { |
20634 | if (temp2) | |
20635 | delete arg2; | |
20636 | } | |
20637 | { | |
20638 | if (temp3) | |
20639 | delete arg3; | |
20640 | } | |
20641 | return resultobj; | |
20642 | fail: | |
20643 | { | |
20644 | if (temp2) | |
20645 | delete arg2; | |
20646 | } | |
20647 | { | |
20648 | if (temp3) | |
20649 | delete arg3; | |
20650 | } | |
20651 | return NULL; | |
20652 | } | |
20653 | ||
20654 | ||
20655 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20656 | PyObject *resultobj; | |
20657 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20658 | wxString *arg2 = 0 ; | |
20659 | int result; | |
423f194a | 20660 | bool temp2 = False ; |
d14a1e28 RD |
20661 | PyObject * obj0 = 0 ; |
20662 | PyObject * obj1 = 0 ; | |
20663 | char *kwnames[] = { | |
20664 | (char *) "self",(char *) "datetime", NULL | |
20665 | }; | |
20666 | ||
20667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20670 | { |
20671 | arg2 = wxString_in_helper(obj1); | |
20672 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20673 | temp2 = True; |
d14a1e28 RD |
20674 | } |
20675 | { | |
20676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20677 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
20678 | ||
20679 | wxPyEndAllowThreads(__tstate); | |
20680 | if (PyErr_Occurred()) SWIG_fail; | |
20681 | } | |
2f4c0a16 | 20682 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20683 | { |
20684 | if (temp2) | |
20685 | delete arg2; | |
20686 | } | |
20687 | return resultobj; | |
20688 | fail: | |
20689 | { | |
20690 | if (temp2) | |
20691 | delete arg2; | |
20692 | } | |
20693 | return NULL; | |
20694 | } | |
20695 | ||
20696 | ||
20697 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20698 | PyObject *resultobj; | |
20699 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20700 | wxString *arg2 = 0 ; | |
20701 | int result; | |
423f194a | 20702 | bool temp2 = False ; |
d14a1e28 RD |
20703 | PyObject * obj0 = 0 ; |
20704 | PyObject * obj1 = 0 ; | |
20705 | char *kwnames[] = { | |
20706 | (char *) "self",(char *) "date", NULL | |
20707 | }; | |
20708 | ||
20709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20712 | { |
20713 | arg2 = wxString_in_helper(obj1); | |
20714 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20715 | temp2 = True; |
d14a1e28 RD |
20716 | } |
20717 | { | |
20718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20719 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
20720 | ||
20721 | wxPyEndAllowThreads(__tstate); | |
20722 | if (PyErr_Occurred()) SWIG_fail; | |
20723 | } | |
2f4c0a16 | 20724 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20725 | { |
20726 | if (temp2) | |
20727 | delete arg2; | |
20728 | } | |
20729 | return resultobj; | |
20730 | fail: | |
20731 | { | |
20732 | if (temp2) | |
20733 | delete arg2; | |
20734 | } | |
20735 | return NULL; | |
20736 | } | |
20737 | ||
20738 | ||
20739 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20740 | PyObject *resultobj; | |
20741 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20742 | wxString *arg2 = 0 ; | |
20743 | int result; | |
423f194a | 20744 | bool temp2 = False ; |
d14a1e28 RD |
20745 | PyObject * obj0 = 0 ; |
20746 | PyObject * obj1 = 0 ; | |
20747 | char *kwnames[] = { | |
20748 | (char *) "self",(char *) "time", NULL | |
20749 | }; | |
20750 | ||
20751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20754 | { |
20755 | arg2 = wxString_in_helper(obj1); | |
20756 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20757 | temp2 = True; |
d14a1e28 RD |
20758 | } |
20759 | { | |
20760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20761 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
20762 | ||
20763 | wxPyEndAllowThreads(__tstate); | |
20764 | if (PyErr_Occurred()) SWIG_fail; | |
20765 | } | |
2f4c0a16 | 20766 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20767 | { |
20768 | if (temp2) | |
20769 | delete arg2; | |
20770 | } | |
20771 | return resultobj; | |
20772 | fail: | |
20773 | { | |
20774 | if (temp2) | |
20775 | delete arg2; | |
20776 | } | |
20777 | return NULL; | |
20778 | } | |
20779 | ||
20780 | ||
20781 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20782 | PyObject *resultobj; | |
20783 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20784 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
20785 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
20786 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
20787 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
20788 | wxString result; | |
423f194a | 20789 | bool temp2 = False ; |
44127b65 | 20790 | bool temp3 = False ; |
d14a1e28 RD |
20791 | PyObject * obj0 = 0 ; |
20792 | PyObject * obj1 = 0 ; | |
20793 | PyObject * obj2 = 0 ; | |
20794 | char *kwnames[] = { | |
20795 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
20796 | }; | |
20797 | ||
20798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
20799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20801 | if (obj1) { |
20802 | { | |
20803 | arg2 = wxString_in_helper(obj1); | |
20804 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20805 | temp2 = True; |
d14a1e28 RD |
20806 | } |
20807 | } | |
20808 | if (obj2) { | |
20809 | { | |
20810 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
44127b65 | 20811 | temp3 = True; |
d14a1e28 RD |
20812 | } |
20813 | } | |
20814 | { | |
20815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20816 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
20817 | ||
20818 | wxPyEndAllowThreads(__tstate); | |
20819 | if (PyErr_Occurred()) SWIG_fail; | |
20820 | } | |
20821 | { | |
20822 | #if wxUSE_UNICODE | |
20823 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20824 | #else | |
20825 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20826 | #endif | |
20827 | } | |
20828 | { | |
20829 | if (temp2) | |
20830 | delete arg2; | |
20831 | } | |
20832 | { | |
44127b65 | 20833 | if (temp3) delete arg3; |
d14a1e28 RD |
20834 | } |
20835 | return resultobj; | |
20836 | fail: | |
20837 | { | |
20838 | if (temp2) | |
20839 | delete arg2; | |
20840 | } | |
20841 | { | |
44127b65 | 20842 | if (temp3) delete arg3; |
d14a1e28 RD |
20843 | } |
20844 | return NULL; | |
20845 | } | |
20846 | ||
20847 | ||
20848 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20849 | PyObject *resultobj; | |
20850 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20851 | wxString result; | |
20852 | PyObject * obj0 = 0 ; | |
20853 | char *kwnames[] = { | |
20854 | (char *) "self", NULL | |
20855 | }; | |
20856 | ||
20857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20860 | { |
20861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20862 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
20863 | ||
20864 | wxPyEndAllowThreads(__tstate); | |
20865 | if (PyErr_Occurred()) SWIG_fail; | |
20866 | } | |
20867 | { | |
20868 | #if wxUSE_UNICODE | |
20869 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20870 | #else | |
20871 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20872 | #endif | |
20873 | } | |
20874 | return resultobj; | |
20875 | fail: | |
20876 | return NULL; | |
20877 | } | |
20878 | ||
20879 | ||
20880 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20881 | PyObject *resultobj; | |
20882 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20883 | wxString result; | |
20884 | PyObject * obj0 = 0 ; | |
20885 | char *kwnames[] = { | |
20886 | (char *) "self", NULL | |
20887 | }; | |
20888 | ||
20889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20892 | { |
20893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20894 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
20895 | ||
20896 | wxPyEndAllowThreads(__tstate); | |
20897 | if (PyErr_Occurred()) SWIG_fail; | |
20898 | } | |
20899 | { | |
20900 | #if wxUSE_UNICODE | |
20901 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20902 | #else | |
20903 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20904 | #endif | |
20905 | } | |
20906 | return resultobj; | |
20907 | fail: | |
20908 | return NULL; | |
20909 | } | |
20910 | ||
20911 | ||
20912 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20913 | PyObject *resultobj; | |
20914 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20915 | wxString result; | |
20916 | PyObject * obj0 = 0 ; | |
20917 | char *kwnames[] = { | |
20918 | (char *) "self", NULL | |
20919 | }; | |
20920 | ||
20921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20924 | { |
20925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20926 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
20927 | ||
20928 | wxPyEndAllowThreads(__tstate); | |
20929 | if (PyErr_Occurred()) SWIG_fail; | |
20930 | } | |
20931 | { | |
20932 | #if wxUSE_UNICODE | |
20933 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20934 | #else | |
20935 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20936 | #endif | |
20937 | } | |
20938 | return resultobj; | |
20939 | fail: | |
20940 | return NULL; | |
20941 | } | |
20942 | ||
20943 | ||
20944 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20945 | PyObject *resultobj; | |
20946 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20947 | wxString result; | |
20948 | PyObject * obj0 = 0 ; | |
20949 | char *kwnames[] = { | |
20950 | (char *) "self", NULL | |
20951 | }; | |
20952 | ||
20953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20956 | { |
20957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20958 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
20959 | ||
20960 | wxPyEndAllowThreads(__tstate); | |
20961 | if (PyErr_Occurred()) SWIG_fail; | |
20962 | } | |
20963 | { | |
20964 | #if wxUSE_UNICODE | |
20965 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20966 | #else | |
20967 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20968 | #endif | |
20969 | } | |
20970 | return resultobj; | |
20971 | fail: | |
20972 | return NULL; | |
20973 | } | |
20974 | ||
20975 | ||
20976 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
20977 | PyObject *obj; | |
20978 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20979 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
20980 | Py_INCREF(obj); | |
20981 | return Py_BuildValue((char *)""); | |
20982 | } | |
20983 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20984 | PyObject *resultobj; | |
20985 | long arg1 ; | |
20986 | wxTimeSpan result; | |
8edf1c75 | 20987 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20988 | char *kwnames[] = { |
20989 | (char *) "sec", NULL | |
20990 | }; | |
20991 | ||
8edf1c75 | 20992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
20993 | arg1 = (long) SWIG_AsLong(obj0); |
20994 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20995 | { |
20996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20997 | result = wxTimeSpan::Seconds(arg1); | |
20998 | ||
20999 | wxPyEndAllowThreads(__tstate); | |
21000 | if (PyErr_Occurred()) SWIG_fail; | |
21001 | } | |
21002 | { | |
21003 | wxTimeSpan * resultptr; | |
21004 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
2f4c0a16 | 21005 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21006 | } |
21007 | return resultobj; | |
21008 | fail: | |
21009 | return NULL; | |
21010 | } | |
21011 | ||
21012 | ||
21013 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21014 | PyObject *resultobj; | |
21015 | wxTimeSpan result; | |
21016 | char *kwnames[] = { | |
21017 | NULL | |
21018 | }; | |
21019 | ||
21020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
21021 | { | |
21022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21023 | result = wxTimeSpan::Second(); | |
21024 | ||
21025 | wxPyEndAllowThreads(__tstate); | |
21026 | if (PyErr_Occurred()) SWIG_fail; | |
21027 | } | |
21028 | { | |
21029 | wxTimeSpan * resultptr; | |
21030 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
2f4c0a16 | 21031 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21032 | } |
21033 | return resultobj; | |
21034 | fail: | |
21035 | return NULL; | |
21036 | } | |
21037 | ||
21038 | ||
21039 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21040 | PyObject *resultobj; | |
21041 | long arg1 ; | |
21042 | wxTimeSpan result; | |
8edf1c75 | 21043 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21044 | char *kwnames[] = { |
21045 | (char *) "min", NULL | |
21046 | }; | |
21047 | ||
8edf1c75 | 21048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
21049 | arg1 = (long) SWIG_AsLong(obj0); |
21050 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21051 | { |
21052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21053 | result = wxTimeSpan::Minutes(arg1); | |
21054 | ||
21055 | wxPyEndAllowThreads(__tstate); | |
21056 | if (PyErr_Occurred()) SWIG_fail; | |
21057 | } | |
21058 | { | |
21059 | wxTimeSpan * resultptr; | |
21060 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
2f4c0a16 | 21061 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21062 | } |
21063 | return resultobj; | |
21064 | fail: | |
21065 | return NULL; | |
21066 | } | |
21067 | ||
21068 | ||
21069 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21070 | PyObject *resultobj; | |
21071 | wxTimeSpan result; | |
21072 | char *kwnames[] = { | |
21073 | NULL | |
21074 | }; | |
21075 | ||
21076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
21077 | { | |
21078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21079 | result = wxTimeSpan::Minute(); | |
21080 | ||
21081 | wxPyEndAllowThreads(__tstate); | |
21082 | if (PyErr_Occurred()) SWIG_fail; | |
21083 | } | |
21084 | { | |
21085 | wxTimeSpan * resultptr; | |
21086 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
2f4c0a16 | 21087 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21088 | } |
21089 | return resultobj; | |
21090 | fail: | |
21091 | return NULL; | |
21092 | } | |
21093 | ||
21094 | ||
21095 | static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21096 | PyObject *resultobj; | |
21097 | long arg1 ; | |
21098 | wxTimeSpan result; | |
8edf1c75 | 21099 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21100 | char *kwnames[] = { |
21101 | (char *) "hours", NULL | |
21102 | }; | |
21103 | ||
8edf1c75 | 21104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
21105 | arg1 = (long) SWIG_AsLong(obj0); |
21106 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21107 | { |
21108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21109 | result = wxTimeSpan::Hours(arg1); | |
21110 | ||
21111 | wxPyEndAllowThreads(__tstate); | |
21112 | if (PyErr_Occurred()) SWIG_fail; | |
21113 | } | |
21114 | { | |
21115 | wxTimeSpan * resultptr; | |
21116 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
2f4c0a16 | 21117 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21118 | } |
21119 | return resultobj; | |
21120 | fail: | |
21121 | return NULL; | |
21122 | } | |
21123 | ||
21124 | ||
21125 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21126 | PyObject *resultobj; | |
21127 | wxTimeSpan result; | |
21128 | char *kwnames[] = { | |
21129 | NULL | |
21130 | }; | |
21131 | ||
21132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
21133 | { | |
21134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21135 | result = wxTimeSpan::Hour(); | |
21136 | ||
21137 | wxPyEndAllowThreads(__tstate); | |
21138 | if (PyErr_Occurred()) SWIG_fail; | |
21139 | } | |
21140 | { | |
21141 | wxTimeSpan * resultptr; | |
21142 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
2f4c0a16 | 21143 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21144 | } |
21145 | return resultobj; | |
21146 | fail: | |
21147 | return NULL; | |
21148 | } | |
21149 | ||
21150 | ||
21151 | static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21152 | PyObject *resultobj; | |
21153 | long arg1 ; | |
21154 | wxTimeSpan result; | |
8edf1c75 | 21155 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21156 | char *kwnames[] = { |
21157 | (char *) "days", NULL | |
21158 | }; | |
21159 | ||
8edf1c75 | 21160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
21161 | arg1 = (long) SWIG_AsLong(obj0); |
21162 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21163 | { |
21164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21165 | result = wxTimeSpan::Days(arg1); | |
21166 | ||
21167 | wxPyEndAllowThreads(__tstate); | |
21168 | if (PyErr_Occurred()) SWIG_fail; | |
21169 | } | |
21170 | { | |
21171 | wxTimeSpan * resultptr; | |
21172 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
2f4c0a16 | 21173 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21174 | } |
21175 | return resultobj; | |
21176 | fail: | |
21177 | return NULL; | |
21178 | } | |
21179 | ||
21180 | ||
21181 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21182 | PyObject *resultobj; | |
21183 | wxTimeSpan result; | |
21184 | char *kwnames[] = { | |
21185 | NULL | |
21186 | }; | |
21187 | ||
21188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
21189 | { | |
21190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21191 | result = wxTimeSpan::Day(); | |
21192 | ||
21193 | wxPyEndAllowThreads(__tstate); | |
21194 | if (PyErr_Occurred()) SWIG_fail; | |
21195 | } | |
21196 | { | |
21197 | wxTimeSpan * resultptr; | |
21198 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
2f4c0a16 | 21199 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21200 | } |
21201 | return resultobj; | |
21202 | fail: | |
21203 | return NULL; | |
21204 | } | |
21205 | ||
21206 | ||
21207 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21208 | PyObject *resultobj; | |
21209 | long arg1 ; | |
21210 | wxTimeSpan result; | |
8edf1c75 | 21211 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21212 | char *kwnames[] = { |
21213 | (char *) "days", NULL | |
21214 | }; | |
21215 | ||
8edf1c75 | 21216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
21217 | arg1 = (long) SWIG_AsLong(obj0); |
21218 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21219 | { |
21220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21221 | result = wxTimeSpan::Weeks(arg1); | |
21222 | ||
21223 | wxPyEndAllowThreads(__tstate); | |
21224 | if (PyErr_Occurred()) SWIG_fail; | |
21225 | } | |
21226 | { | |
21227 | wxTimeSpan * resultptr; | |
21228 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
2f4c0a16 | 21229 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21230 | } |
21231 | return resultobj; | |
21232 | fail: | |
21233 | return NULL; | |
21234 | } | |
21235 | ||
21236 | ||
21237 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21238 | PyObject *resultobj; | |
21239 | wxTimeSpan result; | |
21240 | char *kwnames[] = { | |
21241 | NULL | |
21242 | }; | |
21243 | ||
21244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
21245 | { | |
21246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21247 | result = wxTimeSpan::Week(); | |
21248 | ||
21249 | wxPyEndAllowThreads(__tstate); | |
21250 | if (PyErr_Occurred()) SWIG_fail; | |
21251 | } | |
21252 | { | |
21253 | wxTimeSpan * resultptr; | |
21254 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
2f4c0a16 | 21255 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21256 | } |
21257 | return resultobj; | |
21258 | fail: | |
21259 | return NULL; | |
21260 | } | |
21261 | ||
21262 | ||
21263 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21264 | PyObject *resultobj; | |
21265 | long arg1 = (long) 0 ; | |
21266 | long arg2 = (long) 0 ; | |
21267 | long arg3 = (long) 0 ; | |
21268 | long arg4 = (long) 0 ; | |
21269 | wxTimeSpan *result; | |
8edf1c75 RD |
21270 | PyObject * obj0 = 0 ; |
21271 | PyObject * obj1 = 0 ; | |
21272 | PyObject * obj2 = 0 ; | |
21273 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21274 | char *kwnames[] = { |
21275 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
21276 | }; | |
21277 | ||
8edf1c75 RD |
21278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
21279 | if (obj0) { | |
2f4c0a16 RD |
21280 | arg1 = (long) SWIG_AsLong(obj0); |
21281 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
21282 | } |
21283 | if (obj1) { | |
2f4c0a16 RD |
21284 | arg2 = (long) SWIG_AsLong(obj1); |
21285 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
21286 | } |
21287 | if (obj2) { | |
2f4c0a16 RD |
21288 | arg3 = (long) SWIG_AsLong(obj2); |
21289 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
21290 | } |
21291 | if (obj3) { | |
2f4c0a16 RD |
21292 | arg4 = (long) SWIG_AsLong(obj3); |
21293 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21294 | } |
d14a1e28 RD |
21295 | { |
21296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21297 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
21298 | ||
21299 | wxPyEndAllowThreads(__tstate); | |
21300 | if (PyErr_Occurred()) SWIG_fail; | |
21301 | } | |
2f4c0a16 | 21302 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21303 | return resultobj; |
21304 | fail: | |
21305 | return NULL; | |
21306 | } | |
21307 | ||
21308 | ||
21309 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21310 | PyObject *resultobj; | |
21311 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21312 | PyObject * obj0 = 0 ; | |
21313 | char *kwnames[] = { | |
21314 | (char *) "self", NULL | |
21315 | }; | |
21316 | ||
21317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21320 | { |
21321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21322 | delete arg1; | |
21323 | ||
21324 | wxPyEndAllowThreads(__tstate); | |
21325 | if (PyErr_Occurred()) SWIG_fail; | |
21326 | } | |
21327 | Py_INCREF(Py_None); resultobj = Py_None; | |
21328 | return resultobj; | |
21329 | fail: | |
21330 | return NULL; | |
21331 | } | |
21332 | ||
21333 | ||
21334 | static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21335 | PyObject *resultobj; | |
21336 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21337 | wxTimeSpan *arg2 = 0 ; | |
21338 | wxTimeSpan *result; | |
21339 | PyObject * obj0 = 0 ; | |
21340 | PyObject * obj1 = 0 ; | |
21341 | char *kwnames[] = { | |
21342 | (char *) "self",(char *) "diff", NULL | |
21343 | }; | |
21344 | ||
21345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21348 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21349 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21350 | SWIG_fail; | |
d14a1e28 | 21351 | if (arg2 == NULL) { |
2f4c0a16 RD |
21352 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21353 | SWIG_fail; | |
d14a1e28 RD |
21354 | } |
21355 | { | |
21356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21357 | { | |
21358 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
21359 | result = (wxTimeSpan *) &_result_ref; | |
21360 | } | |
21361 | ||
21362 | wxPyEndAllowThreads(__tstate); | |
21363 | if (PyErr_Occurred()) SWIG_fail; | |
21364 | } | |
2f4c0a16 | 21365 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21366 | return resultobj; |
21367 | fail: | |
21368 | return NULL; | |
21369 | } | |
21370 | ||
21371 | ||
21372 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21373 | PyObject *resultobj; | |
21374 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21375 | wxTimeSpan *arg2 = 0 ; | |
21376 | wxTimeSpan *result; | |
21377 | PyObject * obj0 = 0 ; | |
21378 | PyObject * obj1 = 0 ; | |
21379 | char *kwnames[] = { | |
21380 | (char *) "self",(char *) "diff", NULL | |
21381 | }; | |
21382 | ||
21383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21386 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21387 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21388 | SWIG_fail; | |
d14a1e28 | 21389 | if (arg2 == NULL) { |
2f4c0a16 RD |
21390 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21391 | SWIG_fail; | |
d14a1e28 RD |
21392 | } |
21393 | { | |
21394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21395 | { | |
21396 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
21397 | result = (wxTimeSpan *) &_result_ref; | |
21398 | } | |
21399 | ||
21400 | wxPyEndAllowThreads(__tstate); | |
21401 | if (PyErr_Occurred()) SWIG_fail; | |
21402 | } | |
2f4c0a16 | 21403 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21404 | return resultobj; |
21405 | fail: | |
21406 | return NULL; | |
21407 | } | |
21408 | ||
21409 | ||
21410 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21411 | PyObject *resultobj; | |
21412 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21413 | int arg2 ; | |
21414 | wxTimeSpan *result; | |
21415 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21416 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21417 | char *kwnames[] = { |
21418 | (char *) "self",(char *) "n", NULL | |
21419 | }; | |
21420 | ||
8edf1c75 | 21421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21424 | arg2 = (int) SWIG_AsInt(obj1); | |
21425 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21426 | { |
21427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21428 | { | |
21429 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
21430 | result = (wxTimeSpan *) &_result_ref; | |
21431 | } | |
21432 | ||
21433 | wxPyEndAllowThreads(__tstate); | |
21434 | if (PyErr_Occurred()) SWIG_fail; | |
21435 | } | |
2f4c0a16 | 21436 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21437 | return resultobj; |
21438 | fail: | |
21439 | return NULL; | |
21440 | } | |
21441 | ||
21442 | ||
21443 | static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21444 | PyObject *resultobj; | |
21445 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21446 | wxTimeSpan *result; | |
21447 | PyObject * obj0 = 0 ; | |
21448 | char *kwnames[] = { | |
21449 | (char *) "self", NULL | |
21450 | }; | |
21451 | ||
21452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21455 | { |
21456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21457 | { | |
21458 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
21459 | result = (wxTimeSpan *) &_result_ref; | |
21460 | } | |
21461 | ||
21462 | wxPyEndAllowThreads(__tstate); | |
21463 | if (PyErr_Occurred()) SWIG_fail; | |
21464 | } | |
2f4c0a16 | 21465 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21466 | return resultobj; |
21467 | fail: | |
21468 | return NULL; | |
21469 | } | |
21470 | ||
21471 | ||
21472 | static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21473 | PyObject *resultobj; | |
21474 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21475 | wxTimeSpan result; | |
21476 | PyObject * obj0 = 0 ; | |
21477 | char *kwnames[] = { | |
21478 | (char *) "self", NULL | |
21479 | }; | |
21480 | ||
21481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21484 | { |
21485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21486 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
21487 | ||
21488 | wxPyEndAllowThreads(__tstate); | |
21489 | if (PyErr_Occurred()) SWIG_fail; | |
21490 | } | |
21491 | { | |
21492 | wxTimeSpan * resultptr; | |
21493 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
2f4c0a16 | 21494 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21495 | } |
21496 | return resultobj; | |
21497 | fail: | |
21498 | return NULL; | |
21499 | } | |
21500 | ||
21501 | ||
21502 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21503 | PyObject *resultobj; | |
21504 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21505 | wxTimeSpan *arg2 = 0 ; | |
21506 | wxTimeSpan *result; | |
21507 | PyObject * obj0 = 0 ; | |
21508 | PyObject * obj1 = 0 ; | |
21509 | char *kwnames[] = { | |
21510 | (char *) "self",(char *) "diff", NULL | |
21511 | }; | |
21512 | ||
21513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21516 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21517 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21518 | SWIG_fail; | |
d14a1e28 | 21519 | if (arg2 == NULL) { |
2f4c0a16 RD |
21520 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21521 | SWIG_fail; | |
d14a1e28 RD |
21522 | } |
21523 | { | |
21524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21525 | { | |
21526 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
21527 | result = (wxTimeSpan *) &_result_ref; | |
21528 | } | |
21529 | ||
21530 | wxPyEndAllowThreads(__tstate); | |
21531 | if (PyErr_Occurred()) SWIG_fail; | |
21532 | } | |
2f4c0a16 | 21533 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21534 | return resultobj; |
21535 | fail: | |
21536 | return NULL; | |
21537 | } | |
21538 | ||
21539 | ||
21540 | static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21541 | PyObject *resultobj; | |
21542 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21543 | wxTimeSpan *arg2 = 0 ; | |
21544 | wxTimeSpan *result; | |
21545 | PyObject * obj0 = 0 ; | |
21546 | PyObject * obj1 = 0 ; | |
21547 | char *kwnames[] = { | |
21548 | (char *) "self",(char *) "diff", NULL | |
21549 | }; | |
21550 | ||
21551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21554 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21555 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21556 | SWIG_fail; | |
d14a1e28 | 21557 | if (arg2 == NULL) { |
2f4c0a16 RD |
21558 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21559 | SWIG_fail; | |
d14a1e28 RD |
21560 | } |
21561 | { | |
21562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21563 | { | |
21564 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
21565 | result = (wxTimeSpan *) &_result_ref; | |
21566 | } | |
21567 | ||
21568 | wxPyEndAllowThreads(__tstate); | |
21569 | if (PyErr_Occurred()) SWIG_fail; | |
21570 | } | |
2f4c0a16 | 21571 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21572 | return resultobj; |
21573 | fail: | |
21574 | return NULL; | |
21575 | } | |
21576 | ||
21577 | ||
21578 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21579 | PyObject *resultobj; | |
21580 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21581 | int arg2 ; | |
21582 | wxTimeSpan *result; | |
21583 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21584 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21585 | char *kwnames[] = { |
21586 | (char *) "self",(char *) "n", NULL | |
21587 | }; | |
21588 | ||
8edf1c75 | 21589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21592 | arg2 = (int) SWIG_AsInt(obj1); | |
21593 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21594 | { |
21595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21596 | { | |
21597 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
21598 | result = (wxTimeSpan *) &_result_ref; | |
21599 | } | |
21600 | ||
21601 | wxPyEndAllowThreads(__tstate); | |
21602 | if (PyErr_Occurred()) SWIG_fail; | |
21603 | } | |
2f4c0a16 | 21604 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21605 | return resultobj; |
21606 | fail: | |
21607 | return NULL; | |
21608 | } | |
21609 | ||
21610 | ||
21611 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21612 | PyObject *resultobj; | |
21613 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21614 | wxTimeSpan *result; | |
21615 | PyObject * obj0 = 0 ; | |
21616 | char *kwnames[] = { | |
21617 | (char *) "self", NULL | |
21618 | }; | |
21619 | ||
21620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21623 | { |
21624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21625 | { | |
21626 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
21627 | result = (wxTimeSpan *) &_result_ref; | |
21628 | } | |
21629 | ||
21630 | wxPyEndAllowThreads(__tstate); | |
21631 | if (PyErr_Occurred()) SWIG_fail; | |
21632 | } | |
2f4c0a16 | 21633 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21634 | return resultobj; |
21635 | fail: | |
21636 | return NULL; | |
21637 | } | |
21638 | ||
21639 | ||
21640 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21641 | PyObject *resultobj; | |
21642 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21643 | wxTimeSpan *arg2 = 0 ; | |
21644 | wxTimeSpan result; | |
21645 | PyObject * obj0 = 0 ; | |
21646 | PyObject * obj1 = 0 ; | |
21647 | char *kwnames[] = { | |
21648 | (char *) "self",(char *) "other", NULL | |
21649 | }; | |
21650 | ||
21651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21654 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21655 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21656 | SWIG_fail; | |
d14a1e28 | 21657 | if (arg2 == NULL) { |
2f4c0a16 RD |
21658 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21659 | SWIG_fail; | |
d14a1e28 RD |
21660 | } |
21661 | { | |
21662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21663 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
21664 | ||
21665 | wxPyEndAllowThreads(__tstate); | |
21666 | if (PyErr_Occurred()) SWIG_fail; | |
21667 | } | |
21668 | { | |
21669 | wxTimeSpan * resultptr; | |
21670 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
2f4c0a16 | 21671 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21672 | } |
21673 | return resultobj; | |
21674 | fail: | |
21675 | return NULL; | |
21676 | } | |
21677 | ||
21678 | ||
21679 | static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21680 | PyObject *resultobj; | |
21681 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21682 | wxTimeSpan *arg2 = 0 ; | |
21683 | wxTimeSpan result; | |
21684 | PyObject * obj0 = 0 ; | |
21685 | PyObject * obj1 = 0 ; | |
21686 | char *kwnames[] = { | |
21687 | (char *) "self",(char *) "other", NULL | |
21688 | }; | |
21689 | ||
21690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21693 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21694 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21695 | SWIG_fail; | |
d14a1e28 | 21696 | if (arg2 == NULL) { |
2f4c0a16 RD |
21697 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21698 | SWIG_fail; | |
d14a1e28 RD |
21699 | } |
21700 | { | |
21701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21702 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
21703 | ||
21704 | wxPyEndAllowThreads(__tstate); | |
21705 | if (PyErr_Occurred()) SWIG_fail; | |
21706 | } | |
21707 | { | |
21708 | wxTimeSpan * resultptr; | |
21709 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
2f4c0a16 | 21710 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21711 | } |
21712 | return resultobj; | |
21713 | fail: | |
21714 | return NULL; | |
21715 | } | |
21716 | ||
21717 | ||
21718 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21719 | PyObject *resultobj; | |
21720 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21721 | int arg2 ; | |
21722 | wxTimeSpan result; | |
21723 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21724 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21725 | char *kwnames[] = { |
21726 | (char *) "self",(char *) "n", NULL | |
21727 | }; | |
21728 | ||
8edf1c75 | 21729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21732 | arg2 = (int) SWIG_AsInt(obj1); | |
21733 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21734 | { |
21735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21736 | result = wxTimeSpan___mul__(arg1,arg2); | |
21737 | ||
21738 | wxPyEndAllowThreads(__tstate); | |
21739 | if (PyErr_Occurred()) SWIG_fail; | |
21740 | } | |
21741 | { | |
21742 | wxTimeSpan * resultptr; | |
21743 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
2f4c0a16 | 21744 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21745 | } |
21746 | return resultobj; | |
21747 | fail: | |
21748 | return NULL; | |
21749 | } | |
21750 | ||
21751 | ||
21752 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21753 | PyObject *resultobj; | |
21754 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21755 | int arg2 ; | |
21756 | wxTimeSpan result; | |
21757 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21758 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21759 | char *kwnames[] = { |
21760 | (char *) "self",(char *) "n", NULL | |
21761 | }; | |
21762 | ||
8edf1c75 | 21763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21766 | arg2 = (int) SWIG_AsInt(obj1); | |
21767 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21768 | { |
21769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21770 | result = wxTimeSpan___rmul__(arg1,arg2); | |
21771 | ||
21772 | wxPyEndAllowThreads(__tstate); | |
21773 | if (PyErr_Occurred()) SWIG_fail; | |
21774 | } | |
21775 | { | |
21776 | wxTimeSpan * resultptr; | |
21777 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
2f4c0a16 | 21778 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21779 | } |
21780 | return resultobj; | |
21781 | fail: | |
21782 | return NULL; | |
21783 | } | |
21784 | ||
21785 | ||
21786 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21787 | PyObject *resultobj; | |
21788 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
328fcd84 | 21789 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
21790 | bool result; |
21791 | PyObject * obj0 = 0 ; | |
21792 | PyObject * obj1 = 0 ; | |
21793 | char *kwnames[] = { | |
21794 | (char *) "self",(char *) "other", NULL | |
21795 | }; | |
21796 | ||
21797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21800 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21802 | { |
21803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 21804 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
21805 | |
21806 | wxPyEndAllowThreads(__tstate); | |
21807 | if (PyErr_Occurred()) SWIG_fail; | |
21808 | } | |
4e760a36 | 21809 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21810 | return resultobj; |
21811 | fail: | |
21812 | return NULL; | |
21813 | } | |
21814 | ||
21815 | ||
21816 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21817 | PyObject *resultobj; | |
21818 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
328fcd84 | 21819 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
21820 | bool result; |
21821 | PyObject * obj0 = 0 ; | |
21822 | PyObject * obj1 = 0 ; | |
21823 | char *kwnames[] = { | |
21824 | (char *) "self",(char *) "other", NULL | |
21825 | }; | |
21826 | ||
21827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21830 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21832 | { |
21833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 21834 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
21835 | |
21836 | wxPyEndAllowThreads(__tstate); | |
21837 | if (PyErr_Occurred()) SWIG_fail; | |
21838 | } | |
4e760a36 | 21839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21840 | return resultobj; |
21841 | fail: | |
21842 | return NULL; | |
21843 | } | |
21844 | ||
21845 | ||
21846 | static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21847 | PyObject *resultobj; | |
21848 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
328fcd84 | 21849 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
21850 | bool result; |
21851 | PyObject * obj0 = 0 ; | |
21852 | PyObject * obj1 = 0 ; | |
21853 | char *kwnames[] = { | |
21854 | (char *) "self",(char *) "other", NULL | |
21855 | }; | |
21856 | ||
21857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21860 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21862 | { |
21863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 21864 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
21865 | |
21866 | wxPyEndAllowThreads(__tstate); | |
21867 | if (PyErr_Occurred()) SWIG_fail; | |
21868 | } | |
4e760a36 | 21869 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21870 | return resultobj; |
21871 | fail: | |
21872 | return NULL; | |
21873 | } | |
21874 | ||
21875 | ||
21876 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21877 | PyObject *resultobj; | |
21878 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
328fcd84 | 21879 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
21880 | bool result; |
21881 | PyObject * obj0 = 0 ; | |
21882 | PyObject * obj1 = 0 ; | |
21883 | char *kwnames[] = { | |
21884 | (char *) "self",(char *) "other", NULL | |
21885 | }; | |
21886 | ||
21887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21890 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21892 | { |
21893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 21894 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
21895 | |
21896 | wxPyEndAllowThreads(__tstate); | |
21897 | if (PyErr_Occurred()) SWIG_fail; | |
21898 | } | |
4e760a36 | 21899 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21900 | return resultobj; |
21901 | fail: | |
21902 | return NULL; | |
21903 | } | |
21904 | ||
21905 | ||
21906 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21907 | PyObject *resultobj; | |
21908 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
328fcd84 | 21909 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
21910 | bool result; |
21911 | PyObject * obj0 = 0 ; | |
21912 | PyObject * obj1 = 0 ; | |
21913 | char *kwnames[] = { | |
21914 | (char *) "self",(char *) "other", NULL | |
21915 | }; | |
21916 | ||
21917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21920 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21922 | { |
21923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 21924 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
21925 | |
21926 | wxPyEndAllowThreads(__tstate); | |
21927 | if (PyErr_Occurred()) SWIG_fail; | |
21928 | } | |
4e760a36 | 21929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21930 | return resultobj; |
21931 | fail: | |
21932 | return NULL; | |
21933 | } | |
21934 | ||
21935 | ||
21936 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21937 | PyObject *resultobj; | |
21938 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
328fcd84 | 21939 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
21940 | bool result; |
21941 | PyObject * obj0 = 0 ; | |
21942 | PyObject * obj1 = 0 ; | |
21943 | char *kwnames[] = { | |
21944 | (char *) "self",(char *) "other", NULL | |
21945 | }; | |
21946 | ||
21947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21950 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21952 | { |
21953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 21954 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
21955 | |
21956 | wxPyEndAllowThreads(__tstate); | |
21957 | if (PyErr_Occurred()) SWIG_fail; | |
21958 | } | |
4e760a36 | 21959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21960 | return resultobj; |
21961 | fail: | |
21962 | return NULL; | |
21963 | } | |
21964 | ||
21965 | ||
21966 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21967 | PyObject *resultobj; | |
21968 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21969 | bool result; | |
21970 | PyObject * obj0 = 0 ; | |
21971 | char *kwnames[] = { | |
21972 | (char *) "self", NULL | |
21973 | }; | |
21974 | ||
21975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21978 | { |
21979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21980 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
21981 | ||
21982 | wxPyEndAllowThreads(__tstate); | |
21983 | if (PyErr_Occurred()) SWIG_fail; | |
21984 | } | |
4e760a36 | 21985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21986 | return resultobj; |
21987 | fail: | |
21988 | return NULL; | |
21989 | } | |
21990 | ||
21991 | ||
21992 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21993 | PyObject *resultobj; | |
21994 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21995 | bool result; | |
21996 | PyObject * obj0 = 0 ; | |
21997 | char *kwnames[] = { | |
21998 | (char *) "self", NULL | |
21999 | }; | |
22000 | ||
22001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22004 | { |
22005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22006 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
22007 | ||
22008 | wxPyEndAllowThreads(__tstate); | |
22009 | if (PyErr_Occurred()) SWIG_fail; | |
22010 | } | |
4e760a36 | 22011 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22012 | return resultobj; |
22013 | fail: | |
22014 | return NULL; | |
22015 | } | |
22016 | ||
22017 | ||
22018 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22019 | PyObject *resultobj; | |
22020 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22021 | bool result; | |
22022 | PyObject * obj0 = 0 ; | |
22023 | char *kwnames[] = { | |
22024 | (char *) "self", NULL | |
22025 | }; | |
22026 | ||
22027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22030 | { |
22031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22032 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
22033 | ||
22034 | wxPyEndAllowThreads(__tstate); | |
22035 | if (PyErr_Occurred()) SWIG_fail; | |
22036 | } | |
4e760a36 | 22037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22038 | return resultobj; |
22039 | fail: | |
22040 | return NULL; | |
22041 | } | |
22042 | ||
22043 | ||
22044 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22045 | PyObject *resultobj; | |
22046 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22047 | wxTimeSpan *arg2 = 0 ; | |
22048 | bool result; | |
22049 | PyObject * obj0 = 0 ; | |
22050 | PyObject * obj1 = 0 ; | |
22051 | char *kwnames[] = { | |
22052 | (char *) "self",(char *) "ts", NULL | |
22053 | }; | |
22054 | ||
22055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22058 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22059 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22060 | SWIG_fail; | |
d14a1e28 | 22061 | if (arg2 == NULL) { |
2f4c0a16 RD |
22062 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22063 | SWIG_fail; | |
d14a1e28 RD |
22064 | } |
22065 | { | |
22066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22067 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
22068 | ||
22069 | wxPyEndAllowThreads(__tstate); | |
22070 | if (PyErr_Occurred()) SWIG_fail; | |
22071 | } | |
4e760a36 | 22072 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22073 | return resultobj; |
22074 | fail: | |
22075 | return NULL; | |
22076 | } | |
22077 | ||
22078 | ||
22079 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22080 | PyObject *resultobj; | |
22081 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22082 | wxTimeSpan *arg2 = 0 ; | |
22083 | bool result; | |
22084 | PyObject * obj0 = 0 ; | |
22085 | PyObject * obj1 = 0 ; | |
22086 | char *kwnames[] = { | |
22087 | (char *) "self",(char *) "ts", NULL | |
22088 | }; | |
22089 | ||
22090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22093 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22094 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22095 | SWIG_fail; | |
d14a1e28 | 22096 | if (arg2 == NULL) { |
2f4c0a16 RD |
22097 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22098 | SWIG_fail; | |
d14a1e28 RD |
22099 | } |
22100 | { | |
22101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22102 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
22103 | ||
22104 | wxPyEndAllowThreads(__tstate); | |
22105 | if (PyErr_Occurred()) SWIG_fail; | |
22106 | } | |
4e760a36 | 22107 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22108 | return resultobj; |
22109 | fail: | |
22110 | return NULL; | |
22111 | } | |
22112 | ||
22113 | ||
22114 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22115 | PyObject *resultobj; | |
22116 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22117 | wxTimeSpan *arg2 = 0 ; | |
22118 | bool result; | |
22119 | PyObject * obj0 = 0 ; | |
22120 | PyObject * obj1 = 0 ; | |
22121 | char *kwnames[] = { | |
22122 | (char *) "self",(char *) "t", NULL | |
22123 | }; | |
22124 | ||
22125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22128 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22129 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22130 | SWIG_fail; | |
d14a1e28 | 22131 | if (arg2 == NULL) { |
2f4c0a16 RD |
22132 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22133 | SWIG_fail; | |
d14a1e28 RD |
22134 | } |
22135 | { | |
22136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22137 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
22138 | ||
22139 | wxPyEndAllowThreads(__tstate); | |
22140 | if (PyErr_Occurred()) SWIG_fail; | |
22141 | } | |
4e760a36 | 22142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22143 | return resultobj; |
22144 | fail: | |
22145 | return NULL; | |
22146 | } | |
22147 | ||
22148 | ||
22149 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22150 | PyObject *resultobj; | |
22151 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22152 | int result; | |
22153 | PyObject * obj0 = 0 ; | |
22154 | char *kwnames[] = { | |
22155 | (char *) "self", NULL | |
22156 | }; | |
22157 | ||
22158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22161 | { |
22162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22163 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
22164 | ||
22165 | wxPyEndAllowThreads(__tstate); | |
22166 | if (PyErr_Occurred()) SWIG_fail; | |
22167 | } | |
2f4c0a16 | 22168 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22169 | return resultobj; |
22170 | fail: | |
22171 | return NULL; | |
22172 | } | |
22173 | ||
22174 | ||
22175 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22176 | PyObject *resultobj; | |
22177 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22178 | int result; | |
22179 | PyObject * obj0 = 0 ; | |
22180 | char *kwnames[] = { | |
22181 | (char *) "self", NULL | |
22182 | }; | |
22183 | ||
22184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22187 | { |
22188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22189 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
22190 | ||
22191 | wxPyEndAllowThreads(__tstate); | |
22192 | if (PyErr_Occurred()) SWIG_fail; | |
22193 | } | |
2f4c0a16 | 22194 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22195 | return resultobj; |
22196 | fail: | |
22197 | return NULL; | |
22198 | } | |
22199 | ||
22200 | ||
22201 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22202 | PyObject *resultobj; | |
22203 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22204 | int result; | |
22205 | PyObject * obj0 = 0 ; | |
22206 | char *kwnames[] = { | |
22207 | (char *) "self", NULL | |
22208 | }; | |
22209 | ||
22210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22213 | { |
22214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22215 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
22216 | ||
22217 | wxPyEndAllowThreads(__tstate); | |
22218 | if (PyErr_Occurred()) SWIG_fail; | |
22219 | } | |
2f4c0a16 | 22220 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22221 | return resultobj; |
22222 | fail: | |
22223 | return NULL; | |
22224 | } | |
22225 | ||
22226 | ||
22227 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22228 | PyObject *resultobj; | |
22229 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22230 | int result; | |
22231 | PyObject * obj0 = 0 ; | |
22232 | char *kwnames[] = { | |
22233 | (char *) "self", NULL | |
22234 | }; | |
22235 | ||
22236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22239 | { |
22240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22241 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
22242 | ||
22243 | wxPyEndAllowThreads(__tstate); | |
22244 | if (PyErr_Occurred()) SWIG_fail; | |
22245 | } | |
2f4c0a16 | 22246 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22247 | return resultobj; |
22248 | fail: | |
22249 | return NULL; | |
22250 | } | |
22251 | ||
22252 | ||
22253 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22254 | PyObject *resultobj; | |
22255 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22256 | wxLongLong result; | |
22257 | PyObject * obj0 = 0 ; | |
22258 | char *kwnames[] = { | |
22259 | (char *) "self", NULL | |
22260 | }; | |
22261 | ||
22262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22265 | { |
22266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22267 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
22268 | ||
22269 | wxPyEndAllowThreads(__tstate); | |
22270 | if (PyErr_Occurred()) SWIG_fail; | |
22271 | } | |
22272 | { | |
22273 | PyObject *hi, *lo, *shifter, *shifted; | |
22274 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22275 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22276 | shifter = PyLong_FromLong(32); | |
22277 | shifted = PyNumber_Lshift(hi, shifter); | |
22278 | resultobj = PyNumber_Or(shifted, lo); | |
22279 | Py_DECREF(hi); | |
22280 | Py_DECREF(lo); | |
22281 | Py_DECREF(shifter); | |
22282 | Py_DECREF(shifted); | |
22283 | } | |
22284 | return resultobj; | |
22285 | fail: | |
22286 | return NULL; | |
22287 | } | |
22288 | ||
22289 | ||
22290 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22291 | PyObject *resultobj; | |
22292 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22293 | wxLongLong result; | |
22294 | PyObject * obj0 = 0 ; | |
22295 | char *kwnames[] = { | |
22296 | (char *) "self", NULL | |
22297 | }; | |
22298 | ||
22299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22302 | { |
22303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22304 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
22305 | ||
22306 | wxPyEndAllowThreads(__tstate); | |
22307 | if (PyErr_Occurred()) SWIG_fail; | |
22308 | } | |
22309 | { | |
22310 | PyObject *hi, *lo, *shifter, *shifted; | |
22311 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22312 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22313 | shifter = PyLong_FromLong(32); | |
22314 | shifted = PyNumber_Lshift(hi, shifter); | |
22315 | resultobj = PyNumber_Or(shifted, lo); | |
22316 | Py_DECREF(hi); | |
22317 | Py_DECREF(lo); | |
22318 | Py_DECREF(shifter); | |
22319 | Py_DECREF(shifted); | |
22320 | } | |
22321 | return resultobj; | |
22322 | fail: | |
22323 | return NULL; | |
22324 | } | |
22325 | ||
22326 | ||
22327 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22328 | PyObject *resultobj; | |
22329 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22330 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
22331 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
22332 | wxString result; | |
423f194a | 22333 | bool temp2 = False ; |
d14a1e28 RD |
22334 | PyObject * obj0 = 0 ; |
22335 | PyObject * obj1 = 0 ; | |
22336 | char *kwnames[] = { | |
22337 | (char *) "self",(char *) "format", NULL | |
22338 | }; | |
22339 | ||
22340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22343 | if (obj1) { |
22344 | { | |
22345 | arg2 = wxString_in_helper(obj1); | |
22346 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 22347 | temp2 = True; |
d14a1e28 RD |
22348 | } |
22349 | } | |
22350 | { | |
22351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22352 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
22353 | ||
22354 | wxPyEndAllowThreads(__tstate); | |
22355 | if (PyErr_Occurred()) SWIG_fail; | |
22356 | } | |
22357 | { | |
22358 | #if wxUSE_UNICODE | |
22359 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22360 | #else | |
22361 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22362 | #endif | |
22363 | } | |
22364 | { | |
22365 | if (temp2) | |
22366 | delete arg2; | |
22367 | } | |
22368 | return resultobj; | |
22369 | fail: | |
22370 | { | |
22371 | if (temp2) | |
22372 | delete arg2; | |
22373 | } | |
22374 | return NULL; | |
22375 | } | |
22376 | ||
22377 | ||
22378 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
22379 | PyObject *obj; | |
22380 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22381 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
22382 | Py_INCREF(obj); | |
22383 | return Py_BuildValue((char *)""); | |
22384 | } | |
22385 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22386 | PyObject *resultobj; | |
22387 | int arg1 = (int) 0 ; | |
22388 | int arg2 = (int) 0 ; | |
22389 | int arg3 = (int) 0 ; | |
22390 | int arg4 = (int) 0 ; | |
22391 | wxDateSpan *result; | |
8edf1c75 RD |
22392 | PyObject * obj0 = 0 ; |
22393 | PyObject * obj1 = 0 ; | |
22394 | PyObject * obj2 = 0 ; | |
22395 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22396 | char *kwnames[] = { |
22397 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
22398 | }; | |
22399 | ||
8edf1c75 RD |
22400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
22401 | if (obj0) { | |
2f4c0a16 RD |
22402 | arg1 = (int) SWIG_AsInt(obj0); |
22403 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22404 | } |
22405 | if (obj1) { | |
2f4c0a16 RD |
22406 | arg2 = (int) SWIG_AsInt(obj1); |
22407 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22408 | } |
22409 | if (obj2) { | |
2f4c0a16 RD |
22410 | arg3 = (int) SWIG_AsInt(obj2); |
22411 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22412 | } |
22413 | if (obj3) { | |
2f4c0a16 RD |
22414 | arg4 = (int) SWIG_AsInt(obj3); |
22415 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22416 | } |
d14a1e28 RD |
22417 | { |
22418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22419 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
22420 | ||
22421 | wxPyEndAllowThreads(__tstate); | |
22422 | if (PyErr_Occurred()) SWIG_fail; | |
22423 | } | |
2f4c0a16 | 22424 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22425 | return resultobj; |
22426 | fail: | |
22427 | return NULL; | |
22428 | } | |
22429 | ||
22430 | ||
22431 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22432 | PyObject *resultobj; | |
22433 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22434 | PyObject * obj0 = 0 ; | |
22435 | char *kwnames[] = { | |
22436 | (char *) "self", NULL | |
22437 | }; | |
22438 | ||
22439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22442 | { |
22443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22444 | delete arg1; | |
22445 | ||
22446 | wxPyEndAllowThreads(__tstate); | |
22447 | if (PyErr_Occurred()) SWIG_fail; | |
22448 | } | |
22449 | Py_INCREF(Py_None); resultobj = Py_None; | |
22450 | return resultobj; | |
22451 | fail: | |
22452 | return NULL; | |
22453 | } | |
22454 | ||
22455 | ||
22456 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22457 | PyObject *resultobj; | |
22458 | int arg1 ; | |
22459 | wxDateSpan result; | |
8edf1c75 | 22460 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22461 | char *kwnames[] = { |
22462 | (char *) "days", NULL | |
22463 | }; | |
22464 | ||
8edf1c75 | 22465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
22466 | arg1 = (int) SWIG_AsInt(obj0); |
22467 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22468 | { |
22469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22470 | result = wxDateSpan::Days(arg1); | |
22471 | ||
22472 | wxPyEndAllowThreads(__tstate); | |
22473 | if (PyErr_Occurred()) SWIG_fail; | |
22474 | } | |
22475 | { | |
22476 | wxDateSpan * resultptr; | |
22477 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
2f4c0a16 | 22478 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22479 | } |
22480 | return resultobj; | |
22481 | fail: | |
22482 | return NULL; | |
22483 | } | |
22484 | ||
22485 | ||
22486 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22487 | PyObject *resultobj; | |
22488 | wxDateSpan result; | |
22489 | char *kwnames[] = { | |
22490 | NULL | |
22491 | }; | |
22492 | ||
22493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
22494 | { | |
22495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22496 | result = wxDateSpan::Day(); | |
22497 | ||
22498 | wxPyEndAllowThreads(__tstate); | |
22499 | if (PyErr_Occurred()) SWIG_fail; | |
22500 | } | |
22501 | { | |
22502 | wxDateSpan * resultptr; | |
22503 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
2f4c0a16 | 22504 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22505 | } |
22506 | return resultobj; | |
22507 | fail: | |
22508 | return NULL; | |
22509 | } | |
22510 | ||
22511 | ||
22512 | static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22513 | PyObject *resultobj; | |
22514 | int arg1 ; | |
22515 | wxDateSpan result; | |
8edf1c75 | 22516 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22517 | char *kwnames[] = { |
22518 | (char *) "weeks", NULL | |
22519 | }; | |
22520 | ||
8edf1c75 | 22521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
22522 | arg1 = (int) SWIG_AsInt(obj0); |
22523 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22524 | { |
22525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22526 | result = wxDateSpan::Weeks(arg1); | |
22527 | ||
22528 | wxPyEndAllowThreads(__tstate); | |
22529 | if (PyErr_Occurred()) SWIG_fail; | |
22530 | } | |
22531 | { | |
22532 | wxDateSpan * resultptr; | |
22533 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
2f4c0a16 | 22534 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22535 | } |
22536 | return resultobj; | |
22537 | fail: | |
22538 | return NULL; | |
22539 | } | |
22540 | ||
22541 | ||
22542 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22543 | PyObject *resultobj; | |
22544 | wxDateSpan result; | |
22545 | char *kwnames[] = { | |
22546 | NULL | |
22547 | }; | |
22548 | ||
22549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
22550 | { | |
22551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22552 | result = wxDateSpan::Week(); | |
22553 | ||
22554 | wxPyEndAllowThreads(__tstate); | |
22555 | if (PyErr_Occurred()) SWIG_fail; | |
22556 | } | |
22557 | { | |
22558 | wxDateSpan * resultptr; | |
22559 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
2f4c0a16 | 22560 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22561 | } |
22562 | return resultobj; | |
22563 | fail: | |
22564 | return NULL; | |
22565 | } | |
22566 | ||
22567 | ||
22568 | static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22569 | PyObject *resultobj; | |
22570 | int arg1 ; | |
22571 | wxDateSpan result; | |
8edf1c75 | 22572 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22573 | char *kwnames[] = { |
22574 | (char *) "mon", NULL | |
22575 | }; | |
22576 | ||
8edf1c75 | 22577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
22578 | arg1 = (int) SWIG_AsInt(obj0); |
22579 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22580 | { |
22581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22582 | result = wxDateSpan::Months(arg1); | |
22583 | ||
22584 | wxPyEndAllowThreads(__tstate); | |
22585 | if (PyErr_Occurred()) SWIG_fail; | |
22586 | } | |
22587 | { | |
22588 | wxDateSpan * resultptr; | |
22589 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
2f4c0a16 | 22590 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22591 | } |
22592 | return resultobj; | |
22593 | fail: | |
22594 | return NULL; | |
22595 | } | |
22596 | ||
22597 | ||
22598 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22599 | PyObject *resultobj; | |
22600 | wxDateSpan result; | |
22601 | char *kwnames[] = { | |
22602 | NULL | |
22603 | }; | |
22604 | ||
22605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
22606 | { | |
22607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22608 | result = wxDateSpan::Month(); | |
22609 | ||
22610 | wxPyEndAllowThreads(__tstate); | |
22611 | if (PyErr_Occurred()) SWIG_fail; | |
22612 | } | |
22613 | { | |
22614 | wxDateSpan * resultptr; | |
22615 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
2f4c0a16 | 22616 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22617 | } |
22618 | return resultobj; | |
22619 | fail: | |
22620 | return NULL; | |
22621 | } | |
22622 | ||
22623 | ||
22624 | static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22625 | PyObject *resultobj; | |
22626 | int arg1 ; | |
22627 | wxDateSpan result; | |
8edf1c75 | 22628 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22629 | char *kwnames[] = { |
22630 | (char *) "years", NULL | |
22631 | }; | |
22632 | ||
8edf1c75 | 22633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
22634 | arg1 = (int) SWIG_AsInt(obj0); |
22635 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22636 | { |
22637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22638 | result = wxDateSpan::Years(arg1); | |
22639 | ||
22640 | wxPyEndAllowThreads(__tstate); | |
22641 | if (PyErr_Occurred()) SWIG_fail; | |
22642 | } | |
22643 | { | |
22644 | wxDateSpan * resultptr; | |
22645 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
2f4c0a16 | 22646 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22647 | } |
22648 | return resultobj; | |
22649 | fail: | |
22650 | return NULL; | |
22651 | } | |
22652 | ||
22653 | ||
22654 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22655 | PyObject *resultobj; | |
22656 | wxDateSpan result; | |
22657 | char *kwnames[] = { | |
22658 | NULL | |
22659 | }; | |
22660 | ||
22661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
22662 | { | |
22663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22664 | result = wxDateSpan::Year(); | |
22665 | ||
22666 | wxPyEndAllowThreads(__tstate); | |
22667 | if (PyErr_Occurred()) SWIG_fail; | |
22668 | } | |
22669 | { | |
22670 | wxDateSpan * resultptr; | |
22671 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
2f4c0a16 | 22672 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22673 | } |
22674 | return resultobj; | |
22675 | fail: | |
22676 | return NULL; | |
22677 | } | |
22678 | ||
22679 | ||
22680 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22681 | PyObject *resultobj; | |
22682 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22683 | int arg2 ; | |
22684 | wxDateSpan *result; | |
22685 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22686 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22687 | char *kwnames[] = { |
22688 | (char *) "self",(char *) "n", NULL | |
22689 | }; | |
22690 | ||
8edf1c75 | 22691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22694 | arg2 = (int) SWIG_AsInt(obj1); | |
22695 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22696 | { |
22697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22698 | { | |
22699 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
22700 | result = (wxDateSpan *) &_result_ref; | |
22701 | } | |
22702 | ||
22703 | wxPyEndAllowThreads(__tstate); | |
22704 | if (PyErr_Occurred()) SWIG_fail; | |
22705 | } | |
2f4c0a16 | 22706 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
22707 | return resultobj; |
22708 | fail: | |
22709 | return NULL; | |
22710 | } | |
22711 | ||
22712 | ||
22713 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22714 | PyObject *resultobj; | |
22715 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22716 | int arg2 ; | |
22717 | wxDateSpan *result; | |
22718 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22719 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22720 | char *kwnames[] = { |
22721 | (char *) "self",(char *) "n", NULL | |
22722 | }; | |
22723 | ||
8edf1c75 | 22724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22727 | arg2 = (int) SWIG_AsInt(obj1); | |
22728 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22729 | { |
22730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22731 | { | |
22732 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
22733 | result = (wxDateSpan *) &_result_ref; | |
22734 | } | |
22735 | ||
22736 | wxPyEndAllowThreads(__tstate); | |
22737 | if (PyErr_Occurred()) SWIG_fail; | |
22738 | } | |
2f4c0a16 | 22739 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
22740 | return resultobj; |
22741 | fail: | |
22742 | return NULL; | |
22743 | } | |
22744 | ||
22745 | ||
22746 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22747 | PyObject *resultobj; | |
22748 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22749 | int arg2 ; | |
22750 | wxDateSpan *result; | |
22751 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22752 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22753 | char *kwnames[] = { |
22754 | (char *) "self",(char *) "n", NULL | |
22755 | }; | |
22756 | ||
8edf1c75 | 22757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22760 | arg2 = (int) SWIG_AsInt(obj1); | |
22761 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22762 | { |
22763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22764 | { | |
22765 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
22766 | result = (wxDateSpan *) &_result_ref; | |
22767 | } | |
22768 | ||
22769 | wxPyEndAllowThreads(__tstate); | |
22770 | if (PyErr_Occurred()) SWIG_fail; | |
22771 | } | |
2f4c0a16 | 22772 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
22773 | return resultobj; |
22774 | fail: | |
22775 | return NULL; | |
22776 | } | |
22777 | ||
22778 | ||
22779 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22780 | PyObject *resultobj; | |
22781 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22782 | int arg2 ; | |
22783 | wxDateSpan *result; | |
22784 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22785 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22786 | char *kwnames[] = { |
22787 | (char *) "self",(char *) "n", NULL | |
22788 | }; | |
22789 | ||
8edf1c75 | 22790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22793 | arg2 = (int) SWIG_AsInt(obj1); | |
22794 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22795 | { |
22796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22797 | { | |
22798 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
22799 | result = (wxDateSpan *) &_result_ref; | |
22800 | } | |
22801 | ||
22802 | wxPyEndAllowThreads(__tstate); | |
22803 | if (PyErr_Occurred()) SWIG_fail; | |
22804 | } | |
2f4c0a16 | 22805 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
22806 | return resultobj; |
22807 | fail: | |
22808 | return NULL; | |
22809 | } | |
22810 | ||
22811 | ||
22812 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22813 | PyObject *resultobj; | |
22814 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22815 | int result; | |
22816 | PyObject * obj0 = 0 ; | |
22817 | char *kwnames[] = { | |
22818 | (char *) "self", NULL | |
22819 | }; | |
22820 | ||
22821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22824 | { |
22825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22826 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
22827 | ||
22828 | wxPyEndAllowThreads(__tstate); | |
22829 | if (PyErr_Occurred()) SWIG_fail; | |
22830 | } | |
2f4c0a16 | 22831 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22832 | return resultobj; |
22833 | fail: | |
22834 | return NULL; | |
22835 | } | |
22836 | ||
22837 | ||
22838 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22839 | PyObject *resultobj; | |
22840 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22841 | int result; | |
22842 | PyObject * obj0 = 0 ; | |
22843 | char *kwnames[] = { | |
22844 | (char *) "self", NULL | |
22845 | }; | |
22846 | ||
22847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22850 | { |
22851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22852 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
22853 | ||
22854 | wxPyEndAllowThreads(__tstate); | |
22855 | if (PyErr_Occurred()) SWIG_fail; | |
22856 | } | |
2f4c0a16 | 22857 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22858 | return resultobj; |
22859 | fail: | |
22860 | return NULL; | |
22861 | } | |
22862 | ||
22863 | ||
22864 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22865 | PyObject *resultobj; | |
22866 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22867 | int result; | |
22868 | PyObject * obj0 = 0 ; | |
22869 | char *kwnames[] = { | |
22870 | (char *) "self", NULL | |
22871 | }; | |
22872 | ||
22873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22876 | { |
22877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22878 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
22879 | ||
22880 | wxPyEndAllowThreads(__tstate); | |
22881 | if (PyErr_Occurred()) SWIG_fail; | |
22882 | } | |
2f4c0a16 | 22883 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22884 | return resultobj; |
22885 | fail: | |
22886 | return NULL; | |
22887 | } | |
22888 | ||
22889 | ||
22890 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22891 | PyObject *resultobj; | |
22892 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22893 | int result; | |
22894 | PyObject * obj0 = 0 ; | |
22895 | char *kwnames[] = { | |
22896 | (char *) "self", NULL | |
22897 | }; | |
22898 | ||
22899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22902 | { |
22903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22904 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
22905 | ||
22906 | wxPyEndAllowThreads(__tstate); | |
22907 | if (PyErr_Occurred()) SWIG_fail; | |
22908 | } | |
2f4c0a16 | 22909 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22910 | return resultobj; |
22911 | fail: | |
22912 | return NULL; | |
22913 | } | |
22914 | ||
22915 | ||
22916 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22917 | PyObject *resultobj; | |
22918 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22919 | int result; | |
22920 | PyObject * obj0 = 0 ; | |
22921 | char *kwnames[] = { | |
22922 | (char *) "self", NULL | |
22923 | }; | |
22924 | ||
22925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22928 | { |
22929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22930 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
22931 | ||
22932 | wxPyEndAllowThreads(__tstate); | |
22933 | if (PyErr_Occurred()) SWIG_fail; | |
22934 | } | |
2f4c0a16 | 22935 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22936 | return resultobj; |
22937 | fail: | |
22938 | return NULL; | |
22939 | } | |
22940 | ||
22941 | ||
22942 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22943 | PyObject *resultobj; | |
22944 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22945 | wxDateSpan *arg2 = 0 ; | |
22946 | wxDateSpan *result; | |
22947 | PyObject * obj0 = 0 ; | |
22948 | PyObject * obj1 = 0 ; | |
22949 | char *kwnames[] = { | |
22950 | (char *) "self",(char *) "other", NULL | |
22951 | }; | |
22952 | ||
22953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22956 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
22957 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22958 | SWIG_fail; | |
d14a1e28 | 22959 | if (arg2 == NULL) { |
2f4c0a16 RD |
22960 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22961 | SWIG_fail; | |
d14a1e28 RD |
22962 | } |
22963 | { | |
22964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22965 | { | |
22966 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
22967 | result = (wxDateSpan *) &_result_ref; | |
22968 | } | |
22969 | ||
22970 | wxPyEndAllowThreads(__tstate); | |
22971 | if (PyErr_Occurred()) SWIG_fail; | |
22972 | } | |
2f4c0a16 | 22973 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
22974 | return resultobj; |
22975 | fail: | |
22976 | return NULL; | |
22977 | } | |
22978 | ||
22979 | ||
22980 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22981 | PyObject *resultobj; | |
22982 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22983 | wxDateSpan *arg2 = 0 ; | |
22984 | wxDateSpan *result; | |
22985 | PyObject * obj0 = 0 ; | |
22986 | PyObject * obj1 = 0 ; | |
22987 | char *kwnames[] = { | |
22988 | (char *) "self",(char *) "other", NULL | |
22989 | }; | |
22990 | ||
22991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22994 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
22995 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22996 | SWIG_fail; | |
d14a1e28 | 22997 | if (arg2 == NULL) { |
2f4c0a16 RD |
22998 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22999 | SWIG_fail; | |
d14a1e28 RD |
23000 | } |
23001 | { | |
23002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23003 | { | |
23004 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
23005 | result = (wxDateSpan *) &_result_ref; | |
23006 | } | |
23007 | ||
23008 | wxPyEndAllowThreads(__tstate); | |
23009 | if (PyErr_Occurred()) SWIG_fail; | |
23010 | } | |
2f4c0a16 | 23011 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23012 | return resultobj; |
23013 | fail: | |
23014 | return NULL; | |
23015 | } | |
23016 | ||
23017 | ||
23018 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23019 | PyObject *resultobj; | |
23020 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23021 | wxDateSpan *result; | |
23022 | PyObject * obj0 = 0 ; | |
23023 | char *kwnames[] = { | |
23024 | (char *) "self", NULL | |
23025 | }; | |
23026 | ||
23027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23030 | { |
23031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23032 | { | |
23033 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
23034 | result = (wxDateSpan *) &_result_ref; | |
23035 | } | |
23036 | ||
23037 | wxPyEndAllowThreads(__tstate); | |
23038 | if (PyErr_Occurred()) SWIG_fail; | |
23039 | } | |
2f4c0a16 | 23040 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23041 | return resultobj; |
23042 | fail: | |
23043 | return NULL; | |
23044 | } | |
23045 | ||
23046 | ||
23047 | static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23048 | PyObject *resultobj; | |
23049 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23050 | int arg2 ; | |
23051 | wxDateSpan *result; | |
23052 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23053 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23054 | char *kwnames[] = { |
23055 | (char *) "self",(char *) "factor", NULL | |
23056 | }; | |
23057 | ||
8edf1c75 | 23058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23061 | arg2 = (int) SWIG_AsInt(obj1); | |
23062 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23063 | { |
23064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23065 | { | |
23066 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
23067 | result = (wxDateSpan *) &_result_ref; | |
23068 | } | |
23069 | ||
23070 | wxPyEndAllowThreads(__tstate); | |
23071 | if (PyErr_Occurred()) SWIG_fail; | |
23072 | } | |
2f4c0a16 | 23073 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23074 | return resultobj; |
23075 | fail: | |
23076 | return NULL; | |
23077 | } | |
23078 | ||
23079 | ||
23080 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23081 | PyObject *resultobj; | |
23082 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23083 | wxDateSpan *arg2 = 0 ; | |
23084 | wxDateSpan *result; | |
23085 | PyObject * obj0 = 0 ; | |
23086 | PyObject * obj1 = 0 ; | |
23087 | char *kwnames[] = { | |
23088 | (char *) "self",(char *) "other", NULL | |
23089 | }; | |
23090 | ||
23091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23094 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23095 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23096 | SWIG_fail; | |
d14a1e28 | 23097 | if (arg2 == NULL) { |
2f4c0a16 RD |
23098 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23099 | SWIG_fail; | |
d14a1e28 RD |
23100 | } |
23101 | { | |
23102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23103 | { | |
23104 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
23105 | result = (wxDateSpan *) &_result_ref; | |
23106 | } | |
23107 | ||
23108 | wxPyEndAllowThreads(__tstate); | |
23109 | if (PyErr_Occurred()) SWIG_fail; | |
23110 | } | |
2f4c0a16 | 23111 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23112 | return resultobj; |
23113 | fail: | |
23114 | return NULL; | |
23115 | } | |
23116 | ||
23117 | ||
23118 | static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23119 | PyObject *resultobj; | |
23120 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23121 | wxDateSpan *arg2 = 0 ; | |
23122 | wxDateSpan *result; | |
23123 | PyObject * obj0 = 0 ; | |
23124 | PyObject * obj1 = 0 ; | |
23125 | char *kwnames[] = { | |
23126 | (char *) "self",(char *) "other", NULL | |
23127 | }; | |
23128 | ||
23129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23132 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23133 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23134 | SWIG_fail; | |
d14a1e28 | 23135 | if (arg2 == NULL) { |
2f4c0a16 RD |
23136 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23137 | SWIG_fail; | |
d14a1e28 RD |
23138 | } |
23139 | { | |
23140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23141 | { | |
23142 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
23143 | result = (wxDateSpan *) &_result_ref; | |
23144 | } | |
23145 | ||
23146 | wxPyEndAllowThreads(__tstate); | |
23147 | if (PyErr_Occurred()) SWIG_fail; | |
23148 | } | |
2f4c0a16 | 23149 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23150 | return resultobj; |
23151 | fail: | |
23152 | return NULL; | |
23153 | } | |
23154 | ||
23155 | ||
23156 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23157 | PyObject *resultobj; | |
23158 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23159 | wxDateSpan *result; | |
23160 | PyObject * obj0 = 0 ; | |
23161 | char *kwnames[] = { | |
23162 | (char *) "self", NULL | |
23163 | }; | |
23164 | ||
23165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23168 | { |
23169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23170 | { | |
23171 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
23172 | result = (wxDateSpan *) &_result_ref; | |
23173 | } | |
23174 | ||
23175 | wxPyEndAllowThreads(__tstate); | |
23176 | if (PyErr_Occurred()) SWIG_fail; | |
23177 | } | |
2f4c0a16 | 23178 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23179 | return resultobj; |
23180 | fail: | |
23181 | return NULL; | |
23182 | } | |
23183 | ||
23184 | ||
23185 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23186 | PyObject *resultobj; | |
23187 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23188 | int arg2 ; | |
23189 | wxDateSpan *result; | |
23190 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23191 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23192 | char *kwnames[] = { |
23193 | (char *) "self",(char *) "factor", NULL | |
23194 | }; | |
23195 | ||
8edf1c75 | 23196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23199 | arg2 = (int) SWIG_AsInt(obj1); | |
23200 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23201 | { |
23202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23203 | { | |
23204 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
23205 | result = (wxDateSpan *) &_result_ref; | |
23206 | } | |
23207 | ||
23208 | wxPyEndAllowThreads(__tstate); | |
23209 | if (PyErr_Occurred()) SWIG_fail; | |
23210 | } | |
2f4c0a16 | 23211 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23212 | return resultobj; |
23213 | fail: | |
23214 | return NULL; | |
23215 | } | |
23216 | ||
23217 | ||
23218 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23219 | PyObject *resultobj; | |
23220 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23221 | wxDateSpan *arg2 = 0 ; | |
23222 | wxDateSpan result; | |
23223 | PyObject * obj0 = 0 ; | |
23224 | PyObject * obj1 = 0 ; | |
23225 | char *kwnames[] = { | |
23226 | (char *) "self",(char *) "other", NULL | |
23227 | }; | |
23228 | ||
23229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23232 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23233 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23234 | SWIG_fail; | |
d14a1e28 | 23235 | if (arg2 == NULL) { |
2f4c0a16 RD |
23236 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23237 | SWIG_fail; | |
d14a1e28 RD |
23238 | } |
23239 | { | |
23240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23241 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
23242 | ||
23243 | wxPyEndAllowThreads(__tstate); | |
23244 | if (PyErr_Occurred()) SWIG_fail; | |
23245 | } | |
23246 | { | |
23247 | wxDateSpan * resultptr; | |
23248 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
2f4c0a16 | 23249 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23250 | } |
23251 | return resultobj; | |
23252 | fail: | |
23253 | return NULL; | |
23254 | } | |
23255 | ||
23256 | ||
23257 | static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23258 | PyObject *resultobj; | |
23259 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23260 | wxDateSpan *arg2 = 0 ; | |
23261 | wxDateSpan result; | |
23262 | PyObject * obj0 = 0 ; | |
23263 | PyObject * obj1 = 0 ; | |
23264 | char *kwnames[] = { | |
23265 | (char *) "self",(char *) "other", NULL | |
23266 | }; | |
23267 | ||
23268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23271 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23272 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23273 | SWIG_fail; | |
d14a1e28 | 23274 | if (arg2 == NULL) { |
2f4c0a16 RD |
23275 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23276 | SWIG_fail; | |
d14a1e28 RD |
23277 | } |
23278 | { | |
23279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23280 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
23281 | ||
23282 | wxPyEndAllowThreads(__tstate); | |
23283 | if (PyErr_Occurred()) SWIG_fail; | |
23284 | } | |
23285 | { | |
23286 | wxDateSpan * resultptr; | |
23287 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
2f4c0a16 | 23288 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23289 | } |
23290 | return resultobj; | |
23291 | fail: | |
23292 | return NULL; | |
23293 | } | |
23294 | ||
23295 | ||
23296 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23297 | PyObject *resultobj; | |
23298 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23299 | int arg2 ; | |
23300 | wxDateSpan result; | |
23301 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23302 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23303 | char *kwnames[] = { |
23304 | (char *) "self",(char *) "n", NULL | |
23305 | }; | |
23306 | ||
8edf1c75 | 23307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23310 | arg2 = (int) SWIG_AsInt(obj1); | |
23311 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23312 | { |
23313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23314 | result = wxDateSpan___mul__(arg1,arg2); | |
23315 | ||
23316 | wxPyEndAllowThreads(__tstate); | |
23317 | if (PyErr_Occurred()) SWIG_fail; | |
23318 | } | |
23319 | { | |
23320 | wxDateSpan * resultptr; | |
23321 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
2f4c0a16 | 23322 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23323 | } |
23324 | return resultobj; | |
23325 | fail: | |
23326 | return NULL; | |
23327 | } | |
23328 | ||
23329 | ||
23330 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23331 | PyObject *resultobj; | |
23332 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23333 | int arg2 ; | |
23334 | wxDateSpan result; | |
23335 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23336 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23337 | char *kwnames[] = { |
23338 | (char *) "self",(char *) "n", NULL | |
23339 | }; | |
23340 | ||
8edf1c75 | 23341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23344 | arg2 = (int) SWIG_AsInt(obj1); | |
23345 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23346 | { |
23347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23348 | result = wxDateSpan___rmul__(arg1,arg2); | |
23349 | ||
23350 | wxPyEndAllowThreads(__tstate); | |
23351 | if (PyErr_Occurred()) SWIG_fail; | |
23352 | } | |
23353 | { | |
23354 | wxDateSpan * resultptr; | |
23355 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
2f4c0a16 | 23356 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23357 | } |
23358 | return resultobj; | |
23359 | fail: | |
23360 | return NULL; | |
23361 | } | |
23362 | ||
23363 | ||
23364 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23365 | PyObject *resultobj; | |
23366 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
328fcd84 | 23367 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; |
d14a1e28 RD |
23368 | bool result; |
23369 | PyObject * obj0 = 0 ; | |
23370 | PyObject * obj1 = 0 ; | |
23371 | char *kwnames[] = { | |
23372 | (char *) "self",(char *) "other", NULL | |
23373 | }; | |
23374 | ||
23375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23378 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23380 | { |
23381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 23382 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); |
d14a1e28 RD |
23383 | |
23384 | wxPyEndAllowThreads(__tstate); | |
23385 | if (PyErr_Occurred()) SWIG_fail; | |
23386 | } | |
4e760a36 | 23387 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23388 | return resultobj; |
23389 | fail: | |
23390 | return NULL; | |
23391 | } | |
23392 | ||
23393 | ||
23394 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23395 | PyObject *resultobj; | |
23396 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
328fcd84 | 23397 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; |
d14a1e28 RD |
23398 | bool result; |
23399 | PyObject * obj0 = 0 ; | |
23400 | PyObject * obj1 = 0 ; | |
23401 | char *kwnames[] = { | |
23402 | (char *) "self",(char *) "other", NULL | |
23403 | }; | |
23404 | ||
23405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23408 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23410 | { |
23411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 23412 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); |
d14a1e28 RD |
23413 | |
23414 | wxPyEndAllowThreads(__tstate); | |
23415 | if (PyErr_Occurred()) SWIG_fail; | |
23416 | } | |
4e760a36 | 23417 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23418 | return resultobj; |
23419 | fail: | |
23420 | return NULL; | |
23421 | } | |
23422 | ||
23423 | ||
23424 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
23425 | PyObject *obj; | |
23426 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23427 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
23428 | Py_INCREF(obj); | |
23429 | return Py_BuildValue((char *)""); | |
23430 | } | |
23431 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23432 | PyObject *resultobj; | |
23433 | long result; | |
23434 | char *kwnames[] = { | |
23435 | NULL | |
23436 | }; | |
23437 | ||
23438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
23439 | { | |
23440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23441 | result = (long)wxGetLocalTime(); | |
23442 | ||
23443 | wxPyEndAllowThreads(__tstate); | |
23444 | if (PyErr_Occurred()) SWIG_fail; | |
23445 | } | |
2f4c0a16 | 23446 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23447 | return resultobj; |
23448 | fail: | |
23449 | return NULL; | |
23450 | } | |
23451 | ||
23452 | ||
23453 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23454 | PyObject *resultobj; | |
23455 | long result; | |
23456 | char *kwnames[] = { | |
23457 | NULL | |
23458 | }; | |
23459 | ||
23460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
23461 | { | |
23462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23463 | result = (long)wxGetUTCTime(); | |
23464 | ||
23465 | wxPyEndAllowThreads(__tstate); | |
23466 | if (PyErr_Occurred()) SWIG_fail; | |
23467 | } | |
2f4c0a16 | 23468 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23469 | return resultobj; |
23470 | fail: | |
23471 | return NULL; | |
23472 | } | |
23473 | ||
23474 | ||
23475 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23476 | PyObject *resultobj; | |
23477 | long result; | |
23478 | char *kwnames[] = { | |
23479 | NULL | |
23480 | }; | |
23481 | ||
23482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
23483 | { | |
23484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23485 | result = (long)wxGetCurrentTime(); | |
23486 | ||
23487 | wxPyEndAllowThreads(__tstate); | |
23488 | if (PyErr_Occurred()) SWIG_fail; | |
23489 | } | |
2f4c0a16 | 23490 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23491 | return resultobj; |
23492 | fail: | |
23493 | return NULL; | |
23494 | } | |
23495 | ||
23496 | ||
23497 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23498 | PyObject *resultobj; | |
23499 | wxLongLong result; | |
23500 | char *kwnames[] = { | |
23501 | NULL | |
23502 | }; | |
23503 | ||
23504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
23505 | { | |
23506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23507 | result = wxGetLocalTimeMillis(); | |
23508 | ||
23509 | wxPyEndAllowThreads(__tstate); | |
23510 | if (PyErr_Occurred()) SWIG_fail; | |
23511 | } | |
23512 | { | |
23513 | PyObject *hi, *lo, *shifter, *shifted; | |
23514 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23515 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23516 | shifter = PyLong_FromLong(32); | |
23517 | shifted = PyNumber_Lshift(hi, shifter); | |
23518 | resultobj = PyNumber_Or(shifted, lo); | |
23519 | Py_DECREF(hi); | |
23520 | Py_DECREF(lo); | |
23521 | Py_DECREF(shifter); | |
23522 | Py_DECREF(shifted); | |
23523 | } | |
23524 | return resultobj; | |
23525 | fail: | |
23526 | return NULL; | |
23527 | } | |
23528 | ||
23529 | ||
2f4c0a16 | 23530 | static int _wrap_DefaultDateTime_set(PyObject *_val) { |
98e665d3 RD |
23531 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); |
23532 | return 1; | |
23533 | } | |
23534 | ||
23535 | ||
23536 | static PyObject *_wrap_DefaultDateTime_get() { | |
23537 | PyObject *pyobj; | |
23538 | ||
2f4c0a16 | 23539 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); |
98e665d3 RD |
23540 | return pyobj; |
23541 | } | |
23542 | ||
23543 | ||
d14a1e28 RD |
23544 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { |
23545 | PyObject *resultobj; | |
23546 | int arg1 ; | |
23547 | wxDataFormat *result; | |
8edf1c75 | 23548 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
23549 | char *kwnames[] = { |
23550 | (char *) "type", NULL | |
23551 | }; | |
23552 | ||
8edf1c75 | 23553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
23554 | arg1 = (wxDataFormatId) SWIG_AsInt(obj0); |
23555 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23556 | { |
23557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23558 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
23559 | ||
23560 | wxPyEndAllowThreads(__tstate); | |
23561 | if (PyErr_Occurred()) SWIG_fail; | |
23562 | } | |
2f4c0a16 | 23563 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
23564 | return resultobj; |
23565 | fail: | |
23566 | return NULL; | |
23567 | } | |
23568 | ||
23569 | ||
23570 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23571 | PyObject *resultobj; | |
23572 | wxString *arg1 = 0 ; | |
23573 | wxDataFormat *result; | |
423f194a | 23574 | bool temp1 = False ; |
d14a1e28 RD |
23575 | PyObject * obj0 = 0 ; |
23576 | char *kwnames[] = { | |
23577 | (char *) "format", NULL | |
23578 | }; | |
23579 | ||
23580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
23581 | { | |
23582 | arg1 = wxString_in_helper(obj0); | |
23583 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 23584 | temp1 = True; |
d14a1e28 RD |
23585 | } |
23586 | { | |
23587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23588 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
23589 | ||
23590 | wxPyEndAllowThreads(__tstate); | |
23591 | if (PyErr_Occurred()) SWIG_fail; | |
23592 | } | |
2f4c0a16 | 23593 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
23594 | { |
23595 | if (temp1) | |
23596 | delete arg1; | |
23597 | } | |
23598 | return resultobj; | |
23599 | fail: | |
23600 | { | |
23601 | if (temp1) | |
23602 | delete arg1; | |
23603 | } | |
23604 | return NULL; | |
23605 | } | |
23606 | ||
23607 | ||
23608 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23609 | PyObject *resultobj; | |
23610 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23611 | PyObject * obj0 = 0 ; | |
23612 | char *kwnames[] = { | |
23613 | (char *) "self", NULL | |
23614 | }; | |
23615 | ||
23616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23619 | { |
23620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23621 | delete arg1; | |
23622 | ||
23623 | wxPyEndAllowThreads(__tstate); | |
23624 | if (PyErr_Occurred()) SWIG_fail; | |
23625 | } | |
23626 | Py_INCREF(Py_None); resultobj = Py_None; | |
23627 | return resultobj; | |
23628 | fail: | |
23629 | return NULL; | |
23630 | } | |
23631 | ||
23632 | ||
23633 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
23634 | PyObject *resultobj; | |
23635 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23636 | int arg2 ; | |
23637 | bool result; | |
23638 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23639 | PyObject * obj1 = 0 ; |
d14a1e28 | 23640 | |
8edf1c75 | 23641 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23644 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23645 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23646 | { |
23647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 23648 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); |
d14a1e28 RD |
23649 | |
23650 | wxPyEndAllowThreads(__tstate); | |
23651 | if (PyErr_Occurred()) SWIG_fail; | |
23652 | } | |
4e760a36 | 23653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23654 | return resultobj; |
23655 | fail: | |
23656 | return NULL; | |
23657 | } | |
23658 | ||
23659 | ||
23660 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
23661 | PyObject *resultobj; | |
23662 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23663 | int arg2 ; | |
23664 | bool result; | |
23665 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23666 | PyObject * obj1 = 0 ; |
d14a1e28 | 23667 | |
8edf1c75 | 23668 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23671 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23672 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23673 | { |
23674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 23675 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); |
d14a1e28 RD |
23676 | |
23677 | wxPyEndAllowThreads(__tstate); | |
23678 | if (PyErr_Occurred()) SWIG_fail; | |
23679 | } | |
4e760a36 | 23680 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23681 | return resultobj; |
23682 | fail: | |
23683 | return NULL; | |
23684 | } | |
23685 | ||
23686 | ||
23687 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
23688 | PyObject *resultobj; | |
23689 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23690 | wxDataFormat *arg2 = 0 ; | |
23691 | bool result; | |
23692 | PyObject * obj0 = 0 ; | |
23693 | PyObject * obj1 = 0 ; | |
23694 | ||
23695 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23698 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
23699 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23700 | SWIG_fail; | |
d14a1e28 | 23701 | if (arg2 == NULL) { |
2f4c0a16 RD |
23702 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23703 | SWIG_fail; | |
d14a1e28 RD |
23704 | } |
23705 | { | |
23706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23707 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
23708 | ||
23709 | wxPyEndAllowThreads(__tstate); | |
23710 | if (PyErr_Occurred()) SWIG_fail; | |
23711 | } | |
4e760a36 | 23712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23713 | return resultobj; |
23714 | fail: | |
23715 | return NULL; | |
23716 | } | |
23717 | ||
23718 | ||
23719 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
23720 | int argc; | |
23721 | PyObject *argv[3]; | |
23722 | int ii; | |
23723 | ||
23724 | argc = PyObject_Length(args); | |
23725 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23726 | argv[ii] = PyTuple_GetItem(args,ii); | |
23727 | } | |
23728 | if (argc == 2) { | |
23729 | int _v; | |
23730 | { | |
23731 | void *ptr; | |
2f4c0a16 | 23732 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
23733 | _v = 0; |
23734 | PyErr_Clear(); | |
23735 | } else { | |
23736 | _v = 1; | |
23737 | } | |
23738 | } | |
23739 | if (_v) { | |
23740 | { | |
23741 | void *ptr; | |
2f4c0a16 | 23742 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
23743 | _v = 0; |
23744 | PyErr_Clear(); | |
23745 | } else { | |
23746 | _v = 1; | |
23747 | } | |
23748 | } | |
23749 | if (_v) { | |
23750 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
23751 | } | |
23752 | } | |
23753 | } | |
23754 | if (argc == 2) { | |
23755 | int _v; | |
23756 | { | |
23757 | void *ptr; | |
2f4c0a16 | 23758 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
23759 | _v = 0; |
23760 | PyErr_Clear(); | |
23761 | } else { | |
23762 | _v = 1; | |
23763 | } | |
23764 | } | |
23765 | if (_v) { | |
2f4c0a16 | 23766 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
23767 | if (_v) { |
23768 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
23769 | } | |
23770 | } | |
23771 | } | |
23772 | ||
23773 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
23774 | return NULL; | |
23775 | } | |
23776 | ||
23777 | ||
23778 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
23779 | PyObject *resultobj; | |
23780 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23781 | wxDataFormat *arg2 = 0 ; | |
23782 | bool result; | |
23783 | PyObject * obj0 = 0 ; | |
23784 | PyObject * obj1 = 0 ; | |
23785 | ||
23786 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23789 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
23790 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23791 | SWIG_fail; | |
d14a1e28 | 23792 | if (arg2 == NULL) { |
2f4c0a16 RD |
23793 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23794 | SWIG_fail; | |
d14a1e28 RD |
23795 | } |
23796 | { | |
23797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23798 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
23799 | ||
23800 | wxPyEndAllowThreads(__tstate); | |
23801 | if (PyErr_Occurred()) SWIG_fail; | |
23802 | } | |
4e760a36 | 23803 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23804 | return resultobj; |
23805 | fail: | |
23806 | return NULL; | |
23807 | } | |
23808 | ||
23809 | ||
23810 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
23811 | int argc; | |
23812 | PyObject *argv[3]; | |
23813 | int ii; | |
23814 | ||
23815 | argc = PyObject_Length(args); | |
23816 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23817 | argv[ii] = PyTuple_GetItem(args,ii); | |
23818 | } | |
23819 | if (argc == 2) { | |
23820 | int _v; | |
23821 | { | |
23822 | void *ptr; | |
2f4c0a16 | 23823 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
23824 | _v = 0; |
23825 | PyErr_Clear(); | |
23826 | } else { | |
23827 | _v = 1; | |
23828 | } | |
23829 | } | |
23830 | if (_v) { | |
23831 | { | |
23832 | void *ptr; | |
2f4c0a16 | 23833 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
23834 | _v = 0; |
23835 | PyErr_Clear(); | |
23836 | } else { | |
23837 | _v = 1; | |
23838 | } | |
23839 | } | |
23840 | if (_v) { | |
23841 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
23842 | } | |
23843 | } | |
23844 | } | |
23845 | if (argc == 2) { | |
23846 | int _v; | |
23847 | { | |
23848 | void *ptr; | |
2f4c0a16 | 23849 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
23850 | _v = 0; |
23851 | PyErr_Clear(); | |
23852 | } else { | |
23853 | _v = 1; | |
23854 | } | |
23855 | } | |
23856 | if (_v) { | |
2f4c0a16 | 23857 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
23858 | if (_v) { |
23859 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
23860 | } | |
23861 | } | |
23862 | } | |
23863 | ||
23864 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
23865 | return NULL; | |
23866 | } | |
23867 | ||
23868 | ||
23869 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23870 | PyObject *resultobj; | |
23871 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23872 | int arg2 ; | |
23873 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23874 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23875 | char *kwnames[] = { |
23876 | (char *) "self",(char *) "format", NULL | |
23877 | }; | |
23878 | ||
8edf1c75 | 23879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23882 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23883 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23884 | { |
23885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23886 | (arg1)->SetType((wxDataFormatId )arg2); | |
23887 | ||
23888 | wxPyEndAllowThreads(__tstate); | |
23889 | if (PyErr_Occurred()) SWIG_fail; | |
23890 | } | |
23891 | Py_INCREF(Py_None); resultobj = Py_None; | |
23892 | return resultobj; | |
23893 | fail: | |
23894 | return NULL; | |
23895 | } | |
23896 | ||
23897 | ||
23898 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23899 | PyObject *resultobj; | |
23900 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23901 | int result; | |
23902 | PyObject * obj0 = 0 ; | |
23903 | char *kwnames[] = { | |
23904 | (char *) "self", NULL | |
23905 | }; | |
23906 | ||
23907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23910 | { |
23911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23912 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
23913 | ||
23914 | wxPyEndAllowThreads(__tstate); | |
23915 | if (PyErr_Occurred()) SWIG_fail; | |
23916 | } | |
2f4c0a16 | 23917 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23918 | return resultobj; |
23919 | fail: | |
23920 | return NULL; | |
23921 | } | |
23922 | ||
23923 | ||
23924 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23925 | PyObject *resultobj; | |
23926 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23927 | wxString result; | |
23928 | PyObject * obj0 = 0 ; | |
23929 | char *kwnames[] = { | |
23930 | (char *) "self", NULL | |
23931 | }; | |
23932 | ||
23933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23936 | { |
23937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23938 | result = ((wxDataFormat const *)arg1)->GetId(); | |
23939 | ||
23940 | wxPyEndAllowThreads(__tstate); | |
23941 | if (PyErr_Occurred()) SWIG_fail; | |
23942 | } | |
23943 | { | |
23944 | #if wxUSE_UNICODE | |
23945 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23946 | #else | |
23947 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23948 | #endif | |
23949 | } | |
23950 | return resultobj; | |
23951 | fail: | |
23952 | return NULL; | |
23953 | } | |
23954 | ||
23955 | ||
23956 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23957 | PyObject *resultobj; | |
23958 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23959 | wxString *arg2 = 0 ; | |
423f194a | 23960 | bool temp2 = False ; |
d14a1e28 RD |
23961 | PyObject * obj0 = 0 ; |
23962 | PyObject * obj1 = 0 ; | |
23963 | char *kwnames[] = { | |
23964 | (char *) "self",(char *) "format", NULL | |
23965 | }; | |
23966 | ||
23967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23970 | { |
23971 | arg2 = wxString_in_helper(obj1); | |
23972 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23973 | temp2 = True; |
d14a1e28 RD |
23974 | } |
23975 | { | |
23976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23977 | (arg1)->SetId((wxString const &)*arg2); | |
23978 | ||
23979 | wxPyEndAllowThreads(__tstate); | |
23980 | if (PyErr_Occurred()) SWIG_fail; | |
23981 | } | |
23982 | Py_INCREF(Py_None); resultobj = Py_None; | |
23983 | { | |
23984 | if (temp2) | |
23985 | delete arg2; | |
23986 | } | |
23987 | return resultobj; | |
23988 | fail: | |
23989 | { | |
23990 | if (temp2) | |
23991 | delete arg2; | |
23992 | } | |
23993 | return NULL; | |
23994 | } | |
23995 | ||
23996 | ||
23997 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
23998 | PyObject *obj; | |
23999 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24000 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
24001 | Py_INCREF(obj); | |
24002 | return Py_BuildValue((char *)""); | |
24003 | } | |
2f4c0a16 | 24004 | static int _wrap_FormatInvalid_set(PyObject *_val) { |
d14a1e28 RD |
24005 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); |
24006 | return 1; | |
24007 | } | |
24008 | ||
24009 | ||
24010 | static PyObject *_wrap_FormatInvalid_get() { | |
24011 | PyObject *pyobj; | |
24012 | ||
2f4c0a16 | 24013 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); |
d14a1e28 RD |
24014 | return pyobj; |
24015 | } | |
24016 | ||
24017 | ||
24018 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24019 | PyObject *resultobj; | |
24020 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24021 | PyObject * obj0 = 0 ; | |
24022 | char *kwnames[] = { | |
24023 | (char *) "self", NULL | |
24024 | }; | |
24025 | ||
24026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24029 | { |
24030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24031 | delete arg1; | |
24032 | ||
24033 | wxPyEndAllowThreads(__tstate); | |
24034 | if (PyErr_Occurred()) SWIG_fail; | |
24035 | } | |
24036 | Py_INCREF(Py_None); resultobj = Py_None; | |
24037 | return resultobj; | |
24038 | fail: | |
24039 | return NULL; | |
24040 | } | |
24041 | ||
24042 | ||
24043 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24044 | PyObject *resultobj; | |
24045 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24046 | int arg2 = (int) wxDataObject::Get ; | |
24047 | SwigValueWrapper< wxDataFormat > result; | |
24048 | PyObject * obj0 = 0 ; | |
8edf1c75 | 24049 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24050 | char *kwnames[] = { |
24051 | (char *) "self",(char *) "dir", NULL | |
24052 | }; | |
24053 | ||
8edf1c75 | 24054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
24055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 24057 | if (obj1) { |
2f4c0a16 RD |
24058 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); |
24059 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24060 | } |
d14a1e28 RD |
24061 | { |
24062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24063 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
24064 | ||
24065 | wxPyEndAllowThreads(__tstate); | |
24066 | if (PyErr_Occurred()) SWIG_fail; | |
24067 | } | |
24068 | { | |
24069 | wxDataFormat * resultptr; | |
24070 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
2f4c0a16 | 24071 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
24072 | } |
24073 | return resultobj; | |
24074 | fail: | |
24075 | return NULL; | |
24076 | } | |
24077 | ||
24078 | ||
24079 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24080 | PyObject *resultobj; | |
24081 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24082 | int arg2 = (int) wxDataObject::Get ; | |
24083 | size_t result; | |
24084 | PyObject * obj0 = 0 ; | |
8edf1c75 | 24085 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24086 | char *kwnames[] = { |
24087 | (char *) "self",(char *) "dir", NULL | |
24088 | }; | |
24089 | ||
8edf1c75 | 24090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
24091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 24093 | if (obj1) { |
2f4c0a16 RD |
24094 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); |
24095 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24096 | } |
d14a1e28 RD |
24097 | { |
24098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24099 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
24100 | ||
24101 | wxPyEndAllowThreads(__tstate); | |
24102 | if (PyErr_Occurred()) SWIG_fail; | |
24103 | } | |
2f4c0a16 | 24104 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24105 | return resultobj; |
24106 | fail: | |
24107 | return NULL; | |
24108 | } | |
24109 | ||
24110 | ||
24111 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24112 | PyObject *resultobj; | |
24113 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24114 | wxDataFormat *arg2 = 0 ; | |
24115 | int arg3 = (int) wxDataObject::Get ; | |
24116 | bool result; | |
24117 | PyObject * obj0 = 0 ; | |
24118 | PyObject * obj1 = 0 ; | |
8edf1c75 | 24119 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24120 | char *kwnames[] = { |
24121 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
24122 | }; | |
24123 | ||
8edf1c75 | 24124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
24125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24127 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24128 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24129 | SWIG_fail; | |
d14a1e28 | 24130 | if (arg2 == NULL) { |
2f4c0a16 RD |
24131 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24132 | SWIG_fail; | |
d14a1e28 | 24133 | } |
8edf1c75 | 24134 | if (obj2) { |
2f4c0a16 RD |
24135 | arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); |
24136 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24137 | } |
d14a1e28 RD |
24138 | { |
24139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24140 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
24141 | ||
24142 | wxPyEndAllowThreads(__tstate); | |
24143 | if (PyErr_Occurred()) SWIG_fail; | |
24144 | } | |
4e760a36 | 24145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24146 | return resultobj; |
24147 | fail: | |
24148 | return NULL; | |
24149 | } | |
24150 | ||
24151 | ||
24152 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24153 | PyObject *resultobj; | |
24154 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24155 | wxDataFormat *arg2 = 0 ; | |
24156 | size_t result; | |
24157 | PyObject * obj0 = 0 ; | |
24158 | PyObject * obj1 = 0 ; | |
24159 | char *kwnames[] = { | |
24160 | (char *) "self",(char *) "format", NULL | |
24161 | }; | |
24162 | ||
24163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24166 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24167 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24168 | SWIG_fail; | |
d14a1e28 | 24169 | if (arg2 == NULL) { |
2f4c0a16 RD |
24170 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24171 | SWIG_fail; | |
d14a1e28 RD |
24172 | } |
24173 | { | |
24174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24175 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
24176 | ||
24177 | wxPyEndAllowThreads(__tstate); | |
24178 | if (PyErr_Occurred()) SWIG_fail; | |
24179 | } | |
2f4c0a16 | 24180 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24181 | return resultobj; |
24182 | fail: | |
24183 | return NULL; | |
24184 | } | |
24185 | ||
24186 | ||
24187 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24188 | PyObject *resultobj; | |
24189 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24190 | wxDataFormat *arg2 = (wxDataFormat *) 0 ; | |
24191 | int arg3 = (int) wxDataObject::Get ; | |
24192 | PyObject * obj0 = 0 ; | |
24193 | PyObject * obj1 = 0 ; | |
8edf1c75 | 24194 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24195 | char *kwnames[] = { |
24196 | (char *) "self",(char *) "formats",(char *) "dir", NULL | |
24197 | }; | |
24198 | ||
8edf1c75 | 24199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
24200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24202 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 24204 | if (obj2) { |
2f4c0a16 RD |
24205 | arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); |
24206 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24207 | } |
d14a1e28 RD |
24208 | { |
24209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24210 | ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3); | |
24211 | ||
24212 | wxPyEndAllowThreads(__tstate); | |
24213 | if (PyErr_Occurred()) SWIG_fail; | |
24214 | } | |
24215 | Py_INCREF(Py_None); resultobj = Py_None; | |
24216 | return resultobj; | |
24217 | fail: | |
24218 | return NULL; | |
24219 | } | |
24220 | ||
24221 | ||
24222 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24223 | PyObject *resultobj; | |
24224 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24225 | wxDataFormat *arg2 = 0 ; | |
24226 | void *arg3 = (void *) 0 ; | |
24227 | bool result; | |
24228 | PyObject * obj0 = 0 ; | |
24229 | PyObject * obj1 = 0 ; | |
24230 | PyObject * obj2 = 0 ; | |
24231 | char *kwnames[] = { | |
24232 | (char *) "self",(char *) "format",(char *) "buf", NULL | |
24233 | }; | |
24234 | ||
24235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
24236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24238 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24239 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24240 | SWIG_fail; | |
d14a1e28 | 24241 | if (arg2 == NULL) { |
2f4c0a16 RD |
24242 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24243 | SWIG_fail; | |
d14a1e28 | 24244 | } |
2f4c0a16 | 24245 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
24246 | { |
24247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24248 | result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3); | |
24249 | ||
24250 | wxPyEndAllowThreads(__tstate); | |
24251 | if (PyErr_Occurred()) SWIG_fail; | |
24252 | } | |
4e760a36 | 24253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24254 | return resultobj; |
24255 | fail: | |
24256 | return NULL; | |
24257 | } | |
24258 | ||
24259 | ||
24260 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24261 | PyObject *resultobj; | |
24262 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24263 | wxDataFormat *arg2 = 0 ; | |
24264 | size_t arg3 ; | |
24265 | void *arg4 = (void *) 0 ; | |
24266 | bool result; | |
24267 | PyObject * obj0 = 0 ; | |
24268 | PyObject * obj1 = 0 ; | |
24269 | PyObject * obj2 = 0 ; | |
24270 | PyObject * obj3 = 0 ; | |
24271 | char *kwnames[] = { | |
24272 | (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL | |
24273 | }; | |
24274 | ||
24275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
24276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24278 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24279 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24280 | SWIG_fail; | |
d14a1e28 | 24281 | if (arg2 == NULL) { |
2f4c0a16 RD |
24282 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24283 | SWIG_fail; | |
83448d71 | 24284 | } |
2f4c0a16 RD |
24285 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
24286 | if (PyErr_Occurred()) SWIG_fail; | |
24287 | if ((SWIG_ConvertPtr(obj3,&arg4,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24288 | { |
24289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24290 | result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4); | |
24291 | ||
24292 | wxPyEndAllowThreads(__tstate); | |
24293 | if (PyErr_Occurred()) SWIG_fail; | |
24294 | } | |
4e760a36 | 24295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24296 | return resultobj; |
24297 | fail: | |
24298 | return NULL; | |
24299 | } | |
24300 | ||
24301 | ||
24302 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
24303 | PyObject *obj; | |
24304 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24305 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
24306 | Py_INCREF(obj); | |
24307 | return Py_BuildValue((char *)""); | |
24308 | } | |
24309 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24310 | PyObject *resultobj; | |
24311 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24312 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24313 | wxDataObjectSimple *result; | |
24314 | PyObject * obj0 = 0 ; | |
24315 | char *kwnames[] = { | |
24316 | (char *) "format", NULL | |
24317 | }; | |
24318 | ||
24319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
24320 | if (obj0) { | |
2f4c0a16 RD |
24321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24322 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24323 | SWIG_fail; | |
d14a1e28 | 24324 | if (arg1 == NULL) { |
2f4c0a16 RD |
24325 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24326 | SWIG_fail; | |
d14a1e28 RD |
24327 | } |
24328 | } | |
24329 | { | |
24330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24331 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
24332 | ||
24333 | wxPyEndAllowThreads(__tstate); | |
24334 | if (PyErr_Occurred()) SWIG_fail; | |
24335 | } | |
2f4c0a16 | 24336 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); |
d14a1e28 RD |
24337 | return resultobj; |
24338 | fail: | |
24339 | return NULL; | |
24340 | } | |
24341 | ||
24342 | ||
24343 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24344 | PyObject *resultobj; | |
24345 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24346 | wxDataFormat *result; | |
24347 | PyObject * obj0 = 0 ; | |
24348 | char *kwnames[] = { | |
24349 | (char *) "self", NULL | |
24350 | }; | |
24351 | ||
24352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, |
24354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24355 | { |
24356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24357 | { | |
24358 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
24359 | result = (wxDataFormat *) &_result_ref; | |
24360 | } | |
24361 | ||
24362 | wxPyEndAllowThreads(__tstate); | |
24363 | if (PyErr_Occurred()) SWIG_fail; | |
24364 | } | |
2f4c0a16 | 24365 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); |
d14a1e28 RD |
24366 | return resultobj; |
24367 | fail: | |
24368 | return NULL; | |
24369 | } | |
24370 | ||
24371 | ||
24372 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24373 | PyObject *resultobj; | |
24374 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24375 | wxDataFormat *arg2 = 0 ; | |
24376 | PyObject * obj0 = 0 ; | |
24377 | PyObject * obj1 = 0 ; | |
24378 | char *kwnames[] = { | |
24379 | (char *) "self",(char *) "format", NULL | |
24380 | }; | |
24381 | ||
24382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, |
24384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24385 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24386 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24387 | SWIG_fail; | |
d14a1e28 | 24388 | if (arg2 == NULL) { |
2f4c0a16 RD |
24389 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24390 | SWIG_fail; | |
d14a1e28 RD |
24391 | } |
24392 | { | |
24393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24394 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
24395 | ||
24396 | wxPyEndAllowThreads(__tstate); | |
24397 | if (PyErr_Occurred()) SWIG_fail; | |
24398 | } | |
24399 | Py_INCREF(Py_None); resultobj = Py_None; | |
24400 | return resultobj; | |
24401 | fail: | |
24402 | return NULL; | |
24403 | } | |
24404 | ||
24405 | ||
24406 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24407 | PyObject *obj; | |
24408 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24409 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
24410 | Py_INCREF(obj); | |
24411 | return Py_BuildValue((char *)""); | |
24412 | } | |
24413 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24414 | PyObject *resultobj; | |
24415 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24416 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24417 | wxPyDataObjectSimple *result; | |
24418 | PyObject * obj0 = 0 ; | |
24419 | char *kwnames[] = { | |
24420 | (char *) "format", NULL | |
24421 | }; | |
24422 | ||
24423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
24424 | if (obj0) { | |
2f4c0a16 RD |
24425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24426 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24427 | SWIG_fail; | |
d14a1e28 | 24428 | if (arg1 == NULL) { |
2f4c0a16 RD |
24429 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24430 | SWIG_fail; | |
d14a1e28 RD |
24431 | } |
24432 | } | |
24433 | { | |
24434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24435 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
24436 | ||
24437 | wxPyEndAllowThreads(__tstate); | |
24438 | if (PyErr_Occurred()) SWIG_fail; | |
24439 | } | |
2f4c0a16 | 24440 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); |
d14a1e28 RD |
24441 | return resultobj; |
24442 | fail: | |
24443 | return NULL; | |
24444 | } | |
24445 | ||
24446 | ||
24447 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24448 | PyObject *resultobj; | |
24449 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
24450 | PyObject *arg2 = (PyObject *) 0 ; | |
24451 | PyObject *arg3 = (PyObject *) 0 ; | |
24452 | PyObject * obj0 = 0 ; | |
24453 | PyObject * obj1 = 0 ; | |
24454 | PyObject * obj2 = 0 ; | |
24455 | char *kwnames[] = { | |
24456 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24457 | }; | |
24458 | ||
24459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
24460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple, |
24461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24462 | arg2 = obj1; |
24463 | arg3 = obj2; | |
24464 | { | |
24465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24466 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24467 | ||
24468 | wxPyEndAllowThreads(__tstate); | |
24469 | if (PyErr_Occurred()) SWIG_fail; | |
24470 | } | |
24471 | Py_INCREF(Py_None); resultobj = Py_None; | |
24472 | return resultobj; | |
24473 | fail: | |
24474 | return NULL; | |
24475 | } | |
24476 | ||
24477 | ||
24478 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24479 | PyObject *obj; | |
24480 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24481 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
24482 | Py_INCREF(obj); | |
24483 | return Py_BuildValue((char *)""); | |
24484 | } | |
24485 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24486 | PyObject *resultobj; | |
24487 | wxDataObjectComposite *result; | |
24488 | char *kwnames[] = { | |
24489 | NULL | |
24490 | }; | |
24491 | ||
24492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
24493 | { | |
24494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24495 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
24496 | ||
24497 | wxPyEndAllowThreads(__tstate); | |
24498 | if (PyErr_Occurred()) SWIG_fail; | |
24499 | } | |
2f4c0a16 | 24500 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); |
d14a1e28 RD |
24501 | return resultobj; |
24502 | fail: | |
24503 | return NULL; | |
24504 | } | |
24505 | ||
24506 | ||
24507 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24508 | PyObject *resultobj; | |
24509 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
24510 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
423f194a | 24511 | int arg3 = (int) False ; |
d14a1e28 RD |
24512 | PyObject * obj0 = 0 ; |
24513 | PyObject * obj1 = 0 ; | |
8edf1c75 | 24514 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24515 | char *kwnames[] = { |
24516 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
24517 | }; | |
24518 | ||
8edf1c75 | 24519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
24520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite, |
24521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24522 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple, | |
24523 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
8edf1c75 | 24524 | if (obj2) { |
2f4c0a16 RD |
24525 | arg3 = (int) SWIG_AsInt(obj2); |
24526 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24527 | } |
d14a1e28 RD |
24528 | { |
24529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24530 | (arg1)->Add(arg2,arg3); | |
24531 | ||
24532 | wxPyEndAllowThreads(__tstate); | |
24533 | if (PyErr_Occurred()) SWIG_fail; | |
24534 | } | |
24535 | Py_INCREF(Py_None); resultobj = Py_None; | |
24536 | return resultobj; | |
24537 | fail: | |
24538 | return NULL; | |
24539 | } | |
24540 | ||
24541 | ||
24542 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
24543 | PyObject *obj; | |
24544 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24545 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
24546 | Py_INCREF(obj); | |
24547 | return Py_BuildValue((char *)""); | |
24548 | } | |
24549 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24550 | PyObject *resultobj; | |
24551 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24552 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24553 | wxTextDataObject *result; | |
423f194a | 24554 | bool temp1 = False ; |
d14a1e28 RD |
24555 | PyObject * obj0 = 0 ; |
24556 | char *kwnames[] = { | |
24557 | (char *) "text", NULL | |
24558 | }; | |
24559 | ||
24560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
24561 | if (obj0) { | |
24562 | { | |
24563 | arg1 = wxString_in_helper(obj0); | |
24564 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 24565 | temp1 = True; |
d14a1e28 RD |
24566 | } |
24567 | } | |
24568 | { | |
24569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24570 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
24571 | ||
24572 | wxPyEndAllowThreads(__tstate); | |
24573 | if (PyErr_Occurred()) SWIG_fail; | |
24574 | } | |
2f4c0a16 | 24575 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); |
d14a1e28 RD |
24576 | { |
24577 | if (temp1) | |
24578 | delete arg1; | |
24579 | } | |
24580 | return resultobj; | |
24581 | fail: | |
24582 | { | |
24583 | if (temp1) | |
24584 | delete arg1; | |
24585 | } | |
24586 | return NULL; | |
24587 | } | |
24588 | ||
24589 | ||
24590 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24591 | PyObject *resultobj; | |
24592 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24593 | size_t result; | |
24594 | PyObject * obj0 = 0 ; | |
24595 | char *kwnames[] = { | |
24596 | (char *) "self", NULL | |
24597 | }; | |
24598 | ||
24599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
24601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24602 | { |
24603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24604 | result = (size_t)(arg1)->GetTextLength(); | |
24605 | ||
24606 | wxPyEndAllowThreads(__tstate); | |
24607 | if (PyErr_Occurred()) SWIG_fail; | |
24608 | } | |
2f4c0a16 | 24609 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24610 | return resultobj; |
24611 | fail: | |
24612 | return NULL; | |
24613 | } | |
24614 | ||
24615 | ||
24616 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24617 | PyObject *resultobj; | |
24618 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24619 | wxString result; | |
24620 | PyObject * obj0 = 0 ; | |
24621 | char *kwnames[] = { | |
24622 | (char *) "self", NULL | |
24623 | }; | |
24624 | ||
24625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
24627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24628 | { |
24629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24630 | result = (arg1)->GetText(); | |
24631 | ||
24632 | wxPyEndAllowThreads(__tstate); | |
24633 | if (PyErr_Occurred()) SWIG_fail; | |
24634 | } | |
24635 | { | |
24636 | #if wxUSE_UNICODE | |
24637 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24638 | #else | |
24639 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24640 | #endif | |
24641 | } | |
24642 | return resultobj; | |
24643 | fail: | |
24644 | return NULL; | |
24645 | } | |
24646 | ||
24647 | ||
24648 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24649 | PyObject *resultobj; | |
24650 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24651 | wxString *arg2 = 0 ; | |
423f194a | 24652 | bool temp2 = False ; |
d14a1e28 RD |
24653 | PyObject * obj0 = 0 ; |
24654 | PyObject * obj1 = 0 ; | |
24655 | char *kwnames[] = { | |
24656 | (char *) "self",(char *) "text", NULL | |
24657 | }; | |
24658 | ||
24659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
24661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24662 | { |
24663 | arg2 = wxString_in_helper(obj1); | |
24664 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 24665 | temp2 = True; |
d14a1e28 RD |
24666 | } |
24667 | { | |
24668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24669 | (arg1)->SetText((wxString const &)*arg2); | |
24670 | ||
24671 | wxPyEndAllowThreads(__tstate); | |
24672 | if (PyErr_Occurred()) SWIG_fail; | |
24673 | } | |
24674 | Py_INCREF(Py_None); resultobj = Py_None; | |
24675 | { | |
24676 | if (temp2) | |
24677 | delete arg2; | |
24678 | } | |
24679 | return resultobj; | |
24680 | fail: | |
24681 | { | |
24682 | if (temp2) | |
24683 | delete arg2; | |
24684 | } | |
24685 | return NULL; | |
24686 | } | |
24687 | ||
24688 | ||
24689 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
24690 | PyObject *obj; | |
24691 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24692 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
24693 | Py_INCREF(obj); | |
24694 | return Py_BuildValue((char *)""); | |
24695 | } | |
24696 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24697 | PyObject *resultobj; | |
24698 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24699 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24700 | wxPyTextDataObject *result; | |
423f194a | 24701 | bool temp1 = False ; |
d14a1e28 RD |
24702 | PyObject * obj0 = 0 ; |
24703 | char *kwnames[] = { | |
24704 | (char *) "text", NULL | |
24705 | }; | |
24706 | ||
24707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
24708 | if (obj0) { | |
24709 | { | |
24710 | arg1 = wxString_in_helper(obj0); | |
24711 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 24712 | temp1 = True; |
d14a1e28 RD |
24713 | } |
24714 | } | |
24715 | { | |
24716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24717 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
24718 | ||
24719 | wxPyEndAllowThreads(__tstate); | |
24720 | if (PyErr_Occurred()) SWIG_fail; | |
24721 | } | |
2f4c0a16 | 24722 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); |
d14a1e28 RD |
24723 | { |
24724 | if (temp1) | |
24725 | delete arg1; | |
24726 | } | |
24727 | return resultobj; | |
24728 | fail: | |
24729 | { | |
24730 | if (temp1) | |
24731 | delete arg1; | |
24732 | } | |
24733 | return NULL; | |
24734 | } | |
24735 | ||
24736 | ||
24737 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24738 | PyObject *resultobj; | |
24739 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
24740 | PyObject *arg2 = (PyObject *) 0 ; | |
24741 | PyObject *arg3 = (PyObject *) 0 ; | |
24742 | PyObject * obj0 = 0 ; | |
24743 | PyObject * obj1 = 0 ; | |
24744 | PyObject * obj2 = 0 ; | |
24745 | char *kwnames[] = { | |
24746 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24747 | }; | |
24748 | ||
24749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
24750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject, |
24751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24752 | arg2 = obj1; |
24753 | arg3 = obj2; | |
24754 | { | |
24755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24756 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24757 | ||
24758 | wxPyEndAllowThreads(__tstate); | |
24759 | if (PyErr_Occurred()) SWIG_fail; | |
24760 | } | |
24761 | Py_INCREF(Py_None); resultobj = Py_None; | |
24762 | return resultobj; | |
24763 | fail: | |
24764 | return NULL; | |
24765 | } | |
24766 | ||
24767 | ||
24768 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
24769 | PyObject *obj; | |
24770 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24771 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
24772 | Py_INCREF(obj); | |
24773 | return Py_BuildValue((char *)""); | |
24774 | } | |
24775 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24776 | PyObject *resultobj; | |
24777 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
24778 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
24779 | wxBitmapDataObject *result; | |
24780 | PyObject * obj0 = 0 ; | |
24781 | char *kwnames[] = { | |
24782 | (char *) "bitmap", NULL | |
24783 | }; | |
24784 | ||
24785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
24786 | if (obj0) { | |
2f4c0a16 RD |
24787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
24788 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24789 | SWIG_fail; | |
d14a1e28 | 24790 | if (arg1 == NULL) { |
2f4c0a16 RD |
24791 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24792 | SWIG_fail; | |
d14a1e28 RD |
24793 | } |
24794 | } | |
24795 | { | |
24796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24797 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
24798 | ||
24799 | wxPyEndAllowThreads(__tstate); | |
24800 | if (PyErr_Occurred()) SWIG_fail; | |
24801 | } | |
2f4c0a16 | 24802 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); |
d14a1e28 RD |
24803 | return resultobj; |
24804 | fail: | |
24805 | return NULL; | |
24806 | } | |
24807 | ||
24808 | ||
24809 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24810 | PyObject *resultobj; | |
24811 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
24812 | wxBitmap result; | |
24813 | PyObject * obj0 = 0 ; | |
24814 | char *kwnames[] = { | |
24815 | (char *) "self", NULL | |
24816 | }; | |
24817 | ||
24818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, |
24820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24821 | { |
24822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24823 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
24824 | ||
24825 | wxPyEndAllowThreads(__tstate); | |
24826 | if (PyErr_Occurred()) SWIG_fail; | |
24827 | } | |
24828 | { | |
24829 | wxBitmap * resultptr; | |
24830 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 24831 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
24832 | } |
24833 | return resultobj; | |
24834 | fail: | |
24835 | return NULL; | |
24836 | } | |
24837 | ||
24838 | ||
24839 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24840 | PyObject *resultobj; | |
24841 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
24842 | wxBitmap *arg2 = 0 ; | |
24843 | PyObject * obj0 = 0 ; | |
24844 | PyObject * obj1 = 0 ; | |
24845 | char *kwnames[] = { | |
24846 | (char *) "self",(char *) "bitmap", NULL | |
24847 | }; | |
24848 | ||
24849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, |
24851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24852 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
24853 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24854 | SWIG_fail; | |
d14a1e28 | 24855 | if (arg2 == NULL) { |
2f4c0a16 RD |
24856 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24857 | SWIG_fail; | |
d14a1e28 RD |
24858 | } |
24859 | { | |
24860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24861 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
24862 | ||
24863 | wxPyEndAllowThreads(__tstate); | |
24864 | if (PyErr_Occurred()) SWIG_fail; | |
24865 | } | |
24866 | Py_INCREF(Py_None); resultobj = Py_None; | |
24867 | return resultobj; | |
24868 | fail: | |
24869 | return NULL; | |
24870 | } | |
24871 | ||
24872 | ||
24873 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
24874 | PyObject *obj; | |
24875 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24876 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
24877 | Py_INCREF(obj); | |
24878 | return Py_BuildValue((char *)""); | |
24879 | } | |
24880 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24881 | PyObject *resultobj; | |
24882 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
24883 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
24884 | wxPyBitmapDataObject *result; | |
24885 | PyObject * obj0 = 0 ; | |
24886 | char *kwnames[] = { | |
24887 | (char *) "bitmap", NULL | |
24888 | }; | |
24889 | ||
24890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
24891 | if (obj0) { | |
2f4c0a16 RD |
24892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
24893 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24894 | SWIG_fail; | |
d14a1e28 | 24895 | if (arg1 == NULL) { |
2f4c0a16 RD |
24896 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24897 | SWIG_fail; | |
d14a1e28 RD |
24898 | } |
24899 | } | |
24900 | { | |
24901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24902 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
24903 | ||
24904 | wxPyEndAllowThreads(__tstate); | |
24905 | if (PyErr_Occurred()) SWIG_fail; | |
24906 | } | |
2f4c0a16 | 24907 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); |
d14a1e28 RD |
24908 | return resultobj; |
24909 | fail: | |
24910 | return NULL; | |
24911 | } | |
24912 | ||
24913 | ||
24914 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24915 | PyObject *resultobj; | |
24916 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
24917 | PyObject *arg2 = (PyObject *) 0 ; | |
24918 | PyObject *arg3 = (PyObject *) 0 ; | |
24919 | PyObject * obj0 = 0 ; | |
24920 | PyObject * obj1 = 0 ; | |
24921 | PyObject * obj2 = 0 ; | |
24922 | char *kwnames[] = { | |
24923 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24924 | }; | |
24925 | ||
24926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
24927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject, |
24928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24929 | arg2 = obj1; |
24930 | arg3 = obj2; | |
24931 | { | |
24932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24933 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24934 | ||
24935 | wxPyEndAllowThreads(__tstate); | |
24936 | if (PyErr_Occurred()) SWIG_fail; | |
24937 | } | |
24938 | Py_INCREF(Py_None); resultobj = Py_None; | |
24939 | return resultobj; | |
24940 | fail: | |
24941 | return NULL; | |
24942 | } | |
24943 | ||
24944 | ||
24945 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
24946 | PyObject *obj; | |
24947 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24948 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
24949 | Py_INCREF(obj); | |
24950 | return Py_BuildValue((char *)""); | |
24951 | } | |
24952 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24953 | PyObject *resultobj; | |
24954 | wxFileDataObject *result; | |
24955 | char *kwnames[] = { | |
24956 | NULL | |
24957 | }; | |
24958 | ||
24959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
24960 | { | |
24961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24962 | result = (wxFileDataObject *)new wxFileDataObject(); | |
24963 | ||
24964 | wxPyEndAllowThreads(__tstate); | |
24965 | if (PyErr_Occurred()) SWIG_fail; | |
24966 | } | |
2f4c0a16 | 24967 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); |
d14a1e28 RD |
24968 | return resultobj; |
24969 | fail: | |
24970 | return NULL; | |
24971 | } | |
24972 | ||
24973 | ||
24974 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24975 | PyObject *resultobj; | |
24976 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
24977 | wxArrayString *result; | |
24978 | PyObject * obj0 = 0 ; | |
24979 | char *kwnames[] = { | |
24980 | (char *) "self", NULL | |
24981 | }; | |
24982 | ||
24983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, |
24985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24986 | { |
24987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24988 | { | |
24989 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
24990 | result = (wxArrayString *) &_result_ref; | |
24991 | } | |
24992 | ||
24993 | wxPyEndAllowThreads(__tstate); | |
24994 | if (PyErr_Occurred()) SWIG_fail; | |
24995 | } | |
24996 | { | |
24997 | resultobj = wxArrayString2PyList_helper(*result); | |
24998 | } | |
24999 | return resultobj; | |
25000 | fail: | |
25001 | return NULL; | |
25002 | } | |
25003 | ||
25004 | ||
25005 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25006 | PyObject *resultobj; | |
25007 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25008 | wxString *arg2 = 0 ; | |
423f194a | 25009 | bool temp2 = False ; |
d14a1e28 RD |
25010 | PyObject * obj0 = 0 ; |
25011 | PyObject * obj1 = 0 ; | |
25012 | char *kwnames[] = { | |
25013 | (char *) "self",(char *) "filename", NULL | |
25014 | }; | |
25015 | ||
25016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, |
25018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25019 | { |
25020 | arg2 = wxString_in_helper(obj1); | |
25021 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25022 | temp2 = True; |
d14a1e28 RD |
25023 | } |
25024 | { | |
25025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25026 | (arg1)->AddFile((wxString const &)*arg2); | |
25027 | ||
25028 | wxPyEndAllowThreads(__tstate); | |
25029 | if (PyErr_Occurred()) SWIG_fail; | |
25030 | } | |
25031 | Py_INCREF(Py_None); resultobj = Py_None; | |
25032 | { | |
25033 | if (temp2) | |
25034 | delete arg2; | |
25035 | } | |
25036 | return resultobj; | |
25037 | fail: | |
25038 | { | |
25039 | if (temp2) | |
25040 | delete arg2; | |
25041 | } | |
25042 | return NULL; | |
25043 | } | |
25044 | ||
25045 | ||
25046 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { | |
25047 | PyObject *obj; | |
25048 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25049 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
25050 | Py_INCREF(obj); | |
25051 | return Py_BuildValue((char *)""); | |
25052 | } | |
25053 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25054 | PyObject *resultobj; | |
25055 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25056 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25057 | wxCustomDataObject *result; | |
25058 | PyObject * obj0 = 0 ; | |
25059 | char *kwnames[] = { | |
25060 | (char *) "format", NULL | |
25061 | }; | |
25062 | ||
25063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
25064 | if (obj0) { | |
2f4c0a16 RD |
25065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
25066 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25067 | SWIG_fail; | |
d14a1e28 | 25068 | if (arg1 == NULL) { |
2f4c0a16 RD |
25069 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25070 | SWIG_fail; | |
d14a1e28 RD |
25071 | } |
25072 | } | |
25073 | { | |
25074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25075 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
25076 | ||
25077 | wxPyEndAllowThreads(__tstate); | |
25078 | if (PyErr_Occurred()) SWIG_fail; | |
25079 | } | |
2f4c0a16 | 25080 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); |
d14a1e28 RD |
25081 | return resultobj; |
25082 | fail: | |
25083 | return NULL; | |
25084 | } | |
25085 | ||
25086 | ||
25087 | static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25088 | PyObject *resultobj; | |
25089 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25090 | PyObject *arg2 = (PyObject *) 0 ; | |
25091 | PyObject * obj0 = 0 ; | |
25092 | PyObject * obj1 = 0 ; | |
25093 | char *kwnames[] = { | |
25094 | (char *) "self",(char *) "data", NULL | |
25095 | }; | |
25096 | ||
25097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25100 | arg2 = obj1; |
25101 | { | |
25102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25103 | wxCustomDataObject_TakeData(arg1,arg2); | |
25104 | ||
25105 | wxPyEndAllowThreads(__tstate); | |
25106 | if (PyErr_Occurred()) SWIG_fail; | |
25107 | } | |
25108 | Py_INCREF(Py_None); resultobj = Py_None; | |
25109 | return resultobj; | |
25110 | fail: | |
25111 | return NULL; | |
25112 | } | |
25113 | ||
25114 | ||
25115 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25116 | PyObject *resultobj; | |
25117 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25118 | PyObject *arg2 = (PyObject *) 0 ; | |
25119 | bool result; | |
25120 | PyObject * obj0 = 0 ; | |
25121 | PyObject * obj1 = 0 ; | |
25122 | char *kwnames[] = { | |
25123 | (char *) "self",(char *) "data", NULL | |
25124 | }; | |
25125 | ||
25126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25129 | arg2 = obj1; |
25130 | { | |
25131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25132 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
25133 | ||
25134 | wxPyEndAllowThreads(__tstate); | |
25135 | if (PyErr_Occurred()) SWIG_fail; | |
25136 | } | |
4e760a36 | 25137 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25138 | return resultobj; |
25139 | fail: | |
25140 | return NULL; | |
25141 | } | |
25142 | ||
25143 | ||
25144 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25145 | PyObject *resultobj; | |
25146 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25147 | size_t result; | |
25148 | PyObject * obj0 = 0 ; | |
25149 | char *kwnames[] = { | |
25150 | (char *) "self", NULL | |
25151 | }; | |
25152 | ||
25153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25156 | { |
25157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25158 | result = (size_t)(arg1)->GetSize(); | |
25159 | ||
25160 | wxPyEndAllowThreads(__tstate); | |
25161 | if (PyErr_Occurred()) SWIG_fail; | |
25162 | } | |
2f4c0a16 | 25163 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
25164 | return resultobj; |
25165 | fail: | |
25166 | return NULL; | |
25167 | } | |
25168 | ||
25169 | ||
25170 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25171 | PyObject *resultobj; | |
25172 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25173 | PyObject *result; | |
25174 | PyObject * obj0 = 0 ; | |
25175 | char *kwnames[] = { | |
25176 | (char *) "self", NULL | |
25177 | }; | |
25178 | ||
25179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25182 | { |
25183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25184 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
25185 | ||
25186 | wxPyEndAllowThreads(__tstate); | |
25187 | if (PyErr_Occurred()) SWIG_fail; | |
25188 | } | |
25189 | resultobj = result; | |
25190 | return resultobj; | |
25191 | fail: | |
25192 | return NULL; | |
25193 | } | |
25194 | ||
25195 | ||
25196 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
25197 | PyObject *obj; | |
25198 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25199 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
25200 | Py_INCREF(obj); | |
25201 | return Py_BuildValue((char *)""); | |
25202 | } | |
25203 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25204 | PyObject *resultobj; | |
25205 | wxURLDataObject *result; | |
25206 | char *kwnames[] = { | |
25207 | NULL | |
25208 | }; | |
25209 | ||
25210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
25211 | { | |
25212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25213 | result = (wxURLDataObject *)new wxURLDataObject(); | |
25214 | ||
25215 | wxPyEndAllowThreads(__tstate); | |
25216 | if (PyErr_Occurred()) SWIG_fail; | |
25217 | } | |
2f4c0a16 | 25218 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); |
d14a1e28 RD |
25219 | return resultobj; |
25220 | fail: | |
25221 | return NULL; | |
25222 | } | |
25223 | ||
25224 | ||
25225 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25226 | PyObject *resultobj; | |
25227 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25228 | wxString result; | |
25229 | PyObject * obj0 = 0 ; | |
25230 | char *kwnames[] = { | |
25231 | (char *) "self", NULL | |
25232 | }; | |
25233 | ||
25234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, |
25236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25237 | { |
25238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25239 | result = (arg1)->GetURL(); | |
25240 | ||
25241 | wxPyEndAllowThreads(__tstate); | |
25242 | if (PyErr_Occurred()) SWIG_fail; | |
25243 | } | |
25244 | { | |
25245 | #if wxUSE_UNICODE | |
25246 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25247 | #else | |
25248 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25249 | #endif | |
25250 | } | |
25251 | return resultobj; | |
25252 | fail: | |
25253 | return NULL; | |
25254 | } | |
25255 | ||
25256 | ||
25257 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25258 | PyObject *resultobj; | |
25259 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25260 | wxString *arg2 = 0 ; | |
423f194a | 25261 | bool temp2 = False ; |
d14a1e28 RD |
25262 | PyObject * obj0 = 0 ; |
25263 | PyObject * obj1 = 0 ; | |
25264 | char *kwnames[] = { | |
25265 | (char *) "self",(char *) "url", NULL | |
25266 | }; | |
25267 | ||
25268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, |
25270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25271 | { |
25272 | arg2 = wxString_in_helper(obj1); | |
25273 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25274 | temp2 = True; |
d14a1e28 RD |
25275 | } |
25276 | { | |
25277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25278 | (arg1)->SetURL((wxString const &)*arg2); | |
25279 | ||
25280 | wxPyEndAllowThreads(__tstate); | |
25281 | if (PyErr_Occurred()) SWIG_fail; | |
25282 | } | |
25283 | Py_INCREF(Py_None); resultobj = Py_None; | |
25284 | { | |
25285 | if (temp2) | |
25286 | delete arg2; | |
25287 | } | |
25288 | return resultobj; | |
25289 | fail: | |
25290 | { | |
25291 | if (temp2) | |
25292 | delete arg2; | |
25293 | } | |
25294 | return NULL; | |
25295 | } | |
25296 | ||
25297 | ||
25298 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
25299 | PyObject *obj; | |
25300 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25301 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
25302 | Py_INCREF(obj); | |
25303 | return Py_BuildValue((char *)""); | |
25304 | } | |
25305 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25306 | PyObject *resultobj; | |
25307 | wxMetafileDataObject *result; | |
25308 | char *kwnames[] = { | |
25309 | NULL | |
25310 | }; | |
25311 | ||
25312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
25313 | { | |
25314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25315 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
25316 | ||
25317 | wxPyEndAllowThreads(__tstate); | |
25318 | if (PyErr_Occurred()) SWIG_fail; | |
25319 | } | |
2f4c0a16 | 25320 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); |
d14a1e28 RD |
25321 | return resultobj; |
25322 | fail: | |
25323 | return NULL; | |
25324 | } | |
25325 | ||
25326 | ||
83448d71 RD |
25327 | static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { |
25328 | PyObject *resultobj; | |
25329 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
25330 | wxMetafile *arg2 = 0 ; | |
25331 | PyObject * obj0 = 0 ; | |
25332 | PyObject * obj1 = 0 ; | |
25333 | char *kwnames[] = { | |
25334 | (char *) "self",(char *) "metafile", NULL | |
25335 | }; | |
25336 | ||
25337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, |
25339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25340 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile, | |
25341 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25342 | SWIG_fail; | |
83448d71 | 25343 | if (arg2 == NULL) { |
2f4c0a16 RD |
25344 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25345 | SWIG_fail; | |
83448d71 RD |
25346 | } |
25347 | { | |
25348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25349 | (arg1)->SetMetafile((wxMetafile const &)*arg2); | |
25350 | ||
25351 | wxPyEndAllowThreads(__tstate); | |
25352 | if (PyErr_Occurred()) SWIG_fail; | |
25353 | } | |
25354 | Py_INCREF(Py_None); resultobj = Py_None; | |
25355 | return resultobj; | |
25356 | fail: | |
25357 | return NULL; | |
25358 | } | |
25359 | ||
25360 | ||
25361 | static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25362 | PyObject *resultobj; | |
25363 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
25364 | wxMetafile result; | |
25365 | PyObject * obj0 = 0 ; | |
25366 | char *kwnames[] = { | |
25367 | (char *) "self", NULL | |
25368 | }; | |
25369 | ||
25370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, |
25372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
83448d71 RD |
25373 | { |
25374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25375 | result = ((wxMetafileDataObject const *)arg1)->GetMetafile(); | |
25376 | ||
25377 | wxPyEndAllowThreads(__tstate); | |
25378 | if (PyErr_Occurred()) SWIG_fail; | |
25379 | } | |
25380 | { | |
25381 | wxMetafile * resultptr; | |
25382 | resultptr = new wxMetafile((wxMetafile &) result); | |
2f4c0a16 | 25383 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1); |
83448d71 RD |
25384 | } |
25385 | return resultobj; | |
25386 | fail: | |
25387 | return NULL; | |
25388 | } | |
25389 | ||
25390 | ||
d14a1e28 RD |
25391 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { |
25392 | PyObject *obj; | |
25393 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25394 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
25395 | Py_INCREF(obj); | |
25396 | return Py_BuildValue((char *)""); | |
25397 | } | |
25398 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25399 | PyObject *resultobj; | |
25400 | int arg1 ; | |
25401 | bool result; | |
8edf1c75 | 25402 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
25403 | char *kwnames[] = { |
25404 | (char *) "res", NULL | |
25405 | }; | |
25406 | ||
8edf1c75 | 25407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
25408 | arg1 = (wxDragResult) SWIG_AsInt(obj0); |
25409 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25410 | { |
25411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25412 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
25413 | ||
25414 | wxPyEndAllowThreads(__tstate); | |
25415 | if (PyErr_Occurred()) SWIG_fail; | |
25416 | } | |
4e760a36 | 25417 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25418 | return resultobj; |
25419 | fail: | |
25420 | return NULL; | |
25421 | } | |
25422 | ||
25423 | ||
25424 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25425 | PyObject *resultobj; | |
eb9b6107 | 25426 | wxWindow *arg1 = (wxWindow *) 0 ; |
d14a1e28 RD |
25427 | wxCursor const &arg2_defvalue = wxNullCursor ; |
25428 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
25429 | wxCursor const &arg3_defvalue = wxNullCursor ; | |
25430 | wxCursor *arg3 = (wxCursor *) &arg3_defvalue ; | |
25431 | wxCursor const &arg4_defvalue = wxNullCursor ; | |
25432 | wxCursor *arg4 = (wxCursor *) &arg4_defvalue ; | |
25433 | wxPyDropSource *result; | |
25434 | PyObject * obj0 = 0 ; | |
25435 | PyObject * obj1 = 0 ; | |
25436 | PyObject * obj2 = 0 ; | |
25437 | PyObject * obj3 = 0 ; | |
25438 | char *kwnames[] = { | |
25439 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
25440 | }; | |
25441 | ||
eb9b6107 | 25442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
25443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 25445 | if (obj1) { |
2f4c0a16 RD |
25446 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
25447 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25448 | SWIG_fail; | |
d14a1e28 | 25449 | if (arg2 == NULL) { |
2f4c0a16 RD |
25450 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25451 | SWIG_fail; | |
d14a1e28 RD |
25452 | } |
25453 | } | |
25454 | if (obj2) { | |
2f4c0a16 RD |
25455 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, |
25456 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25457 | SWIG_fail; | |
d14a1e28 | 25458 | if (arg3 == NULL) { |
2f4c0a16 RD |
25459 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25460 | SWIG_fail; | |
d14a1e28 RD |
25461 | } |
25462 | } | |
25463 | if (obj3) { | |
2f4c0a16 RD |
25464 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor, |
25465 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25466 | SWIG_fail; | |
d14a1e28 | 25467 | if (arg4 == NULL) { |
2f4c0a16 RD |
25468 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25469 | SWIG_fail; | |
d14a1e28 RD |
25470 | } |
25471 | } | |
25472 | { | |
25473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25474 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4); | |
25475 | ||
25476 | wxPyEndAllowThreads(__tstate); | |
25477 | if (PyErr_Occurred()) SWIG_fail; | |
25478 | } | |
2f4c0a16 | 25479 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); |
d14a1e28 RD |
25480 | return resultobj; |
25481 | fail: | |
25482 | return NULL; | |
25483 | } | |
25484 | ||
25485 | ||
25486 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25487 | PyObject *resultobj; | |
25488 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25489 | PyObject *arg2 = (PyObject *) 0 ; | |
25490 | PyObject *arg3 = (PyObject *) 0 ; | |
25491 | int arg4 ; | |
25492 | PyObject * obj0 = 0 ; | |
25493 | PyObject * obj1 = 0 ; | |
25494 | PyObject * obj2 = 0 ; | |
8edf1c75 | 25495 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
25496 | char *kwnames[] = { |
25497 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
25498 | }; | |
25499 | ||
8edf1c75 | 25500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
25501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25503 | arg2 = obj1; |
25504 | arg3 = obj2; | |
2f4c0a16 RD |
25505 | arg4 = (int) SWIG_AsInt(obj3); |
25506 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25507 | { |
25508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25509 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
25510 | ||
25511 | wxPyEndAllowThreads(__tstate); | |
25512 | if (PyErr_Occurred()) SWIG_fail; | |
25513 | } | |
25514 | Py_INCREF(Py_None); resultobj = Py_None; | |
25515 | return resultobj; | |
25516 | fail: | |
25517 | return NULL; | |
25518 | } | |
25519 | ||
25520 | ||
25521 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25522 | PyObject *resultobj; | |
25523 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25524 | PyObject * obj0 = 0 ; | |
25525 | char *kwnames[] = { | |
25526 | (char *) "self", NULL | |
25527 | }; | |
25528 | ||
25529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25532 | { |
25533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25534 | delete arg1; | |
25535 | ||
25536 | wxPyEndAllowThreads(__tstate); | |
25537 | if (PyErr_Occurred()) SWIG_fail; | |
25538 | } | |
25539 | Py_INCREF(Py_None); resultobj = Py_None; | |
25540 | return resultobj; | |
25541 | fail: | |
25542 | return NULL; | |
25543 | } | |
25544 | ||
25545 | ||
25546 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25547 | PyObject *resultobj; | |
25548 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25549 | wxDataObject *arg2 = 0 ; | |
25550 | PyObject * obj0 = 0 ; | |
25551 | PyObject * obj1 = 0 ; | |
25552 | char *kwnames[] = { | |
25553 | (char *) "self",(char *) "data", NULL | |
25554 | }; | |
25555 | ||
25556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25559 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
25560 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25561 | SWIG_fail; | |
d14a1e28 | 25562 | if (arg2 == NULL) { |
2f4c0a16 RD |
25563 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25564 | SWIG_fail; | |
d14a1e28 RD |
25565 | } |
25566 | { | |
25567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25568 | (arg1)->SetData(*arg2); | |
25569 | ||
25570 | wxPyEndAllowThreads(__tstate); | |
25571 | if (PyErr_Occurred()) SWIG_fail; | |
25572 | } | |
25573 | Py_INCREF(Py_None); resultobj = Py_None; | |
25574 | return resultobj; | |
25575 | fail: | |
25576 | return NULL; | |
25577 | } | |
25578 | ||
25579 | ||
25580 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25581 | PyObject *resultobj; | |
25582 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25583 | wxDataObject *result; | |
25584 | PyObject * obj0 = 0 ; | |
25585 | char *kwnames[] = { | |
25586 | (char *) "self", NULL | |
25587 | }; | |
25588 | ||
25589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25592 | { |
25593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25594 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
25595 | ||
25596 | wxPyEndAllowThreads(__tstate); | |
25597 | if (PyErr_Occurred()) SWIG_fail; | |
25598 | } | |
2f4c0a16 | 25599 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); |
d14a1e28 RD |
25600 | return resultobj; |
25601 | fail: | |
25602 | return NULL; | |
25603 | } | |
25604 | ||
25605 | ||
25606 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25607 | PyObject *resultobj; | |
25608 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25609 | int arg2 ; | |
25610 | wxCursor *arg3 = 0 ; | |
25611 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25612 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25613 | PyObject * obj2 = 0 ; |
25614 | char *kwnames[] = { | |
25615 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
25616 | }; | |
25617 | ||
8edf1c75 | 25618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
25619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25621 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
25622 | if (PyErr_Occurred()) SWIG_fail; | |
25623 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
25624 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25625 | SWIG_fail; | |
d14a1e28 | 25626 | if (arg3 == NULL) { |
2f4c0a16 RD |
25627 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25628 | SWIG_fail; | |
d14a1e28 RD |
25629 | } |
25630 | { | |
25631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25632 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
25633 | ||
25634 | wxPyEndAllowThreads(__tstate); | |
25635 | if (PyErr_Occurred()) SWIG_fail; | |
25636 | } | |
25637 | Py_INCREF(Py_None); resultobj = Py_None; | |
25638 | return resultobj; | |
25639 | fail: | |
25640 | return NULL; | |
25641 | } | |
25642 | ||
25643 | ||
25644 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25645 | PyObject *resultobj; | |
25646 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25647 | int arg2 = (int) wxDrag_CopyOnly ; | |
25648 | int result; | |
25649 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25650 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25651 | char *kwnames[] = { |
25652 | (char *) "self",(char *) "flags", NULL | |
25653 | }; | |
25654 | ||
8edf1c75 | 25655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 25658 | if (obj1) { |
2f4c0a16 RD |
25659 | arg2 = (int) SWIG_AsInt(obj1); |
25660 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 25661 | } |
d14a1e28 RD |
25662 | { |
25663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25664 | result = (int)(arg1)->DoDragDrop(arg2); | |
25665 | ||
25666 | wxPyEndAllowThreads(__tstate); | |
25667 | if (PyErr_Occurred()) SWIG_fail; | |
25668 | } | |
2f4c0a16 | 25669 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25670 | return resultobj; |
25671 | fail: | |
25672 | return NULL; | |
25673 | } | |
25674 | ||
25675 | ||
25676 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25677 | PyObject *resultobj; | |
25678 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25679 | int arg2 ; | |
25680 | bool result; | |
25681 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25682 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25683 | char *kwnames[] = { |
25684 | (char *) "self",(char *) "effect", NULL | |
25685 | }; | |
25686 | ||
8edf1c75 | 25687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25690 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
25691 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25692 | { |
25693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25694 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
25695 | ||
25696 | wxPyEndAllowThreads(__tstate); | |
25697 | if (PyErr_Occurred()) SWIG_fail; | |
25698 | } | |
4e760a36 | 25699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25700 | return resultobj; |
25701 | fail: | |
25702 | return NULL; | |
25703 | } | |
25704 | ||
25705 | ||
25706 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
25707 | PyObject *obj; | |
25708 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25709 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
25710 | Py_INCREF(obj); | |
25711 | return Py_BuildValue((char *)""); | |
25712 | } | |
2f4c0a16 | 25713 | static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25714 | PyObject *resultobj; |
25715 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
25716 | wxPyDropTarget *result; | |
25717 | PyObject * obj0 = 0 ; | |
25718 | char *kwnames[] = { | |
25719 | (char *) "dataObject", NULL | |
25720 | }; | |
25721 | ||
2f4c0a16 | 25722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; |
d14a1e28 | 25723 | if (obj0) { |
2f4c0a16 RD |
25724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
25725 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
25726 | } |
25727 | { | |
25728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25729 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
25730 | ||
25731 | wxPyEndAllowThreads(__tstate); | |
25732 | if (PyErr_Occurred()) SWIG_fail; | |
25733 | } | |
2f4c0a16 | 25734 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); |
d14a1e28 RD |
25735 | return resultobj; |
25736 | fail: | |
25737 | return NULL; | |
25738 | } | |
25739 | ||
25740 | ||
25741 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25742 | PyObject *resultobj; | |
25743 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25744 | PyObject *arg2 = (PyObject *) 0 ; | |
25745 | PyObject *arg3 = (PyObject *) 0 ; | |
25746 | PyObject * obj0 = 0 ; | |
25747 | PyObject * obj1 = 0 ; | |
25748 | PyObject * obj2 = 0 ; | |
25749 | char *kwnames[] = { | |
25750 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25751 | }; | |
25752 | ||
25753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
25755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25756 | arg2 = obj1; |
25757 | arg3 = obj2; | |
25758 | { | |
25759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25760 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25761 | ||
25762 | wxPyEndAllowThreads(__tstate); | |
25763 | if (PyErr_Occurred()) SWIG_fail; | |
25764 | } | |
25765 | Py_INCREF(Py_None); resultobj = Py_None; | |
25766 | return resultobj; | |
25767 | fail: | |
25768 | return NULL; | |
25769 | } | |
25770 | ||
25771 | ||
25772 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25773 | PyObject *resultobj; | |
25774 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25775 | PyObject * obj0 = 0 ; | |
25776 | char *kwnames[] = { | |
25777 | (char *) "self", NULL | |
25778 | }; | |
25779 | ||
25780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
25782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25783 | { |
25784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25785 | delete arg1; | |
25786 | ||
25787 | wxPyEndAllowThreads(__tstate); | |
25788 | if (PyErr_Occurred()) SWIG_fail; | |
25789 | } | |
25790 | Py_INCREF(Py_None); resultobj = Py_None; | |
25791 | return resultobj; | |
25792 | fail: | |
25793 | return NULL; | |
25794 | } | |
25795 | ||
25796 | ||
25797 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25798 | PyObject *resultobj; | |
25799 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25800 | wxDataObject *result; | |
25801 | PyObject * obj0 = 0 ; | |
25802 | char *kwnames[] = { | |
25803 | (char *) "self", NULL | |
25804 | }; | |
25805 | ||
25806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
25808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25809 | { |
25810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25811 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
25812 | ||
25813 | wxPyEndAllowThreads(__tstate); | |
25814 | if (PyErr_Occurred()) SWIG_fail; | |
25815 | } | |
2f4c0a16 | 25816 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); |
d14a1e28 RD |
25817 | return resultobj; |
25818 | fail: | |
25819 | return NULL; | |
25820 | } | |
25821 | ||
25822 | ||
25823 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25824 | PyObject *resultobj; | |
25825 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25826 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
25827 | PyObject * obj0 = 0 ; | |
25828 | PyObject * obj1 = 0 ; | |
25829 | char *kwnames[] = { | |
25830 | (char *) "self",(char *) "dataObject", NULL | |
25831 | }; | |
25832 | ||
25833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
25835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25836 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
25837 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
25838 | { |
25839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25840 | (arg1)->SetDataObject(arg2); | |
25841 | ||
25842 | wxPyEndAllowThreads(__tstate); | |
25843 | if (PyErr_Occurred()) SWIG_fail; | |
25844 | } | |
25845 | Py_INCREF(Py_None); resultobj = Py_None; | |
25846 | return resultobj; | |
25847 | fail: | |
25848 | return NULL; | |
25849 | } | |
25850 | ||
25851 | ||
25852 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25853 | PyObject *resultobj; | |
25854 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
423f194a RD |
25855 | int arg2 ; |
25856 | int arg3 ; | |
d14a1e28 RD |
25857 | int arg4 ; |
25858 | int result; | |
25859 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25860 | PyObject * obj1 = 0 ; |
25861 | PyObject * obj2 = 0 ; | |
25862 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25863 | char *kwnames[] = { |
25864 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
25865 | }; | |
25866 | ||
8edf1c75 | 25867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
25868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
25869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25870 | arg2 = (int) SWIG_AsInt(obj1); | |
25871 | if (PyErr_Occurred()) SWIG_fail; | |
25872 | arg3 = (int) SWIG_AsInt(obj2); | |
25873 | if (PyErr_Occurred()) SWIG_fail; | |
25874 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
25875 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25876 | { |
25877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25878 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
25879 | ||
25880 | wxPyEndAllowThreads(__tstate); | |
25881 | if (PyErr_Occurred()) SWIG_fail; | |
25882 | } | |
2f4c0a16 | 25883 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25884 | return resultobj; |
25885 | fail: | |
25886 | return NULL; | |
25887 | } | |
25888 | ||
25889 | ||
25890 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25891 | PyObject *resultobj; | |
25892 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
423f194a RD |
25893 | int arg2 ; |
25894 | int arg3 ; | |
d14a1e28 RD |
25895 | int arg4 ; |
25896 | int result; | |
25897 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25898 | PyObject * obj1 = 0 ; |
25899 | PyObject * obj2 = 0 ; | |
25900 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25901 | char *kwnames[] = { |
25902 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
25903 | }; | |
25904 | ||
8edf1c75 | 25905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
25906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
25907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25908 | arg2 = (int) SWIG_AsInt(obj1); | |
25909 | if (PyErr_Occurred()) SWIG_fail; | |
25910 | arg3 = (int) SWIG_AsInt(obj2); | |
25911 | if (PyErr_Occurred()) SWIG_fail; | |
25912 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
25913 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25914 | { |
25915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25916 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
25917 | ||
25918 | wxPyEndAllowThreads(__tstate); | |
25919 | if (PyErr_Occurred()) SWIG_fail; | |
25920 | } | |
2f4c0a16 | 25921 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25922 | return resultobj; |
25923 | fail: | |
25924 | return NULL; | |
25925 | } | |
25926 | ||
25927 | ||
25928 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25929 | PyObject *resultobj; | |
25930 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25931 | PyObject * obj0 = 0 ; | |
25932 | char *kwnames[] = { | |
25933 | (char *) "self", NULL | |
25934 | }; | |
25935 | ||
25936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
25938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25939 | { |
25940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25941 | (arg1)->base_OnLeave(); | |
25942 | ||
25943 | wxPyEndAllowThreads(__tstate); | |
25944 | if (PyErr_Occurred()) SWIG_fail; | |
25945 | } | |
25946 | Py_INCREF(Py_None); resultobj = Py_None; | |
25947 | return resultobj; | |
25948 | fail: | |
25949 | return NULL; | |
25950 | } | |
25951 | ||
25952 | ||
25953 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25954 | PyObject *resultobj; | |
25955 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
423f194a RD |
25956 | int arg2 ; |
25957 | int arg3 ; | |
d14a1e28 RD |
25958 | bool result; |
25959 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25960 | PyObject * obj1 = 0 ; |
25961 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25962 | char *kwnames[] = { |
25963 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25964 | }; | |
25965 | ||
8edf1c75 | 25966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
25967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
25968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25969 | arg2 = (int) SWIG_AsInt(obj1); | |
25970 | if (PyErr_Occurred()) SWIG_fail; | |
25971 | arg3 = (int) SWIG_AsInt(obj2); | |
25972 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25973 | { |
25974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25975 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
25976 | ||
25977 | wxPyEndAllowThreads(__tstate); | |
25978 | if (PyErr_Occurred()) SWIG_fail; | |
25979 | } | |
4e760a36 | 25980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25981 | return resultobj; |
25982 | fail: | |
25983 | return NULL; | |
25984 | } | |
25985 | ||
25986 | ||
25987 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25988 | PyObject *resultobj; | |
25989 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25990 | bool result; | |
25991 | PyObject * obj0 = 0 ; | |
25992 | char *kwnames[] = { | |
25993 | (char *) "self", NULL | |
25994 | }; | |
25995 | ||
25996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
25998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25999 | { |
26000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26001 | result = (bool)(arg1)->GetData(); | |
26002 | ||
26003 | wxPyEndAllowThreads(__tstate); | |
26004 | if (PyErr_Occurred()) SWIG_fail; | |
26005 | } | |
4e760a36 | 26006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26007 | return resultobj; |
26008 | fail: | |
26009 | return NULL; | |
26010 | } | |
26011 | ||
26012 | ||
26013 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
26014 | PyObject *obj; | |
26015 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26016 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
26017 | Py_INCREF(obj); | |
26018 | return Py_BuildValue((char *)""); | |
26019 | } | |
26020 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26021 | PyObject *resultobj; | |
26022 | wxPyTextDropTarget *result; | |
26023 | char *kwnames[] = { | |
26024 | NULL | |
26025 | }; | |
26026 | ||
26027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
26028 | { | |
26029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26030 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
26031 | ||
26032 | wxPyEndAllowThreads(__tstate); | |
26033 | if (PyErr_Occurred()) SWIG_fail; | |
26034 | } | |
2f4c0a16 | 26035 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); |
d14a1e28 RD |
26036 | return resultobj; |
26037 | fail: | |
26038 | return NULL; | |
26039 | } | |
26040 | ||
26041 | ||
26042 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26043 | PyObject *resultobj; | |
26044 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26045 | PyObject *arg2 = (PyObject *) 0 ; | |
26046 | PyObject *arg3 = (PyObject *) 0 ; | |
26047 | PyObject * obj0 = 0 ; | |
26048 | PyObject * obj1 = 0 ; | |
26049 | PyObject * obj2 = 0 ; | |
26050 | char *kwnames[] = { | |
26051 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26052 | }; | |
26053 | ||
26054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
26055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26057 | arg2 = obj1; |
26058 | arg3 = obj2; | |
26059 | { | |
26060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26061 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26062 | ||
26063 | wxPyEndAllowThreads(__tstate); | |
26064 | if (PyErr_Occurred()) SWIG_fail; | |
26065 | } | |
26066 | Py_INCREF(Py_None); resultobj = Py_None; | |
26067 | return resultobj; | |
26068 | fail: | |
26069 | return NULL; | |
26070 | } | |
26071 | ||
26072 | ||
26073 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26074 | PyObject *resultobj; | |
26075 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
26076 | int arg2 ; |
26077 | int arg3 ; | |
d14a1e28 RD |
26078 | int arg4 ; |
26079 | int result; | |
26080 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
26081 | PyObject * obj1 = 0 ; |
26082 | PyObject * obj2 = 0 ; | |
26083 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26084 | char *kwnames[] = { |
26085 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26086 | }; | |
26087 | ||
8edf1c75 | 26088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
26089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26091 | arg2 = (int) SWIG_AsInt(obj1); | |
26092 | if (PyErr_Occurred()) SWIG_fail; | |
26093 | arg3 = (int) SWIG_AsInt(obj2); | |
26094 | if (PyErr_Occurred()) SWIG_fail; | |
26095 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26096 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26097 | { |
26098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26099 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26100 | ||
26101 | wxPyEndAllowThreads(__tstate); | |
26102 | if (PyErr_Occurred()) SWIG_fail; | |
26103 | } | |
2f4c0a16 | 26104 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26105 | return resultobj; |
26106 | fail: | |
26107 | return NULL; | |
26108 | } | |
26109 | ||
26110 | ||
26111 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26112 | PyObject *resultobj; | |
26113 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
26114 | int arg2 ; |
26115 | int arg3 ; | |
d14a1e28 RD |
26116 | int arg4 ; |
26117 | int result; | |
26118 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
26119 | PyObject * obj1 = 0 ; |
26120 | PyObject * obj2 = 0 ; | |
26121 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26122 | char *kwnames[] = { |
26123 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26124 | }; | |
26125 | ||
8edf1c75 | 26126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
26127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26129 | arg2 = (int) SWIG_AsInt(obj1); | |
26130 | if (PyErr_Occurred()) SWIG_fail; | |
26131 | arg3 = (int) SWIG_AsInt(obj2); | |
26132 | if (PyErr_Occurred()) SWIG_fail; | |
26133 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26134 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26135 | { |
26136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26137 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26138 | ||
26139 | wxPyEndAllowThreads(__tstate); | |
26140 | if (PyErr_Occurred()) SWIG_fail; | |
26141 | } | |
2f4c0a16 | 26142 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26143 | return resultobj; |
26144 | fail: | |
26145 | return NULL; | |
26146 | } | |
26147 | ||
26148 | ||
26149 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26150 | PyObject *resultobj; | |
26151 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26152 | PyObject * obj0 = 0 ; | |
26153 | char *kwnames[] = { | |
26154 | (char *) "self", NULL | |
26155 | }; | |
26156 | ||
26157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26160 | { |
26161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26162 | (arg1)->base_OnLeave(); | |
26163 | ||
26164 | wxPyEndAllowThreads(__tstate); | |
26165 | if (PyErr_Occurred()) SWIG_fail; | |
26166 | } | |
26167 | Py_INCREF(Py_None); resultobj = Py_None; | |
26168 | return resultobj; | |
26169 | fail: | |
26170 | return NULL; | |
26171 | } | |
26172 | ||
26173 | ||
26174 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26175 | PyObject *resultobj; | |
26176 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
26177 | int arg2 ; |
26178 | int arg3 ; | |
d14a1e28 RD |
26179 | bool result; |
26180 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
26181 | PyObject * obj1 = 0 ; |
26182 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26183 | char *kwnames[] = { |
26184 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26185 | }; | |
26186 | ||
8edf1c75 | 26187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
26188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26190 | arg2 = (int) SWIG_AsInt(obj1); | |
26191 | if (PyErr_Occurred()) SWIG_fail; | |
26192 | arg3 = (int) SWIG_AsInt(obj2); | |
26193 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26194 | { |
26195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26196 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26197 | ||
26198 | wxPyEndAllowThreads(__tstate); | |
26199 | if (PyErr_Occurred()) SWIG_fail; | |
26200 | } | |
4e760a36 | 26201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26202 | return resultobj; |
26203 | fail: | |
26204 | return NULL; | |
26205 | } | |
26206 | ||
26207 | ||
26208 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26209 | PyObject *resultobj; | |
26210 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
26211 | int arg2 ; |
26212 | int arg3 ; | |
d14a1e28 RD |
26213 | int arg4 ; |
26214 | int result; | |
26215 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
26216 | PyObject * obj1 = 0 ; |
26217 | PyObject * obj2 = 0 ; | |
26218 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26219 | char *kwnames[] = { |
26220 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26221 | }; | |
26222 | ||
8edf1c75 | 26223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
26224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26226 | arg2 = (int) SWIG_AsInt(obj1); | |
26227 | if (PyErr_Occurred()) SWIG_fail; | |
26228 | arg3 = (int) SWIG_AsInt(obj2); | |
26229 | if (PyErr_Occurred()) SWIG_fail; | |
26230 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26231 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26232 | { |
26233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26234 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26235 | ||
26236 | wxPyEndAllowThreads(__tstate); | |
26237 | if (PyErr_Occurred()) SWIG_fail; | |
26238 | } | |
2f4c0a16 | 26239 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26240 | return resultobj; |
26241 | fail: | |
26242 | return NULL; | |
26243 | } | |
26244 | ||
26245 | ||
26246 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26247 | PyObject *obj; | |
26248 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26249 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
26250 | Py_INCREF(obj); | |
26251 | return Py_BuildValue((char *)""); | |
26252 | } | |
26253 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26254 | PyObject *resultobj; | |
26255 | wxPyFileDropTarget *result; | |
26256 | char *kwnames[] = { | |
26257 | NULL | |
26258 | }; | |
26259 | ||
26260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
26261 | { | |
26262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26263 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
26264 | ||
26265 | wxPyEndAllowThreads(__tstate); | |
26266 | if (PyErr_Occurred()) SWIG_fail; | |
26267 | } | |
2f4c0a16 | 26268 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); |
d14a1e28 RD |
26269 | return resultobj; |
26270 | fail: | |
26271 | return NULL; | |
26272 | } | |
26273 | ||
26274 | ||
26275 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26276 | PyObject *resultobj; | |
26277 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26278 | PyObject *arg2 = (PyObject *) 0 ; | |
26279 | PyObject *arg3 = (PyObject *) 0 ; | |
26280 | PyObject * obj0 = 0 ; | |
26281 | PyObject * obj1 = 0 ; | |
26282 | PyObject * obj2 = 0 ; | |
26283 | char *kwnames[] = { | |
26284 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26285 | }; | |
26286 | ||
26287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
26288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26290 | arg2 = obj1; |
26291 | arg3 = obj2; | |
26292 | { | |
26293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26294 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26295 | ||
26296 | wxPyEndAllowThreads(__tstate); | |
26297 | if (PyErr_Occurred()) SWIG_fail; | |
26298 | } | |
26299 | Py_INCREF(Py_None); resultobj = Py_None; | |
26300 | return resultobj; | |
26301 | fail: | |
26302 | return NULL; | |
26303 | } | |
26304 | ||
26305 | ||
26306 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26307 | PyObject *resultobj; | |
26308 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
26309 | int arg2 ; |
26310 | int arg3 ; | |
d14a1e28 RD |
26311 | int arg4 ; |
26312 | int result; | |
26313 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
26314 | PyObject * obj1 = 0 ; |
26315 | PyObject * obj2 = 0 ; | |
26316 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26317 | char *kwnames[] = { |
26318 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26319 | }; | |
26320 | ||
8edf1c75 | 26321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
26322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26324 | arg2 = (int) SWIG_AsInt(obj1); | |
26325 | if (PyErr_Occurred()) SWIG_fail; | |
26326 | arg3 = (int) SWIG_AsInt(obj2); | |
26327 | if (PyErr_Occurred()) SWIG_fail; | |
26328 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26329 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26330 | { |
26331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26332 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26333 | ||
26334 | wxPyEndAllowThreads(__tstate); | |
26335 | if (PyErr_Occurred()) SWIG_fail; | |
26336 | } | |
2f4c0a16 | 26337 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26338 | return resultobj; |
26339 | fail: | |
26340 | return NULL; | |
26341 | } | |
26342 | ||
26343 | ||
26344 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26345 | PyObject *resultobj; | |
26346 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
26347 | int arg2 ; |
26348 | int arg3 ; | |
d14a1e28 RD |
26349 | int arg4 ; |
26350 | int result; | |
26351 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
26352 | PyObject * obj1 = 0 ; |
26353 | PyObject * obj2 = 0 ; | |
26354 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26355 | char *kwnames[] = { |
26356 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26357 | }; | |
26358 | ||
8edf1c75 | 26359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
26360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26362 | arg2 = (int) SWIG_AsInt(obj1); | |
26363 | if (PyErr_Occurred()) SWIG_fail; | |
26364 | arg3 = (int) SWIG_AsInt(obj2); | |
26365 | if (PyErr_Occurred()) SWIG_fail; | |
26366 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26367 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26368 | { |
26369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26370 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26371 | ||
26372 | wxPyEndAllowThreads(__tstate); | |
26373 | if (PyErr_Occurred()) SWIG_fail; | |
26374 | } | |
2f4c0a16 | 26375 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26376 | return resultobj; |
26377 | fail: | |
26378 | return NULL; | |
26379 | } | |
26380 | ||
26381 | ||
26382 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26383 | PyObject *resultobj; | |
26384 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26385 | PyObject * obj0 = 0 ; | |
26386 | char *kwnames[] = { | |
26387 | (char *) "self", NULL | |
26388 | }; | |
26389 | ||
26390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26393 | { |
26394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26395 | (arg1)->base_OnLeave(); | |
26396 | ||
26397 | wxPyEndAllowThreads(__tstate); | |
26398 | if (PyErr_Occurred()) SWIG_fail; | |
26399 | } | |
26400 | Py_INCREF(Py_None); resultobj = Py_None; | |
26401 | return resultobj; | |
26402 | fail: | |
26403 | return NULL; | |
26404 | } | |
26405 | ||
26406 | ||
26407 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26408 | PyObject *resultobj; | |
26409 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
26410 | int arg2 ; |
26411 | int arg3 ; | |
d14a1e28 RD |
26412 | bool result; |
26413 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
26414 | PyObject * obj1 = 0 ; |
26415 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26416 | char *kwnames[] = { |
26417 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26418 | }; | |
26419 | ||
8edf1c75 | 26420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
26421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26423 | arg2 = (int) SWIG_AsInt(obj1); | |
26424 | if (PyErr_Occurred()) SWIG_fail; | |
26425 | arg3 = (int) SWIG_AsInt(obj2); | |
26426 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26427 | { |
26428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26429 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26430 | ||
26431 | wxPyEndAllowThreads(__tstate); | |
26432 | if (PyErr_Occurred()) SWIG_fail; | |
26433 | } | |
4e760a36 | 26434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26435 | return resultobj; |
26436 | fail: | |
26437 | return NULL; | |
26438 | } | |
26439 | ||
26440 | ||
26441 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26442 | PyObject *resultobj; | |
26443 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
26444 | int arg2 ; |
26445 | int arg3 ; | |
d14a1e28 RD |
26446 | int arg4 ; |
26447 | int result; | |
26448 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
26449 | PyObject * obj1 = 0 ; |
26450 | PyObject * obj2 = 0 ; | |
26451 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26452 | char *kwnames[] = { |
26453 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26454 | }; | |
26455 | ||
8edf1c75 | 26456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
26457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26459 | arg2 = (int) SWIG_AsInt(obj1); | |
26460 | if (PyErr_Occurred()) SWIG_fail; | |
26461 | arg3 = (int) SWIG_AsInt(obj2); | |
26462 | if (PyErr_Occurred()) SWIG_fail; | |
26463 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26464 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26465 | { |
26466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26467 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26468 | ||
26469 | wxPyEndAllowThreads(__tstate); | |
26470 | if (PyErr_Occurred()) SWIG_fail; | |
26471 | } | |
2f4c0a16 | 26472 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26473 | return resultobj; |
26474 | fail: | |
26475 | return NULL; | |
26476 | } | |
26477 | ||
26478 | ||
26479 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26480 | PyObject *obj; | |
26481 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26482 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
26483 | Py_INCREF(obj); | |
26484 | return Py_BuildValue((char *)""); | |
26485 | } | |
26486 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26487 | PyObject *resultobj; | |
26488 | wxClipboard *result; | |
26489 | char *kwnames[] = { | |
26490 | NULL | |
26491 | }; | |
26492 | ||
26493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
26494 | { | |
26495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26496 | result = (wxClipboard *)new wxClipboard(); | |
26497 | ||
26498 | wxPyEndAllowThreads(__tstate); | |
26499 | if (PyErr_Occurred()) SWIG_fail; | |
26500 | } | |
2f4c0a16 | 26501 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); |
d14a1e28 RD |
26502 | return resultobj; |
26503 | fail: | |
26504 | return NULL; | |
26505 | } | |
26506 | ||
26507 | ||
26508 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26509 | PyObject *resultobj; | |
26510 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26511 | PyObject * obj0 = 0 ; | |
26512 | char *kwnames[] = { | |
26513 | (char *) "self", NULL | |
26514 | }; | |
26515 | ||
26516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26519 | { |
26520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26521 | delete arg1; | |
26522 | ||
26523 | wxPyEndAllowThreads(__tstate); | |
26524 | if (PyErr_Occurred()) SWIG_fail; | |
26525 | } | |
26526 | Py_INCREF(Py_None); resultobj = Py_None; | |
26527 | return resultobj; | |
26528 | fail: | |
26529 | return NULL; | |
26530 | } | |
26531 | ||
26532 | ||
26533 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26534 | PyObject *resultobj; | |
26535 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26536 | bool result; | |
26537 | PyObject * obj0 = 0 ; | |
26538 | char *kwnames[] = { | |
26539 | (char *) "self", NULL | |
26540 | }; | |
26541 | ||
26542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26545 | { |
26546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26547 | result = (bool)(arg1)->Open(); | |
26548 | ||
26549 | wxPyEndAllowThreads(__tstate); | |
26550 | if (PyErr_Occurred()) SWIG_fail; | |
26551 | } | |
4e760a36 | 26552 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26553 | return resultobj; |
26554 | fail: | |
26555 | return NULL; | |
26556 | } | |
26557 | ||
26558 | ||
26559 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26560 | PyObject *resultobj; | |
26561 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26562 | PyObject * obj0 = 0 ; | |
26563 | char *kwnames[] = { | |
26564 | (char *) "self", NULL | |
26565 | }; | |
26566 | ||
26567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26570 | { |
26571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26572 | (arg1)->Close(); | |
26573 | ||
26574 | wxPyEndAllowThreads(__tstate); | |
26575 | if (PyErr_Occurred()) SWIG_fail; | |
26576 | } | |
26577 | Py_INCREF(Py_None); resultobj = Py_None; | |
26578 | return resultobj; | |
26579 | fail: | |
26580 | return NULL; | |
26581 | } | |
26582 | ||
26583 | ||
26584 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26585 | PyObject *resultobj; | |
26586 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26587 | bool result; | |
26588 | PyObject * obj0 = 0 ; | |
26589 | char *kwnames[] = { | |
26590 | (char *) "self", NULL | |
26591 | }; | |
26592 | ||
26593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26596 | { |
26597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26598 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
26599 | ||
26600 | wxPyEndAllowThreads(__tstate); | |
26601 | if (PyErr_Occurred()) SWIG_fail; | |
26602 | } | |
4e760a36 | 26603 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26604 | return resultobj; |
26605 | fail: | |
26606 | return NULL; | |
26607 | } | |
26608 | ||
26609 | ||
26610 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26611 | PyObject *resultobj; | |
26612 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26613 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26614 | bool result; | |
26615 | PyObject * obj0 = 0 ; | |
26616 | PyObject * obj1 = 0 ; | |
26617 | char *kwnames[] = { | |
26618 | (char *) "self",(char *) "data", NULL | |
26619 | }; | |
26620 | ||
26621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26624 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26625 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26626 | { |
26627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26628 | result = (bool)(arg1)->AddData(arg2); | |
26629 | ||
26630 | wxPyEndAllowThreads(__tstate); | |
26631 | if (PyErr_Occurred()) SWIG_fail; | |
26632 | } | |
4e760a36 | 26633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26634 | return resultobj; |
26635 | fail: | |
26636 | return NULL; | |
26637 | } | |
26638 | ||
26639 | ||
26640 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26641 | PyObject *resultobj; | |
26642 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26643 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26644 | bool result; | |
26645 | PyObject * obj0 = 0 ; | |
26646 | PyObject * obj1 = 0 ; | |
26647 | char *kwnames[] = { | |
26648 | (char *) "self",(char *) "data", NULL | |
26649 | }; | |
26650 | ||
26651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26654 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26655 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26656 | { |
26657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26658 | result = (bool)(arg1)->SetData(arg2); | |
26659 | ||
26660 | wxPyEndAllowThreads(__tstate); | |
26661 | if (PyErr_Occurred()) SWIG_fail; | |
26662 | } | |
4e760a36 | 26663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26664 | return resultobj; |
26665 | fail: | |
26666 | return NULL; | |
26667 | } | |
26668 | ||
26669 | ||
26670 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26671 | PyObject *resultobj; | |
26672 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26673 | wxDataFormat *arg2 = 0 ; | |
26674 | bool result; | |
26675 | PyObject * obj0 = 0 ; | |
26676 | PyObject * obj1 = 0 ; | |
26677 | char *kwnames[] = { | |
26678 | (char *) "self",(char *) "format", NULL | |
26679 | }; | |
26680 | ||
26681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26684 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
26685 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26686 | SWIG_fail; | |
d14a1e28 | 26687 | if (arg2 == NULL) { |
2f4c0a16 RD |
26688 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26689 | SWIG_fail; | |
d14a1e28 RD |
26690 | } |
26691 | { | |
26692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26693 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
26694 | ||
26695 | wxPyEndAllowThreads(__tstate); | |
26696 | if (PyErr_Occurred()) SWIG_fail; | |
26697 | } | |
4e760a36 | 26698 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26699 | return resultobj; |
26700 | fail: | |
26701 | return NULL; | |
26702 | } | |
26703 | ||
26704 | ||
26705 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26706 | PyObject *resultobj; | |
26707 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26708 | wxDataObject *arg2 = 0 ; | |
26709 | bool result; | |
26710 | PyObject * obj0 = 0 ; | |
26711 | PyObject * obj1 = 0 ; | |
26712 | char *kwnames[] = { | |
26713 | (char *) "self",(char *) "data", NULL | |
26714 | }; | |
26715 | ||
26716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26719 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26720 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26721 | SWIG_fail; | |
d14a1e28 | 26722 | if (arg2 == NULL) { |
2f4c0a16 RD |
26723 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26724 | SWIG_fail; | |
d14a1e28 RD |
26725 | } |
26726 | { | |
26727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26728 | result = (bool)(arg1)->GetData(*arg2); | |
26729 | ||
26730 | wxPyEndAllowThreads(__tstate); | |
26731 | if (PyErr_Occurred()) SWIG_fail; | |
26732 | } | |
4e760a36 | 26733 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26734 | return resultobj; |
26735 | fail: | |
26736 | return NULL; | |
26737 | } | |
26738 | ||
26739 | ||
26740 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26741 | PyObject *resultobj; | |
26742 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26743 | PyObject * obj0 = 0 ; | |
26744 | char *kwnames[] = { | |
26745 | (char *) "self", NULL | |
26746 | }; | |
26747 | ||
26748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26751 | { |
26752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26753 | (arg1)->Clear(); | |
26754 | ||
26755 | wxPyEndAllowThreads(__tstate); | |
26756 | if (PyErr_Occurred()) SWIG_fail; | |
26757 | } | |
26758 | Py_INCREF(Py_None); resultobj = Py_None; | |
26759 | return resultobj; | |
26760 | fail: | |
26761 | return NULL; | |
26762 | } | |
26763 | ||
26764 | ||
26765 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26766 | PyObject *resultobj; | |
26767 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26768 | bool result; | |
26769 | PyObject * obj0 = 0 ; | |
26770 | char *kwnames[] = { | |
26771 | (char *) "self", NULL | |
26772 | }; | |
26773 | ||
26774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26777 | { |
26778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26779 | result = (bool)(arg1)->Flush(); | |
26780 | ||
26781 | wxPyEndAllowThreads(__tstate); | |
26782 | if (PyErr_Occurred()) SWIG_fail; | |
26783 | } | |
4e760a36 | 26784 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26785 | return resultobj; |
26786 | fail: | |
26787 | return NULL; | |
26788 | } | |
26789 | ||
26790 | ||
26791 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26792 | PyObject *resultobj; | |
26793 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
1f05e33b | 26794 | bool arg2 = (bool) True ; |
d14a1e28 RD |
26795 | PyObject * obj0 = 0 ; |
26796 | PyObject * obj1 = 0 ; | |
26797 | char *kwnames[] = { | |
26798 | (char *) "self",(char *) "primary", NULL | |
26799 | }; | |
26800 | ||
26801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 26804 | if (obj1) { |
2f4c0a16 RD |
26805 | arg2 = (bool) SWIG_AsBool(obj1); |
26806 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26807 | } |
26808 | { | |
26809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26810 | (arg1)->UsePrimarySelection(arg2); | |
26811 | ||
26812 | wxPyEndAllowThreads(__tstate); | |
26813 | if (PyErr_Occurred()) SWIG_fail; | |
26814 | } | |
26815 | Py_INCREF(Py_None); resultobj = Py_None; | |
26816 | return resultobj; | |
26817 | fail: | |
26818 | return NULL; | |
26819 | } | |
26820 | ||
26821 | ||
26822 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { | |
26823 | PyObject *obj; | |
26824 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26825 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
26826 | Py_INCREF(obj); | |
26827 | return Py_BuildValue((char *)""); | |
26828 | } | |
2f4c0a16 | 26829 | static int _wrap_TheClipboard_set(PyObject *_val) { |
d14a1e28 RD |
26830 | PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); |
26831 | return 1; | |
26832 | } | |
26833 | ||
26834 | ||
26835 | static PyObject *_wrap_TheClipboard_get() { | |
26836 | PyObject *pyobj; | |
26837 | ||
2f4c0a16 | 26838 | pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0); |
d14a1e28 RD |
26839 | return pyobj; |
26840 | } | |
26841 | ||
26842 | ||
26843 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26844 | PyObject *resultobj; | |
26845 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
26846 | wxClipboardLocker *result; | |
26847 | PyObject * obj0 = 0 ; | |
26848 | char *kwnames[] = { | |
26849 | (char *) "clipboard", NULL | |
26850 | }; | |
26851 | ||
26852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
26853 | if (obj0) { | |
2f4c0a16 RD |
26854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26856 | } |
26857 | { | |
26858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26859 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
26860 | ||
26861 | wxPyEndAllowThreads(__tstate); | |
26862 | if (PyErr_Occurred()) SWIG_fail; | |
26863 | } | |
2f4c0a16 | 26864 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); |
d14a1e28 RD |
26865 | return resultobj; |
26866 | fail: | |
26867 | return NULL; | |
26868 | } | |
26869 | ||
26870 | ||
26871 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26872 | PyObject *resultobj; | |
26873 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
26874 | PyObject * obj0 = 0 ; | |
26875 | char *kwnames[] = { | |
26876 | (char *) "self", NULL | |
26877 | }; | |
26878 | ||
26879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, |
26881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26882 | { |
26883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26884 | delete arg1; | |
26885 | ||
26886 | wxPyEndAllowThreads(__tstate); | |
26887 | if (PyErr_Occurred()) SWIG_fail; | |
26888 | } | |
26889 | Py_INCREF(Py_None); resultobj = Py_None; | |
26890 | return resultobj; | |
26891 | fail: | |
26892 | return NULL; | |
26893 | } | |
26894 | ||
26895 | ||
26896 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26897 | PyObject *resultobj; | |
26898 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
26899 | bool result; | |
26900 | PyObject * obj0 = 0 ; | |
26901 | char *kwnames[] = { | |
26902 | (char *) "self", NULL | |
26903 | }; | |
26904 | ||
26905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, |
26907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26908 | { |
26909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26910 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
26911 | ||
26912 | wxPyEndAllowThreads(__tstate); | |
26913 | if (PyErr_Occurred()) SWIG_fail; | |
26914 | } | |
4e760a36 | 26915 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26916 | return resultobj; |
26917 | fail: | |
26918 | return NULL; | |
26919 | } | |
26920 | ||
26921 | ||
26922 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
26923 | PyObject *obj; | |
26924 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26925 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
26926 | Py_INCREF(obj); | |
26927 | return Py_BuildValue((char *)""); | |
26928 | } | |
fe763115 RD |
26929 | static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
26930 | PyObject *resultobj; | |
26931 | int arg1 = (int) 0 ; | |
26932 | int arg2 = (int) 0 ; | |
26933 | int arg3 = (int) 0 ; | |
26934 | int arg4 = (int) 0 ; | |
26935 | wxVideoMode *result; | |
26936 | PyObject * obj0 = 0 ; | |
26937 | PyObject * obj1 = 0 ; | |
26938 | PyObject * obj2 = 0 ; | |
26939 | PyObject * obj3 = 0 ; | |
26940 | char *kwnames[] = { | |
26941 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
26942 | }; | |
26943 | ||
26944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26945 | if (obj0) { | |
26946 | arg1 = (int) SWIG_AsInt(obj0); | |
26947 | if (PyErr_Occurred()) SWIG_fail; | |
26948 | } | |
26949 | if (obj1) { | |
26950 | arg2 = (int) SWIG_AsInt(obj1); | |
26951 | if (PyErr_Occurred()) SWIG_fail; | |
26952 | } | |
26953 | if (obj2) { | |
26954 | arg3 = (int) SWIG_AsInt(obj2); | |
26955 | if (PyErr_Occurred()) SWIG_fail; | |
26956 | } | |
26957 | if (obj3) { | |
26958 | arg4 = (int) SWIG_AsInt(obj3); | |
26959 | if (PyErr_Occurred()) SWIG_fail; | |
26960 | } | |
26961 | { | |
26962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26963 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
26964 | ||
26965 | wxPyEndAllowThreads(__tstate); | |
26966 | if (PyErr_Occurred()) SWIG_fail; | |
26967 | } | |
26968 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
26969 | return resultobj; | |
26970 | fail: | |
26971 | return NULL; | |
26972 | } | |
26973 | ||
26974 | ||
26975 | static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26976 | PyObject *resultobj; | |
26977 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
26978 | PyObject * obj0 = 0 ; | |
26979 | char *kwnames[] = { | |
26980 | (char *) "self", NULL | |
26981 | }; | |
26982 | ||
26983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
26984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
26985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26986 | { | |
26987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26988 | delete arg1; | |
26989 | ||
26990 | wxPyEndAllowThreads(__tstate); | |
26991 | if (PyErr_Occurred()) SWIG_fail; | |
26992 | } | |
26993 | Py_INCREF(Py_None); resultobj = Py_None; | |
26994 | return resultobj; | |
26995 | fail: | |
26996 | return NULL; | |
26997 | } | |
26998 | ||
26999 | ||
27000 | static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27001 | PyObject *resultobj; | |
27002 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27003 | wxVideoMode *arg2 = 0 ; | |
27004 | bool result; | |
27005 | PyObject * obj0 = 0 ; | |
27006 | PyObject * obj1 = 0 ; | |
27007 | char *kwnames[] = { | |
27008 | (char *) "self",(char *) "other", NULL | |
27009 | }; | |
27010 | ||
27011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
27012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27014 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27015 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27016 | SWIG_fail; | |
27017 | if (arg2 == NULL) { | |
27018 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27019 | SWIG_fail; | |
27020 | } | |
27021 | { | |
27022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27023 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
27024 | ||
27025 | wxPyEndAllowThreads(__tstate); | |
27026 | if (PyErr_Occurred()) SWIG_fail; | |
27027 | } | |
27028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27029 | return resultobj; | |
27030 | fail: | |
27031 | return NULL; | |
27032 | } | |
27033 | ||
27034 | ||
27035 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27036 | PyObject *resultobj; | |
27037 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27038 | int result; | |
27039 | PyObject * obj0 = 0 ; | |
27040 | char *kwnames[] = { | |
27041 | (char *) "self", NULL | |
27042 | }; | |
27043 | ||
27044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
27045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27047 | { | |
27048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27049 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
27050 | ||
27051 | wxPyEndAllowThreads(__tstate); | |
27052 | if (PyErr_Occurred()) SWIG_fail; | |
27053 | } | |
27054 | resultobj = SWIG_FromInt((int)result); | |
27055 | return resultobj; | |
27056 | fail: | |
27057 | return NULL; | |
27058 | } | |
27059 | ||
27060 | ||
27061 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27062 | PyObject *resultobj; | |
27063 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27064 | int result; | |
27065 | PyObject * obj0 = 0 ; | |
27066 | char *kwnames[] = { | |
27067 | (char *) "self", NULL | |
27068 | }; | |
27069 | ||
27070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
27071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27073 | { | |
27074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27075 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
27076 | ||
27077 | wxPyEndAllowThreads(__tstate); | |
27078 | if (PyErr_Occurred()) SWIG_fail; | |
27079 | } | |
27080 | resultobj = SWIG_FromInt((int)result); | |
27081 | return resultobj; | |
27082 | fail: | |
27083 | return NULL; | |
27084 | } | |
27085 | ||
27086 | ||
27087 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27088 | PyObject *resultobj; | |
27089 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27090 | int result; | |
27091 | PyObject * obj0 = 0 ; | |
27092 | char *kwnames[] = { | |
27093 | (char *) "self", NULL | |
27094 | }; | |
27095 | ||
27096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
27097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27099 | { | |
27100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27101 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
27102 | ||
27103 | wxPyEndAllowThreads(__tstate); | |
27104 | if (PyErr_Occurred()) SWIG_fail; | |
27105 | } | |
27106 | resultobj = SWIG_FromInt((int)result); | |
27107 | return resultobj; | |
27108 | fail: | |
27109 | return NULL; | |
27110 | } | |
27111 | ||
27112 | ||
27113 | static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27114 | PyObject *resultobj; | |
27115 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27116 | bool result; | |
27117 | PyObject * obj0 = 0 ; | |
27118 | char *kwnames[] = { | |
27119 | (char *) "self", NULL | |
27120 | }; | |
27121 | ||
27122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
27123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27125 | { | |
27126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27127 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
27128 | ||
27129 | wxPyEndAllowThreads(__tstate); | |
27130 | if (PyErr_Occurred()) SWIG_fail; | |
27131 | } | |
27132 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27133 | return resultobj; | |
27134 | fail: | |
27135 | return NULL; | |
27136 | } | |
27137 | ||
27138 | ||
27139 | static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27140 | PyObject *resultobj; | |
27141 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27142 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27143 | bool result; | |
27144 | PyObject * obj0 = 0 ; | |
27145 | PyObject * obj1 = 0 ; | |
27146 | char *kwnames[] = { | |
27147 | (char *) "self",(char *) "other", NULL | |
27148 | }; | |
27149 | ||
27150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
27151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27153 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27155 | { | |
27156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27157 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
27158 | ||
27159 | wxPyEndAllowThreads(__tstate); | |
27160 | if (PyErr_Occurred()) SWIG_fail; | |
27161 | } | |
27162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27163 | return resultobj; | |
27164 | fail: | |
27165 | return NULL; | |
27166 | } | |
27167 | ||
27168 | ||
27169 | static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27170 | PyObject *resultobj; | |
27171 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27172 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27173 | bool result; | |
27174 | PyObject * obj0 = 0 ; | |
27175 | PyObject * obj1 = 0 ; | |
27176 | char *kwnames[] = { | |
27177 | (char *) "self",(char *) "other", NULL | |
27178 | }; | |
27179 | ||
27180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
27181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27183 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27185 | { | |
27186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27187 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
27188 | ||
27189 | wxPyEndAllowThreads(__tstate); | |
27190 | if (PyErr_Occurred()) SWIG_fail; | |
27191 | } | |
27192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27193 | return resultobj; | |
27194 | fail: | |
27195 | return NULL; | |
27196 | } | |
27197 | ||
27198 | ||
27199 | static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27200 | PyObject *resultobj; | |
27201 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27202 | int arg2 ; | |
27203 | PyObject * obj0 = 0 ; | |
27204 | PyObject * obj1 = 0 ; | |
27205 | char *kwnames[] = { | |
27206 | (char *) "self",(char *) "w", NULL | |
27207 | }; | |
27208 | ||
27209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
27210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27212 | arg2 = (int) SWIG_AsInt(obj1); | |
27213 | if (PyErr_Occurred()) SWIG_fail; | |
27214 | if (arg1) (arg1)->w = arg2; | |
27215 | ||
27216 | Py_INCREF(Py_None); resultobj = Py_None; | |
27217 | return resultobj; | |
27218 | fail: | |
27219 | return NULL; | |
27220 | } | |
27221 | ||
27222 | ||
27223 | static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27224 | PyObject *resultobj; | |
27225 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27226 | int result; | |
27227 | PyObject * obj0 = 0 ; | |
27228 | char *kwnames[] = { | |
27229 | (char *) "self", NULL | |
27230 | }; | |
27231 | ||
27232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
27233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27235 | result = (int) ((arg1)->w); | |
27236 | ||
27237 | resultobj = SWIG_FromInt((int)result); | |
27238 | return resultobj; | |
27239 | fail: | |
27240 | return NULL; | |
27241 | } | |
27242 | ||
27243 | ||
27244 | static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27245 | PyObject *resultobj; | |
27246 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27247 | int arg2 ; | |
27248 | PyObject * obj0 = 0 ; | |
27249 | PyObject * obj1 = 0 ; | |
27250 | char *kwnames[] = { | |
27251 | (char *) "self",(char *) "h", NULL | |
27252 | }; | |
27253 | ||
27254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
27255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27257 | arg2 = (int) SWIG_AsInt(obj1); | |
27258 | if (PyErr_Occurred()) SWIG_fail; | |
27259 | if (arg1) (arg1)->h = arg2; | |
27260 | ||
27261 | Py_INCREF(Py_None); resultobj = Py_None; | |
27262 | return resultobj; | |
27263 | fail: | |
27264 | return NULL; | |
27265 | } | |
27266 | ||
27267 | ||
27268 | static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27269 | PyObject *resultobj; | |
27270 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27271 | int result; | |
27272 | PyObject * obj0 = 0 ; | |
27273 | char *kwnames[] = { | |
27274 | (char *) "self", NULL | |
27275 | }; | |
27276 | ||
27277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
27278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27280 | result = (int) ((arg1)->h); | |
27281 | ||
27282 | resultobj = SWIG_FromInt((int)result); | |
27283 | return resultobj; | |
27284 | fail: | |
27285 | return NULL; | |
27286 | } | |
27287 | ||
27288 | ||
27289 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27290 | PyObject *resultobj; | |
27291 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27292 | int arg2 ; | |
27293 | PyObject * obj0 = 0 ; | |
27294 | PyObject * obj1 = 0 ; | |
27295 | char *kwnames[] = { | |
27296 | (char *) "self",(char *) "bpp", NULL | |
27297 | }; | |
27298 | ||
27299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
27300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27302 | arg2 = (int) SWIG_AsInt(obj1); | |
27303 | if (PyErr_Occurred()) SWIG_fail; | |
27304 | if (arg1) (arg1)->bpp = arg2; | |
27305 | ||
27306 | Py_INCREF(Py_None); resultobj = Py_None; | |
27307 | return resultobj; | |
27308 | fail: | |
27309 | return NULL; | |
27310 | } | |
27311 | ||
27312 | ||
27313 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27314 | PyObject *resultobj; | |
27315 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27316 | int result; | |
27317 | PyObject * obj0 = 0 ; | |
27318 | char *kwnames[] = { | |
27319 | (char *) "self", NULL | |
27320 | }; | |
27321 | ||
27322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
27323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27325 | result = (int) ((arg1)->bpp); | |
27326 | ||
27327 | resultobj = SWIG_FromInt((int)result); | |
27328 | return resultobj; | |
27329 | fail: | |
27330 | return NULL; | |
27331 | } | |
27332 | ||
27333 | ||
27334 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27335 | PyObject *resultobj; | |
27336 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27337 | int arg2 ; | |
27338 | PyObject * obj0 = 0 ; | |
27339 | PyObject * obj1 = 0 ; | |
27340 | char *kwnames[] = { | |
27341 | (char *) "self",(char *) "refresh", NULL | |
27342 | }; | |
27343 | ||
27344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
27345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27347 | arg2 = (int) SWIG_AsInt(obj1); | |
27348 | if (PyErr_Occurred()) SWIG_fail; | |
27349 | if (arg1) (arg1)->refresh = arg2; | |
27350 | ||
27351 | Py_INCREF(Py_None); resultobj = Py_None; | |
27352 | return resultobj; | |
27353 | fail: | |
27354 | return NULL; | |
27355 | } | |
27356 | ||
27357 | ||
27358 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27359 | PyObject *resultobj; | |
27360 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27361 | int result; | |
27362 | PyObject * obj0 = 0 ; | |
27363 | char *kwnames[] = { | |
27364 | (char *) "self", NULL | |
27365 | }; | |
27366 | ||
27367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
27368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27370 | result = (int) ((arg1)->refresh); | |
27371 | ||
27372 | resultobj = SWIG_FromInt((int)result); | |
27373 | return resultobj; | |
27374 | fail: | |
27375 | return NULL; | |
27376 | } | |
27377 | ||
27378 | ||
27379 | static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) { | |
27380 | PyObject *obj; | |
27381 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27382 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
27383 | Py_INCREF(obj); | |
27384 | return Py_BuildValue((char *)""); | |
27385 | } | |
27386 | static int _wrap_DefaultVideoMode_set(PyObject *_val) { | |
27387 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); | |
27388 | return 1; | |
27389 | } | |
27390 | ||
27391 | ||
27392 | static PyObject *_wrap_DefaultVideoMode_get() { | |
27393 | PyObject *pyobj; | |
27394 | ||
27395 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
27396 | return pyobj; | |
27397 | } | |
27398 | ||
27399 | ||
27400 | static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27401 | PyObject *resultobj; | |
27402 | size_t arg1 = (size_t) 0 ; | |
27403 | wxDisplay *result; | |
27404 | PyObject * obj0 = 0 ; | |
27405 | char *kwnames[] = { | |
27406 | (char *) "index", NULL | |
27407 | }; | |
27408 | ||
27409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
27410 | if (obj0) { | |
27411 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); | |
27412 | if (PyErr_Occurred()) SWIG_fail; | |
27413 | } | |
27414 | { | |
27415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27416 | result = (wxDisplay *)new wxDisplay(arg1); | |
27417 | ||
27418 | wxPyEndAllowThreads(__tstate); | |
27419 | if (PyErr_Occurred()) SWIG_fail; | |
27420 | } | |
27421 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
27422 | return resultobj; | |
27423 | fail: | |
27424 | return NULL; | |
27425 | } | |
27426 | ||
27427 | ||
27428 | static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27429 | PyObject *resultobj; | |
27430 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27431 | PyObject * obj0 = 0 ; | |
27432 | char *kwnames[] = { | |
27433 | (char *) "self", NULL | |
27434 | }; | |
27435 | ||
27436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
27437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27439 | { | |
27440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27441 | delete arg1; | |
27442 | ||
27443 | wxPyEndAllowThreads(__tstate); | |
27444 | if (PyErr_Occurred()) SWIG_fail; | |
27445 | } | |
27446 | Py_INCREF(Py_None); resultobj = Py_None; | |
27447 | return resultobj; | |
27448 | fail: | |
27449 | return NULL; | |
27450 | } | |
27451 | ||
27452 | ||
27453 | static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27454 | PyObject *resultobj; | |
27455 | size_t result; | |
27456 | char *kwnames[] = { | |
27457 | NULL | |
27458 | }; | |
27459 | ||
27460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
27461 | { | |
27462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27463 | result = (size_t)wxDisplay::GetCount(); | |
27464 | ||
27465 | wxPyEndAllowThreads(__tstate); | |
27466 | if (PyErr_Occurred()) SWIG_fail; | |
27467 | } | |
27468 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
27469 | return resultobj; | |
27470 | fail: | |
27471 | return NULL; | |
27472 | } | |
27473 | ||
27474 | ||
27475 | static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27476 | PyObject *resultobj; | |
27477 | wxPoint *arg1 = 0 ; | |
27478 | int result; | |
27479 | wxPoint temp1 ; | |
27480 | PyObject * obj0 = 0 ; | |
27481 | char *kwnames[] = { | |
27482 | (char *) "pt", NULL | |
27483 | }; | |
27484 | ||
27485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
27486 | { | |
27487 | arg1 = &temp1; | |
27488 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
27489 | } | |
27490 | { | |
27491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27492 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
27493 | ||
27494 | wxPyEndAllowThreads(__tstate); | |
27495 | if (PyErr_Occurred()) SWIG_fail; | |
27496 | } | |
27497 | resultobj = SWIG_FromInt((int)result); | |
27498 | return resultobj; | |
27499 | fail: | |
27500 | return NULL; | |
27501 | } | |
27502 | ||
27503 | ||
27504 | static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27505 | PyObject *resultobj; | |
27506 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27507 | int result; | |
27508 | PyObject * obj0 = 0 ; | |
27509 | char *kwnames[] = { | |
27510 | (char *) "window", NULL | |
27511 | }; | |
27512 | ||
27513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
27514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27516 | { | |
27517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27518 | result = (int)wxDisplay::GetFromWindow(arg1); | |
27519 | ||
27520 | wxPyEndAllowThreads(__tstate); | |
27521 | if (PyErr_Occurred()) SWIG_fail; | |
27522 | } | |
27523 | resultobj = SWIG_FromInt((int)result); | |
27524 | return resultobj; | |
27525 | fail: | |
27526 | return NULL; | |
27527 | } | |
27528 | ||
27529 | ||
27530 | static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27531 | PyObject *resultobj; | |
27532 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27533 | bool result; | |
27534 | PyObject * obj0 = 0 ; | |
27535 | char *kwnames[] = { | |
27536 | (char *) "self", NULL | |
27537 | }; | |
27538 | ||
27539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
27540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27542 | { | |
27543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27544 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
27545 | ||
27546 | wxPyEndAllowThreads(__tstate); | |
27547 | if (PyErr_Occurred()) SWIG_fail; | |
27548 | } | |
27549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27550 | return resultobj; | |
27551 | fail: | |
27552 | return NULL; | |
27553 | } | |
27554 | ||
27555 | ||
27556 | static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27557 | PyObject *resultobj; | |
27558 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27559 | wxRect result; | |
27560 | PyObject * obj0 = 0 ; | |
27561 | char *kwnames[] = { | |
27562 | (char *) "self", NULL | |
27563 | }; | |
27564 | ||
27565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
27566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27568 | { | |
27569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27570 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
27571 | ||
27572 | wxPyEndAllowThreads(__tstate); | |
27573 | if (PyErr_Occurred()) SWIG_fail; | |
27574 | } | |
27575 | { | |
27576 | wxRect * resultptr; | |
27577 | resultptr = new wxRect((wxRect &) result); | |
27578 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
27579 | } | |
27580 | return resultobj; | |
27581 | fail: | |
27582 | return NULL; | |
27583 | } | |
27584 | ||
27585 | ||
27586 | static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27587 | PyObject *resultobj; | |
27588 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27589 | wxString result; | |
27590 | PyObject * obj0 = 0 ; | |
27591 | char *kwnames[] = { | |
27592 | (char *) "self", NULL | |
27593 | }; | |
27594 | ||
27595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
27596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27598 | { | |
27599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27600 | result = ((wxDisplay const *)arg1)->GetName(); | |
27601 | ||
27602 | wxPyEndAllowThreads(__tstate); | |
27603 | if (PyErr_Occurred()) SWIG_fail; | |
27604 | } | |
27605 | { | |
27606 | #if wxUSE_UNICODE | |
27607 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27608 | #else | |
27609 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27610 | #endif | |
27611 | } | |
27612 | return resultobj; | |
27613 | fail: | |
27614 | return NULL; | |
27615 | } | |
27616 | ||
27617 | ||
27618 | static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27619 | PyObject *resultobj; | |
27620 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27621 | bool result; | |
27622 | PyObject * obj0 = 0 ; | |
27623 | char *kwnames[] = { | |
27624 | (char *) "self", NULL | |
27625 | }; | |
27626 | ||
27627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
27628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27630 | { | |
27631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27632 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
27633 | ||
27634 | wxPyEndAllowThreads(__tstate); | |
27635 | if (PyErr_Occurred()) SWIG_fail; | |
27636 | } | |
27637 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27638 | return resultobj; | |
27639 | fail: | |
27640 | return NULL; | |
27641 | } | |
27642 | ||
27643 | ||
27644 | static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27645 | PyObject *resultobj; | |
27646 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27647 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
27648 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
27649 | PyObject *result; | |
27650 | PyObject * obj0 = 0 ; | |
27651 | PyObject * obj1 = 0 ; | |
27652 | char *kwnames[] = { | |
27653 | (char *) "self",(char *) "mode", NULL | |
27654 | }; | |
27655 | ||
27656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
27657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27659 | if (obj1) { | |
27660 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27661 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27662 | SWIG_fail; | |
27663 | if (arg2 == NULL) { | |
27664 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27665 | SWIG_fail; | |
27666 | } | |
27667 | } | |
27668 | { | |
27669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27670 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
27671 | ||
27672 | wxPyEndAllowThreads(__tstate); | |
27673 | if (PyErr_Occurred()) SWIG_fail; | |
27674 | } | |
27675 | resultobj = result; | |
27676 | return resultobj; | |
27677 | fail: | |
27678 | return NULL; | |
27679 | } | |
27680 | ||
27681 | ||
27682 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27683 | PyObject *resultobj; | |
27684 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27685 | wxVideoMode result; | |
27686 | PyObject * obj0 = 0 ; | |
27687 | char *kwnames[] = { | |
27688 | (char *) "self", NULL | |
27689 | }; | |
27690 | ||
27691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
27692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27694 | { | |
27695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27696 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
27697 | ||
27698 | wxPyEndAllowThreads(__tstate); | |
27699 | if (PyErr_Occurred()) SWIG_fail; | |
27700 | } | |
27701 | { | |
27702 | wxVideoMode * resultptr; | |
27703 | resultptr = new wxVideoMode((wxVideoMode &) result); | |
27704 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); | |
27705 | } | |
27706 | return resultobj; | |
27707 | fail: | |
27708 | return NULL; | |
27709 | } | |
27710 | ||
27711 | ||
27712 | static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27713 | PyObject *resultobj; | |
27714 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27715 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
27716 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
27717 | bool result; | |
27718 | PyObject * obj0 = 0 ; | |
27719 | PyObject * obj1 = 0 ; | |
27720 | char *kwnames[] = { | |
27721 | (char *) "self",(char *) "mode", NULL | |
27722 | }; | |
27723 | ||
27724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
27725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27727 | if (obj1) { | |
27728 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27729 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27730 | SWIG_fail; | |
27731 | if (arg2 == NULL) { | |
27732 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27733 | SWIG_fail; | |
27734 | } | |
27735 | } | |
27736 | { | |
27737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27738 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
27739 | ||
27740 | wxPyEndAllowThreads(__tstate); | |
27741 | if (PyErr_Occurred()) SWIG_fail; | |
27742 | } | |
27743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27744 | return resultobj; | |
27745 | fail: | |
27746 | return NULL; | |
27747 | } | |
27748 | ||
27749 | ||
27750 | static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27751 | PyObject *resultobj; | |
27752 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27753 | PyObject * obj0 = 0 ; | |
27754 | char *kwnames[] = { | |
27755 | (char *) "self", NULL | |
27756 | }; | |
27757 | ||
27758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
27759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27761 | { | |
27762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27763 | (arg1)->ResetMode(); | |
27764 | ||
27765 | wxPyEndAllowThreads(__tstate); | |
27766 | if (PyErr_Occurred()) SWIG_fail; | |
27767 | } | |
27768 | Py_INCREF(Py_None); resultobj = Py_None; | |
27769 | return resultobj; | |
27770 | fail: | |
27771 | return NULL; | |
27772 | } | |
27773 | ||
27774 | ||
27775 | static PyObject * Display_swigregister(PyObject *self, PyObject *args) { | |
27776 | PyObject *obj; | |
27777 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27778 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
27779 | Py_INCREF(obj); | |
27780 | return Py_BuildValue((char *)""); | |
27781 | } | |
d14a1e28 RD |
27782 | static PyMethodDef SwigMethods[] = { |
27783 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
27784 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
27785 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
27786 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
27787 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
27788 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
27789 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
27790 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
27791 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
27792 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
27793 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
27794 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
27795 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
27796 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
27797 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
27798 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
27799 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
27800 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, | |
27801 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
27802 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
27803 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
27804 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
27805 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
27806 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
27807 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
27808 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
27809 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
27810 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
27811 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
27812 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
27813 | { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, | |
27814 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
27815 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
27816 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
27817 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
27818 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
27819 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
27820 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
27821 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
27822 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
27823 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
27824 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
27825 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
27826 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
27827 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
27828 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
27829 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
27830 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
27831 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
27832 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
27833 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
27834 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
27835 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
27836 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
27837 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
27838 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
27839 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
27840 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
27841 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
27842 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
27843 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
27844 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
27845 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
27846 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
27847 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
27848 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
27849 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
d03fd34d | 27850 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
27851 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, |
27852 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
27853 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
27854 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
27855 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
27856 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
27857 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
27858 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
27859 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
27860 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
27861 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
27862 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
27863 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
27864 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
27865 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
27866 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
27867 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
27868 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 27869 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 27870 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 27871 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 27872 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
27873 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
27874 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
27875 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
27876 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
27877 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
27878 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
27879 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
27880 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
27881 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
27882 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
27883 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
27884 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
27885 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
27886 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
27887 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
27888 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
27889 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
27890 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
27891 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
27892 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
27893 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
27894 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
27895 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
27896 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
27897 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
27898 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
27899 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
27900 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
27901 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
27902 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
27903 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
27904 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
27905 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
27906 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
27907 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
27908 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
27909 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
27910 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
27911 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
27912 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
27913 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
27914 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
27915 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
27916 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
27917 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
27918 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
27919 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
27920 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
27921 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
27922 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
27923 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
27924 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
27925 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27926 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
27927 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
27928 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
27929 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
27930 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
44127b65 | 27931 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
27932 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, |
27933 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, | |
27934 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
27935 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, |
27936 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
27937 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
f0983263 | 27938 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
27939 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, |
27940 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
27941 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
27942 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
27943 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
27944 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
27945 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
27946 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
27947 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
27948 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
27949 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
27950 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
27951 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
27952 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
27953 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
27954 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
27955 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
27956 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
27957 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
27958 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
27959 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
27960 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
27961 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
27962 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
27963 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
27964 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
27965 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
27966 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
27967 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
27968 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
27969 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
27970 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
27971 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
27972 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
27973 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
27974 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
27975 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
27976 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
27977 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
27978 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
27979 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
27980 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
27981 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
27982 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
27983 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
27984 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
27985 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
27986 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
27987 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
27988 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
27989 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
27990 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
27991 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
27992 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
27993 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
27994 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
27995 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
27996 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
27997 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
27998 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
27999 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
28000 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
28001 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28002 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
28003 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
28004 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
f0983263 | 28005 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, |
d14a1e28 RD |
28006 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, |
28007 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
28008 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28009 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28010 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
28011 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
28012 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28013 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
28014 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
28015 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28016 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
28017 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
28018 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28019 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
28020 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
28021 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
28022 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
28023 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
28024 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
28025 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
28026 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
28027 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
28028 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28029 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28030 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
28031 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
28032 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
28033 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
28034 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
28035 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
28036 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
28037 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
28038 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
28039 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
28040 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28041 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28042 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28043 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28044 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28045 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28046 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
28047 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
28048 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
28049 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28050 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28051 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28052 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28053 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
28054 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
28055 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
28056 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
28057 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
28058 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
28059 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
28060 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
28061 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
28062 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
28063 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
28064 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
28065 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
28066 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
28067 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
28068 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
28069 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
28070 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
28071 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
28072 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
28073 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
28074 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
28075 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
28076 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
28077 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
28078 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
28079 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
28080 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
28081 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
28082 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
28083 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
28084 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
28085 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
28086 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
28087 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
28088 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
28089 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
28090 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
28091 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
28092 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
28093 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
28094 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
28095 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
28096 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28097 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28098 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28099 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28100 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28101 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28102 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28103 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28104 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28105 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28106 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
28107 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
28108 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
28109 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
28110 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
28111 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
28112 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
4e760a36 RD |
28113 | { (char *)"new_Sound", _wrap_new_Sound, METH_VARARGS }, |
28114 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS }, | |
28115 | { (char *)"Sound_Create", _wrap_Sound_Create, METH_VARARGS }, | |
28116 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28117 | { (char *)"Sound_Play", _wrap_Sound_Play, METH_VARARGS }, | |
28118 | { (char *)"Sound_PlaySound", _wrap_Sound_PlaySound, METH_VARARGS }, | |
28119 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS }, | |
28120 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28121 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, |
28122 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
28123 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
28124 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28125 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28126 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28127 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28128 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28129 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28130 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28131 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28132 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28133 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
28134 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
28135 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
28136 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
28137 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28138 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28139 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28140 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28141 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28142 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28143 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
28144 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28145 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28146 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28147 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
28148 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
28149 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
28150 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28151 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
28152 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
28153 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
28154 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28155 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
28156 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
28157 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
28158 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28159 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
28160 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28161 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
28162 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
28163 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
28164 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28165 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28166 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
28167 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28168 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
28169 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
28170 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
28171 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
28172 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28173 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
41f1cec7 | 28174 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28175 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, |
28176 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
28177 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
28178 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
28179 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
28180 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28181 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
28182 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
28183 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
28184 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
28185 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
28186 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
28187 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
28188 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
28189 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
28190 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
28191 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28192 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
28193 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
28194 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
28195 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
28196 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
28197 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
28198 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
28199 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
28200 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
28201 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28202 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
28203 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
28204 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
28205 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
28206 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 28207 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, |
328fcd84 | 28208 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28209 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, |
28210 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
28211 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28212 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28213 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28214 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28215 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28216 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28217 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28218 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28219 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, |
28220 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
28221 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
28222 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28223 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28224 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
328fcd84 RD |
28225 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, |
28226 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
28227 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
28228 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28229 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, |
28230 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28231 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28232 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
28233 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
28234 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
28235 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
28236 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
28237 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
28238 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
28239 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
28240 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
28241 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
28242 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
28243 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
28244 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
28245 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
28246 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
28247 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
28248 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
28249 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28250 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28251 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
28252 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
28253 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
28254 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28255 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
28256 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28257 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28258 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
28259 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
28260 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
28261 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
28262 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28263 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
28264 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
28265 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28266 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28267 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28268 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28269 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28270 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28271 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28272 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28273 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28274 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28275 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28276 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28277 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
28278 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
28279 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28280 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28281 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28282 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28283 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28284 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28285 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28286 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
28287 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
28288 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28289 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28290 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
28291 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
28292 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
28293 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28294 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
28295 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
28296 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28297 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
28298 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28299 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
28300 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28301 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28302 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28303 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28304 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28305 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
28306 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
28307 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28308 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
28309 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
28310 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
28311 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
28312 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
28313 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
28314 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
28315 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
28316 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
28317 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
28318 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
28319 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28320 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
28321 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
28322 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
28323 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
28324 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
28325 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
28326 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
28327 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
28328 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
28329 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
28330 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
28331 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
28332 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
28333 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
28334 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
28335 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
28336 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
28337 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
28338 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
28339 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
28340 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
28341 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
28342 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
28343 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
28344 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
28345 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
28346 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
28347 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28348 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28349 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28350 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28351 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28352 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28353 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28354 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28355 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28356 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28357 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
28358 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28359 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28360 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28361 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28362 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28363 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28364 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28365 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28366 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
28367 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
28368 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
28369 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
28370 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28371 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28372 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
28373 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
28374 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
28375 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28376 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
28377 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
28378 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28379 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28380 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
28381 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
28382 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
28383 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
28384 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
28385 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
28386 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28387 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28388 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28389 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28390 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28391 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28392 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
28393 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
28394 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
28395 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
28396 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
28397 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28398 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28399 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
28400 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
28401 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28402 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28403 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28404 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
28405 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28406 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28407 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28408 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28409 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28410 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28411 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28412 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28413 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28414 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28415 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28416 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28417 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28418 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28419 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
28420 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
28421 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
28422 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
28423 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
28424 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28425 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28426 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28427 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
28428 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
28429 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
28430 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
28431 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
28432 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
28433 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
28434 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
28435 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
28436 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
28437 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28438 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
28439 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
28440 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
28441 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28442 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
28443 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28444 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
28445 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
28446 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, | |
28447 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28448 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28449 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
28450 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
28451 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
28452 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
28453 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28454 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
28455 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
28456 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
28457 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
28458 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28459 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28460 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
28461 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28462 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28463 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28464 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
28465 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28466 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28467 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
28468 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28469 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
28470 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS }, | |
28471 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, | |
28472 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28473 | { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS }, | |
28474 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28475 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
28476 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28477 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
28478 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28479 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
28480 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
28481 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
28482 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
83448d71 RD |
28483 | { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS }, |
28484 | { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28485 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, |
28486 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
28487 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28488 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28489 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28490 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28491 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28492 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28493 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
28494 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
28495 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
2f4c0a16 | 28496 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28497 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
28498 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28499 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28500 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28501 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28502 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28503 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28504 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28505 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28506 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
28507 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28508 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28509 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28510 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28511 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28512 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28513 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28514 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
28515 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28516 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28517 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28518 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28519 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28520 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28521 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28522 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
28523 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28524 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28525 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
28526 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
28527 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
28528 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
28529 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28530 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28531 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28532 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
28533 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28534 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
28535 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, | |
28536 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28537 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28538 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
28539 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
fe763115 RD |
28540 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS }, |
28541 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS }, | |
28542 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS }, | |
28543 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
28544 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
28545 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
28546 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28547 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28548 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28549 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS }, | |
28550 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS }, | |
28551 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS }, | |
28552 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS }, | |
28553 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS }, | |
28554 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS }, | |
28555 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS }, | |
28556 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS }, | |
28557 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS }, | |
28558 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS }, | |
28559 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS }, | |
28560 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28561 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
28562 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
28563 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28564 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS }, | |
28565 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS }, | |
28566 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS }, | |
28567 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS }, | |
28568 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS }, | |
28569 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS }, | |
28570 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS }, | |
28571 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28572 | { NULL, NULL } |
28573 | }; | |
28574 | ||
28575 | ||
28576 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
28577 | ||
28578 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
28579 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
28580 | } | |
28581 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
28582 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
28583 | } | |
28584 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
28585 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
28586 | } | |
28587 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
28588 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
28589 | } | |
28590 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
28591 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
28592 | } | |
28593 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
28594 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
28595 | } | |
28596 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
28597 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
28598 | } | |
28599 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
28600 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
28601 | } | |
28602 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
28603 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
28604 | } | |
28605 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
28606 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
28607 | } | |
28608 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
28609 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
28610 | } | |
28611 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
28612 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
28613 | } | |
28614 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
28615 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
28616 | } | |
28617 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
28618 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
28619 | } | |
28620 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
28621 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
28622 | } | |
28623 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
28624 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
28625 | } | |
28626 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
28627 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
28628 | } | |
28629 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
28630 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
28631 | } | |
28632 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
28633 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
28634 | } | |
28635 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
28636 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
28637 | } | |
28638 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
28639 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
28640 | } | |
28641 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
28642 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
28643 | } | |
28644 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
28645 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
28646 | } | |
28647 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
28648 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
28649 | } | |
28650 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
28651 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
28652 | } | |
28653 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
28654 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
28655 | } | |
28656 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
28657 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
28658 | } | |
28659 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
28660 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
28661 | } | |
28662 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
28663 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
28664 | } | |
28665 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
28666 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
28667 | } | |
28668 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
28669 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
28670 | } | |
28671 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
28672 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
28673 | } | |
28674 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
28675 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
28676 | } | |
28677 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
28678 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
28679 | } | |
28680 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
28681 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
28682 | } | |
28683 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
28684 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
28685 | } | |
28686 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
28687 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
28688 | } | |
28689 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
28690 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
28691 | } | |
28692 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
28693 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
28694 | } | |
28695 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
28696 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
28697 | } | |
28698 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
28699 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
28700 | } | |
28701 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
28702 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
28703 | } | |
28704 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
28705 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
28706 | } | |
28707 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
28708 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
28709 | } | |
28710 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
28711 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
28712 | } | |
28713 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
28714 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
28715 | } | |
28716 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
28717 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
28718 | } | |
28719 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
28720 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
28721 | } | |
28722 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
28723 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
28724 | } | |
28725 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
28726 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
28727 | } | |
28728 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
28729 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
28730 | } | |
28731 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
28732 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
28733 | } | |
28734 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
28735 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
28736 | } | |
28737 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
28738 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
28739 | } | |
28740 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
28741 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
28742 | } | |
28743 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28744 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
28745 | } | |
28746 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28747 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
28748 | } | |
28749 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28750 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
28751 | } | |
28752 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28753 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
28754 | } | |
28755 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28756 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
28757 | } | |
28758 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28759 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
28760 | } | |
28761 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28762 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
28763 | } | |
28764 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
28765 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
28766 | } | |
28767 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
28768 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
28769 | } | |
28770 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
28771 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
28772 | } | |
28773 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
28774 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
28775 | } | |
28776 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
28777 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
28778 | } | |
28779 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
28780 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
28781 | } | |
28782 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
28783 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
28784 | } | |
28785 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
28786 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
28787 | } | |
28788 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
28789 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
28790 | } | |
28791 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
28792 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
28793 | } | |
28794 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
28795 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
28796 | } | |
28797 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
28798 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
28799 | } | |
28800 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
28801 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
28802 | } | |
28803 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
28804 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
28805 | } | |
28806 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
28807 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
28808 | } | |
28809 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
28810 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
28811 | } | |
28812 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
28813 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
28814 | } | |
28815 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
28816 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
28817 | } | |
28818 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
28819 | return (void *)((wxObject *) ((wxSizer *) x)); | |
28820 | } | |
28821 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
28822 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
28823 | } | |
28824 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
28825 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
28826 | } | |
28827 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
28828 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
28829 | } | |
28830 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
28831 | return (void *)((wxObject *) ((wxEvent *) x)); | |
28832 | } | |
28833 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
28834 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
28835 | } | |
28836 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
28837 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
28838 | } | |
28839 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
28840 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
28841 | } | |
28842 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
28843 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
28844 | } | |
28845 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
28846 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
28847 | } | |
28848 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
28849 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
28850 | } | |
28851 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
28852 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
28853 | } | |
28854 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
28855 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
28856 | } | |
28857 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
28858 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
28859 | } | |
28860 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
28861 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
28862 | } | |
28863 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
28864 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
28865 | } | |
28866 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
28867 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
28868 | } | |
28869 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
28870 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
28871 | } | |
28872 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
28873 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
28874 | } | |
28875 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
28876 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
28877 | } | |
28878 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
28879 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
28880 | } | |
28881 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
28882 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
28883 | } | |
28884 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
28885 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
28886 | } | |
28887 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
28888 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
28889 | } | |
28890 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
28891 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
28892 | } | |
28893 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
28894 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
28895 | } | |
28896 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
28897 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
28898 | } | |
28899 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
28900 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
28901 | } | |
28902 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
28903 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
28904 | } | |
28905 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
28906 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
28907 | } | |
28908 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
28909 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
28910 | } | |
28911 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
28912 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
28913 | } | |
28914 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
28915 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
28916 | } | |
28917 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
28918 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
28919 | } | |
28920 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
28921 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
28922 | } | |
28923 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
28924 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
28925 | } | |
28926 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
28927 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
28928 | } | |
28929 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
28930 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
28931 | } | |
28932 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
28933 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
28934 | } | |
28935 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
28936 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
28937 | } | |
28938 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
28939 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
28940 | } | |
28941 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
28942 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
28943 | } | |
28944 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
28945 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
28946 | } | |
28947 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
28948 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
28949 | } | |
28950 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
28951 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
28952 | } | |
28953 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
28954 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
28955 | } | |
41f1cec7 RD |
28956 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
28957 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
28958 | } | |
d14a1e28 RD |
28959 | static void *_p_wxImageTo_p_wxObject(void *x) { |
28960 | return (void *)((wxObject *) ((wxImage *) x)); | |
28961 | } | |
28962 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
28963 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
28964 | } | |
28965 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
28966 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
28967 | } | |
28968 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
28969 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
28970 | } | |
28971 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
28972 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
28973 | } | |
28974 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
28975 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
28976 | } | |
28977 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
28978 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
28979 | } | |
28980 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
28981 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
28982 | } | |
28983 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
28984 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
28985 | } | |
28986 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
28987 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
28988 | } | |
28989 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
28990 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
28991 | } | |
28992 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
28993 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
28994 | } | |
28995 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
28996 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
28997 | } | |
28998 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
28999 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
29000 | } | |
29001 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
29002 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
29003 | } | |
29004 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
29005 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
29006 | } | |
29007 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
29008 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
29009 | } | |
29010 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
29011 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
29012 | } | |
29013 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
29014 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
29015 | } | |
29016 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
29017 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29018 | } | |
29019 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
29020 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
29021 | } | |
29022 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
29023 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
29024 | } | |
29025 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
29026 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
29027 | } | |
29028 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
29029 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29030 | } | |
29031 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
29032 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
29033 | } | |
29034 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
29035 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29036 | } | |
29037 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
29038 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
29039 | } | |
29040 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
29041 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
29042 | } | |
29043 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
29044 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
29045 | } | |
29046 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
29047 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
29048 | } | |
29049 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
29050 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
29051 | } | |
29052 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
29053 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
29054 | } | |
29055 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
29056 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
29057 | } | |
29058 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
29059 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
29060 | } | |
29061 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
29062 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
29063 | } | |
29064 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
29065 | return (void *)((wxWindow *) ((wxControl *) x)); | |
29066 | } | |
29067 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
29068 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
29069 | } | |
29070 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
29071 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
29072 | } | |
29073 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
29074 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
29075 | } | |
29076 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
29077 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
29078 | } | |
2f4c0a16 RD |
29079 | 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}}; |
29080 | 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}}; | |
29081 | 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}}; | |
29082 | 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}}; | |
29083 | 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}}; | |
29084 | 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}}; | |
29085 | 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}}; | |
29086 | 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}}; | |
29087 | 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}}; | |
fe763115 | 29088 | 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}}; |
2f4c0a16 RD |
29089 | 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}}; |
29090 | 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}}; | |
29091 | 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}}; | |
29092 | 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}}; | |
29093 | 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}}; | |
29094 | 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}}; | |
29095 | 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}}; | |
29096 | 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}}; | |
29097 | 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}}; | |
29098 | 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}}; | |
29099 | 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}}; | |
29100 | 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}}; | |
29101 | 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}}; | |
29102 | 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}}; | |
29103 | 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}}; | |
29104 | 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}}; | |
29105 | 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}}; | |
29106 | 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}}; | |
29107 | 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}}; | |
29108 | 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}}; | |
29109 | 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}}; | |
29110 | 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}}; | |
29111 | 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}}; | |
29112 | 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}}; | |
29113 | 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}}; | |
29114 | 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}}; | |
29115 | 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}}; | |
29116 | 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}}; | |
29117 | 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}}; | |
29118 | 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}}; | |
29119 | 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}}; | |
29120 | 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}}; | |
29121 | 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}}; | |
29122 | 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}}; | |
29123 | 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}}; | |
29124 | 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}}; | |
fe763115 | 29125 | 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}}; |
2f4c0a16 RD |
29126 | 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}}; |
29127 | 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}}; | |
29128 | 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}}; | |
29129 | 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}}; | |
29130 | 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}}; | |
29131 | 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}}; | |
29132 | 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}}; | |
29133 | 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}}; | |
29134 | 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}}; | |
29135 | 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}}; | |
29136 | 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}}; | |
29137 | 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}}; | |
29138 | 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}}; | |
29139 | 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}}; | |
29140 | 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}}; | |
29141 | 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}}; | |
29142 | 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}}; | |
29143 | 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}}; | |
29144 | 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}}; | |
29145 | 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}}; | |
29146 | 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}}; | |
29147 | 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}}; | |
29148 | 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}}; | |
29149 | 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}}; | |
29150 | 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}}; | |
29151 | 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}}; | |
29152 | 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}}; | |
29153 | 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}}; | |
29154 | 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}}; | |
29155 | 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}}; | |
29156 | 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}}; | |
29157 | 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}}; | |
29158 | 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}}; | |
29159 | 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}}; | |
29160 | 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}}; | |
29161 | 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}}; | |
29162 | static swig_type_info _swigt__p_wxByte[] = {{"_p_wxByte", 0, "wxByte *", 0, 0, 0, 0},{"_p_wxByte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29163 | 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}}; | |
29164 | 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}}; | |
29165 | 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}}; | |
d14a1e28 RD |
29166 | |
29167 | static swig_type_info *swig_types_initial[] = { | |
29168 | _swigt__p_wxLogChain, | |
29169 | _swigt__p_wxMutexGuiLocker, | |
83448d71 | 29170 | _swigt__p_wxMetafile, |
d14a1e28 RD |
29171 | _swigt__p_wxFileHistory, |
29172 | _swigt__p_wxLog, | |
29173 | _swigt__p_wxDateTime__TimeZone, | |
29174 | _swigt__p_wxMenu, | |
29175 | _swigt__p_wxEvent, | |
29176 | _swigt__p_wxConfigBase, | |
fe763115 | 29177 | _swigt__p_wxDisplay, |
d14a1e28 RD |
29178 | _swigt__p_wxFileType, |
29179 | _swigt__p_wxLogGui, | |
29180 | _swigt__p_wxFont, | |
29181 | _swigt__p_wxDataFormat, | |
29182 | _swigt__p_wxTimerEvent, | |
29183 | _swigt__p_wxCaret, | |
29184 | _swigt__p_int, | |
29185 | _swigt__p_wxSize, | |
29186 | _swigt__p_wxClipboard, | |
29187 | _swigt__p_wxStopWatch, | |
29188 | _swigt__p_wxDC, | |
29189 | _swigt__p_wxClipboardLocker, | |
29190 | _swigt__p_wxIcon, | |
29191 | _swigt__p_wxLogStderr, | |
29192 | _swigt__p_wxLogTextCtrl, | |
29193 | _swigt__p_wxTextCtrl, | |
29194 | _swigt__p_wxBusyCursor, | |
d14a1e28 RD |
29195 | _swigt__p_wxPyTextDataObject, |
29196 | _swigt__p_wxBitmapDataObject, | |
29197 | _swigt__p_wxTextDataObject, | |
29198 | _swigt__p_wxDataObject, | |
4e760a36 | 29199 | _swigt__p_wxPyBitmapDataObject, |
8edf1c75 | 29200 | _swigt__p_wxFileDataObject, |
d14a1e28 RD |
29201 | _swigt__p_wxCustomDataObject, |
29202 | _swigt__p_wxURLDataObject, | |
29203 | _swigt__p_wxMetafileDataObject, | |
4e760a36 | 29204 | _swigt__p_wxSound, |
d14a1e28 RD |
29205 | _swigt__p_wxTimerRunner, |
29206 | _swigt__p_wxLogWindow, | |
29207 | _swigt__p_wxTimeSpan, | |
29208 | _swigt__p_wxArrayString, | |
29209 | _swigt__p_wxWindowDisabler, | |
29210 | _swigt__p_wxToolTip, | |
29211 | _swigt__p_wxDataObjectComposite, | |
29212 | _swigt__p_wxFileConfig, | |
29213 | _swigt__p_wxSystemSettings, | |
fe763115 | 29214 | _swigt__p_wxVideoMode, |
d14a1e28 RD |
29215 | _swigt__p_wxPyDataObjectSimple, |
29216 | _swigt__p_wxDataObjectSimple, | |
29217 | _swigt__p_wxEvtHandler, | |
29218 | _swigt__p_wxRect, | |
8edf1c75 | 29219 | _swigt__p_char, |
d14a1e28 RD |
29220 | _swigt__p_wxSingleInstanceChecker, |
29221 | _swigt__p_wxFileTypeInfo, | |
29222 | _swigt__p_wxFrame, | |
29223 | _swigt__p_wxTimer, | |
29224 | _swigt__p_wxMimeTypesManager, | |
29225 | _swigt__p_wxPyArtProvider, | |
29226 | _swigt__p_wxPyTipProvider, | |
29227 | _swigt__p_wxTipProvider, | |
29228 | _swigt__p_wxJoystick, | |
29229 | _swigt__p_wxSystemOptions, | |
29230 | _swigt__p_wxPoint, | |
29231 | _swigt__p_wxJoystickEvent, | |
29232 | _swigt__p_wxCursor, | |
29233 | _swigt__p_wxObject, | |
29234 | _swigt__p_wxOutputStream, | |
29235 | _swigt__p_wxDateTime, | |
29236 | _swigt__p_wxPyDropSource, | |
29237 | _swigt__p_wxWindow, | |
29238 | _swigt__p_wxString, | |
29239 | _swigt__p_wxPyProcess, | |
29240 | _swigt__p_wxBitmap, | |
29241 | _swigt__p_wxConfig, | |
29242 | _swigt__p_wxChar, | |
29243 | _swigt__p_wxBusyInfo, | |
29244 | _swigt__p_wxPyDropTarget, | |
29245 | _swigt__p_wxPyTextDropTarget, | |
29246 | _swigt__p_wxPyFileDropTarget, | |
29247 | _swigt__p_wxProcessEvent, | |
29248 | _swigt__p_wxPyLog, | |
29249 | _swigt__p_wxLogNull, | |
29250 | _swigt__p_wxColour, | |
4e760a36 | 29251 | _swigt__p_wxByte, |
d14a1e28 RD |
29252 | _swigt__p_wxConfigPathChanger, |
29253 | _swigt__p_wxPyTimer, | |
29254 | _swigt__p_wxDateSpan, | |
29255 | 0 | |
29256 | }; | |
29257 | ||
29258 | ||
29259 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
29260 | ||
29261 | static swig_const_info swig_const_table[] = { | |
2f4c0a16 RD |
29262 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, |
29263 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
29264 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
29265 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
29266 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
d14a1e28 RD |
29267 | {0}}; |
29268 | ||
29269 | #ifdef __cplusplus | |
29270 | } | |
29271 | #endif | |
29272 | ||
29273 | #ifdef __cplusplus | |
29274 | extern "C" | |
29275 | #endif | |
29276 | SWIGEXPORT(void) SWIG_init(void) { | |
29277 | static PyObject *SWIG_globals = 0; | |
29278 | static int typeinit = 0; | |
29279 | PyObject *m, *d; | |
29280 | int i; | |
29281 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
29282 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
29283 | d = PyModule_GetDict(m); | |
29284 | ||
29285 | if (!typeinit) { | |
29286 | for (i = 0; swig_types_initial[i]; i++) { | |
29287 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
29288 | } | |
29289 | typeinit = 1; | |
29290 | } | |
29291 | SWIG_InstallConstants(d,swig_const_table); | |
29292 | ||
2f4c0a16 RD |
29293 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT)); |
29294 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT)); | |
29295 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT)); | |
29296 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT)); | |
29297 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
29298 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE)); | |
29299 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT)); | |
29300 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT)); | |
29301 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT)); | |
29302 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR)); | |
29303 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND)); | |
29304 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP)); | |
29305 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
29306 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
29307 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU)); | |
29308 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW)); | |
29309 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME)); | |
29310 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT)); | |
29311 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT)); | |
29312 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
29313 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
29314 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
29315 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE)); | |
29316 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT)); | |
29317 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
29318 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE)); | |
29319 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE)); | |
29320 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW)); | |
29321 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW)); | |
29322 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT)); | |
29323 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT)); | |
29324 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
29325 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
29326 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT)); | |
29327 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
29328 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT)); | |
29329 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW)); | |
29330 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT)); | |
29331 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT)); | |
29332 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK)); | |
29333 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX)); | |
29334 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT)); | |
29335 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
29336 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
29337 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT)); | |
29338 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR)); | |
29339 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX)); | |
29340 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS)); | |
29341 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X)); | |
29342 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y)); | |
29343 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X)); | |
29344 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y)); | |
29345 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X)); | |
29346 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y)); | |
29347 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X)); | |
29348 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y)); | |
29349 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X)); | |
29350 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y)); | |
29351 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X)); | |
29352 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y)); | |
29353 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X)); | |
29354 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X)); | |
29355 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y)); | |
29356 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X)); | |
29357 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y)); | |
29358 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X)); | |
29359 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y)); | |
29360 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X)); | |
29361 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y)); | |
29362 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X)); | |
29363 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y)); | |
29364 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X)); | |
29365 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y)); | |
29366 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y)); | |
29367 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X)); | |
29368 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X)); | |
29369 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y)); | |
29370 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y)); | |
29371 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y)); | |
29372 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y)); | |
29373 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT)); | |
29374 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT)); | |
29375 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS)); | |
29376 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS)); | |
29377 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
29378 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME)); | |
29379 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE)); | |
29380 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY)); | |
29381 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA)); | |
29382 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL)); | |
29383 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP)); | |
d03fd34d RD |
29384 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
29385 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
29386 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
29387 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
2f4c0a16 RD |
29388 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF)); |
29389 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT)); | |
29390 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS)); | |
29391 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT)); | |
d14a1e28 | 29392 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); |
2f4c0a16 RD |
29393 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError)); |
29394 | PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error)); | |
29395 | PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning)); | |
29396 | PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message)); | |
29397 | PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status)); | |
29398 | PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info)); | |
29399 | PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug)); | |
29400 | PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace)); | |
29401 | PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress)); | |
29402 | PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User)); | |
29403 | PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max)); | |
29404 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); | |
29405 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); | |
29406 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
29407 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
29408 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
29409 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001)); | |
29410 | PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002)); | |
29411 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004)); | |
29412 | PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008)); | |
29413 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100)); | |
29414 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT)); | |
29415 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT)); | |
29416 | PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK)); | |
29417 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL)); | |
29418 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED)); | |
29419 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS)); | |
29420 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR)); | |
29421 | PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE)); | |
29422 | PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP)); | |
29423 | PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT)); | |
29424 | PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT)); | |
29425 | PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL)); | |
29426 | PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP)); | |
29427 | PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT)); | |
29428 | PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT)); | |
29429 | PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT)); | |
29430 | PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE)); | |
29431 | PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL)); | |
29432 | PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS)); | |
29433 | PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV)); | |
29434 | PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS)); | |
29435 | PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE)); | |
29436 | PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM)); | |
29437 | PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM)); | |
d14a1e28 | 29438 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); |
2f4c0a16 RD |
29439 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC)); |
29440 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC)); | |
29441 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE)); | |
29442 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER)); | |
d14a1e28 RD |
29443 | |
29444 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
29445 | ||
2f4c0a16 RD |
29446 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1)); |
29447 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2)); | |
29448 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY)); | |
29449 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1)); | |
29450 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2)); | |
29451 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3)); | |
29452 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4)); | |
d14a1e28 RD |
29453 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); |
29454 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
29455 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
29456 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
2f4c0a16 RD |
29457 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC)); |
29458 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC)); | |
29459 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP)); | |
29460 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD)); | |
29461 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE)); | |
29462 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE)); | |
29463 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME)); | |
29464 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL)); | |
d14a1e28 RD |
29465 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); |
29466 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
29467 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
29468 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
29469 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
29470 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
29471 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
29472 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
29473 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
29474 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
29475 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
29476 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
29477 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
29478 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
29479 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
29480 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
29481 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
29482 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
29483 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
29484 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
29485 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
29486 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
29487 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
29488 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
29489 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
29490 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
29491 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
29492 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
29493 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
29494 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
29495 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
29496 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
29497 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
29498 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
29499 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
29500 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
29501 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
29502 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
29503 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
29504 | ||
29505 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
29506 | ||
2f4c0a16 RD |
29507 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE)); |
29508 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE)); | |
29509 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH)); | |
29510 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
29511 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown)); | |
29512 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String)); | |
29513 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean)); | |
29514 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer)); | |
29515 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float)); | |
d03fd34d RD |
29516 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); |
29517 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
2f4c0a16 RD |
29518 | PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local)); |
29519 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12)); | |
29520 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11)); | |
29521 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10)); | |
29522 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9)); | |
29523 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8)); | |
29524 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7)); | |
29525 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6)); | |
29526 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5)); | |
29527 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4)); | |
29528 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3)); | |
29529 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2)); | |
29530 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1)); | |
29531 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0)); | |
29532 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1)); | |
29533 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2)); | |
29534 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3)); | |
29535 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4)); | |
29536 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5)); | |
29537 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6)); | |
29538 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7)); | |
29539 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8)); | |
29540 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9)); | |
29541 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10)); | |
29542 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11)); | |
29543 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12)); | |
29544 | PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET)); | |
29545 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST)); | |
29546 | PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET)); | |
29547 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST)); | |
29548 | PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET)); | |
29549 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST)); | |
29550 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK)); | |
29551 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD)); | |
29552 | PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST)); | |
29553 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT)); | |
29554 | PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST)); | |
29555 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT)); | |
29556 | PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST)); | |
29557 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT)); | |
29558 | PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST)); | |
29559 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT)); | |
29560 | PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST)); | |
29561 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT)); | |
29562 | PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST)); | |
29563 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST)); | |
29564 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT)); | |
29565 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST)); | |
29566 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST)); | |
29567 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST)); | |
29568 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST)); | |
29569 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC)); | |
29570 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian)); | |
29571 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian)); | |
29572 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown)); | |
29573 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard)); | |
29574 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska)); | |
29575 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania)); | |
29576 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria)); | |
29577 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen)); | |
29578 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg)); | |
29579 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol)); | |
29580 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia)); | |
29581 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria)); | |
29582 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium)); | |
29583 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria)); | |
29584 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1)); | |
29585 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2)); | |
29586 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3)); | |
29587 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada)); | |
29588 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China)); | |
29589 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1)); | |
29590 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2)); | |
29591 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia)); | |
29592 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark)); | |
29593 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt)); | |
29594 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia)); | |
29595 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland)); | |
29596 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France)); | |
29597 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace)); | |
29598 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine)); | |
29599 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg)); | |
29600 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany)); | |
29601 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic)); | |
29602 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia)); | |
29603 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant)); | |
29604 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain)); | |
29605 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece)); | |
29606 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary)); | |
29607 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland)); | |
29608 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy)); | |
29609 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan)); | |
29610 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1)); | |
29611 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2)); | |
29612 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3)); | |
29613 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia)); | |
29614 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania)); | |
29615 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg)); | |
29616 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands)); | |
29617 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen)); | |
29618 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
29619 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
29620 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland)); | |
29621 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway)); | |
29622 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland)); | |
29623 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal)); | |
29624 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania)); | |
29625 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia)); | |
29626 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland)); | |
29627 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain)); | |
29628 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden)); | |
29629 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland)); | |
29630 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic)); | |
29631 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant)); | |
29632 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey)); | |
29633 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA)); | |
29634 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales)); | |
29635 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia)); | |
29636 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown)); | |
29637 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default)); | |
29638 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start)); | |
29639 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC)); | |
29640 | PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France)); | |
29641 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany)); | |
29642 | PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK)); | |
29643 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End)); | |
29644 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia)); | |
29645 | PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA)); | |
29646 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan)); | |
29647 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb)); | |
29648 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar)); | |
29649 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr)); | |
29650 | PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May)); | |
29651 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun)); | |
29652 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul)); | |
29653 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug)); | |
29654 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep)); | |
29655 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct)); | |
29656 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov)); | |
29657 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec)); | |
29658 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month)); | |
29659 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun)); | |
29660 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon)); | |
29661 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue)); | |
29662 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed)); | |
29663 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu)); | |
29664 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri)); | |
29665 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat)); | |
29666 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay)); | |
29667 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year)); | |
29668 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full)); | |
29669 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr)); | |
29670 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First)); | |
29671 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First)); | |
29672 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First)); | |
98e665d3 | 29673 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); |
2f4c0a16 RD |
29674 | PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID)); |
29675 | PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT)); | |
29676 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP)); | |
29677 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE)); | |
29678 | PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK)); | |
29679 | PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF)); | |
29680 | PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF)); | |
29681 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT)); | |
29682 | PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB)); | |
29683 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE)); | |
29684 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA)); | |
29685 | PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF)); | |
29686 | PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE)); | |
29687 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT)); | |
29688 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE)); | |
29689 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME)); | |
29690 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE)); | |
29691 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE)); | |
29692 | PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML)); | |
29693 | PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX)); | |
d14a1e28 | 29694 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); |
2f4c0a16 RD |
29695 | PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get)); |
29696 | PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set)); | |
29697 | PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both)); | |
29698 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly)); | |
29699 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove)); | |
29700 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove)); | |
29701 | PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError)); | |
29702 | PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone)); | |
29703 | PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy)); | |
29704 | PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove)); | |
29705 | PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink)); | |
29706 | PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel)); | |
d14a1e28 RD |
29707 | |
29708 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
29709 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
29710 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
29711 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
29712 | ||
29713 | SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); | |
fe763115 | 29714 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); |
d14a1e28 RD |
29715 | } |
29716 |