]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
a41e16b6 | 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 | |
c9c7117a 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 | ||
cc6dd355 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 |
cc6dd355 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
cc6dd355 | 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 { | |
cc6dd355 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
cc6dd355 | 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 *); | |
cc6dd355 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) | |
a41e16b6 | 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 | ||
994141e6 | 186 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 187 | |
cc6dd355 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 | ||
9d1d5697 | 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] | |
211 | #define SWIGTYPE_p_wxFileHistory swig_types[2] | |
212 | #define SWIGTYPE_p_wxLog swig_types[3] | |
213 | #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[4] | |
214 | #define SWIGTYPE_p_wxMenu swig_types[5] | |
215 | #define SWIGTYPE_p_wxEvent swig_types[6] | |
216 | #define SWIGTYPE_p_wxConfigBase swig_types[7] | |
4276dc52 RD |
217 | #define SWIGTYPE_p_wxDisplay swig_types[8] |
218 | #define SWIGTYPE_p_wxFileType swig_types[9] | |
219 | #define SWIGTYPE_p_wxLogGui swig_types[10] | |
220 | #define SWIGTYPE_p_wxFont swig_types[11] | |
221 | #define SWIGTYPE_p_wxDataFormat swig_types[12] | |
222 | #define SWIGTYPE_p_wxTimerEvent swig_types[13] | |
223 | #define SWIGTYPE_p_wxCaret swig_types[14] | |
224 | #define SWIGTYPE_p_int swig_types[15] | |
225 | #define SWIGTYPE_p_wxSize swig_types[16] | |
226 | #define SWIGTYPE_p_wxClipboard swig_types[17] | |
227 | #define SWIGTYPE_p_wxStopWatch swig_types[18] | |
228 | #define SWIGTYPE_p_wxDC swig_types[19] | |
229 | #define SWIGTYPE_p_wxClipboardLocker swig_types[20] | |
230 | #define SWIGTYPE_p_wxIcon swig_types[21] | |
231 | #define SWIGTYPE_p_wxLogStderr swig_types[22] | |
232 | #define SWIGTYPE_p_wxLogTextCtrl swig_types[23] | |
233 | #define SWIGTYPE_p_wxTextCtrl swig_types[24] | |
234 | #define SWIGTYPE_p_wxBusyCursor swig_types[25] | |
235 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[26] | |
236 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[27] | |
237 | #define SWIGTYPE_p_wxTextDataObject swig_types[28] | |
238 | #define SWIGTYPE_p_wxDataObject swig_types[29] | |
239 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[30] | |
240 | #define SWIGTYPE_p_wxFileDataObject swig_types[31] | |
241 | #define SWIGTYPE_p_wxCustomDataObject swig_types[32] | |
242 | #define SWIGTYPE_p_wxURLDataObject swig_types[33] | |
243 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[34] | |
244 | #define SWIGTYPE_p_wxSound swig_types[35] | |
245 | #define SWIGTYPE_p_wxTimerRunner swig_types[36] | |
246 | #define SWIGTYPE_p_wxLogWindow swig_types[37] | |
247 | #define SWIGTYPE_p_wxTimeSpan swig_types[38] | |
248 | #define SWIGTYPE_p_wxArrayString swig_types[39] | |
249 | #define SWIGTYPE_p_wxWindowDisabler swig_types[40] | |
250 | #define SWIGTYPE_p_wxToolTip swig_types[41] | |
251 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[42] | |
252 | #define SWIGTYPE_p_wxFileConfig swig_types[43] | |
253 | #define SWIGTYPE_p_wxSystemSettings swig_types[44] | |
254 | #define SWIGTYPE_p_wxVideoMode swig_types[45] | |
255 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[46] | |
256 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[47] | |
257 | #define SWIGTYPE_p_wxEvtHandler swig_types[48] | |
258 | #define SWIGTYPE_p_wxRect swig_types[49] | |
259 | #define SWIGTYPE_p_char swig_types[50] | |
260 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[51] | |
261 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[52] | |
262 | #define SWIGTYPE_p_wxFrame swig_types[53] | |
263 | #define SWIGTYPE_p_wxTimer swig_types[54] | |
264 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[55] | |
265 | #define SWIGTYPE_p_wxPyArtProvider swig_types[56] | |
266 | #define SWIGTYPE_p_wxPyTipProvider swig_types[57] | |
267 | #define SWIGTYPE_p_wxTipProvider swig_types[58] | |
268 | #define SWIGTYPE_p_wxJoystick swig_types[59] | |
269 | #define SWIGTYPE_p_wxSystemOptions swig_types[60] | |
270 | #define SWIGTYPE_p_wxPoint swig_types[61] | |
271 | #define SWIGTYPE_p_wxJoystickEvent swig_types[62] | |
272 | #define SWIGTYPE_p_wxCursor swig_types[63] | |
273 | #define SWIGTYPE_p_wxObject swig_types[64] | |
274 | #define SWIGTYPE_p_wxOutputStream swig_types[65] | |
275 | #define SWIGTYPE_p_wxDateTime swig_types[66] | |
276 | #define SWIGTYPE_p_wxPyDropSource swig_types[67] | |
277 | #define SWIGTYPE_p_wxWindow swig_types[68] | |
278 | #define SWIGTYPE_p_wxString swig_types[69] | |
279 | #define SWIGTYPE_p_wxPyProcess swig_types[70] | |
280 | #define SWIGTYPE_p_wxBitmap swig_types[71] | |
281 | #define SWIGTYPE_p_wxConfig swig_types[72] | |
282 | #define SWIGTYPE_p_wxChar swig_types[73] | |
283 | #define SWIGTYPE_p_wxBusyInfo swig_types[74] | |
284 | #define SWIGTYPE_p_wxPyDropTarget swig_types[75] | |
285 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[76] | |
286 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[77] | |
287 | #define SWIGTYPE_p_wxProcessEvent swig_types[78] | |
288 | #define SWIGTYPE_p_wxPyLog swig_types[79] | |
289 | #define SWIGTYPE_p_wxLogNull swig_types[80] | |
290 | #define SWIGTYPE_p_wxColour swig_types[81] | |
291 | #define SWIGTYPE_p_wxByte swig_types[82] | |
292 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[83] | |
293 | #define SWIGTYPE_p_wxPyTimer swig_types[84] | |
294 | #define SWIGTYPE_p_wxDateSpan swig_types[85] | |
295 | static swig_type_info *swig_types[87]; | |
d14a1e28 RD |
296 | |
297 | /* -------- TYPES TABLE (END) -------- */ | |
298 | ||
299 | ||
300 | /*----------------------------------------------- | |
54f9ee45 | 301 | @(target):= _misc_.so |
d14a1e28 | 302 | ------------------------------------------------*/ |
54f9ee45 | 303 | #define SWIG_init init_misc_ |
d14a1e28 | 304 | |
54f9ee45 | 305 | #define SWIG_name "_misc_" |
d14a1e28 | 306 | |
15afbcd0 | 307 | /* Auxiliar swig macros */ |
994141e6 | 308 | |
994141e6 | 309 | #ifdef __cplusplus |
15afbcd0 | 310 | #define SWIGSTATICINLINE(a) static inline a |
994141e6 | 311 | #define SWIGSTATIC(a) static a |
15afbcd0 RD |
312 | #define swig_new_array(type, size) (new type[(size)]) |
313 | #define swig_delete_array(cptr) delete[] cptr | |
314 | #define swig_const_cast(type,a) const_cast<type>(a) | |
315 | #define swig_static_cast(type,a) static_cast<type>(a) | |
316 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
994141e6 | 317 | |
994141e6 | 318 | #ifdef HAVE_NUMERIC_CAST |
15afbcd0 | 319 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) |
994141e6 | 320 | #else |
15afbcd0 | 321 | #define swig_numeric_cast(type,a) static_cast<type>(a) |
994141e6 RD |
322 | #endif |
323 | ||
15afbcd0 RD |
324 | #else /* C case */ |
325 | ||
326 | #define SWIGSTATICINLINE(a) static a | |
327 | #define SWIGSTATIC(a) static a | |
328 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
329 | #define swig_delete_array(cptr) free((char*)cptr) | |
330 | #define swig_const_cast(type,a) (type)(a) | |
331 | #define swig_static_cast(type,a) (type)(a) | |
332 | #define swig_reinterpret_cast(type,a) (type)(a) | |
333 | #define swig_numeric_cast(type,a) (type)(a) | |
334 | ||
335 | #endif /* __cplusplus */ | |
994141e6 RD |
336 | |
337 | ||
15afbcd0 RD |
338 | #define SWIG_FromSignedChar PyInt_FromLong |
339 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
340 | #define SWIG_FromShort PyInt_FromLong | |
341 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
342 | #define SWIG_FromInt PyInt_FromLong | |
343 | #define SWIG_FromLong PyInt_FromLong | |
344 | #define SWIG_FromFloat PyFloat_FromDouble | |
345 | #define SWIG_FromDouble PyFloat_FromDouble | |
346 | #define SWIG_FromFloat PyFloat_FromDouble | |
347 | #define SWIG_FromDouble PyFloat_FromDouble | |
994141e6 RD |
348 | |
349 | ||
d14a1e28 RD |
350 | #include "wx/wxPython/wxPython.h" |
351 | #include "wx/wxPython/pyclasses.h" | |
352 | #include "wx/wxPython/pyistream.h" | |
353 | ||
d14a1e28 | 354 | |
b2dc1044 | 355 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 | 356 | |
d14a1e28 | 357 | |
994141e6 | 358 | |
15afbcd0 RD |
359 | #include <limits.h> |
360 | ||
361 | ||
362 | SWIGSTATICINLINE(long) | |
363 | SWIG_CheckLongInRange(long value, const char* type, | |
364 | long min_value, long max_value) | |
365 | { | |
366 | if (!PyErr_Occurred()) { | |
367 | if (value < min_value) { | |
368 | PyObject *err = | |
369 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
370 | value, type, min_value); | |
371 | ||
372 | PyErr_SetObject(PyExc_OverflowError, err); | |
373 | Py_DECREF(err); | |
374 | } else if (value > max_value) { | |
375 | PyObject *err = | |
376 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
377 | value, type, max_value); | |
378 | PyErr_SetObject(PyExc_OverflowError, err); | |
379 | Py_DECREF(err); | |
380 | } | |
381 | } | |
382 | return value; | |
383 | } | |
384 | ||
385 | ||
386 | SWIGSTATICINLINE(long) | |
387 | SWIG_AsLong(PyObject * obj) | |
388 | { | |
69223c70 RD |
389 | if (PyNumber_Check(obj)) |
390 | return PyInt_AsLong(obj); | |
391 | else { | |
392 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
393 | obj->ob_type->tp_name); | |
394 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
395 | Py_DECREF(errmsg); | |
396 | return 0; | |
397 | } | |
15afbcd0 RD |
398 | } |
399 | ||
400 | ||
401 | #if INT_MAX != LONG_MAX | |
402 | SWIGSTATICINLINE(int) | |
403 | SWIG_AsInt(PyObject *obj) | |
994141e6 | 404 | { |
15afbcd0 RD |
405 | return swig_numeric_cast(int, |
406 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
407 | "int", INT_MIN, INT_MAX)); | |
408 | } | |
409 | #else | |
410 | #define SWIG_AsInt SWIG_AsLong | |
411 | #endif | |
412 | ||
413 | ||
414 | SWIGSTATICINLINE(int) | |
415 | SWIG_CheckInt(PyObject* obj) | |
416 | { | |
417 | SWIG_AsInt(obj); | |
418 | if (PyErr_Occurred()) { | |
419 | PyErr_Clear(); | |
420 | return 0; | |
421 | } else { | |
422 | return 1; | |
423 | } | |
994141e6 RD |
424 | } |
425 | ||
b2dc1044 RD |
426 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
427 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
428 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
d14a1e28 | 429 | |
15afbcd0 RD |
430 | SWIGSTATICINLINE(int) |
431 | SWIG_CheckLong(PyObject* obj) | |
994141e6 | 432 | { |
15afbcd0 RD |
433 | SWIG_AsLong(obj); |
434 | if (PyErr_Occurred()) { | |
435 | PyErr_Clear(); | |
436 | return 0; | |
437 | } else { | |
438 | return 1; | |
439 | } | |
994141e6 RD |
440 | } |
441 | ||
442 | ||
15afbcd0 RD |
443 | SWIGSTATICINLINE(bool) |
444 | SWIG_AsBool(PyObject *obj) | |
994141e6 RD |
445 | { |
446 | return PyObject_IsTrue(obj) ? true : false; | |
447 | } | |
448 | ||
449 | ||
15afbcd0 RD |
450 | SWIGSTATICINLINE(int) |
451 | SWIG_CheckBool(PyObject* obj) | |
452 | { | |
453 | SWIG_AsBool(obj); | |
454 | if (PyErr_Occurred()) { | |
455 | PyErr_Clear(); | |
456 | return 0; | |
457 | } else { | |
458 | return 1; | |
459 | } | |
460 | } | |
461 | ||
462 | ||
d14a1e28 RD |
463 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
464 | PyObject* o2; | |
465 | PyObject* o3; | |
466 | ||
467 | if (!target) { | |
468 | target = o; | |
469 | } else if (target == Py_None) { | |
470 | Py_DECREF(Py_None); | |
471 | target = o; | |
472 | } else { | |
473 | if (!PyTuple_Check(target)) { | |
474 | o2 = target; | |
475 | target = PyTuple_New(1); | |
476 | PyTuple_SetItem(target, 0, o2); | |
477 | } | |
478 | o3 = PyTuple_New(1); | |
479 | PyTuple_SetItem(o3, 0, o); | |
480 | ||
481 | o2 = target; | |
482 | target = PySequence_Concat(o2, o3); | |
483 | Py_DECREF(o2); | |
484 | Py_DECREF(o3); | |
485 | } | |
486 | return target; | |
487 | } | |
488 | ||
489 | ||
490 | long wxGetFreeMemory() | |
39f61e25 RD |
491 | { wxPyRaiseNotImplemented(); return 0; } |
492 | ||
493 | ||
15afbcd0 RD |
494 | SWIGSTATICINLINE(unsigned long) |
495 | SWIG_AsUnsignedLong(PyObject * obj) | |
496 | { | |
497 | if (PyLong_Check(obj)) { | |
498 | return PyLong_AsUnsignedLong(obj); | |
499 | } else { | |
69223c70 | 500 | long i = SWIG_AsLong(obj); |
15afbcd0 | 501 | if ( !PyErr_Occurred() && (i < 0)) { |
69223c70 | 502 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); |
15afbcd0 RD |
503 | } |
504 | return i; | |
505 | } | |
506 | } | |
507 | ||
508 | ||
509 | SWIGSTATICINLINE(int) | |
510 | SWIG_CheckUnsignedLong(PyObject* obj) | |
511 | { | |
512 | SWIG_AsUnsignedLong(obj); | |
513 | if (PyErr_Occurred()) { | |
514 | PyErr_Clear(); | |
515 | return 0; | |
516 | } else { | |
517 | return 1; | |
518 | } | |
519 | } | |
520 | ||
521 | ||
522 | SWIGSTATICINLINE(PyObject* ) | |
523 | SWIG_FromUnsignedLong(unsigned long value) | |
994141e6 | 524 | { |
15afbcd0 RD |
525 | return (value > LONG_MAX) ? |
526 | PyLong_FromUnsignedLong(value) | |
527 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
994141e6 RD |
528 | } |
529 | ||
530 | ||
39f61e25 RD |
531 | bool wxGetKeyState(wxKeyCode key) |
532 | { wxPyRaiseNotImplemented(); return False; } | |
d14a1e28 RD |
533 | |
534 | ||
535 | void wxWakeUpMainThread() {} | |
536 | ||
537 | ||
538 | bool wxThread_IsMain() { | |
539 | #ifdef WXP_WITH_THREAD | |
540 | return wxThread::IsMain(); | |
541 | #else | |
e811c8ce | 542 | return True; |
d14a1e28 RD |
543 | #endif |
544 | } | |
545 | ||
546 | ||
547 | int wxCaret_GetBlinkTime() { | |
548 | return wxCaret::GetBlinkTime(); | |
549 | } | |
550 | ||
551 | void wxCaret_SetBlinkTime(int milliseconds) { | |
552 | wxCaret::SetBlinkTime(milliseconds); | |
553 | } | |
554 | ||
555 | ||
556 | #include <wx/snglinst.h> | |
557 | ||
558 | ||
559 | #ifdef __WXMSW__ | |
560 | #include <wx/msw/private.h> | |
561 | #include <wx/dynload.h> | |
562 | #endif | |
563 | ||
564 | ||
565 | ||
566 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
567 | { | |
568 | #ifdef __WXMSW__ | |
569 | ||
570 | switch (method) | |
571 | { | |
572 | case 1: | |
573 | // This one only partially works. Appears to be an undocumented | |
574 | // "standard" convention that not all widgets adhear to. For | |
575 | // example, for some widgets backgrounds or non-client areas may | |
576 | // not be painted. | |
577 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
578 | break; | |
579 | ||
580 | case 2: | |
581 | // This one works much better, except for on XP. On Win2k nearly | |
582 | // all widgets and their children are captured correctly[**]. On | |
583 | // XP with Themes activated most native widgets draw only | |
584 | // partially, if at all. Without themes it works just like on | |
585 | // Win2k. | |
586 | // | |
587 | // ** For example the radio buttons in a wxRadioBox are not its | |
588 | // children by default, but you can capture it via the panel | |
589 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
590 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
591 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
592 | PRF_ERASEBKGND | PRF_OWNED ); | |
593 | break; | |
594 | ||
595 | case 3: | |
596 | // This one is only defined in the latest SDK and is only | |
597 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
598 | // so I expect that it will work similar to the above. Since it | |
599 | // is avaialble only on XP, it can't be compiled like this and | |
600 | // will have to be loaded dynamically. | |
601 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
602 | ||
603 | // fall through | |
604 | ||
605 | case 4: | |
606 | // Use PrintWindow if available, or fallback to WM_PRINT | |
607 | // otherwise. Unfortunately using PrintWindow is even worse than | |
608 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
609 | // at all, with or without Themes. | |
610 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
e811c8ce | 611 | static bool s_triedToLoad = False; |
d14a1e28 RD |
612 | static PrintWindow_t pfnPrintWindow = NULL; |
613 | if ( !s_triedToLoad ) | |
614 | { | |
615 | ||
e811c8ce | 616 | s_triedToLoad = True; |
d14a1e28 RD |
617 | wxDynamicLibrary dllUser32(_T("user32.dll")); |
618 | if ( dllUser32.IsLoaded() ) | |
619 | { | |
620 | wxLogNull nolog; // Don't report errors here | |
621 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
622 | } | |
623 | } | |
624 | if (pfnPrintWindow) | |
625 | { | |
626 | printf("Using PrintWindow\n"); | |
627 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
628 | } | |
629 | else | |
630 | { | |
631 | printf("Using WM_PRINT\n"); | |
632 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
633 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
634 | } | |
635 | } | |
636 | #endif | |
637 | } | |
638 | ||
639 | ||
640 | ||
641 | #include <wx/tipdlg.h> | |
642 | ||
643 | ||
644 | class wxPyTipProvider : public wxTipProvider { | |
645 | public: | |
646 | wxPyTipProvider(size_t currentTip) | |
647 | : wxTipProvider(currentTip) {} | |
648 | ||
649 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
650 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
651 | PYPRIVATE; | |
652 | }; | |
653 | ||
654 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
655 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
656 | ||
657 | ||
4276dc52 RD |
658 | //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); |
659 | ||
660 | void wxPyTimer::Notify() { | |
661 | bool found; | |
4f89f6a3 | 662 | bool blocked = wxPyBeginBlockThreads(); |
4276dc52 RD |
663 | if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) |
664 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); | |
4f89f6a3 | 665 | wxPyEndBlockThreads(blocked); |
4276dc52 RD |
666 | if (! found) |
667 | wxTimer::Notify(); | |
668 | } | |
669 | void wxPyTimer::base_Notify() { | |
670 | wxTimer::Notify(); | |
671 | } | |
672 | ||
d14a1e28 | 673 | |
994141e6 | 674 | |
15afbcd0 RD |
675 | SWIGSTATICINLINE(PyObject *) |
676 | SWIG_FromCharPtr(const char* cptr) | |
677 | { | |
678 | size_t size = cptr ? strlen(cptr) : 0; | |
679 | if (cptr) { | |
680 | if (size > INT_MAX) { | |
681 | return SWIG_NewPointerObj(swig_const_cast(char*,cptr), | |
682 | SWIG_TypeQuery("char *"), 0); | |
683 | } else { | |
684 | return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size)); | |
685 | } | |
686 | } else { | |
687 | Py_INCREF(Py_None); | |
688 | return Py_None; | |
689 | } | |
690 | } | |
691 | ||
692 | ||
693 | SWIGSTATICINLINE(unsigned long) | |
694 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
695 | unsigned long max_value) | |
696 | { | |
697 | if (!PyErr_Occurred()) { | |
698 | if (value > max_value) { | |
699 | PyObject *err = | |
700 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
701 | value, type, max_value); | |
702 | PyErr_SetObject(PyExc_OverflowError, err); | |
703 | Py_DECREF(err); | |
704 | } | |
705 | } | |
706 | return value; | |
707 | } | |
708 | ||
709 | ||
710 | #if UINT_MAX != ULONG_MAX | |
711 | SWIGSTATICINLINE(unsigned int) | |
712 | SWIG_AsUnsignedInt(PyObject *obj) | |
994141e6 | 713 | { |
15afbcd0 RD |
714 | return swig_numeric_cast(unsigned int, |
715 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
716 | "unsigned int", UINT_MAX)); | |
717 | } | |
718 | #else | |
719 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
720 | #endif | |
721 | ||
722 | ||
723 | SWIGSTATICINLINE(int) | |
724 | SWIG_CheckUnsignedInt(PyObject* obj) | |
725 | { | |
726 | SWIG_AsUnsignedInt(obj); | |
727 | if (PyErr_Occurred()) { | |
728 | PyErr_Clear(); | |
729 | return 0; | |
730 | } else { | |
731 | return 1; | |
732 | } | |
994141e6 RD |
733 | } |
734 | ||
d14a1e28 RD |
735 | wxString Log_TimeStamp(){ |
736 | wxString msg; | |
737 | wxLog::TimeStamp(&msg); | |
738 | return msg; | |
739 | } | |
740 | void wxLog_Destroy(wxLog *self){ delete self; } | |
741 | ||
742 | // A wxLog class that can be derived from in wxPython | |
743 | class wxPyLog : public wxLog { | |
744 | public: | |
745 | wxPyLog() : wxLog() {} | |
746 | ||
747 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
748 | bool found; | |
4f89f6a3 | 749 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
750 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { |
751 | PyObject* s = wx2PyString(szString); | |
752 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
753 | Py_DECREF(s); | |
754 | } | |
4f89f6a3 | 755 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
756 | if (! found) |
757 | wxLog::DoLog(level, szString, t); | |
758 | } | |
759 | ||
760 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
761 | bool found; | |
4f89f6a3 | 762 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
763 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { |
764 | PyObject* s = wx2PyString(szString); | |
765 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
766 | Py_DECREF(s); | |
767 | } | |
4f89f6a3 | 768 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
769 | if (! found) |
770 | wxLog::DoLogString(szString, t); | |
771 | } | |
772 | ||
773 | PYPRIVATE; | |
774 | }; | |
775 | ||
776 | ||
777 | ||
778 | ||
779 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
780 | ||
781 | ||
782 | #include <wx/joystick.h> | |
783 | ||
784 | ||
785 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
786 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
787 | class wxJoystick : public wxObject { | |
788 | public: | |
789 | wxJoystick(int joystick = wxJOYSTICK1) { | |
4f89f6a3 | 790 | bool blocked = wxPyBeginBlockThreads(); |
39f61e25 RD |
791 | PyErr_SetString(PyExc_NotImplementedError, |
792 | "wxJoystick is not available on this platform."); | |
4f89f6a3 | 793 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
794 | } |
795 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
796 | int GetZPosition() { return -1; } | |
797 | int GetButtonState() { return -1; } | |
798 | int GetPOVPosition() { return -1; } | |
799 | int GetPOVCTSPosition() { return -1; } | |
800 | int GetRudderPosition() { return -1; } | |
801 | int GetUPosition() { return -1; } | |
802 | int GetVPosition() { return -1; } | |
803 | int GetMovementThreshold() { return -1; } | |
804 | void SetMovementThreshold(int threshold) {} | |
805 | ||
e811c8ce | 806 | bool IsOk(void) { return False; } |
d14a1e28 RD |
807 | int GetNumberJoysticks() { return -1; } |
808 | int GetManufacturerId() { return -1; } | |
809 | int GetProductId() { return -1; } | |
810 | wxString GetProductName() { return ""; } | |
811 | int GetXMin() { return -1; } | |
812 | int GetYMin() { return -1; } | |
813 | int GetZMin() { return -1; } | |
814 | int GetXMax() { return -1; } | |
815 | int GetYMax() { return -1; } | |
816 | int GetZMax() { return -1; } | |
817 | int GetNumberButtons() { return -1; } | |
818 | int GetNumberAxes() { return -1; } | |
819 | int GetMaxButtons() { return -1; } | |
820 | int GetMaxAxes() { return -1; } | |
821 | int GetPollingMin() { return -1; } | |
822 | int GetPollingMax() { return -1; } | |
823 | int GetRudderMin() { return -1; } | |
824 | int GetRudderMax() { return -1; } | |
825 | int GetUMin() { return -1; } | |
826 | int GetUMax() { return -1; } | |
827 | int GetVMin() { return -1; } | |
828 | int GetVMax() { return -1; } | |
829 | ||
e811c8ce RD |
830 | bool HasRudder() { return False; } |
831 | bool HasZ() { return False; } | |
832 | bool HasU() { return False; } | |
833 | bool HasV() { return False; } | |
834 | bool HasPOV() { return False; } | |
835 | bool HasPOV4Dir() { return False; } | |
836 | bool HasPOVCTS() { return False; } | |
d14a1e28 | 837 | |
e811c8ce RD |
838 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; } |
839 | bool ReleaseCapture() { return False; } | |
d14a1e28 RD |
840 | }; |
841 | #endif | |
842 | ||
843 | ||
4d5c3d91 | 844 | #include <wx/sound.h> |
d14a1e28 RD |
845 | |
846 | ||
dff1fa9b | 847 | #if !wxUSE_SOUND |
d14a1e28 | 848 | // A C++ stub class for wxWave for platforms that don't have it. |
4d5c3d91 | 849 | class wxSound : public wxObject |
d14a1e28 RD |
850 | { |
851 | public: | |
4d5c3d91 | 852 | wxSound() { |
4f89f6a3 | 853 | bool blocked = wxPyBeginBlockThreads(); |
39f61e25 | 854 | PyErr_SetString(PyExc_NotImplementedError, |
4d5c3d91 | 855 | "wxSound is not available on this platform."); |
4f89f6a3 | 856 | wxPyEndBlockThreads(blocked); |
d14a1e28 | 857 | } |
4d5c3d91 | 858 | wxSound(const wxString&, bool) { |
4f89f6a3 | 859 | bool blocked = wxPyBeginBlockThreads(); |
39f61e25 | 860 | PyErr_SetString(PyExc_NotImplementedError, |
4d5c3d91 | 861 | "wxSound is not available on this platform."); |
4f89f6a3 | 862 | wxPyEndBlockThreads(blocked); |
d14a1e28 | 863 | } |
4d5c3d91 | 864 | wxSound(int, const wxByte*) { |
4f89f6a3 | 865 | bool blocked = wxPyBeginBlockThreads(); |
4d5c3d91 RD |
866 | PyErr_SetString(PyExc_NotImplementedError, |
867 | "wxSound is not available on this platform."); | |
4f89f6a3 | 868 | wxPyEndBlockThreads(blocked); |
4d5c3d91 RD |
869 | } |
870 | ||
871 | ~wxSound() {}; | |
d14a1e28 | 872 | |
4d5c3d91 RD |
873 | bool Create(const wxString&, bool) { return false; } |
874 | bool Create(int, const wxByte*) { return false; }; | |
875 | bool IsOk() { return false; }; | |
876 | bool Play(unsigned) const { return false; } | |
877 | static bool Play(const wxString&, unsigned) { return false; } | |
878 | static void Stop() {} | |
d14a1e28 RD |
879 | }; |
880 | ||
881 | #endif | |
882 | ||
d14a1e28 RD |
883 | |
884 | #include <wx/mimetype.h> | |
885 | ||
886 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
887 | wxString str; | |
888 | if (self->GetMimeType(&str)) | |
889 | return wx2PyString(str); | |
890 | else | |
891 | RETURN_NONE(); | |
892 | } | |
893 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
894 | wxArrayString arr; | |
895 | if (self->GetMimeTypes(arr)) | |
896 | return wxArrayString2PyList_helper(arr); | |
897 | else | |
898 | RETURN_NONE(); | |
899 | } | |
900 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
901 | wxArrayString arr; | |
902 | if (self->GetExtensions(arr)) | |
903 | return wxArrayString2PyList_helper(arr); | |
904 | else | |
905 | RETURN_NONE(); | |
906 | } | |
907 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
908 | wxIconLocation loc; | |
909 | if (self->GetIcon(&loc)) | |
910 | return new wxIcon(loc); | |
911 | else | |
912 | return NULL; | |
913 | } | |
914 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
915 | wxIconLocation loc; | |
916 | if (self->GetIcon(&loc)) { | |
917 | wxString iconFile = loc.GetFileName(); | |
918 | int iconIndex = -1; | |
919 | ||
920 | ||
921 | ||
922 | // Make a tuple and put the values in it | |
4f89f6a3 | 923 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
924 | PyObject* tuple = PyTuple_New(3); |
925 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
e811c8ce | 926 | wxT("wxIcon"), True)); |
d14a1e28 RD |
927 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); |
928 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
4f89f6a3 | 929 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
930 | return tuple; |
931 | } | |
932 | else | |
933 | RETURN_NONE(); | |
934 | } | |
935 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
936 | wxString str; | |
937 | if (self->GetDescription(&str)) | |
938 | return wx2PyString(str); | |
939 | else | |
940 | RETURN_NONE(); | |
941 | } | |
942 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
943 | wxString str; | |
944 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
945 | return wx2PyString(str); | |
946 | else | |
947 | RETURN_NONE(); | |
948 | } | |
949 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
950 | wxString str; | |
951 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
952 | return wx2PyString(str); | |
953 | else | |
954 | RETURN_NONE(); | |
955 | } | |
956 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
957 | wxArrayString verbs; | |
958 | wxArrayString commands; | |
959 | if (self->GetAllCommands(&verbs, &commands, | |
960 | wxFileType::MessageParameters(filename, mimetype))) { | |
4f89f6a3 | 961 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
962 | PyObject* tuple = PyTuple_New(2); |
963 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
964 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
4f89f6a3 | 965 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
966 | return tuple; |
967 | } | |
968 | else | |
969 | RETURN_NONE(); | |
970 | } | |
971 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
972 | return wxFileType::ExpandCommand(command, | |
973 | wxFileType::MessageParameters(filename, mimetype)); | |
974 | } | |
975 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
976 | wxArrayString arr; | |
977 | self->EnumAllFileTypes(arr); | |
978 | return wxArrayString2PyList_helper(arr); | |
979 | } | |
980 | ||
981 | #include <wx/artprov.h> | |
982 | ||
983 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
984 | static const wxString wxPyART_MENU(wxART_MENU); | |
985 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
986 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
987 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
988 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
989 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
990 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
991 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
992 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
993 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
994 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
995 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
996 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
997 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
998 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
999 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
1000 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
1001 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
1002 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
1003 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
1004 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
1005 | static const wxString wxPyART_HELP(wxART_HELP); | |
1006 | static const wxString wxPyART_TIP(wxART_TIP); | |
1007 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
1008 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
1009 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
1010 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
1011 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
1012 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
1013 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
1014 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
1015 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
1016 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
1017 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
1018 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
1019 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
1020 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
1021 | // Python aware wxArtProvider | |
1022 | class wxPyArtProvider : public wxArtProvider { | |
1023 | public: | |
1024 | ||
1025 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
1026 | const wxArtClient& client, | |
1027 | const wxSize& size) { | |
1028 | wxBitmap rval = wxNullBitmap; | |
4f89f6a3 | 1029 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1030 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { |
1031 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
1032 | PyObject* ro; | |
1033 | wxBitmap* ptr; | |
1034 | PyObject* s1, *s2; | |
1035 | s1 = wx2PyString(id); | |
1036 | s2 = wx2PyString(client); | |
1037 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
1038 | Py_DECREF(so); | |
1039 | Py_DECREF(s1); | |
1040 | Py_DECREF(s2); | |
1041 | if (ro) { | |
1042 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
1043 | rval = *ptr; | |
1044 | Py_DECREF(ro); | |
1045 | } | |
1046 | } | |
4f89f6a3 | 1047 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1048 | return rval; |
1049 | } | |
1050 | ||
1051 | PYPRIVATE; | |
1052 | }; | |
1053 | ||
1e0c8722 | 1054 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } |
d14a1e28 RD |
1055 | |
1056 | ||
1057 | ||
1058 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
1059 | PyObject* ret = PyTuple_New(3); | |
1060 | if (ret) { | |
1061 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
1062 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
1063 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
1064 | } | |
1065 | return ret; | |
1066 | } | |
1067 | ||
1068 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
1069 | bool cont; | |
1070 | long index = 0; | |
1071 | wxString value; | |
1072 | ||
1073 | cont = self->GetFirstGroup(value, index); | |
1074 | return __EnumerationHelper(cont, value, index); | |
1075 | } | |
1076 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
1077 | bool cont; | |
1078 | wxString value; | |
1079 | ||
1080 | cont = self->GetNextGroup(value, index); | |
1081 | return __EnumerationHelper(cont, value, index); | |
1082 | } | |
1083 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
1084 | bool cont; | |
1085 | long index = 0; | |
1086 | wxString value; | |
1087 | ||
1088 | cont = self->GetFirstEntry(value, index); | |
1089 | return __EnumerationHelper(cont, value, index); | |
1090 | } | |
1091 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
1092 | bool cont; | |
1093 | wxString value; | |
1094 | ||
1095 | cont = self->GetNextEntry(value, index); | |
1096 | return __EnumerationHelper(cont, value, index); | |
1097 | } | |
1098 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
1099 | long rv; | |
1100 | self->Read(key, &rv, defaultVal); | |
1101 | return rv; | |
1102 | } | |
994141e6 | 1103 | |
15afbcd0 RD |
1104 | SWIGSTATICINLINE(double) |
1105 | SWIG_AsDouble(PyObject *obj) | |
994141e6 | 1106 | { |
69223c70 RD |
1107 | if (PyNumber_Check(obj)) |
1108 | return PyFloat_AsDouble(obj); | |
1109 | else { | |
1110 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
1111 | obj->ob_type->tp_name); | |
1112 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
1113 | Py_DECREF(errmsg); | |
1114 | return 0; | |
1115 | } | |
15afbcd0 RD |
1116 | } |
1117 | ||
1118 | ||
1119 | SWIGSTATICINLINE(int) | |
1120 | SWIG_CheckDouble(PyObject* obj) | |
1121 | { | |
1122 | SWIG_AsDouble(obj); | |
1123 | if (PyErr_Occurred()) { | |
1124 | PyErr_Clear(); | |
1125 | return 0; | |
1126 | } else { | |
1127 | return 1; | |
1128 | } | |
994141e6 RD |
1129 | } |
1130 | ||
d14a1e28 RD |
1131 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ |
1132 | double rv; | |
1133 | self->Read(key, &rv, defaultVal); | |
1134 | return rv; | |
1135 | } | |
1136 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
1137 | bool rv; | |
1138 | self->Read(key, &rv, defaultVal); | |
1139 | return rv; | |
1140 | } | |
1141 | ||
1142 | #include <wx/datetime.h> | |
1143 | ||
d14a1e28 | 1144 | |
33b885b9 RD |
1145 | static const wxString wxPyDateFormatStr(wxT("%c")); |
1146 | static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); | |
d14a1e28 RD |
1147 | |
1148 | #define LOCAL_TZ wxDateTime::Local | |
1149 | ||
994141e6 | 1150 | |
15afbcd0 RD |
1151 | #if UINT_MAX < LONG_MAX |
1152 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
1153 | #else | |
1154 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
1155 | #endif | |
994141e6 | 1156 | |
d14a1e28 RD |
1157 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } |
1158 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
1159 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
1160 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
1161 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
a95a7133 RD |
1162 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ |
1163 | if (!other || !self->IsValid() || !other->IsValid()) return self < other; | |
1164 | return (*self < *other); | |
1165 | } | |
1166 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ | |
1167 | if (!other || !self->IsValid() || !other->IsValid()) return self <= other; | |
1168 | return (*self <= *other); | |
1169 | } | |
1170 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ | |
1171 | if (!other || !self->IsValid() || !other->IsValid()) return self > other; | |
1172 | return (*self > *other); | |
1173 | } | |
1174 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ | |
1175 | if (!other || !self->IsValid() || !other->IsValid()) return self >= other; | |
1176 | return (*self >= *other); | |
1177 | } | |
1178 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ | |
1179 | if (!other || !self->IsValid() || !other->IsValid()) return self == other; | |
1180 | return (*self == *other); | |
1181 | } | |
1182 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ | |
1183 | if (!other || !self->IsValid() || !other->IsValid()) return self != other; | |
1184 | return (*self != *other); | |
1185 | } | |
d14a1e28 RD |
1186 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ |
1187 | const wxChar* rv; | |
1188 | const wxChar* _date = date; | |
1189 | rv = self->ParseRfc822Date(_date); | |
1190 | if (rv == NULL) return -1; | |
1191 | return rv - _date; | |
1192 | } | |
1193 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
1194 | const wxChar* rv; | |
1195 | const wxChar* _date = date; | |
1196 | rv = self->ParseFormat(_date, format, dateDef); | |
1197 | if (rv == NULL) return -1; | |
1198 | return rv - _date; | |
1199 | } | |
1200 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
1201 | const wxChar* rv; | |
1202 | const wxChar* _datetime = datetime; | |
1203 | rv = self->ParseDateTime(_datetime); | |
1204 | if (rv == NULL) return -1; | |
1205 | return rv - _datetime; | |
1206 | } | |
1207 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
1208 | const wxChar* rv; | |
1209 | const wxChar* _date = date; | |
1210 | rv = self->ParseDate(_date); | |
1211 | if (rv == NULL) return -1; | |
1212 | return rv - _date; | |
1213 | } | |
1214 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
1215 | const wxChar* rv; | |
1216 | const wxChar* _time = time; | |
1217 | rv = self->ParseTime(_time); | |
1218 | if (rv == NULL) return -1; | |
1219 | return rv - _time; | |
1220 | } | |
1221 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
1222 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
1223 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
1224 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
22faec7d RD |
1225 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; } |
1226 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; } | |
1227 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; } | |
1228 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; } | |
1229 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; } | |
1230 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
1231 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } |
1232 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
1233 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
1234 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
22faec7d RD |
1235 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; } |
1236 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
1237 | |
1238 | #include <wx/dataobj.h> | |
1239 | ||
1240 | // Create a new class for wxPython to use | |
1241 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1242 | public: | |
1243 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1244 | : wxDataObjectSimple(format) {} | |
1245 | ||
1246 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1247 | bool GetDataHere(void *buf) const; | |
1248 | bool SetData(size_t len, const void *buf) const; | |
1249 | PYPRIVATE; | |
1250 | }; | |
1251 | ||
1252 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1253 | ||
1254 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1255 | // We need to get the data for this object and write it to buf. I think | |
1256 | // the best way to do this for wxPython is to have the Python method | |
1257 | // return either a string or None and then act appropriately with the | |
1258 | // C++ version. | |
1259 | ||
e811c8ce | 1260 | bool rval = False; |
4f89f6a3 | 1261 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1262 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { |
1263 | PyObject* ro; | |
1264 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1265 | if (ro) { | |
1266 | rval = (ro != Py_None && PyString_Check(ro)); | |
1267 | if (rval) | |
1268 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1269 | Py_DECREF(ro); | |
1270 | } | |
1271 | } | |
4f89f6a3 | 1272 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1273 | return rval; |
1274 | } | |
1275 | ||
1276 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1277 | // For this one we simply need to make a string from buf and len | |
1278 | // and send it to the Python method. | |
e811c8ce | 1279 | bool rval = False; |
4f89f6a3 | 1280 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1281 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { |
1282 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1283 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1284 | Py_DECREF(data); | |
1285 | } | |
4f89f6a3 | 1286 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1287 | return rval; |
1288 | } | |
1289 | ||
1290 | // Create a new class for wxPython to use | |
1291 | class wxPyTextDataObject : public wxTextDataObject { | |
1292 | public: | |
1293 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1294 | : wxTextDataObject(text) {} | |
1295 | ||
1296 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1297 | DEC_PYCALLBACK_STRING__const(GetText); | |
1298 | DEC_PYCALLBACK__STRING(SetText); | |
1299 | PYPRIVATE; | |
1300 | }; | |
1301 | ||
1302 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1303 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1304 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1305 | ||
1306 | ||
1307 | // Create a new class for wxPython to use | |
1308 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1309 | public: | |
1310 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1311 | : wxBitmapDataObject(bitmap) {} | |
1312 | ||
1313 | wxBitmap GetBitmap() const; | |
1314 | void SetBitmap(const wxBitmap& bitmap); | |
1315 | PYPRIVATE; | |
1316 | }; | |
1317 | ||
1318 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1319 | wxBitmap* rval = &wxNullBitmap; | |
4f89f6a3 | 1320 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1321 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { |
1322 | PyObject* ro; | |
1323 | wxBitmap* ptr; | |
1324 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1325 | if (ro) { | |
1326 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1327 | rval = ptr; | |
1328 | Py_DECREF(ro); | |
1329 | } | |
1330 | } | |
4f89f6a3 | 1331 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1332 | return *rval; |
1333 | } | |
1334 | ||
1335 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { | |
4f89f6a3 | 1336 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1337 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { |
e811c8ce | 1338 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False); |
d14a1e28 RD |
1339 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); |
1340 | Py_DECREF(bo); | |
1341 | } | |
4f89f6a3 | 1342 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1343 | } |
1344 | ||
1345 | void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){ | |
1346 | if (PyString_Check(data)) { | |
1347 | // for Python we just call SetData here since we always need it to make a copy. | |
1348 | self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1349 | } | |
1350 | else { | |
1351 | // raise a TypeError if not a string | |
1352 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1353 | } | |
1354 | } | |
1355 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ | |
1356 | if (PyString_Check(data)) { | |
1357 | return self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1358 | } | |
1359 | else { | |
1360 | // raise a TypeError if not a string | |
1361 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
e811c8ce | 1362 | return False; |
d14a1e28 RD |
1363 | } |
1364 | } | |
1365 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
1366 | return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
1367 | } | |
1368 | ||
1369 | class wxMetafileDataObject : public wxDataObjectSimple | |
1370 | { | |
1371 | public: | |
39f61e25 | 1372 | wxMetafileDataObject() { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1373 | }; |
1374 | ||
1375 | ||
d14a1e28 RD |
1376 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); |
1377 | ||
1378 | ||
d14a1e28 RD |
1379 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); |
1380 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1381 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1382 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1383 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1384 | ||
1385 | ||
d14a1e28 RD |
1386 | class wxPyTextDropTarget : public wxTextDropTarget { |
1387 | public: | |
1388 | wxPyTextDropTarget() {} | |
1389 | ||
1390 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1391 | ||
1392 | DEC_PYCALLBACK__(OnLeave); | |
1393 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1394 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1395 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1396 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1397 | ||
1398 | PYPRIVATE; | |
1399 | }; | |
1400 | ||
1401 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1402 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1403 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1404 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1405 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1406 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1407 | ||
1408 | ||
1409 | ||
1410 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1411 | public: | |
1412 | wxPyFileDropTarget() {} | |
1413 | ||
1414 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1415 | ||
1416 | DEC_PYCALLBACK__(OnLeave); | |
1417 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1418 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1419 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1420 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1421 | ||
1422 | PYPRIVATE; | |
1423 | }; | |
1424 | ||
1425 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1426 | const wxArrayString& filenames) { | |
e811c8ce | 1427 | bool rval = False; |
4f89f6a3 | 1428 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1429 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { |
1430 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1431 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1432 | Py_DECREF(list); | |
1433 | } | |
4f89f6a3 | 1434 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1435 | return rval; |
1436 | } | |
1437 | ||
1438 | ||
1439 | ||
1440 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1441 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1442 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1443 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1444 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1445 | ||
1446 | ||
1447 | ||
1448 | ||
1449 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
4276dc52 RD |
1450 | |
1451 | #include "wx/display.h" | |
1452 | ||
1453 | bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; } | |
1454 | bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; } | |
1455 | int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1456 | PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){ | |
1457 | PyObject* pyList = NULL; | |
1458 | wxArrayVideoModes arr = self->GetModes(mode); | |
4f89f6a3 | 1459 | bool blocked = wxPyBeginBlockThreads(); |
4276dc52 RD |
1460 | pyList = PyList_New(0); |
1461 | for (int i=0; i < arr.GetCount(); i++) { | |
1462 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
1463 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
1464 | PyList_Append(pyList, pyObj); | |
1465 | } | |
4f89f6a3 | 1466 | wxPyEndBlockThreads(blocked); |
4276dc52 RD |
1467 | return pyList; |
1468 | } | |
d14a1e28 RD |
1469 | #ifdef __cplusplus |
1470 | extern "C" { | |
1471 | #endif | |
1472 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1473 | PyObject *resultobj; | |
1474 | int arg1 ; | |
1475 | wxColour result; | |
994141e6 | 1476 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1477 | char *kwnames[] = { |
1478 | (char *) "index", NULL | |
1479 | }; | |
1480 | ||
994141e6 | 1481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1482 | arg1 = (wxSystemColour) SWIG_AsInt(obj0); |
1483 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1484 | { |
1485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1486 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1487 | ||
1488 | wxPyEndAllowThreads(__tstate); | |
1489 | if (PyErr_Occurred()) SWIG_fail; | |
1490 | } | |
1491 | { | |
1492 | wxColour * resultptr; | |
1493 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 1494 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1495 | } |
1496 | return resultobj; | |
1497 | fail: | |
1498 | return NULL; | |
1499 | } | |
1500 | ||
1501 | ||
1502 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1503 | PyObject *resultobj; | |
1504 | int arg1 ; | |
1505 | wxFont result; | |
994141e6 | 1506 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1507 | char *kwnames[] = { |
1508 | (char *) "index", NULL | |
1509 | }; | |
1510 | ||
994141e6 | 1511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1512 | arg1 = (wxSystemFont) SWIG_AsInt(obj0); |
1513 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1514 | { |
1515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1516 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1517 | ||
1518 | wxPyEndAllowThreads(__tstate); | |
1519 | if (PyErr_Occurred()) SWIG_fail; | |
1520 | } | |
1521 | { | |
1522 | wxFont * resultptr; | |
1523 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 1524 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
1525 | } |
1526 | return resultobj; | |
1527 | fail: | |
1528 | return NULL; | |
1529 | } | |
1530 | ||
1531 | ||
1532 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1533 | PyObject *resultobj; | |
1534 | int arg1 ; | |
1535 | int result; | |
994141e6 | 1536 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1537 | char *kwnames[] = { |
1538 | (char *) "index", NULL | |
1539 | }; | |
1540 | ||
994141e6 | 1541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1542 | arg1 = (wxSystemMetric) SWIG_AsInt(obj0); |
1543 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1544 | { |
1545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1546 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1547 | ||
1548 | wxPyEndAllowThreads(__tstate); | |
1549 | if (PyErr_Occurred()) SWIG_fail; | |
1550 | } | |
15afbcd0 | 1551 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1552 | return resultobj; |
1553 | fail: | |
1554 | return NULL; | |
1555 | } | |
1556 | ||
1557 | ||
1558 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1559 | PyObject *resultobj; | |
1560 | int arg1 ; | |
1561 | bool result; | |
994141e6 | 1562 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1563 | char *kwnames[] = { |
1564 | (char *) "index", NULL | |
1565 | }; | |
1566 | ||
994141e6 | 1567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1568 | arg1 = (wxSystemFeature) SWIG_AsInt(obj0); |
1569 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1570 | { |
1571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1572 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1573 | ||
1574 | wxPyEndAllowThreads(__tstate); | |
1575 | if (PyErr_Occurred()) SWIG_fail; | |
1576 | } | |
4f89f6a3 RD |
1577 | { |
1578 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1579 | } | |
d14a1e28 RD |
1580 | return resultobj; |
1581 | fail: | |
1582 | return NULL; | |
1583 | } | |
1584 | ||
1585 | ||
1586 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1587 | PyObject *resultobj; | |
1588 | int result; | |
1589 | char *kwnames[] = { | |
1590 | NULL | |
1591 | }; | |
1592 | ||
1593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1594 | { | |
1595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1596 | result = (int)wxSystemSettings::GetScreenType(); | |
1597 | ||
1598 | wxPyEndAllowThreads(__tstate); | |
1599 | if (PyErr_Occurred()) SWIG_fail; | |
1600 | } | |
15afbcd0 | 1601 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1602 | return resultobj; |
1603 | fail: | |
1604 | return NULL; | |
1605 | } | |
1606 | ||
1607 | ||
1608 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1609 | PyObject *resultobj; | |
1610 | int arg1 ; | |
994141e6 | 1611 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1612 | char *kwnames[] = { |
1613 | (char *) "screen", NULL | |
1614 | }; | |
1615 | ||
994141e6 | 1616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1617 | arg1 = (wxSystemScreenType) SWIG_AsInt(obj0); |
1618 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1619 | { |
1620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1621 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1622 | ||
1623 | wxPyEndAllowThreads(__tstate); | |
1624 | if (PyErr_Occurred()) SWIG_fail; | |
1625 | } | |
1626 | Py_INCREF(Py_None); resultobj = Py_None; | |
1627 | return resultobj; | |
1628 | fail: | |
1629 | return NULL; | |
1630 | } | |
1631 | ||
1632 | ||
1633 | static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { | |
1634 | PyObject *obj; | |
1635 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1636 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1637 | Py_INCREF(obj); | |
1638 | return Py_BuildValue((char *)""); | |
1639 | } | |
1640 | static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1641 | PyObject *resultobj; | |
1642 | wxSystemOptions *result; | |
1643 | char *kwnames[] = { | |
1644 | NULL | |
1645 | }; | |
1646 | ||
1647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1648 | { | |
1649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1650 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1651 | ||
1652 | wxPyEndAllowThreads(__tstate); | |
1653 | if (PyErr_Occurred()) SWIG_fail; | |
1654 | } | |
15afbcd0 | 1655 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); |
d14a1e28 RD |
1656 | return resultobj; |
1657 | fail: | |
1658 | return NULL; | |
1659 | } | |
1660 | ||
1661 | ||
1662 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1663 | PyObject *resultobj; | |
1664 | wxString *arg1 = 0 ; | |
1665 | wxString *arg2 = 0 ; | |
e811c8ce RD |
1666 | bool temp1 = False ; |
1667 | bool temp2 = False ; | |
d14a1e28 RD |
1668 | PyObject * obj0 = 0 ; |
1669 | PyObject * obj1 = 0 ; | |
1670 | char *kwnames[] = { | |
1671 | (char *) "name",(char *) "value", NULL | |
1672 | }; | |
1673 | ||
1674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1675 | { | |
1676 | arg1 = wxString_in_helper(obj0); | |
1677 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1678 | temp1 = True; |
d14a1e28 RD |
1679 | } |
1680 | { | |
1681 | arg2 = wxString_in_helper(obj1); | |
1682 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 1683 | temp2 = True; |
d14a1e28 RD |
1684 | } |
1685 | { | |
1686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1687 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
1688 | ||
1689 | wxPyEndAllowThreads(__tstate); | |
1690 | if (PyErr_Occurred()) SWIG_fail; | |
1691 | } | |
1692 | Py_INCREF(Py_None); resultobj = Py_None; | |
1693 | { | |
1694 | if (temp1) | |
1695 | delete arg1; | |
1696 | } | |
1697 | { | |
1698 | if (temp2) | |
1699 | delete arg2; | |
1700 | } | |
1701 | return resultobj; | |
1702 | fail: | |
1703 | { | |
1704 | if (temp1) | |
1705 | delete arg1; | |
1706 | } | |
1707 | { | |
1708 | if (temp2) | |
1709 | delete arg2; | |
1710 | } | |
1711 | return NULL; | |
1712 | } | |
1713 | ||
1714 | ||
1715 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1716 | PyObject *resultobj; | |
1717 | wxString *arg1 = 0 ; | |
1718 | int arg2 ; | |
e811c8ce | 1719 | bool temp1 = False ; |
d14a1e28 | 1720 | PyObject * obj0 = 0 ; |
994141e6 | 1721 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1722 | char *kwnames[] = { |
1723 | (char *) "name",(char *) "value", NULL | |
1724 | }; | |
1725 | ||
994141e6 | 1726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
1727 | { |
1728 | arg1 = wxString_in_helper(obj0); | |
1729 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1730 | temp1 = True; |
d14a1e28 | 1731 | } |
15afbcd0 RD |
1732 | arg2 = (int) SWIG_AsInt(obj1); |
1733 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1734 | { |
1735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1736 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
1737 | ||
1738 | wxPyEndAllowThreads(__tstate); | |
1739 | if (PyErr_Occurred()) SWIG_fail; | |
1740 | } | |
1741 | Py_INCREF(Py_None); resultobj = Py_None; | |
1742 | { | |
1743 | if (temp1) | |
1744 | delete arg1; | |
1745 | } | |
1746 | return resultobj; | |
1747 | fail: | |
1748 | { | |
1749 | if (temp1) | |
1750 | delete arg1; | |
1751 | } | |
1752 | return NULL; | |
1753 | } | |
1754 | ||
1755 | ||
1756 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1757 | PyObject *resultobj; | |
1758 | wxString *arg1 = 0 ; | |
1759 | wxString result; | |
e811c8ce | 1760 | bool temp1 = False ; |
d14a1e28 RD |
1761 | PyObject * obj0 = 0 ; |
1762 | char *kwnames[] = { | |
1763 | (char *) "name", NULL | |
1764 | }; | |
1765 | ||
1766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
1767 | { | |
1768 | arg1 = wxString_in_helper(obj0); | |
1769 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1770 | temp1 = True; |
d14a1e28 RD |
1771 | } |
1772 | { | |
1773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1774 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
1775 | ||
1776 | wxPyEndAllowThreads(__tstate); | |
1777 | if (PyErr_Occurred()) SWIG_fail; | |
1778 | } | |
1779 | { | |
1780 | #if wxUSE_UNICODE | |
1781 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1782 | #else | |
1783 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1784 | #endif | |
1785 | } | |
1786 | { | |
1787 | if (temp1) | |
1788 | delete arg1; | |
1789 | } | |
1790 | return resultobj; | |
1791 | fail: | |
1792 | { | |
1793 | if (temp1) | |
1794 | delete arg1; | |
1795 | } | |
1796 | return NULL; | |
1797 | } | |
1798 | ||
1799 | ||
1800 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1801 | PyObject *resultobj; | |
1802 | wxString *arg1 = 0 ; | |
1803 | int result; | |
e811c8ce | 1804 | bool temp1 = False ; |
d14a1e28 RD |
1805 | PyObject * obj0 = 0 ; |
1806 | char *kwnames[] = { | |
1807 | (char *) "name", NULL | |
1808 | }; | |
1809 | ||
1810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
1811 | { | |
1812 | arg1 = wxString_in_helper(obj0); | |
1813 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1814 | temp1 = True; |
d14a1e28 RD |
1815 | } |
1816 | { | |
1817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1818 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
1819 | ||
1820 | wxPyEndAllowThreads(__tstate); | |
1821 | if (PyErr_Occurred()) SWIG_fail; | |
1822 | } | |
15afbcd0 | 1823 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1824 | { |
1825 | if (temp1) | |
1826 | delete arg1; | |
1827 | } | |
1828 | return resultobj; | |
1829 | fail: | |
1830 | { | |
1831 | if (temp1) | |
1832 | delete arg1; | |
1833 | } | |
1834 | return NULL; | |
1835 | } | |
1836 | ||
1837 | ||
1838 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1839 | PyObject *resultobj; | |
1840 | wxString *arg1 = 0 ; | |
1841 | bool result; | |
e811c8ce | 1842 | bool temp1 = False ; |
d14a1e28 RD |
1843 | PyObject * obj0 = 0 ; |
1844 | char *kwnames[] = { | |
1845 | (char *) "name", NULL | |
1846 | }; | |
1847 | ||
1848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
1849 | { | |
1850 | arg1 = wxString_in_helper(obj0); | |
1851 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1852 | temp1 = True; |
d14a1e28 RD |
1853 | } |
1854 | { | |
1855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1856 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
1857 | ||
1858 | wxPyEndAllowThreads(__tstate); | |
1859 | if (PyErr_Occurred()) SWIG_fail; | |
1860 | } | |
4f89f6a3 RD |
1861 | { |
1862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1863 | } | |
d14a1e28 RD |
1864 | { |
1865 | if (temp1) | |
1866 | delete arg1; | |
1867 | } | |
1868 | return resultobj; | |
1869 | fail: | |
1870 | { | |
1871 | if (temp1) | |
1872 | delete arg1; | |
1873 | } | |
1874 | return NULL; | |
1875 | } | |
1876 | ||
1877 | ||
1878 | static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) { | |
1879 | PyObject *obj; | |
1880 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1881 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
1882 | Py_INCREF(obj); | |
1883 | return Py_BuildValue((char *)""); | |
1884 | } | |
b2dc1044 RD |
1885 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { |
1886 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
1887 | return 1; | |
1888 | } | |
1889 | ||
1890 | ||
1891 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
1892 | PyObject *pyobj; | |
1893 | ||
1894 | { | |
1895 | #if wxUSE_UNICODE | |
1896 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1897 | #else | |
1898 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1899 | #endif | |
1900 | } | |
1901 | return pyobj; | |
1902 | } | |
1903 | ||
1904 | ||
1905 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
1906 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
1907 | return 1; | |
1908 | } | |
1909 | ||
1910 | ||
1911 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
1912 | PyObject *pyobj; | |
1913 | ||
1914 | { | |
1915 | #if wxUSE_UNICODE | |
1916 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1917 | #else | |
1918 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1919 | #endif | |
1920 | } | |
1921 | return pyobj; | |
1922 | } | |
1923 | ||
1924 | ||
1925 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
1926 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
1927 | return 1; | |
1928 | } | |
1929 | ||
1930 | ||
1931 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
1932 | PyObject *pyobj; | |
1933 | ||
1934 | { | |
1935 | #if wxUSE_UNICODE | |
1936 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1937 | #else | |
1938 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1939 | #endif | |
1940 | } | |
1941 | return pyobj; | |
1942 | } | |
1943 | ||
1944 | ||
d14a1e28 RD |
1945 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { |
1946 | PyObject *resultobj; | |
1947 | long result; | |
1948 | char *kwnames[] = { | |
1949 | NULL | |
1950 | }; | |
1951 | ||
1952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
1953 | { | |
1954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1955 | result = (long)wxNewId(); | |
1956 | ||
1957 | wxPyEndAllowThreads(__tstate); | |
1958 | if (PyErr_Occurred()) SWIG_fail; | |
1959 | } | |
15afbcd0 | 1960 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
1961 | return resultobj; |
1962 | fail: | |
1963 | return NULL; | |
1964 | } | |
1965 | ||
1966 | ||
1967 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1968 | PyObject *resultobj; | |
1969 | long arg1 ; | |
994141e6 | 1970 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1971 | char *kwnames[] = { |
1972 | (char *) "id", NULL | |
1973 | }; | |
1974 | ||
994141e6 | 1975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1976 | arg1 = (long) SWIG_AsLong(obj0); |
1977 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1978 | { |
1979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1980 | wxRegisterId(arg1); | |
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_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1993 | PyObject *resultobj; | |
1994 | long result; | |
1995 | char *kwnames[] = { | |
1996 | NULL | |
1997 | }; | |
1998 | ||
1999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
2000 | { | |
2001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2002 | result = (long)wxGetCurrentId(); | |
2003 | ||
2004 | wxPyEndAllowThreads(__tstate); | |
2005 | if (PyErr_Occurred()) SWIG_fail; | |
2006 | } | |
15afbcd0 | 2007 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2008 | return resultobj; |
2009 | fail: | |
2010 | return NULL; | |
2011 | } | |
2012 | ||
2013 | ||
2014 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2015 | PyObject *resultobj; | |
2016 | char *kwnames[] = { | |
2017 | NULL | |
2018 | }; | |
2019 | ||
2020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
2021 | { | |
2022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2023 | wxBell(); | |
2024 | ||
2025 | wxPyEndAllowThreads(__tstate); | |
2026 | if (PyErr_Occurred()) SWIG_fail; | |
2027 | } | |
2028 | Py_INCREF(Py_None); resultobj = Py_None; | |
2029 | return resultobj; | |
2030 | fail: | |
2031 | return NULL; | |
2032 | } | |
2033 | ||
2034 | ||
2035 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2036 | PyObject *resultobj; | |
2037 | char *kwnames[] = { | |
2038 | NULL | |
2039 | }; | |
2040 | ||
2041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
2042 | { | |
2043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2044 | wxEndBusyCursor(); | |
2045 | ||
2046 | wxPyEndAllowThreads(__tstate); | |
2047 | if (PyErr_Occurred()) SWIG_fail; | |
2048 | } | |
2049 | Py_INCREF(Py_None); resultobj = Py_None; | |
2050 | return resultobj; | |
2051 | fail: | |
2052 | return NULL; | |
2053 | } | |
2054 | ||
2055 | ||
2056 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2057 | PyObject *resultobj; | |
e811c8ce | 2058 | bool arg1 = (bool) True ; |
d14a1e28 RD |
2059 | long result; |
2060 | PyObject * obj0 = 0 ; | |
2061 | char *kwnames[] = { | |
2062 | (char *) "resetTimer", NULL | |
2063 | }; | |
2064 | ||
2065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
2066 | if (obj0) { | |
15afbcd0 RD |
2067 | arg1 = (bool) SWIG_AsBool(obj0); |
2068 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2069 | } |
2070 | { | |
2071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2072 | result = (long)wxGetElapsedTime(arg1); | |
2073 | ||
2074 | wxPyEndAllowThreads(__tstate); | |
2075 | if (PyErr_Occurred()) SWIG_fail; | |
2076 | } | |
15afbcd0 | 2077 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2078 | return resultobj; |
2079 | fail: | |
2080 | return NULL; | |
2081 | } | |
2082 | ||
2083 | ||
2084 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2085 | PyObject *resultobj; | |
2086 | int *arg1 = (int *) 0 ; | |
2087 | int *arg2 = (int *) 0 ; | |
2088 | int temp1 ; | |
2089 | int temp2 ; | |
2090 | char *kwnames[] = { | |
2091 | NULL | |
2092 | }; | |
2093 | ||
2094 | arg1 = &temp1; | |
2095 | arg2 = &temp2; | |
2096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
2097 | { | |
2098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2099 | wxGetMousePosition(arg1,arg2); | |
2100 | ||
2101 | wxPyEndAllowThreads(__tstate); | |
2102 | if (PyErr_Occurred()) SWIG_fail; | |
2103 | } | |
2104 | Py_INCREF(Py_None); resultobj = Py_None; | |
2105 | { | |
2106 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2107 | resultobj = t_output_helper(resultobj,o); | |
2108 | } | |
2109 | { | |
2110 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2111 | resultobj = t_output_helper(resultobj,o); | |
2112 | } | |
2113 | return resultobj; | |
2114 | fail: | |
2115 | return NULL; | |
2116 | } | |
2117 | ||
2118 | ||
2119 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2120 | PyObject *resultobj; | |
2121 | bool result; | |
2122 | char *kwnames[] = { | |
2123 | NULL | |
2124 | }; | |
2125 | ||
2126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
2127 | { | |
2128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2129 | result = (bool)wxIsBusy(); | |
2130 | ||
2131 | wxPyEndAllowThreads(__tstate); | |
2132 | if (PyErr_Occurred()) SWIG_fail; | |
2133 | } | |
4f89f6a3 RD |
2134 | { |
2135 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2136 | } | |
d14a1e28 RD |
2137 | return resultobj; |
2138 | fail: | |
2139 | return NULL; | |
2140 | } | |
2141 | ||
2142 | ||
2143 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2144 | PyObject *resultobj; | |
2145 | wxString result; | |
2146 | char *kwnames[] = { | |
2147 | NULL | |
2148 | }; | |
2149 | ||
2150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
2151 | { | |
2152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2153 | result = wxNow(); | |
2154 | ||
2155 | wxPyEndAllowThreads(__tstate); | |
2156 | if (PyErr_Occurred()) SWIG_fail; | |
2157 | } | |
2158 | { | |
2159 | #if wxUSE_UNICODE | |
2160 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2161 | #else | |
2162 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2163 | #endif | |
2164 | } | |
2165 | return resultobj; | |
2166 | fail: | |
2167 | return NULL; | |
2168 | } | |
2169 | ||
2170 | ||
2171 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2172 | PyObject *resultobj; | |
2173 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2174 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2175 | bool result; | |
e811c8ce | 2176 | bool temp1 = False ; |
d14a1e28 RD |
2177 | PyObject * obj0 = 0 ; |
2178 | char *kwnames[] = { | |
2179 | (char *) "command", NULL | |
2180 | }; | |
2181 | ||
2182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
2183 | if (obj0) { | |
2184 | { | |
2185 | arg1 = wxString_in_helper(obj0); | |
2186 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2187 | temp1 = True; |
d14a1e28 RD |
2188 | } |
2189 | } | |
2190 | { | |
2191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2192 | result = (bool)wxShell((wxString const &)*arg1); | |
2193 | ||
2194 | wxPyEndAllowThreads(__tstate); | |
2195 | if (PyErr_Occurred()) SWIG_fail; | |
2196 | } | |
4f89f6a3 RD |
2197 | { |
2198 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2199 | } | |
d14a1e28 RD |
2200 | { |
2201 | if (temp1) | |
2202 | delete arg1; | |
2203 | } | |
2204 | return resultobj; | |
2205 | fail: | |
2206 | { | |
2207 | if (temp1) | |
2208 | delete arg1; | |
2209 | } | |
2210 | return NULL; | |
2211 | } | |
2212 | ||
2213 | ||
2214 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2215 | PyObject *resultobj; | |
2216 | char *kwnames[] = { | |
2217 | NULL | |
2218 | }; | |
2219 | ||
2220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2221 | { | |
2222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2223 | wxStartTimer(); | |
2224 | ||
2225 | wxPyEndAllowThreads(__tstate); | |
2226 | if (PyErr_Occurred()) SWIG_fail; | |
2227 | } | |
2228 | Py_INCREF(Py_None); resultobj = Py_None; | |
2229 | return resultobj; | |
2230 | fail: | |
2231 | return NULL; | |
2232 | } | |
2233 | ||
2234 | ||
2235 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2236 | PyObject *resultobj; | |
2237 | int *arg1 = (int *) 0 ; | |
2238 | int *arg2 = (int *) 0 ; | |
2239 | int result; | |
2240 | int temp1 ; | |
2241 | int temp2 ; | |
2242 | char *kwnames[] = { | |
2243 | NULL | |
2244 | }; | |
2245 | ||
2246 | arg1 = &temp1; | |
2247 | arg2 = &temp2; | |
2248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
2249 | { | |
2250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2251 | result = (int)wxGetOsVersion(arg1,arg2); | |
2252 | ||
2253 | wxPyEndAllowThreads(__tstate); | |
2254 | if (PyErr_Occurred()) SWIG_fail; | |
2255 | } | |
15afbcd0 | 2256 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2257 | { |
2258 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2259 | resultobj = t_output_helper(resultobj,o); | |
2260 | } | |
2261 | { | |
2262 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2263 | resultobj = t_output_helper(resultobj,o); | |
2264 | } | |
2265 | return resultobj; | |
2266 | fail: | |
2267 | return NULL; | |
2268 | } | |
2269 | ||
2270 | ||
2271 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2272 | PyObject *resultobj; | |
2273 | wxString result; | |
2274 | char *kwnames[] = { | |
2275 | NULL | |
2276 | }; | |
2277 | ||
2278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2279 | { | |
2280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2281 | result = wxGetOsDescription(); | |
2282 | ||
2283 | wxPyEndAllowThreads(__tstate); | |
2284 | if (PyErr_Occurred()) SWIG_fail; | |
2285 | } | |
2286 | { | |
2287 | #if wxUSE_UNICODE | |
2288 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2289 | #else | |
2290 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2291 | #endif | |
2292 | } | |
2293 | return resultobj; | |
2294 | fail: | |
2295 | return NULL; | |
2296 | } | |
2297 | ||
2298 | ||
2299 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2300 | PyObject *resultobj; | |
2301 | long result; | |
2302 | char *kwnames[] = { | |
2303 | NULL | |
2304 | }; | |
2305 | ||
2306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2307 | { | |
2308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2309 | result = (long)wxGetFreeMemory(); | |
2310 | ||
2311 | wxPyEndAllowThreads(__tstate); | |
2312 | if (PyErr_Occurred()) SWIG_fail; | |
2313 | } | |
15afbcd0 | 2314 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2315 | return resultobj; |
2316 | fail: | |
2317 | return NULL; | |
2318 | } | |
2319 | ||
2320 | ||
2321 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2322 | PyObject *resultobj; | |
2323 | int arg1 ; | |
2324 | bool result; | |
994141e6 | 2325 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2326 | char *kwnames[] = { |
2327 | (char *) "wFlags", NULL | |
2328 | }; | |
2329 | ||
994141e6 | 2330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2331 | arg1 = (wxShutdownFlags) SWIG_AsInt(obj0); |
2332 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2333 | { |
2334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2335 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2336 | ||
2337 | wxPyEndAllowThreads(__tstate); | |
2338 | if (PyErr_Occurred()) SWIG_fail; | |
2339 | } | |
4f89f6a3 RD |
2340 | { |
2341 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2342 | } | |
d14a1e28 RD |
2343 | return resultobj; |
2344 | fail: | |
2345 | return NULL; | |
2346 | } | |
2347 | ||
2348 | ||
2349 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2350 | PyObject *resultobj; | |
2351 | int arg1 ; | |
994141e6 | 2352 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2353 | char *kwnames[] = { |
2354 | (char *) "secs", NULL | |
2355 | }; | |
2356 | ||
994141e6 | 2357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2358 | arg1 = (int) SWIG_AsInt(obj0); |
2359 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2360 | { |
2361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2362 | wxSleep(arg1); | |
2363 | ||
2364 | wxPyEndAllowThreads(__tstate); | |
2365 | if (PyErr_Occurred()) SWIG_fail; | |
2366 | } | |
2367 | Py_INCREF(Py_None); resultobj = Py_None; | |
2368 | return resultobj; | |
2369 | fail: | |
2370 | return NULL; | |
2371 | } | |
2372 | ||
2373 | ||
2374 | static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2375 | PyObject *resultobj; | |
2376 | unsigned long arg1 ; | |
2377 | PyObject * obj0 = 0 ; | |
2378 | char *kwnames[] = { | |
2379 | (char *) "milliseconds", NULL | |
2380 | }; | |
2381 | ||
2382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2383 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
2384 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2385 | { |
2386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2387 | wxUsleep(arg1); | |
2388 | ||
2389 | wxPyEndAllowThreads(__tstate); | |
2390 | if (PyErr_Occurred()) SWIG_fail; | |
2391 | } | |
2392 | Py_INCREF(Py_None); resultobj = Py_None; | |
2393 | return resultobj; | |
2394 | fail: | |
2395 | return NULL; | |
2396 | } | |
2397 | ||
2398 | ||
2399 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2400 | PyObject *resultobj; | |
2401 | bool arg1 ; | |
2402 | PyObject * obj0 = 0 ; | |
2403 | char *kwnames[] = { | |
2404 | (char *) "enable", NULL | |
2405 | }; | |
2406 | ||
2407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2408 | arg1 = (bool) SWIG_AsBool(obj0); |
2409 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2410 | { |
2411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2412 | wxEnableTopLevelWindows(arg1); | |
2413 | ||
2414 | wxPyEndAllowThreads(__tstate); | |
2415 | if (PyErr_Occurred()) SWIG_fail; | |
2416 | } | |
2417 | Py_INCREF(Py_None); resultobj = Py_None; | |
2418 | return resultobj; | |
2419 | fail: | |
2420 | return NULL; | |
2421 | } | |
2422 | ||
2423 | ||
2424 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2425 | PyObject *resultobj; | |
2426 | wxString *arg1 = 0 ; | |
2427 | wxString result; | |
e811c8ce | 2428 | bool temp1 = False ; |
d14a1e28 RD |
2429 | PyObject * obj0 = 0 ; |
2430 | char *kwnames[] = { | |
2431 | (char *) "in", NULL | |
2432 | }; | |
2433 | ||
2434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2435 | { | |
2436 | arg1 = wxString_in_helper(obj0); | |
2437 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2438 | temp1 = True; |
d14a1e28 RD |
2439 | } |
2440 | { | |
2441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2442 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2443 | ||
2444 | wxPyEndAllowThreads(__tstate); | |
2445 | if (PyErr_Occurred()) SWIG_fail; | |
2446 | } | |
2447 | { | |
2448 | #if wxUSE_UNICODE | |
2449 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2450 | #else | |
2451 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2452 | #endif | |
2453 | } | |
2454 | { | |
2455 | if (temp1) | |
2456 | delete arg1; | |
2457 | } | |
2458 | return resultobj; | |
2459 | fail: | |
2460 | { | |
2461 | if (temp1) | |
2462 | delete arg1; | |
2463 | } | |
2464 | return NULL; | |
2465 | } | |
2466 | ||
2467 | ||
2468 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2469 | PyObject *resultobj; | |
2470 | wxString result; | |
2471 | char *kwnames[] = { | |
2472 | NULL | |
2473 | }; | |
2474 | ||
2475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2476 | { | |
2477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2478 | result = wxGetEmailAddress(); | |
2479 | ||
2480 | wxPyEndAllowThreads(__tstate); | |
2481 | if (PyErr_Occurred()) SWIG_fail; | |
2482 | } | |
2483 | { | |
2484 | #if wxUSE_UNICODE | |
2485 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2486 | #else | |
2487 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2488 | #endif | |
2489 | } | |
2490 | return resultobj; | |
2491 | fail: | |
2492 | return NULL; | |
2493 | } | |
2494 | ||
2495 | ||
2496 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2497 | PyObject *resultobj; | |
2498 | wxString result; | |
2499 | char *kwnames[] = { | |
2500 | NULL | |
2501 | }; | |
2502 | ||
2503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2504 | { | |
2505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2506 | result = wxGetHostName(); | |
2507 | ||
2508 | wxPyEndAllowThreads(__tstate); | |
2509 | if (PyErr_Occurred()) SWIG_fail; | |
2510 | } | |
2511 | { | |
2512 | #if wxUSE_UNICODE | |
2513 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2514 | #else | |
2515 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2516 | #endif | |
2517 | } | |
2518 | return resultobj; | |
2519 | fail: | |
2520 | return NULL; | |
2521 | } | |
2522 | ||
2523 | ||
2524 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2525 | PyObject *resultobj; | |
2526 | wxString result; | |
2527 | char *kwnames[] = { | |
2528 | NULL | |
2529 | }; | |
2530 | ||
2531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2532 | { | |
2533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2534 | result = wxGetFullHostName(); | |
2535 | ||
2536 | wxPyEndAllowThreads(__tstate); | |
2537 | if (PyErr_Occurred()) SWIG_fail; | |
2538 | } | |
2539 | { | |
2540 | #if wxUSE_UNICODE | |
2541 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2542 | #else | |
2543 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2544 | #endif | |
2545 | } | |
2546 | return resultobj; | |
2547 | fail: | |
2548 | return NULL; | |
2549 | } | |
2550 | ||
2551 | ||
2552 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2553 | PyObject *resultobj; | |
2554 | wxString result; | |
2555 | char *kwnames[] = { | |
2556 | NULL | |
2557 | }; | |
2558 | ||
2559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2560 | { | |
2561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2562 | result = wxGetUserId(); | |
2563 | ||
2564 | wxPyEndAllowThreads(__tstate); | |
2565 | if (PyErr_Occurred()) SWIG_fail; | |
2566 | } | |
2567 | { | |
2568 | #if wxUSE_UNICODE | |
2569 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2570 | #else | |
2571 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2572 | #endif | |
2573 | } | |
2574 | return resultobj; | |
2575 | fail: | |
2576 | return NULL; | |
2577 | } | |
2578 | ||
2579 | ||
2580 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2581 | PyObject *resultobj; | |
2582 | wxString result; | |
2583 | char *kwnames[] = { | |
2584 | NULL | |
2585 | }; | |
2586 | ||
2587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2588 | { | |
2589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2590 | result = wxGetUserName(); | |
2591 | ||
2592 | wxPyEndAllowThreads(__tstate); | |
2593 | if (PyErr_Occurred()) SWIG_fail; | |
2594 | } | |
2595 | { | |
2596 | #if wxUSE_UNICODE | |
2597 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2598 | #else | |
2599 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2600 | #endif | |
2601 | } | |
2602 | return resultobj; | |
2603 | fail: | |
2604 | return NULL; | |
2605 | } | |
2606 | ||
2607 | ||
2608 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2609 | PyObject *resultobj; | |
2610 | wxString result; | |
2611 | char *kwnames[] = { | |
2612 | NULL | |
2613 | }; | |
2614 | ||
2615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2616 | { | |
2617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2618 | result = wxGetHomeDir(); | |
2619 | ||
2620 | wxPyEndAllowThreads(__tstate); | |
2621 | if (PyErr_Occurred()) SWIG_fail; | |
2622 | } | |
2623 | { | |
2624 | #if wxUSE_UNICODE | |
2625 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2626 | #else | |
2627 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2628 | #endif | |
2629 | } | |
2630 | return resultobj; | |
2631 | fail: | |
2632 | return NULL; | |
2633 | } | |
2634 | ||
2635 | ||
2636 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2637 | PyObject *resultobj; | |
2638 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2639 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2640 | wxString result; | |
e811c8ce | 2641 | bool temp1 = False ; |
d14a1e28 RD |
2642 | PyObject * obj0 = 0 ; |
2643 | char *kwnames[] = { | |
2644 | (char *) "user", NULL | |
2645 | }; | |
2646 | ||
2647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2648 | if (obj0) { | |
2649 | { | |
2650 | arg1 = wxString_in_helper(obj0); | |
2651 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2652 | temp1 = True; |
d14a1e28 RD |
2653 | } |
2654 | } | |
2655 | { | |
2656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2657 | result = wxGetUserHome((wxString const &)*arg1); | |
2658 | ||
2659 | wxPyEndAllowThreads(__tstate); | |
2660 | if (PyErr_Occurred()) SWIG_fail; | |
2661 | } | |
2662 | { | |
2663 | #if wxUSE_UNICODE | |
2664 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2665 | #else | |
2666 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2667 | #endif | |
2668 | } | |
2669 | { | |
2670 | if (temp1) | |
2671 | delete arg1; | |
2672 | } | |
2673 | return resultobj; | |
2674 | fail: | |
2675 | { | |
2676 | if (temp1) | |
2677 | delete arg1; | |
2678 | } | |
2679 | return NULL; | |
2680 | } | |
2681 | ||
2682 | ||
2683 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2684 | PyObject *resultobj; | |
2685 | unsigned long result; | |
2686 | char *kwnames[] = { | |
2687 | NULL | |
2688 | }; | |
2689 | ||
2690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2691 | { | |
2692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2693 | result = (unsigned long)wxGetProcessId(); | |
2694 | ||
2695 | wxPyEndAllowThreads(__tstate); | |
2696 | if (PyErr_Occurred()) SWIG_fail; | |
2697 | } | |
15afbcd0 | 2698 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
2699 | return resultobj; |
2700 | fail: | |
2701 | return NULL; | |
2702 | } | |
2703 | ||
2704 | ||
2705 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2706 | PyObject *resultobj; | |
2707 | char *kwnames[] = { | |
2708 | NULL | |
2709 | }; | |
2710 | ||
2711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
2712 | { | |
2713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2714 | wxTrap(); | |
2715 | ||
2716 | wxPyEndAllowThreads(__tstate); | |
2717 | if (PyErr_Occurred()) SWIG_fail; | |
2718 | } | |
2719 | Py_INCREF(Py_None); resultobj = Py_None; | |
2720 | return resultobj; | |
2721 | fail: | |
2722 | return NULL; | |
2723 | } | |
2724 | ||
2725 | ||
2726 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2727 | PyObject *resultobj; | |
2728 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
2729 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2730 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2731 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2732 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2733 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2734 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2735 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2736 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
2737 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2738 | int arg6 = (int) 0 ; | |
2739 | wxWindow *arg7 = (wxWindow *) NULL ; | |
2740 | int arg8 = (int) -1 ; | |
2741 | int arg9 = (int) -1 ; | |
2742 | wxString result; | |
e811c8ce RD |
2743 | bool temp1 = False ; |
2744 | bool temp2 = False ; | |
2745 | bool temp3 = False ; | |
2746 | bool temp4 = False ; | |
2747 | bool temp5 = False ; | |
d14a1e28 RD |
2748 | PyObject * obj0 = 0 ; |
2749 | PyObject * obj1 = 0 ; | |
2750 | PyObject * obj2 = 0 ; | |
2751 | PyObject * obj3 = 0 ; | |
2752 | PyObject * obj4 = 0 ; | |
994141e6 | 2753 | PyObject * obj5 = 0 ; |
d14a1e28 | 2754 | PyObject * obj6 = 0 ; |
994141e6 RD |
2755 | PyObject * obj7 = 0 ; |
2756 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
2757 | char *kwnames[] = { |
2758 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
2759 | }; | |
2760 | ||
994141e6 | 2761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
2762 | if (obj0) { |
2763 | { | |
2764 | arg1 = wxString_in_helper(obj0); | |
2765 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2766 | temp1 = True; |
d14a1e28 RD |
2767 | } |
2768 | } | |
2769 | if (obj1) { | |
2770 | { | |
2771 | arg2 = wxString_in_helper(obj1); | |
2772 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2773 | temp2 = True; |
d14a1e28 RD |
2774 | } |
2775 | } | |
2776 | if (obj2) { | |
2777 | { | |
2778 | arg3 = wxString_in_helper(obj2); | |
2779 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2780 | temp3 = True; |
d14a1e28 RD |
2781 | } |
2782 | } | |
2783 | if (obj3) { | |
2784 | { | |
2785 | arg4 = wxString_in_helper(obj3); | |
2786 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 2787 | temp4 = True; |
d14a1e28 RD |
2788 | } |
2789 | } | |
2790 | if (obj4) { | |
2791 | { | |
2792 | arg5 = wxString_in_helper(obj4); | |
2793 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 2794 | temp5 = True; |
d14a1e28 RD |
2795 | } |
2796 | } | |
994141e6 | 2797 | if (obj5) { |
15afbcd0 RD |
2798 | arg6 = (int) SWIG_AsInt(obj5); |
2799 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2800 | } |
d14a1e28 | 2801 | if (obj6) { |
15afbcd0 RD |
2802 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, |
2803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 2804 | } |
994141e6 | 2805 | if (obj7) { |
15afbcd0 RD |
2806 | arg8 = (int) SWIG_AsInt(obj7); |
2807 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
2808 | } |
2809 | if (obj8) { | |
15afbcd0 RD |
2810 | arg9 = (int) SWIG_AsInt(obj8); |
2811 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2812 | } |
d14a1e28 RD |
2813 | { |
2814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2815 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
2816 | ||
2817 | wxPyEndAllowThreads(__tstate); | |
2818 | if (PyErr_Occurred()) SWIG_fail; | |
2819 | } | |
2820 | { | |
2821 | #if wxUSE_UNICODE | |
2822 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2823 | #else | |
2824 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2825 | #endif | |
2826 | } | |
2827 | { | |
2828 | if (temp1) | |
2829 | delete arg1; | |
2830 | } | |
2831 | { | |
2832 | if (temp2) | |
2833 | delete arg2; | |
2834 | } | |
2835 | { | |
2836 | if (temp3) | |
2837 | delete arg3; | |
2838 | } | |
2839 | { | |
2840 | if (temp4) | |
2841 | delete arg4; | |
2842 | } | |
2843 | { | |
2844 | if (temp5) | |
2845 | delete arg5; | |
2846 | } | |
2847 | return resultobj; | |
2848 | fail: | |
2849 | { | |
2850 | if (temp1) | |
2851 | delete arg1; | |
2852 | } | |
2853 | { | |
2854 | if (temp2) | |
2855 | delete arg2; | |
2856 | } | |
2857 | { | |
2858 | if (temp3) | |
2859 | delete arg3; | |
2860 | } | |
2861 | { | |
2862 | if (temp4) | |
2863 | delete arg4; | |
2864 | } | |
2865 | { | |
2866 | if (temp5) | |
2867 | delete arg5; | |
2868 | } | |
2869 | return NULL; | |
2870 | } | |
2871 | ||
2872 | ||
2873 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2874 | PyObject *resultobj; | |
2875 | wxString *arg1 = 0 ; | |
2876 | wxString *arg2 = 0 ; | |
2877 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2878 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2879 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2880 | wxString result; | |
e811c8ce RD |
2881 | bool temp1 = False ; |
2882 | bool temp2 = False ; | |
2883 | bool temp3 = False ; | |
d14a1e28 RD |
2884 | PyObject * obj0 = 0 ; |
2885 | PyObject * obj1 = 0 ; | |
2886 | PyObject * obj2 = 0 ; | |
2887 | PyObject * obj3 = 0 ; | |
2888 | char *kwnames[] = { | |
2889 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2890 | }; | |
2891 | ||
2892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2893 | { | |
2894 | arg1 = wxString_in_helper(obj0); | |
2895 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2896 | temp1 = True; |
d14a1e28 RD |
2897 | } |
2898 | { | |
2899 | arg2 = wxString_in_helper(obj1); | |
2900 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2901 | temp2 = True; |
d14a1e28 RD |
2902 | } |
2903 | if (obj2) { | |
2904 | { | |
2905 | arg3 = wxString_in_helper(obj2); | |
2906 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2907 | temp3 = True; |
d14a1e28 RD |
2908 | } |
2909 | } | |
2910 | if (obj3) { | |
15afbcd0 RD |
2911 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
2912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2913 | } |
2914 | { | |
2915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2916 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2917 | ||
2918 | wxPyEndAllowThreads(__tstate); | |
2919 | if (PyErr_Occurred()) SWIG_fail; | |
2920 | } | |
2921 | { | |
2922 | #if wxUSE_UNICODE | |
2923 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2924 | #else | |
2925 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2926 | #endif | |
2927 | } | |
2928 | { | |
2929 | if (temp1) | |
2930 | delete arg1; | |
2931 | } | |
2932 | { | |
2933 | if (temp2) | |
2934 | delete arg2; | |
2935 | } | |
2936 | { | |
2937 | if (temp3) | |
2938 | delete arg3; | |
2939 | } | |
2940 | return resultobj; | |
2941 | fail: | |
2942 | { | |
2943 | if (temp1) | |
2944 | delete arg1; | |
2945 | } | |
2946 | { | |
2947 | if (temp2) | |
2948 | delete arg2; | |
2949 | } | |
2950 | { | |
2951 | if (temp3) | |
2952 | delete arg3; | |
2953 | } | |
2954 | return NULL; | |
2955 | } | |
2956 | ||
2957 | ||
2958 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2959 | PyObject *resultobj; | |
2960 | wxString *arg1 = 0 ; | |
2961 | wxString *arg2 = 0 ; | |
2962 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2963 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2964 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2965 | wxString result; | |
e811c8ce RD |
2966 | bool temp1 = False ; |
2967 | bool temp2 = False ; | |
2968 | bool temp3 = False ; | |
d14a1e28 RD |
2969 | PyObject * obj0 = 0 ; |
2970 | PyObject * obj1 = 0 ; | |
2971 | PyObject * obj2 = 0 ; | |
2972 | PyObject * obj3 = 0 ; | |
2973 | char *kwnames[] = { | |
2974 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2975 | }; | |
2976 | ||
2977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2978 | { | |
2979 | arg1 = wxString_in_helper(obj0); | |
2980 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2981 | temp1 = True; |
d14a1e28 RD |
2982 | } |
2983 | { | |
2984 | arg2 = wxString_in_helper(obj1); | |
2985 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2986 | temp2 = True; |
d14a1e28 RD |
2987 | } |
2988 | if (obj2) { | |
2989 | { | |
2990 | arg3 = wxString_in_helper(obj2); | |
2991 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2992 | temp3 = True; |
d14a1e28 RD |
2993 | } |
2994 | } | |
2995 | if (obj3) { | |
15afbcd0 RD |
2996 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
2997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2998 | } |
2999 | { | |
3000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3001 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3002 | ||
3003 | wxPyEndAllowThreads(__tstate); | |
3004 | if (PyErr_Occurred()) SWIG_fail; | |
3005 | } | |
3006 | { | |
3007 | #if wxUSE_UNICODE | |
3008 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3009 | #else | |
3010 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3011 | #endif | |
3012 | } | |
3013 | { | |
3014 | if (temp1) | |
3015 | delete arg1; | |
3016 | } | |
3017 | { | |
3018 | if (temp2) | |
3019 | delete arg2; | |
3020 | } | |
3021 | { | |
3022 | if (temp3) | |
3023 | delete arg3; | |
3024 | } | |
3025 | return resultobj; | |
3026 | fail: | |
3027 | { | |
3028 | if (temp1) | |
3029 | delete arg1; | |
3030 | } | |
3031 | { | |
3032 | if (temp2) | |
3033 | delete arg2; | |
3034 | } | |
3035 | { | |
3036 | if (temp3) | |
3037 | delete arg3; | |
3038 | } | |
3039 | return NULL; | |
3040 | } | |
3041 | ||
3042 | ||
3043 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3044 | PyObject *resultobj; | |
3045 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
3046 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3047 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3048 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3049 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
3050 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3051 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3052 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3053 | wxString result; | |
e811c8ce RD |
3054 | bool temp1 = False ; |
3055 | bool temp2 = False ; | |
d14a1e28 RD |
3056 | wxPoint temp4 ; |
3057 | PyObject * obj0 = 0 ; | |
3058 | PyObject * obj1 = 0 ; | |
994141e6 | 3059 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3060 | PyObject * obj3 = 0 ; |
3061 | PyObject * obj4 = 0 ; | |
3062 | char *kwnames[] = { | |
3063 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
3064 | }; | |
3065 | ||
994141e6 | 3066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
3067 | if (obj0) { |
3068 | { | |
3069 | arg1 = wxString_in_helper(obj0); | |
3070 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3071 | temp1 = True; |
d14a1e28 RD |
3072 | } |
3073 | } | |
3074 | if (obj1) { | |
3075 | { | |
3076 | arg2 = wxString_in_helper(obj1); | |
3077 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3078 | temp2 = True; |
d14a1e28 RD |
3079 | } |
3080 | } | |
994141e6 | 3081 | if (obj2) { |
15afbcd0 RD |
3082 | arg3 = (long) SWIG_AsLong(obj2); |
3083 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3084 | } |
d14a1e28 RD |
3085 | if (obj3) { |
3086 | { | |
3087 | arg4 = &temp4; | |
3088 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3089 | } | |
3090 | } | |
3091 | if (obj4) { | |
15afbcd0 RD |
3092 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3094 | } |
3095 | { | |
3096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3097 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
3098 | ||
3099 | wxPyEndAllowThreads(__tstate); | |
3100 | if (PyErr_Occurred()) SWIG_fail; | |
3101 | } | |
3102 | { | |
3103 | #if wxUSE_UNICODE | |
3104 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3105 | #else | |
3106 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3107 | #endif | |
3108 | } | |
3109 | { | |
3110 | if (temp1) | |
3111 | delete arg1; | |
3112 | } | |
3113 | { | |
3114 | if (temp2) | |
3115 | delete arg2; | |
3116 | } | |
3117 | return resultobj; | |
3118 | fail: | |
3119 | { | |
3120 | if (temp1) | |
3121 | delete arg1; | |
3122 | } | |
3123 | { | |
3124 | if (temp2) | |
3125 | delete arg2; | |
3126 | } | |
3127 | return NULL; | |
3128 | } | |
3129 | ||
3130 | ||
3131 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3132 | PyObject *resultobj; | |
3133 | wxString *arg1 = 0 ; | |
3134 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3135 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3136 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3137 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3138 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3139 | int arg5 = (int) -1 ; | |
3140 | int arg6 = (int) -1 ; | |
e811c8ce | 3141 | bool arg7 = (bool) True ; |
d14a1e28 | 3142 | wxString result; |
e811c8ce RD |
3143 | bool temp1 = False ; |
3144 | bool temp2 = False ; | |
3145 | bool temp3 = False ; | |
d14a1e28 RD |
3146 | PyObject * obj0 = 0 ; |
3147 | PyObject * obj1 = 0 ; | |
3148 | PyObject * obj2 = 0 ; | |
3149 | PyObject * obj3 = 0 ; | |
994141e6 RD |
3150 | PyObject * obj4 = 0 ; |
3151 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
3152 | PyObject * obj6 = 0 ; |
3153 | char *kwnames[] = { | |
3154 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
3155 | }; | |
3156 | ||
994141e6 | 3157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
3158 | { |
3159 | arg1 = wxString_in_helper(obj0); | |
3160 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3161 | temp1 = True; |
d14a1e28 RD |
3162 | } |
3163 | if (obj1) { | |
3164 | { | |
3165 | arg2 = wxString_in_helper(obj1); | |
3166 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3167 | temp2 = True; |
d14a1e28 RD |
3168 | } |
3169 | } | |
3170 | if (obj2) { | |
3171 | { | |
3172 | arg3 = wxString_in_helper(obj2); | |
3173 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3174 | temp3 = True; |
d14a1e28 RD |
3175 | } |
3176 | } | |
3177 | if (obj3) { | |
15afbcd0 RD |
3178 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3180 | } |
994141e6 | 3181 | if (obj4) { |
15afbcd0 RD |
3182 | arg5 = (int) SWIG_AsInt(obj4); |
3183 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3184 | } |
3185 | if (obj5) { | |
15afbcd0 RD |
3186 | arg6 = (int) SWIG_AsInt(obj5); |
3187 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3188 | } |
d14a1e28 | 3189 | if (obj6) { |
15afbcd0 RD |
3190 | arg7 = (bool) SWIG_AsBool(obj6); |
3191 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3192 | } |
3193 | { | |
3194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3195 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
3196 | ||
3197 | wxPyEndAllowThreads(__tstate); | |
3198 | if (PyErr_Occurred()) SWIG_fail; | |
3199 | } | |
3200 | { | |
3201 | #if wxUSE_UNICODE | |
3202 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3203 | #else | |
3204 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3205 | #endif | |
3206 | } | |
3207 | { | |
3208 | if (temp1) | |
3209 | delete arg1; | |
3210 | } | |
3211 | { | |
3212 | if (temp2) | |
3213 | delete arg2; | |
3214 | } | |
3215 | { | |
3216 | if (temp3) | |
3217 | delete arg3; | |
3218 | } | |
3219 | return resultobj; | |
3220 | fail: | |
3221 | { | |
3222 | if (temp1) | |
3223 | delete arg1; | |
3224 | } | |
3225 | { | |
3226 | if (temp2) | |
3227 | delete arg2; | |
3228 | } | |
3229 | { | |
3230 | if (temp3) | |
3231 | delete arg3; | |
3232 | } | |
3233 | return NULL; | |
3234 | } | |
3235 | ||
3236 | ||
3237 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3238 | PyObject *resultobj; | |
3239 | wxString *arg1 = 0 ; | |
3240 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3241 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3242 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3243 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3244 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3245 | wxString result; | |
e811c8ce RD |
3246 | bool temp1 = False ; |
3247 | bool temp2 = False ; | |
3248 | bool temp3 = False ; | |
d14a1e28 RD |
3249 | PyObject * obj0 = 0 ; |
3250 | PyObject * obj1 = 0 ; | |
3251 | PyObject * obj2 = 0 ; | |
3252 | PyObject * obj3 = 0 ; | |
3253 | char *kwnames[] = { | |
3254 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3255 | }; | |
3256 | ||
3257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3258 | { | |
3259 | arg1 = wxString_in_helper(obj0); | |
3260 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3261 | temp1 = True; |
d14a1e28 RD |
3262 | } |
3263 | if (obj1) { | |
3264 | { | |
3265 | arg2 = wxString_in_helper(obj1); | |
3266 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3267 | temp2 = True; |
d14a1e28 RD |
3268 | } |
3269 | } | |
3270 | if (obj2) { | |
3271 | { | |
3272 | arg3 = wxString_in_helper(obj2); | |
3273 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3274 | temp3 = True; |
d14a1e28 RD |
3275 | } |
3276 | } | |
3277 | if (obj3) { | |
15afbcd0 RD |
3278 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3280 | } |
3281 | { | |
3282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3283 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3284 | ||
3285 | wxPyEndAllowThreads(__tstate); | |
3286 | if (PyErr_Occurred()) SWIG_fail; | |
3287 | } | |
3288 | { | |
3289 | #if wxUSE_UNICODE | |
3290 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3291 | #else | |
3292 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3293 | #endif | |
3294 | } | |
3295 | { | |
3296 | if (temp1) | |
3297 | delete arg1; | |
3298 | } | |
3299 | { | |
3300 | if (temp2) | |
3301 | delete arg2; | |
3302 | } | |
3303 | { | |
3304 | if (temp3) | |
3305 | delete arg3; | |
3306 | } | |
3307 | return resultobj; | |
3308 | fail: | |
3309 | { | |
3310 | if (temp1) | |
3311 | delete arg1; | |
3312 | } | |
3313 | { | |
3314 | if (temp2) | |
3315 | delete arg2; | |
3316 | } | |
3317 | { | |
3318 | if (temp3) | |
3319 | delete arg3; | |
3320 | } | |
3321 | return NULL; | |
3322 | } | |
3323 | ||
3324 | ||
3325 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3326 | PyObject *resultobj; | |
3327 | wxString *arg1 = 0 ; | |
3328 | wxString *arg2 = 0 ; | |
3329 | int arg3 ; | |
3330 | wxString *arg4 = (wxString *) 0 ; | |
3331 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3332 | int arg6 = (int) -1 ; | |
3333 | int arg7 = (int) -1 ; | |
e811c8ce | 3334 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3335 | int arg9 = (int) 150 ; |
3336 | int arg10 = (int) 200 ; | |
3337 | wxString result; | |
e811c8ce RD |
3338 | bool temp1 = False ; |
3339 | bool temp2 = False ; | |
d14a1e28 RD |
3340 | PyObject * obj0 = 0 ; |
3341 | PyObject * obj1 = 0 ; | |
3342 | PyObject * obj2 = 0 ; | |
3343 | PyObject * obj3 = 0 ; | |
994141e6 RD |
3344 | PyObject * obj4 = 0 ; |
3345 | PyObject * obj5 = 0 ; | |
d14a1e28 | 3346 | PyObject * obj6 = 0 ; |
994141e6 RD |
3347 | PyObject * obj7 = 0 ; |
3348 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
3349 | char *kwnames[] = { |
3350 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3351 | }; | |
3352 | ||
994141e6 | 3353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3354 | { |
3355 | arg1 = wxString_in_helper(obj0); | |
3356 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3357 | temp1 = True; |
d14a1e28 RD |
3358 | } |
3359 | { | |
3360 | arg2 = wxString_in_helper(obj1); | |
3361 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3362 | temp2 = True; |
d14a1e28 RD |
3363 | } |
3364 | { | |
3365 | arg3 = PyList_Size(obj2); | |
3366 | arg4 = wxString_LIST_helper(obj2); | |
3367 | if (arg4 == NULL) SWIG_fail; | |
3368 | } | |
3369 | if (obj3) { | |
15afbcd0 RD |
3370 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3372 | } |
994141e6 | 3373 | if (obj4) { |
15afbcd0 RD |
3374 | arg6 = (int) SWIG_AsInt(obj4); |
3375 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3376 | } |
3377 | if (obj5) { | |
15afbcd0 RD |
3378 | arg7 = (int) SWIG_AsInt(obj5); |
3379 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3380 | } |
d14a1e28 | 3381 | if (obj6) { |
15afbcd0 RD |
3382 | arg8 = (bool) SWIG_AsBool(obj6); |
3383 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3384 | } |
3385 | if (obj7) { | |
15afbcd0 RD |
3386 | arg9 = (int) SWIG_AsInt(obj7); |
3387 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3388 | } |
3389 | if (obj8) { | |
15afbcd0 RD |
3390 | arg10 = (int) SWIG_AsInt(obj8); |
3391 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3392 | } |
3393 | { | |
3394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3395 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3396 | ||
3397 | wxPyEndAllowThreads(__tstate); | |
3398 | if (PyErr_Occurred()) SWIG_fail; | |
3399 | } | |
3400 | { | |
3401 | #if wxUSE_UNICODE | |
3402 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3403 | #else | |
3404 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3405 | #endif | |
3406 | } | |
3407 | { | |
3408 | if (temp1) | |
3409 | delete arg1; | |
3410 | } | |
3411 | { | |
3412 | if (temp2) | |
3413 | delete arg2; | |
3414 | } | |
3415 | { | |
3416 | if (arg4) delete [] arg4; | |
3417 | } | |
3418 | return resultobj; | |
3419 | fail: | |
3420 | { | |
3421 | if (temp1) | |
3422 | delete arg1; | |
3423 | } | |
3424 | { | |
3425 | if (temp2) | |
3426 | delete arg2; | |
3427 | } | |
3428 | { | |
3429 | if (arg4) delete [] arg4; | |
3430 | } | |
3431 | return NULL; | |
3432 | } | |
3433 | ||
3434 | ||
3435 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3436 | PyObject *resultobj; | |
3437 | wxString *arg1 = 0 ; | |
3438 | wxString *arg2 = 0 ; | |
3439 | int arg3 ; | |
3440 | wxString *arg4 = (wxString *) 0 ; | |
3441 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3442 | int arg6 = (int) -1 ; | |
3443 | int arg7 = (int) -1 ; | |
e811c8ce | 3444 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3445 | int arg9 = (int) 150 ; |
3446 | int arg10 = (int) 200 ; | |
3447 | int result; | |
e811c8ce RD |
3448 | bool temp1 = False ; |
3449 | bool temp2 = False ; | |
d14a1e28 RD |
3450 | PyObject * obj0 = 0 ; |
3451 | PyObject * obj1 = 0 ; | |
3452 | PyObject * obj2 = 0 ; | |
3453 | PyObject * obj3 = 0 ; | |
994141e6 RD |
3454 | PyObject * obj4 = 0 ; |
3455 | PyObject * obj5 = 0 ; | |
d14a1e28 | 3456 | PyObject * obj6 = 0 ; |
994141e6 RD |
3457 | PyObject * obj7 = 0 ; |
3458 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
3459 | char *kwnames[] = { |
3460 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3461 | }; | |
3462 | ||
994141e6 | 3463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3464 | { |
3465 | arg1 = wxString_in_helper(obj0); | |
3466 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3467 | temp1 = True; |
d14a1e28 RD |
3468 | } |
3469 | { | |
3470 | arg2 = wxString_in_helper(obj1); | |
3471 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3472 | temp2 = True; |
d14a1e28 RD |
3473 | } |
3474 | { | |
3475 | arg3 = PyList_Size(obj2); | |
3476 | arg4 = wxString_LIST_helper(obj2); | |
3477 | if (arg4 == NULL) SWIG_fail; | |
3478 | } | |
3479 | if (obj3) { | |
15afbcd0 RD |
3480 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3482 | } |
994141e6 | 3483 | if (obj4) { |
15afbcd0 RD |
3484 | arg6 = (int) SWIG_AsInt(obj4); |
3485 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3486 | } |
3487 | if (obj5) { | |
15afbcd0 RD |
3488 | arg7 = (int) SWIG_AsInt(obj5); |
3489 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3490 | } |
d14a1e28 | 3491 | if (obj6) { |
15afbcd0 RD |
3492 | arg8 = (bool) SWIG_AsBool(obj6); |
3493 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3494 | } |
3495 | if (obj7) { | |
15afbcd0 RD |
3496 | arg9 = (int) SWIG_AsInt(obj7); |
3497 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3498 | } |
3499 | if (obj8) { | |
15afbcd0 RD |
3500 | arg10 = (int) SWIG_AsInt(obj8); |
3501 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3502 | } |
3503 | { | |
3504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3505 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3506 | ||
3507 | wxPyEndAllowThreads(__tstate); | |
3508 | if (PyErr_Occurred()) SWIG_fail; | |
3509 | } | |
15afbcd0 | 3510 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3511 | { |
3512 | if (temp1) | |
3513 | delete arg1; | |
3514 | } | |
3515 | { | |
3516 | if (temp2) | |
3517 | delete arg2; | |
3518 | } | |
3519 | { | |
3520 | if (arg4) delete [] arg4; | |
3521 | } | |
3522 | return resultobj; | |
3523 | fail: | |
3524 | { | |
3525 | if (temp1) | |
3526 | delete arg1; | |
3527 | } | |
3528 | { | |
3529 | if (temp2) | |
3530 | delete arg2; | |
3531 | } | |
3532 | { | |
3533 | if (arg4) delete [] arg4; | |
3534 | } | |
3535 | return NULL; | |
3536 | } | |
3537 | ||
3538 | ||
3539 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3540 | PyObject *resultobj; | |
3541 | wxString *arg1 = 0 ; | |
3542 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3543 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3544 | int arg3 = (int) wxOK|wxCENTRE ; | |
3545 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3546 | int arg5 = (int) -1 ; | |
3547 | int arg6 = (int) -1 ; | |
3548 | int result; | |
e811c8ce RD |
3549 | bool temp1 = False ; |
3550 | bool temp2 = False ; | |
d14a1e28 RD |
3551 | PyObject * obj0 = 0 ; |
3552 | PyObject * obj1 = 0 ; | |
994141e6 | 3553 | PyObject * obj2 = 0 ; |
d14a1e28 | 3554 | PyObject * obj3 = 0 ; |
994141e6 RD |
3555 | PyObject * obj4 = 0 ; |
3556 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
3557 | char *kwnames[] = { |
3558 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3559 | }; | |
3560 | ||
994141e6 | 3561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
3562 | { |
3563 | arg1 = wxString_in_helper(obj0); | |
3564 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3565 | temp1 = True; |
d14a1e28 RD |
3566 | } |
3567 | if (obj1) { | |
3568 | { | |
3569 | arg2 = wxString_in_helper(obj1); | |
3570 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3571 | temp2 = True; |
d14a1e28 RD |
3572 | } |
3573 | } | |
994141e6 | 3574 | if (obj2) { |
15afbcd0 RD |
3575 | arg3 = (int) SWIG_AsInt(obj2); |
3576 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3577 | } |
d14a1e28 | 3578 | if (obj3) { |
15afbcd0 RD |
3579 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3581 | } |
994141e6 | 3582 | if (obj4) { |
15afbcd0 RD |
3583 | arg5 = (int) SWIG_AsInt(obj4); |
3584 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3585 | } |
3586 | if (obj5) { | |
15afbcd0 RD |
3587 | arg6 = (int) SWIG_AsInt(obj5); |
3588 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3589 | } |
d14a1e28 RD |
3590 | { |
3591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3592 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3593 | ||
3594 | wxPyEndAllowThreads(__tstate); | |
3595 | if (PyErr_Occurred()) SWIG_fail; | |
3596 | } | |
15afbcd0 | 3597 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3598 | { |
3599 | if (temp1) | |
3600 | delete arg1; | |
3601 | } | |
3602 | { | |
3603 | if (temp2) | |
3604 | delete arg2; | |
3605 | } | |
3606 | return resultobj; | |
3607 | fail: | |
3608 | { | |
3609 | if (temp1) | |
3610 | delete arg1; | |
3611 | } | |
3612 | { | |
3613 | if (temp2) | |
3614 | delete arg2; | |
3615 | } | |
3616 | return NULL; | |
3617 | } | |
3618 | ||
3619 | ||
3620 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3621 | PyObject *resultobj; | |
3622 | wxString *arg1 = 0 ; | |
3623 | wxString *arg2 = 0 ; | |
3624 | wxString *arg3 = 0 ; | |
3625 | long arg4 ; | |
3626 | long arg5 = (long) 0 ; | |
3627 | long arg6 = (long) 100 ; | |
3628 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3629 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3630 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3631 | long result; | |
e811c8ce RD |
3632 | bool temp1 = False ; |
3633 | bool temp2 = False ; | |
3634 | bool temp3 = False ; | |
d14a1e28 RD |
3635 | wxPoint temp8 ; |
3636 | PyObject * obj0 = 0 ; | |
3637 | PyObject * obj1 = 0 ; | |
3638 | PyObject * obj2 = 0 ; | |
994141e6 RD |
3639 | PyObject * obj3 = 0 ; |
3640 | PyObject * obj4 = 0 ; | |
3641 | PyObject * obj5 = 0 ; | |
3642 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
3643 | PyObject * obj7 = 0 ; |
3644 | char *kwnames[] = { | |
3645 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3646 | }; | |
3647 | ||
994141e6 | 3648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
3649 | { |
3650 | arg1 = wxString_in_helper(obj0); | |
3651 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3652 | temp1 = True; |
d14a1e28 RD |
3653 | } |
3654 | { | |
3655 | arg2 = wxString_in_helper(obj1); | |
3656 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3657 | temp2 = True; |
d14a1e28 RD |
3658 | } |
3659 | { | |
3660 | arg3 = wxString_in_helper(obj2); | |
3661 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3662 | temp3 = True; |
d14a1e28 | 3663 | } |
15afbcd0 RD |
3664 | arg4 = (long) SWIG_AsLong(obj3); |
3665 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3666 | if (obj4) { |
15afbcd0 RD |
3667 | arg5 = (long) SWIG_AsLong(obj4); |
3668 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3669 | } |
3670 | if (obj5) { | |
15afbcd0 RD |
3671 | arg6 = (long) SWIG_AsLong(obj5); |
3672 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3673 | } |
d14a1e28 | 3674 | if (obj6) { |
15afbcd0 RD |
3675 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, |
3676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3677 | } |
3678 | if (obj7) { | |
3679 | { | |
3680 | arg8 = &temp8; | |
3681 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3682 | } | |
3683 | } | |
3684 | { | |
3685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3686 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3687 | ||
3688 | wxPyEndAllowThreads(__tstate); | |
3689 | if (PyErr_Occurred()) SWIG_fail; | |
3690 | } | |
15afbcd0 | 3691 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3692 | { |
3693 | if (temp1) | |
3694 | delete arg1; | |
3695 | } | |
3696 | { | |
3697 | if (temp2) | |
3698 | delete arg2; | |
3699 | } | |
3700 | { | |
3701 | if (temp3) | |
3702 | delete arg3; | |
3703 | } | |
3704 | return resultobj; | |
3705 | fail: | |
3706 | { | |
3707 | if (temp1) | |
3708 | delete arg1; | |
3709 | } | |
3710 | { | |
3711 | if (temp2) | |
3712 | delete arg2; | |
3713 | } | |
3714 | { | |
3715 | if (temp3) | |
3716 | delete arg3; | |
3717 | } | |
3718 | return NULL; | |
3719 | } | |
3720 | ||
3721 | ||
3722 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3723 | PyObject *resultobj; | |
3724 | bool result; | |
3725 | char *kwnames[] = { | |
3726 | NULL | |
3727 | }; | |
3728 | ||
3729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
3730 | { | |
3731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3732 | result = (bool)wxColourDisplay(); | |
3733 | ||
3734 | wxPyEndAllowThreads(__tstate); | |
3735 | if (PyErr_Occurred()) SWIG_fail; | |
3736 | } | |
4f89f6a3 RD |
3737 | { |
3738 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3739 | } | |
d14a1e28 RD |
3740 | return resultobj; |
3741 | fail: | |
3742 | return NULL; | |
3743 | } | |
3744 | ||
3745 | ||
3746 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3747 | PyObject *resultobj; | |
3748 | int result; | |
3749 | char *kwnames[] = { | |
3750 | NULL | |
3751 | }; | |
3752 | ||
3753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
3754 | { | |
3755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3756 | result = (int)wxDisplayDepth(); | |
3757 | ||
3758 | wxPyEndAllowThreads(__tstate); | |
3759 | if (PyErr_Occurred()) SWIG_fail; | |
3760 | } | |
15afbcd0 | 3761 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3762 | return resultobj; |
3763 | fail: | |
3764 | return NULL; | |
3765 | } | |
3766 | ||
3767 | ||
3768 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3769 | PyObject *resultobj; | |
3770 | int result; | |
3771 | char *kwnames[] = { | |
3772 | NULL | |
3773 | }; | |
3774 | ||
3775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
3776 | { | |
3777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3778 | result = (int)wxGetDisplayDepth(); | |
3779 | ||
3780 | wxPyEndAllowThreads(__tstate); | |
3781 | if (PyErr_Occurred()) SWIG_fail; | |
3782 | } | |
15afbcd0 | 3783 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3784 | return resultobj; |
3785 | fail: | |
3786 | return NULL; | |
3787 | } | |
3788 | ||
3789 | ||
3790 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3791 | PyObject *resultobj; | |
3792 | int *arg1 = (int *) 0 ; | |
3793 | int *arg2 = (int *) 0 ; | |
3794 | int temp1 ; | |
3795 | int temp2 ; | |
3796 | char *kwnames[] = { | |
3797 | NULL | |
3798 | }; | |
3799 | ||
3800 | arg1 = &temp1; | |
3801 | arg2 = &temp2; | |
3802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
3803 | { | |
3804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3805 | wxDisplaySize(arg1,arg2); | |
3806 | ||
3807 | wxPyEndAllowThreads(__tstate); | |
3808 | if (PyErr_Occurred()) SWIG_fail; | |
3809 | } | |
3810 | Py_INCREF(Py_None); resultobj = Py_None; | |
3811 | { | |
3812 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3813 | resultobj = t_output_helper(resultobj,o); | |
3814 | } | |
3815 | { | |
3816 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3817 | resultobj = t_output_helper(resultobj,o); | |
3818 | } | |
3819 | return resultobj; | |
3820 | fail: | |
3821 | return NULL; | |
3822 | } | |
3823 | ||
3824 | ||
3825 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3826 | PyObject *resultobj; | |
3827 | wxSize result; | |
3828 | char *kwnames[] = { | |
3829 | NULL | |
3830 | }; | |
3831 | ||
3832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
3833 | { | |
3834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3835 | result = wxGetDisplaySize(); | |
3836 | ||
3837 | wxPyEndAllowThreads(__tstate); | |
3838 | if (PyErr_Occurred()) SWIG_fail; | |
3839 | } | |
3840 | { | |
3841 | wxSize * resultptr; | |
3842 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 3843 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
3844 | } |
3845 | return resultobj; | |
3846 | fail: | |
3847 | return NULL; | |
3848 | } | |
3849 | ||
3850 | ||
3851 | static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3852 | PyObject *resultobj; | |
3853 | int *arg1 = (int *) 0 ; | |
3854 | int *arg2 = (int *) 0 ; | |
3855 | int temp1 ; | |
3856 | int temp2 ; | |
3857 | char *kwnames[] = { | |
3858 | NULL | |
3859 | }; | |
3860 | ||
3861 | arg1 = &temp1; | |
3862 | arg2 = &temp2; | |
3863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
3864 | { | |
3865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3866 | wxDisplaySizeMM(arg1,arg2); | |
3867 | ||
3868 | wxPyEndAllowThreads(__tstate); | |
3869 | if (PyErr_Occurred()) SWIG_fail; | |
3870 | } | |
3871 | Py_INCREF(Py_None); resultobj = Py_None; | |
3872 | { | |
3873 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3874 | resultobj = t_output_helper(resultobj,o); | |
3875 | } | |
3876 | { | |
3877 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3878 | resultobj = t_output_helper(resultobj,o); | |
3879 | } | |
3880 | return resultobj; | |
3881 | fail: | |
3882 | return NULL; | |
3883 | } | |
3884 | ||
3885 | ||
3886 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3887 | PyObject *resultobj; | |
3888 | wxSize result; | |
3889 | char *kwnames[] = { | |
3890 | NULL | |
3891 | }; | |
3892 | ||
3893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
3894 | { | |
3895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3896 | result = wxGetDisplaySizeMM(); | |
3897 | ||
3898 | wxPyEndAllowThreads(__tstate); | |
3899 | if (PyErr_Occurred()) SWIG_fail; | |
3900 | } | |
3901 | { | |
3902 | wxSize * resultptr; | |
3903 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 3904 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
3905 | } |
3906 | return resultobj; | |
3907 | fail: | |
3908 | return NULL; | |
3909 | } | |
3910 | ||
3911 | ||
3912 | static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3913 | PyObject *resultobj; | |
3914 | int *arg1 = (int *) 0 ; | |
3915 | int *arg2 = (int *) 0 ; | |
3916 | int *arg3 = (int *) 0 ; | |
3917 | int *arg4 = (int *) 0 ; | |
3918 | int temp1 ; | |
3919 | int temp2 ; | |
3920 | int temp3 ; | |
3921 | int temp4 ; | |
3922 | char *kwnames[] = { | |
3923 | NULL | |
3924 | }; | |
3925 | ||
3926 | arg1 = &temp1; | |
3927 | arg2 = &temp2; | |
3928 | arg3 = &temp3; | |
3929 | arg4 = &temp4; | |
3930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
3931 | { | |
3932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3933 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
3934 | ||
3935 | wxPyEndAllowThreads(__tstate); | |
3936 | if (PyErr_Occurred()) SWIG_fail; | |
3937 | } | |
3938 | Py_INCREF(Py_None); resultobj = Py_None; | |
3939 | { | |
3940 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3941 | resultobj = t_output_helper(resultobj,o); | |
3942 | } | |
3943 | { | |
3944 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3945 | resultobj = t_output_helper(resultobj,o); | |
3946 | } | |
3947 | { | |
3948 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
3949 | resultobj = t_output_helper(resultobj,o); | |
3950 | } | |
3951 | { | |
3952 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
3953 | resultobj = t_output_helper(resultobj,o); | |
3954 | } | |
3955 | return resultobj; | |
3956 | fail: | |
3957 | return NULL; | |
3958 | } | |
3959 | ||
3960 | ||
3961 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3962 | PyObject *resultobj; | |
3963 | wxRect result; | |
3964 | char *kwnames[] = { | |
3965 | NULL | |
3966 | }; | |
3967 | ||
3968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
3969 | { | |
3970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3971 | result = wxGetClientDisplayRect(); | |
3972 | ||
3973 | wxPyEndAllowThreads(__tstate); | |
3974 | if (PyErr_Occurred()) SWIG_fail; | |
3975 | } | |
3976 | { | |
3977 | wxRect * resultptr; | |
3978 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 3979 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3980 | } |
3981 | return resultobj; | |
3982 | fail: | |
3983 | return NULL; | |
3984 | } | |
3985 | ||
3986 | ||
3987 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3988 | PyObject *resultobj; | |
3989 | wxCursor *arg1 = 0 ; | |
3990 | PyObject * obj0 = 0 ; | |
3991 | char *kwnames[] = { | |
3992 | (char *) "cursor", NULL | |
3993 | }; | |
3994 | ||
3995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
3997 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3998 | SWIG_fail; | |
d14a1e28 | 3999 | if (arg1 == NULL) { |
15afbcd0 RD |
4000 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4001 | SWIG_fail; | |
d14a1e28 RD |
4002 | } |
4003 | { | |
4004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4005 | wxSetCursor(*arg1); | |
4006 | ||
4007 | wxPyEndAllowThreads(__tstate); | |
4008 | if (PyErr_Occurred()) SWIG_fail; | |
4009 | } | |
4010 | Py_INCREF(Py_None); resultobj = Py_None; | |
4011 | return resultobj; | |
4012 | fail: | |
4013 | return NULL; | |
4014 | } | |
4015 | ||
4016 | ||
4017 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4018 | PyObject *resultobj; | |
4019 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4020 | PyObject * obj0 = 0 ; | |
4021 | char *kwnames[] = { | |
4022 | (char *) "cursor", NULL | |
4023 | }; | |
4024 | ||
4025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
4026 | if (obj0) { | |
15afbcd0 RD |
4027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4029 | } |
4030 | { | |
4031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4032 | wxBeginBusyCursor(arg1); | |
4033 | ||
4034 | wxPyEndAllowThreads(__tstate); | |
4035 | if (PyErr_Occurred()) SWIG_fail; | |
4036 | } | |
4037 | Py_INCREF(Py_None); resultobj = Py_None; | |
4038 | return resultobj; | |
4039 | fail: | |
4040 | return NULL; | |
4041 | } | |
4042 | ||
4043 | ||
4044 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4045 | PyObject *resultobj; | |
4046 | wxWindow *result; | |
4047 | char *kwnames[] = { | |
4048 | NULL | |
4049 | }; | |
4050 | ||
4051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
4052 | { | |
4053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4054 | result = (wxWindow *)wxGetActiveWindow(); | |
4055 | ||
4056 | wxPyEndAllowThreads(__tstate); | |
4057 | if (PyErr_Occurred()) SWIG_fail; | |
4058 | } | |
4059 | { | |
4060 | resultobj = wxPyMake_wxObject(result); | |
4061 | } | |
4062 | return resultobj; | |
4063 | fail: | |
4064 | return NULL; | |
4065 | } | |
4066 | ||
4067 | ||
4068 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4069 | PyObject *resultobj; | |
4070 | wxPoint *arg1 = 0 ; | |
4071 | wxWindow *result; | |
4072 | wxPoint temp1 ; | |
4073 | PyObject * obj0 = 0 ; | |
4074 | char *kwnames[] = { | |
4075 | (char *) "pt", NULL | |
4076 | }; | |
4077 | ||
4078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4079 | { | |
4080 | arg1 = &temp1; | |
4081 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4082 | } | |
4083 | { | |
4084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4085 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
4086 | ||
4087 | wxPyEndAllowThreads(__tstate); | |
4088 | if (PyErr_Occurred()) SWIG_fail; | |
4089 | } | |
4090 | { | |
4091 | resultobj = wxPyMake_wxObject(result); | |
4092 | } | |
4093 | return resultobj; | |
4094 | fail: | |
4095 | return NULL; | |
4096 | } | |
4097 | ||
4098 | ||
4099 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4100 | PyObject *resultobj; | |
4101 | wxPoint *arg1 = 0 ; | |
4102 | wxWindow *result; | |
4103 | wxPoint temp1 ; | |
4104 | PyObject * obj0 = 0 ; | |
4105 | char *kwnames[] = { | |
4106 | (char *) "pt", NULL | |
4107 | }; | |
4108 | ||
4109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4110 | { | |
4111 | arg1 = &temp1; | |
4112 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4113 | } | |
4114 | { | |
4115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4116 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
4117 | ||
4118 | wxPyEndAllowThreads(__tstate); | |
4119 | if (PyErr_Occurred()) SWIG_fail; | |
4120 | } | |
4121 | { | |
4122 | resultobj = wxPyMake_wxObject(result); | |
4123 | } | |
4124 | return resultobj; | |
4125 | fail: | |
4126 | return NULL; | |
4127 | } | |
4128 | ||
4129 | ||
4130 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4131 | PyObject *resultobj; | |
4132 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4133 | wxWindow *result; | |
4134 | PyObject * obj0 = 0 ; | |
4135 | char *kwnames[] = { | |
4136 | (char *) "win", NULL | |
4137 | }; | |
4138 | ||
4139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4142 | { |
4143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4144 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
4145 | ||
4146 | wxPyEndAllowThreads(__tstate); | |
4147 | if (PyErr_Occurred()) SWIG_fail; | |
4148 | } | |
4149 | { | |
4150 | resultobj = wxPyMake_wxObject(result); | |
4151 | } | |
4152 | return resultobj; | |
4153 | fail: | |
4154 | return NULL; | |
4155 | } | |
4156 | ||
4157 | ||
39f61e25 RD |
4158 | static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) { |
4159 | PyObject *resultobj; | |
4160 | int arg1 ; | |
4161 | bool result; | |
994141e6 | 4162 | PyObject * obj0 = 0 ; |
39f61e25 RD |
4163 | char *kwnames[] = { |
4164 | (char *) "key", NULL | |
4165 | }; | |
4166 | ||
994141e6 | 4167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4168 | arg1 = (wxKeyCode) SWIG_AsInt(obj0); |
4169 | if (PyErr_Occurred()) SWIG_fail; | |
39f61e25 RD |
4170 | { |
4171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4172 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
4173 | ||
4174 | wxPyEndAllowThreads(__tstate); | |
4175 | if (PyErr_Occurred()) SWIG_fail; | |
4176 | } | |
4f89f6a3 RD |
4177 | { |
4178 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4179 | } | |
39f61e25 RD |
4180 | return resultobj; |
4181 | fail: | |
4182 | return NULL; | |
4183 | } | |
4184 | ||
4185 | ||
d14a1e28 RD |
4186 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
4187 | PyObject *resultobj; | |
4188 | char *kwnames[] = { | |
4189 | NULL | |
4190 | }; | |
4191 | ||
4192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4193 | { | |
4194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4195 | wxWakeUpMainThread(); | |
4196 | ||
4197 | wxPyEndAllowThreads(__tstate); | |
4198 | if (PyErr_Occurred()) SWIG_fail; | |
4199 | } | |
4200 | Py_INCREF(Py_None); resultobj = Py_None; | |
4201 | return resultobj; | |
4202 | fail: | |
4203 | return NULL; | |
4204 | } | |
4205 | ||
4206 | ||
4207 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4208 | PyObject *resultobj; | |
4209 | char *kwnames[] = { | |
4210 | NULL | |
4211 | }; | |
4212 | ||
4213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4214 | { | |
4215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4216 | wxMutexGuiEnter(); | |
4217 | ||
4218 | wxPyEndAllowThreads(__tstate); | |
4219 | if (PyErr_Occurred()) SWIG_fail; | |
4220 | } | |
4221 | Py_INCREF(Py_None); resultobj = Py_None; | |
4222 | return resultobj; | |
4223 | fail: | |
4224 | return NULL; | |
4225 | } | |
4226 | ||
4227 | ||
4228 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4229 | PyObject *resultobj; | |
4230 | char *kwnames[] = { | |
4231 | NULL | |
4232 | }; | |
4233 | ||
4234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4235 | { | |
4236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4237 | wxMutexGuiLeave(); | |
4238 | ||
4239 | wxPyEndAllowThreads(__tstate); | |
4240 | if (PyErr_Occurred()) SWIG_fail; | |
4241 | } | |
4242 | Py_INCREF(Py_None); resultobj = Py_None; | |
4243 | return resultobj; | |
4244 | fail: | |
4245 | return NULL; | |
4246 | } | |
4247 | ||
4248 | ||
4249 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4250 | PyObject *resultobj; | |
4251 | wxMutexGuiLocker *result; | |
4252 | char *kwnames[] = { | |
4253 | NULL | |
4254 | }; | |
4255 | ||
4256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4257 | { | |
4258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4259 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4260 | ||
4261 | wxPyEndAllowThreads(__tstate); | |
4262 | if (PyErr_Occurred()) SWIG_fail; | |
4263 | } | |
15afbcd0 | 4264 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); |
d14a1e28 RD |
4265 | return resultobj; |
4266 | fail: | |
4267 | return NULL; | |
4268 | } | |
4269 | ||
4270 | ||
4271 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4272 | PyObject *resultobj; | |
4273 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4274 | PyObject * obj0 = 0 ; | |
4275 | char *kwnames[] = { | |
4276 | (char *) "self", NULL | |
4277 | }; | |
4278 | ||
4279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker, |
4281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4282 | { |
4283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4284 | delete arg1; | |
4285 | ||
4286 | wxPyEndAllowThreads(__tstate); | |
4287 | if (PyErr_Occurred()) SWIG_fail; | |
4288 | } | |
4289 | Py_INCREF(Py_None); resultobj = Py_None; | |
4290 | return resultobj; | |
4291 | fail: | |
4292 | return NULL; | |
4293 | } | |
4294 | ||
4295 | ||
4296 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
4297 | PyObject *obj; | |
4298 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4299 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4300 | Py_INCREF(obj); | |
4301 | return Py_BuildValue((char *)""); | |
4302 | } | |
4303 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4304 | PyObject *resultobj; | |
4305 | bool result; | |
4306 | char *kwnames[] = { | |
4307 | NULL | |
4308 | }; | |
4309 | ||
4310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4311 | { | |
4312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4313 | result = (bool)wxThread_IsMain(); | |
4314 | ||
4315 | wxPyEndAllowThreads(__tstate); | |
4316 | if (PyErr_Occurred()) SWIG_fail; | |
4317 | } | |
4f89f6a3 RD |
4318 | { |
4319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4320 | } | |
d14a1e28 RD |
4321 | return resultobj; |
4322 | fail: | |
4323 | return NULL; | |
4324 | } | |
4325 | ||
4326 | ||
4327 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4328 | PyObject *resultobj; | |
4329 | wxString *arg1 = 0 ; | |
4330 | wxToolTip *result; | |
e811c8ce | 4331 | bool temp1 = False ; |
d14a1e28 RD |
4332 | PyObject * obj0 = 0 ; |
4333 | char *kwnames[] = { | |
4334 | (char *) "tip", NULL | |
4335 | }; | |
4336 | ||
4337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4338 | { | |
4339 | arg1 = wxString_in_helper(obj0); | |
4340 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 4341 | temp1 = True; |
d14a1e28 RD |
4342 | } |
4343 | { | |
4344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4345 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4346 | ||
4347 | wxPyEndAllowThreads(__tstate); | |
4348 | if (PyErr_Occurred()) SWIG_fail; | |
4349 | } | |
4350 | { | |
4351 | resultobj = wxPyMake_wxObject(result); | |
4352 | } | |
4353 | { | |
4354 | if (temp1) | |
4355 | delete arg1; | |
4356 | } | |
4357 | return resultobj; | |
4358 | fail: | |
4359 | { | |
4360 | if (temp1) | |
4361 | delete arg1; | |
4362 | } | |
4363 | return NULL; | |
4364 | } | |
4365 | ||
4366 | ||
4367 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4368 | PyObject *resultobj; | |
4369 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4370 | wxString *arg2 = 0 ; | |
e811c8ce | 4371 | bool temp2 = False ; |
d14a1e28 RD |
4372 | PyObject * obj0 = 0 ; |
4373 | PyObject * obj1 = 0 ; | |
4374 | char *kwnames[] = { | |
4375 | (char *) "self",(char *) "tip", NULL | |
4376 | }; | |
4377 | ||
4378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4381 | { |
4382 | arg2 = wxString_in_helper(obj1); | |
4383 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4384 | temp2 = True; |
d14a1e28 RD |
4385 | } |
4386 | { | |
4387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4388 | (arg1)->SetTip((wxString const &)*arg2); | |
4389 | ||
4390 | wxPyEndAllowThreads(__tstate); | |
4391 | if (PyErr_Occurred()) SWIG_fail; | |
4392 | } | |
4393 | Py_INCREF(Py_None); resultobj = Py_None; | |
4394 | { | |
4395 | if (temp2) | |
4396 | delete arg2; | |
4397 | } | |
4398 | return resultobj; | |
4399 | fail: | |
4400 | { | |
4401 | if (temp2) | |
4402 | delete arg2; | |
4403 | } | |
4404 | return NULL; | |
4405 | } | |
4406 | ||
4407 | ||
4408 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4409 | PyObject *resultobj; | |
4410 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4411 | wxString result; | |
4412 | PyObject * obj0 = 0 ; | |
4413 | char *kwnames[] = { | |
4414 | (char *) "self", NULL | |
4415 | }; | |
4416 | ||
4417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4420 | { |
4421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4422 | result = (arg1)->GetTip(); | |
4423 | ||
4424 | wxPyEndAllowThreads(__tstate); | |
4425 | if (PyErr_Occurred()) SWIG_fail; | |
4426 | } | |
4427 | { | |
4428 | #if wxUSE_UNICODE | |
4429 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4430 | #else | |
4431 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4432 | #endif | |
4433 | } | |
4434 | return resultobj; | |
4435 | fail: | |
4436 | return NULL; | |
4437 | } | |
4438 | ||
4439 | ||
4440 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4441 | PyObject *resultobj; | |
4442 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4443 | wxWindow *result; | |
4444 | PyObject * obj0 = 0 ; | |
4445 | char *kwnames[] = { | |
4446 | (char *) "self", NULL | |
4447 | }; | |
4448 | ||
4449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4452 | { |
4453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4454 | result = (wxWindow *)(arg1)->GetWindow(); | |
4455 | ||
4456 | wxPyEndAllowThreads(__tstate); | |
4457 | if (PyErr_Occurred()) SWIG_fail; | |
4458 | } | |
4459 | { | |
4460 | resultobj = wxPyMake_wxObject(result); | |
4461 | } | |
4462 | return resultobj; | |
4463 | fail: | |
4464 | return NULL; | |
4465 | } | |
4466 | ||
4467 | ||
4468 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4469 | PyObject *resultobj; | |
4470 | bool arg1 ; | |
4471 | PyObject * obj0 = 0 ; | |
4472 | char *kwnames[] = { | |
4473 | (char *) "flag", NULL | |
4474 | }; | |
4475 | ||
4476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4477 | arg1 = (bool) SWIG_AsBool(obj0); |
4478 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4479 | { |
4480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4481 | wxToolTip::Enable(arg1); | |
4482 | ||
4483 | wxPyEndAllowThreads(__tstate); | |
4484 | if (PyErr_Occurred()) SWIG_fail; | |
4485 | } | |
4486 | Py_INCREF(Py_None); resultobj = Py_None; | |
4487 | return resultobj; | |
4488 | fail: | |
4489 | return NULL; | |
4490 | } | |
4491 | ||
4492 | ||
4493 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4494 | PyObject *resultobj; | |
4495 | long arg1 ; | |
994141e6 | 4496 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4497 | char *kwnames[] = { |
4498 | (char *) "milliseconds", NULL | |
4499 | }; | |
4500 | ||
994141e6 | 4501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4502 | arg1 = (long) SWIG_AsLong(obj0); |
4503 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4504 | { |
4505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4506 | wxToolTip::SetDelay(arg1); | |
4507 | ||
4508 | wxPyEndAllowThreads(__tstate); | |
4509 | if (PyErr_Occurred()) SWIG_fail; | |
4510 | } | |
4511 | Py_INCREF(Py_None); resultobj = Py_None; | |
4512 | return resultobj; | |
4513 | fail: | |
4514 | return NULL; | |
4515 | } | |
4516 | ||
4517 | ||
4518 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
4519 | PyObject *obj; | |
4520 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4521 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
4522 | Py_INCREF(obj); | |
4523 | return Py_BuildValue((char *)""); | |
4524 | } | |
4525 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4526 | PyObject *resultobj; | |
4527 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4528 | wxSize *arg2 = 0 ; | |
4529 | wxCaret *result; | |
4530 | wxSize temp2 ; | |
4531 | PyObject * obj0 = 0 ; | |
4532 | PyObject * obj1 = 0 ; | |
4533 | char *kwnames[] = { | |
4534 | (char *) "window",(char *) "size", NULL | |
4535 | }; | |
4536 | ||
4537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4540 | { |
4541 | arg2 = &temp2; | |
4542 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4543 | } | |
4544 | { | |
4545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4546 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
4547 | ||
4548 | wxPyEndAllowThreads(__tstate); | |
4549 | if (PyErr_Occurred()) SWIG_fail; | |
4550 | } | |
15afbcd0 | 4551 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); |
d14a1e28 RD |
4552 | return resultobj; |
4553 | fail: | |
4554 | return NULL; | |
4555 | } | |
4556 | ||
4557 | ||
4558 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4559 | PyObject *resultobj; | |
4560 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4561 | PyObject * obj0 = 0 ; | |
4562 | char *kwnames[] = { | |
4563 | (char *) "self", NULL | |
4564 | }; | |
4565 | ||
4566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4569 | { |
4570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4571 | delete arg1; | |
4572 | ||
4573 | wxPyEndAllowThreads(__tstate); | |
4574 | if (PyErr_Occurred()) SWIG_fail; | |
4575 | } | |
4576 | Py_INCREF(Py_None); resultobj = Py_None; | |
4577 | return resultobj; | |
4578 | fail: | |
4579 | return NULL; | |
4580 | } | |
4581 | ||
4582 | ||
4583 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4584 | PyObject *resultobj; | |
4585 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4586 | bool result; | |
4587 | PyObject * obj0 = 0 ; | |
4588 | char *kwnames[] = { | |
4589 | (char *) "self", NULL | |
4590 | }; | |
4591 | ||
4592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4595 | { |
4596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4597 | result = (bool)(arg1)->IsOk(); | |
4598 | ||
4599 | wxPyEndAllowThreads(__tstate); | |
4600 | if (PyErr_Occurred()) SWIG_fail; | |
4601 | } | |
4f89f6a3 RD |
4602 | { |
4603 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4604 | } | |
d14a1e28 RD |
4605 | return resultobj; |
4606 | fail: | |
4607 | return NULL; | |
4608 | } | |
4609 | ||
4610 | ||
4611 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4612 | PyObject *resultobj; | |
4613 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4614 | bool result; | |
4615 | PyObject * obj0 = 0 ; | |
4616 | char *kwnames[] = { | |
4617 | (char *) "self", NULL | |
4618 | }; | |
4619 | ||
4620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4623 | { |
4624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4625 | result = (bool)(arg1)->IsVisible(); | |
4626 | ||
4627 | wxPyEndAllowThreads(__tstate); | |
4628 | if (PyErr_Occurred()) SWIG_fail; | |
4629 | } | |
4f89f6a3 RD |
4630 | { |
4631 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4632 | } | |
d14a1e28 RD |
4633 | return resultobj; |
4634 | fail: | |
4635 | return NULL; | |
4636 | } | |
4637 | ||
4638 | ||
322913ce RD |
4639 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
4640 | PyObject *resultobj; | |
4641 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4642 | wxPoint result; | |
4643 | PyObject * obj0 = 0 ; | |
4644 | char *kwnames[] = { | |
4645 | (char *) "self", NULL | |
4646 | }; | |
4647 | ||
4648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
322913ce RD |
4651 | { |
4652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4653 | result = (arg1)->GetPosition(); | |
4654 | ||
4655 | wxPyEndAllowThreads(__tstate); | |
4656 | if (PyErr_Occurred()) SWIG_fail; | |
4657 | } | |
4658 | { | |
4659 | wxPoint * resultptr; | |
4660 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 4661 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
322913ce RD |
4662 | } |
4663 | return resultobj; | |
4664 | fail: | |
4665 | return NULL; | |
4666 | } | |
4667 | ||
4668 | ||
d14a1e28 RD |
4669 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
4670 | PyObject *resultobj; | |
4671 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4672 | int *arg2 = (int *) 0 ; | |
4673 | int *arg3 = (int *) 0 ; | |
4674 | int temp2 ; | |
4675 | int temp3 ; | |
4676 | PyObject * obj0 = 0 ; | |
4677 | char *kwnames[] = { | |
4678 | (char *) "self", NULL | |
4679 | }; | |
4680 | ||
4681 | arg2 = &temp2; | |
4682 | arg3 = &temp3; | |
4683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4686 | { |
4687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4688 | (arg1)->GetPosition(arg2,arg3); | |
4689 | ||
4690 | wxPyEndAllowThreads(__tstate); | |
4691 | if (PyErr_Occurred()) SWIG_fail; | |
4692 | } | |
4693 | Py_INCREF(Py_None); resultobj = Py_None; | |
4694 | { | |
4695 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4696 | resultobj = t_output_helper(resultobj,o); | |
4697 | } | |
4698 | { | |
4699 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4700 | resultobj = t_output_helper(resultobj,o); | |
4701 | } | |
4702 | return resultobj; | |
4703 | fail: | |
4704 | return NULL; | |
4705 | } | |
4706 | ||
4707 | ||
322913ce | 4708 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4709 | PyObject *resultobj; |
4710 | wxCaret *arg1 = (wxCaret *) 0 ; | |
322913ce | 4711 | wxSize result; |
d14a1e28 RD |
4712 | PyObject * obj0 = 0 ; |
4713 | char *kwnames[] = { | |
4714 | (char *) "self", NULL | |
4715 | }; | |
4716 | ||
322913ce | 4717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4720 | { |
4721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 4722 | result = (arg1)->GetSize(); |
d14a1e28 RD |
4723 | |
4724 | wxPyEndAllowThreads(__tstate); | |
4725 | if (PyErr_Occurred()) SWIG_fail; | |
4726 | } | |
4727 | { | |
322913ce RD |
4728 | wxSize * resultptr; |
4729 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 4730 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
4731 | } |
4732 | return resultobj; | |
4733 | fail: | |
4734 | return NULL; | |
4735 | } | |
4736 | ||
4737 | ||
4738 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4739 | PyObject *resultobj; | |
4740 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4741 | int *arg2 = (int *) 0 ; | |
4742 | int *arg3 = (int *) 0 ; | |
4743 | int temp2 ; | |
4744 | int temp3 ; | |
4745 | PyObject * obj0 = 0 ; | |
4746 | char *kwnames[] = { | |
4747 | (char *) "self", NULL | |
4748 | }; | |
4749 | ||
4750 | arg2 = &temp2; | |
4751 | arg3 = &temp3; | |
4752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4755 | { |
4756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4757 | (arg1)->GetSize(arg2,arg3); | |
4758 | ||
4759 | wxPyEndAllowThreads(__tstate); | |
4760 | if (PyErr_Occurred()) SWIG_fail; | |
4761 | } | |
4762 | Py_INCREF(Py_None); resultobj = Py_None; | |
4763 | { | |
4764 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4765 | resultobj = t_output_helper(resultobj,o); | |
4766 | } | |
4767 | { | |
4768 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4769 | resultobj = t_output_helper(resultobj,o); | |
4770 | } | |
4771 | return resultobj; | |
4772 | fail: | |
4773 | return NULL; | |
4774 | } | |
4775 | ||
4776 | ||
d14a1e28 RD |
4777 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
4778 | PyObject *resultobj; | |
4779 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4780 | wxWindow *result; | |
4781 | PyObject * obj0 = 0 ; | |
4782 | char *kwnames[] = { | |
4783 | (char *) "self", NULL | |
4784 | }; | |
4785 | ||
4786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4789 | { |
4790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4791 | result = (wxWindow *)(arg1)->GetWindow(); | |
4792 | ||
4793 | wxPyEndAllowThreads(__tstate); | |
4794 | if (PyErr_Occurred()) SWIG_fail; | |
4795 | } | |
4796 | { | |
4797 | resultobj = wxPyMake_wxObject(result); | |
4798 | } | |
4799 | return resultobj; | |
4800 | fail: | |
4801 | return NULL; | |
4802 | } | |
4803 | ||
4804 | ||
4805 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4806 | PyObject *resultobj; | |
4807 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4808 | int arg2 ; | |
4809 | int arg3 ; | |
4810 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4811 | PyObject * obj1 = 0 ; |
4812 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4813 | char *kwnames[] = { |
4814 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4815 | }; | |
4816 | ||
994141e6 | 4817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4820 | arg2 = (int) SWIG_AsInt(obj1); | |
4821 | if (PyErr_Occurred()) SWIG_fail; | |
4822 | arg3 = (int) SWIG_AsInt(obj2); | |
4823 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4824 | { |
4825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4826 | (arg1)->Move(arg2,arg3); | |
4827 | ||
4828 | wxPyEndAllowThreads(__tstate); | |
4829 | if (PyErr_Occurred()) SWIG_fail; | |
4830 | } | |
4831 | Py_INCREF(Py_None); resultobj = Py_None; | |
4832 | return resultobj; | |
4833 | fail: | |
4834 | return NULL; | |
4835 | } | |
4836 | ||
4837 | ||
4838 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4839 | PyObject *resultobj; | |
4840 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4841 | wxPoint *arg2 = 0 ; | |
4842 | wxPoint temp2 ; | |
4843 | PyObject * obj0 = 0 ; | |
4844 | PyObject * obj1 = 0 ; | |
4845 | char *kwnames[] = { | |
4846 | (char *) "self",(char *) "pt", NULL | |
4847 | }; | |
4848 | ||
4849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4852 | { |
4853 | arg2 = &temp2; | |
4854 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4855 | } | |
4856 | { | |
4857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4858 | (arg1)->Move((wxPoint const &)*arg2); | |
4859 | ||
4860 | wxPyEndAllowThreads(__tstate); | |
4861 | if (PyErr_Occurred()) SWIG_fail; | |
4862 | } | |
4863 | Py_INCREF(Py_None); resultobj = Py_None; | |
4864 | return resultobj; | |
4865 | fail: | |
4866 | return NULL; | |
4867 | } | |
4868 | ||
4869 | ||
4870 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4871 | PyObject *resultobj; | |
4872 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4873 | int arg2 ; | |
4874 | int arg3 ; | |
4875 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4876 | PyObject * obj1 = 0 ; |
4877 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4878 | char *kwnames[] = { |
4879 | (char *) "self",(char *) "width",(char *) "height", NULL | |
4880 | }; | |
4881 | ||
994141e6 | 4882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4885 | arg2 = (int) SWIG_AsInt(obj1); | |
4886 | if (PyErr_Occurred()) SWIG_fail; | |
4887 | arg3 = (int) SWIG_AsInt(obj2); | |
4888 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4889 | { |
4890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4891 | (arg1)->SetSize(arg2,arg3); | |
4892 | ||
4893 | wxPyEndAllowThreads(__tstate); | |
4894 | if (PyErr_Occurred()) SWIG_fail; | |
4895 | } | |
4896 | Py_INCREF(Py_None); resultobj = Py_None; | |
4897 | return resultobj; | |
4898 | fail: | |
4899 | return NULL; | |
4900 | } | |
4901 | ||
4902 | ||
4903 | static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4904 | PyObject *resultobj; | |
4905 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4906 | wxSize *arg2 = 0 ; | |
4907 | wxSize temp2 ; | |
4908 | PyObject * obj0 = 0 ; | |
4909 | PyObject * obj1 = 0 ; | |
4910 | char *kwnames[] = { | |
4911 | (char *) "self",(char *) "size", NULL | |
4912 | }; | |
4913 | ||
4914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4917 | { |
4918 | arg2 = &temp2; | |
4919 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4920 | } | |
4921 | { | |
4922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4923 | (arg1)->SetSize((wxSize const &)*arg2); | |
4924 | ||
4925 | wxPyEndAllowThreads(__tstate); | |
4926 | if (PyErr_Occurred()) SWIG_fail; | |
4927 | } | |
4928 | Py_INCREF(Py_None); resultobj = Py_None; | |
4929 | return resultobj; | |
4930 | fail: | |
4931 | return NULL; | |
4932 | } | |
4933 | ||
4934 | ||
4935 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4936 | PyObject *resultobj; | |
4937 | wxCaret *arg1 = (wxCaret *) 0 ; | |
e811c8ce | 4938 | int arg2 = (int) True ; |
d14a1e28 | 4939 | PyObject * obj0 = 0 ; |
994141e6 | 4940 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4941 | char *kwnames[] = { |
4942 | (char *) "self",(char *) "show", NULL | |
4943 | }; | |
4944 | ||
994141e6 | 4945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 4948 | if (obj1) { |
15afbcd0 RD |
4949 | arg2 = (int) SWIG_AsInt(obj1); |
4950 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4951 | } |
d14a1e28 RD |
4952 | { |
4953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4954 | (arg1)->Show(arg2); | |
4955 | ||
4956 | wxPyEndAllowThreads(__tstate); | |
4957 | if (PyErr_Occurred()) SWIG_fail; | |
4958 | } | |
4959 | Py_INCREF(Py_None); resultobj = Py_None; | |
4960 | return resultobj; | |
4961 | fail: | |
4962 | return NULL; | |
4963 | } | |
4964 | ||
4965 | ||
4966 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4967 | PyObject *resultobj; | |
4968 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4969 | PyObject * obj0 = 0 ; | |
4970 | char *kwnames[] = { | |
4971 | (char *) "self", NULL | |
4972 | }; | |
4973 | ||
4974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4977 | { |
4978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4979 | (arg1)->Hide(); | |
4980 | ||
4981 | wxPyEndAllowThreads(__tstate); | |
4982 | if (PyErr_Occurred()) SWIG_fail; | |
4983 | } | |
4984 | Py_INCREF(Py_None); resultobj = Py_None; | |
4985 | return resultobj; | |
4986 | fail: | |
4987 | return NULL; | |
4988 | } | |
4989 | ||
4990 | ||
4991 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
4992 | PyObject *obj; | |
4993 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4994 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
4995 | Py_INCREF(obj); | |
4996 | return Py_BuildValue((char *)""); | |
4997 | } | |
4998 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4999 | PyObject *resultobj; | |
5000 | int result; | |
5001 | char *kwnames[] = { | |
5002 | NULL | |
5003 | }; | |
5004 | ||
5005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
5006 | { | |
5007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5008 | result = (int)wxCaret_GetBlinkTime(); | |
5009 | ||
5010 | wxPyEndAllowThreads(__tstate); | |
5011 | if (PyErr_Occurred()) SWIG_fail; | |
5012 | } | |
15afbcd0 | 5013 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5014 | return resultobj; |
5015 | fail: | |
5016 | return NULL; | |
5017 | } | |
5018 | ||
5019 | ||
5020 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5021 | PyObject *resultobj; | |
5022 | int arg1 ; | |
994141e6 | 5023 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
5024 | char *kwnames[] = { |
5025 | (char *) "milliseconds", NULL | |
5026 | }; | |
5027 | ||
994141e6 | 5028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
5029 | arg1 = (int) SWIG_AsInt(obj0); |
5030 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5031 | { |
5032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5033 | wxCaret_SetBlinkTime(arg1); | |
5034 | ||
5035 | wxPyEndAllowThreads(__tstate); | |
5036 | if (PyErr_Occurred()) SWIG_fail; | |
5037 | } | |
5038 | Py_INCREF(Py_None); resultobj = Py_None; | |
5039 | return resultobj; | |
5040 | fail: | |
5041 | return NULL; | |
5042 | } | |
5043 | ||
5044 | ||
5045 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5046 | PyObject *resultobj; | |
5047 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
5048 | wxBusyCursor *result; | |
5049 | PyObject * obj0 = 0 ; | |
5050 | char *kwnames[] = { | |
5051 | (char *) "cursor", NULL | |
5052 | }; | |
5053 | ||
5054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
5055 | if (obj0) { | |
15afbcd0 RD |
5056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
5057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5058 | } |
5059 | { | |
5060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5061 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
5062 | ||
5063 | wxPyEndAllowThreads(__tstate); | |
5064 | if (PyErr_Occurred()) SWIG_fail; | |
5065 | } | |
15afbcd0 | 5066 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); |
d14a1e28 RD |
5067 | return resultobj; |
5068 | fail: | |
5069 | return NULL; | |
5070 | } | |
5071 | ||
5072 | ||
5073 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5074 | PyObject *resultobj; | |
5075 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
5076 | PyObject * obj0 = 0 ; | |
5077 | char *kwnames[] = { | |
5078 | (char *) "self", NULL | |
5079 | }; | |
5080 | ||
5081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor, |
5083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5084 | { |
5085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5086 | delete arg1; | |
5087 | ||
5088 | wxPyEndAllowThreads(__tstate); | |
5089 | if (PyErr_Occurred()) SWIG_fail; | |
5090 | } | |
5091 | Py_INCREF(Py_None); resultobj = Py_None; | |
5092 | return resultobj; | |
5093 | fail: | |
5094 | return NULL; | |
5095 | } | |
5096 | ||
5097 | ||
5098 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
5099 | PyObject *obj; | |
5100 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5101 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
5102 | Py_INCREF(obj); | |
5103 | return Py_BuildValue((char *)""); | |
5104 | } | |
5105 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5106 | PyObject *resultobj; | |
5107 | wxWindow *arg1 = (wxWindow *) NULL ; | |
5108 | wxWindowDisabler *result; | |
5109 | PyObject * obj0 = 0 ; | |
5110 | char *kwnames[] = { | |
5111 | (char *) "winToSkip", NULL | |
5112 | }; | |
5113 | ||
5114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
5115 | if (obj0) { | |
15afbcd0 RD |
5116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5118 | } |
5119 | { | |
5120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5121 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
5122 | ||
5123 | wxPyEndAllowThreads(__tstate); | |
5124 | if (PyErr_Occurred()) SWIG_fail; | |
5125 | } | |
15afbcd0 | 5126 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); |
d14a1e28 RD |
5127 | return resultobj; |
5128 | fail: | |
5129 | return NULL; | |
5130 | } | |
5131 | ||
5132 | ||
5133 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5134 | PyObject *resultobj; | |
5135 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
5136 | PyObject * obj0 = 0 ; | |
5137 | char *kwnames[] = { | |
5138 | (char *) "self", NULL | |
5139 | }; | |
5140 | ||
5141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler, |
5143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5144 | { |
5145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5146 | delete arg1; | |
5147 | ||
5148 | wxPyEndAllowThreads(__tstate); | |
5149 | if (PyErr_Occurred()) SWIG_fail; | |
5150 | } | |
5151 | Py_INCREF(Py_None); resultobj = Py_None; | |
5152 | return resultobj; | |
5153 | fail: | |
5154 | return NULL; | |
5155 | } | |
5156 | ||
5157 | ||
5158 | static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
5159 | PyObject *obj; | |
5160 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5161 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
5162 | Py_INCREF(obj); | |
5163 | return Py_BuildValue((char *)""); | |
5164 | } | |
5165 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5166 | PyObject *resultobj; | |
5167 | wxString *arg1 = 0 ; | |
5168 | wxBusyInfo *result; | |
e811c8ce | 5169 | bool temp1 = False ; |
d14a1e28 RD |
5170 | PyObject * obj0 = 0 ; |
5171 | char *kwnames[] = { | |
5172 | (char *) "message", NULL | |
5173 | }; | |
5174 | ||
5175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
5176 | { | |
5177 | arg1 = wxString_in_helper(obj0); | |
5178 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 5179 | temp1 = True; |
d14a1e28 RD |
5180 | } |
5181 | { | |
5182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5183 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
5184 | ||
5185 | wxPyEndAllowThreads(__tstate); | |
5186 | if (PyErr_Occurred()) SWIG_fail; | |
5187 | } | |
15afbcd0 | 5188 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); |
d14a1e28 RD |
5189 | { |
5190 | if (temp1) | |
5191 | delete arg1; | |
5192 | } | |
5193 | return resultobj; | |
5194 | fail: | |
5195 | { | |
5196 | if (temp1) | |
5197 | delete arg1; | |
5198 | } | |
5199 | return NULL; | |
5200 | } | |
5201 | ||
5202 | ||
5203 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5204 | PyObject *resultobj; | |
5205 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5206 | PyObject * obj0 = 0 ; | |
5207 | char *kwnames[] = { | |
5208 | (char *) "self", NULL | |
5209 | }; | |
5210 | ||
5211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo, |
5213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5214 | { |
5215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5216 | delete arg1; | |
5217 | ||
5218 | wxPyEndAllowThreads(__tstate); | |
5219 | if (PyErr_Occurred()) SWIG_fail; | |
5220 | } | |
5221 | Py_INCREF(Py_None); resultobj = Py_None; | |
5222 | return resultobj; | |
5223 | fail: | |
5224 | return NULL; | |
5225 | } | |
5226 | ||
5227 | ||
5228 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
5229 | PyObject *obj; | |
5230 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5231 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5232 | Py_INCREF(obj); | |
5233 | return Py_BuildValue((char *)""); | |
5234 | } | |
5235 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5236 | PyObject *resultobj; | |
5237 | wxStopWatch *result; | |
5238 | char *kwnames[] = { | |
5239 | NULL | |
5240 | }; | |
5241 | ||
5242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5243 | { | |
5244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5245 | result = (wxStopWatch *)new wxStopWatch(); | |
5246 | ||
5247 | wxPyEndAllowThreads(__tstate); | |
5248 | if (PyErr_Occurred()) SWIG_fail; | |
5249 | } | |
15afbcd0 | 5250 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); |
d14a1e28 RD |
5251 | return resultobj; |
5252 | fail: | |
5253 | return NULL; | |
5254 | } | |
5255 | ||
5256 | ||
5257 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5258 | PyObject *resultobj; | |
5259 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5260 | long arg2 = (long) 0 ; | |
5261 | PyObject * obj0 = 0 ; | |
994141e6 | 5262 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5263 | char *kwnames[] = { |
5264 | (char *) "self",(char *) "t0", NULL | |
5265 | }; | |
5266 | ||
994141e6 | 5267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5270 | if (obj1) { |
15afbcd0 RD |
5271 | arg2 = (long) SWIG_AsLong(obj1); |
5272 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5273 | } |
d14a1e28 RD |
5274 | { |
5275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5276 | (arg1)->Start(arg2); | |
5277 | ||
5278 | wxPyEndAllowThreads(__tstate); | |
5279 | if (PyErr_Occurred()) SWIG_fail; | |
5280 | } | |
5281 | Py_INCREF(Py_None); resultobj = Py_None; | |
5282 | return resultobj; | |
5283 | fail: | |
5284 | return NULL; | |
5285 | } | |
5286 | ||
5287 | ||
5288 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5289 | PyObject *resultobj; | |
5290 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5291 | PyObject * obj0 = 0 ; | |
5292 | char *kwnames[] = { | |
5293 | (char *) "self", NULL | |
5294 | }; | |
5295 | ||
5296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5299 | { |
5300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5301 | (arg1)->Pause(); | |
5302 | ||
5303 | wxPyEndAllowThreads(__tstate); | |
5304 | if (PyErr_Occurred()) SWIG_fail; | |
5305 | } | |
5306 | Py_INCREF(Py_None); resultobj = Py_None; | |
5307 | return resultobj; | |
5308 | fail: | |
5309 | return NULL; | |
5310 | } | |
5311 | ||
5312 | ||
5313 | static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5314 | PyObject *resultobj; | |
5315 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5316 | PyObject * obj0 = 0 ; | |
5317 | char *kwnames[] = { | |
5318 | (char *) "self", NULL | |
5319 | }; | |
5320 | ||
5321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5324 | { |
5325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5326 | (arg1)->Resume(); | |
5327 | ||
5328 | wxPyEndAllowThreads(__tstate); | |
5329 | if (PyErr_Occurred()) SWIG_fail; | |
5330 | } | |
5331 | Py_INCREF(Py_None); resultobj = Py_None; | |
5332 | return resultobj; | |
5333 | fail: | |
5334 | return NULL; | |
5335 | } | |
5336 | ||
5337 | ||
5338 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5339 | PyObject *resultobj; | |
5340 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5341 | long result; | |
5342 | PyObject * obj0 = 0 ; | |
5343 | char *kwnames[] = { | |
5344 | (char *) "self", NULL | |
5345 | }; | |
5346 | ||
5347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5350 | { |
5351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5352 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5353 | ||
5354 | wxPyEndAllowThreads(__tstate); | |
5355 | if (PyErr_Occurred()) SWIG_fail; | |
5356 | } | |
15afbcd0 | 5357 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
5358 | return resultobj; |
5359 | fail: | |
5360 | return NULL; | |
5361 | } | |
5362 | ||
5363 | ||
5364 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
5365 | PyObject *obj; | |
5366 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5367 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5368 | Py_INCREF(obj); | |
5369 | return Py_BuildValue((char *)""); | |
5370 | } | |
5371 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5372 | PyObject *resultobj; | |
5373 | int arg1 = (int) 9 ; | |
5374 | wxFileHistory *result; | |
994141e6 | 5375 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
5376 | char *kwnames[] = { |
5377 | (char *) "maxFiles", NULL | |
5378 | }; | |
5379 | ||
994141e6 RD |
5380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail; |
5381 | if (obj0) { | |
15afbcd0 RD |
5382 | arg1 = (int) SWIG_AsInt(obj0); |
5383 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5384 | } |
d14a1e28 RD |
5385 | { |
5386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5387 | result = (wxFileHistory *)new wxFileHistory(arg1); | |
5388 | ||
5389 | wxPyEndAllowThreads(__tstate); | |
5390 | if (PyErr_Occurred()) SWIG_fail; | |
5391 | } | |
15afbcd0 | 5392 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); |
d14a1e28 RD |
5393 | return resultobj; |
5394 | fail: | |
5395 | return NULL; | |
5396 | } | |
5397 | ||
5398 | ||
5399 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5400 | PyObject *resultobj; | |
5401 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5402 | PyObject * obj0 = 0 ; | |
5403 | char *kwnames[] = { | |
5404 | (char *) "self", NULL | |
5405 | }; | |
5406 | ||
5407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5410 | { |
5411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5412 | delete arg1; | |
5413 | ||
5414 | wxPyEndAllowThreads(__tstate); | |
5415 | if (PyErr_Occurred()) SWIG_fail; | |
5416 | } | |
5417 | Py_INCREF(Py_None); resultobj = Py_None; | |
5418 | return resultobj; | |
5419 | fail: | |
5420 | return NULL; | |
5421 | } | |
5422 | ||
5423 | ||
5424 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5425 | PyObject *resultobj; | |
5426 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5427 | wxString *arg2 = 0 ; | |
e811c8ce | 5428 | bool temp2 = False ; |
d14a1e28 RD |
5429 | PyObject * obj0 = 0 ; |
5430 | PyObject * obj1 = 0 ; | |
5431 | char *kwnames[] = { | |
5432 | (char *) "self",(char *) "file", NULL | |
5433 | }; | |
5434 | ||
5435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5438 | { |
5439 | arg2 = wxString_in_helper(obj1); | |
5440 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5441 | temp2 = True; |
d14a1e28 RD |
5442 | } |
5443 | { | |
5444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5445 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
5446 | ||
5447 | wxPyEndAllowThreads(__tstate); | |
5448 | if (PyErr_Occurred()) SWIG_fail; | |
5449 | } | |
5450 | Py_INCREF(Py_None); resultobj = Py_None; | |
5451 | { | |
5452 | if (temp2) | |
5453 | delete arg2; | |
5454 | } | |
5455 | return resultobj; | |
5456 | fail: | |
5457 | { | |
5458 | if (temp2) | |
5459 | delete arg2; | |
5460 | } | |
5461 | return NULL; | |
5462 | } | |
5463 | ||
5464 | ||
5465 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5466 | PyObject *resultobj; | |
5467 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5468 | int arg2 ; | |
5469 | PyObject * obj0 = 0 ; | |
994141e6 | 5470 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5471 | char *kwnames[] = { |
5472 | (char *) "self",(char *) "i", NULL | |
5473 | }; | |
5474 | ||
994141e6 | 5475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5478 | arg2 = (int) SWIG_AsInt(obj1); | |
5479 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5480 | { |
5481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5482 | (arg1)->RemoveFileFromHistory(arg2); | |
5483 | ||
5484 | wxPyEndAllowThreads(__tstate); | |
5485 | if (PyErr_Occurred()) SWIG_fail; | |
5486 | } | |
5487 | Py_INCREF(Py_None); resultobj = Py_None; | |
5488 | return resultobj; | |
5489 | fail: | |
5490 | return NULL; | |
5491 | } | |
5492 | ||
5493 | ||
5494 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5495 | PyObject *resultobj; | |
5496 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5497 | int result; | |
5498 | PyObject * obj0 = 0 ; | |
5499 | char *kwnames[] = { | |
5500 | (char *) "self", NULL | |
5501 | }; | |
5502 | ||
5503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5506 | { |
5507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5508 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
5509 | ||
5510 | wxPyEndAllowThreads(__tstate); | |
5511 | if (PyErr_Occurred()) SWIG_fail; | |
5512 | } | |
15afbcd0 | 5513 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5514 | return resultobj; |
5515 | fail: | |
5516 | return NULL; | |
5517 | } | |
5518 | ||
5519 | ||
5520 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5521 | PyObject *resultobj; | |
5522 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5523 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5524 | PyObject * obj0 = 0 ; | |
5525 | PyObject * obj1 = 0 ; | |
5526 | char *kwnames[] = { | |
5527 | (char *) "self",(char *) "menu", NULL | |
5528 | }; | |
5529 | ||
5530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5533 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5535 | { |
5536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5537 | (arg1)->UseMenu(arg2); | |
5538 | ||
5539 | wxPyEndAllowThreads(__tstate); | |
5540 | if (PyErr_Occurred()) SWIG_fail; | |
5541 | } | |
5542 | Py_INCREF(Py_None); resultobj = Py_None; | |
5543 | return resultobj; | |
5544 | fail: | |
5545 | return NULL; | |
5546 | } | |
5547 | ||
5548 | ||
5549 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5550 | PyObject *resultobj; | |
5551 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5552 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5553 | PyObject * obj0 = 0 ; | |
5554 | PyObject * obj1 = 0 ; | |
5555 | char *kwnames[] = { | |
5556 | (char *) "self",(char *) "menu", NULL | |
5557 | }; | |
5558 | ||
5559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5562 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5564 | { |
5565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5566 | (arg1)->RemoveMenu(arg2); | |
5567 | ||
5568 | wxPyEndAllowThreads(__tstate); | |
5569 | if (PyErr_Occurred()) SWIG_fail; | |
5570 | } | |
5571 | Py_INCREF(Py_None); resultobj = Py_None; | |
5572 | return resultobj; | |
5573 | fail: | |
5574 | return NULL; | |
5575 | } | |
5576 | ||
5577 | ||
5578 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5579 | PyObject *resultobj; | |
5580 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5581 | wxConfigBase *arg2 = 0 ; | |
5582 | PyObject * obj0 = 0 ; | |
5583 | PyObject * obj1 = 0 ; | |
5584 | char *kwnames[] = { | |
5585 | (char *) "self",(char *) "config", NULL | |
5586 | }; | |
5587 | ||
5588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5591 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5592 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5593 | SWIG_fail; | |
d14a1e28 | 5594 | if (arg2 == NULL) { |
15afbcd0 RD |
5595 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5596 | SWIG_fail; | |
d14a1e28 RD |
5597 | } |
5598 | { | |
5599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5600 | (arg1)->Load(*arg2); | |
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_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5613 | PyObject *resultobj; | |
5614 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5615 | wxConfigBase *arg2 = 0 ; | |
5616 | PyObject * obj0 = 0 ; | |
5617 | PyObject * obj1 = 0 ; | |
5618 | char *kwnames[] = { | |
5619 | (char *) "self",(char *) "config", NULL | |
5620 | }; | |
5621 | ||
5622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 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_wxConfigBase, | |
5626 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5627 | SWIG_fail; | |
d14a1e28 | 5628 | if (arg2 == NULL) { |
15afbcd0 RD |
5629 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5630 | SWIG_fail; | |
d14a1e28 RD |
5631 | } |
5632 | { | |
5633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5634 | (arg1)->Save(*arg2); | |
5635 | ||
5636 | wxPyEndAllowThreads(__tstate); | |
5637 | if (PyErr_Occurred()) SWIG_fail; | |
5638 | } | |
5639 | Py_INCREF(Py_None); resultobj = Py_None; | |
5640 | return resultobj; | |
5641 | fail: | |
5642 | return NULL; | |
5643 | } | |
5644 | ||
5645 | ||
5646 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5647 | PyObject *resultobj; | |
5648 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5649 | PyObject * obj0 = 0 ; | |
5650 | char *kwnames[] = { | |
5651 | (char *) "self", NULL | |
5652 | }; | |
5653 | ||
5654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5657 | { |
5658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5659 | (arg1)->AddFilesToMenu(); | |
5660 | ||
5661 | wxPyEndAllowThreads(__tstate); | |
5662 | if (PyErr_Occurred()) SWIG_fail; | |
5663 | } | |
5664 | Py_INCREF(Py_None); resultobj = Py_None; | |
5665 | return resultobj; | |
5666 | fail: | |
5667 | return NULL; | |
5668 | } | |
5669 | ||
5670 | ||
5671 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5672 | PyObject *resultobj; | |
5673 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5674 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5675 | PyObject * obj0 = 0 ; | |
5676 | PyObject * obj1 = 0 ; | |
5677 | char *kwnames[] = { | |
5678 | (char *) "self",(char *) "menu", NULL | |
5679 | }; | |
5680 | ||
5681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5684 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5686 | { |
5687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5688 | (arg1)->AddFilesToMenu(arg2); | |
5689 | ||
5690 | wxPyEndAllowThreads(__tstate); | |
5691 | if (PyErr_Occurred()) SWIG_fail; | |
5692 | } | |
5693 | Py_INCREF(Py_None); resultobj = Py_None; | |
5694 | return resultobj; | |
5695 | fail: | |
5696 | return NULL; | |
5697 | } | |
5698 | ||
5699 | ||
5700 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5701 | PyObject *resultobj; | |
5702 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5703 | int arg2 ; | |
5704 | wxString result; | |
5705 | PyObject * obj0 = 0 ; | |
994141e6 | 5706 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5707 | char *kwnames[] = { |
5708 | (char *) "self",(char *) "i", NULL | |
5709 | }; | |
5710 | ||
994141e6 | 5711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5714 | arg2 = (int) SWIG_AsInt(obj1); | |
5715 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5716 | { |
5717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5718 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
5719 | ||
5720 | wxPyEndAllowThreads(__tstate); | |
5721 | if (PyErr_Occurred()) SWIG_fail; | |
5722 | } | |
5723 | { | |
5724 | #if wxUSE_UNICODE | |
5725 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5726 | #else | |
5727 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5728 | #endif | |
5729 | } | |
5730 | return resultobj; | |
5731 | fail: | |
5732 | return NULL; | |
5733 | } | |
5734 | ||
5735 | ||
5736 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5737 | PyObject *resultobj; | |
5738 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5739 | int result; | |
5740 | PyObject * obj0 = 0 ; | |
5741 | char *kwnames[] = { | |
5742 | (char *) "self", NULL | |
5743 | }; | |
5744 | ||
5745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5748 | { |
5749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5750 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
5751 | ||
5752 | wxPyEndAllowThreads(__tstate); | |
5753 | if (PyErr_Occurred()) SWIG_fail; | |
5754 | } | |
15afbcd0 | 5755 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5756 | return resultobj; |
5757 | fail: | |
5758 | return NULL; | |
5759 | } | |
5760 | ||
5761 | ||
5762 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
5763 | PyObject *obj; | |
5764 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5765 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
5766 | Py_INCREF(obj); | |
5767 | return Py_BuildValue((char *)""); | |
5768 | } | |
5769 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5770 | PyObject *resultobj; | |
5771 | wxString *arg1 = 0 ; | |
5772 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5773 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5774 | wxSingleInstanceChecker *result; | |
e811c8ce RD |
5775 | bool temp1 = False ; |
5776 | bool temp2 = False ; | |
d14a1e28 RD |
5777 | PyObject * obj0 = 0 ; |
5778 | PyObject * obj1 = 0 ; | |
5779 | char *kwnames[] = { | |
5780 | (char *) "name",(char *) "path", NULL | |
5781 | }; | |
5782 | ||
5783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
5784 | { | |
5785 | arg1 = wxString_in_helper(obj0); | |
5786 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 5787 | temp1 = True; |
d14a1e28 RD |
5788 | } |
5789 | if (obj1) { | |
5790 | { | |
5791 | arg2 = wxString_in_helper(obj1); | |
5792 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5793 | temp2 = True; |
d14a1e28 RD |
5794 | } |
5795 | } | |
5796 | { | |
5797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5798 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
5799 | ||
5800 | wxPyEndAllowThreads(__tstate); | |
5801 | if (PyErr_Occurred()) SWIG_fail; | |
5802 | } | |
15afbcd0 | 5803 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); |
d14a1e28 RD |
5804 | { |
5805 | if (temp1) | |
5806 | delete arg1; | |
5807 | } | |
5808 | { | |
5809 | if (temp2) | |
5810 | delete arg2; | |
5811 | } | |
5812 | return resultobj; | |
5813 | fail: | |
5814 | { | |
5815 | if (temp1) | |
5816 | delete arg1; | |
5817 | } | |
5818 | { | |
5819 | if (temp2) | |
5820 | delete arg2; | |
5821 | } | |
5822 | return NULL; | |
5823 | } | |
5824 | ||
5825 | ||
5826 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5827 | PyObject *resultobj; | |
5828 | wxSingleInstanceChecker *result; | |
5829 | char *kwnames[] = { | |
5830 | NULL | |
5831 | }; | |
5832 | ||
5833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
5834 | { | |
5835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5836 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
5837 | ||
5838 | wxPyEndAllowThreads(__tstate); | |
5839 | if (PyErr_Occurred()) SWIG_fail; | |
5840 | } | |
15afbcd0 | 5841 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); |
d14a1e28 RD |
5842 | return resultobj; |
5843 | fail: | |
5844 | return NULL; | |
5845 | } | |
5846 | ||
5847 | ||
5848 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5849 | PyObject *resultobj; | |
5850 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5851 | PyObject * obj0 = 0 ; | |
5852 | char *kwnames[] = { | |
5853 | (char *) "self", NULL | |
5854 | }; | |
5855 | ||
5856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
5858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5859 | { |
5860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5861 | delete arg1; | |
5862 | ||
5863 | wxPyEndAllowThreads(__tstate); | |
5864 | if (PyErr_Occurred()) SWIG_fail; | |
5865 | } | |
5866 | Py_INCREF(Py_None); resultobj = Py_None; | |
5867 | return resultobj; | |
5868 | fail: | |
5869 | return NULL; | |
5870 | } | |
5871 | ||
5872 | ||
5873 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5874 | PyObject *resultobj; | |
5875 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5876 | wxString *arg2 = 0 ; | |
5877 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5878 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5879 | bool result; | |
e811c8ce RD |
5880 | bool temp2 = False ; |
5881 | bool temp3 = False ; | |
d14a1e28 RD |
5882 | PyObject * obj0 = 0 ; |
5883 | PyObject * obj1 = 0 ; | |
5884 | PyObject * obj2 = 0 ; | |
5885 | char *kwnames[] = { | |
5886 | (char *) "self",(char *) "name",(char *) "path", NULL | |
5887 | }; | |
5888 | ||
5889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
5890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
5891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5892 | { |
5893 | arg2 = wxString_in_helper(obj1); | |
5894 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5895 | temp2 = True; |
d14a1e28 RD |
5896 | } |
5897 | if (obj2) { | |
5898 | { | |
5899 | arg3 = wxString_in_helper(obj2); | |
5900 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 5901 | temp3 = True; |
d14a1e28 RD |
5902 | } |
5903 | } | |
5904 | { | |
5905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5906 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
5907 | ||
5908 | wxPyEndAllowThreads(__tstate); | |
5909 | if (PyErr_Occurred()) SWIG_fail; | |
5910 | } | |
4f89f6a3 RD |
5911 | { |
5912 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5913 | } | |
d14a1e28 RD |
5914 | { |
5915 | if (temp2) | |
5916 | delete arg2; | |
5917 | } | |
5918 | { | |
5919 | if (temp3) | |
5920 | delete arg3; | |
5921 | } | |
5922 | return resultobj; | |
5923 | fail: | |
5924 | { | |
5925 | if (temp2) | |
5926 | delete arg2; | |
5927 | } | |
5928 | { | |
5929 | if (temp3) | |
5930 | delete arg3; | |
5931 | } | |
5932 | return NULL; | |
5933 | } | |
5934 | ||
5935 | ||
5936 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5937 | PyObject *resultobj; | |
5938 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5939 | bool result; | |
5940 | PyObject * obj0 = 0 ; | |
5941 | char *kwnames[] = { | |
5942 | (char *) "self", NULL | |
5943 | }; | |
5944 | ||
5945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
5947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5948 | { |
5949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5950 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
5951 | ||
5952 | wxPyEndAllowThreads(__tstate); | |
5953 | if (PyErr_Occurred()) SWIG_fail; | |
5954 | } | |
4f89f6a3 RD |
5955 | { |
5956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5957 | } | |
d14a1e28 RD |
5958 | return resultobj; |
5959 | fail: | |
5960 | return NULL; | |
5961 | } | |
5962 | ||
5963 | ||
5964 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
5965 | PyObject *obj; | |
5966 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5967 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
5968 | Py_INCREF(obj); | |
5969 | return Py_BuildValue((char *)""); | |
5970 | } | |
5971 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5972 | PyObject *resultobj; | |
5973 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5974 | wxDC *arg2 = 0 ; | |
5975 | int arg3 ; | |
5976 | PyObject * obj0 = 0 ; | |
5977 | PyObject * obj1 = 0 ; | |
994141e6 | 5978 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5979 | char *kwnames[] = { |
5980 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
5981 | }; | |
5982 | ||
994141e6 | 5983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5986 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
5987 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5988 | SWIG_fail; | |
d14a1e28 | 5989 | if (arg2 == NULL) { |
15afbcd0 RD |
5990 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5991 | SWIG_fail; | |
994141e6 | 5992 | } |
15afbcd0 RD |
5993 | arg3 = (int) SWIG_AsInt(obj2); |
5994 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5995 | { |
5996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5997 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
5998 | ||
5999 | wxPyEndAllowThreads(__tstate); | |
6000 | if (PyErr_Occurred()) SWIG_fail; | |
6001 | } | |
6002 | Py_INCREF(Py_None); resultobj = Py_None; | |
6003 | return resultobj; | |
6004 | fail: | |
6005 | return NULL; | |
6006 | } | |
6007 | ||
6008 | ||
6009 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6010 | PyObject *resultobj; | |
6011 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6012 | PyObject * obj0 = 0 ; | |
6013 | char *kwnames[] = { | |
6014 | (char *) "self", NULL | |
6015 | }; | |
6016 | ||
6017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6020 | { |
6021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6022 | delete arg1; | |
6023 | ||
6024 | wxPyEndAllowThreads(__tstate); | |
6025 | if (PyErr_Occurred()) SWIG_fail; | |
6026 | } | |
6027 | Py_INCREF(Py_None); resultobj = Py_None; | |
6028 | return resultobj; | |
6029 | fail: | |
6030 | return NULL; | |
6031 | } | |
6032 | ||
6033 | ||
6034 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6035 | PyObject *resultobj; | |
6036 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6037 | wxString result; | |
6038 | PyObject * obj0 = 0 ; | |
6039 | char *kwnames[] = { | |
6040 | (char *) "self", NULL | |
6041 | }; | |
6042 | ||
6043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6046 | { |
6047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6048 | result = (arg1)->GetTip(); | |
6049 | ||
6050 | wxPyEndAllowThreads(__tstate); | |
6051 | if (PyErr_Occurred()) SWIG_fail; | |
6052 | } | |
6053 | { | |
6054 | #if wxUSE_UNICODE | |
6055 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6056 | #else | |
6057 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6058 | #endif | |
6059 | } | |
6060 | return resultobj; | |
6061 | fail: | |
6062 | return NULL; | |
6063 | } | |
6064 | ||
6065 | ||
6066 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6067 | PyObject *resultobj; | |
6068 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6069 | size_t result; | |
6070 | PyObject * obj0 = 0 ; | |
6071 | char *kwnames[] = { | |
6072 | (char *) "self", NULL | |
6073 | }; | |
6074 | ||
6075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6078 | { |
6079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6080 | result = (size_t)(arg1)->GetCurrentTip(); | |
6081 | ||
6082 | wxPyEndAllowThreads(__tstate); | |
6083 | if (PyErr_Occurred()) SWIG_fail; | |
6084 | } | |
15afbcd0 | 6085 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
6086 | return resultobj; |
6087 | fail: | |
6088 | return NULL; | |
6089 | } | |
6090 | ||
6091 | ||
6092 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6093 | PyObject *resultobj; | |
6094 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6095 | wxString *arg2 = 0 ; | |
6096 | wxString result; | |
e811c8ce | 6097 | bool temp2 = False ; |
d14a1e28 RD |
6098 | PyObject * obj0 = 0 ; |
6099 | PyObject * obj1 = 0 ; | |
6100 | char *kwnames[] = { | |
6101 | (char *) "self",(char *) "tip", NULL | |
6102 | }; | |
6103 | ||
6104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6107 | { |
6108 | arg2 = wxString_in_helper(obj1); | |
6109 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6110 | temp2 = True; |
d14a1e28 RD |
6111 | } |
6112 | { | |
6113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6114 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
6115 | ||
6116 | wxPyEndAllowThreads(__tstate); | |
6117 | if (PyErr_Occurred()) SWIG_fail; | |
6118 | } | |
6119 | { | |
6120 | #if wxUSE_UNICODE | |
6121 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6122 | #else | |
6123 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6124 | #endif | |
6125 | } | |
6126 | { | |
6127 | if (temp2) | |
6128 | delete arg2; | |
6129 | } | |
6130 | return resultobj; | |
6131 | fail: | |
6132 | { | |
6133 | if (temp2) | |
6134 | delete arg2; | |
6135 | } | |
6136 | return NULL; | |
6137 | } | |
6138 | ||
6139 | ||
6140 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
6141 | PyObject *obj; | |
6142 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6143 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
6144 | Py_INCREF(obj); | |
6145 | return Py_BuildValue((char *)""); | |
6146 | } | |
6147 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6148 | PyObject *resultobj; | |
6149 | size_t arg1 ; | |
6150 | wxPyTipProvider *result; | |
6151 | PyObject * obj0 = 0 ; | |
6152 | char *kwnames[] = { | |
6153 | (char *) "currentTip", NULL | |
6154 | }; | |
6155 | ||
6156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6157 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); |
6158 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6159 | { |
6160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6161 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
6162 | ||
6163 | wxPyEndAllowThreads(__tstate); | |
6164 | if (PyErr_Occurred()) SWIG_fail; | |
6165 | } | |
15afbcd0 | 6166 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); |
d14a1e28 RD |
6167 | return resultobj; |
6168 | fail: | |
6169 | return NULL; | |
6170 | } | |
6171 | ||
6172 | ||
6173 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6174 | PyObject *resultobj; | |
6175 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
6176 | PyObject *arg2 = (PyObject *) 0 ; | |
6177 | PyObject *arg3 = (PyObject *) 0 ; | |
6178 | PyObject * obj0 = 0 ; | |
6179 | PyObject * obj1 = 0 ; | |
6180 | PyObject * obj2 = 0 ; | |
6181 | char *kwnames[] = { | |
6182 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6183 | }; | |
6184 | ||
6185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider, |
6187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6188 | arg2 = obj1; |
6189 | arg3 = obj2; | |
6190 | { | |
6191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6192 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6193 | ||
6194 | wxPyEndAllowThreads(__tstate); | |
6195 | if (PyErr_Occurred()) SWIG_fail; | |
6196 | } | |
6197 | Py_INCREF(Py_None); resultobj = Py_None; | |
6198 | return resultobj; | |
6199 | fail: | |
6200 | return NULL; | |
6201 | } | |
6202 | ||
6203 | ||
6204 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
6205 | PyObject *obj; | |
6206 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6207 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
6208 | Py_INCREF(obj); | |
6209 | return Py_BuildValue((char *)""); | |
6210 | } | |
6211 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6212 | PyObject *resultobj; | |
6213 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6214 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
e811c8ce | 6215 | bool arg3 = (bool) True ; |
d14a1e28 RD |
6216 | bool result; |
6217 | PyObject * obj0 = 0 ; | |
6218 | PyObject * obj1 = 0 ; | |
6219 | PyObject * obj2 = 0 ; | |
6220 | char *kwnames[] = { | |
6221 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
6222 | }; | |
6223 | ||
6224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6227 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider, | |
6228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6229 | if (obj2) { |
15afbcd0 RD |
6230 | arg3 = (bool) SWIG_AsBool(obj2); |
6231 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6232 | } |
6233 | { | |
6234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6235 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6236 | ||
6237 | wxPyEndAllowThreads(__tstate); | |
6238 | if (PyErr_Occurred()) SWIG_fail; | |
6239 | } | |
4f89f6a3 RD |
6240 | { |
6241 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6242 | } | |
d14a1e28 RD |
6243 | return resultobj; |
6244 | fail: | |
6245 | return NULL; | |
6246 | } | |
6247 | ||
6248 | ||
6249 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6250 | PyObject *resultobj; | |
6251 | wxString *arg1 = 0 ; | |
6252 | size_t arg2 ; | |
6253 | wxTipProvider *result; | |
e811c8ce | 6254 | bool temp1 = False ; |
d14a1e28 RD |
6255 | PyObject * obj0 = 0 ; |
6256 | PyObject * obj1 = 0 ; | |
6257 | char *kwnames[] = { | |
6258 | (char *) "filename",(char *) "currentTip", NULL | |
6259 | }; | |
6260 | ||
6261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6262 | { | |
6263 | arg1 = wxString_in_helper(obj0); | |
6264 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 6265 | temp1 = True; |
d14a1e28 | 6266 | } |
15afbcd0 RD |
6267 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); |
6268 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6269 | { |
6270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6271 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6272 | ||
6273 | wxPyEndAllowThreads(__tstate); | |
6274 | if (PyErr_Occurred()) SWIG_fail; | |
6275 | } | |
15afbcd0 | 6276 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); |
d14a1e28 RD |
6277 | { |
6278 | if (temp1) | |
6279 | delete arg1; | |
6280 | } | |
6281 | return resultobj; | |
6282 | fail: | |
6283 | { | |
6284 | if (temp1) | |
6285 | delete arg1; | |
6286 | } | |
6287 | return NULL; | |
6288 | } | |
6289 | ||
6290 | ||
6291 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6292 | PyObject *resultobj; | |
6293 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6294 | int arg2 = (int) -1 ; | |
6295 | wxPyTimer *result; | |
6296 | PyObject * obj0 = 0 ; | |
994141e6 | 6297 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6298 | char *kwnames[] = { |
6299 | (char *) "owner",(char *) "id", NULL | |
6300 | }; | |
6301 | ||
994141e6 | 6302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6303 | if (obj0) { |
15afbcd0 RD |
6304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
6305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6306 | } |
994141e6 | 6307 | if (obj1) { |
15afbcd0 RD |
6308 | arg2 = (int) SWIG_AsInt(obj1); |
6309 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6310 | } |
d14a1e28 RD |
6311 | { |
6312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6313 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6314 | ||
6315 | wxPyEndAllowThreads(__tstate); | |
6316 | if (PyErr_Occurred()) SWIG_fail; | |
6317 | } | |
15afbcd0 | 6318 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); |
d14a1e28 RD |
6319 | return resultobj; |
6320 | fail: | |
6321 | return NULL; | |
6322 | } | |
6323 | ||
6324 | ||
6325 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6326 | PyObject *resultobj; | |
6327 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6328 | PyObject * obj0 = 0 ; | |
6329 | char *kwnames[] = { | |
6330 | (char *) "self", NULL | |
6331 | }; | |
6332 | ||
6333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6336 | { |
6337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6338 | delete arg1; | |
6339 | ||
6340 | wxPyEndAllowThreads(__tstate); | |
6341 | if (PyErr_Occurred()) SWIG_fail; | |
6342 | } | |
6343 | Py_INCREF(Py_None); resultobj = Py_None; | |
6344 | return resultobj; | |
6345 | fail: | |
6346 | return NULL; | |
6347 | } | |
6348 | ||
6349 | ||
7722248d RD |
6350 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
6351 | PyObject *resultobj; | |
6352 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6353 | PyObject *arg2 = (PyObject *) 0 ; | |
6354 | PyObject *arg3 = (PyObject *) 0 ; | |
4276dc52 | 6355 | int arg4 = (int) 1 ; |
7722248d RD |
6356 | PyObject * obj0 = 0 ; |
6357 | PyObject * obj1 = 0 ; | |
6358 | PyObject * obj2 = 0 ; | |
4276dc52 | 6359 | PyObject * obj3 = 0 ; |
7722248d | 6360 | char *kwnames[] = { |
4276dc52 | 6361 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL |
7722248d RD |
6362 | }; |
6363 | ||
4276dc52 | 6364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
6365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7722248d RD |
6367 | arg2 = obj1; |
6368 | arg3 = obj2; | |
4276dc52 RD |
6369 | if (obj3) { |
6370 | arg4 = (int) SWIG_AsInt(obj3); | |
6371 | if (PyErr_Occurred()) SWIG_fail; | |
6372 | } | |
7722248d RD |
6373 | { |
6374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4276dc52 | 6375 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); |
7722248d RD |
6376 | |
6377 | wxPyEndAllowThreads(__tstate); | |
6378 | if (PyErr_Occurred()) SWIG_fail; | |
6379 | } | |
6380 | Py_INCREF(Py_None); resultobj = Py_None; | |
6381 | return resultobj; | |
6382 | fail: | |
6383 | return NULL; | |
6384 | } | |
6385 | ||
6386 | ||
d14a1e28 RD |
6387 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
6388 | PyObject *resultobj; | |
6389 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6390 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6391 | int arg3 = (int) -1 ; | |
6392 | PyObject * obj0 = 0 ; | |
6393 | PyObject * obj1 = 0 ; | |
994141e6 | 6394 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6395 | char *kwnames[] = { |
6396 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6397 | }; | |
6398 | ||
994141e6 | 6399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6402 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
6403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6404 | if (obj2) { |
15afbcd0 RD |
6405 | arg3 = (int) SWIG_AsInt(obj2); |
6406 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6407 | } |
d14a1e28 RD |
6408 | { |
6409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6410 | (arg1)->SetOwner(arg2,arg3); | |
6411 | ||
6412 | wxPyEndAllowThreads(__tstate); | |
6413 | if (PyErr_Occurred()) SWIG_fail; | |
6414 | } | |
6415 | Py_INCREF(Py_None); resultobj = Py_None; | |
6416 | return resultobj; | |
6417 | fail: | |
6418 | return NULL; | |
6419 | } | |
6420 | ||
6421 | ||
6422 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6423 | PyObject *resultobj; | |
6424 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6425 | int arg2 = (int) -1 ; | |
e811c8ce | 6426 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6427 | bool result; |
6428 | PyObject * obj0 = 0 ; | |
994141e6 | 6429 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6430 | PyObject * obj2 = 0 ; |
6431 | char *kwnames[] = { | |
6432 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
6433 | }; | |
6434 | ||
994141e6 | 6435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6438 | if (obj1) { |
15afbcd0 RD |
6439 | arg2 = (int) SWIG_AsInt(obj1); |
6440 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6441 | } |
d14a1e28 | 6442 | if (obj2) { |
15afbcd0 RD |
6443 | arg3 = (bool) SWIG_AsBool(obj2); |
6444 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6445 | } |
6446 | { | |
6447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6448 | result = (bool)(arg1)->Start(arg2,arg3); | |
6449 | ||
6450 | wxPyEndAllowThreads(__tstate); | |
6451 | if (PyErr_Occurred()) SWIG_fail; | |
6452 | } | |
4f89f6a3 RD |
6453 | { |
6454 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6455 | } | |
d14a1e28 RD |
6456 | return resultobj; |
6457 | fail: | |
6458 | return NULL; | |
6459 | } | |
6460 | ||
6461 | ||
6462 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6463 | PyObject *resultobj; | |
6464 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6465 | PyObject * obj0 = 0 ; | |
6466 | char *kwnames[] = { | |
6467 | (char *) "self", NULL | |
6468 | }; | |
6469 | ||
6470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6473 | { |
6474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6475 | (arg1)->Stop(); | |
6476 | ||
6477 | wxPyEndAllowThreads(__tstate); | |
6478 | if (PyErr_Occurred()) SWIG_fail; | |
6479 | } | |
6480 | Py_INCREF(Py_None); resultobj = Py_None; | |
6481 | return resultobj; | |
6482 | fail: | |
6483 | return NULL; | |
6484 | } | |
6485 | ||
6486 | ||
d14a1e28 RD |
6487 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { |
6488 | PyObject *resultobj; | |
6489 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6490 | bool result; | |
6491 | PyObject * obj0 = 0 ; | |
6492 | char *kwnames[] = { | |
6493 | (char *) "self", NULL | |
6494 | }; | |
6495 | ||
6496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6499 | { |
6500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6501 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
6502 | ||
6503 | wxPyEndAllowThreads(__tstate); | |
6504 | if (PyErr_Occurred()) SWIG_fail; | |
6505 | } | |
4f89f6a3 RD |
6506 | { |
6507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6508 | } | |
d14a1e28 RD |
6509 | return resultobj; |
6510 | fail: | |
6511 | return NULL; | |
6512 | } | |
6513 | ||
6514 | ||
6515 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6516 | PyObject *resultobj; | |
6517 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6518 | int result; | |
6519 | PyObject * obj0 = 0 ; | |
6520 | char *kwnames[] = { | |
6521 | (char *) "self", NULL | |
6522 | }; | |
6523 | ||
6524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6527 | { |
6528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6529 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
6530 | ||
6531 | wxPyEndAllowThreads(__tstate); | |
6532 | if (PyErr_Occurred()) SWIG_fail; | |
6533 | } | |
15afbcd0 | 6534 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6535 | return resultobj; |
6536 | fail: | |
6537 | return NULL; | |
6538 | } | |
6539 | ||
6540 | ||
6541 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6542 | PyObject *resultobj; | |
6543 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6544 | bool result; | |
6545 | PyObject * obj0 = 0 ; | |
6546 | char *kwnames[] = { | |
6547 | (char *) "self", NULL | |
6548 | }; | |
6549 | ||
6550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6553 | { |
6554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6555 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
6556 | ||
6557 | wxPyEndAllowThreads(__tstate); | |
6558 | if (PyErr_Occurred()) SWIG_fail; | |
6559 | } | |
4f89f6a3 RD |
6560 | { |
6561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6562 | } | |
d14a1e28 RD |
6563 | return resultobj; |
6564 | fail: | |
6565 | return NULL; | |
6566 | } | |
6567 | ||
6568 | ||
cc6dd355 RD |
6569 | static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
6570 | PyObject *resultobj; | |
6571 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6572 | int result; | |
6573 | PyObject * obj0 = 0 ; | |
6574 | char *kwnames[] = { | |
6575 | (char *) "self", NULL | |
6576 | }; | |
6577 | ||
6578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
cc6dd355 RD |
6581 | { |
6582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6583 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
6584 | ||
6585 | wxPyEndAllowThreads(__tstate); | |
6586 | if (PyErr_Occurred()) SWIG_fail; | |
6587 | } | |
15afbcd0 | 6588 | resultobj = SWIG_FromInt((int)result); |
cc6dd355 RD |
6589 | return resultobj; |
6590 | fail: | |
6591 | return NULL; | |
6592 | } | |
6593 | ||
6594 | ||
d14a1e28 RD |
6595 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { |
6596 | PyObject *obj; | |
6597 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6598 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
6599 | Py_INCREF(obj); | |
6600 | return Py_BuildValue((char *)""); | |
6601 | } | |
6602 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6603 | PyObject *resultobj; | |
6604 | int arg1 = (int) 0 ; | |
6605 | int arg2 = (int) 0 ; | |
6606 | wxTimerEvent *result; | |
994141e6 RD |
6607 | PyObject * obj0 = 0 ; |
6608 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
6609 | char *kwnames[] = { |
6610 | (char *) "timerid",(char *) "interval", NULL | |
6611 | }; | |
6612 | ||
994141e6 RD |
6613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; |
6614 | if (obj0) { | |
15afbcd0 RD |
6615 | arg1 = (int) SWIG_AsInt(obj0); |
6616 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
6617 | } |
6618 | if (obj1) { | |
15afbcd0 RD |
6619 | arg2 = (int) SWIG_AsInt(obj1); |
6620 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6621 | } |
d14a1e28 RD |
6622 | { |
6623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6624 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
6625 | ||
6626 | wxPyEndAllowThreads(__tstate); | |
6627 | if (PyErr_Occurred()) SWIG_fail; | |
6628 | } | |
15afbcd0 | 6629 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); |
d14a1e28 RD |
6630 | return resultobj; |
6631 | fail: | |
6632 | return NULL; | |
6633 | } | |
6634 | ||
6635 | ||
6636 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6637 | PyObject *resultobj; | |
6638 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
6639 | int result; | |
6640 | PyObject * obj0 = 0 ; | |
6641 | char *kwnames[] = { | |
6642 | (char *) "self", NULL | |
6643 | }; | |
6644 | ||
6645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent, |
6647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6648 | { |
6649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6650 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
6651 | ||
6652 | wxPyEndAllowThreads(__tstate); | |
6653 | if (PyErr_Occurred()) SWIG_fail; | |
6654 | } | |
15afbcd0 | 6655 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6656 | return resultobj; |
6657 | fail: | |
6658 | return NULL; | |
6659 | } | |
6660 | ||
6661 | ||
6662 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
6663 | PyObject *obj; | |
6664 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6665 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
6666 | Py_INCREF(obj); | |
6667 | return Py_BuildValue((char *)""); | |
6668 | } | |
6669 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
6670 | PyObject *resultobj; | |
6671 | wxTimer *arg1 = 0 ; | |
6672 | wxTimerRunner *result; | |
6673 | PyObject * obj0 = 0 ; | |
6674 | ||
6675 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
15afbcd0 RD |
6676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, |
6677 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6678 | SWIG_fail; | |
d14a1e28 | 6679 | if (arg1 == NULL) { |
15afbcd0 RD |
6680 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6681 | SWIG_fail; | |
d14a1e28 RD |
6682 | } |
6683 | { | |
6684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6685 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
6686 | ||
6687 | wxPyEndAllowThreads(__tstate); | |
6688 | if (PyErr_Occurred()) SWIG_fail; | |
6689 | } | |
15afbcd0 | 6690 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); |
d14a1e28 RD |
6691 | return resultobj; |
6692 | fail: | |
6693 | return NULL; | |
6694 | } | |
6695 | ||
6696 | ||
6697 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { | |
6698 | PyObject *resultobj; | |
6699 | wxTimer *arg1 = 0 ; | |
6700 | int arg2 ; | |
e811c8ce | 6701 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6702 | wxTimerRunner *result; |
6703 | PyObject * obj0 = 0 ; | |
994141e6 | 6704 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6705 | PyObject * obj2 = 0 ; |
6706 | ||
994141e6 | 6707 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, |
6709 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6710 | SWIG_fail; | |
d14a1e28 | 6711 | if (arg1 == NULL) { |
15afbcd0 RD |
6712 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6713 | SWIG_fail; | |
994141e6 | 6714 | } |
15afbcd0 RD |
6715 | arg2 = (int) SWIG_AsInt(obj1); |
6716 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 6717 | if (obj2) { |
15afbcd0 RD |
6718 | arg3 = (bool) SWIG_AsBool(obj2); |
6719 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6720 | } |
6721 | { | |
6722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6723 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
6724 | ||
6725 | wxPyEndAllowThreads(__tstate); | |
6726 | if (PyErr_Occurred()) SWIG_fail; | |
6727 | } | |
15afbcd0 | 6728 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); |
d14a1e28 RD |
6729 | return resultobj; |
6730 | fail: | |
6731 | return NULL; | |
6732 | } | |
6733 | ||
6734 | ||
6735 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
6736 | int argc; | |
6737 | PyObject *argv[4]; | |
6738 | int ii; | |
6739 | ||
6740 | argc = PyObject_Length(args); | |
6741 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
6742 | argv[ii] = PyTuple_GetItem(args,ii); | |
6743 | } | |
6744 | if (argc == 1) { | |
6745 | int _v; | |
6746 | { | |
6747 | void *ptr; | |
15afbcd0 | 6748 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
d14a1e28 RD |
6749 | _v = 0; |
6750 | PyErr_Clear(); | |
6751 | } else { | |
6752 | _v = 1; | |
6753 | } | |
6754 | } | |
6755 | if (_v) { | |
6756 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
6757 | } | |
6758 | } | |
6759 | if ((argc >= 2) && (argc <= 3)) { | |
6760 | int _v; | |
6761 | { | |
6762 | void *ptr; | |
15afbcd0 | 6763 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
d14a1e28 RD |
6764 | _v = 0; |
6765 | PyErr_Clear(); | |
6766 | } else { | |
6767 | _v = 1; | |
6768 | } | |
6769 | } | |
6770 | if (_v) { | |
15afbcd0 | 6771 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
6772 | if (_v) { |
6773 | if (argc <= 2) { | |
6774 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6775 | } | |
15afbcd0 | 6776 | _v = SWIG_CheckBool(argv[2]); |
d14a1e28 RD |
6777 | if (_v) { |
6778 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6779 | } | |
6780 | } | |
6781 | } | |
6782 | } | |
6783 | ||
6784 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
6785 | return NULL; | |
6786 | } | |
6787 | ||
6788 | ||
6789 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6790 | PyObject *resultobj; | |
6791 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6792 | PyObject * obj0 = 0 ; | |
6793 | char *kwnames[] = { | |
6794 | (char *) "self", NULL | |
6795 | }; | |
6796 | ||
6797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, |
6799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6800 | { |
6801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6802 | delete arg1; | |
6803 | ||
6804 | wxPyEndAllowThreads(__tstate); | |
6805 | if (PyErr_Occurred()) SWIG_fail; | |
6806 | } | |
6807 | Py_INCREF(Py_None); resultobj = Py_None; | |
6808 | return resultobj; | |
6809 | fail: | |
6810 | return NULL; | |
6811 | } | |
6812 | ||
6813 | ||
6814 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6815 | PyObject *resultobj; | |
6816 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6817 | int arg2 ; | |
e811c8ce | 6818 | bool arg3 = (bool) False ; |
d14a1e28 | 6819 | PyObject * obj0 = 0 ; |
994141e6 | 6820 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6821 | PyObject * obj2 = 0 ; |
6822 | char *kwnames[] = { | |
6823 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
6824 | }; | |
6825 | ||
994141e6 | 6826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, |
6828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6829 | arg2 = (int) SWIG_AsInt(obj1); | |
6830 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 6831 | if (obj2) { |
15afbcd0 RD |
6832 | arg3 = (bool) SWIG_AsBool(obj2); |
6833 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6834 | } |
6835 | { | |
6836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6837 | (arg1)->Start(arg2,arg3); | |
6838 | ||
6839 | wxPyEndAllowThreads(__tstate); | |
6840 | if (PyErr_Occurred()) SWIG_fail; | |
6841 | } | |
6842 | Py_INCREF(Py_None); resultobj = Py_None; | |
6843 | return resultobj; | |
6844 | fail: | |
6845 | return NULL; | |
6846 | } | |
6847 | ||
6848 | ||
6849 | static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
6850 | PyObject *obj; | |
6851 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6852 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
6853 | Py_INCREF(obj); | |
6854 | return Py_BuildValue((char *)""); | |
6855 | } | |
6856 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6857 | PyObject *resultobj; | |
6858 | wxLog *result; | |
6859 | char *kwnames[] = { | |
6860 | NULL | |
6861 | }; | |
6862 | ||
6863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
6864 | { | |
6865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6866 | result = (wxLog *)new wxLog(); | |
6867 | ||
6868 | wxPyEndAllowThreads(__tstate); | |
6869 | if (PyErr_Occurred()) SWIG_fail; | |
6870 | } | |
15afbcd0 | 6871 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); |
d14a1e28 RD |
6872 | return resultobj; |
6873 | fail: | |
6874 | return NULL; | |
6875 | } | |
6876 | ||
6877 | ||
6878 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6879 | PyObject *resultobj; | |
6880 | bool result; | |
6881 | char *kwnames[] = { | |
6882 | NULL | |
6883 | }; | |
6884 | ||
6885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
6886 | { | |
6887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6888 | result = (bool)wxLog::IsEnabled(); | |
6889 | ||
6890 | wxPyEndAllowThreads(__tstate); | |
6891 | if (PyErr_Occurred()) SWIG_fail; | |
6892 | } | |
4f89f6a3 RD |
6893 | { |
6894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6895 | } | |
d14a1e28 RD |
6896 | return resultobj; |
6897 | fail: | |
6898 | return NULL; | |
6899 | } | |
6900 | ||
6901 | ||
6902 | static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6903 | PyObject *resultobj; | |
e811c8ce | 6904 | bool arg1 = (bool) True ; |
d14a1e28 RD |
6905 | bool result; |
6906 | PyObject * obj0 = 0 ; | |
6907 | char *kwnames[] = { | |
6908 | (char *) "doIt", NULL | |
6909 | }; | |
6910 | ||
6911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
6912 | if (obj0) { | |
15afbcd0 RD |
6913 | arg1 = (bool) SWIG_AsBool(obj0); |
6914 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6915 | } |
6916 | { | |
6917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6918 | result = (bool)wxLog::EnableLogging(arg1); | |
6919 | ||
6920 | wxPyEndAllowThreads(__tstate); | |
6921 | if (PyErr_Occurred()) SWIG_fail; | |
6922 | } | |
4f89f6a3 RD |
6923 | { |
6924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6925 | } | |
d14a1e28 RD |
6926 | return resultobj; |
6927 | fail: | |
6928 | return NULL; | |
6929 | } | |
6930 | ||
6931 | ||
6932 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6933 | PyObject *resultobj; | |
6934 | wxLogLevel arg1 ; | |
6935 | wxChar *arg2 = (wxChar *) 0 ; | |
6936 | time_t arg3 ; | |
6937 | PyObject * obj0 = 0 ; | |
6938 | PyObject * obj1 = 0 ; | |
6939 | PyObject * obj2 = 0 ; | |
6940 | char *kwnames[] = { | |
6941 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
6942 | }; | |
6943 | ||
6944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6945 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); |
6946 | if (PyErr_Occurred()) SWIG_fail; | |
6947 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar, | |
6948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6949 | arg3 = (time_t) SWIG_AsUnsignedInt(obj2); | |
6950 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6951 | { |
6952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6953 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
6954 | ||
6955 | wxPyEndAllowThreads(__tstate); | |
6956 | if (PyErr_Occurred()) SWIG_fail; | |
6957 | } | |
6958 | Py_INCREF(Py_None); resultobj = Py_None; | |
6959 | return resultobj; | |
6960 | fail: | |
6961 | return NULL; | |
6962 | } | |
6963 | ||
6964 | ||
6965 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6966 | PyObject *resultobj; | |
6967 | wxLog *arg1 = (wxLog *) 0 ; | |
6968 | PyObject * obj0 = 0 ; | |
6969 | char *kwnames[] = { | |
6970 | (char *) "self", NULL | |
6971 | }; | |
6972 | ||
6973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
6975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6976 | { |
6977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6978 | (arg1)->Flush(); | |
6979 | ||
6980 | wxPyEndAllowThreads(__tstate); | |
6981 | if (PyErr_Occurred()) SWIG_fail; | |
6982 | } | |
6983 | Py_INCREF(Py_None); resultobj = Py_None; | |
6984 | return resultobj; | |
6985 | fail: | |
6986 | return NULL; | |
6987 | } | |
6988 | ||
6989 | ||
6990 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6991 | PyObject *resultobj; | |
6992 | char *kwnames[] = { | |
6993 | NULL | |
6994 | }; | |
6995 | ||
6996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
6997 | { | |
6998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6999 | wxLog::FlushActive(); | |
7000 | ||
7001 | wxPyEndAllowThreads(__tstate); | |
7002 | if (PyErr_Occurred()) SWIG_fail; | |
7003 | } | |
7004 | Py_INCREF(Py_None); resultobj = Py_None; | |
7005 | return resultobj; | |
7006 | fail: | |
7007 | return NULL; | |
7008 | } | |
7009 | ||
7010 | ||
7011 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7012 | PyObject *resultobj; | |
7013 | wxLog *result; | |
7014 | char *kwnames[] = { | |
7015 | NULL | |
7016 | }; | |
7017 | ||
7018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
7019 | { | |
7020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7021 | result = (wxLog *)wxLog::GetActiveTarget(); | |
7022 | ||
7023 | wxPyEndAllowThreads(__tstate); | |
7024 | if (PyErr_Occurred()) SWIG_fail; | |
7025 | } | |
15afbcd0 | 7026 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
7027 | return resultobj; |
7028 | fail: | |
7029 | return NULL; | |
7030 | } | |
7031 | ||
7032 | ||
7033 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7034 | PyObject *resultobj; | |
7035 | wxLog *arg1 = (wxLog *) 0 ; | |
7036 | wxLog *result; | |
7037 | PyObject * obj0 = 0 ; | |
7038 | char *kwnames[] = { | |
7039 | (char *) "pLogger", NULL | |
7040 | }; | |
7041 | ||
7042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7045 | { |
7046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7047 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
7048 | ||
7049 | wxPyEndAllowThreads(__tstate); | |
7050 | if (PyErr_Occurred()) SWIG_fail; | |
7051 | } | |
15afbcd0 | 7052 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
7053 | return resultobj; |
7054 | fail: | |
7055 | return NULL; | |
7056 | } | |
7057 | ||
7058 | ||
7059 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7060 | PyObject *resultobj; | |
7061 | char *kwnames[] = { | |
7062 | NULL | |
7063 | }; | |
7064 | ||
7065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
7066 | { | |
7067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7068 | wxLog::Suspend(); | |
7069 | ||
7070 | wxPyEndAllowThreads(__tstate); | |
7071 | if (PyErr_Occurred()) SWIG_fail; | |
7072 | } | |
7073 | Py_INCREF(Py_None); resultobj = Py_None; | |
7074 | return resultobj; | |
7075 | fail: | |
7076 | return NULL; | |
7077 | } | |
7078 | ||
7079 | ||
7080 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7081 | PyObject *resultobj; | |
7082 | char *kwnames[] = { | |
7083 | NULL | |
7084 | }; | |
7085 | ||
7086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
7087 | { | |
7088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7089 | wxLog::Resume(); | |
7090 | ||
7091 | wxPyEndAllowThreads(__tstate); | |
7092 | if (PyErr_Occurred()) SWIG_fail; | |
7093 | } | |
7094 | Py_INCREF(Py_None); resultobj = Py_None; | |
7095 | return resultobj; | |
7096 | fail: | |
7097 | return NULL; | |
7098 | } | |
7099 | ||
7100 | ||
7101 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7102 | PyObject *resultobj; | |
e811c8ce | 7103 | bool arg1 = (bool) True ; |
d14a1e28 RD |
7104 | PyObject * obj0 = 0 ; |
7105 | char *kwnames[] = { | |
7106 | (char *) "bVerbose", NULL | |
7107 | }; | |
7108 | ||
7109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
7110 | if (obj0) { | |
15afbcd0 RD |
7111 | arg1 = (bool) SWIG_AsBool(obj0); |
7112 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7113 | } |
7114 | { | |
7115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7116 | wxLog::SetVerbose(arg1); | |
7117 | ||
7118 | wxPyEndAllowThreads(__tstate); | |
7119 | if (PyErr_Occurred()) SWIG_fail; | |
7120 | } | |
7121 | Py_INCREF(Py_None); resultobj = Py_None; | |
7122 | return resultobj; | |
7123 | fail: | |
7124 | return NULL; | |
7125 | } | |
7126 | ||
7127 | ||
7128 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7129 | PyObject *resultobj; | |
7130 | wxLogLevel arg1 ; | |
7131 | PyObject * obj0 = 0 ; | |
7132 | char *kwnames[] = { | |
7133 | (char *) "logLevel", NULL | |
7134 | }; | |
7135 | ||
7136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7137 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); |
7138 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7139 | { |
7140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7141 | wxLog::SetLogLevel(arg1); | |
7142 | ||
7143 | wxPyEndAllowThreads(__tstate); | |
7144 | if (PyErr_Occurred()) SWIG_fail; | |
7145 | } | |
7146 | Py_INCREF(Py_None); resultobj = Py_None; | |
7147 | return resultobj; | |
7148 | fail: | |
7149 | return NULL; | |
7150 | } | |
7151 | ||
7152 | ||
7153 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7154 | PyObject *resultobj; | |
7155 | char *kwnames[] = { | |
7156 | NULL | |
7157 | }; | |
7158 | ||
7159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
7160 | { | |
7161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7162 | wxLog::DontCreateOnDemand(); | |
7163 | ||
7164 | wxPyEndAllowThreads(__tstate); | |
7165 | if (PyErr_Occurred()) SWIG_fail; | |
7166 | } | |
7167 | Py_INCREF(Py_None); resultobj = Py_None; | |
7168 | return resultobj; | |
7169 | fail: | |
7170 | return NULL; | |
7171 | } | |
7172 | ||
7173 | ||
7174 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7175 | PyObject *resultobj; | |
7176 | wxTraceMask arg1 ; | |
7177 | PyObject * obj0 = 0 ; | |
7178 | char *kwnames[] = { | |
7179 | (char *) "ulMask", NULL | |
7180 | }; | |
7181 | ||
7182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7183 | arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0); |
7184 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7185 | { |
7186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7187 | wxLog::SetTraceMask(arg1); | |
7188 | ||
7189 | wxPyEndAllowThreads(__tstate); | |
7190 | if (PyErr_Occurred()) SWIG_fail; | |
7191 | } | |
7192 | Py_INCREF(Py_None); resultobj = Py_None; | |
7193 | return resultobj; | |
7194 | fail: | |
7195 | return NULL; | |
7196 | } | |
7197 | ||
7198 | ||
7199 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7200 | PyObject *resultobj; | |
7201 | wxString *arg1 = 0 ; | |
e811c8ce | 7202 | bool temp1 = False ; |
d14a1e28 RD |
7203 | PyObject * obj0 = 0 ; |
7204 | char *kwnames[] = { | |
7205 | (char *) "str", NULL | |
7206 | }; | |
7207 | ||
7208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
7209 | { | |
7210 | arg1 = wxString_in_helper(obj0); | |
7211 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7212 | temp1 = True; |
d14a1e28 RD |
7213 | } |
7214 | { | |
7215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7216 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7217 | ||
7218 | wxPyEndAllowThreads(__tstate); | |
7219 | if (PyErr_Occurred()) SWIG_fail; | |
7220 | } | |
7221 | Py_INCREF(Py_None); resultobj = Py_None; | |
7222 | { | |
7223 | if (temp1) | |
7224 | delete arg1; | |
7225 | } | |
7226 | return resultobj; | |
7227 | fail: | |
7228 | { | |
7229 | if (temp1) | |
7230 | delete arg1; | |
7231 | } | |
7232 | return NULL; | |
7233 | } | |
7234 | ||
7235 | ||
7236 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7237 | PyObject *resultobj; | |
7238 | wxString *arg1 = 0 ; | |
e811c8ce | 7239 | bool temp1 = False ; |
d14a1e28 RD |
7240 | PyObject * obj0 = 0 ; |
7241 | char *kwnames[] = { | |
7242 | (char *) "str", NULL | |
7243 | }; | |
7244 | ||
7245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7246 | { | |
7247 | arg1 = wxString_in_helper(obj0); | |
7248 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7249 | temp1 = True; |
d14a1e28 RD |
7250 | } |
7251 | { | |
7252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7253 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7254 | ||
7255 | wxPyEndAllowThreads(__tstate); | |
7256 | if (PyErr_Occurred()) SWIG_fail; | |
7257 | } | |
7258 | Py_INCREF(Py_None); resultobj = Py_None; | |
7259 | { | |
7260 | if (temp1) | |
7261 | delete arg1; | |
7262 | } | |
7263 | return resultobj; | |
7264 | fail: | |
7265 | { | |
7266 | if (temp1) | |
7267 | delete arg1; | |
7268 | } | |
7269 | return NULL; | |
7270 | } | |
7271 | ||
7272 | ||
7273 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7274 | PyObject *resultobj; | |
7275 | char *kwnames[] = { | |
7276 | NULL | |
7277 | }; | |
7278 | ||
7279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7280 | { | |
7281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7282 | wxLog::ClearTraceMasks(); | |
7283 | ||
7284 | wxPyEndAllowThreads(__tstate); | |
7285 | if (PyErr_Occurred()) SWIG_fail; | |
7286 | } | |
7287 | Py_INCREF(Py_None); resultobj = Py_None; | |
7288 | return resultobj; | |
7289 | fail: | |
7290 | return NULL; | |
7291 | } | |
7292 | ||
7293 | ||
7294 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7295 | PyObject *resultobj; | |
7296 | wxArrayString *result; | |
7297 | char *kwnames[] = { | |
7298 | NULL | |
7299 | }; | |
7300 | ||
7301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7302 | { | |
7303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7304 | { | |
7305 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7306 | result = (wxArrayString *) &_result_ref; | |
7307 | } | |
7308 | ||
7309 | wxPyEndAllowThreads(__tstate); | |
7310 | if (PyErr_Occurred()) SWIG_fail; | |
7311 | } | |
7312 | { | |
7313 | resultobj = wxArrayString2PyList_helper(*result); | |
7314 | } | |
7315 | return resultobj; | |
7316 | fail: | |
7317 | return NULL; | |
7318 | } | |
7319 | ||
7320 | ||
7321 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7322 | PyObject *resultobj; | |
7323 | wxChar *arg1 = (wxChar *) 0 ; | |
7324 | PyObject * obj0 = 0 ; | |
7325 | char *kwnames[] = { | |
7326 | (char *) "ts", NULL | |
7327 | }; | |
7328 | ||
7329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, |
7331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7332 | { |
7333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7334 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7335 | ||
7336 | wxPyEndAllowThreads(__tstate); | |
7337 | if (PyErr_Occurred()) SWIG_fail; | |
7338 | } | |
7339 | Py_INCREF(Py_None); resultobj = Py_None; | |
7340 | return resultobj; | |
7341 | fail: | |
7342 | return NULL; | |
7343 | } | |
7344 | ||
7345 | ||
7346 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7347 | PyObject *resultobj; | |
7348 | bool result; | |
7349 | char *kwnames[] = { | |
7350 | NULL | |
7351 | }; | |
7352 | ||
7353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7354 | { | |
7355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7356 | result = (bool)wxLog::GetVerbose(); | |
7357 | ||
7358 | wxPyEndAllowThreads(__tstate); | |
7359 | if (PyErr_Occurred()) SWIG_fail; | |
7360 | } | |
4f89f6a3 RD |
7361 | { |
7362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7363 | } | |
d14a1e28 RD |
7364 | return resultobj; |
7365 | fail: | |
7366 | return NULL; | |
7367 | } | |
7368 | ||
7369 | ||
7370 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7371 | PyObject *resultobj; | |
7372 | wxTraceMask result; | |
7373 | char *kwnames[] = { | |
7374 | NULL | |
7375 | }; | |
7376 | ||
7377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7378 | { | |
7379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7380 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7381 | ||
7382 | wxPyEndAllowThreads(__tstate); | |
7383 | if (PyErr_Occurred()) SWIG_fail; | |
7384 | } | |
15afbcd0 | 7385 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7386 | return resultobj; |
7387 | fail: | |
7388 | return NULL; | |
7389 | } | |
7390 | ||
7391 | ||
7392 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7393 | PyObject *resultobj; | |
7394 | wxChar *arg1 = (wxChar *) 0 ; | |
7395 | bool result; | |
7396 | PyObject * obj0 = 0 ; | |
7397 | char *kwnames[] = { | |
7398 | (char *) "mask", NULL | |
7399 | }; | |
7400 | ||
7401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, |
7403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7404 | { |
7405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7406 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
7407 | ||
7408 | wxPyEndAllowThreads(__tstate); | |
7409 | if (PyErr_Occurred()) SWIG_fail; | |
7410 | } | |
4f89f6a3 RD |
7411 | { |
7412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7413 | } | |
d14a1e28 RD |
7414 | return resultobj; |
7415 | fail: | |
7416 | return NULL; | |
7417 | } | |
7418 | ||
7419 | ||
7420 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7421 | PyObject *resultobj; | |
7422 | wxLogLevel result; | |
7423 | char *kwnames[] = { | |
7424 | NULL | |
7425 | }; | |
7426 | ||
7427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
7428 | { | |
7429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7430 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
7431 | ||
7432 | wxPyEndAllowThreads(__tstate); | |
7433 | if (PyErr_Occurred()) SWIG_fail; | |
7434 | } | |
15afbcd0 | 7435 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7436 | return resultobj; |
7437 | fail: | |
7438 | return NULL; | |
7439 | } | |
7440 | ||
7441 | ||
7442 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7443 | PyObject *resultobj; | |
7444 | wxChar *result; | |
7445 | char *kwnames[] = { | |
7446 | NULL | |
7447 | }; | |
7448 | ||
7449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
7450 | { | |
7451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7452 | result = (wxChar *)wxLog::GetTimestamp(); | |
7453 | ||
7454 | wxPyEndAllowThreads(__tstate); | |
7455 | if (PyErr_Occurred()) SWIG_fail; | |
7456 | } | |
15afbcd0 | 7457 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); |
d14a1e28 RD |
7458 | return resultobj; |
7459 | fail: | |
7460 | return NULL; | |
7461 | } | |
7462 | ||
7463 | ||
7464 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7465 | PyObject *resultobj; | |
7466 | wxString result; | |
7467 | char *kwnames[] = { | |
7468 | NULL | |
7469 | }; | |
7470 | ||
7471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
7472 | { | |
7473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7474 | result = Log_TimeStamp(); | |
7475 | ||
7476 | wxPyEndAllowThreads(__tstate); | |
7477 | if (PyErr_Occurred()) SWIG_fail; | |
7478 | } | |
7479 | { | |
7480 | #if wxUSE_UNICODE | |
7481 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7482 | #else | |
7483 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7484 | #endif | |
7485 | } | |
7486 | return resultobj; | |
7487 | fail: | |
7488 | return NULL; | |
7489 | } | |
7490 | ||
7491 | ||
7492 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7493 | PyObject *resultobj; | |
7494 | wxLog *arg1 = (wxLog *) 0 ; | |
7495 | PyObject * obj0 = 0 ; | |
7496 | char *kwnames[] = { | |
7497 | (char *) "self", NULL | |
7498 | }; | |
7499 | ||
7500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7503 | { |
7504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7505 | wxLog_Destroy(arg1); | |
7506 | ||
7507 | wxPyEndAllowThreads(__tstate); | |
7508 | if (PyErr_Occurred()) SWIG_fail; | |
7509 | } | |
7510 | Py_INCREF(Py_None); resultobj = Py_None; | |
7511 | return resultobj; | |
7512 | fail: | |
7513 | return NULL; | |
7514 | } | |
7515 | ||
7516 | ||
7517 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
7518 | PyObject *obj; | |
7519 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7520 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
7521 | Py_INCREF(obj); | |
7522 | return Py_BuildValue((char *)""); | |
7523 | } | |
7524 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7525 | PyObject *resultobj; | |
7526 | wxLogStderr *result; | |
7527 | char *kwnames[] = { | |
7528 | NULL | |
7529 | }; | |
7530 | ||
7531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
7532 | { | |
7533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7534 | result = (wxLogStderr *)new wxLogStderr(); | |
7535 | ||
7536 | wxPyEndAllowThreads(__tstate); | |
7537 | if (PyErr_Occurred()) SWIG_fail; | |
7538 | } | |
15afbcd0 | 7539 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); |
d14a1e28 RD |
7540 | return resultobj; |
7541 | fail: | |
7542 | return NULL; | |
7543 | } | |
7544 | ||
7545 | ||
7546 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
7547 | PyObject *obj; | |
7548 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7549 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
7550 | Py_INCREF(obj); | |
7551 | return Py_BuildValue((char *)""); | |
7552 | } | |
7553 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7554 | PyObject *resultobj; | |
7555 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7556 | wxLogTextCtrl *result; | |
7557 | PyObject * obj0 = 0 ; | |
7558 | char *kwnames[] = { | |
7559 | (char *) "pTextCtrl", NULL | |
7560 | }; | |
7561 | ||
7562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7565 | { |
7566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7567 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
7568 | ||
7569 | wxPyEndAllowThreads(__tstate); | |
7570 | if (PyErr_Occurred()) SWIG_fail; | |
7571 | } | |
15afbcd0 | 7572 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); |
d14a1e28 RD |
7573 | return resultobj; |
7574 | fail: | |
7575 | return NULL; | |
7576 | } | |
7577 | ||
7578 | ||
7579 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
7580 | PyObject *obj; | |
7581 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7582 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
7583 | Py_INCREF(obj); | |
7584 | return Py_BuildValue((char *)""); | |
7585 | } | |
7586 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7587 | PyObject *resultobj; | |
7588 | wxLogGui *result; | |
7589 | char *kwnames[] = { | |
7590 | NULL | |
7591 | }; | |
7592 | ||
7593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
7594 | { | |
7595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7596 | result = (wxLogGui *)new wxLogGui(); | |
7597 | ||
7598 | wxPyEndAllowThreads(__tstate); | |
7599 | if (PyErr_Occurred()) SWIG_fail; | |
7600 | } | |
15afbcd0 | 7601 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); |
d14a1e28 RD |
7602 | return resultobj; |
7603 | fail: | |
7604 | return NULL; | |
7605 | } | |
7606 | ||
7607 | ||
7608 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
7609 | PyObject *obj; | |
7610 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7611 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
7612 | Py_INCREF(obj); | |
7613 | return Py_BuildValue((char *)""); | |
7614 | } | |
7615 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7616 | PyObject *resultobj; | |
7617 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7618 | wxString *arg2 = 0 ; | |
e811c8ce RD |
7619 | bool arg3 = (bool) True ; |
7620 | bool arg4 = (bool) True ; | |
d14a1e28 | 7621 | wxLogWindow *result; |
e811c8ce | 7622 | bool temp2 = False ; |
d14a1e28 RD |
7623 | PyObject * obj0 = 0 ; |
7624 | PyObject * obj1 = 0 ; | |
7625 | PyObject * obj2 = 0 ; | |
7626 | PyObject * obj3 = 0 ; | |
7627 | char *kwnames[] = { | |
7628 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
7629 | }; | |
7630 | ||
7631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
7632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, |
7633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7634 | { |
7635 | arg2 = wxString_in_helper(obj1); | |
7636 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7637 | temp2 = True; |
d14a1e28 RD |
7638 | } |
7639 | if (obj2) { | |
15afbcd0 RD |
7640 | arg3 = (bool) SWIG_AsBool(obj2); |
7641 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7642 | } |
7643 | if (obj3) { | |
15afbcd0 RD |
7644 | arg4 = (bool) SWIG_AsBool(obj3); |
7645 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7646 | } |
7647 | { | |
7648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7649 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
7650 | ||
7651 | wxPyEndAllowThreads(__tstate); | |
7652 | if (PyErr_Occurred()) SWIG_fail; | |
7653 | } | |
15afbcd0 | 7654 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); |
d14a1e28 RD |
7655 | { |
7656 | if (temp2) | |
7657 | delete arg2; | |
7658 | } | |
7659 | return resultobj; | |
7660 | fail: | |
7661 | { | |
7662 | if (temp2) | |
7663 | delete arg2; | |
7664 | } | |
7665 | return NULL; | |
7666 | } | |
7667 | ||
7668 | ||
7669 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7670 | PyObject *resultobj; | |
7671 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
e811c8ce | 7672 | bool arg2 = (bool) True ; |
d14a1e28 RD |
7673 | PyObject * obj0 = 0 ; |
7674 | PyObject * obj1 = 0 ; | |
7675 | char *kwnames[] = { | |
7676 | (char *) "self",(char *) "bShow", NULL | |
7677 | }; | |
7678 | ||
7679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 7682 | if (obj1) { |
15afbcd0 RD |
7683 | arg2 = (bool) SWIG_AsBool(obj1); |
7684 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7685 | } |
7686 | { | |
7687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7688 | (arg1)->Show(arg2); | |
7689 | ||
7690 | wxPyEndAllowThreads(__tstate); | |
7691 | if (PyErr_Occurred()) SWIG_fail; | |
7692 | } | |
7693 | Py_INCREF(Py_None); resultobj = Py_None; | |
7694 | return resultobj; | |
7695 | fail: | |
7696 | return NULL; | |
7697 | } | |
7698 | ||
7699 | ||
7700 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7701 | PyObject *resultobj; | |
7702 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7703 | wxFrame *result; | |
7704 | PyObject * obj0 = 0 ; | |
7705 | char *kwnames[] = { | |
7706 | (char *) "self", NULL | |
7707 | }; | |
7708 | ||
7709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7712 | { |
7713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7714 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
7715 | ||
7716 | wxPyEndAllowThreads(__tstate); | |
7717 | if (PyErr_Occurred()) SWIG_fail; | |
7718 | } | |
7719 | { | |
7720 | resultobj = wxPyMake_wxObject(result); | |
7721 | } | |
7722 | return resultobj; | |
7723 | fail: | |
7724 | return NULL; | |
7725 | } | |
7726 | ||
7727 | ||
7728 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7729 | PyObject *resultobj; | |
7730 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7731 | wxLog *result; | |
7732 | PyObject * obj0 = 0 ; | |
7733 | char *kwnames[] = { | |
7734 | (char *) "self", NULL | |
7735 | }; | |
7736 | ||
7737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7740 | { |
7741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7742 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
7743 | ||
7744 | wxPyEndAllowThreads(__tstate); | |
7745 | if (PyErr_Occurred()) SWIG_fail; | |
7746 | } | |
15afbcd0 | 7747 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
7748 | return resultobj; |
7749 | fail: | |
7750 | return NULL; | |
7751 | } | |
7752 | ||
7753 | ||
7754 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7755 | PyObject *resultobj; | |
7756 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7757 | bool result; | |
7758 | PyObject * obj0 = 0 ; | |
7759 | char *kwnames[] = { | |
7760 | (char *) "self", NULL | |
7761 | }; | |
7762 | ||
7763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7766 | { |
7767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7768 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
7769 | ||
7770 | wxPyEndAllowThreads(__tstate); | |
7771 | if (PyErr_Occurred()) SWIG_fail; | |
7772 | } | |
4f89f6a3 RD |
7773 | { |
7774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7775 | } | |
d14a1e28 RD |
7776 | return resultobj; |
7777 | fail: | |
7778 | return NULL; | |
7779 | } | |
7780 | ||
7781 | ||
7782 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7783 | PyObject *resultobj; | |
7784 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7785 | bool arg2 ; | |
7786 | PyObject * obj0 = 0 ; | |
7787 | PyObject * obj1 = 0 ; | |
7788 | char *kwnames[] = { | |
7789 | (char *) "self",(char *) "bDoPass", NULL | |
7790 | }; | |
7791 | ||
7792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7795 | arg2 = (bool) SWIG_AsBool(obj1); | |
7796 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7797 | { |
7798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7799 | (arg1)->PassMessages(arg2); | |
7800 | ||
7801 | wxPyEndAllowThreads(__tstate); | |
7802 | if (PyErr_Occurred()) SWIG_fail; | |
7803 | } | |
7804 | Py_INCREF(Py_None); resultobj = Py_None; | |
7805 | return resultobj; | |
7806 | fail: | |
7807 | return NULL; | |
7808 | } | |
7809 | ||
7810 | ||
7811 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
7812 | PyObject *obj; | |
7813 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7814 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
7815 | Py_INCREF(obj); | |
7816 | return Py_BuildValue((char *)""); | |
7817 | } | |
7818 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7819 | PyObject *resultobj; | |
7820 | wxLog *arg1 = (wxLog *) 0 ; | |
7821 | wxLogChain *result; | |
7822 | PyObject * obj0 = 0 ; | |
7823 | char *kwnames[] = { | |
7824 | (char *) "logger", NULL | |
7825 | }; | |
7826 | ||
7827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7830 | { |
7831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7832 | result = (wxLogChain *)new wxLogChain(arg1); | |
7833 | ||
7834 | wxPyEndAllowThreads(__tstate); | |
7835 | if (PyErr_Occurred()) SWIG_fail; | |
7836 | } | |
15afbcd0 | 7837 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); |
d14a1e28 RD |
7838 | return resultobj; |
7839 | fail: | |
7840 | return NULL; | |
7841 | } | |
7842 | ||
7843 | ||
7844 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7845 | PyObject *resultobj; | |
7846 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7847 | wxLog *arg2 = (wxLog *) 0 ; | |
7848 | PyObject * obj0 = 0 ; | |
7849 | PyObject * obj1 = 0 ; | |
7850 | char *kwnames[] = { | |
7851 | (char *) "self",(char *) "logger", NULL | |
7852 | }; | |
7853 | ||
7854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
7856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7857 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog, | |
7858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7859 | { |
7860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7861 | (arg1)->SetLog(arg2); | |
7862 | ||
7863 | wxPyEndAllowThreads(__tstate); | |
7864 | if (PyErr_Occurred()) SWIG_fail; | |
7865 | } | |
7866 | Py_INCREF(Py_None); resultobj = Py_None; | |
7867 | return resultobj; | |
7868 | fail: | |
7869 | return NULL; | |
7870 | } | |
7871 | ||
7872 | ||
7873 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7874 | PyObject *resultobj; | |
7875 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7876 | bool arg2 ; | |
7877 | PyObject * obj0 = 0 ; | |
7878 | PyObject * obj1 = 0 ; | |
7879 | char *kwnames[] = { | |
7880 | (char *) "self",(char *) "bDoPass", NULL | |
7881 | }; | |
7882 | ||
7883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
7885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7886 | arg2 = (bool) SWIG_AsBool(obj1); | |
7887 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7888 | { |
7889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7890 | (arg1)->PassMessages(arg2); | |
7891 | ||
7892 | wxPyEndAllowThreads(__tstate); | |
7893 | if (PyErr_Occurred()) SWIG_fail; | |
7894 | } | |
7895 | Py_INCREF(Py_None); resultobj = Py_None; | |
7896 | return resultobj; | |
7897 | fail: | |
7898 | return NULL; | |
7899 | } | |
7900 | ||
7901 | ||
7902 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7903 | PyObject *resultobj; | |
7904 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7905 | bool result; | |
7906 | PyObject * obj0 = 0 ; | |
7907 | char *kwnames[] = { | |
7908 | (char *) "self", NULL | |
7909 | }; | |
7910 | ||
7911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
7913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7914 | { |
7915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7916 | result = (bool)(arg1)->IsPassingMessages(); | |
7917 | ||
7918 | wxPyEndAllowThreads(__tstate); | |
7919 | if (PyErr_Occurred()) SWIG_fail; | |
7920 | } | |
4f89f6a3 RD |
7921 | { |
7922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7923 | } | |
d14a1e28 RD |
7924 | return resultobj; |
7925 | fail: | |
7926 | return NULL; | |
7927 | } | |
7928 | ||
7929 | ||
7930 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7931 | PyObject *resultobj; | |
7932 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7933 | wxLog *result; | |
7934 | PyObject * obj0 = 0 ; | |
7935 | char *kwnames[] = { | |
7936 | (char *) "self", NULL | |
7937 | }; | |
7938 | ||
7939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
7941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7942 | { |
7943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7944 | result = (wxLog *)(arg1)->GetOldLog(); | |
7945 | ||
7946 | wxPyEndAllowThreads(__tstate); | |
7947 | if (PyErr_Occurred()) SWIG_fail; | |
7948 | } | |
15afbcd0 | 7949 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
7950 | return resultobj; |
7951 | fail: | |
7952 | return NULL; | |
7953 | } | |
7954 | ||
7955 | ||
7956 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
7957 | PyObject *obj; | |
7958 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7959 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
7960 | Py_INCREF(obj); | |
7961 | return Py_BuildValue((char *)""); | |
7962 | } | |
7963 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7964 | PyObject *resultobj; | |
7965 | unsigned long result; | |
7966 | char *kwnames[] = { | |
7967 | NULL | |
7968 | }; | |
7969 | ||
7970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
7971 | { | |
7972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7973 | result = (unsigned long)wxSysErrorCode(); | |
7974 | ||
7975 | wxPyEndAllowThreads(__tstate); | |
7976 | if (PyErr_Occurred()) SWIG_fail; | |
7977 | } | |
15afbcd0 | 7978 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7979 | return resultobj; |
7980 | fail: | |
7981 | return NULL; | |
7982 | } | |
7983 | ||
7984 | ||
7985 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7986 | PyObject *resultobj; | |
7987 | unsigned long arg1 = (unsigned long) 0 ; | |
7988 | wxString result; | |
7989 | PyObject * obj0 = 0 ; | |
7990 | char *kwnames[] = { | |
7991 | (char *) "nErrCode", NULL | |
7992 | }; | |
7993 | ||
7994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
7995 | if (obj0) { | |
15afbcd0 RD |
7996 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
7997 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7998 | } |
7999 | { | |
8000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8001 | result = wxSysErrorMsg(arg1); | |
8002 | ||
8003 | wxPyEndAllowThreads(__tstate); | |
8004 | if (PyErr_Occurred()) SWIG_fail; | |
8005 | } | |
8006 | { | |
8007 | #if wxUSE_UNICODE | |
8008 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8009 | #else | |
8010 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8011 | #endif | |
8012 | } | |
8013 | return resultobj; | |
8014 | fail: | |
8015 | return NULL; | |
8016 | } | |
8017 | ||
8018 | ||
8019 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8020 | PyObject *resultobj; | |
8021 | wxString *arg1 = 0 ; | |
e811c8ce | 8022 | bool temp1 = False ; |
d14a1e28 RD |
8023 | PyObject * obj0 = 0 ; |
8024 | char *kwnames[] = { | |
8025 | (char *) "msg", NULL | |
8026 | }; | |
8027 | ||
8028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
8029 | { | |
8030 | arg1 = wxString_in_helper(obj0); | |
8031 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8032 | temp1 = True; |
d14a1e28 RD |
8033 | } |
8034 | { | |
8035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8036 | wxLogFatalError((wxString const &)*arg1); | |
8037 | ||
8038 | wxPyEndAllowThreads(__tstate); | |
8039 | if (PyErr_Occurred()) SWIG_fail; | |
8040 | } | |
8041 | Py_INCREF(Py_None); resultobj = Py_None; | |
8042 | { | |
8043 | if (temp1) | |
8044 | delete arg1; | |
8045 | } | |
8046 | return resultobj; | |
8047 | fail: | |
8048 | { | |
8049 | if (temp1) | |
8050 | delete arg1; | |
8051 | } | |
8052 | return NULL; | |
8053 | } | |
8054 | ||
8055 | ||
8056 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8057 | PyObject *resultobj; | |
8058 | wxString *arg1 = 0 ; | |
e811c8ce | 8059 | bool temp1 = False ; |
d14a1e28 RD |
8060 | PyObject * obj0 = 0 ; |
8061 | char *kwnames[] = { | |
8062 | (char *) "msg", NULL | |
8063 | }; | |
8064 | ||
8065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
8066 | { | |
8067 | arg1 = wxString_in_helper(obj0); | |
8068 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8069 | temp1 = True; |
d14a1e28 RD |
8070 | } |
8071 | { | |
8072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8073 | wxLogError((wxString const &)*arg1); | |
8074 | ||
8075 | wxPyEndAllowThreads(__tstate); | |
8076 | if (PyErr_Occurred()) SWIG_fail; | |
8077 | } | |
8078 | Py_INCREF(Py_None); resultobj = Py_None; | |
8079 | { | |
8080 | if (temp1) | |
8081 | delete arg1; | |
8082 | } | |
8083 | return resultobj; | |
8084 | fail: | |
8085 | { | |
8086 | if (temp1) | |
8087 | delete arg1; | |
8088 | } | |
8089 | return NULL; | |
8090 | } | |
8091 | ||
8092 | ||
8093 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8094 | PyObject *resultobj; | |
8095 | wxString *arg1 = 0 ; | |
e811c8ce | 8096 | bool temp1 = False ; |
d14a1e28 RD |
8097 | PyObject * obj0 = 0 ; |
8098 | char *kwnames[] = { | |
8099 | (char *) "msg", NULL | |
8100 | }; | |
8101 | ||
8102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
8103 | { | |
8104 | arg1 = wxString_in_helper(obj0); | |
8105 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8106 | temp1 = True; |
d14a1e28 RD |
8107 | } |
8108 | { | |
8109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8110 | wxLogWarning((wxString const &)*arg1); | |
8111 | ||
8112 | wxPyEndAllowThreads(__tstate); | |
8113 | if (PyErr_Occurred()) SWIG_fail; | |
8114 | } | |
8115 | Py_INCREF(Py_None); resultobj = Py_None; | |
8116 | { | |
8117 | if (temp1) | |
8118 | delete arg1; | |
8119 | } | |
8120 | return resultobj; | |
8121 | fail: | |
8122 | { | |
8123 | if (temp1) | |
8124 | delete arg1; | |
8125 | } | |
8126 | return NULL; | |
8127 | } | |
8128 | ||
8129 | ||
8130 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8131 | PyObject *resultobj; | |
8132 | wxString *arg1 = 0 ; | |
e811c8ce | 8133 | bool temp1 = False ; |
d14a1e28 RD |
8134 | PyObject * obj0 = 0 ; |
8135 | char *kwnames[] = { | |
8136 | (char *) "msg", NULL | |
8137 | }; | |
8138 | ||
8139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
8140 | { | |
8141 | arg1 = wxString_in_helper(obj0); | |
8142 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8143 | temp1 = True; |
d14a1e28 RD |
8144 | } |
8145 | { | |
8146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8147 | wxLogMessage((wxString const &)*arg1); | |
8148 | ||
8149 | wxPyEndAllowThreads(__tstate); | |
8150 | if (PyErr_Occurred()) SWIG_fail; | |
8151 | } | |
8152 | Py_INCREF(Py_None); resultobj = Py_None; | |
8153 | { | |
8154 | if (temp1) | |
8155 | delete arg1; | |
8156 | } | |
8157 | return resultobj; | |
8158 | fail: | |
8159 | { | |
8160 | if (temp1) | |
8161 | delete arg1; | |
8162 | } | |
8163 | return NULL; | |
8164 | } | |
8165 | ||
8166 | ||
8167 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8168 | PyObject *resultobj; | |
8169 | wxString *arg1 = 0 ; | |
e811c8ce | 8170 | bool temp1 = False ; |
d14a1e28 RD |
8171 | PyObject * obj0 = 0 ; |
8172 | char *kwnames[] = { | |
8173 | (char *) "msg", NULL | |
8174 | }; | |
8175 | ||
8176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
8177 | { | |
8178 | arg1 = wxString_in_helper(obj0); | |
8179 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8180 | temp1 = True; |
d14a1e28 RD |
8181 | } |
8182 | { | |
8183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8184 | wxLogInfo((wxString const &)*arg1); | |
8185 | ||
8186 | wxPyEndAllowThreads(__tstate); | |
8187 | if (PyErr_Occurred()) SWIG_fail; | |
8188 | } | |
8189 | Py_INCREF(Py_None); resultobj = Py_None; | |
8190 | { | |
8191 | if (temp1) | |
8192 | delete arg1; | |
8193 | } | |
8194 | return resultobj; | |
8195 | fail: | |
8196 | { | |
8197 | if (temp1) | |
8198 | delete arg1; | |
8199 | } | |
8200 | return NULL; | |
8201 | } | |
8202 | ||
8203 | ||
8204 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8205 | PyObject *resultobj; | |
8206 | wxString *arg1 = 0 ; | |
e811c8ce | 8207 | bool temp1 = False ; |
d14a1e28 RD |
8208 | PyObject * obj0 = 0 ; |
8209 | char *kwnames[] = { | |
8210 | (char *) "msg", NULL | |
8211 | }; | |
8212 | ||
8213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
8214 | { | |
8215 | arg1 = wxString_in_helper(obj0); | |
8216 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8217 | temp1 = True; |
d14a1e28 RD |
8218 | } |
8219 | { | |
8220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8221 | wxLogDebug((wxString const &)*arg1); | |
8222 | ||
8223 | wxPyEndAllowThreads(__tstate); | |
8224 | if (PyErr_Occurred()) SWIG_fail; | |
8225 | } | |
8226 | Py_INCREF(Py_None); resultobj = Py_None; | |
8227 | { | |
8228 | if (temp1) | |
8229 | delete arg1; | |
8230 | } | |
8231 | return resultobj; | |
8232 | fail: | |
8233 | { | |
8234 | if (temp1) | |
8235 | delete arg1; | |
8236 | } | |
8237 | return NULL; | |
8238 | } | |
8239 | ||
8240 | ||
8241 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8242 | PyObject *resultobj; | |
8243 | wxString *arg1 = 0 ; | |
e811c8ce | 8244 | bool temp1 = False ; |
d14a1e28 RD |
8245 | PyObject * obj0 = 0 ; |
8246 | char *kwnames[] = { | |
8247 | (char *) "msg", NULL | |
8248 | }; | |
8249 | ||
8250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8251 | { | |
8252 | arg1 = wxString_in_helper(obj0); | |
8253 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8254 | temp1 = True; |
d14a1e28 RD |
8255 | } |
8256 | { | |
8257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8258 | wxLogVerbose((wxString const &)*arg1); | |
8259 | ||
8260 | wxPyEndAllowThreads(__tstate); | |
8261 | if (PyErr_Occurred()) SWIG_fail; | |
8262 | } | |
8263 | Py_INCREF(Py_None); resultobj = Py_None; | |
8264 | { | |
8265 | if (temp1) | |
8266 | delete arg1; | |
8267 | } | |
8268 | return resultobj; | |
8269 | fail: | |
8270 | { | |
8271 | if (temp1) | |
8272 | delete arg1; | |
8273 | } | |
8274 | return NULL; | |
8275 | } | |
8276 | ||
8277 | ||
8278 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8279 | PyObject *resultobj; | |
8280 | wxString *arg1 = 0 ; | |
e811c8ce | 8281 | bool temp1 = False ; |
d14a1e28 RD |
8282 | PyObject * obj0 = 0 ; |
8283 | char *kwnames[] = { | |
8284 | (char *) "msg", NULL | |
8285 | }; | |
8286 | ||
8287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8288 | { | |
8289 | arg1 = wxString_in_helper(obj0); | |
8290 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8291 | temp1 = True; |
d14a1e28 RD |
8292 | } |
8293 | { | |
8294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8295 | wxLogStatus((wxString const &)*arg1); | |
8296 | ||
8297 | wxPyEndAllowThreads(__tstate); | |
8298 | if (PyErr_Occurred()) SWIG_fail; | |
8299 | } | |
8300 | Py_INCREF(Py_None); resultobj = Py_None; | |
8301 | { | |
8302 | if (temp1) | |
8303 | delete arg1; | |
8304 | } | |
8305 | return resultobj; | |
8306 | fail: | |
8307 | { | |
8308 | if (temp1) | |
8309 | delete arg1; | |
8310 | } | |
8311 | return NULL; | |
8312 | } | |
8313 | ||
8314 | ||
8315 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8316 | PyObject *resultobj; | |
8317 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8318 | wxString *arg2 = 0 ; | |
e811c8ce | 8319 | bool temp2 = False ; |
d14a1e28 RD |
8320 | PyObject * obj0 = 0 ; |
8321 | PyObject * obj1 = 0 ; | |
8322 | char *kwnames[] = { | |
8323 | (char *) "pFrame",(char *) "msg", NULL | |
8324 | }; | |
8325 | ||
8326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, |
8328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8329 | { |
8330 | arg2 = wxString_in_helper(obj1); | |
8331 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8332 | temp2 = True; |
d14a1e28 RD |
8333 | } |
8334 | { | |
8335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8336 | wxLogStatus(arg1,(wxString const &)*arg2); | |
8337 | ||
8338 | wxPyEndAllowThreads(__tstate); | |
8339 | if (PyErr_Occurred()) SWIG_fail; | |
8340 | } | |
8341 | Py_INCREF(Py_None); resultobj = Py_None; | |
8342 | { | |
8343 | if (temp2) | |
8344 | delete arg2; | |
8345 | } | |
8346 | return resultobj; | |
8347 | fail: | |
8348 | { | |
8349 | if (temp2) | |
8350 | delete arg2; | |
8351 | } | |
8352 | return NULL; | |
8353 | } | |
8354 | ||
8355 | ||
8356 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8357 | PyObject *resultobj; | |
8358 | wxString *arg1 = 0 ; | |
e811c8ce | 8359 | bool temp1 = False ; |
d14a1e28 RD |
8360 | PyObject * obj0 = 0 ; |
8361 | char *kwnames[] = { | |
8362 | (char *) "msg", NULL | |
8363 | }; | |
8364 | ||
8365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8366 | { | |
8367 | arg1 = wxString_in_helper(obj0); | |
8368 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8369 | temp1 = True; |
d14a1e28 RD |
8370 | } |
8371 | { | |
8372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8373 | wxLogSysError((wxString const &)*arg1); | |
8374 | ||
8375 | wxPyEndAllowThreads(__tstate); | |
8376 | if (PyErr_Occurred()) SWIG_fail; | |
8377 | } | |
8378 | Py_INCREF(Py_None); resultobj = Py_None; | |
8379 | { | |
8380 | if (temp1) | |
8381 | delete arg1; | |
8382 | } | |
8383 | return resultobj; | |
8384 | fail: | |
8385 | { | |
8386 | if (temp1) | |
8387 | delete arg1; | |
8388 | } | |
8389 | return NULL; | |
8390 | } | |
8391 | ||
8392 | ||
cc6dd355 | 8393 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 | 8394 | PyObject *resultobj; |
cc6dd355 RD |
8395 | unsigned long arg1 ; |
8396 | wxString *arg2 = 0 ; | |
8397 | bool temp2 = False ; | |
d14a1e28 | 8398 | PyObject * obj0 = 0 ; |
cc6dd355 | 8399 | PyObject * obj1 = 0 ; |
d14a1e28 | 8400 | |
cc6dd355 | 8401 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8402 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
8403 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 8404 | { |
cc6dd355 RD |
8405 | arg2 = wxString_in_helper(obj1); |
8406 | if (arg2 == NULL) SWIG_fail; | |
8407 | temp2 = True; | |
d14a1e28 RD |
8408 | } |
8409 | { | |
8410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
cc6dd355 | 8411 | wxLogTrace(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
8412 | |
8413 | wxPyEndAllowThreads(__tstate); | |
8414 | if (PyErr_Occurred()) SWIG_fail; | |
8415 | } | |
8416 | Py_INCREF(Py_None); resultobj = Py_None; | |
8417 | { | |
cc6dd355 RD |
8418 | if (temp2) |
8419 | delete arg2; | |
d14a1e28 RD |
8420 | } |
8421 | return resultobj; | |
8422 | fail: | |
8423 | { | |
cc6dd355 RD |
8424 | if (temp2) |
8425 | delete arg2; | |
d14a1e28 RD |
8426 | } |
8427 | return NULL; | |
8428 | } | |
8429 | ||
8430 | ||
cc6dd355 | 8431 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
8432 | PyObject *resultobj; |
8433 | wxString *arg1 = 0 ; | |
8434 | wxString *arg2 = 0 ; | |
e811c8ce RD |
8435 | bool temp1 = False ; |
8436 | bool temp2 = False ; | |
d14a1e28 RD |
8437 | PyObject * obj0 = 0 ; |
8438 | PyObject * obj1 = 0 ; | |
d14a1e28 | 8439 | |
cc6dd355 | 8440 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
8441 | { |
8442 | arg1 = wxString_in_helper(obj0); | |
8443 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8444 | temp1 = True; |
d14a1e28 RD |
8445 | } |
8446 | { | |
8447 | arg2 = wxString_in_helper(obj1); | |
8448 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8449 | temp2 = True; |
d14a1e28 RD |
8450 | } |
8451 | { | |
8452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8453 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
8454 | ||
8455 | wxPyEndAllowThreads(__tstate); | |
8456 | if (PyErr_Occurred()) SWIG_fail; | |
8457 | } | |
8458 | Py_INCREF(Py_None); resultobj = Py_None; | |
8459 | { | |
8460 | if (temp1) | |
8461 | delete arg1; | |
8462 | } | |
8463 | { | |
8464 | if (temp2) | |
8465 | delete arg2; | |
8466 | } | |
8467 | return resultobj; | |
8468 | fail: | |
8469 | { | |
8470 | if (temp1) | |
8471 | delete arg1; | |
8472 | } | |
8473 | { | |
8474 | if (temp2) | |
8475 | delete arg2; | |
8476 | } | |
8477 | return NULL; | |
8478 | } | |
8479 | ||
8480 | ||
cc6dd355 RD |
8481 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { |
8482 | int argc; | |
8483 | PyObject *argv[3]; | |
8484 | int ii; | |
8485 | ||
8486 | argc = PyObject_Length(args); | |
8487 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
8488 | argv[ii] = PyTuple_GetItem(args,ii); | |
8489 | } | |
8490 | if (argc == 2) { | |
8491 | int _v; | |
8492 | { | |
4d5c3d91 | 8493 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
cc6dd355 RD |
8494 | } |
8495 | if (_v) { | |
8496 | { | |
4d5c3d91 | 8497 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
cc6dd355 RD |
8498 | } |
8499 | if (_v) { | |
8500 | return _wrap_LogTrace__SWIG_1(self,args); | |
8501 | } | |
8502 | } | |
8503 | } | |
8504 | if (argc == 2) { | |
8505 | int _v; | |
15afbcd0 | 8506 | _v = SWIG_CheckUnsignedLong(argv[0]); |
cc6dd355 RD |
8507 | if (_v) { |
8508 | { | |
4d5c3d91 | 8509 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
cc6dd355 RD |
8510 | } |
8511 | if (_v) { | |
8512 | return _wrap_LogTrace__SWIG_0(self,args); | |
8513 | } | |
8514 | } | |
8515 | } | |
8516 | ||
8517 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
8518 | return NULL; | |
8519 | } | |
8520 | ||
8521 | ||
d14a1e28 RD |
8522 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { |
8523 | PyObject *resultobj; | |
8524 | unsigned long arg1 ; | |
8525 | wxString *arg2 = 0 ; | |
e811c8ce | 8526 | bool temp2 = False ; |
d14a1e28 RD |
8527 | PyObject * obj0 = 0 ; |
8528 | PyObject * obj1 = 0 ; | |
8529 | char *kwnames[] = { | |
8530 | (char *) "level",(char *) "msg", NULL | |
8531 | }; | |
8532 | ||
8533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8534 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
8535 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8536 | { |
8537 | arg2 = wxString_in_helper(obj1); | |
8538 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8539 | temp2 = True; |
d14a1e28 RD |
8540 | } |
8541 | { | |
8542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8543 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
8544 | ||
8545 | wxPyEndAllowThreads(__tstate); | |
8546 | if (PyErr_Occurred()) SWIG_fail; | |
8547 | } | |
8548 | Py_INCREF(Py_None); resultobj = Py_None; | |
8549 | { | |
8550 | if (temp2) | |
8551 | delete arg2; | |
8552 | } | |
8553 | return resultobj; | |
8554 | fail: | |
8555 | { | |
8556 | if (temp2) | |
8557 | delete arg2; | |
8558 | } | |
8559 | return NULL; | |
8560 | } | |
8561 | ||
8562 | ||
8563 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8564 | PyObject *resultobj; | |
8565 | wxString *arg1 = 0 ; | |
8566 | wxString *arg2 = 0 ; | |
e811c8ce RD |
8567 | bool temp1 = False ; |
8568 | bool temp2 = False ; | |
d14a1e28 RD |
8569 | PyObject * obj0 = 0 ; |
8570 | PyObject * obj1 = 0 ; | |
8571 | char *kwnames[] = { | |
8572 | (char *) "title",(char *) "text", NULL | |
8573 | }; | |
8574 | ||
8575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
8576 | { | |
8577 | arg1 = wxString_in_helper(obj0); | |
8578 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8579 | temp1 = True; |
d14a1e28 RD |
8580 | } |
8581 | { | |
8582 | arg2 = wxString_in_helper(obj1); | |
8583 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8584 | temp2 = True; |
d14a1e28 RD |
8585 | } |
8586 | { | |
8587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8588 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
8589 | ||
8590 | wxPyEndAllowThreads(__tstate); | |
8591 | if (PyErr_Occurred()) SWIG_fail; | |
8592 | } | |
8593 | Py_INCREF(Py_None); resultobj = Py_None; | |
8594 | { | |
8595 | if (temp1) | |
8596 | delete arg1; | |
8597 | } | |
8598 | { | |
8599 | if (temp2) | |
8600 | delete arg2; | |
8601 | } | |
8602 | return resultobj; | |
8603 | fail: | |
8604 | { | |
8605 | if (temp1) | |
8606 | delete arg1; | |
8607 | } | |
8608 | { | |
8609 | if (temp2) | |
8610 | delete arg2; | |
8611 | } | |
8612 | return NULL; | |
8613 | } | |
8614 | ||
8615 | ||
8616 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8617 | PyObject *resultobj; | |
8618 | wxLogNull *result; | |
8619 | char *kwnames[] = { | |
8620 | NULL | |
8621 | }; | |
8622 | ||
8623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
8624 | { | |
8625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8626 | result = (wxLogNull *)new wxLogNull(); | |
8627 | ||
8628 | wxPyEndAllowThreads(__tstate); | |
8629 | if (PyErr_Occurred()) SWIG_fail; | |
8630 | } | |
15afbcd0 | 8631 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); |
d14a1e28 RD |
8632 | return resultobj; |
8633 | fail: | |
8634 | return NULL; | |
8635 | } | |
8636 | ||
8637 | ||
8638 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8639 | PyObject *resultobj; | |
8640 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
8641 | PyObject * obj0 = 0 ; | |
8642 | char *kwnames[] = { | |
8643 | (char *) "self", NULL | |
8644 | }; | |
8645 | ||
8646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull, |
8648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8649 | { |
8650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8651 | delete arg1; | |
8652 | ||
8653 | wxPyEndAllowThreads(__tstate); | |
8654 | if (PyErr_Occurred()) SWIG_fail; | |
8655 | } | |
8656 | Py_INCREF(Py_None); resultobj = Py_None; | |
8657 | return resultobj; | |
8658 | fail: | |
8659 | return NULL; | |
8660 | } | |
8661 | ||
8662 | ||
8663 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
8664 | PyObject *obj; | |
8665 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8666 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
8667 | Py_INCREF(obj); | |
8668 | return Py_BuildValue((char *)""); | |
8669 | } | |
8670 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8671 | PyObject *resultobj; | |
8672 | wxPyLog *result; | |
8673 | char *kwnames[] = { | |
8674 | NULL | |
8675 | }; | |
8676 | ||
8677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
8678 | { | |
8679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8680 | result = (wxPyLog *)new wxPyLog(); | |
8681 | ||
8682 | wxPyEndAllowThreads(__tstate); | |
8683 | if (PyErr_Occurred()) SWIG_fail; | |
8684 | } | |
15afbcd0 | 8685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); |
d14a1e28 RD |
8686 | return resultobj; |
8687 | fail: | |
8688 | return NULL; | |
8689 | } | |
8690 | ||
8691 | ||
8692 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8693 | PyObject *resultobj; | |
8694 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
8695 | PyObject *arg2 = (PyObject *) 0 ; | |
8696 | PyObject *arg3 = (PyObject *) 0 ; | |
8697 | PyObject * obj0 = 0 ; | |
8698 | PyObject * obj1 = 0 ; | |
8699 | PyObject * obj2 = 0 ; | |
8700 | char *kwnames[] = { | |
8701 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8702 | }; | |
8703 | ||
8704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
8705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog, |
8706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8707 | arg2 = obj1; |
8708 | arg3 = obj2; | |
8709 | { | |
8710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8711 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8712 | ||
8713 | wxPyEndAllowThreads(__tstate); | |
8714 | if (PyErr_Occurred()) SWIG_fail; | |
8715 | } | |
8716 | Py_INCREF(Py_None); resultobj = Py_None; | |
8717 | return resultobj; | |
8718 | fail: | |
8719 | return NULL; | |
8720 | } | |
8721 | ||
8722 | ||
8723 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
8724 | PyObject *obj; | |
8725 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8726 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
8727 | Py_INCREF(obj); | |
8728 | return Py_BuildValue((char *)""); | |
8729 | } | |
8730 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8731 | PyObject *resultobj; | |
8732 | int arg1 ; | |
8733 | int arg2 = (int) wxSIGTERM ; | |
8734 | int result; | |
994141e6 RD |
8735 | PyObject * obj0 = 0 ; |
8736 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8737 | char *kwnames[] = { |
8738 | (char *) "pid",(char *) "sig", NULL | |
8739 | }; | |
8740 | ||
994141e6 | 8741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8742 | arg1 = (int) SWIG_AsInt(obj0); |
8743 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8744 | if (obj1) { |
15afbcd0 RD |
8745 | arg2 = (wxSignal) SWIG_AsInt(obj1); |
8746 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8747 | } |
d14a1e28 RD |
8748 | { |
8749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8750 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
8751 | ||
8752 | wxPyEndAllowThreads(__tstate); | |
8753 | if (PyErr_Occurred()) SWIG_fail; | |
8754 | } | |
15afbcd0 | 8755 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8756 | return resultobj; |
8757 | fail: | |
8758 | return NULL; | |
8759 | } | |
8760 | ||
8761 | ||
8762 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8763 | PyObject *resultobj; | |
8764 | int arg1 ; | |
8765 | bool result; | |
994141e6 | 8766 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
8767 | char *kwnames[] = { |
8768 | (char *) "pid", NULL | |
8769 | }; | |
8770 | ||
994141e6 | 8771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
8772 | arg1 = (int) SWIG_AsInt(obj0); |
8773 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8774 | { |
8775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8776 | result = (bool)wxPyProcess::Exists(arg1); | |
8777 | ||
8778 | wxPyEndAllowThreads(__tstate); | |
8779 | if (PyErr_Occurred()) SWIG_fail; | |
8780 | } | |
4f89f6a3 RD |
8781 | { |
8782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8783 | } | |
d14a1e28 RD |
8784 | return resultobj; |
8785 | fail: | |
8786 | return NULL; | |
8787 | } | |
8788 | ||
8789 | ||
8790 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8791 | PyObject *resultobj; | |
8792 | wxString *arg1 = 0 ; | |
8793 | int arg2 = (int) wxEXEC_ASYNC ; | |
8794 | wxPyProcess *result; | |
e811c8ce | 8795 | bool temp1 = False ; |
d14a1e28 | 8796 | PyObject * obj0 = 0 ; |
994141e6 | 8797 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8798 | char *kwnames[] = { |
8799 | (char *) "cmd",(char *) "flags", NULL | |
8800 | }; | |
8801 | ||
994141e6 | 8802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
8803 | { |
8804 | arg1 = wxString_in_helper(obj0); | |
8805 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8806 | temp1 = True; |
d14a1e28 | 8807 | } |
994141e6 | 8808 | if (obj1) { |
15afbcd0 RD |
8809 | arg2 = (int) SWIG_AsInt(obj1); |
8810 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8811 | } |
d14a1e28 RD |
8812 | { |
8813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8814 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
8815 | ||
8816 | wxPyEndAllowThreads(__tstate); | |
8817 | if (PyErr_Occurred()) SWIG_fail; | |
8818 | } | |
15afbcd0 | 8819 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); |
d14a1e28 RD |
8820 | { |
8821 | if (temp1) | |
8822 | delete arg1; | |
8823 | } | |
8824 | return resultobj; | |
8825 | fail: | |
8826 | { | |
8827 | if (temp1) | |
8828 | delete arg1; | |
8829 | } | |
8830 | return NULL; | |
8831 | } | |
8832 | ||
8833 | ||
8834 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8835 | PyObject *resultobj; | |
8836 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
8837 | int arg2 = (int) -1 ; | |
8838 | wxPyProcess *result; | |
8839 | PyObject * obj0 = 0 ; | |
994141e6 | 8840 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8841 | char *kwnames[] = { |
8842 | (char *) "parent",(char *) "id", NULL | |
8843 | }; | |
8844 | ||
994141e6 | 8845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8846 | if (obj0) { |
15afbcd0 RD |
8847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
8848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8849 | } |
994141e6 | 8850 | if (obj1) { |
15afbcd0 RD |
8851 | arg2 = (int) SWIG_AsInt(obj1); |
8852 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8853 | } |
d14a1e28 RD |
8854 | { |
8855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8856 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
8857 | ||
8858 | wxPyEndAllowThreads(__tstate); | |
8859 | if (PyErr_Occurred()) SWIG_fail; | |
8860 | } | |
15afbcd0 | 8861 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); |
d14a1e28 RD |
8862 | return resultobj; |
8863 | fail: | |
8864 | return NULL; | |
8865 | } | |
8866 | ||
8867 | ||
8868 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8869 | PyObject *resultobj; | |
8870 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8871 | PyObject *arg2 = (PyObject *) 0 ; | |
8872 | PyObject *arg3 = (PyObject *) 0 ; | |
8873 | PyObject * obj0 = 0 ; | |
8874 | PyObject * obj1 = 0 ; | |
8875 | PyObject * obj2 = 0 ; | |
8876 | char *kwnames[] = { | |
8877 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8878 | }; | |
8879 | ||
8880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
8881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
8882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8883 | arg2 = obj1; |
8884 | arg3 = obj2; | |
8885 | { | |
8886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8887 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8888 | ||
8889 | wxPyEndAllowThreads(__tstate); | |
8890 | if (PyErr_Occurred()) SWIG_fail; | |
8891 | } | |
8892 | Py_INCREF(Py_None); resultobj = Py_None; | |
8893 | return resultobj; | |
8894 | fail: | |
8895 | return NULL; | |
8896 | } | |
8897 | ||
8898 | ||
8899 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8900 | PyObject *resultobj; | |
8901 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8902 | int arg2 ; | |
8903 | int arg3 ; | |
8904 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8905 | PyObject * obj1 = 0 ; |
8906 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8907 | char *kwnames[] = { |
8908 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
8909 | }; | |
8910 | ||
994141e6 | 8911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
8913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8914 | arg2 = (int) SWIG_AsInt(obj1); | |
8915 | if (PyErr_Occurred()) SWIG_fail; | |
8916 | arg3 = (int) SWIG_AsInt(obj2); | |
8917 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8918 | { |
8919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8920 | (arg1)->base_OnTerminate(arg2,arg3); | |
8921 | ||
8922 | wxPyEndAllowThreads(__tstate); | |
8923 | if (PyErr_Occurred()) SWIG_fail; | |
8924 | } | |
8925 | Py_INCREF(Py_None); resultobj = Py_None; | |
8926 | return resultobj; | |
8927 | fail: | |
8928 | return NULL; | |
8929 | } | |
8930 | ||
8931 | ||
8932 | static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8933 | PyObject *resultobj; | |
8934 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8935 | PyObject * obj0 = 0 ; | |
8936 | char *kwnames[] = { | |
8937 | (char *) "self", NULL | |
8938 | }; | |
8939 | ||
8940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
8942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8943 | { |
8944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8945 | (arg1)->Redirect(); | |
8946 | ||
8947 | wxPyEndAllowThreads(__tstate); | |
8948 | if (PyErr_Occurred()) SWIG_fail; | |
8949 | } | |
8950 | Py_INCREF(Py_None); resultobj = Py_None; | |
8951 | return resultobj; | |
8952 | fail: | |
8953 | return NULL; | |
8954 | } | |
8955 | ||
8956 | ||
8957 | static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8958 | PyObject *resultobj; | |
8959 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8960 | bool result; | |
8961 | PyObject * obj0 = 0 ; | |
8962 | char *kwnames[] = { | |
8963 | (char *) "self", NULL | |
8964 | }; | |
8965 | ||
8966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
8968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8969 | { |
8970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8971 | result = (bool)(arg1)->IsRedirected(); | |
8972 | ||
8973 | wxPyEndAllowThreads(__tstate); | |
8974 | if (PyErr_Occurred()) SWIG_fail; | |
8975 | } | |
4f89f6a3 RD |
8976 | { |
8977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8978 | } | |
d14a1e28 RD |
8979 | return resultobj; |
8980 | fail: | |
8981 | return NULL; | |
8982 | } | |
8983 | ||
8984 | ||
8985 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8986 | PyObject *resultobj; | |
8987 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8988 | PyObject * obj0 = 0 ; | |
8989 | char *kwnames[] = { | |
8990 | (char *) "self", NULL | |
8991 | }; | |
8992 | ||
8993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
8995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8996 | { |
8997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8998 | (arg1)->Detach(); | |
8999 | ||
9000 | wxPyEndAllowThreads(__tstate); | |
9001 | if (PyErr_Occurred()) SWIG_fail; | |
9002 | } | |
9003 | Py_INCREF(Py_None); resultobj = Py_None; | |
9004 | return resultobj; | |
9005 | fail: | |
9006 | return NULL; | |
9007 | } | |
9008 | ||
9009 | ||
9010 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9011 | PyObject *resultobj; | |
9012 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9013 | wxInputStream *result; | |
9014 | PyObject * obj0 = 0 ; | |
9015 | char *kwnames[] = { | |
9016 | (char *) "self", NULL | |
9017 | }; | |
9018 | ||
9019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9022 | { |
9023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9024 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
9025 | ||
9026 | wxPyEndAllowThreads(__tstate); | |
9027 | if (PyErr_Occurred()) SWIG_fail; | |
9028 | } | |
9029 | { | |
9030 | wxPyInputStream * _ptr = NULL; | |
9031 | ||
9032 | if (result) { | |
9033 | _ptr = new wxPyInputStream(result); | |
9034 | } | |
e811c8ce | 9035 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
9036 | } |
9037 | return resultobj; | |
9038 | fail: | |
9039 | return NULL; | |
9040 | } | |
9041 | ||
9042 | ||
9043 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9044 | PyObject *resultobj; | |
9045 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9046 | wxInputStream *result; | |
9047 | PyObject * obj0 = 0 ; | |
9048 | char *kwnames[] = { | |
9049 | (char *) "self", NULL | |
9050 | }; | |
9051 | ||
9052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9055 | { |
9056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9057 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
9058 | ||
9059 | wxPyEndAllowThreads(__tstate); | |
9060 | if (PyErr_Occurred()) SWIG_fail; | |
9061 | } | |
9062 | { | |
9063 | wxPyInputStream * _ptr = NULL; | |
9064 | ||
9065 | if (result) { | |
9066 | _ptr = new wxPyInputStream(result); | |
9067 | } | |
e811c8ce | 9068 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
9069 | } |
9070 | return resultobj; | |
9071 | fail: | |
9072 | return NULL; | |
9073 | } | |
9074 | ||
9075 | ||
9076 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9077 | PyObject *resultobj; | |
9078 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9079 | wxOutputStream *result; | |
9080 | PyObject * obj0 = 0 ; | |
9081 | char *kwnames[] = { | |
9082 | (char *) "self", NULL | |
9083 | }; | |
9084 | ||
9085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9088 | { |
9089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9090 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
9091 | ||
9092 | wxPyEndAllowThreads(__tstate); | |
9093 | if (PyErr_Occurred()) SWIG_fail; | |
9094 | } | |
15afbcd0 | 9095 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); |
d14a1e28 RD |
9096 | return resultobj; |
9097 | fail: | |
9098 | return NULL; | |
9099 | } | |
9100 | ||
9101 | ||
9102 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9103 | PyObject *resultobj; | |
9104 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9105 | PyObject * obj0 = 0 ; | |
9106 | char *kwnames[] = { | |
9107 | (char *) "self", NULL | |
9108 | }; | |
9109 | ||
9110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9113 | { |
9114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9115 | (arg1)->CloseOutput(); | |
9116 | ||
9117 | wxPyEndAllowThreads(__tstate); | |
9118 | if (PyErr_Occurred()) SWIG_fail; | |
9119 | } | |
9120 | Py_INCREF(Py_None); resultobj = Py_None; | |
9121 | return resultobj; | |
9122 | fail: | |
9123 | return NULL; | |
9124 | } | |
9125 | ||
9126 | ||
9127 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9128 | PyObject *resultobj; | |
9129 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9130 | bool result; | |
9131 | PyObject * obj0 = 0 ; | |
9132 | char *kwnames[] = { | |
9133 | (char *) "self", NULL | |
9134 | }; | |
9135 | ||
9136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9139 | { |
9140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9141 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
9142 | ||
9143 | wxPyEndAllowThreads(__tstate); | |
9144 | if (PyErr_Occurred()) SWIG_fail; | |
9145 | } | |
4f89f6a3 RD |
9146 | { |
9147 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9148 | } | |
d14a1e28 RD |
9149 | return resultobj; |
9150 | fail: | |
9151 | return NULL; | |
9152 | } | |
9153 | ||
9154 | ||
9155 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9156 | PyObject *resultobj; | |
9157 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9158 | bool result; | |
9159 | PyObject * obj0 = 0 ; | |
9160 | char *kwnames[] = { | |
9161 | (char *) "self", NULL | |
9162 | }; | |
9163 | ||
9164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9167 | { |
9168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9169 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
9170 | ||
9171 | wxPyEndAllowThreads(__tstate); | |
9172 | if (PyErr_Occurred()) SWIG_fail; | |
9173 | } | |
4f89f6a3 RD |
9174 | { |
9175 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9176 | } | |
d14a1e28 RD |
9177 | return resultobj; |
9178 | fail: | |
9179 | return NULL; | |
9180 | } | |
9181 | ||
9182 | ||
9183 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9184 | PyObject *resultobj; | |
9185 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9186 | bool result; | |
9187 | PyObject * obj0 = 0 ; | |
9188 | char *kwnames[] = { | |
9189 | (char *) "self", NULL | |
9190 | }; | |
9191 | ||
9192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9195 | { |
9196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9197 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
9198 | ||
9199 | wxPyEndAllowThreads(__tstate); | |
9200 | if (PyErr_Occurred()) SWIG_fail; | |
9201 | } | |
4f89f6a3 RD |
9202 | { |
9203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9204 | } | |
d14a1e28 RD |
9205 | return resultobj; |
9206 | fail: | |
9207 | return NULL; | |
9208 | } | |
9209 | ||
9210 | ||
9211 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
9212 | PyObject *obj; | |
9213 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9214 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
9215 | Py_INCREF(obj); | |
9216 | return Py_BuildValue((char *)""); | |
9217 | } | |
9218 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9219 | PyObject *resultobj; | |
9220 | int arg1 = (int) 0 ; | |
9221 | int arg2 = (int) 0 ; | |
9222 | int arg3 = (int) 0 ; | |
9223 | wxProcessEvent *result; | |
994141e6 RD |
9224 | PyObject * obj0 = 0 ; |
9225 | PyObject * obj1 = 0 ; | |
9226 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9227 | char *kwnames[] = { |
9228 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9229 | }; | |
9230 | ||
994141e6 RD |
9231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
9232 | if (obj0) { | |
15afbcd0 RD |
9233 | arg1 = (int) SWIG_AsInt(obj0); |
9234 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9235 | } |
9236 | if (obj1) { | |
15afbcd0 RD |
9237 | arg2 = (int) SWIG_AsInt(obj1); |
9238 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9239 | } |
9240 | if (obj2) { | |
15afbcd0 RD |
9241 | arg3 = (int) SWIG_AsInt(obj2); |
9242 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9243 | } |
d14a1e28 RD |
9244 | { |
9245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9246 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9247 | ||
9248 | wxPyEndAllowThreads(__tstate); | |
9249 | if (PyErr_Occurred()) SWIG_fail; | |
9250 | } | |
15afbcd0 | 9251 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); |
d14a1e28 RD |
9252 | return resultobj; |
9253 | fail: | |
9254 | return NULL; | |
9255 | } | |
9256 | ||
9257 | ||
9258 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9259 | PyObject *resultobj; | |
9260 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9261 | int result; | |
9262 | PyObject * obj0 = 0 ; | |
9263 | char *kwnames[] = { | |
9264 | (char *) "self", NULL | |
9265 | }; | |
9266 | ||
9267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9270 | { |
9271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9272 | result = (int)(arg1)->GetPid(); | |
9273 | ||
9274 | wxPyEndAllowThreads(__tstate); | |
9275 | if (PyErr_Occurred()) SWIG_fail; | |
9276 | } | |
15afbcd0 | 9277 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9278 | return resultobj; |
9279 | fail: | |
9280 | return NULL; | |
9281 | } | |
9282 | ||
9283 | ||
9284 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9285 | PyObject *resultobj; | |
9286 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9287 | int result; | |
9288 | PyObject * obj0 = 0 ; | |
9289 | char *kwnames[] = { | |
9290 | (char *) "self", NULL | |
9291 | }; | |
9292 | ||
9293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9296 | { |
9297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9298 | result = (int)(arg1)->GetExitCode(); | |
9299 | ||
9300 | wxPyEndAllowThreads(__tstate); | |
9301 | if (PyErr_Occurred()) SWIG_fail; | |
9302 | } | |
15afbcd0 | 9303 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9304 | return resultobj; |
9305 | fail: | |
9306 | return NULL; | |
9307 | } | |
9308 | ||
9309 | ||
9310 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9311 | PyObject *resultobj; | |
9312 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9313 | int arg2 ; | |
9314 | PyObject * obj0 = 0 ; | |
994141e6 | 9315 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9316 | char *kwnames[] = { |
9317 | (char *) "self",(char *) "m_pid", NULL | |
9318 | }; | |
9319 | ||
994141e6 | 9320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9323 | arg2 = (int) SWIG_AsInt(obj1); | |
9324 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9325 | if (arg1) (arg1)->m_pid = arg2; |
9326 | ||
9327 | Py_INCREF(Py_None); resultobj = Py_None; | |
9328 | return resultobj; | |
9329 | fail: | |
9330 | return NULL; | |
9331 | } | |
9332 | ||
9333 | ||
9334 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9335 | PyObject *resultobj; | |
9336 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9337 | int result; | |
9338 | PyObject * obj0 = 0 ; | |
9339 | char *kwnames[] = { | |
9340 | (char *) "self", NULL | |
9341 | }; | |
9342 | ||
9343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9346 | result = (int) ((arg1)->m_pid); |
9347 | ||
15afbcd0 | 9348 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9349 | return resultobj; |
9350 | fail: | |
9351 | return NULL; | |
9352 | } | |
9353 | ||
9354 | ||
9355 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9356 | PyObject *resultobj; | |
9357 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9358 | int arg2 ; | |
9359 | PyObject * obj0 = 0 ; | |
994141e6 | 9360 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9361 | char *kwnames[] = { |
9362 | (char *) "self",(char *) "m_exitcode", NULL | |
9363 | }; | |
9364 | ||
994141e6 | 9365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9368 | arg2 = (int) SWIG_AsInt(obj1); | |
9369 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9370 | if (arg1) (arg1)->m_exitcode = arg2; |
9371 | ||
9372 | Py_INCREF(Py_None); resultobj = Py_None; | |
9373 | return resultobj; | |
9374 | fail: | |
9375 | return NULL; | |
9376 | } | |
9377 | ||
9378 | ||
9379 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9380 | PyObject *resultobj; | |
9381 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9382 | int result; | |
9383 | PyObject * obj0 = 0 ; | |
9384 | char *kwnames[] = { | |
9385 | (char *) "self", NULL | |
9386 | }; | |
9387 | ||
9388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9391 | result = (int) ((arg1)->m_exitcode); |
9392 | ||
15afbcd0 | 9393 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9394 | return resultobj; |
9395 | fail: | |
9396 | return NULL; | |
9397 | } | |
9398 | ||
9399 | ||
9400 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
9401 | PyObject *obj; | |
9402 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9403 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
9404 | Py_INCREF(obj); | |
9405 | return Py_BuildValue((char *)""); | |
9406 | } | |
9407 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9408 | PyObject *resultobj; | |
9409 | wxString *arg1 = 0 ; | |
9410 | int arg2 = (int) wxEXEC_ASYNC ; | |
9411 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
9412 | long result; | |
e811c8ce | 9413 | bool temp1 = False ; |
d14a1e28 | 9414 | PyObject * obj0 = 0 ; |
994141e6 | 9415 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9416 | PyObject * obj2 = 0 ; |
9417 | char *kwnames[] = { | |
9418 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
9419 | }; | |
9420 | ||
994141e6 | 9421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
9422 | { |
9423 | arg1 = wxString_in_helper(obj0); | |
9424 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9425 | temp1 = True; |
d14a1e28 | 9426 | } |
994141e6 | 9427 | if (obj1) { |
15afbcd0 RD |
9428 | arg2 = (int) SWIG_AsInt(obj1); |
9429 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9430 | } |
d14a1e28 | 9431 | if (obj2) { |
15afbcd0 RD |
9432 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess, |
9433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9434 | } |
9435 | { | |
9436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9437 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
9438 | ||
9439 | wxPyEndAllowThreads(__tstate); | |
9440 | if (PyErr_Occurred()) SWIG_fail; | |
9441 | } | |
15afbcd0 | 9442 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9443 | { |
9444 | if (temp1) | |
9445 | delete arg1; | |
9446 | } | |
9447 | return resultobj; | |
9448 | fail: | |
9449 | { | |
9450 | if (temp1) | |
9451 | delete arg1; | |
9452 | } | |
9453 | return NULL; | |
9454 | } | |
9455 | ||
9456 | ||
9457 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9458 | PyObject *resultobj; | |
9459 | int arg1 = (int) wxJOYSTICK1 ; | |
9460 | wxJoystick *result; | |
994141e6 | 9461 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9462 | char *kwnames[] = { |
9463 | (char *) "joystick", NULL | |
9464 | }; | |
9465 | ||
994141e6 RD |
9466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; |
9467 | if (obj0) { | |
15afbcd0 RD |
9468 | arg1 = (int) SWIG_AsInt(obj0); |
9469 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9470 | } |
d14a1e28 RD |
9471 | { |
9472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9473 | result = (wxJoystick *)new wxJoystick(arg1); | |
9474 | ||
9475 | wxPyEndAllowThreads(__tstate); | |
9476 | if (PyErr_Occurred()) SWIG_fail; | |
9477 | } | |
15afbcd0 | 9478 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); |
d14a1e28 RD |
9479 | return resultobj; |
9480 | fail: | |
9481 | return NULL; | |
9482 | } | |
9483 | ||
9484 | ||
9485 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9486 | PyObject *resultobj; | |
9487 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9488 | PyObject * obj0 = 0 ; | |
9489 | char *kwnames[] = { | |
9490 | (char *) "self", NULL | |
9491 | }; | |
9492 | ||
9493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9496 | { |
9497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9498 | delete arg1; | |
9499 | ||
9500 | wxPyEndAllowThreads(__tstate); | |
9501 | if (PyErr_Occurred()) SWIG_fail; | |
9502 | } | |
9503 | Py_INCREF(Py_None); resultobj = Py_None; | |
9504 | return resultobj; | |
9505 | fail: | |
9506 | return NULL; | |
9507 | } | |
9508 | ||
9509 | ||
9510 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9511 | PyObject *resultobj; | |
9512 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9513 | wxPoint result; | |
9514 | PyObject * obj0 = 0 ; | |
9515 | char *kwnames[] = { | |
9516 | (char *) "self", NULL | |
9517 | }; | |
9518 | ||
9519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9522 | { |
9523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9524 | result = (arg1)->GetPosition(); | |
9525 | ||
9526 | wxPyEndAllowThreads(__tstate); | |
9527 | if (PyErr_Occurred()) SWIG_fail; | |
9528 | } | |
9529 | { | |
9530 | wxPoint * resultptr; | |
9531 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 9532 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
9533 | } |
9534 | return resultobj; | |
9535 | fail: | |
9536 | return NULL; | |
9537 | } | |
9538 | ||
9539 | ||
9540 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9541 | PyObject *resultobj; | |
9542 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9543 | int result; | |
9544 | PyObject * obj0 = 0 ; | |
9545 | char *kwnames[] = { | |
9546 | (char *) "self", NULL | |
9547 | }; | |
9548 | ||
9549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9552 | { |
9553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9554 | result = (int)(arg1)->GetZPosition(); | |
9555 | ||
9556 | wxPyEndAllowThreads(__tstate); | |
9557 | if (PyErr_Occurred()) SWIG_fail; | |
9558 | } | |
15afbcd0 | 9559 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9560 | return resultobj; |
9561 | fail: | |
9562 | return NULL; | |
9563 | } | |
9564 | ||
9565 | ||
9566 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9567 | PyObject *resultobj; | |
9568 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9569 | int result; | |
9570 | PyObject * obj0 = 0 ; | |
9571 | char *kwnames[] = { | |
9572 | (char *) "self", NULL | |
9573 | }; | |
9574 | ||
9575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9578 | { |
9579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9580 | result = (int)(arg1)->GetButtonState(); | |
9581 | ||
9582 | wxPyEndAllowThreads(__tstate); | |
9583 | if (PyErr_Occurred()) SWIG_fail; | |
9584 | } | |
15afbcd0 | 9585 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9586 | return resultobj; |
9587 | fail: | |
9588 | return NULL; | |
9589 | } | |
9590 | ||
9591 | ||
9592 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9593 | PyObject *resultobj; | |
9594 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9595 | int result; | |
9596 | PyObject * obj0 = 0 ; | |
9597 | char *kwnames[] = { | |
9598 | (char *) "self", NULL | |
9599 | }; | |
9600 | ||
9601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9604 | { |
9605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9606 | result = (int)(arg1)->GetPOVPosition(); | |
9607 | ||
9608 | wxPyEndAllowThreads(__tstate); | |
9609 | if (PyErr_Occurred()) SWIG_fail; | |
9610 | } | |
15afbcd0 | 9611 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9612 | return resultobj; |
9613 | fail: | |
9614 | return NULL; | |
9615 | } | |
9616 | ||
9617 | ||
9618 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9619 | PyObject *resultobj; | |
9620 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9621 | int result; | |
9622 | PyObject * obj0 = 0 ; | |
9623 | char *kwnames[] = { | |
9624 | (char *) "self", NULL | |
9625 | }; | |
9626 | ||
9627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9630 | { |
9631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9632 | result = (int)(arg1)->GetPOVCTSPosition(); | |
9633 | ||
9634 | wxPyEndAllowThreads(__tstate); | |
9635 | if (PyErr_Occurred()) SWIG_fail; | |
9636 | } | |
15afbcd0 | 9637 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9638 | return resultobj; |
9639 | fail: | |
9640 | return NULL; | |
9641 | } | |
9642 | ||
9643 | ||
9644 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9645 | PyObject *resultobj; | |
9646 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9647 | int result; | |
9648 | PyObject * obj0 = 0 ; | |
9649 | char *kwnames[] = { | |
9650 | (char *) "self", NULL | |
9651 | }; | |
9652 | ||
9653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9656 | { |
9657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9658 | result = (int)(arg1)->GetRudderPosition(); | |
9659 | ||
9660 | wxPyEndAllowThreads(__tstate); | |
9661 | if (PyErr_Occurred()) SWIG_fail; | |
9662 | } | |
15afbcd0 | 9663 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9664 | return resultobj; |
9665 | fail: | |
9666 | return NULL; | |
9667 | } | |
9668 | ||
9669 | ||
9670 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9671 | PyObject *resultobj; | |
9672 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9673 | int result; | |
9674 | PyObject * obj0 = 0 ; | |
9675 | char *kwnames[] = { | |
9676 | (char *) "self", NULL | |
9677 | }; | |
9678 | ||
9679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9682 | { |
9683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9684 | result = (int)(arg1)->GetUPosition(); | |
9685 | ||
9686 | wxPyEndAllowThreads(__tstate); | |
9687 | if (PyErr_Occurred()) SWIG_fail; | |
9688 | } | |
15afbcd0 | 9689 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9690 | return resultobj; |
9691 | fail: | |
9692 | return NULL; | |
9693 | } | |
9694 | ||
9695 | ||
9696 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9697 | PyObject *resultobj; | |
9698 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9699 | int result; | |
9700 | PyObject * obj0 = 0 ; | |
9701 | char *kwnames[] = { | |
9702 | (char *) "self", NULL | |
9703 | }; | |
9704 | ||
9705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9708 | { |
9709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9710 | result = (int)(arg1)->GetVPosition(); | |
9711 | ||
9712 | wxPyEndAllowThreads(__tstate); | |
9713 | if (PyErr_Occurred()) SWIG_fail; | |
9714 | } | |
15afbcd0 | 9715 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9716 | return resultobj; |
9717 | fail: | |
9718 | return NULL; | |
9719 | } | |
9720 | ||
9721 | ||
9722 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9723 | PyObject *resultobj; | |
9724 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9725 | int result; | |
9726 | PyObject * obj0 = 0 ; | |
9727 | char *kwnames[] = { | |
9728 | (char *) "self", NULL | |
9729 | }; | |
9730 | ||
9731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9734 | { |
9735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9736 | result = (int)(arg1)->GetMovementThreshold(); | |
9737 | ||
9738 | wxPyEndAllowThreads(__tstate); | |
9739 | if (PyErr_Occurred()) SWIG_fail; | |
9740 | } | |
15afbcd0 | 9741 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9742 | return resultobj; |
9743 | fail: | |
9744 | return NULL; | |
9745 | } | |
9746 | ||
9747 | ||
9748 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9749 | PyObject *resultobj; | |
9750 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9751 | int arg2 ; | |
9752 | PyObject * obj0 = 0 ; | |
994141e6 | 9753 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9754 | char *kwnames[] = { |
9755 | (char *) "self",(char *) "threshold", NULL | |
9756 | }; | |
9757 | ||
994141e6 | 9758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9761 | arg2 = (int) SWIG_AsInt(obj1); | |
9762 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9763 | { |
9764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9765 | (arg1)->SetMovementThreshold(arg2); | |
9766 | ||
9767 | wxPyEndAllowThreads(__tstate); | |
9768 | if (PyErr_Occurred()) SWIG_fail; | |
9769 | } | |
9770 | Py_INCREF(Py_None); resultobj = Py_None; | |
9771 | return resultobj; | |
9772 | fail: | |
9773 | return NULL; | |
9774 | } | |
9775 | ||
9776 | ||
9777 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9778 | PyObject *resultobj; | |
9779 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9780 | bool result; | |
9781 | PyObject * obj0 = 0 ; | |
9782 | char *kwnames[] = { | |
9783 | (char *) "self", NULL | |
9784 | }; | |
9785 | ||
9786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9789 | { |
9790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9791 | result = (bool)(arg1)->IsOk(); | |
9792 | ||
9793 | wxPyEndAllowThreads(__tstate); | |
9794 | if (PyErr_Occurred()) SWIG_fail; | |
9795 | } | |
4f89f6a3 RD |
9796 | { |
9797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9798 | } | |
d14a1e28 RD |
9799 | return resultobj; |
9800 | fail: | |
9801 | return NULL; | |
9802 | } | |
9803 | ||
9804 | ||
9805 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9806 | PyObject *resultobj; | |
9807 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9808 | int result; | |
9809 | PyObject * obj0 = 0 ; | |
9810 | char *kwnames[] = { | |
9811 | (char *) "self", NULL | |
9812 | }; | |
9813 | ||
9814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9817 | { |
9818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9819 | result = (int)(arg1)->GetNumberJoysticks(); | |
9820 | ||
9821 | wxPyEndAllowThreads(__tstate); | |
9822 | if (PyErr_Occurred()) SWIG_fail; | |
9823 | } | |
15afbcd0 | 9824 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9825 | return resultobj; |
9826 | fail: | |
9827 | return NULL; | |
9828 | } | |
9829 | ||
9830 | ||
9831 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9832 | PyObject *resultobj; | |
9833 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9834 | int result; | |
9835 | PyObject * obj0 = 0 ; | |
9836 | char *kwnames[] = { | |
9837 | (char *) "self", NULL | |
9838 | }; | |
9839 | ||
9840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9843 | { |
9844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9845 | result = (int)(arg1)->GetManufacturerId(); | |
9846 | ||
9847 | wxPyEndAllowThreads(__tstate); | |
9848 | if (PyErr_Occurred()) SWIG_fail; | |
9849 | } | |
15afbcd0 | 9850 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9851 | return resultobj; |
9852 | fail: | |
9853 | return NULL; | |
9854 | } | |
9855 | ||
9856 | ||
9857 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9858 | PyObject *resultobj; | |
9859 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9860 | int result; | |
9861 | PyObject * obj0 = 0 ; | |
9862 | char *kwnames[] = { | |
9863 | (char *) "self", NULL | |
9864 | }; | |
9865 | ||
9866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9869 | { |
9870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9871 | result = (int)(arg1)->GetProductId(); | |
9872 | ||
9873 | wxPyEndAllowThreads(__tstate); | |
9874 | if (PyErr_Occurred()) SWIG_fail; | |
9875 | } | |
15afbcd0 | 9876 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9877 | return resultobj; |
9878 | fail: | |
9879 | return NULL; | |
9880 | } | |
9881 | ||
9882 | ||
9883 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9884 | PyObject *resultobj; | |
9885 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9886 | wxString result; | |
9887 | PyObject * obj0 = 0 ; | |
9888 | char *kwnames[] = { | |
9889 | (char *) "self", NULL | |
9890 | }; | |
9891 | ||
9892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9895 | { |
9896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9897 | result = (arg1)->GetProductName(); | |
9898 | ||
9899 | wxPyEndAllowThreads(__tstate); | |
9900 | if (PyErr_Occurred()) SWIG_fail; | |
9901 | } | |
9902 | { | |
9903 | #if wxUSE_UNICODE | |
9904 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9905 | #else | |
9906 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9907 | #endif | |
9908 | } | |
9909 | return resultobj; | |
9910 | fail: | |
9911 | return NULL; | |
9912 | } | |
9913 | ||
9914 | ||
9915 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9916 | PyObject *resultobj; | |
9917 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9918 | int result; | |
9919 | PyObject * obj0 = 0 ; | |
9920 | char *kwnames[] = { | |
9921 | (char *) "self", NULL | |
9922 | }; | |
9923 | ||
9924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9927 | { |
9928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9929 | result = (int)(arg1)->GetXMin(); | |
9930 | ||
9931 | wxPyEndAllowThreads(__tstate); | |
9932 | if (PyErr_Occurred()) SWIG_fail; | |
9933 | } | |
15afbcd0 | 9934 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9935 | return resultobj; |
9936 | fail: | |
9937 | return NULL; | |
9938 | } | |
9939 | ||
9940 | ||
9941 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9942 | PyObject *resultobj; | |
9943 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9944 | int result; | |
9945 | PyObject * obj0 = 0 ; | |
9946 | char *kwnames[] = { | |
9947 | (char *) "self", NULL | |
9948 | }; | |
9949 | ||
9950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9953 | { |
9954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9955 | result = (int)(arg1)->GetYMin(); | |
9956 | ||
9957 | wxPyEndAllowThreads(__tstate); | |
9958 | if (PyErr_Occurred()) SWIG_fail; | |
9959 | } | |
15afbcd0 | 9960 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9961 | return resultobj; |
9962 | fail: | |
9963 | return NULL; | |
9964 | } | |
9965 | ||
9966 | ||
9967 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9968 | PyObject *resultobj; | |
9969 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9970 | int result; | |
9971 | PyObject * obj0 = 0 ; | |
9972 | char *kwnames[] = { | |
9973 | (char *) "self", NULL | |
9974 | }; | |
9975 | ||
9976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9979 | { |
9980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9981 | result = (int)(arg1)->GetZMin(); | |
9982 | ||
9983 | wxPyEndAllowThreads(__tstate); | |
9984 | if (PyErr_Occurred()) SWIG_fail; | |
9985 | } | |
15afbcd0 | 9986 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9987 | return resultobj; |
9988 | fail: | |
9989 | return NULL; | |
9990 | } | |
9991 | ||
9992 | ||
9993 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9994 | PyObject *resultobj; | |
9995 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9996 | int result; | |
9997 | PyObject * obj0 = 0 ; | |
9998 | char *kwnames[] = { | |
9999 | (char *) "self", NULL | |
10000 | }; | |
10001 | ||
10002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10005 | { |
10006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10007 | result = (int)(arg1)->GetXMax(); | |
10008 | ||
10009 | wxPyEndAllowThreads(__tstate); | |
10010 | if (PyErr_Occurred()) SWIG_fail; | |
10011 | } | |
15afbcd0 | 10012 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10013 | return resultobj; |
10014 | fail: | |
10015 | return NULL; | |
10016 | } | |
10017 | ||
10018 | ||
10019 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10020 | PyObject *resultobj; | |
10021 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10022 | int result; | |
10023 | PyObject * obj0 = 0 ; | |
10024 | char *kwnames[] = { | |
10025 | (char *) "self", NULL | |
10026 | }; | |
10027 | ||
10028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10031 | { |
10032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10033 | result = (int)(arg1)->GetYMax(); | |
10034 | ||
10035 | wxPyEndAllowThreads(__tstate); | |
10036 | if (PyErr_Occurred()) SWIG_fail; | |
10037 | } | |
15afbcd0 | 10038 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10039 | return resultobj; |
10040 | fail: | |
10041 | return NULL; | |
10042 | } | |
10043 | ||
10044 | ||
10045 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10046 | PyObject *resultobj; | |
10047 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10048 | int result; | |
10049 | PyObject * obj0 = 0 ; | |
10050 | char *kwnames[] = { | |
10051 | (char *) "self", NULL | |
10052 | }; | |
10053 | ||
10054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10057 | { |
10058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10059 | result = (int)(arg1)->GetZMax(); | |
10060 | ||
10061 | wxPyEndAllowThreads(__tstate); | |
10062 | if (PyErr_Occurred()) SWIG_fail; | |
10063 | } | |
15afbcd0 | 10064 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10065 | return resultobj; |
10066 | fail: | |
10067 | return NULL; | |
10068 | } | |
10069 | ||
10070 | ||
10071 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10072 | PyObject *resultobj; | |
10073 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10074 | int result; | |
10075 | PyObject * obj0 = 0 ; | |
10076 | char *kwnames[] = { | |
10077 | (char *) "self", NULL | |
10078 | }; | |
10079 | ||
10080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10083 | { |
10084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10085 | result = (int)(arg1)->GetNumberButtons(); | |
10086 | ||
10087 | wxPyEndAllowThreads(__tstate); | |
10088 | if (PyErr_Occurred()) SWIG_fail; | |
10089 | } | |
15afbcd0 | 10090 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10091 | return resultobj; |
10092 | fail: | |
10093 | return NULL; | |
10094 | } | |
10095 | ||
10096 | ||
10097 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10098 | PyObject *resultobj; | |
10099 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10100 | int result; | |
10101 | PyObject * obj0 = 0 ; | |
10102 | char *kwnames[] = { | |
10103 | (char *) "self", NULL | |
10104 | }; | |
10105 | ||
10106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10109 | { |
10110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10111 | result = (int)(arg1)->GetNumberAxes(); | |
10112 | ||
10113 | wxPyEndAllowThreads(__tstate); | |
10114 | if (PyErr_Occurred()) SWIG_fail; | |
10115 | } | |
15afbcd0 | 10116 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10117 | return resultobj; |
10118 | fail: | |
10119 | return NULL; | |
10120 | } | |
10121 | ||
10122 | ||
10123 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10124 | PyObject *resultobj; | |
10125 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10126 | int result; | |
10127 | PyObject * obj0 = 0 ; | |
10128 | char *kwnames[] = { | |
10129 | (char *) "self", NULL | |
10130 | }; | |
10131 | ||
10132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10135 | { |
10136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10137 | result = (int)(arg1)->GetMaxButtons(); | |
10138 | ||
10139 | wxPyEndAllowThreads(__tstate); | |
10140 | if (PyErr_Occurred()) SWIG_fail; | |
10141 | } | |
15afbcd0 | 10142 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10143 | return resultobj; |
10144 | fail: | |
10145 | return NULL; | |
10146 | } | |
10147 | ||
10148 | ||
10149 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10150 | PyObject *resultobj; | |
10151 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10152 | int result; | |
10153 | PyObject * obj0 = 0 ; | |
10154 | char *kwnames[] = { | |
10155 | (char *) "self", NULL | |
10156 | }; | |
10157 | ||
10158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10161 | { |
10162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10163 | result = (int)(arg1)->GetMaxAxes(); | |
10164 | ||
10165 | wxPyEndAllowThreads(__tstate); | |
10166 | if (PyErr_Occurred()) SWIG_fail; | |
10167 | } | |
15afbcd0 | 10168 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10169 | return resultobj; |
10170 | fail: | |
10171 | return NULL; | |
10172 | } | |
10173 | ||
10174 | ||
10175 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10176 | PyObject *resultobj; | |
10177 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10178 | int result; | |
10179 | PyObject * obj0 = 0 ; | |
10180 | char *kwnames[] = { | |
10181 | (char *) "self", NULL | |
10182 | }; | |
10183 | ||
10184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10187 | { |
10188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10189 | result = (int)(arg1)->GetPollingMin(); | |
10190 | ||
10191 | wxPyEndAllowThreads(__tstate); | |
10192 | if (PyErr_Occurred()) SWIG_fail; | |
10193 | } | |
15afbcd0 | 10194 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10195 | return resultobj; |
10196 | fail: | |
10197 | return NULL; | |
10198 | } | |
10199 | ||
10200 | ||
10201 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10202 | PyObject *resultobj; | |
10203 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10204 | int result; | |
10205 | PyObject * obj0 = 0 ; | |
10206 | char *kwnames[] = { | |
10207 | (char *) "self", NULL | |
10208 | }; | |
10209 | ||
10210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10213 | { |
10214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10215 | result = (int)(arg1)->GetPollingMax(); | |
10216 | ||
10217 | wxPyEndAllowThreads(__tstate); | |
10218 | if (PyErr_Occurred()) SWIG_fail; | |
10219 | } | |
15afbcd0 | 10220 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10221 | return resultobj; |
10222 | fail: | |
10223 | return NULL; | |
10224 | } | |
10225 | ||
10226 | ||
10227 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10228 | PyObject *resultobj; | |
10229 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10230 | int result; | |
10231 | PyObject * obj0 = 0 ; | |
10232 | char *kwnames[] = { | |
10233 | (char *) "self", NULL | |
10234 | }; | |
10235 | ||
10236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10239 | { |
10240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10241 | result = (int)(arg1)->GetRudderMin(); | |
10242 | ||
10243 | wxPyEndAllowThreads(__tstate); | |
10244 | if (PyErr_Occurred()) SWIG_fail; | |
10245 | } | |
15afbcd0 | 10246 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10247 | return resultobj; |
10248 | fail: | |
10249 | return NULL; | |
10250 | } | |
10251 | ||
10252 | ||
10253 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10254 | PyObject *resultobj; | |
10255 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10256 | int result; | |
10257 | PyObject * obj0 = 0 ; | |
10258 | char *kwnames[] = { | |
10259 | (char *) "self", NULL | |
10260 | }; | |
10261 | ||
10262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10265 | { |
10266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10267 | result = (int)(arg1)->GetRudderMax(); | |
10268 | ||
10269 | wxPyEndAllowThreads(__tstate); | |
10270 | if (PyErr_Occurred()) SWIG_fail; | |
10271 | } | |
15afbcd0 | 10272 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10273 | return resultobj; |
10274 | fail: | |
10275 | return NULL; | |
10276 | } | |
10277 | ||
10278 | ||
10279 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10280 | PyObject *resultobj; | |
10281 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10282 | int result; | |
10283 | PyObject * obj0 = 0 ; | |
10284 | char *kwnames[] = { | |
10285 | (char *) "self", NULL | |
10286 | }; | |
10287 | ||
10288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10291 | { |
10292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10293 | result = (int)(arg1)->GetUMin(); | |
10294 | ||
10295 | wxPyEndAllowThreads(__tstate); | |
10296 | if (PyErr_Occurred()) SWIG_fail; | |
10297 | } | |
15afbcd0 | 10298 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10299 | return resultobj; |
10300 | fail: | |
10301 | return NULL; | |
10302 | } | |
10303 | ||
10304 | ||
10305 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10306 | PyObject *resultobj; | |
10307 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10308 | int result; | |
10309 | PyObject * obj0 = 0 ; | |
10310 | char *kwnames[] = { | |
10311 | (char *) "self", NULL | |
10312 | }; | |
10313 | ||
10314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10317 | { |
10318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10319 | result = (int)(arg1)->GetUMax(); | |
10320 | ||
10321 | wxPyEndAllowThreads(__tstate); | |
10322 | if (PyErr_Occurred()) SWIG_fail; | |
10323 | } | |
15afbcd0 | 10324 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10325 | return resultobj; |
10326 | fail: | |
10327 | return NULL; | |
10328 | } | |
10329 | ||
10330 | ||
10331 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10332 | PyObject *resultobj; | |
10333 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10334 | int result; | |
10335 | PyObject * obj0 = 0 ; | |
10336 | char *kwnames[] = { | |
10337 | (char *) "self", NULL | |
10338 | }; | |
10339 | ||
10340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10343 | { |
10344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10345 | result = (int)(arg1)->GetVMin(); | |
10346 | ||
10347 | wxPyEndAllowThreads(__tstate); | |
10348 | if (PyErr_Occurred()) SWIG_fail; | |
10349 | } | |
15afbcd0 | 10350 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10351 | return resultobj; |
10352 | fail: | |
10353 | return NULL; | |
10354 | } | |
10355 | ||
10356 | ||
10357 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10358 | PyObject *resultobj; | |
10359 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10360 | int result; | |
10361 | PyObject * obj0 = 0 ; | |
10362 | char *kwnames[] = { | |
10363 | (char *) "self", NULL | |
10364 | }; | |
10365 | ||
10366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10369 | { |
10370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10371 | result = (int)(arg1)->GetVMax(); | |
10372 | ||
10373 | wxPyEndAllowThreads(__tstate); | |
10374 | if (PyErr_Occurred()) SWIG_fail; | |
10375 | } | |
15afbcd0 | 10376 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10377 | return resultobj; |
10378 | fail: | |
10379 | return NULL; | |
10380 | } | |
10381 | ||
10382 | ||
10383 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10384 | PyObject *resultobj; | |
10385 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10386 | bool result; | |
10387 | PyObject * obj0 = 0 ; | |
10388 | char *kwnames[] = { | |
10389 | (char *) "self", NULL | |
10390 | }; | |
10391 | ||
10392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10395 | { |
10396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10397 | result = (bool)(arg1)->HasRudder(); | |
10398 | ||
10399 | wxPyEndAllowThreads(__tstate); | |
10400 | if (PyErr_Occurred()) SWIG_fail; | |
10401 | } | |
4f89f6a3 RD |
10402 | { |
10403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10404 | } | |
d14a1e28 RD |
10405 | return resultobj; |
10406 | fail: | |
10407 | return NULL; | |
10408 | } | |
10409 | ||
10410 | ||
10411 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10412 | PyObject *resultobj; | |
10413 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10414 | bool result; | |
10415 | PyObject * obj0 = 0 ; | |
10416 | char *kwnames[] = { | |
10417 | (char *) "self", NULL | |
10418 | }; | |
10419 | ||
10420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10423 | { |
10424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10425 | result = (bool)(arg1)->HasZ(); | |
10426 | ||
10427 | wxPyEndAllowThreads(__tstate); | |
10428 | if (PyErr_Occurred()) SWIG_fail; | |
10429 | } | |
4f89f6a3 RD |
10430 | { |
10431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10432 | } | |
d14a1e28 RD |
10433 | return resultobj; |
10434 | fail: | |
10435 | return NULL; | |
10436 | } | |
10437 | ||
10438 | ||
10439 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10440 | PyObject *resultobj; | |
10441 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10442 | bool result; | |
10443 | PyObject * obj0 = 0 ; | |
10444 | char *kwnames[] = { | |
10445 | (char *) "self", NULL | |
10446 | }; | |
10447 | ||
10448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10451 | { |
10452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10453 | result = (bool)(arg1)->HasU(); | |
10454 | ||
10455 | wxPyEndAllowThreads(__tstate); | |
10456 | if (PyErr_Occurred()) SWIG_fail; | |
10457 | } | |
4f89f6a3 RD |
10458 | { |
10459 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10460 | } | |
d14a1e28 RD |
10461 | return resultobj; |
10462 | fail: | |
10463 | return NULL; | |
10464 | } | |
10465 | ||
10466 | ||
10467 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10468 | PyObject *resultobj; | |
10469 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10470 | bool result; | |
10471 | PyObject * obj0 = 0 ; | |
10472 | char *kwnames[] = { | |
10473 | (char *) "self", NULL | |
10474 | }; | |
10475 | ||
10476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10479 | { |
10480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10481 | result = (bool)(arg1)->HasV(); | |
10482 | ||
10483 | wxPyEndAllowThreads(__tstate); | |
10484 | if (PyErr_Occurred()) SWIG_fail; | |
10485 | } | |
4f89f6a3 RD |
10486 | { |
10487 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10488 | } | |
d14a1e28 RD |
10489 | return resultobj; |
10490 | fail: | |
10491 | return NULL; | |
10492 | } | |
10493 | ||
10494 | ||
10495 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10496 | PyObject *resultobj; | |
10497 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10498 | bool result; | |
10499 | PyObject * obj0 = 0 ; | |
10500 | char *kwnames[] = { | |
10501 | (char *) "self", NULL | |
10502 | }; | |
10503 | ||
10504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10507 | { |
10508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10509 | result = (bool)(arg1)->HasPOV(); | |
10510 | ||
10511 | wxPyEndAllowThreads(__tstate); | |
10512 | if (PyErr_Occurred()) SWIG_fail; | |
10513 | } | |
4f89f6a3 RD |
10514 | { |
10515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10516 | } | |
d14a1e28 RD |
10517 | return resultobj; |
10518 | fail: | |
10519 | return NULL; | |
10520 | } | |
10521 | ||
10522 | ||
10523 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10524 | PyObject *resultobj; | |
10525 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10526 | bool result; | |
10527 | PyObject * obj0 = 0 ; | |
10528 | char *kwnames[] = { | |
10529 | (char *) "self", NULL | |
10530 | }; | |
10531 | ||
10532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10535 | { |
10536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10537 | result = (bool)(arg1)->HasPOV4Dir(); | |
10538 | ||
10539 | wxPyEndAllowThreads(__tstate); | |
10540 | if (PyErr_Occurred()) SWIG_fail; | |
10541 | } | |
4f89f6a3 RD |
10542 | { |
10543 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10544 | } | |
d14a1e28 RD |
10545 | return resultobj; |
10546 | fail: | |
10547 | return NULL; | |
10548 | } | |
10549 | ||
10550 | ||
10551 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10552 | PyObject *resultobj; | |
10553 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10554 | bool result; | |
10555 | PyObject * obj0 = 0 ; | |
10556 | char *kwnames[] = { | |
10557 | (char *) "self", NULL | |
10558 | }; | |
10559 | ||
10560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10563 | { |
10564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10565 | result = (bool)(arg1)->HasPOVCTS(); | |
10566 | ||
10567 | wxPyEndAllowThreads(__tstate); | |
10568 | if (PyErr_Occurred()) SWIG_fail; | |
10569 | } | |
4f89f6a3 RD |
10570 | { |
10571 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10572 | } | |
d14a1e28 RD |
10573 | return resultobj; |
10574 | fail: | |
10575 | return NULL; | |
10576 | } | |
10577 | ||
10578 | ||
10579 | static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10580 | PyObject *resultobj; | |
10581 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10582 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10583 | int arg3 = (int) 0 ; | |
10584 | bool result; | |
10585 | PyObject * obj0 = 0 ; | |
10586 | PyObject * obj1 = 0 ; | |
994141e6 | 10587 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10588 | char *kwnames[] = { |
10589 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
10590 | }; | |
10591 | ||
994141e6 | 10592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10595 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10597 | if (obj2) { |
15afbcd0 RD |
10598 | arg3 = (int) SWIG_AsInt(obj2); |
10599 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10600 | } |
d14a1e28 RD |
10601 | { |
10602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10603 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
10604 | ||
10605 | wxPyEndAllowThreads(__tstate); | |
10606 | if (PyErr_Occurred()) SWIG_fail; | |
10607 | } | |
4f89f6a3 RD |
10608 | { |
10609 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10610 | } | |
d14a1e28 RD |
10611 | return resultobj; |
10612 | fail: | |
10613 | return NULL; | |
10614 | } | |
10615 | ||
10616 | ||
10617 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10618 | PyObject *resultobj; | |
10619 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10620 | bool result; | |
10621 | PyObject * obj0 = 0 ; | |
10622 | char *kwnames[] = { | |
10623 | (char *) "self", NULL | |
10624 | }; | |
10625 | ||
10626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10629 | { |
10630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10631 | result = (bool)(arg1)->ReleaseCapture(); | |
10632 | ||
10633 | wxPyEndAllowThreads(__tstate); | |
10634 | if (PyErr_Occurred()) SWIG_fail; | |
10635 | } | |
4f89f6a3 RD |
10636 | { |
10637 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10638 | } | |
d14a1e28 RD |
10639 | return resultobj; |
10640 | fail: | |
10641 | return NULL; | |
10642 | } | |
10643 | ||
10644 | ||
10645 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
10646 | PyObject *obj; | |
10647 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10648 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
10649 | Py_INCREF(obj); | |
10650 | return Py_BuildValue((char *)""); | |
10651 | } | |
10652 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10653 | PyObject *resultobj; | |
10654 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10655 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10656 | PyObject * obj0 = 0 ; | |
10657 | PyObject * obj1 = 0 ; | |
10658 | char *kwnames[] = { | |
10659 | (char *) "self",(char *) "m_pos", NULL | |
10660 | }; | |
10661 | ||
10662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10665 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
10666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10667 | if (arg1) (arg1)->m_pos = *arg2; |
10668 | ||
10669 | Py_INCREF(Py_None); resultobj = Py_None; | |
10670 | return resultobj; | |
10671 | fail: | |
10672 | return NULL; | |
10673 | } | |
10674 | ||
10675 | ||
10676 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10677 | PyObject *resultobj; | |
10678 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10679 | wxPoint *result; | |
10680 | PyObject * obj0 = 0 ; | |
10681 | char *kwnames[] = { | |
10682 | (char *) "self", NULL | |
10683 | }; | |
10684 | ||
10685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10688 | result = (wxPoint *)& ((arg1)->m_pos); |
10689 | ||
15afbcd0 | 10690 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
10691 | return resultobj; |
10692 | fail: | |
10693 | return NULL; | |
10694 | } | |
10695 | ||
10696 | ||
10697 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10698 | PyObject *resultobj; | |
10699 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10700 | int arg2 ; | |
10701 | PyObject * obj0 = 0 ; | |
994141e6 | 10702 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10703 | char *kwnames[] = { |
10704 | (char *) "self",(char *) "m_zPosition", NULL | |
10705 | }; | |
10706 | ||
994141e6 | 10707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10710 | arg2 = (int) SWIG_AsInt(obj1); | |
10711 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10712 | if (arg1) (arg1)->m_zPosition = arg2; |
10713 | ||
10714 | Py_INCREF(Py_None); resultobj = Py_None; | |
10715 | return resultobj; | |
10716 | fail: | |
10717 | return NULL; | |
10718 | } | |
10719 | ||
10720 | ||
10721 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10722 | PyObject *resultobj; | |
10723 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10724 | int result; | |
10725 | PyObject * obj0 = 0 ; | |
10726 | char *kwnames[] = { | |
10727 | (char *) "self", NULL | |
10728 | }; | |
10729 | ||
10730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10733 | result = (int) ((arg1)->m_zPosition); |
10734 | ||
15afbcd0 | 10735 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10736 | return resultobj; |
10737 | fail: | |
10738 | return NULL; | |
10739 | } | |
10740 | ||
10741 | ||
10742 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10743 | PyObject *resultobj; | |
10744 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10745 | int arg2 ; | |
10746 | PyObject * obj0 = 0 ; | |
994141e6 | 10747 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10748 | char *kwnames[] = { |
10749 | (char *) "self",(char *) "m_buttonChange", NULL | |
10750 | }; | |
10751 | ||
994141e6 | 10752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10755 | arg2 = (int) SWIG_AsInt(obj1); | |
10756 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10757 | if (arg1) (arg1)->m_buttonChange = arg2; |
10758 | ||
10759 | Py_INCREF(Py_None); resultobj = Py_None; | |
10760 | return resultobj; | |
10761 | fail: | |
10762 | return NULL; | |
10763 | } | |
10764 | ||
10765 | ||
10766 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10767 | PyObject *resultobj; | |
10768 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10769 | int result; | |
10770 | PyObject * obj0 = 0 ; | |
10771 | char *kwnames[] = { | |
10772 | (char *) "self", NULL | |
10773 | }; | |
10774 | ||
10775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10778 | result = (int) ((arg1)->m_buttonChange); |
10779 | ||
15afbcd0 | 10780 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10781 | return resultobj; |
10782 | fail: | |
10783 | return NULL; | |
10784 | } | |
10785 | ||
10786 | ||
10787 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10788 | PyObject *resultobj; | |
10789 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10790 | int arg2 ; | |
10791 | PyObject * obj0 = 0 ; | |
994141e6 | 10792 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10793 | char *kwnames[] = { |
10794 | (char *) "self",(char *) "m_buttonState", NULL | |
10795 | }; | |
10796 | ||
994141e6 | 10797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10800 | arg2 = (int) SWIG_AsInt(obj1); | |
10801 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10802 | if (arg1) (arg1)->m_buttonState = arg2; |
10803 | ||
10804 | Py_INCREF(Py_None); resultobj = Py_None; | |
10805 | return resultobj; | |
10806 | fail: | |
10807 | return NULL; | |
10808 | } | |
10809 | ||
10810 | ||
10811 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10812 | PyObject *resultobj; | |
10813 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10814 | int result; | |
10815 | PyObject * obj0 = 0 ; | |
10816 | char *kwnames[] = { | |
10817 | (char *) "self", NULL | |
10818 | }; | |
10819 | ||
10820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10823 | result = (int) ((arg1)->m_buttonState); |
10824 | ||
15afbcd0 | 10825 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10826 | return resultobj; |
10827 | fail: | |
10828 | return NULL; | |
10829 | } | |
10830 | ||
10831 | ||
10832 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10833 | PyObject *resultobj; | |
10834 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10835 | int arg2 ; | |
10836 | PyObject * obj0 = 0 ; | |
994141e6 | 10837 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10838 | char *kwnames[] = { |
10839 | (char *) "self",(char *) "m_joyStick", NULL | |
10840 | }; | |
10841 | ||
994141e6 | 10842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10845 | arg2 = (int) SWIG_AsInt(obj1); | |
10846 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10847 | if (arg1) (arg1)->m_joyStick = arg2; |
10848 | ||
10849 | Py_INCREF(Py_None); resultobj = Py_None; | |
10850 | return resultobj; | |
10851 | fail: | |
10852 | return NULL; | |
10853 | } | |
10854 | ||
10855 | ||
10856 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10857 | PyObject *resultobj; | |
10858 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10859 | int result; | |
10860 | PyObject * obj0 = 0 ; | |
10861 | char *kwnames[] = { | |
10862 | (char *) "self", NULL | |
10863 | }; | |
10864 | ||
10865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10868 | result = (int) ((arg1)->m_joyStick); |
10869 | ||
15afbcd0 | 10870 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10871 | return resultobj; |
10872 | fail: | |
10873 | return NULL; | |
10874 | } | |
10875 | ||
10876 | ||
10877 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10878 | PyObject *resultobj; | |
10879 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10880 | int arg2 = (int) 0 ; | |
10881 | int arg3 = (int) wxJOYSTICK1 ; | |
10882 | int arg4 = (int) 0 ; | |
10883 | wxJoystickEvent *result; | |
994141e6 RD |
10884 | PyObject * obj0 = 0 ; |
10885 | PyObject * obj1 = 0 ; | |
10886 | PyObject * obj2 = 0 ; | |
10887 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10888 | char *kwnames[] = { |
10889 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
10890 | }; | |
10891 | ||
994141e6 RD |
10892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
10893 | if (obj0) { | |
15afbcd0 RD |
10894 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
10895 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
10896 | } |
10897 | if (obj1) { | |
15afbcd0 RD |
10898 | arg2 = (int) SWIG_AsInt(obj1); |
10899 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
10900 | } |
10901 | if (obj2) { | |
15afbcd0 RD |
10902 | arg3 = (int) SWIG_AsInt(obj2); |
10903 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
10904 | } |
10905 | if (obj3) { | |
15afbcd0 RD |
10906 | arg4 = (int) SWIG_AsInt(obj3); |
10907 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10908 | } |
d14a1e28 RD |
10909 | { |
10910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10911 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
10912 | ||
10913 | wxPyEndAllowThreads(__tstate); | |
10914 | if (PyErr_Occurred()) SWIG_fail; | |
10915 | } | |
15afbcd0 | 10916 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); |
d14a1e28 RD |
10917 | return resultobj; |
10918 | fail: | |
10919 | return NULL; | |
10920 | } | |
10921 | ||
10922 | ||
10923 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10924 | PyObject *resultobj; | |
10925 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10926 | wxPoint result; | |
10927 | PyObject * obj0 = 0 ; | |
10928 | char *kwnames[] = { | |
10929 | (char *) "self", NULL | |
10930 | }; | |
10931 | ||
10932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10935 | { |
10936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10937 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
10938 | ||
10939 | wxPyEndAllowThreads(__tstate); | |
10940 | if (PyErr_Occurred()) SWIG_fail; | |
10941 | } | |
10942 | { | |
10943 | wxPoint * resultptr; | |
10944 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 10945 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
10946 | } |
10947 | return resultobj; | |
10948 | fail: | |
10949 | return NULL; | |
10950 | } | |
10951 | ||
10952 | ||
10953 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10954 | PyObject *resultobj; | |
10955 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10956 | int result; | |
10957 | PyObject * obj0 = 0 ; | |
10958 | char *kwnames[] = { | |
10959 | (char *) "self", NULL | |
10960 | }; | |
10961 | ||
10962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10965 | { |
10966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10967 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
10968 | ||
10969 | wxPyEndAllowThreads(__tstate); | |
10970 | if (PyErr_Occurred()) SWIG_fail; | |
10971 | } | |
15afbcd0 | 10972 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10973 | return resultobj; |
10974 | fail: | |
10975 | return NULL; | |
10976 | } | |
10977 | ||
10978 | ||
10979 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10980 | PyObject *resultobj; | |
10981 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10982 | int result; | |
10983 | PyObject * obj0 = 0 ; | |
10984 | char *kwnames[] = { | |
10985 | (char *) "self", NULL | |
10986 | }; | |
10987 | ||
10988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10991 | { |
10992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10993 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
10994 | ||
10995 | wxPyEndAllowThreads(__tstate); | |
10996 | if (PyErr_Occurred()) SWIG_fail; | |
10997 | } | |
15afbcd0 | 10998 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10999 | return resultobj; |
11000 | fail: | |
11001 | return NULL; | |
11002 | } | |
11003 | ||
11004 | ||
11005 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11006 | PyObject *resultobj; | |
11007 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11008 | int result; | |
11009 | PyObject * obj0 = 0 ; | |
11010 | char *kwnames[] = { | |
11011 | (char *) "self", NULL | |
11012 | }; | |
11013 | ||
11014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11017 | { |
11018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11019 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
11020 | ||
11021 | wxPyEndAllowThreads(__tstate); | |
11022 | if (PyErr_Occurred()) SWIG_fail; | |
11023 | } | |
15afbcd0 | 11024 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11025 | return resultobj; |
11026 | fail: | |
11027 | return NULL; | |
11028 | } | |
11029 | ||
11030 | ||
11031 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11032 | PyObject *resultobj; | |
11033 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11034 | int result; | |
11035 | PyObject * obj0 = 0 ; | |
11036 | char *kwnames[] = { | |
11037 | (char *) "self", NULL | |
11038 | }; | |
11039 | ||
11040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11043 | { |
11044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11045 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
11046 | ||
11047 | wxPyEndAllowThreads(__tstate); | |
11048 | if (PyErr_Occurred()) SWIG_fail; | |
11049 | } | |
15afbcd0 | 11050 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11051 | return resultobj; |
11052 | fail: | |
11053 | return NULL; | |
11054 | } | |
11055 | ||
11056 | ||
11057 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11058 | PyObject *resultobj; | |
11059 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11060 | int arg2 ; | |
11061 | PyObject * obj0 = 0 ; | |
994141e6 | 11062 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11063 | char *kwnames[] = { |
11064 | (char *) "self",(char *) "stick", NULL | |
11065 | }; | |
11066 | ||
994141e6 | 11067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11070 | arg2 = (int) SWIG_AsInt(obj1); | |
11071 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11072 | { |
11073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11074 | (arg1)->SetJoystick(arg2); | |
11075 | ||
11076 | wxPyEndAllowThreads(__tstate); | |
11077 | if (PyErr_Occurred()) SWIG_fail; | |
11078 | } | |
11079 | Py_INCREF(Py_None); resultobj = Py_None; | |
11080 | return resultobj; | |
11081 | fail: | |
11082 | return NULL; | |
11083 | } | |
11084 | ||
11085 | ||
11086 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11087 | PyObject *resultobj; | |
11088 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11089 | int arg2 ; | |
11090 | PyObject * obj0 = 0 ; | |
994141e6 | 11091 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11092 | char *kwnames[] = { |
11093 | (char *) "self",(char *) "state", NULL | |
11094 | }; | |
11095 | ||
994141e6 | 11096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11099 | arg2 = (int) SWIG_AsInt(obj1); | |
11100 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11101 | { |
11102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11103 | (arg1)->SetButtonState(arg2); | |
11104 | ||
11105 | wxPyEndAllowThreads(__tstate); | |
11106 | if (PyErr_Occurred()) SWIG_fail; | |
11107 | } | |
11108 | Py_INCREF(Py_None); resultobj = Py_None; | |
11109 | return resultobj; | |
11110 | fail: | |
11111 | return NULL; | |
11112 | } | |
11113 | ||
11114 | ||
11115 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11116 | PyObject *resultobj; | |
11117 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11118 | int arg2 ; | |
11119 | PyObject * obj0 = 0 ; | |
994141e6 | 11120 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11121 | char *kwnames[] = { |
11122 | (char *) "self",(char *) "change", NULL | |
11123 | }; | |
11124 | ||
994141e6 | 11125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11128 | arg2 = (int) SWIG_AsInt(obj1); | |
11129 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11130 | { |
11131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11132 | (arg1)->SetButtonChange(arg2); | |
11133 | ||
11134 | wxPyEndAllowThreads(__tstate); | |
11135 | if (PyErr_Occurred()) SWIG_fail; | |
11136 | } | |
11137 | Py_INCREF(Py_None); resultobj = Py_None; | |
11138 | return resultobj; | |
11139 | fail: | |
11140 | return NULL; | |
11141 | } | |
11142 | ||
11143 | ||
11144 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11145 | PyObject *resultobj; | |
11146 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11147 | wxPoint *arg2 = 0 ; | |
11148 | wxPoint temp2 ; | |
11149 | PyObject * obj0 = 0 ; | |
11150 | PyObject * obj1 = 0 ; | |
11151 | char *kwnames[] = { | |
11152 | (char *) "self",(char *) "pos", NULL | |
11153 | }; | |
11154 | ||
11155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11158 | { |
11159 | arg2 = &temp2; | |
11160 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11161 | } | |
11162 | { | |
11163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11164 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
11165 | ||
11166 | wxPyEndAllowThreads(__tstate); | |
11167 | if (PyErr_Occurred()) SWIG_fail; | |
11168 | } | |
11169 | Py_INCREF(Py_None); resultobj = Py_None; | |
11170 | return resultobj; | |
11171 | fail: | |
11172 | return NULL; | |
11173 | } | |
11174 | ||
11175 | ||
11176 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11177 | PyObject *resultobj; | |
11178 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11179 | int arg2 ; | |
11180 | PyObject * obj0 = 0 ; | |
994141e6 | 11181 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11182 | char *kwnames[] = { |
11183 | (char *) "self",(char *) "zPos", NULL | |
11184 | }; | |
11185 | ||
994141e6 | 11186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11189 | arg2 = (int) SWIG_AsInt(obj1); | |
11190 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11191 | { |
11192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11193 | (arg1)->SetZPosition(arg2); | |
11194 | ||
11195 | wxPyEndAllowThreads(__tstate); | |
11196 | if (PyErr_Occurred()) SWIG_fail; | |
11197 | } | |
11198 | Py_INCREF(Py_None); resultobj = Py_None; | |
11199 | return resultobj; | |
11200 | fail: | |
11201 | return NULL; | |
11202 | } | |
11203 | ||
11204 | ||
11205 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11206 | PyObject *resultobj; | |
11207 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11208 | bool result; | |
11209 | PyObject * obj0 = 0 ; | |
11210 | char *kwnames[] = { | |
11211 | (char *) "self", NULL | |
11212 | }; | |
11213 | ||
11214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11217 | { |
11218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11219 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
11220 | ||
11221 | wxPyEndAllowThreads(__tstate); | |
11222 | if (PyErr_Occurred()) SWIG_fail; | |
11223 | } | |
4f89f6a3 RD |
11224 | { |
11225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11226 | } | |
d14a1e28 RD |
11227 | return resultobj; |
11228 | fail: | |
11229 | return NULL; | |
11230 | } | |
11231 | ||
11232 | ||
11233 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11234 | PyObject *resultobj; | |
11235 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11236 | bool result; | |
11237 | PyObject * obj0 = 0 ; | |
11238 | char *kwnames[] = { | |
11239 | (char *) "self", NULL | |
11240 | }; | |
11241 | ||
11242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11245 | { |
11246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11247 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
11248 | ||
11249 | wxPyEndAllowThreads(__tstate); | |
11250 | if (PyErr_Occurred()) SWIG_fail; | |
11251 | } | |
4f89f6a3 RD |
11252 | { |
11253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11254 | } | |
d14a1e28 RD |
11255 | return resultobj; |
11256 | fail: | |
11257 | return NULL; | |
11258 | } | |
11259 | ||
11260 | ||
11261 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11262 | PyObject *resultobj; | |
11263 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11264 | bool result; | |
11265 | PyObject * obj0 = 0 ; | |
11266 | char *kwnames[] = { | |
11267 | (char *) "self", NULL | |
11268 | }; | |
11269 | ||
11270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11273 | { |
11274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11275 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
11276 | ||
11277 | wxPyEndAllowThreads(__tstate); | |
11278 | if (PyErr_Occurred()) SWIG_fail; | |
11279 | } | |
4f89f6a3 RD |
11280 | { |
11281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11282 | } | |
d14a1e28 RD |
11283 | return resultobj; |
11284 | fail: | |
11285 | return NULL; | |
11286 | } | |
11287 | ||
11288 | ||
11289 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11290 | PyObject *resultobj; | |
11291 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11292 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11293 | bool result; | |
11294 | PyObject * obj0 = 0 ; | |
994141e6 | 11295 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11296 | char *kwnames[] = { |
11297 | (char *) "self",(char *) "but", NULL | |
11298 | }; | |
11299 | ||
994141e6 | 11300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11303 | if (obj1) { |
15afbcd0 RD |
11304 | arg2 = (int) SWIG_AsInt(obj1); |
11305 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11306 | } |
d14a1e28 RD |
11307 | { |
11308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11309 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11310 | ||
11311 | wxPyEndAllowThreads(__tstate); | |
11312 | if (PyErr_Occurred()) SWIG_fail; | |
11313 | } | |
4f89f6a3 RD |
11314 | { |
11315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11316 | } | |
d14a1e28 RD |
11317 | return resultobj; |
11318 | fail: | |
11319 | return NULL; | |
11320 | } | |
11321 | ||
11322 | ||
11323 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11324 | PyObject *resultobj; | |
11325 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11326 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11327 | bool result; | |
11328 | PyObject * obj0 = 0 ; | |
994141e6 | 11329 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11330 | char *kwnames[] = { |
11331 | (char *) "self",(char *) "but", NULL | |
11332 | }; | |
11333 | ||
994141e6 | 11334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11337 | if (obj1) { |
15afbcd0 RD |
11338 | arg2 = (int) SWIG_AsInt(obj1); |
11339 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11340 | } |
d14a1e28 RD |
11341 | { |
11342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11343 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
11344 | ||
11345 | wxPyEndAllowThreads(__tstate); | |
11346 | if (PyErr_Occurred()) SWIG_fail; | |
11347 | } | |
4f89f6a3 RD |
11348 | { |
11349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11350 | } | |
d14a1e28 RD |
11351 | return resultobj; |
11352 | fail: | |
11353 | return NULL; | |
11354 | } | |
11355 | ||
11356 | ||
11357 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11358 | PyObject *resultobj; | |
11359 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11360 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11361 | bool result; | |
11362 | PyObject * obj0 = 0 ; | |
994141e6 | 11363 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11364 | char *kwnames[] = { |
11365 | (char *) "self",(char *) "but", NULL | |
11366 | }; | |
11367 | ||
994141e6 | 11368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11371 | if (obj1) { |
15afbcd0 RD |
11372 | arg2 = (int) SWIG_AsInt(obj1); |
11373 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11374 | } |
d14a1e28 RD |
11375 | { |
11376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11377 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
11378 | ||
11379 | wxPyEndAllowThreads(__tstate); | |
11380 | if (PyErr_Occurred()) SWIG_fail; | |
11381 | } | |
4f89f6a3 RD |
11382 | { |
11383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11384 | } | |
d14a1e28 RD |
11385 | return resultobj; |
11386 | fail: | |
11387 | return NULL; | |
11388 | } | |
11389 | ||
11390 | ||
11391 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
11392 | PyObject *obj; | |
11393 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11394 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
11395 | Py_INCREF(obj); | |
11396 | return Py_BuildValue((char *)""); | |
11397 | } | |
4d5c3d91 RD |
11398 | static PyObject *_wrap_new_Sound__SWIG_0(PyObject *self, PyObject *args) { |
11399 | PyObject *resultobj; | |
11400 | wxSound *result; | |
11401 | ||
11402 | if(!PyArg_ParseTuple(args,(char *)":new_Sound")) goto fail; | |
11403 | { | |
11404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11405 | result = (wxSound *)new wxSound(); | |
11406 | ||
11407 | wxPyEndAllowThreads(__tstate); | |
11408 | if (PyErr_Occurred()) SWIG_fail; | |
11409 | } | |
15afbcd0 | 11410 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); |
4d5c3d91 RD |
11411 | return resultobj; |
11412 | fail: | |
11413 | return NULL; | |
11414 | } | |
11415 | ||
11416 | ||
11417 | static PyObject *_wrap_new_Sound__SWIG_1(PyObject *self, PyObject *args) { | |
d14a1e28 RD |
11418 | PyObject *resultobj; |
11419 | wxString *arg1 = 0 ; | |
4d5c3d91 RD |
11420 | bool arg2 = (bool) false ; |
11421 | wxSound *result; | |
e811c8ce | 11422 | bool temp1 = False ; |
d14a1e28 RD |
11423 | PyObject * obj0 = 0 ; |
11424 | PyObject * obj1 = 0 ; | |
d14a1e28 | 11425 | |
4d5c3d91 | 11426 | if(!PyArg_ParseTuple(args,(char *)"O|O:new_Sound",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
11427 | { |
11428 | arg1 = wxString_in_helper(obj0); | |
11429 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 11430 | temp1 = True; |
d14a1e28 RD |
11431 | } |
11432 | if (obj1) { | |
15afbcd0 RD |
11433 | arg2 = (bool) SWIG_AsBool(obj1); |
11434 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11435 | } |
11436 | { | |
11437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 11438 | result = (wxSound *)new wxSound((wxString const &)*arg1,arg2); |
d14a1e28 RD |
11439 | |
11440 | wxPyEndAllowThreads(__tstate); | |
11441 | if (PyErr_Occurred()) SWIG_fail; | |
11442 | } | |
15afbcd0 | 11443 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
11444 | { |
11445 | if (temp1) | |
11446 | delete arg1; | |
11447 | } | |
11448 | return resultobj; | |
11449 | fail: | |
11450 | { | |
11451 | if (temp1) | |
11452 | delete arg1; | |
11453 | } | |
11454 | return NULL; | |
11455 | } | |
11456 | ||
11457 | ||
4d5c3d91 | 11458 | static PyObject *_wrap_new_Sound__SWIG_2(PyObject *self, PyObject *args) { |
d14a1e28 | 11459 | PyObject *resultobj; |
4d5c3d91 RD |
11460 | int arg1 ; |
11461 | wxByte *arg2 = (wxByte *) 0 ; | |
11462 | wxSound *result; | |
d14a1e28 | 11463 | PyObject * obj0 = 0 ; |
4d5c3d91 | 11464 | PyObject * obj1 = 0 ; |
d14a1e28 | 11465 | |
4d5c3d91 | 11466 | if(!PyArg_ParseTuple(args,(char *)"OO:new_Sound",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11467 | arg1 = (int) SWIG_AsInt(obj0); |
11468 | if (PyErr_Occurred()) SWIG_fail; | |
11469 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxByte, | |
11470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11471 | { |
11472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 11473 | result = (wxSound *)new wxSound(arg1,(wxByte const *)arg2); |
d14a1e28 RD |
11474 | |
11475 | wxPyEndAllowThreads(__tstate); | |
11476 | if (PyErr_Occurred()) SWIG_fail; | |
11477 | } | |
15afbcd0 | 11478 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
11479 | return resultobj; |
11480 | fail: | |
4d5c3d91 RD |
11481 | return NULL; |
11482 | } | |
11483 | ||
11484 | ||
11485 | static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args) { | |
11486 | int argc; | |
11487 | PyObject *argv[3]; | |
11488 | int ii; | |
11489 | ||
11490 | argc = PyObject_Length(args); | |
11491 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
11492 | argv[ii] = PyTuple_GetItem(args,ii); | |
d14a1e28 | 11493 | } |
4d5c3d91 RD |
11494 | if (argc == 0) { |
11495 | return _wrap_new_Sound__SWIG_0(self,args); | |
11496 | } | |
11497 | if ((argc >= 1) && (argc <= 2)) { | |
11498 | int _v; | |
11499 | { | |
11500 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
11501 | } | |
11502 | if (_v) { | |
11503 | if (argc <= 1) { | |
11504 | return _wrap_new_Sound__SWIG_1(self,args); | |
11505 | } | |
15afbcd0 | 11506 | _v = SWIG_CheckBool(argv[1]); |
4d5c3d91 RD |
11507 | if (_v) { |
11508 | return _wrap_new_Sound__SWIG_1(self,args); | |
11509 | } | |
11510 | } | |
11511 | } | |
11512 | if (argc == 2) { | |
11513 | int _v; | |
15afbcd0 | 11514 | _v = SWIG_CheckInt(argv[0]); |
4d5c3d91 RD |
11515 | if (_v) { |
11516 | { | |
11517 | void *ptr; | |
15afbcd0 | 11518 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxByte, 0) == -1) { |
4d5c3d91 RD |
11519 | _v = 0; |
11520 | PyErr_Clear(); | |
11521 | } else { | |
11522 | _v = 1; | |
11523 | } | |
11524 | } | |
11525 | if (_v) { | |
11526 | return _wrap_new_Sound__SWIG_2(self,args); | |
11527 | } | |
11528 | } | |
11529 | } | |
11530 | ||
11531 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Sound'"); | |
d14a1e28 RD |
11532 | return NULL; |
11533 | } | |
11534 | ||
11535 | ||
4d5c3d91 | 11536 | static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11537 | PyObject *resultobj; |
4d5c3d91 | 11538 | wxSound *arg1 = (wxSound *) 0 ; |
d14a1e28 RD |
11539 | PyObject * obj0 = 0 ; |
11540 | char *kwnames[] = { | |
11541 | (char *) "self", NULL | |
11542 | }; | |
11543 | ||
4d5c3d91 | 11544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
11545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11547 | { |
11548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11549 | delete arg1; | |
11550 | ||
11551 | wxPyEndAllowThreads(__tstate); | |
11552 | if (PyErr_Occurred()) SWIG_fail; | |
11553 | } | |
11554 | Py_INCREF(Py_None); resultobj = Py_None; | |
11555 | return resultobj; | |
11556 | fail: | |
11557 | return NULL; | |
11558 | } | |
11559 | ||
11560 | ||
4d5c3d91 | 11561 | static PyObject *_wrap_Sound_Create__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 | 11562 | PyObject *resultobj; |
4d5c3d91 RD |
11563 | wxSound *arg1 = (wxSound *) 0 ; |
11564 | wxString *arg2 = 0 ; | |
11565 | bool arg3 = (bool) false ; | |
d14a1e28 | 11566 | bool result; |
4d5c3d91 | 11567 | bool temp2 = False ; |
d14a1e28 | 11568 | PyObject * obj0 = 0 ; |
4d5c3d91 RD |
11569 | PyObject * obj1 = 0 ; |
11570 | PyObject * obj2 = 0 ; | |
d14a1e28 | 11571 | |
4d5c3d91 | 11572 | if(!PyArg_ParseTuple(args,(char *)"OO|O:Sound_Create",&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4d5c3d91 RD |
11575 | { |
11576 | arg2 = wxString_in_helper(obj1); | |
11577 | if (arg2 == NULL) SWIG_fail; | |
11578 | temp2 = True; | |
11579 | } | |
11580 | if (obj2) { | |
15afbcd0 RD |
11581 | arg3 = (bool) SWIG_AsBool(obj2); |
11582 | if (PyErr_Occurred()) SWIG_fail; | |
4d5c3d91 | 11583 | } |
d14a1e28 RD |
11584 | { |
11585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 11586 | result = (bool)(arg1)->Create((wxString const &)*arg2,arg3); |
d14a1e28 RD |
11587 | |
11588 | wxPyEndAllowThreads(__tstate); | |
11589 | if (PyErr_Occurred()) SWIG_fail; | |
11590 | } | |
4f89f6a3 RD |
11591 | { |
11592 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11593 | } | |
4d5c3d91 RD |
11594 | { |
11595 | if (temp2) | |
11596 | delete arg2; | |
11597 | } | |
d14a1e28 RD |
11598 | return resultobj; |
11599 | fail: | |
4d5c3d91 RD |
11600 | { |
11601 | if (temp2) | |
11602 | delete arg2; | |
11603 | } | |
d14a1e28 RD |
11604 | return NULL; |
11605 | } | |
11606 | ||
11607 | ||
4d5c3d91 | 11608 | static PyObject *_wrap_Sound_Create__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 | 11609 | PyObject *resultobj; |
4d5c3d91 RD |
11610 | wxSound *arg1 = (wxSound *) 0 ; |
11611 | int arg2 ; | |
11612 | wxByte *arg3 = (wxByte *) 0 ; | |
d14a1e28 RD |
11613 | bool result; |
11614 | PyObject * obj0 = 0 ; | |
11615 | PyObject * obj1 = 0 ; | |
11616 | PyObject * obj2 = 0 ; | |
4d5c3d91 RD |
11617 | |
11618 | if(!PyArg_ParseTuple(args,(char *)"OOO:Sound_Create",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
11619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11621 | arg2 = (int) SWIG_AsInt(obj1); | |
11622 | if (PyErr_Occurred()) SWIG_fail; | |
11623 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxByte, | |
11624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4d5c3d91 RD |
11625 | { |
11626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11627 | result = (bool)(arg1)->Create(arg2,(wxByte const *)arg3); | |
11628 | ||
11629 | wxPyEndAllowThreads(__tstate); | |
11630 | if (PyErr_Occurred()) SWIG_fail; | |
11631 | } | |
4f89f6a3 RD |
11632 | { |
11633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11634 | } | |
4d5c3d91 RD |
11635 | return resultobj; |
11636 | fail: | |
11637 | return NULL; | |
11638 | } | |
11639 | ||
11640 | ||
11641 | static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args) { | |
11642 | int argc; | |
11643 | PyObject *argv[4]; | |
11644 | int ii; | |
11645 | ||
11646 | argc = PyObject_Length(args); | |
11647 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
11648 | argv[ii] = PyTuple_GetItem(args,ii); | |
11649 | } | |
11650 | if ((argc >= 2) && (argc <= 3)) { | |
11651 | int _v; | |
11652 | { | |
11653 | void *ptr; | |
15afbcd0 | 11654 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) { |
4d5c3d91 RD |
11655 | _v = 0; |
11656 | PyErr_Clear(); | |
11657 | } else { | |
11658 | _v = 1; | |
11659 | } | |
11660 | } | |
11661 | if (_v) { | |
11662 | { | |
11663 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
11664 | } | |
11665 | if (_v) { | |
11666 | if (argc <= 2) { | |
11667 | return _wrap_Sound_Create__SWIG_0(self,args); | |
11668 | } | |
15afbcd0 | 11669 | _v = SWIG_CheckBool(argv[2]); |
4d5c3d91 RD |
11670 | if (_v) { |
11671 | return _wrap_Sound_Create__SWIG_0(self,args); | |
11672 | } | |
11673 | } | |
11674 | } | |
11675 | } | |
11676 | if (argc == 3) { | |
11677 | int _v; | |
11678 | { | |
11679 | void *ptr; | |
15afbcd0 | 11680 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) { |
4d5c3d91 RD |
11681 | _v = 0; |
11682 | PyErr_Clear(); | |
11683 | } else { | |
11684 | _v = 1; | |
11685 | } | |
11686 | } | |
11687 | if (_v) { | |
15afbcd0 | 11688 | _v = SWIG_CheckInt(argv[1]); |
4d5c3d91 RD |
11689 | if (_v) { |
11690 | { | |
11691 | void *ptr; | |
15afbcd0 | 11692 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxByte, 0) == -1) { |
4d5c3d91 RD |
11693 | _v = 0; |
11694 | PyErr_Clear(); | |
11695 | } else { | |
11696 | _v = 1; | |
11697 | } | |
11698 | } | |
11699 | if (_v) { | |
11700 | return _wrap_Sound_Create__SWIG_1(self,args); | |
11701 | } | |
11702 | } | |
11703 | } | |
11704 | } | |
11705 | ||
11706 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Sound_Create'"); | |
11707 | return NULL; | |
11708 | } | |
11709 | ||
11710 | ||
11711 | static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11712 | PyObject *resultobj; | |
11713 | wxSound *arg1 = (wxSound *) 0 ; | |
11714 | bool result; | |
11715 | PyObject * obj0 = 0 ; | |
d14a1e28 | 11716 | char *kwnames[] = { |
4d5c3d91 | 11717 | (char *) "self", NULL |
d14a1e28 RD |
11718 | }; |
11719 | ||
4d5c3d91 | 11720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
11721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4d5c3d91 RD |
11723 | { |
11724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11725 | result = (bool)(arg1)->IsOk(); | |
11726 | ||
11727 | wxPyEndAllowThreads(__tstate); | |
11728 | if (PyErr_Occurred()) SWIG_fail; | |
11729 | } | |
4f89f6a3 RD |
11730 | { |
11731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11732 | } | |
4d5c3d91 RD |
11733 | return resultobj; |
11734 | fail: | |
11735 | return NULL; | |
11736 | } | |
11737 | ||
11738 | ||
11739 | static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args) { | |
11740 | PyObject *resultobj; | |
11741 | wxSound *arg1 = (wxSound *) 0 ; | |
11742 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11743 | bool result; | |
11744 | PyObject * obj0 = 0 ; | |
11745 | PyObject * obj1 = 0 ; | |
11746 | ||
11747 | if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_Play",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11750 | if (obj1) { |
15afbcd0 RD |
11751 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); |
11752 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11753 | } |
4d5c3d91 RD |
11754 | { |
11755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11756 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
11757 | ||
11758 | wxPyEndAllowThreads(__tstate); | |
11759 | if (PyErr_Occurred()) SWIG_fail; | |
11760 | } | |
4f89f6a3 RD |
11761 | { |
11762 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11763 | } | |
4d5c3d91 RD |
11764 | return resultobj; |
11765 | fail: | |
11766 | return NULL; | |
11767 | } | |
11768 | ||
11769 | ||
11770 | static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args) { | |
11771 | PyObject *resultobj; | |
11772 | wxString *arg1 = 0 ; | |
11773 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11774 | bool result; | |
11775 | bool temp1 = False ; | |
11776 | PyObject * obj0 = 0 ; | |
11777 | PyObject * obj1 = 0 ; | |
11778 | ||
11779 | if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_PlaySound",&obj0,&obj1)) goto fail; | |
11780 | { | |
11781 | arg1 = wxString_in_helper(obj0); | |
11782 | if (arg1 == NULL) SWIG_fail; | |
11783 | temp1 = True; | |
11784 | } | |
11785 | if (obj1) { | |
15afbcd0 RD |
11786 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); |
11787 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11788 | } |
11789 | { | |
11790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 11791 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); |
d14a1e28 RD |
11792 | |
11793 | wxPyEndAllowThreads(__tstate); | |
11794 | if (PyErr_Occurred()) SWIG_fail; | |
11795 | } | |
4f89f6a3 RD |
11796 | { |
11797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11798 | } | |
4d5c3d91 RD |
11799 | { |
11800 | if (temp1) | |
11801 | delete arg1; | |
11802 | } | |
d14a1e28 RD |
11803 | return resultobj; |
11804 | fail: | |
4d5c3d91 RD |
11805 | { |
11806 | if (temp1) | |
11807 | delete arg1; | |
11808 | } | |
d14a1e28 RD |
11809 | return NULL; |
11810 | } | |
11811 | ||
11812 | ||
4d5c3d91 RD |
11813 | static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { |
11814 | PyObject *resultobj; | |
11815 | char *kwnames[] = { | |
11816 | NULL | |
11817 | }; | |
11818 | ||
11819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
11820 | { | |
11821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11822 | wxSound::Stop(); | |
11823 | ||
11824 | wxPyEndAllowThreads(__tstate); | |
11825 | if (PyErr_Occurred()) SWIG_fail; | |
11826 | } | |
11827 | Py_INCREF(Py_None); resultobj = Py_None; | |
11828 | return resultobj; | |
11829 | fail: | |
11830 | return NULL; | |
11831 | } | |
11832 | ||
11833 | ||
11834 | static PyObject * Sound_swigregister(PyObject *self, PyObject *args) { | |
d14a1e28 RD |
11835 | PyObject *obj; |
11836 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4d5c3d91 | 11837 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); |
d14a1e28 RD |
11838 | Py_INCREF(obj); |
11839 | return Py_BuildValue((char *)""); | |
11840 | } | |
11841 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11842 | PyObject *resultobj; | |
11843 | wxString *arg1 = 0 ; | |
11844 | wxString *arg2 = 0 ; | |
11845 | wxString *arg3 = 0 ; | |
11846 | wxString *arg4 = 0 ; | |
11847 | wxFileTypeInfo *result; | |
e811c8ce RD |
11848 | bool temp1 = False ; |
11849 | bool temp2 = False ; | |
11850 | bool temp3 = False ; | |
11851 | bool temp4 = False ; | |
d14a1e28 RD |
11852 | PyObject * obj0 = 0 ; |
11853 | PyObject * obj1 = 0 ; | |
11854 | PyObject * obj2 = 0 ; | |
11855 | PyObject * obj3 = 0 ; | |
11856 | char *kwnames[] = { | |
11857 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
11858 | }; | |
11859 | ||
11860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11861 | { | |
11862 | arg1 = wxString_in_helper(obj0); | |
11863 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 11864 | temp1 = True; |
d14a1e28 RD |
11865 | } |
11866 | { | |
11867 | arg2 = wxString_in_helper(obj1); | |
11868 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11869 | temp2 = True; |
d14a1e28 RD |
11870 | } |
11871 | { | |
11872 | arg3 = wxString_in_helper(obj2); | |
11873 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11874 | temp3 = True; |
d14a1e28 RD |
11875 | } |
11876 | { | |
11877 | arg4 = wxString_in_helper(obj3); | |
11878 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 11879 | temp4 = True; |
d14a1e28 RD |
11880 | } |
11881 | { | |
11882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11883 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
11884 | ||
11885 | wxPyEndAllowThreads(__tstate); | |
11886 | if (PyErr_Occurred()) SWIG_fail; | |
11887 | } | |
15afbcd0 | 11888 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 RD |
11889 | { |
11890 | if (temp1) | |
11891 | delete arg1; | |
11892 | } | |
11893 | { | |
11894 | if (temp2) | |
11895 | delete arg2; | |
11896 | } | |
11897 | { | |
11898 | if (temp3) | |
11899 | delete arg3; | |
11900 | } | |
11901 | { | |
11902 | if (temp4) | |
11903 | delete arg4; | |
11904 | } | |
11905 | return resultobj; | |
11906 | fail: | |
11907 | { | |
11908 | if (temp1) | |
11909 | delete arg1; | |
11910 | } | |
11911 | { | |
11912 | if (temp2) | |
11913 | delete arg2; | |
11914 | } | |
11915 | { | |
11916 | if (temp3) | |
11917 | delete arg3; | |
11918 | } | |
11919 | { | |
11920 | if (temp4) | |
11921 | delete arg4; | |
11922 | } | |
11923 | return NULL; | |
11924 | } | |
11925 | ||
11926 | ||
11927 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11928 | PyObject *resultobj; | |
11929 | wxArrayString *arg1 = 0 ; | |
11930 | wxFileTypeInfo *result; | |
3adfb63b | 11931 | bool temp1 = False ; |
d14a1e28 RD |
11932 | PyObject * obj0 = 0 ; |
11933 | char *kwnames[] = { | |
11934 | (char *) "sArray", NULL | |
11935 | }; | |
11936 | ||
11937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
11938 | { | |
11939 | if (! PySequence_Check(obj0)) { | |
11940 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11941 | SWIG_fail; | |
11942 | } | |
11943 | arg1 = new wxArrayString; | |
3adfb63b | 11944 | temp1 = True; |
d14a1e28 RD |
11945 | int i, len=PySequence_Length(obj0); |
11946 | for (i=0; i<len; i++) { | |
11947 | PyObject* item = PySequence_GetItem(obj0, i); | |
11948 | #if wxUSE_UNICODE | |
11949 | PyObject* str = PyObject_Unicode(item); | |
11950 | #else | |
11951 | PyObject* str = PyObject_Str(item); | |
11952 | #endif | |
74a57fcd | 11953 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11954 | arg1->Add(Py2wxString(str)); |
11955 | Py_DECREF(item); | |
11956 | Py_DECREF(str); | |
11957 | } | |
11958 | } | |
11959 | { | |
11960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11961 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
11962 | ||
11963 | wxPyEndAllowThreads(__tstate); | |
11964 | if (PyErr_Occurred()) SWIG_fail; | |
11965 | } | |
15afbcd0 | 11966 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 | 11967 | { |
3adfb63b | 11968 | if (temp1) delete arg1; |
d14a1e28 RD |
11969 | } |
11970 | return resultobj; | |
11971 | fail: | |
11972 | { | |
3adfb63b | 11973 | if (temp1) delete arg1; |
d14a1e28 RD |
11974 | } |
11975 | return NULL; | |
11976 | } | |
11977 | ||
11978 | ||
11979 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11980 | PyObject *resultobj; | |
11981 | wxFileTypeInfo *result; | |
11982 | char *kwnames[] = { | |
11983 | NULL | |
11984 | }; | |
11985 | ||
11986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
11987 | { | |
11988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11989 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
11990 | ||
11991 | wxPyEndAllowThreads(__tstate); | |
11992 | if (PyErr_Occurred()) SWIG_fail; | |
11993 | } | |
15afbcd0 | 11994 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 RD |
11995 | return resultobj; |
11996 | fail: | |
11997 | return NULL; | |
11998 | } | |
11999 | ||
12000 | ||
12001 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12002 | PyObject *resultobj; | |
12003 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12004 | bool result; | |
12005 | PyObject * obj0 = 0 ; | |
12006 | char *kwnames[] = { | |
12007 | (char *) "self", NULL | |
12008 | }; | |
12009 | ||
12010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12013 | { |
12014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12015 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
12016 | ||
12017 | wxPyEndAllowThreads(__tstate); | |
12018 | if (PyErr_Occurred()) SWIG_fail; | |
12019 | } | |
4f89f6a3 RD |
12020 | { |
12021 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12022 | } | |
d14a1e28 RD |
12023 | return resultobj; |
12024 | fail: | |
12025 | return NULL; | |
12026 | } | |
12027 | ||
12028 | ||
12029 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12030 | PyObject *resultobj; | |
12031 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12032 | wxString *arg2 = 0 ; | |
12033 | int arg3 = (int) 0 ; | |
e811c8ce | 12034 | bool temp2 = False ; |
d14a1e28 RD |
12035 | PyObject * obj0 = 0 ; |
12036 | PyObject * obj1 = 0 ; | |
994141e6 | 12037 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12038 | char *kwnames[] = { |
12039 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
12040 | }; | |
12041 | ||
994141e6 | 12042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12045 | { |
12046 | arg2 = wxString_in_helper(obj1); | |
12047 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12048 | temp2 = True; |
d14a1e28 | 12049 | } |
994141e6 | 12050 | if (obj2) { |
15afbcd0 RD |
12051 | arg3 = (int) SWIG_AsInt(obj2); |
12052 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12053 | } |
d14a1e28 RD |
12054 | { |
12055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12056 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
12057 | ||
12058 | wxPyEndAllowThreads(__tstate); | |
12059 | if (PyErr_Occurred()) SWIG_fail; | |
12060 | } | |
12061 | Py_INCREF(Py_None); resultobj = Py_None; | |
12062 | { | |
12063 | if (temp2) | |
12064 | delete arg2; | |
12065 | } | |
12066 | return resultobj; | |
12067 | fail: | |
12068 | { | |
12069 | if (temp2) | |
12070 | delete arg2; | |
12071 | } | |
12072 | return NULL; | |
12073 | } | |
12074 | ||
12075 | ||
12076 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12077 | PyObject *resultobj; | |
12078 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12079 | wxString *arg2 = 0 ; | |
e811c8ce | 12080 | bool temp2 = False ; |
d14a1e28 RD |
12081 | PyObject * obj0 = 0 ; |
12082 | PyObject * obj1 = 0 ; | |
12083 | char *kwnames[] = { | |
12084 | (char *) "self",(char *) "shortDesc", NULL | |
12085 | }; | |
12086 | ||
12087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12090 | { |
12091 | arg2 = wxString_in_helper(obj1); | |
12092 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12093 | temp2 = True; |
d14a1e28 RD |
12094 | } |
12095 | { | |
12096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12097 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
12098 | ||
12099 | wxPyEndAllowThreads(__tstate); | |
12100 | if (PyErr_Occurred()) SWIG_fail; | |
12101 | } | |
12102 | Py_INCREF(Py_None); resultobj = Py_None; | |
12103 | { | |
12104 | if (temp2) | |
12105 | delete arg2; | |
12106 | } | |
12107 | return resultobj; | |
12108 | fail: | |
12109 | { | |
12110 | if (temp2) | |
12111 | delete arg2; | |
12112 | } | |
12113 | return NULL; | |
12114 | } | |
12115 | ||
12116 | ||
12117 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12118 | PyObject *resultobj; | |
12119 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12120 | wxString *result; | |
12121 | PyObject * obj0 = 0 ; | |
12122 | char *kwnames[] = { | |
12123 | (char *) "self", NULL | |
12124 | }; | |
12125 | ||
12126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12129 | { |
12130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12131 | { | |
12132 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
12133 | result = (wxString *) &_result_ref; | |
12134 | } | |
12135 | ||
12136 | wxPyEndAllowThreads(__tstate); | |
12137 | if (PyErr_Occurred()) SWIG_fail; | |
12138 | } | |
cc6dd355 RD |
12139 | { |
12140 | #if wxUSE_UNICODE | |
12141 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12142 | #else | |
12143 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12144 | #endif | |
12145 | } | |
d14a1e28 RD |
12146 | return resultobj; |
12147 | fail: | |
12148 | return NULL; | |
12149 | } | |
12150 | ||
12151 | ||
12152 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12153 | PyObject *resultobj; | |
12154 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12155 | wxString *result; | |
12156 | PyObject * obj0 = 0 ; | |
12157 | char *kwnames[] = { | |
12158 | (char *) "self", NULL | |
12159 | }; | |
12160 | ||
12161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12164 | { |
12165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12166 | { | |
12167 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
12168 | result = (wxString *) &_result_ref; | |
12169 | } | |
12170 | ||
12171 | wxPyEndAllowThreads(__tstate); | |
12172 | if (PyErr_Occurred()) SWIG_fail; | |
12173 | } | |
cc6dd355 RD |
12174 | { |
12175 | #if wxUSE_UNICODE | |
12176 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12177 | #else | |
12178 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12179 | #endif | |
12180 | } | |
d14a1e28 RD |
12181 | return resultobj; |
12182 | fail: | |
12183 | return NULL; | |
12184 | } | |
12185 | ||
12186 | ||
12187 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12188 | PyObject *resultobj; | |
12189 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12190 | wxString *result; | |
12191 | PyObject * obj0 = 0 ; | |
12192 | char *kwnames[] = { | |
12193 | (char *) "self", NULL | |
12194 | }; | |
12195 | ||
12196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12199 | { |
12200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12201 | { | |
12202 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
12203 | result = (wxString *) &_result_ref; | |
12204 | } | |
12205 | ||
12206 | wxPyEndAllowThreads(__tstate); | |
12207 | if (PyErr_Occurred()) SWIG_fail; | |
12208 | } | |
cc6dd355 RD |
12209 | { |
12210 | #if wxUSE_UNICODE | |
12211 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12212 | #else | |
12213 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12214 | #endif | |
12215 | } | |
d14a1e28 RD |
12216 | return resultobj; |
12217 | fail: | |
12218 | return NULL; | |
12219 | } | |
12220 | ||
12221 | ||
12222 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12223 | PyObject *resultobj; | |
12224 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12225 | wxString *result; | |
12226 | PyObject * obj0 = 0 ; | |
12227 | char *kwnames[] = { | |
12228 | (char *) "self", NULL | |
12229 | }; | |
12230 | ||
12231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12234 | { |
12235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12236 | { | |
12237 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
12238 | result = (wxString *) &_result_ref; | |
12239 | } | |
12240 | ||
12241 | wxPyEndAllowThreads(__tstate); | |
12242 | if (PyErr_Occurred()) SWIG_fail; | |
12243 | } | |
cc6dd355 RD |
12244 | { |
12245 | #if wxUSE_UNICODE | |
12246 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12247 | #else | |
12248 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12249 | #endif | |
12250 | } | |
d14a1e28 RD |
12251 | return resultobj; |
12252 | fail: | |
12253 | return NULL; | |
12254 | } | |
12255 | ||
12256 | ||
12257 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12258 | PyObject *resultobj; | |
12259 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12260 | wxString *result; | |
12261 | PyObject * obj0 = 0 ; | |
12262 | char *kwnames[] = { | |
12263 | (char *) "self", NULL | |
12264 | }; | |
12265 | ||
12266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12269 | { |
12270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12271 | { | |
12272 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
12273 | result = (wxString *) &_result_ref; | |
12274 | } | |
12275 | ||
12276 | wxPyEndAllowThreads(__tstate); | |
12277 | if (PyErr_Occurred()) SWIG_fail; | |
12278 | } | |
cc6dd355 RD |
12279 | { |
12280 | #if wxUSE_UNICODE | |
12281 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12282 | #else | |
12283 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12284 | #endif | |
12285 | } | |
d14a1e28 RD |
12286 | return resultobj; |
12287 | fail: | |
12288 | return NULL; | |
12289 | } | |
12290 | ||
12291 | ||
12292 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12293 | PyObject *resultobj; | |
12294 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12295 | wxArrayString *result; | |
12296 | PyObject * obj0 = 0 ; | |
12297 | char *kwnames[] = { | |
12298 | (char *) "self", NULL | |
12299 | }; | |
12300 | ||
12301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12304 | { |
12305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12306 | { | |
12307 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
12308 | result = (wxArrayString *) &_result_ref; | |
12309 | } | |
12310 | ||
12311 | wxPyEndAllowThreads(__tstate); | |
12312 | if (PyErr_Occurred()) SWIG_fail; | |
12313 | } | |
12314 | { | |
12315 | resultobj = wxArrayString2PyList_helper(*result); | |
12316 | } | |
12317 | return resultobj; | |
12318 | fail: | |
12319 | return NULL; | |
12320 | } | |
12321 | ||
12322 | ||
12323 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12324 | PyObject *resultobj; | |
12325 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12326 | int result; | |
12327 | PyObject * obj0 = 0 ; | |
12328 | char *kwnames[] = { | |
12329 | (char *) "self", NULL | |
12330 | }; | |
12331 | ||
12332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12335 | { |
12336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12337 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
12338 | ||
12339 | wxPyEndAllowThreads(__tstate); | |
12340 | if (PyErr_Occurred()) SWIG_fail; | |
12341 | } | |
15afbcd0 | 12342 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12343 | return resultobj; |
12344 | fail: | |
12345 | return NULL; | |
12346 | } | |
12347 | ||
12348 | ||
12349 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12350 | PyObject *resultobj; | |
12351 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12352 | wxString *result; | |
12353 | PyObject * obj0 = 0 ; | |
12354 | char *kwnames[] = { | |
12355 | (char *) "self", NULL | |
12356 | }; | |
12357 | ||
12358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12361 | { |
12362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12363 | { | |
12364 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
12365 | result = (wxString *) &_result_ref; | |
12366 | } | |
12367 | ||
12368 | wxPyEndAllowThreads(__tstate); | |
12369 | if (PyErr_Occurred()) SWIG_fail; | |
12370 | } | |
cc6dd355 RD |
12371 | { |
12372 | #if wxUSE_UNICODE | |
12373 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12374 | #else | |
12375 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12376 | #endif | |
12377 | } | |
d14a1e28 RD |
12378 | return resultobj; |
12379 | fail: | |
12380 | return NULL; | |
12381 | } | |
12382 | ||
12383 | ||
12384 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12385 | PyObject *resultobj; | |
12386 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12387 | int result; | |
12388 | PyObject * obj0 = 0 ; | |
12389 | char *kwnames[] = { | |
12390 | (char *) "self", NULL | |
12391 | }; | |
12392 | ||
12393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12396 | { |
12397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12398 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
12399 | ||
12400 | wxPyEndAllowThreads(__tstate); | |
12401 | if (PyErr_Occurred()) SWIG_fail; | |
12402 | } | |
15afbcd0 | 12403 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12404 | return resultobj; |
12405 | fail: | |
12406 | return NULL; | |
12407 | } | |
12408 | ||
12409 | ||
12410 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
12411 | PyObject *obj; | |
12412 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12413 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
12414 | Py_INCREF(obj); | |
12415 | return Py_BuildValue((char *)""); | |
12416 | } | |
12417 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12418 | PyObject *resultobj; | |
12419 | wxFileTypeInfo *arg1 = 0 ; | |
12420 | wxFileType *result; | |
12421 | PyObject * obj0 = 0 ; | |
12422 | char *kwnames[] = { | |
12423 | (char *) "ftInfo", NULL | |
12424 | }; | |
12425 | ||
12426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12428 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12429 | SWIG_fail; | |
d14a1e28 | 12430 | if (arg1 == NULL) { |
15afbcd0 RD |
12431 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12432 | SWIG_fail; | |
d14a1e28 RD |
12433 | } |
12434 | { | |
12435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12436 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
12437 | ||
12438 | wxPyEndAllowThreads(__tstate); | |
12439 | if (PyErr_Occurred()) SWIG_fail; | |
12440 | } | |
15afbcd0 | 12441 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
12442 | return resultobj; |
12443 | fail: | |
12444 | return NULL; | |
12445 | } | |
12446 | ||
12447 | ||
12448 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12449 | PyObject *resultobj; | |
12450 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12451 | PyObject * obj0 = 0 ; | |
12452 | char *kwnames[] = { | |
12453 | (char *) "self", NULL | |
12454 | }; | |
12455 | ||
12456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12459 | { |
12460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12461 | delete arg1; | |
12462 | ||
12463 | wxPyEndAllowThreads(__tstate); | |
12464 | if (PyErr_Occurred()) SWIG_fail; | |
12465 | } | |
12466 | Py_INCREF(Py_None); resultobj = Py_None; | |
12467 | return resultobj; | |
12468 | fail: | |
12469 | return NULL; | |
12470 | } | |
12471 | ||
12472 | ||
12473 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12474 | PyObject *resultobj; | |
12475 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12476 | PyObject *result; | |
12477 | PyObject * obj0 = 0 ; | |
12478 | char *kwnames[] = { | |
12479 | (char *) "self", NULL | |
12480 | }; | |
12481 | ||
12482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12485 | { |
12486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12487 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
12488 | ||
12489 | wxPyEndAllowThreads(__tstate); | |
12490 | if (PyErr_Occurred()) SWIG_fail; | |
12491 | } | |
12492 | resultobj = result; | |
12493 | return resultobj; | |
12494 | fail: | |
12495 | return NULL; | |
12496 | } | |
12497 | ||
12498 | ||
12499 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12500 | PyObject *resultobj; | |
12501 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12502 | PyObject *result; | |
12503 | PyObject * obj0 = 0 ; | |
12504 | char *kwnames[] = { | |
12505 | (char *) "self", NULL | |
12506 | }; | |
12507 | ||
12508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12511 | { |
12512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12513 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
12514 | ||
12515 | wxPyEndAllowThreads(__tstate); | |
12516 | if (PyErr_Occurred()) SWIG_fail; | |
12517 | } | |
12518 | resultobj = result; | |
12519 | return resultobj; | |
12520 | fail: | |
12521 | return NULL; | |
12522 | } | |
12523 | ||
12524 | ||
12525 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12526 | PyObject *resultobj; | |
12527 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12528 | PyObject *result; | |
12529 | PyObject * obj0 = 0 ; | |
12530 | char *kwnames[] = { | |
12531 | (char *) "self", NULL | |
12532 | }; | |
12533 | ||
12534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12537 | { |
12538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12539 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
12540 | ||
12541 | wxPyEndAllowThreads(__tstate); | |
12542 | if (PyErr_Occurred()) SWIG_fail; | |
12543 | } | |
12544 | resultobj = result; | |
12545 | return resultobj; | |
12546 | fail: | |
12547 | return NULL; | |
12548 | } | |
12549 | ||
12550 | ||
12551 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12552 | PyObject *resultobj; | |
12553 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12554 | wxIcon *result; | |
12555 | PyObject * obj0 = 0 ; | |
12556 | char *kwnames[] = { | |
12557 | (char *) "self", NULL | |
12558 | }; | |
12559 | ||
12560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12563 | { |
12564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12565 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
12566 | ||
12567 | wxPyEndAllowThreads(__tstate); | |
12568 | if (PyErr_Occurred()) SWIG_fail; | |
12569 | } | |
15afbcd0 | 12570 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
12571 | return resultobj; |
12572 | fail: | |
12573 | return NULL; | |
12574 | } | |
12575 | ||
12576 | ||
12577 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12578 | PyObject *resultobj; | |
12579 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12580 | PyObject *result; | |
12581 | PyObject * obj0 = 0 ; | |
12582 | char *kwnames[] = { | |
12583 | (char *) "self", NULL | |
12584 | }; | |
12585 | ||
12586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12589 | { |
12590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12591 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
12592 | ||
12593 | wxPyEndAllowThreads(__tstate); | |
12594 | if (PyErr_Occurred()) SWIG_fail; | |
12595 | } | |
12596 | resultobj = result; | |
12597 | return resultobj; | |
12598 | fail: | |
12599 | return NULL; | |
12600 | } | |
12601 | ||
12602 | ||
12603 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12604 | PyObject *resultobj; | |
12605 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12606 | PyObject *result; | |
12607 | PyObject * obj0 = 0 ; | |
12608 | char *kwnames[] = { | |
12609 | (char *) "self", NULL | |
12610 | }; | |
12611 | ||
12612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12615 | { |
12616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12617 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
12618 | ||
12619 | wxPyEndAllowThreads(__tstate); | |
12620 | if (PyErr_Occurred()) SWIG_fail; | |
12621 | } | |
12622 | resultobj = result; | |
12623 | return resultobj; | |
12624 | fail: | |
12625 | return NULL; | |
12626 | } | |
12627 | ||
12628 | ||
12629 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12630 | PyObject *resultobj; | |
12631 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12632 | wxString *arg2 = 0 ; | |
12633 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12634 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12635 | PyObject *result; | |
e811c8ce RD |
12636 | bool temp2 = False ; |
12637 | bool temp3 = False ; | |
d14a1e28 RD |
12638 | PyObject * obj0 = 0 ; |
12639 | PyObject * obj1 = 0 ; | |
12640 | PyObject * obj2 = 0 ; | |
12641 | char *kwnames[] = { | |
12642 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12643 | }; | |
12644 | ||
12645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12648 | { |
12649 | arg2 = wxString_in_helper(obj1); | |
12650 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12651 | temp2 = True; |
d14a1e28 RD |
12652 | } |
12653 | if (obj2) { | |
12654 | { | |
12655 | arg3 = wxString_in_helper(obj2); | |
12656 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12657 | temp3 = True; |
d14a1e28 RD |
12658 | } |
12659 | } | |
12660 | { | |
12661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12662 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12663 | ||
12664 | wxPyEndAllowThreads(__tstate); | |
12665 | if (PyErr_Occurred()) SWIG_fail; | |
12666 | } | |
12667 | resultobj = result; | |
12668 | { | |
12669 | if (temp2) | |
12670 | delete arg2; | |
12671 | } | |
12672 | { | |
12673 | if (temp3) | |
12674 | delete arg3; | |
12675 | } | |
12676 | return resultobj; | |
12677 | fail: | |
12678 | { | |
12679 | if (temp2) | |
12680 | delete arg2; | |
12681 | } | |
12682 | { | |
12683 | if (temp3) | |
12684 | delete arg3; | |
12685 | } | |
12686 | return NULL; | |
12687 | } | |
12688 | ||
12689 | ||
12690 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12691 | PyObject *resultobj; | |
12692 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12693 | wxString *arg2 = 0 ; | |
12694 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12695 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12696 | PyObject *result; | |
e811c8ce RD |
12697 | bool temp2 = False ; |
12698 | bool temp3 = False ; | |
d14a1e28 RD |
12699 | PyObject * obj0 = 0 ; |
12700 | PyObject * obj1 = 0 ; | |
12701 | PyObject * obj2 = 0 ; | |
12702 | char *kwnames[] = { | |
12703 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12704 | }; | |
12705 | ||
12706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12709 | { |
12710 | arg2 = wxString_in_helper(obj1); | |
12711 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12712 | temp2 = True; |
d14a1e28 RD |
12713 | } |
12714 | if (obj2) { | |
12715 | { | |
12716 | arg3 = wxString_in_helper(obj2); | |
12717 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12718 | temp3 = True; |
d14a1e28 RD |
12719 | } |
12720 | } | |
12721 | { | |
12722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12723 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12724 | ||
12725 | wxPyEndAllowThreads(__tstate); | |
12726 | if (PyErr_Occurred()) SWIG_fail; | |
12727 | } | |
12728 | resultobj = result; | |
12729 | { | |
12730 | if (temp2) | |
12731 | delete arg2; | |
12732 | } | |
12733 | { | |
12734 | if (temp3) | |
12735 | delete arg3; | |
12736 | } | |
12737 | return resultobj; | |
12738 | fail: | |
12739 | { | |
12740 | if (temp2) | |
12741 | delete arg2; | |
12742 | } | |
12743 | { | |
12744 | if (temp3) | |
12745 | delete arg3; | |
12746 | } | |
12747 | return NULL; | |
12748 | } | |
12749 | ||
12750 | ||
12751 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12752 | PyObject *resultobj; | |
12753 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12754 | wxString *arg2 = 0 ; | |
12755 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12756 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12757 | PyObject *result; | |
e811c8ce RD |
12758 | bool temp2 = False ; |
12759 | bool temp3 = False ; | |
d14a1e28 RD |
12760 | PyObject * obj0 = 0 ; |
12761 | PyObject * obj1 = 0 ; | |
12762 | PyObject * obj2 = 0 ; | |
12763 | char *kwnames[] = { | |
12764 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12765 | }; | |
12766 | ||
12767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12770 | { |
12771 | arg2 = wxString_in_helper(obj1); | |
12772 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12773 | temp2 = True; |
d14a1e28 RD |
12774 | } |
12775 | if (obj2) { | |
12776 | { | |
12777 | arg3 = wxString_in_helper(obj2); | |
12778 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12779 | temp3 = True; |
d14a1e28 RD |
12780 | } |
12781 | } | |
12782 | { | |
12783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12784 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12785 | ||
12786 | wxPyEndAllowThreads(__tstate); | |
12787 | if (PyErr_Occurred()) SWIG_fail; | |
12788 | } | |
12789 | resultobj = result; | |
12790 | { | |
12791 | if (temp2) | |
12792 | delete arg2; | |
12793 | } | |
12794 | { | |
12795 | if (temp3) | |
12796 | delete arg3; | |
12797 | } | |
12798 | return resultobj; | |
12799 | fail: | |
12800 | { | |
12801 | if (temp2) | |
12802 | delete arg2; | |
12803 | } | |
12804 | { | |
12805 | if (temp3) | |
12806 | delete arg3; | |
12807 | } | |
12808 | return NULL; | |
12809 | } | |
12810 | ||
12811 | ||
12812 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12813 | PyObject *resultobj; | |
12814 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12815 | wxString *arg2 = 0 ; | |
12816 | wxString *arg3 = 0 ; | |
e811c8ce | 12817 | bool arg4 = (bool) True ; |
d14a1e28 | 12818 | bool result; |
e811c8ce RD |
12819 | bool temp2 = False ; |
12820 | bool temp3 = False ; | |
d14a1e28 RD |
12821 | PyObject * obj0 = 0 ; |
12822 | PyObject * obj1 = 0 ; | |
12823 | PyObject * obj2 = 0 ; | |
12824 | PyObject * obj3 = 0 ; | |
12825 | char *kwnames[] = { | |
12826 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
12827 | }; | |
12828 | ||
12829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
12830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12832 | { |
12833 | arg2 = wxString_in_helper(obj1); | |
12834 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12835 | temp2 = True; |
d14a1e28 RD |
12836 | } |
12837 | { | |
12838 | arg3 = wxString_in_helper(obj2); | |
12839 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12840 | temp3 = True; |
d14a1e28 RD |
12841 | } |
12842 | if (obj3) { | |
15afbcd0 RD |
12843 | arg4 = (bool) SWIG_AsBool(obj3); |
12844 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12845 | } |
12846 | { | |
12847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12848 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
12849 | ||
12850 | wxPyEndAllowThreads(__tstate); | |
12851 | if (PyErr_Occurred()) SWIG_fail; | |
12852 | } | |
4f89f6a3 RD |
12853 | { |
12854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12855 | } | |
d14a1e28 RD |
12856 | { |
12857 | if (temp2) | |
12858 | delete arg2; | |
12859 | } | |
12860 | { | |
12861 | if (temp3) | |
12862 | delete arg3; | |
12863 | } | |
12864 | return resultobj; | |
12865 | fail: | |
12866 | { | |
12867 | if (temp2) | |
12868 | delete arg2; | |
12869 | } | |
12870 | { | |
12871 | if (temp3) | |
12872 | delete arg3; | |
12873 | } | |
12874 | return NULL; | |
12875 | } | |
12876 | ||
12877 | ||
12878 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12879 | PyObject *resultobj; | |
12880 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12881 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12882 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
12883 | int arg3 = (int) 0 ; | |
12884 | bool result; | |
e811c8ce | 12885 | bool temp2 = False ; |
d14a1e28 RD |
12886 | PyObject * obj0 = 0 ; |
12887 | PyObject * obj1 = 0 ; | |
994141e6 | 12888 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12889 | char *kwnames[] = { |
12890 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
12891 | }; | |
12892 | ||
994141e6 | 12893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12896 | if (obj1) { |
12897 | { | |
12898 | arg2 = wxString_in_helper(obj1); | |
12899 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12900 | temp2 = True; |
d14a1e28 RD |
12901 | } |
12902 | } | |
994141e6 | 12903 | if (obj2) { |
15afbcd0 RD |
12904 | arg3 = (int) SWIG_AsInt(obj2); |
12905 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12906 | } |
d14a1e28 RD |
12907 | { |
12908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12909 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
12910 | ||
12911 | wxPyEndAllowThreads(__tstate); | |
12912 | if (PyErr_Occurred()) SWIG_fail; | |
12913 | } | |
4f89f6a3 RD |
12914 | { |
12915 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12916 | } | |
d14a1e28 RD |
12917 | { |
12918 | if (temp2) | |
12919 | delete arg2; | |
12920 | } | |
12921 | return resultobj; | |
12922 | fail: | |
12923 | { | |
12924 | if (temp2) | |
12925 | delete arg2; | |
12926 | } | |
12927 | return NULL; | |
12928 | } | |
12929 | ||
12930 | ||
12931 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12932 | PyObject *resultobj; | |
12933 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12934 | bool result; | |
12935 | PyObject * obj0 = 0 ; | |
12936 | char *kwnames[] = { | |
12937 | (char *) "self", NULL | |
12938 | }; | |
12939 | ||
12940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12943 | { |
12944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12945 | result = (bool)(arg1)->Unassociate(); | |
12946 | ||
12947 | wxPyEndAllowThreads(__tstate); | |
12948 | if (PyErr_Occurred()) SWIG_fail; | |
12949 | } | |
4f89f6a3 RD |
12950 | { |
12951 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12952 | } | |
d14a1e28 RD |
12953 | return resultobj; |
12954 | fail: | |
12955 | return NULL; | |
12956 | } | |
12957 | ||
12958 | ||
12959 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12960 | PyObject *resultobj; | |
12961 | wxString *arg1 = 0 ; | |
12962 | wxString *arg2 = 0 ; | |
12963 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12964 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12965 | wxString result; | |
e811c8ce RD |
12966 | bool temp1 = False ; |
12967 | bool temp2 = False ; | |
12968 | bool temp3 = False ; | |
d14a1e28 RD |
12969 | PyObject * obj0 = 0 ; |
12970 | PyObject * obj1 = 0 ; | |
12971 | PyObject * obj2 = 0 ; | |
12972 | char *kwnames[] = { | |
12973 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
12974 | }; | |
12975 | ||
12976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12977 | { | |
12978 | arg1 = wxString_in_helper(obj0); | |
12979 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 12980 | temp1 = True; |
d14a1e28 RD |
12981 | } |
12982 | { | |
12983 | arg2 = wxString_in_helper(obj1); | |
12984 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12985 | temp2 = True; |
d14a1e28 RD |
12986 | } |
12987 | if (obj2) { | |
12988 | { | |
12989 | arg3 = wxString_in_helper(obj2); | |
12990 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12991 | temp3 = True; |
d14a1e28 RD |
12992 | } |
12993 | } | |
12994 | { | |
12995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12996 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12997 | ||
12998 | wxPyEndAllowThreads(__tstate); | |
12999 | if (PyErr_Occurred()) SWIG_fail; | |
13000 | } | |
13001 | { | |
13002 | #if wxUSE_UNICODE | |
13003 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13004 | #else | |
13005 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13006 | #endif | |
13007 | } | |
13008 | { | |
13009 | if (temp1) | |
13010 | delete arg1; | |
13011 | } | |
13012 | { | |
13013 | if (temp2) | |
13014 | delete arg2; | |
13015 | } | |
13016 | { | |
13017 | if (temp3) | |
13018 | delete arg3; | |
13019 | } | |
13020 | return resultobj; | |
13021 | fail: | |
13022 | { | |
13023 | if (temp1) | |
13024 | delete arg1; | |
13025 | } | |
13026 | { | |
13027 | if (temp2) | |
13028 | delete arg2; | |
13029 | } | |
13030 | { | |
13031 | if (temp3) | |
13032 | delete arg3; | |
13033 | } | |
13034 | return NULL; | |
13035 | } | |
13036 | ||
13037 | ||
13038 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
13039 | PyObject *obj; | |
13040 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13041 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
13042 | Py_INCREF(obj); | |
13043 | return Py_BuildValue((char *)""); | |
13044 | } | |
13045 | static int _wrap_TheMimeTypesManager_set(PyObject *_val) { | |
13046 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); | |
13047 | return 1; | |
13048 | } | |
13049 | ||
13050 | ||
13051 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
13052 | PyObject *pyobj; | |
13053 | ||
15afbcd0 | 13054 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); |
d14a1e28 RD |
13055 | return pyobj; |
13056 | } | |
13057 | ||
13058 | ||
13059 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13060 | PyObject *resultobj; | |
13061 | wxString *arg1 = 0 ; | |
13062 | wxString *arg2 = 0 ; | |
13063 | bool result; | |
e811c8ce RD |
13064 | bool temp1 = False ; |
13065 | bool temp2 = False ; | |
d14a1e28 RD |
13066 | PyObject * obj0 = 0 ; |
13067 | PyObject * obj1 = 0 ; | |
13068 | char *kwnames[] = { | |
13069 | (char *) "mimeType",(char *) "wildcard", NULL | |
13070 | }; | |
13071 | ||
13072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
13073 | { | |
13074 | arg1 = wxString_in_helper(obj0); | |
13075 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 13076 | temp1 = True; |
d14a1e28 RD |
13077 | } |
13078 | { | |
13079 | arg2 = wxString_in_helper(obj1); | |
13080 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13081 | temp2 = True; |
d14a1e28 RD |
13082 | } |
13083 | { | |
13084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13085 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
13086 | ||
13087 | wxPyEndAllowThreads(__tstate); | |
13088 | if (PyErr_Occurred()) SWIG_fail; | |
13089 | } | |
4f89f6a3 RD |
13090 | { |
13091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13092 | } | |
d14a1e28 RD |
13093 | { |
13094 | if (temp1) | |
13095 | delete arg1; | |
13096 | } | |
13097 | { | |
13098 | if (temp2) | |
13099 | delete arg2; | |
13100 | } | |
13101 | return resultobj; | |
13102 | fail: | |
13103 | { | |
13104 | if (temp1) | |
13105 | delete arg1; | |
13106 | } | |
13107 | { | |
13108 | if (temp2) | |
13109 | delete arg2; | |
13110 | } | |
13111 | return NULL; | |
13112 | } | |
13113 | ||
13114 | ||
13115 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13116 | PyObject *resultobj; | |
13117 | wxMimeTypesManager *result; | |
13118 | char *kwnames[] = { | |
13119 | NULL | |
13120 | }; | |
13121 | ||
13122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
13123 | { | |
13124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13125 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
13126 | ||
13127 | wxPyEndAllowThreads(__tstate); | |
13128 | if (PyErr_Occurred()) SWIG_fail; | |
13129 | } | |
15afbcd0 | 13130 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); |
d14a1e28 RD |
13131 | return resultobj; |
13132 | fail: | |
13133 | return NULL; | |
13134 | } | |
13135 | ||
13136 | ||
13137 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13138 | PyObject *resultobj; | |
13139 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13140 | int arg2 = (int) wxMAILCAP_ALL ; | |
13141 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13142 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
e811c8ce | 13143 | bool temp3 = False ; |
d14a1e28 | 13144 | PyObject * obj0 = 0 ; |
994141e6 | 13145 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13146 | PyObject * obj2 = 0 ; |
13147 | char *kwnames[] = { | |
13148 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
13149 | }; | |
13150 | ||
994141e6 | 13151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 13154 | if (obj1) { |
15afbcd0 RD |
13155 | arg2 = (int) SWIG_AsInt(obj1); |
13156 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13157 | } |
d14a1e28 RD |
13158 | if (obj2) { |
13159 | { | |
13160 | arg3 = wxString_in_helper(obj2); | |
13161 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 13162 | temp3 = True; |
d14a1e28 RD |
13163 | } |
13164 | } | |
13165 | { | |
13166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13167 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
13168 | ||
13169 | wxPyEndAllowThreads(__tstate); | |
13170 | if (PyErr_Occurred()) SWIG_fail; | |
13171 | } | |
13172 | Py_INCREF(Py_None); resultobj = Py_None; | |
13173 | { | |
13174 | if (temp3) | |
13175 | delete arg3; | |
13176 | } | |
13177 | return resultobj; | |
13178 | fail: | |
13179 | { | |
13180 | if (temp3) | |
13181 | delete arg3; | |
13182 | } | |
13183 | return NULL; | |
13184 | } | |
13185 | ||
13186 | ||
13187 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13188 | PyObject *resultobj; | |
13189 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13190 | PyObject * obj0 = 0 ; | |
13191 | char *kwnames[] = { | |
13192 | (char *) "self", NULL | |
13193 | }; | |
13194 | ||
13195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13198 | { |
13199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13200 | (arg1)->ClearData(); | |
13201 | ||
13202 | wxPyEndAllowThreads(__tstate); | |
13203 | if (PyErr_Occurred()) SWIG_fail; | |
13204 | } | |
13205 | Py_INCREF(Py_None); resultobj = Py_None; | |
13206 | return resultobj; | |
13207 | fail: | |
13208 | return NULL; | |
13209 | } | |
13210 | ||
13211 | ||
13212 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13213 | PyObject *resultobj; | |
13214 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13215 | wxString *arg2 = 0 ; | |
13216 | wxFileType *result; | |
e811c8ce | 13217 | bool temp2 = False ; |
d14a1e28 RD |
13218 | PyObject * obj0 = 0 ; |
13219 | PyObject * obj1 = 0 ; | |
13220 | char *kwnames[] = { | |
13221 | (char *) "self",(char *) "ext", NULL | |
13222 | }; | |
13223 | ||
13224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13227 | { |
13228 | arg2 = wxString_in_helper(obj1); | |
13229 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13230 | temp2 = True; |
d14a1e28 RD |
13231 | } |
13232 | { | |
13233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13234 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
13235 | ||
13236 | wxPyEndAllowThreads(__tstate); | |
13237 | if (PyErr_Occurred()) SWIG_fail; | |
13238 | } | |
15afbcd0 | 13239 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13240 | { |
13241 | if (temp2) | |
13242 | delete arg2; | |
13243 | } | |
13244 | return resultobj; | |
13245 | fail: | |
13246 | { | |
13247 | if (temp2) | |
13248 | delete arg2; | |
13249 | } | |
13250 | return NULL; | |
13251 | } | |
13252 | ||
13253 | ||
13254 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13255 | PyObject *resultobj; | |
13256 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13257 | wxString *arg2 = 0 ; | |
13258 | wxFileType *result; | |
e811c8ce | 13259 | bool temp2 = False ; |
d14a1e28 RD |
13260 | PyObject * obj0 = 0 ; |
13261 | PyObject * obj1 = 0 ; | |
13262 | char *kwnames[] = { | |
13263 | (char *) "self",(char *) "mimeType", NULL | |
13264 | }; | |
13265 | ||
13266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13269 | { |
13270 | arg2 = wxString_in_helper(obj1); | |
13271 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13272 | temp2 = True; |
d14a1e28 RD |
13273 | } |
13274 | { | |
13275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13276 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
13277 | ||
13278 | wxPyEndAllowThreads(__tstate); | |
13279 | if (PyErr_Occurred()) SWIG_fail; | |
13280 | } | |
15afbcd0 | 13281 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13282 | { |
13283 | if (temp2) | |
13284 | delete arg2; | |
13285 | } | |
13286 | return resultobj; | |
13287 | fail: | |
13288 | { | |
13289 | if (temp2) | |
13290 | delete arg2; | |
13291 | } | |
13292 | return NULL; | |
13293 | } | |
13294 | ||
13295 | ||
13296 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13297 | PyObject *resultobj; | |
13298 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13299 | wxString *arg2 = 0 ; | |
e811c8ce | 13300 | bool arg3 = (bool) False ; |
d14a1e28 | 13301 | bool result; |
e811c8ce | 13302 | bool temp2 = False ; |
d14a1e28 RD |
13303 | PyObject * obj0 = 0 ; |
13304 | PyObject * obj1 = 0 ; | |
13305 | PyObject * obj2 = 0 ; | |
13306 | char *kwnames[] = { | |
13307 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
13308 | }; | |
13309 | ||
13310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
13311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13313 | { |
13314 | arg2 = wxString_in_helper(obj1); | |
13315 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13316 | temp2 = True; |
d14a1e28 RD |
13317 | } |
13318 | if (obj2) { | |
15afbcd0 RD |
13319 | arg3 = (bool) SWIG_AsBool(obj2); |
13320 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13321 | } |
13322 | { | |
13323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13324 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
13325 | ||
13326 | wxPyEndAllowThreads(__tstate); | |
13327 | if (PyErr_Occurred()) SWIG_fail; | |
13328 | } | |
4f89f6a3 RD |
13329 | { |
13330 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13331 | } | |
d14a1e28 RD |
13332 | { |
13333 | if (temp2) | |
13334 | delete arg2; | |
13335 | } | |
13336 | return resultobj; | |
13337 | fail: | |
13338 | { | |
13339 | if (temp2) | |
13340 | delete arg2; | |
13341 | } | |
13342 | return NULL; | |
13343 | } | |
13344 | ||
13345 | ||
13346 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13347 | PyObject *resultobj; | |
13348 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13349 | wxString *arg2 = 0 ; | |
13350 | bool result; | |
e811c8ce | 13351 | bool temp2 = False ; |
d14a1e28 RD |
13352 | PyObject * obj0 = 0 ; |
13353 | PyObject * obj1 = 0 ; | |
13354 | char *kwnames[] = { | |
13355 | (char *) "self",(char *) "filename", NULL | |
13356 | }; | |
13357 | ||
13358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13361 | { |
13362 | arg2 = wxString_in_helper(obj1); | |
13363 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13364 | temp2 = True; |
d14a1e28 RD |
13365 | } |
13366 | { | |
13367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13368 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
13369 | ||
13370 | wxPyEndAllowThreads(__tstate); | |
13371 | if (PyErr_Occurred()) SWIG_fail; | |
13372 | } | |
4f89f6a3 RD |
13373 | { |
13374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13375 | } | |
d14a1e28 RD |
13376 | { |
13377 | if (temp2) | |
13378 | delete arg2; | |
13379 | } | |
13380 | return resultobj; | |
13381 | fail: | |
13382 | { | |
13383 | if (temp2) | |
13384 | delete arg2; | |
13385 | } | |
13386 | return NULL; | |
13387 | } | |
13388 | ||
13389 | ||
13390 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13391 | PyObject *resultobj; | |
13392 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13393 | PyObject *result; | |
13394 | PyObject * obj0 = 0 ; | |
13395 | char *kwnames[] = { | |
13396 | (char *) "self", NULL | |
13397 | }; | |
13398 | ||
13399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13402 | { |
13403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13404 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
13405 | ||
13406 | wxPyEndAllowThreads(__tstate); | |
13407 | if (PyErr_Occurred()) SWIG_fail; | |
13408 | } | |
13409 | resultobj = result; | |
13410 | return resultobj; | |
13411 | fail: | |
13412 | return NULL; | |
13413 | } | |
13414 | ||
13415 | ||
13416 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13417 | PyObject *resultobj; | |
13418 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13419 | wxFileTypeInfo *arg2 = 0 ; | |
13420 | PyObject * obj0 = 0 ; | |
13421 | PyObject * obj1 = 0 ; | |
13422 | char *kwnames[] = { | |
13423 | (char *) "self",(char *) "ft", NULL | |
13424 | }; | |
13425 | ||
13426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13429 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13430 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13431 | SWIG_fail; | |
d14a1e28 | 13432 | if (arg2 == NULL) { |
15afbcd0 RD |
13433 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13434 | SWIG_fail; | |
d14a1e28 RD |
13435 | } |
13436 | { | |
13437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13438 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
13439 | ||
13440 | wxPyEndAllowThreads(__tstate); | |
13441 | if (PyErr_Occurred()) SWIG_fail; | |
13442 | } | |
13443 | Py_INCREF(Py_None); resultobj = Py_None; | |
13444 | return resultobj; | |
13445 | fail: | |
13446 | return NULL; | |
13447 | } | |
13448 | ||
13449 | ||
13450 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13451 | PyObject *resultobj; | |
13452 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13453 | wxFileTypeInfo *arg2 = 0 ; | |
13454 | wxFileType *result; | |
13455 | PyObject * obj0 = 0 ; | |
13456 | PyObject * obj1 = 0 ; | |
13457 | char *kwnames[] = { | |
13458 | (char *) "self",(char *) "ftInfo", NULL | |
13459 | }; | |
13460 | ||
13461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13464 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13465 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13466 | SWIG_fail; | |
d14a1e28 | 13467 | if (arg2 == NULL) { |
15afbcd0 RD |
13468 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13469 | SWIG_fail; | |
d14a1e28 RD |
13470 | } |
13471 | { | |
13472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13473 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
13474 | ||
13475 | wxPyEndAllowThreads(__tstate); | |
13476 | if (PyErr_Occurred()) SWIG_fail; | |
13477 | } | |
15afbcd0 | 13478 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13479 | return resultobj; |
13480 | fail: | |
13481 | return NULL; | |
13482 | } | |
13483 | ||
13484 | ||
13485 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13486 | PyObject *resultobj; | |
13487 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13488 | wxFileType *arg2 = (wxFileType *) 0 ; | |
13489 | bool result; | |
13490 | PyObject * obj0 = 0 ; | |
13491 | PyObject * obj1 = 0 ; | |
13492 | char *kwnames[] = { | |
13493 | (char *) "self",(char *) "ft", NULL | |
13494 | }; | |
13495 | ||
13496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13499 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType, | |
13500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13501 | { |
13502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13503 | result = (bool)(arg1)->Unassociate(arg2); | |
13504 | ||
13505 | wxPyEndAllowThreads(__tstate); | |
13506 | if (PyErr_Occurred()) SWIG_fail; | |
13507 | } | |
4f89f6a3 RD |
13508 | { |
13509 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13510 | } | |
d14a1e28 RD |
13511 | return resultobj; |
13512 | fail: | |
13513 | return NULL; | |
13514 | } | |
13515 | ||
13516 | ||
13517 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13518 | PyObject *resultobj; | |
13519 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13520 | PyObject * obj0 = 0 ; | |
13521 | char *kwnames[] = { | |
13522 | (char *) "self", NULL | |
13523 | }; | |
13524 | ||
13525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13528 | { |
13529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13530 | delete arg1; | |
13531 | ||
13532 | wxPyEndAllowThreads(__tstate); | |
13533 | if (PyErr_Occurred()) SWIG_fail; | |
13534 | } | |
13535 | Py_INCREF(Py_None); resultobj = Py_None; | |
13536 | return resultobj; | |
13537 | fail: | |
13538 | return NULL; | |
13539 | } | |
13540 | ||
13541 | ||
13542 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
13543 | PyObject *obj; | |
13544 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13545 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
13546 | Py_INCREF(obj); | |
13547 | return Py_BuildValue((char *)""); | |
13548 | } | |
13549 | static int _wrap_ART_TOOLBAR_set(PyObject *_val) { | |
13550 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); | |
13551 | return 1; | |
13552 | } | |
13553 | ||
13554 | ||
13555 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
13556 | PyObject *pyobj; | |
13557 | ||
13558 | { | |
13559 | #if wxUSE_UNICODE | |
13560 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13561 | #else | |
13562 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13563 | #endif | |
13564 | } | |
13565 | return pyobj; | |
13566 | } | |
13567 | ||
13568 | ||
13569 | static int _wrap_ART_MENU_set(PyObject *_val) { | |
13570 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); | |
13571 | return 1; | |
13572 | } | |
13573 | ||
13574 | ||
13575 | static PyObject *_wrap_ART_MENU_get() { | |
13576 | PyObject *pyobj; | |
13577 | ||
13578 | { | |
13579 | #if wxUSE_UNICODE | |
13580 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13581 | #else | |
13582 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13583 | #endif | |
13584 | } | |
13585 | return pyobj; | |
13586 | } | |
13587 | ||
13588 | ||
13589 | static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { | |
13590 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); | |
13591 | return 1; | |
13592 | } | |
13593 | ||
13594 | ||
13595 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
13596 | PyObject *pyobj; | |
13597 | ||
13598 | { | |
13599 | #if wxUSE_UNICODE | |
13600 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13601 | #else | |
13602 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13603 | #endif | |
13604 | } | |
13605 | return pyobj; | |
13606 | } | |
13607 | ||
13608 | ||
13609 | static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { | |
13610 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); | |
13611 | return 1; | |
13612 | } | |
13613 | ||
13614 | ||
13615 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
13616 | PyObject *pyobj; | |
13617 | ||
13618 | { | |
13619 | #if wxUSE_UNICODE | |
13620 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13621 | #else | |
13622 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13623 | #endif | |
13624 | } | |
13625 | return pyobj; | |
13626 | } | |
13627 | ||
13628 | ||
13629 | static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { | |
13630 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); | |
13631 | return 1; | |
13632 | } | |
13633 | ||
13634 | ||
13635 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
13636 | PyObject *pyobj; | |
13637 | ||
13638 | { | |
13639 | #if wxUSE_UNICODE | |
13640 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13641 | #else | |
13642 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13643 | #endif | |
13644 | } | |
13645 | return pyobj; | |
13646 | } | |
13647 | ||
13648 | ||
13649 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { | |
13650 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); | |
13651 | return 1; | |
13652 | } | |
13653 | ||
13654 | ||
13655 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
13656 | PyObject *pyobj; | |
13657 | ||
13658 | { | |
13659 | #if wxUSE_UNICODE | |
13660 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13661 | #else | |
13662 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13663 | #endif | |
13664 | } | |
13665 | return pyobj; | |
13666 | } | |
13667 | ||
13668 | ||
13669 | static int _wrap_ART_OTHER_set(PyObject *_val) { | |
13670 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); | |
13671 | return 1; | |
13672 | } | |
13673 | ||
13674 | ||
13675 | static PyObject *_wrap_ART_OTHER_get() { | |
13676 | PyObject *pyobj; | |
13677 | ||
13678 | { | |
13679 | #if wxUSE_UNICODE | |
13680 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13681 | #else | |
13682 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13683 | #endif | |
13684 | } | |
13685 | return pyobj; | |
13686 | } | |
13687 | ||
13688 | ||
13689 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { | |
13690 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); | |
13691 | return 1; | |
13692 | } | |
13693 | ||
13694 | ||
13695 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
13696 | PyObject *pyobj; | |
13697 | ||
13698 | { | |
13699 | #if wxUSE_UNICODE | |
13700 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13701 | #else | |
13702 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13703 | #endif | |
13704 | } | |
13705 | return pyobj; | |
13706 | } | |
13707 | ||
13708 | ||
13709 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { | |
13710 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); | |
13711 | return 1; | |
13712 | } | |
13713 | ||
13714 | ||
13715 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
13716 | PyObject *pyobj; | |
13717 | ||
13718 | { | |
13719 | #if wxUSE_UNICODE | |
13720 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13721 | #else | |
13722 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13723 | #endif | |
13724 | } | |
13725 | return pyobj; | |
13726 | } | |
13727 | ||
13728 | ||
13729 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { | |
13730 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); | |
13731 | return 1; | |
13732 | } | |
13733 | ||
13734 | ||
13735 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
13736 | PyObject *pyobj; | |
13737 | ||
13738 | { | |
13739 | #if wxUSE_UNICODE | |
13740 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13741 | #else | |
13742 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13743 | #endif | |
13744 | } | |
13745 | return pyobj; | |
13746 | } | |
13747 | ||
13748 | ||
13749 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { | |
13750 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); | |
13751 | return 1; | |
13752 | } | |
13753 | ||
13754 | ||
13755 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
13756 | PyObject *pyobj; | |
13757 | ||
13758 | { | |
13759 | #if wxUSE_UNICODE | |
13760 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13761 | #else | |
13762 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13763 | #endif | |
13764 | } | |
13765 | return pyobj; | |
13766 | } | |
13767 | ||
13768 | ||
13769 | static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { | |
13770 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); | |
13771 | return 1; | |
13772 | } | |
13773 | ||
13774 | ||
13775 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
13776 | PyObject *pyobj; | |
13777 | ||
13778 | { | |
13779 | #if wxUSE_UNICODE | |
13780 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13781 | #else | |
13782 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13783 | #endif | |
13784 | } | |
13785 | return pyobj; | |
13786 | } | |
13787 | ||
13788 | ||
13789 | static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { | |
13790 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); | |
13791 | return 1; | |
13792 | } | |
13793 | ||
13794 | ||
13795 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
13796 | PyObject *pyobj; | |
13797 | ||
13798 | { | |
13799 | #if wxUSE_UNICODE | |
13800 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13801 | #else | |
13802 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13803 | #endif | |
13804 | } | |
13805 | return pyobj; | |
13806 | } | |
13807 | ||
13808 | ||
13809 | static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { | |
13810 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); | |
13811 | return 1; | |
13812 | } | |
13813 | ||
13814 | ||
13815 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
13816 | PyObject *pyobj; | |
13817 | ||
13818 | { | |
13819 | #if wxUSE_UNICODE | |
13820 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13821 | #else | |
13822 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13823 | #endif | |
13824 | } | |
13825 | return pyobj; | |
13826 | } | |
13827 | ||
13828 | ||
13829 | static int _wrap_ART_GO_BACK_set(PyObject *_val) { | |
13830 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); | |
13831 | return 1; | |
13832 | } | |
13833 | ||
13834 | ||
13835 | static PyObject *_wrap_ART_GO_BACK_get() { | |
13836 | PyObject *pyobj; | |
13837 | ||
13838 | { | |
13839 | #if wxUSE_UNICODE | |
13840 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13841 | #else | |
13842 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13843 | #endif | |
13844 | } | |
13845 | return pyobj; | |
13846 | } | |
13847 | ||
13848 | ||
13849 | static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { | |
13850 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); | |
13851 | return 1; | |
13852 | } | |
13853 | ||
13854 | ||
13855 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
13856 | PyObject *pyobj; | |
13857 | ||
13858 | { | |
13859 | #if wxUSE_UNICODE | |
13860 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13861 | #else | |
13862 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13863 | #endif | |
13864 | } | |
13865 | return pyobj; | |
13866 | } | |
13867 | ||
13868 | ||
13869 | static int _wrap_ART_GO_UP_set(PyObject *_val) { | |
13870 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); | |
13871 | return 1; | |
13872 | } | |
13873 | ||
13874 | ||
13875 | static PyObject *_wrap_ART_GO_UP_get() { | |
13876 | PyObject *pyobj; | |
13877 | ||
13878 | { | |
13879 | #if wxUSE_UNICODE | |
13880 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13881 | #else | |
13882 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13883 | #endif | |
13884 | } | |
13885 | return pyobj; | |
13886 | } | |
13887 | ||
13888 | ||
13889 | static int _wrap_ART_GO_DOWN_set(PyObject *_val) { | |
13890 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); | |
13891 | return 1; | |
13892 | } | |
13893 | ||
13894 | ||
13895 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
13896 | PyObject *pyobj; | |
13897 | ||
13898 | { | |
13899 | #if wxUSE_UNICODE | |
13900 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13901 | #else | |
13902 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13903 | #endif | |
13904 | } | |
13905 | return pyobj; | |
13906 | } | |
13907 | ||
13908 | ||
13909 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { | |
13910 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); | |
13911 | return 1; | |
13912 | } | |
13913 | ||
13914 | ||
13915 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
13916 | PyObject *pyobj; | |
13917 | ||
13918 | { | |
13919 | #if wxUSE_UNICODE | |
13920 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13921 | #else | |
13922 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13923 | #endif | |
13924 | } | |
13925 | return pyobj; | |
13926 | } | |
13927 | ||
13928 | ||
13929 | static int _wrap_ART_GO_HOME_set(PyObject *_val) { | |
13930 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); | |
13931 | return 1; | |
13932 | } | |
13933 | ||
13934 | ||
13935 | static PyObject *_wrap_ART_GO_HOME_get() { | |
13936 | PyObject *pyobj; | |
13937 | ||
13938 | { | |
13939 | #if wxUSE_UNICODE | |
13940 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13941 | #else | |
13942 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13943 | #endif | |
13944 | } | |
13945 | return pyobj; | |
13946 | } | |
13947 | ||
13948 | ||
13949 | static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { | |
13950 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); | |
13951 | return 1; | |
13952 | } | |
13953 | ||
13954 | ||
13955 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
13956 | PyObject *pyobj; | |
13957 | ||
13958 | { | |
13959 | #if wxUSE_UNICODE | |
13960 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13961 | #else | |
13962 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13963 | #endif | |
13964 | } | |
13965 | return pyobj; | |
13966 | } | |
13967 | ||
13968 | ||
13969 | static int _wrap_ART_PRINT_set(PyObject *_val) { | |
13970 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); | |
13971 | return 1; | |
13972 | } | |
13973 | ||
13974 | ||
13975 | static PyObject *_wrap_ART_PRINT_get() { | |
13976 | PyObject *pyobj; | |
13977 | ||
13978 | { | |
13979 | #if wxUSE_UNICODE | |
13980 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13981 | #else | |
13982 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13983 | #endif | |
13984 | } | |
13985 | return pyobj; | |
13986 | } | |
13987 | ||
13988 | ||
13989 | static int _wrap_ART_HELP_set(PyObject *_val) { | |
13990 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); | |
13991 | return 1; | |
13992 | } | |
13993 | ||
13994 | ||
13995 | static PyObject *_wrap_ART_HELP_get() { | |
13996 | PyObject *pyobj; | |
13997 | ||
13998 | { | |
13999 | #if wxUSE_UNICODE | |
14000 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14001 | #else | |
14002 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14003 | #endif | |
14004 | } | |
14005 | return pyobj; | |
14006 | } | |
14007 | ||
14008 | ||
14009 | static int _wrap_ART_TIP_set(PyObject *_val) { | |
14010 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); | |
14011 | return 1; | |
14012 | } | |
14013 | ||
14014 | ||
14015 | static PyObject *_wrap_ART_TIP_get() { | |
14016 | PyObject *pyobj; | |
14017 | ||
14018 | { | |
14019 | #if wxUSE_UNICODE | |
14020 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14021 | #else | |
14022 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14023 | #endif | |
14024 | } | |
14025 | return pyobj; | |
14026 | } | |
14027 | ||
14028 | ||
14029 | static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { | |
14030 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); | |
14031 | return 1; | |
14032 | } | |
14033 | ||
14034 | ||
14035 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
14036 | PyObject *pyobj; | |
14037 | ||
14038 | { | |
14039 | #if wxUSE_UNICODE | |
14040 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14041 | #else | |
14042 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14043 | #endif | |
14044 | } | |
14045 | return pyobj; | |
14046 | } | |
14047 | ||
14048 | ||
14049 | static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { | |
14050 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); | |
14051 | return 1; | |
14052 | } | |
14053 | ||
14054 | ||
14055 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
14056 | PyObject *pyobj; | |
14057 | ||
14058 | { | |
14059 | #if wxUSE_UNICODE | |
14060 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14061 | #else | |
14062 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14063 | #endif | |
14064 | } | |
14065 | return pyobj; | |
14066 | } | |
14067 | ||
14068 | ||
14069 | static int _wrap_ART_NEW_DIR_set(PyObject *_val) { | |
14070 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); | |
14071 | return 1; | |
14072 | } | |
14073 | ||
14074 | ||
14075 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
14076 | PyObject *pyobj; | |
14077 | ||
14078 | { | |
14079 | #if wxUSE_UNICODE | |
14080 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14081 | #else | |
14082 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14083 | #endif | |
14084 | } | |
14085 | return pyobj; | |
14086 | } | |
14087 | ||
14088 | ||
14089 | static int _wrap_ART_FOLDER_set(PyObject *_val) { | |
14090 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); | |
14091 | return 1; | |
14092 | } | |
14093 | ||
14094 | ||
14095 | static PyObject *_wrap_ART_FOLDER_get() { | |
14096 | PyObject *pyobj; | |
14097 | ||
14098 | { | |
14099 | #if wxUSE_UNICODE | |
14100 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14101 | #else | |
14102 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14103 | #endif | |
14104 | } | |
14105 | return pyobj; | |
14106 | } | |
14107 | ||
14108 | ||
14109 | static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { | |
14110 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); | |
14111 | return 1; | |
14112 | } | |
14113 | ||
14114 | ||
14115 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
14116 | PyObject *pyobj; | |
14117 | ||
14118 | { | |
14119 | #if wxUSE_UNICODE | |
14120 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14121 | #else | |
14122 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14123 | #endif | |
14124 | } | |
14125 | return pyobj; | |
14126 | } | |
14127 | ||
14128 | ||
14129 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { | |
14130 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); | |
14131 | return 1; | |
14132 | } | |
14133 | ||
14134 | ||
14135 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
14136 | PyObject *pyobj; | |
14137 | ||
14138 | { | |
14139 | #if wxUSE_UNICODE | |
14140 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14141 | #else | |
14142 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14143 | #endif | |
14144 | } | |
14145 | return pyobj; | |
14146 | } | |
14147 | ||
14148 | ||
14149 | static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { | |
14150 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); | |
14151 | return 1; | |
14152 | } | |
14153 | ||
14154 | ||
14155 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
14156 | PyObject *pyobj; | |
14157 | ||
14158 | { | |
14159 | #if wxUSE_UNICODE | |
14160 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14161 | #else | |
14162 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14163 | #endif | |
14164 | } | |
14165 | return pyobj; | |
14166 | } | |
14167 | ||
14168 | ||
14169 | static int _wrap_ART_TICK_MARK_set(PyObject *_val) { | |
14170 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); | |
14171 | return 1; | |
14172 | } | |
14173 | ||
14174 | ||
14175 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
14176 | PyObject *pyobj; | |
14177 | ||
14178 | { | |
14179 | #if wxUSE_UNICODE | |
14180 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14181 | #else | |
14182 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14183 | #endif | |
14184 | } | |
14185 | return pyobj; | |
14186 | } | |
14187 | ||
14188 | ||
14189 | static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { | |
14190 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); | |
14191 | return 1; | |
14192 | } | |
14193 | ||
14194 | ||
14195 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
14196 | PyObject *pyobj; | |
14197 | ||
14198 | { | |
14199 | #if wxUSE_UNICODE | |
14200 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14201 | #else | |
14202 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14203 | #endif | |
14204 | } | |
14205 | return pyobj; | |
14206 | } | |
14207 | ||
14208 | ||
14209 | static int _wrap_ART_ERROR_set(PyObject *_val) { | |
14210 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); | |
14211 | return 1; | |
14212 | } | |
14213 | ||
14214 | ||
14215 | static PyObject *_wrap_ART_ERROR_get() { | |
14216 | PyObject *pyobj; | |
14217 | ||
14218 | { | |
14219 | #if wxUSE_UNICODE | |
14220 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14221 | #else | |
14222 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14223 | #endif | |
14224 | } | |
14225 | return pyobj; | |
14226 | } | |
14227 | ||
14228 | ||
14229 | static int _wrap_ART_QUESTION_set(PyObject *_val) { | |
14230 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); | |
14231 | return 1; | |
14232 | } | |
14233 | ||
14234 | ||
14235 | static PyObject *_wrap_ART_QUESTION_get() { | |
14236 | PyObject *pyobj; | |
14237 | ||
14238 | { | |
14239 | #if wxUSE_UNICODE | |
14240 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14241 | #else | |
14242 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14243 | #endif | |
14244 | } | |
14245 | return pyobj; | |
14246 | } | |
14247 | ||
14248 | ||
14249 | static int _wrap_ART_WARNING_set(PyObject *_val) { | |
14250 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); | |
14251 | return 1; | |
14252 | } | |
14253 | ||
14254 | ||
14255 | static PyObject *_wrap_ART_WARNING_get() { | |
14256 | PyObject *pyobj; | |
14257 | ||
14258 | { | |
14259 | #if wxUSE_UNICODE | |
14260 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14261 | #else | |
14262 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14263 | #endif | |
14264 | } | |
14265 | return pyobj; | |
14266 | } | |
14267 | ||
14268 | ||
14269 | static int _wrap_ART_INFORMATION_set(PyObject *_val) { | |
14270 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); | |
14271 | return 1; | |
14272 | } | |
14273 | ||
14274 | ||
14275 | static PyObject *_wrap_ART_INFORMATION_get() { | |
14276 | PyObject *pyobj; | |
14277 | ||
14278 | { | |
14279 | #if wxUSE_UNICODE | |
14280 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14281 | #else | |
14282 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14283 | #endif | |
14284 | } | |
14285 | return pyobj; | |
14286 | } | |
14287 | ||
14288 | ||
14289 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { | |
14290 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); | |
14291 | return 1; | |
14292 | } | |
14293 | ||
14294 | ||
14295 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
14296 | PyObject *pyobj; | |
14297 | ||
14298 | { | |
14299 | #if wxUSE_UNICODE | |
14300 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14301 | #else | |
14302 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14303 | #endif | |
14304 | } | |
14305 | return pyobj; | |
14306 | } | |
14307 | ||
14308 | ||
14309 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14310 | PyObject *resultobj; | |
14311 | wxPyArtProvider *result; | |
14312 | char *kwnames[] = { | |
14313 | NULL | |
14314 | }; | |
14315 | ||
14316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
14317 | { | |
14318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14319 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
14320 | ||
14321 | wxPyEndAllowThreads(__tstate); | |
14322 | if (PyErr_Occurred()) SWIG_fail; | |
14323 | } | |
15afbcd0 | 14324 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); |
d14a1e28 RD |
14325 | return resultobj; |
14326 | fail: | |
14327 | return NULL; | |
14328 | } | |
14329 | ||
14330 | ||
d14a1e28 RD |
14331 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
14332 | PyObject *resultobj; | |
14333 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14334 | PyObject *arg2 = (PyObject *) 0 ; | |
14335 | PyObject *arg3 = (PyObject *) 0 ; | |
14336 | PyObject * obj0 = 0 ; | |
14337 | PyObject * obj1 = 0 ; | |
14338 | PyObject * obj2 = 0 ; | |
14339 | char *kwnames[] = { | |
14340 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14341 | }; | |
14342 | ||
14343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
14344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14346 | arg2 = obj1; |
14347 | arg3 = obj2; | |
14348 | { | |
14349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14350 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14351 | ||
14352 | wxPyEndAllowThreads(__tstate); | |
14353 | if (PyErr_Occurred()) SWIG_fail; | |
14354 | } | |
14355 | Py_INCREF(Py_None); resultobj = Py_None; | |
14356 | return resultobj; | |
14357 | fail: | |
14358 | return NULL; | |
14359 | } | |
14360 | ||
14361 | ||
14362 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14363 | PyObject *resultobj; | |
14364 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14365 | PyObject * obj0 = 0 ; | |
14366 | char *kwnames[] = { | |
14367 | (char *) "provider", NULL | |
14368 | }; | |
14369 | ||
14370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14373 | { |
14374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14375 | wxPyArtProvider::PushProvider(arg1); | |
14376 | ||
14377 | wxPyEndAllowThreads(__tstate); | |
14378 | if (PyErr_Occurred()) SWIG_fail; | |
14379 | } | |
14380 | Py_INCREF(Py_None); resultobj = Py_None; | |
14381 | return resultobj; | |
14382 | fail: | |
14383 | return NULL; | |
14384 | } | |
14385 | ||
14386 | ||
14387 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14388 | PyObject *resultobj; | |
14389 | bool result; | |
14390 | char *kwnames[] = { | |
14391 | NULL | |
14392 | }; | |
14393 | ||
14394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
14395 | { | |
14396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14397 | result = (bool)wxPyArtProvider::PopProvider(); | |
14398 | ||
14399 | wxPyEndAllowThreads(__tstate); | |
14400 | if (PyErr_Occurred()) SWIG_fail; | |
14401 | } | |
4f89f6a3 RD |
14402 | { |
14403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14404 | } | |
d14a1e28 RD |
14405 | return resultobj; |
14406 | fail: | |
14407 | return NULL; | |
14408 | } | |
14409 | ||
14410 | ||
14411 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14412 | PyObject *resultobj; | |
14413 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14414 | bool result; | |
14415 | PyObject * obj0 = 0 ; | |
14416 | char *kwnames[] = { | |
14417 | (char *) "provider", NULL | |
14418 | }; | |
14419 | ||
14420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14423 | { |
14424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14425 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
14426 | ||
14427 | wxPyEndAllowThreads(__tstate); | |
14428 | if (PyErr_Occurred()) SWIG_fail; | |
14429 | } | |
4f89f6a3 RD |
14430 | { |
14431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14432 | } | |
d14a1e28 RD |
14433 | return resultobj; |
14434 | fail: | |
14435 | return NULL; | |
14436 | } | |
14437 | ||
14438 | ||
14439 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14440 | PyObject *resultobj; | |
14441 | wxString *arg1 = 0 ; | |
14442 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14443 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14444 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14445 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14446 | wxBitmap result; | |
e811c8ce RD |
14447 | bool temp1 = False ; |
14448 | bool temp2 = False ; | |
d14a1e28 RD |
14449 | wxSize temp3 ; |
14450 | PyObject * obj0 = 0 ; | |
14451 | PyObject * obj1 = 0 ; | |
14452 | PyObject * obj2 = 0 ; | |
14453 | char *kwnames[] = { | |
14454 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14455 | }; | |
14456 | ||
14457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14458 | { | |
14459 | arg1 = wxString_in_helper(obj0); | |
14460 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 14461 | temp1 = True; |
d14a1e28 RD |
14462 | } |
14463 | if (obj1) { | |
14464 | { | |
14465 | arg2 = wxString_in_helper(obj1); | |
14466 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14467 | temp2 = True; |
d14a1e28 RD |
14468 | } |
14469 | } | |
14470 | if (obj2) { | |
14471 | { | |
14472 | arg3 = &temp3; | |
14473 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14474 | } | |
14475 | } | |
14476 | { | |
14477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14478 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14479 | ||
14480 | wxPyEndAllowThreads(__tstate); | |
14481 | if (PyErr_Occurred()) SWIG_fail; | |
14482 | } | |
14483 | { | |
14484 | wxBitmap * resultptr; | |
14485 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 14486 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
14487 | } |
14488 | { | |
14489 | if (temp1) | |
14490 | delete arg1; | |
14491 | } | |
14492 | { | |
14493 | if (temp2) | |
14494 | delete arg2; | |
14495 | } | |
14496 | return resultobj; | |
14497 | fail: | |
14498 | { | |
14499 | if (temp1) | |
14500 | delete arg1; | |
14501 | } | |
14502 | { | |
14503 | if (temp2) | |
14504 | delete arg2; | |
14505 | } | |
14506 | return NULL; | |
14507 | } | |
14508 | ||
14509 | ||
14510 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14511 | PyObject *resultobj; | |
14512 | wxString *arg1 = 0 ; | |
14513 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14514 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14515 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14516 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14517 | wxIcon result; | |
e811c8ce RD |
14518 | bool temp1 = False ; |
14519 | bool temp2 = False ; | |
d14a1e28 RD |
14520 | wxSize temp3 ; |
14521 | PyObject * obj0 = 0 ; | |
14522 | PyObject * obj1 = 0 ; | |
14523 | PyObject * obj2 = 0 ; | |
14524 | char *kwnames[] = { | |
14525 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14526 | }; | |
14527 | ||
14528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14529 | { | |
14530 | arg1 = wxString_in_helper(obj0); | |
14531 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 14532 | temp1 = True; |
d14a1e28 RD |
14533 | } |
14534 | if (obj1) { | |
14535 | { | |
14536 | arg2 = wxString_in_helper(obj1); | |
14537 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14538 | temp2 = True; |
d14a1e28 RD |
14539 | } |
14540 | } | |
14541 | if (obj2) { | |
14542 | { | |
14543 | arg3 = &temp3; | |
14544 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14545 | } | |
14546 | } | |
14547 | { | |
14548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14549 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14550 | ||
14551 | wxPyEndAllowThreads(__tstate); | |
14552 | if (PyErr_Occurred()) SWIG_fail; | |
14553 | } | |
14554 | { | |
14555 | wxIcon * resultptr; | |
14556 | resultptr = new wxIcon((wxIcon &) result); | |
15afbcd0 | 14557 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
14558 | } |
14559 | { | |
14560 | if (temp1) | |
14561 | delete arg1; | |
14562 | } | |
14563 | { | |
14564 | if (temp2) | |
14565 | delete arg2; | |
14566 | } | |
14567 | return resultobj; | |
14568 | fail: | |
14569 | { | |
14570 | if (temp1) | |
14571 | delete arg1; | |
14572 | } | |
14573 | { | |
14574 | if (temp2) | |
14575 | delete arg2; | |
14576 | } | |
14577 | return NULL; | |
14578 | } | |
14579 | ||
14580 | ||
1e0c8722 RD |
14581 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
14582 | PyObject *resultobj; | |
14583 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14584 | PyObject * obj0 = 0 ; | |
14585 | char *kwnames[] = { | |
14586 | (char *) "self", NULL | |
14587 | }; | |
14588 | ||
14589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
14592 | { |
14593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14594 | wxPyArtProvider_Destroy(arg1); | |
14595 | ||
14596 | wxPyEndAllowThreads(__tstate); | |
14597 | if (PyErr_Occurred()) SWIG_fail; | |
14598 | } | |
14599 | Py_INCREF(Py_None); resultobj = Py_None; | |
14600 | return resultobj; | |
14601 | fail: | |
14602 | return NULL; | |
14603 | } | |
14604 | ||
14605 | ||
d14a1e28 RD |
14606 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { |
14607 | PyObject *obj; | |
14608 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14609 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
14610 | Py_INCREF(obj); | |
14611 | return Py_BuildValue((char *)""); | |
14612 | } | |
14613 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14614 | PyObject *resultobj; | |
14615 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14616 | PyObject * obj0 = 0 ; | |
14617 | char *kwnames[] = { | |
14618 | (char *) "self", NULL | |
14619 | }; | |
14620 | ||
14621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14624 | { |
14625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14626 | delete arg1; | |
14627 | ||
14628 | wxPyEndAllowThreads(__tstate); | |
14629 | if (PyErr_Occurred()) SWIG_fail; | |
14630 | } | |
14631 | Py_INCREF(Py_None); resultobj = Py_None; | |
14632 | return resultobj; | |
14633 | fail: | |
14634 | return NULL; | |
14635 | } | |
14636 | ||
14637 | ||
14638 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14639 | PyObject *resultobj; | |
14640 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14641 | wxConfigBase *result; | |
14642 | PyObject * obj0 = 0 ; | |
14643 | char *kwnames[] = { | |
b88bce5f | 14644 | (char *) "config", NULL |
d14a1e28 RD |
14645 | }; |
14646 | ||
14647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14650 | { |
14651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14652 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
14653 | ||
14654 | wxPyEndAllowThreads(__tstate); | |
14655 | if (PyErr_Occurred()) SWIG_fail; | |
14656 | } | |
15afbcd0 | 14657 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14658 | return resultobj; |
14659 | fail: | |
14660 | return NULL; | |
14661 | } | |
14662 | ||
14663 | ||
14664 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14665 | PyObject *resultobj; | |
e811c8ce | 14666 | bool arg1 = (bool) True ; |
d14a1e28 RD |
14667 | wxConfigBase *result; |
14668 | PyObject * obj0 = 0 ; | |
14669 | char *kwnames[] = { | |
14670 | (char *) "createOnDemand", NULL | |
14671 | }; | |
14672 | ||
14673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
14674 | if (obj0) { | |
15afbcd0 RD |
14675 | arg1 = (bool) SWIG_AsBool(obj0); |
14676 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14677 | } |
14678 | { | |
14679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14680 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
14681 | ||
14682 | wxPyEndAllowThreads(__tstate); | |
14683 | if (PyErr_Occurred()) SWIG_fail; | |
14684 | } | |
15afbcd0 | 14685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14686 | return resultobj; |
14687 | fail: | |
14688 | return NULL; | |
14689 | } | |
14690 | ||
14691 | ||
14692 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14693 | PyObject *resultobj; | |
14694 | wxConfigBase *result; | |
14695 | char *kwnames[] = { | |
14696 | NULL | |
14697 | }; | |
14698 | ||
14699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
14700 | { | |
14701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14702 | result = (wxConfigBase *)wxConfigBase::Create(); | |
14703 | ||
14704 | wxPyEndAllowThreads(__tstate); | |
14705 | if (PyErr_Occurred()) SWIG_fail; | |
14706 | } | |
15afbcd0 | 14707 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14708 | return resultobj; |
14709 | fail: | |
14710 | return NULL; | |
14711 | } | |
14712 | ||
14713 | ||
14714 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14715 | PyObject *resultobj; | |
14716 | char *kwnames[] = { | |
14717 | NULL | |
14718 | }; | |
14719 | ||
14720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
14721 | { | |
14722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14723 | wxConfigBase::DontCreateOnDemand(); | |
14724 | ||
14725 | wxPyEndAllowThreads(__tstate); | |
14726 | if (PyErr_Occurred()) SWIG_fail; | |
14727 | } | |
14728 | Py_INCREF(Py_None); resultobj = Py_None; | |
14729 | return resultobj; | |
14730 | fail: | |
14731 | return NULL; | |
14732 | } | |
14733 | ||
14734 | ||
14735 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14736 | PyObject *resultobj; | |
14737 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14738 | wxString *arg2 = 0 ; | |
e811c8ce | 14739 | bool temp2 = False ; |
d14a1e28 RD |
14740 | PyObject * obj0 = 0 ; |
14741 | PyObject * obj1 = 0 ; | |
14742 | char *kwnames[] = { | |
b88bce5f | 14743 | (char *) "self",(char *) "path", NULL |
d14a1e28 RD |
14744 | }; |
14745 | ||
14746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14749 | { |
14750 | arg2 = wxString_in_helper(obj1); | |
14751 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14752 | temp2 = True; |
d14a1e28 RD |
14753 | } |
14754 | { | |
14755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14756 | (arg1)->SetPath((wxString const &)*arg2); | |
14757 | ||
14758 | wxPyEndAllowThreads(__tstate); | |
14759 | if (PyErr_Occurred()) SWIG_fail; | |
14760 | } | |
14761 | Py_INCREF(Py_None); resultobj = Py_None; | |
14762 | { | |
14763 | if (temp2) | |
14764 | delete arg2; | |
14765 | } | |
14766 | return resultobj; | |
14767 | fail: | |
14768 | { | |
14769 | if (temp2) | |
14770 | delete arg2; | |
14771 | } | |
14772 | return NULL; | |
14773 | } | |
14774 | ||
14775 | ||
14776 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14777 | PyObject *resultobj; | |
14778 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14779 | wxString *result; | |
14780 | PyObject * obj0 = 0 ; | |
14781 | char *kwnames[] = { | |
14782 | (char *) "self", NULL | |
14783 | }; | |
14784 | ||
14785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14788 | { |
14789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14790 | { | |
14791 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
14792 | result = (wxString *) &_result_ref; | |
14793 | } | |
14794 | ||
14795 | wxPyEndAllowThreads(__tstate); | |
14796 | if (PyErr_Occurred()) SWIG_fail; | |
14797 | } | |
cc6dd355 RD |
14798 | { |
14799 | #if wxUSE_UNICODE | |
14800 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14801 | #else | |
14802 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14803 | #endif | |
14804 | } | |
d14a1e28 RD |
14805 | return resultobj; |
14806 | fail: | |
14807 | return NULL; | |
14808 | } | |
14809 | ||
14810 | ||
14811 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14812 | PyObject *resultobj; | |
14813 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14814 | PyObject *result; | |
14815 | PyObject * obj0 = 0 ; | |
14816 | char *kwnames[] = { | |
14817 | (char *) "self", NULL | |
14818 | }; | |
14819 | ||
14820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14823 | { |
14824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14825 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
14826 | ||
14827 | wxPyEndAllowThreads(__tstate); | |
14828 | if (PyErr_Occurred()) SWIG_fail; | |
14829 | } | |
14830 | resultobj = result; | |
14831 | return resultobj; | |
14832 | fail: | |
14833 | return NULL; | |
14834 | } | |
14835 | ||
14836 | ||
14837 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14838 | PyObject *resultobj; | |
14839 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14840 | long arg2 ; | |
14841 | PyObject *result; | |
14842 | PyObject * obj0 = 0 ; | |
994141e6 | 14843 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14844 | char *kwnames[] = { |
14845 | (char *) "self",(char *) "index", NULL | |
14846 | }; | |
14847 | ||
994141e6 | 14848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14851 | arg2 = (long) SWIG_AsLong(obj1); | |
14852 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14853 | { |
14854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14855 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
14856 | ||
14857 | wxPyEndAllowThreads(__tstate); | |
14858 | if (PyErr_Occurred()) SWIG_fail; | |
14859 | } | |
14860 | resultobj = result; | |
14861 | return resultobj; | |
14862 | fail: | |
14863 | return NULL; | |
14864 | } | |
14865 | ||
14866 | ||
14867 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14868 | PyObject *resultobj; | |
14869 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14870 | PyObject *result; | |
14871 | PyObject * obj0 = 0 ; | |
14872 | char *kwnames[] = { | |
14873 | (char *) "self", NULL | |
14874 | }; | |
14875 | ||
14876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14879 | { |
14880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14881 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
14882 | ||
14883 | wxPyEndAllowThreads(__tstate); | |
14884 | if (PyErr_Occurred()) SWIG_fail; | |
14885 | } | |
14886 | resultobj = result; | |
14887 | return resultobj; | |
14888 | fail: | |
14889 | return NULL; | |
14890 | } | |
14891 | ||
14892 | ||
14893 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14894 | PyObject *resultobj; | |
14895 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14896 | long arg2 ; | |
14897 | PyObject *result; | |
14898 | PyObject * obj0 = 0 ; | |
994141e6 | 14899 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14900 | char *kwnames[] = { |
14901 | (char *) "self",(char *) "index", NULL | |
14902 | }; | |
14903 | ||
994141e6 | 14904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14907 | arg2 = (long) SWIG_AsLong(obj1); | |
14908 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14909 | { |
14910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14911 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
14912 | ||
14913 | wxPyEndAllowThreads(__tstate); | |
14914 | if (PyErr_Occurred()) SWIG_fail; | |
14915 | } | |
14916 | resultobj = result; | |
14917 | return resultobj; | |
14918 | fail: | |
14919 | return NULL; | |
14920 | } | |
14921 | ||
14922 | ||
14923 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14924 | PyObject *resultobj; | |
14925 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 14926 | bool arg2 = (bool) False ; |
d14a1e28 RD |
14927 | size_t result; |
14928 | PyObject * obj0 = 0 ; | |
14929 | PyObject * obj1 = 0 ; | |
14930 | char *kwnames[] = { | |
b88bce5f | 14931 | (char *) "self",(char *) "recursive", NULL |
d14a1e28 RD |
14932 | }; |
14933 | ||
14934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 14937 | if (obj1) { |
15afbcd0 RD |
14938 | arg2 = (bool) SWIG_AsBool(obj1); |
14939 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14940 | } |
14941 | { | |
14942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14943 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
14944 | ||
14945 | wxPyEndAllowThreads(__tstate); | |
14946 | if (PyErr_Occurred()) SWIG_fail; | |
14947 | } | |
15afbcd0 | 14948 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
14949 | return resultobj; |
14950 | fail: | |
14951 | return NULL; | |
14952 | } | |
14953 | ||
14954 | ||
14955 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14956 | PyObject *resultobj; | |
14957 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 14958 | bool arg2 = (bool) False ; |
d14a1e28 RD |
14959 | size_t result; |
14960 | PyObject * obj0 = 0 ; | |
14961 | PyObject * obj1 = 0 ; | |
14962 | char *kwnames[] = { | |
b88bce5f | 14963 | (char *) "self",(char *) "recursive", NULL |
d14a1e28 RD |
14964 | }; |
14965 | ||
14966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 14969 | if (obj1) { |
15afbcd0 RD |
14970 | arg2 = (bool) SWIG_AsBool(obj1); |
14971 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14972 | } |
14973 | { | |
14974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14975 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
14976 | ||
14977 | wxPyEndAllowThreads(__tstate); | |
14978 | if (PyErr_Occurred()) SWIG_fail; | |
14979 | } | |
15afbcd0 | 14980 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
14981 | return resultobj; |
14982 | fail: | |
14983 | return NULL; | |
14984 | } | |
14985 | ||
14986 | ||
14987 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14988 | PyObject *resultobj; | |
14989 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14990 | wxString *arg2 = 0 ; | |
14991 | bool result; | |
e811c8ce | 14992 | bool temp2 = False ; |
d14a1e28 RD |
14993 | PyObject * obj0 = 0 ; |
14994 | PyObject * obj1 = 0 ; | |
14995 | char *kwnames[] = { | |
b88bce5f | 14996 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
14997 | }; |
14998 | ||
14999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15002 | { |
15003 | arg2 = wxString_in_helper(obj1); | |
15004 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15005 | temp2 = True; |
d14a1e28 RD |
15006 | } |
15007 | { | |
15008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15009 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
15010 | ||
15011 | wxPyEndAllowThreads(__tstate); | |
15012 | if (PyErr_Occurred()) SWIG_fail; | |
15013 | } | |
4f89f6a3 RD |
15014 | { |
15015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15016 | } | |
d14a1e28 RD |
15017 | { |
15018 | if (temp2) | |
15019 | delete arg2; | |
15020 | } | |
15021 | return resultobj; | |
15022 | fail: | |
15023 | { | |
15024 | if (temp2) | |
15025 | delete arg2; | |
15026 | } | |
15027 | return NULL; | |
15028 | } | |
15029 | ||
15030 | ||
15031 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15032 | PyObject *resultobj; | |
15033 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15034 | wxString *arg2 = 0 ; | |
15035 | bool result; | |
e811c8ce | 15036 | bool temp2 = False ; |
d14a1e28 RD |
15037 | PyObject * obj0 = 0 ; |
15038 | PyObject * obj1 = 0 ; | |
15039 | char *kwnames[] = { | |
b88bce5f | 15040 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
15041 | }; |
15042 | ||
15043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15046 | { |
15047 | arg2 = wxString_in_helper(obj1); | |
15048 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15049 | temp2 = True; |
d14a1e28 RD |
15050 | } |
15051 | { | |
15052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15053 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
15054 | ||
15055 | wxPyEndAllowThreads(__tstate); | |
15056 | if (PyErr_Occurred()) SWIG_fail; | |
15057 | } | |
4f89f6a3 RD |
15058 | { |
15059 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15060 | } | |
d14a1e28 RD |
15061 | { |
15062 | if (temp2) | |
15063 | delete arg2; | |
15064 | } | |
15065 | return resultobj; | |
15066 | fail: | |
15067 | { | |
15068 | if (temp2) | |
15069 | delete arg2; | |
15070 | } | |
15071 | return NULL; | |
15072 | } | |
15073 | ||
15074 | ||
15075 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15076 | PyObject *resultobj; | |
15077 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15078 | wxString *arg2 = 0 ; | |
15079 | bool result; | |
e811c8ce | 15080 | bool temp2 = False ; |
d14a1e28 RD |
15081 | PyObject * obj0 = 0 ; |
15082 | PyObject * obj1 = 0 ; | |
15083 | char *kwnames[] = { | |
b88bce5f | 15084 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
15085 | }; |
15086 | ||
15087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15090 | { |
15091 | arg2 = wxString_in_helper(obj1); | |
15092 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15093 | temp2 = True; |
d14a1e28 RD |
15094 | } |
15095 | { | |
15096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15097 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
15098 | ||
15099 | wxPyEndAllowThreads(__tstate); | |
15100 | if (PyErr_Occurred()) SWIG_fail; | |
15101 | } | |
4f89f6a3 RD |
15102 | { |
15103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15104 | } | |
d14a1e28 RD |
15105 | { |
15106 | if (temp2) | |
15107 | delete arg2; | |
15108 | } | |
15109 | return resultobj; | |
15110 | fail: | |
15111 | { | |
15112 | if (temp2) | |
15113 | delete arg2; | |
15114 | } | |
15115 | return NULL; | |
15116 | } | |
15117 | ||
15118 | ||
15119 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15120 | PyObject *resultobj; | |
15121 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15122 | wxString *arg2 = 0 ; | |
15123 | int result; | |
e811c8ce | 15124 | bool temp2 = False ; |
d14a1e28 RD |
15125 | PyObject * obj0 = 0 ; |
15126 | PyObject * obj1 = 0 ; | |
15127 | char *kwnames[] = { | |
15128 | (char *) "self",(char *) "name", NULL | |
15129 | }; | |
15130 | ||
15131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15134 | { |
15135 | arg2 = wxString_in_helper(obj1); | |
15136 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15137 | temp2 = True; |
d14a1e28 RD |
15138 | } |
15139 | { | |
15140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15141 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
15142 | ||
15143 | wxPyEndAllowThreads(__tstate); | |
15144 | if (PyErr_Occurred()) SWIG_fail; | |
15145 | } | |
15afbcd0 | 15146 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15147 | { |
15148 | if (temp2) | |
15149 | delete arg2; | |
15150 | } | |
15151 | return resultobj; | |
15152 | fail: | |
15153 | { | |
15154 | if (temp2) | |
15155 | delete arg2; | |
15156 | } | |
15157 | return NULL; | |
15158 | } | |
15159 | ||
15160 | ||
15161 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15162 | PyObject *resultobj; | |
15163 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15164 | wxString *arg2 = 0 ; | |
15165 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15166 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15167 | wxString result; | |
e811c8ce RD |
15168 | bool temp2 = False ; |
15169 | bool temp3 = False ; | |
d14a1e28 RD |
15170 | PyObject * obj0 = 0 ; |
15171 | PyObject * obj1 = 0 ; | |
15172 | PyObject * obj2 = 0 ; | |
15173 | char *kwnames[] = { | |
15174 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15175 | }; | |
15176 | ||
15177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15180 | { |
15181 | arg2 = wxString_in_helper(obj1); | |
15182 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15183 | temp2 = True; |
d14a1e28 RD |
15184 | } |
15185 | if (obj2) { | |
15186 | { | |
15187 | arg3 = wxString_in_helper(obj2); | |
15188 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15189 | temp3 = True; |
d14a1e28 RD |
15190 | } |
15191 | } | |
15192 | { | |
15193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15194 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
15195 | ||
15196 | wxPyEndAllowThreads(__tstate); | |
15197 | if (PyErr_Occurred()) SWIG_fail; | |
15198 | } | |
15199 | { | |
15200 | #if wxUSE_UNICODE | |
15201 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15202 | #else | |
15203 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15204 | #endif | |
15205 | } | |
15206 | { | |
15207 | if (temp2) | |
15208 | delete arg2; | |
15209 | } | |
15210 | { | |
15211 | if (temp3) | |
15212 | delete arg3; | |
15213 | } | |
15214 | return resultobj; | |
15215 | fail: | |
15216 | { | |
15217 | if (temp2) | |
15218 | delete arg2; | |
15219 | } | |
15220 | { | |
15221 | if (temp3) | |
15222 | delete arg3; | |
15223 | } | |
15224 | return NULL; | |
15225 | } | |
15226 | ||
15227 | ||
15228 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15229 | PyObject *resultobj; | |
15230 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15231 | wxString *arg2 = 0 ; | |
15232 | long arg3 = (long) 0 ; | |
15233 | long result; | |
e811c8ce | 15234 | bool temp2 = False ; |
d14a1e28 RD |
15235 | PyObject * obj0 = 0 ; |
15236 | PyObject * obj1 = 0 ; | |
994141e6 | 15237 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15238 | char *kwnames[] = { |
15239 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15240 | }; | |
15241 | ||
994141e6 | 15242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15245 | { |
15246 | arg2 = wxString_in_helper(obj1); | |
15247 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15248 | temp2 = True; |
d14a1e28 | 15249 | } |
994141e6 | 15250 | if (obj2) { |
15afbcd0 RD |
15251 | arg3 = (long) SWIG_AsLong(obj2); |
15252 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15253 | } |
d14a1e28 RD |
15254 | { |
15255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15256 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
15257 | ||
15258 | wxPyEndAllowThreads(__tstate); | |
15259 | if (PyErr_Occurred()) SWIG_fail; | |
15260 | } | |
15afbcd0 | 15261 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
15262 | { |
15263 | if (temp2) | |
15264 | delete arg2; | |
15265 | } | |
15266 | return resultobj; | |
15267 | fail: | |
15268 | { | |
15269 | if (temp2) | |
15270 | delete arg2; | |
15271 | } | |
15272 | return NULL; | |
15273 | } | |
15274 | ||
15275 | ||
15276 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15277 | PyObject *resultobj; | |
15278 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15279 | wxString *arg2 = 0 ; | |
15280 | double arg3 = (double) 0.0 ; | |
15281 | double result; | |
e811c8ce | 15282 | bool temp2 = False ; |
d14a1e28 RD |
15283 | PyObject * obj0 = 0 ; |
15284 | PyObject * obj1 = 0 ; | |
994141e6 | 15285 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15286 | char *kwnames[] = { |
15287 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15288 | }; | |
15289 | ||
994141e6 | 15290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15293 | { |
15294 | arg2 = wxString_in_helper(obj1); | |
15295 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15296 | temp2 = True; |
d14a1e28 | 15297 | } |
994141e6 | 15298 | if (obj2) { |
15afbcd0 RD |
15299 | arg3 = (double) SWIG_AsDouble(obj2); |
15300 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15301 | } |
d14a1e28 RD |
15302 | { |
15303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15304 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
15305 | ||
15306 | wxPyEndAllowThreads(__tstate); | |
15307 | if (PyErr_Occurred()) SWIG_fail; | |
15308 | } | |
15afbcd0 | 15309 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
15310 | { |
15311 | if (temp2) | |
15312 | delete arg2; | |
15313 | } | |
15314 | return resultobj; | |
15315 | fail: | |
15316 | { | |
15317 | if (temp2) | |
15318 | delete arg2; | |
15319 | } | |
15320 | return NULL; | |
15321 | } | |
15322 | ||
15323 | ||
15324 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15325 | PyObject *resultobj; | |
15326 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15327 | wxString *arg2 = 0 ; | |
e811c8ce | 15328 | bool arg3 = (bool) False ; |
d14a1e28 | 15329 | bool result; |
e811c8ce | 15330 | bool temp2 = False ; |
d14a1e28 RD |
15331 | PyObject * obj0 = 0 ; |
15332 | PyObject * obj1 = 0 ; | |
15333 | PyObject * obj2 = 0 ; | |
15334 | char *kwnames[] = { | |
15335 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15336 | }; | |
15337 | ||
15338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15341 | { |
15342 | arg2 = wxString_in_helper(obj1); | |
15343 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15344 | temp2 = True; |
d14a1e28 RD |
15345 | } |
15346 | if (obj2) { | |
15afbcd0 RD |
15347 | arg3 = (bool) SWIG_AsBool(obj2); |
15348 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15349 | } |
15350 | { | |
15351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15352 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
15353 | ||
15354 | wxPyEndAllowThreads(__tstate); | |
15355 | if (PyErr_Occurred()) SWIG_fail; | |
15356 | } | |
4f89f6a3 RD |
15357 | { |
15358 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15359 | } | |
d14a1e28 RD |
15360 | { |
15361 | if (temp2) | |
15362 | delete arg2; | |
15363 | } | |
15364 | return resultobj; | |
15365 | fail: | |
15366 | { | |
15367 | if (temp2) | |
15368 | delete arg2; | |
15369 | } | |
15370 | return NULL; | |
15371 | } | |
15372 | ||
15373 | ||
15374 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15375 | PyObject *resultobj; | |
15376 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15377 | wxString *arg2 = 0 ; | |
15378 | wxString *arg3 = 0 ; | |
15379 | bool result; | |
e811c8ce RD |
15380 | bool temp2 = False ; |
15381 | bool temp3 = False ; | |
d14a1e28 RD |
15382 | PyObject * obj0 = 0 ; |
15383 | PyObject * obj1 = 0 ; | |
15384 | PyObject * obj2 = 0 ; | |
15385 | char *kwnames[] = { | |
15386 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15387 | }; | |
15388 | ||
15389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15392 | { |
15393 | arg2 = wxString_in_helper(obj1); | |
15394 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15395 | temp2 = True; |
d14a1e28 RD |
15396 | } |
15397 | { | |
15398 | arg3 = wxString_in_helper(obj2); | |
15399 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15400 | temp3 = True; |
d14a1e28 RD |
15401 | } |
15402 | { | |
15403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15404 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
15405 | ||
15406 | wxPyEndAllowThreads(__tstate); | |
15407 | if (PyErr_Occurred()) SWIG_fail; | |
15408 | } | |
4f89f6a3 RD |
15409 | { |
15410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15411 | } | |
d14a1e28 RD |
15412 | { |
15413 | if (temp2) | |
15414 | delete arg2; | |
15415 | } | |
15416 | { | |
15417 | if (temp3) | |
15418 | delete arg3; | |
15419 | } | |
15420 | return resultobj; | |
15421 | fail: | |
15422 | { | |
15423 | if (temp2) | |
15424 | delete arg2; | |
15425 | } | |
15426 | { | |
15427 | if (temp3) | |
15428 | delete arg3; | |
15429 | } | |
15430 | return NULL; | |
15431 | } | |
15432 | ||
15433 | ||
15434 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15435 | PyObject *resultobj; | |
15436 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15437 | wxString *arg2 = 0 ; | |
15438 | long arg3 ; | |
15439 | bool result; | |
e811c8ce | 15440 | bool temp2 = False ; |
d14a1e28 RD |
15441 | PyObject * obj0 = 0 ; |
15442 | PyObject * obj1 = 0 ; | |
994141e6 | 15443 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15444 | char *kwnames[] = { |
15445 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15446 | }; | |
15447 | ||
994141e6 | 15448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15451 | { |
15452 | arg2 = wxString_in_helper(obj1); | |
15453 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15454 | temp2 = True; |
d14a1e28 | 15455 | } |
15afbcd0 RD |
15456 | arg3 = (long) SWIG_AsLong(obj2); |
15457 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15458 | { |
15459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15460 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15461 | ||
15462 | wxPyEndAllowThreads(__tstate); | |
15463 | if (PyErr_Occurred()) SWIG_fail; | |
15464 | } | |
4f89f6a3 RD |
15465 | { |
15466 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15467 | } | |
d14a1e28 RD |
15468 | { |
15469 | if (temp2) | |
15470 | delete arg2; | |
15471 | } | |
15472 | return resultobj; | |
15473 | fail: | |
15474 | { | |
15475 | if (temp2) | |
15476 | delete arg2; | |
15477 | } | |
15478 | return NULL; | |
15479 | } | |
15480 | ||
15481 | ||
15482 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15483 | PyObject *resultobj; | |
15484 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15485 | wxString *arg2 = 0 ; | |
15486 | double arg3 ; | |
15487 | bool result; | |
e811c8ce | 15488 | bool temp2 = False ; |
d14a1e28 RD |
15489 | PyObject * obj0 = 0 ; |
15490 | PyObject * obj1 = 0 ; | |
994141e6 | 15491 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15492 | char *kwnames[] = { |
15493 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15494 | }; | |
15495 | ||
994141e6 | 15496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15499 | { |
15500 | arg2 = wxString_in_helper(obj1); | |
15501 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15502 | temp2 = True; |
d14a1e28 | 15503 | } |
15afbcd0 RD |
15504 | arg3 = (double) SWIG_AsDouble(obj2); |
15505 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15506 | { |
15507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15508 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15509 | ||
15510 | wxPyEndAllowThreads(__tstate); | |
15511 | if (PyErr_Occurred()) SWIG_fail; | |
15512 | } | |
4f89f6a3 RD |
15513 | { |
15514 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15515 | } | |
d14a1e28 RD |
15516 | { |
15517 | if (temp2) | |
15518 | delete arg2; | |
15519 | } | |
15520 | return resultobj; | |
15521 | fail: | |
15522 | { | |
15523 | if (temp2) | |
15524 | delete arg2; | |
15525 | } | |
15526 | return NULL; | |
15527 | } | |
15528 | ||
15529 | ||
15530 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15531 | PyObject *resultobj; | |
15532 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15533 | wxString *arg2 = 0 ; | |
15534 | bool arg3 ; | |
15535 | bool result; | |
e811c8ce | 15536 | bool temp2 = False ; |
d14a1e28 RD |
15537 | PyObject * obj0 = 0 ; |
15538 | PyObject * obj1 = 0 ; | |
15539 | PyObject * obj2 = 0 ; | |
15540 | char *kwnames[] = { | |
15541 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15542 | }; | |
15543 | ||
15544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15547 | { |
15548 | arg2 = wxString_in_helper(obj1); | |
15549 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15550 | temp2 = True; |
d14a1e28 | 15551 | } |
15afbcd0 RD |
15552 | arg3 = (bool) SWIG_AsBool(obj2); |
15553 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15554 | { |
15555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15556 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15557 | ||
15558 | wxPyEndAllowThreads(__tstate); | |
15559 | if (PyErr_Occurred()) SWIG_fail; | |
15560 | } | |
4f89f6a3 RD |
15561 | { |
15562 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15563 | } | |
d14a1e28 RD |
15564 | { |
15565 | if (temp2) | |
15566 | delete arg2; | |
15567 | } | |
15568 | return resultobj; | |
15569 | fail: | |
15570 | { | |
15571 | if (temp2) | |
15572 | delete arg2; | |
15573 | } | |
15574 | return NULL; | |
15575 | } | |
15576 | ||
15577 | ||
15578 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15579 | PyObject *resultobj; | |
15580 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 15581 | bool arg2 = (bool) False ; |
d14a1e28 RD |
15582 | bool result; |
15583 | PyObject * obj0 = 0 ; | |
15584 | PyObject * obj1 = 0 ; | |
15585 | char *kwnames[] = { | |
b88bce5f | 15586 | (char *) "self",(char *) "currentOnly", NULL |
d14a1e28 RD |
15587 | }; |
15588 | ||
15589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15592 | if (obj1) { |
15afbcd0 RD |
15593 | arg2 = (bool) SWIG_AsBool(obj1); |
15594 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15595 | } |
15596 | { | |
15597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15598 | result = (bool)(arg1)->Flush(arg2); | |
15599 | ||
15600 | wxPyEndAllowThreads(__tstate); | |
15601 | if (PyErr_Occurred()) SWIG_fail; | |
15602 | } | |
4f89f6a3 RD |
15603 | { |
15604 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15605 | } | |
d14a1e28 RD |
15606 | return resultobj; |
15607 | fail: | |
15608 | return NULL; | |
15609 | } | |
15610 | ||
15611 | ||
15612 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15613 | PyObject *resultobj; | |
15614 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15615 | wxString *arg2 = 0 ; | |
15616 | wxString *arg3 = 0 ; | |
15617 | bool result; | |
e811c8ce RD |
15618 | bool temp2 = False ; |
15619 | bool temp3 = False ; | |
d14a1e28 RD |
15620 | PyObject * obj0 = 0 ; |
15621 | PyObject * obj1 = 0 ; | |
15622 | PyObject * obj2 = 0 ; | |
15623 | char *kwnames[] = { | |
15624 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15625 | }; | |
15626 | ||
15627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15630 | { |
15631 | arg2 = wxString_in_helper(obj1); | |
15632 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15633 | temp2 = True; |
d14a1e28 RD |
15634 | } |
15635 | { | |
15636 | arg3 = wxString_in_helper(obj2); | |
15637 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15638 | temp3 = True; |
d14a1e28 RD |
15639 | } |
15640 | { | |
15641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15642 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
15643 | ||
15644 | wxPyEndAllowThreads(__tstate); | |
15645 | if (PyErr_Occurred()) SWIG_fail; | |
15646 | } | |
4f89f6a3 RD |
15647 | { |
15648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15649 | } | |
d14a1e28 RD |
15650 | { |
15651 | if (temp2) | |
15652 | delete arg2; | |
15653 | } | |
15654 | { | |
15655 | if (temp3) | |
15656 | delete arg3; | |
15657 | } | |
15658 | return resultobj; | |
15659 | fail: | |
15660 | { | |
15661 | if (temp2) | |
15662 | delete arg2; | |
15663 | } | |
15664 | { | |
15665 | if (temp3) | |
15666 | delete arg3; | |
15667 | } | |
15668 | return NULL; | |
15669 | } | |
15670 | ||
15671 | ||
15672 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15673 | PyObject *resultobj; | |
15674 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15675 | wxString *arg2 = 0 ; | |
15676 | wxString *arg3 = 0 ; | |
15677 | bool result; | |
e811c8ce RD |
15678 | bool temp2 = False ; |
15679 | bool temp3 = False ; | |
d14a1e28 RD |
15680 | PyObject * obj0 = 0 ; |
15681 | PyObject * obj1 = 0 ; | |
15682 | PyObject * obj2 = 0 ; | |
15683 | char *kwnames[] = { | |
15684 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15685 | }; | |
15686 | ||
15687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15690 | { |
15691 | arg2 = wxString_in_helper(obj1); | |
15692 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15693 | temp2 = True; |
d14a1e28 RD |
15694 | } |
15695 | { | |
15696 | arg3 = wxString_in_helper(obj2); | |
15697 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15698 | temp3 = True; |
d14a1e28 RD |
15699 | } |
15700 | { | |
15701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15702 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
15703 | ||
15704 | wxPyEndAllowThreads(__tstate); | |
15705 | if (PyErr_Occurred()) SWIG_fail; | |
15706 | } | |
4f89f6a3 RD |
15707 | { |
15708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15709 | } | |
d14a1e28 RD |
15710 | { |
15711 | if (temp2) | |
15712 | delete arg2; | |
15713 | } | |
15714 | { | |
15715 | if (temp3) | |
15716 | delete arg3; | |
15717 | } | |
15718 | return resultobj; | |
15719 | fail: | |
15720 | { | |
15721 | if (temp2) | |
15722 | delete arg2; | |
15723 | } | |
15724 | { | |
15725 | if (temp3) | |
15726 | delete arg3; | |
15727 | } | |
15728 | return NULL; | |
15729 | } | |
15730 | ||
15731 | ||
15732 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15733 | PyObject *resultobj; | |
15734 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15735 | wxString *arg2 = 0 ; | |
e811c8ce | 15736 | bool arg3 = (bool) True ; |
d14a1e28 | 15737 | bool result; |
e811c8ce | 15738 | bool temp2 = False ; |
d14a1e28 RD |
15739 | PyObject * obj0 = 0 ; |
15740 | PyObject * obj1 = 0 ; | |
15741 | PyObject * obj2 = 0 ; | |
15742 | char *kwnames[] = { | |
b88bce5f | 15743 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL |
d14a1e28 RD |
15744 | }; |
15745 | ||
15746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15749 | { |
15750 | arg2 = wxString_in_helper(obj1); | |
15751 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15752 | temp2 = True; |
d14a1e28 RD |
15753 | } |
15754 | if (obj2) { | |
15afbcd0 RD |
15755 | arg3 = (bool) SWIG_AsBool(obj2); |
15756 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15757 | } |
15758 | { | |
15759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15760 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
15761 | ||
15762 | wxPyEndAllowThreads(__tstate); | |
15763 | if (PyErr_Occurred()) SWIG_fail; | |
15764 | } | |
4f89f6a3 RD |
15765 | { |
15766 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15767 | } | |
d14a1e28 RD |
15768 | { |
15769 | if (temp2) | |
15770 | delete arg2; | |
15771 | } | |
15772 | return resultobj; | |
15773 | fail: | |
15774 | { | |
15775 | if (temp2) | |
15776 | delete arg2; | |
15777 | } | |
15778 | return NULL; | |
15779 | } | |
15780 | ||
15781 | ||
15782 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15783 | PyObject *resultobj; | |
15784 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15785 | wxString *arg2 = 0 ; | |
15786 | bool result; | |
e811c8ce | 15787 | bool temp2 = False ; |
d14a1e28 RD |
15788 | PyObject * obj0 = 0 ; |
15789 | PyObject * obj1 = 0 ; | |
15790 | char *kwnames[] = { | |
15791 | (char *) "self",(char *) "key", NULL | |
15792 | }; | |
15793 | ||
15794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15797 | { |
15798 | arg2 = wxString_in_helper(obj1); | |
15799 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15800 | temp2 = True; |
d14a1e28 RD |
15801 | } |
15802 | { | |
15803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15804 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
15805 | ||
15806 | wxPyEndAllowThreads(__tstate); | |
15807 | if (PyErr_Occurred()) SWIG_fail; | |
15808 | } | |
4f89f6a3 RD |
15809 | { |
15810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15811 | } | |
d14a1e28 RD |
15812 | { |
15813 | if (temp2) | |
15814 | delete arg2; | |
15815 | } | |
15816 | return resultobj; | |
15817 | fail: | |
15818 | { | |
15819 | if (temp2) | |
15820 | delete arg2; | |
15821 | } | |
15822 | return NULL; | |
15823 | } | |
15824 | ||
15825 | ||
15826 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15827 | PyObject *resultobj; | |
15828 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15829 | bool result; | |
15830 | PyObject * obj0 = 0 ; | |
15831 | char *kwnames[] = { | |
15832 | (char *) "self", NULL | |
15833 | }; | |
15834 | ||
15835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15838 | { |
15839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15840 | result = (bool)(arg1)->DeleteAll(); | |
15841 | ||
15842 | wxPyEndAllowThreads(__tstate); | |
15843 | if (PyErr_Occurred()) SWIG_fail; | |
15844 | } | |
4f89f6a3 RD |
15845 | { |
15846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15847 | } | |
d14a1e28 RD |
15848 | return resultobj; |
15849 | fail: | |
15850 | return NULL; | |
15851 | } | |
15852 | ||
15853 | ||
b88bce5f | 15854 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15855 | PyObject *resultobj; |
15856 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b88bce5f | 15857 | bool arg2 = (bool) True ; |
d14a1e28 | 15858 | PyObject * obj0 = 0 ; |
b88bce5f | 15859 | PyObject * obj1 = 0 ; |
d14a1e28 | 15860 | char *kwnames[] = { |
b88bce5f | 15861 | (char *) "self",(char *) "doIt", NULL |
d14a1e28 RD |
15862 | }; |
15863 | ||
b88bce5f | 15864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f | 15867 | if (obj1) { |
15afbcd0 RD |
15868 | arg2 = (bool) SWIG_AsBool(obj1); |
15869 | if (PyErr_Occurred()) SWIG_fail; | |
b88bce5f | 15870 | } |
d14a1e28 RD |
15871 | { |
15872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 15873 | (arg1)->SetExpandEnvVars(arg2); |
d14a1e28 RD |
15874 | |
15875 | wxPyEndAllowThreads(__tstate); | |
15876 | if (PyErr_Occurred()) SWIG_fail; | |
15877 | } | |
b88bce5f | 15878 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
15879 | return resultobj; |
15880 | fail: | |
15881 | return NULL; | |
15882 | } | |
15883 | ||
15884 | ||
b88bce5f | 15885 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15886 | PyObject *resultobj; |
15887 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b88bce5f | 15888 | bool result; |
d14a1e28 | 15889 | PyObject * obj0 = 0 ; |
d14a1e28 | 15890 | char *kwnames[] = { |
b88bce5f | 15891 | (char *) "self", NULL |
d14a1e28 RD |
15892 | }; |
15893 | ||
b88bce5f | 15894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
15895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15897 | { |
15898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 15899 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); |
d14a1e28 RD |
15900 | |
15901 | wxPyEndAllowThreads(__tstate); | |
15902 | if (PyErr_Occurred()) SWIG_fail; | |
15903 | } | |
4f89f6a3 RD |
15904 | { |
15905 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15906 | } | |
d14a1e28 RD |
15907 | return resultobj; |
15908 | fail: | |
15909 | return NULL; | |
15910 | } | |
15911 | ||
15912 | ||
15913 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15914 | PyObject *resultobj; | |
15915 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 15916 | bool arg2 = (bool) True ; |
d14a1e28 RD |
15917 | PyObject * obj0 = 0 ; |
15918 | PyObject * obj1 = 0 ; | |
15919 | char *kwnames[] = { | |
b88bce5f | 15920 | (char *) "self",(char *) "doIt", NULL |
d14a1e28 RD |
15921 | }; |
15922 | ||
15923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15926 | if (obj1) { |
15afbcd0 RD |
15927 | arg2 = (bool) SWIG_AsBool(obj1); |
15928 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15929 | } |
15930 | { | |
15931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15932 | (arg1)->SetRecordDefaults(arg2); | |
15933 | ||
15934 | wxPyEndAllowThreads(__tstate); | |
15935 | if (PyErr_Occurred()) SWIG_fail; | |
15936 | } | |
15937 | Py_INCREF(Py_None); resultobj = Py_None; | |
15938 | return resultobj; | |
15939 | fail: | |
15940 | return NULL; | |
15941 | } | |
15942 | ||
15943 | ||
15944 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15945 | PyObject *resultobj; | |
15946 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15947 | bool result; | |
15948 | PyObject * obj0 = 0 ; | |
15949 | char *kwnames[] = { | |
15950 | (char *) "self", NULL | |
15951 | }; | |
15952 | ||
15953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15956 | { |
15957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15958 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
15959 | ||
15960 | wxPyEndAllowThreads(__tstate); | |
15961 | if (PyErr_Occurred()) SWIG_fail; | |
15962 | } | |
4f89f6a3 RD |
15963 | { |
15964 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15965 | } | |
d14a1e28 RD |
15966 | return resultobj; |
15967 | fail: | |
15968 | return NULL; | |
15969 | } | |
15970 | ||
15971 | ||
15972 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15973 | PyObject *resultobj; | |
15974 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15975 | wxString *arg2 = 0 ; | |
15976 | wxString result; | |
e811c8ce | 15977 | bool temp2 = False ; |
d14a1e28 RD |
15978 | PyObject * obj0 = 0 ; |
15979 | PyObject * obj1 = 0 ; | |
15980 | char *kwnames[] = { | |
15981 | (char *) "self",(char *) "str", NULL | |
15982 | }; | |
15983 | ||
15984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15987 | { |
15988 | arg2 = wxString_in_helper(obj1); | |
15989 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15990 | temp2 = True; |
d14a1e28 RD |
15991 | } |
15992 | { | |
15993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15994 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
15995 | ||
15996 | wxPyEndAllowThreads(__tstate); | |
15997 | if (PyErr_Occurred()) SWIG_fail; | |
15998 | } | |
15999 | { | |
16000 | #if wxUSE_UNICODE | |
16001 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16002 | #else | |
16003 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16004 | #endif | |
16005 | } | |
16006 | { | |
16007 | if (temp2) | |
16008 | delete arg2; | |
16009 | } | |
16010 | return resultobj; | |
16011 | fail: | |
16012 | { | |
16013 | if (temp2) | |
16014 | delete arg2; | |
16015 | } | |
16016 | return NULL; | |
16017 | } | |
16018 | ||
16019 | ||
16020 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16021 | PyObject *resultobj; | |
16022 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16023 | wxString result; | |
16024 | PyObject * obj0 = 0 ; | |
16025 | char *kwnames[] = { | |
16026 | (char *) "self", NULL | |
16027 | }; | |
16028 | ||
16029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16032 | { |
16033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16034 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
16035 | ||
16036 | wxPyEndAllowThreads(__tstate); | |
16037 | if (PyErr_Occurred()) SWIG_fail; | |
16038 | } | |
16039 | { | |
16040 | #if wxUSE_UNICODE | |
16041 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16042 | #else | |
16043 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16044 | #endif | |
16045 | } | |
16046 | return resultobj; | |
16047 | fail: | |
16048 | return NULL; | |
16049 | } | |
16050 | ||
16051 | ||
16052 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16053 | PyObject *resultobj; | |
16054 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16055 | wxString result; | |
16056 | PyObject * obj0 = 0 ; | |
16057 | char *kwnames[] = { | |
16058 | (char *) "self", NULL | |
16059 | }; | |
16060 | ||
16061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16064 | { |
16065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16066 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
16067 | ||
16068 | wxPyEndAllowThreads(__tstate); | |
16069 | if (PyErr_Occurred()) SWIG_fail; | |
16070 | } | |
16071 | { | |
16072 | #if wxUSE_UNICODE | |
16073 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16074 | #else | |
16075 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16076 | #endif | |
16077 | } | |
16078 | return resultobj; | |
16079 | fail: | |
16080 | return NULL; | |
16081 | } | |
16082 | ||
16083 | ||
16084 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16085 | PyObject *resultobj; | |
16086 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16087 | wxString *arg2 = 0 ; | |
e811c8ce | 16088 | bool temp2 = False ; |
d14a1e28 RD |
16089 | PyObject * obj0 = 0 ; |
16090 | PyObject * obj1 = 0 ; | |
16091 | char *kwnames[] = { | |
16092 | (char *) "self",(char *) "appName", NULL | |
16093 | }; | |
16094 | ||
16095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16098 | { |
16099 | arg2 = wxString_in_helper(obj1); | |
16100 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16101 | temp2 = True; |
d14a1e28 RD |
16102 | } |
16103 | { | |
16104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16105 | (arg1)->SetAppName((wxString const &)*arg2); | |
16106 | ||
16107 | wxPyEndAllowThreads(__tstate); | |
16108 | if (PyErr_Occurred()) SWIG_fail; | |
16109 | } | |
16110 | Py_INCREF(Py_None); resultobj = Py_None; | |
16111 | { | |
16112 | if (temp2) | |
16113 | delete arg2; | |
16114 | } | |
16115 | return resultobj; | |
16116 | fail: | |
16117 | { | |
16118 | if (temp2) | |
16119 | delete arg2; | |
16120 | } | |
16121 | return NULL; | |
16122 | } | |
16123 | ||
16124 | ||
16125 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16126 | PyObject *resultobj; | |
16127 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16128 | wxString *arg2 = 0 ; | |
e811c8ce | 16129 | bool temp2 = False ; |
d14a1e28 RD |
16130 | PyObject * obj0 = 0 ; |
16131 | PyObject * obj1 = 0 ; | |
16132 | char *kwnames[] = { | |
16133 | (char *) "self",(char *) "vendorName", NULL | |
16134 | }; | |
16135 | ||
16136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16139 | { |
16140 | arg2 = wxString_in_helper(obj1); | |
16141 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16142 | temp2 = True; |
d14a1e28 RD |
16143 | } |
16144 | { | |
16145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16146 | (arg1)->SetVendorName((wxString const &)*arg2); | |
16147 | ||
16148 | wxPyEndAllowThreads(__tstate); | |
16149 | if (PyErr_Occurred()) SWIG_fail; | |
16150 | } | |
16151 | Py_INCREF(Py_None); resultobj = Py_None; | |
16152 | { | |
16153 | if (temp2) | |
16154 | delete arg2; | |
16155 | } | |
16156 | return resultobj; | |
16157 | fail: | |
16158 | { | |
16159 | if (temp2) | |
16160 | delete arg2; | |
16161 | } | |
16162 | return NULL; | |
16163 | } | |
16164 | ||
16165 | ||
16166 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16167 | PyObject *resultobj; | |
16168 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16169 | long arg2 ; | |
16170 | PyObject * obj0 = 0 ; | |
994141e6 | 16171 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16172 | char *kwnames[] = { |
16173 | (char *) "self",(char *) "style", NULL | |
16174 | }; | |
16175 | ||
994141e6 | 16176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16179 | arg2 = (long) SWIG_AsLong(obj1); | |
16180 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16181 | { |
16182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16183 | (arg1)->SetStyle(arg2); | |
16184 | ||
16185 | wxPyEndAllowThreads(__tstate); | |
16186 | if (PyErr_Occurred()) SWIG_fail; | |
16187 | } | |
16188 | Py_INCREF(Py_None); resultobj = Py_None; | |
16189 | return resultobj; | |
16190 | fail: | |
16191 | return NULL; | |
16192 | } | |
16193 | ||
16194 | ||
16195 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16196 | PyObject *resultobj; | |
16197 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16198 | long result; | |
16199 | PyObject * obj0 = 0 ; | |
16200 | char *kwnames[] = { | |
16201 | (char *) "self", NULL | |
16202 | }; | |
16203 | ||
16204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16207 | { |
16208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16209 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
16210 | ||
16211 | wxPyEndAllowThreads(__tstate); | |
16212 | if (PyErr_Occurred()) SWIG_fail; | |
16213 | } | |
15afbcd0 | 16214 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
16215 | return resultobj; |
16216 | fail: | |
16217 | return NULL; | |
16218 | } | |
16219 | ||
16220 | ||
16221 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
16222 | PyObject *obj; | |
16223 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16224 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
16225 | Py_INCREF(obj); | |
16226 | return Py_BuildValue((char *)""); | |
16227 | } | |
d14a1e28 RD |
16228 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { |
16229 | PyObject *resultobj; | |
16230 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16231 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16232 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16233 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16234 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16235 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16236 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16237 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4f89f6a3 | 16238 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; |
d14a1e28 | 16239 | wxConfig *result; |
e811c8ce RD |
16240 | bool temp1 = False ; |
16241 | bool temp2 = False ; | |
16242 | bool temp3 = False ; | |
16243 | bool temp4 = False ; | |
d14a1e28 RD |
16244 | PyObject * obj0 = 0 ; |
16245 | PyObject * obj1 = 0 ; | |
16246 | PyObject * obj2 = 0 ; | |
16247 | PyObject * obj3 = 0 ; | |
994141e6 | 16248 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16249 | char *kwnames[] = { |
16250 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16251 | }; | |
16252 | ||
994141e6 | 16253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
16254 | if (obj0) { |
16255 | { | |
16256 | arg1 = wxString_in_helper(obj0); | |
16257 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16258 | temp1 = True; |
d14a1e28 RD |
16259 | } |
16260 | } | |
16261 | if (obj1) { | |
16262 | { | |
16263 | arg2 = wxString_in_helper(obj1); | |
16264 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16265 | temp2 = True; |
d14a1e28 RD |
16266 | } |
16267 | } | |
16268 | if (obj2) { | |
16269 | { | |
16270 | arg3 = wxString_in_helper(obj2); | |
16271 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16272 | temp3 = True; |
d14a1e28 RD |
16273 | } |
16274 | } | |
16275 | if (obj3) { | |
16276 | { | |
16277 | arg4 = wxString_in_helper(obj3); | |
16278 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 16279 | temp4 = True; |
d14a1e28 RD |
16280 | } |
16281 | } | |
994141e6 | 16282 | if (obj4) { |
15afbcd0 RD |
16283 | arg5 = (long) SWIG_AsLong(obj4); |
16284 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16285 | } |
d14a1e28 RD |
16286 | { |
16287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16288 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16289 | ||
16290 | wxPyEndAllowThreads(__tstate); | |
16291 | if (PyErr_Occurred()) SWIG_fail; | |
16292 | } | |
15afbcd0 | 16293 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); |
d14a1e28 RD |
16294 | { |
16295 | if (temp1) | |
16296 | delete arg1; | |
16297 | } | |
16298 | { | |
16299 | if (temp2) | |
16300 | delete arg2; | |
16301 | } | |
16302 | { | |
16303 | if (temp3) | |
16304 | delete arg3; | |
16305 | } | |
16306 | { | |
16307 | if (temp4) | |
16308 | delete arg4; | |
16309 | } | |
16310 | return resultobj; | |
16311 | fail: | |
16312 | { | |
16313 | if (temp1) | |
16314 | delete arg1; | |
16315 | } | |
16316 | { | |
16317 | if (temp2) | |
16318 | delete arg2; | |
16319 | } | |
16320 | { | |
16321 | if (temp3) | |
16322 | delete arg3; | |
16323 | } | |
16324 | { | |
16325 | if (temp4) | |
16326 | delete arg4; | |
16327 | } | |
16328 | return NULL; | |
16329 | } | |
16330 | ||
16331 | ||
16332 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16333 | PyObject *resultobj; | |
16334 | wxConfig *arg1 = (wxConfig *) 0 ; | |
16335 | PyObject * obj0 = 0 ; | |
16336 | char *kwnames[] = { | |
16337 | (char *) "self", NULL | |
16338 | }; | |
16339 | ||
16340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig, |
16342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16343 | { |
16344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16345 | delete arg1; | |
16346 | ||
16347 | wxPyEndAllowThreads(__tstate); | |
16348 | if (PyErr_Occurred()) SWIG_fail; | |
16349 | } | |
16350 | Py_INCREF(Py_None); resultobj = Py_None; | |
16351 | return resultobj; | |
16352 | fail: | |
16353 | return NULL; | |
16354 | } | |
16355 | ||
16356 | ||
16357 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
16358 | PyObject *obj; | |
16359 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16360 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
16361 | Py_INCREF(obj); | |
16362 | return Py_BuildValue((char *)""); | |
16363 | } | |
16364 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16365 | PyObject *resultobj; | |
16366 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16367 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16368 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16369 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16370 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16371 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16372 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16373 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4276dc52 | 16374 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; |
d14a1e28 | 16375 | wxFileConfig *result; |
e811c8ce RD |
16376 | bool temp1 = False ; |
16377 | bool temp2 = False ; | |
16378 | bool temp3 = False ; | |
16379 | bool temp4 = False ; | |
d14a1e28 RD |
16380 | PyObject * obj0 = 0 ; |
16381 | PyObject * obj1 = 0 ; | |
16382 | PyObject * obj2 = 0 ; | |
16383 | PyObject * obj3 = 0 ; | |
994141e6 | 16384 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16385 | char *kwnames[] = { |
16386 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16387 | }; | |
16388 | ||
994141e6 | 16389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
16390 | if (obj0) { |
16391 | { | |
16392 | arg1 = wxString_in_helper(obj0); | |
16393 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16394 | temp1 = True; |
d14a1e28 RD |
16395 | } |
16396 | } | |
16397 | if (obj1) { | |
16398 | { | |
16399 | arg2 = wxString_in_helper(obj1); | |
16400 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16401 | temp2 = True; |
d14a1e28 RD |
16402 | } |
16403 | } | |
16404 | if (obj2) { | |
16405 | { | |
16406 | arg3 = wxString_in_helper(obj2); | |
16407 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16408 | temp3 = True; |
d14a1e28 RD |
16409 | } |
16410 | } | |
16411 | if (obj3) { | |
16412 | { | |
16413 | arg4 = wxString_in_helper(obj3); | |
16414 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 16415 | temp4 = True; |
d14a1e28 RD |
16416 | } |
16417 | } | |
994141e6 | 16418 | if (obj4) { |
15afbcd0 RD |
16419 | arg5 = (long) SWIG_AsLong(obj4); |
16420 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16421 | } |
d14a1e28 RD |
16422 | { |
16423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16424 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16425 | ||
16426 | wxPyEndAllowThreads(__tstate); | |
16427 | if (PyErr_Occurred()) SWIG_fail; | |
16428 | } | |
15afbcd0 | 16429 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); |
d14a1e28 RD |
16430 | { |
16431 | if (temp1) | |
16432 | delete arg1; | |
16433 | } | |
16434 | { | |
16435 | if (temp2) | |
16436 | delete arg2; | |
16437 | } | |
16438 | { | |
16439 | if (temp3) | |
16440 | delete arg3; | |
16441 | } | |
16442 | { | |
16443 | if (temp4) | |
16444 | delete arg4; | |
16445 | } | |
16446 | return resultobj; | |
16447 | fail: | |
16448 | { | |
16449 | if (temp1) | |
16450 | delete arg1; | |
16451 | } | |
16452 | { | |
16453 | if (temp2) | |
16454 | delete arg2; | |
16455 | } | |
16456 | { | |
16457 | if (temp3) | |
16458 | delete arg3; | |
16459 | } | |
16460 | { | |
16461 | if (temp4) | |
16462 | delete arg4; | |
16463 | } | |
16464 | return NULL; | |
16465 | } | |
16466 | ||
16467 | ||
16468 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16469 | PyObject *resultobj; | |
16470 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
16471 | PyObject * obj0 = 0 ; | |
16472 | char *kwnames[] = { | |
16473 | (char *) "self", NULL | |
16474 | }; | |
16475 | ||
16476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig, |
16478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16479 | { |
16480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16481 | delete arg1; | |
16482 | ||
16483 | wxPyEndAllowThreads(__tstate); | |
16484 | if (PyErr_Occurred()) SWIG_fail; | |
16485 | } | |
16486 | Py_INCREF(Py_None); resultobj = Py_None; | |
16487 | return resultobj; | |
16488 | fail: | |
16489 | return NULL; | |
16490 | } | |
16491 | ||
16492 | ||
16493 | static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
16494 | PyObject *obj; | |
16495 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16496 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
16497 | Py_INCREF(obj); | |
16498 | return Py_BuildValue((char *)""); | |
16499 | } | |
b88bce5f RD |
16500 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { |
16501 | PyObject *resultobj; | |
16502 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16503 | wxString *arg2 = 0 ; | |
16504 | wxConfigPathChanger *result; | |
16505 | bool temp2 = False ; | |
16506 | PyObject * obj0 = 0 ; | |
16507 | PyObject * obj1 = 0 ; | |
16508 | char *kwnames[] = { | |
16509 | (char *) "config",(char *) "entry", NULL | |
16510 | }; | |
16511 | ||
16512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
16515 | { |
16516 | arg2 = wxString_in_helper(obj1); | |
16517 | if (arg2 == NULL) SWIG_fail; | |
16518 | temp2 = True; | |
16519 | } | |
16520 | { | |
16521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16522 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
16523 | ||
16524 | wxPyEndAllowThreads(__tstate); | |
16525 | if (PyErr_Occurred()) SWIG_fail; | |
16526 | } | |
15afbcd0 | 16527 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); |
b88bce5f RD |
16528 | { |
16529 | if (temp2) | |
16530 | delete arg2; | |
16531 | } | |
16532 | return resultobj; | |
16533 | fail: | |
16534 | { | |
16535 | if (temp2) | |
16536 | delete arg2; | |
16537 | } | |
16538 | return NULL; | |
16539 | } | |
16540 | ||
16541 | ||
16542 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16543 | PyObject *resultobj; | |
16544 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16545 | PyObject * obj0 = 0 ; | |
16546 | char *kwnames[] = { | |
16547 | (char *) "self", NULL | |
16548 | }; | |
16549 | ||
16550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, |
16552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
16553 | { |
16554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16555 | delete arg1; | |
16556 | ||
16557 | wxPyEndAllowThreads(__tstate); | |
16558 | if (PyErr_Occurred()) SWIG_fail; | |
16559 | } | |
16560 | Py_INCREF(Py_None); resultobj = Py_None; | |
16561 | return resultobj; | |
16562 | fail: | |
16563 | return NULL; | |
16564 | } | |
16565 | ||
16566 | ||
16567 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16568 | PyObject *resultobj; | |
16569 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16570 | wxString *result; | |
16571 | PyObject * obj0 = 0 ; | |
16572 | char *kwnames[] = { | |
16573 | (char *) "self", NULL | |
16574 | }; | |
16575 | ||
16576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, |
16578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
16579 | { |
16580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16581 | { | |
16582 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
16583 | result = (wxString *) &_result_ref; | |
16584 | } | |
16585 | ||
16586 | wxPyEndAllowThreads(__tstate); | |
16587 | if (PyErr_Occurred()) SWIG_fail; | |
16588 | } | |
16589 | { | |
16590 | #if wxUSE_UNICODE | |
16591 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16592 | #else | |
16593 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16594 | #endif | |
16595 | } | |
16596 | return resultobj; | |
16597 | fail: | |
16598 | return NULL; | |
16599 | } | |
16600 | ||
16601 | ||
16602 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
16603 | PyObject *obj; | |
16604 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16605 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
16606 | Py_INCREF(obj); | |
16607 | return Py_BuildValue((char *)""); | |
16608 | } | |
d14a1e28 RD |
16609 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
16610 | PyObject *resultobj; | |
16611 | wxString *arg1 = 0 ; | |
16612 | wxString result; | |
e811c8ce | 16613 | bool temp1 = False ; |
d14a1e28 RD |
16614 | PyObject * obj0 = 0 ; |
16615 | char *kwnames[] = { | |
16616 | (char *) "sz", NULL | |
16617 | }; | |
16618 | ||
16619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
16620 | { | |
16621 | arg1 = wxString_in_helper(obj0); | |
16622 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16623 | temp1 = True; |
d14a1e28 RD |
16624 | } |
16625 | { | |
16626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16627 | result = wxExpandEnvVars((wxString const &)*arg1); | |
16628 | ||
16629 | wxPyEndAllowThreads(__tstate); | |
16630 | if (PyErr_Occurred()) SWIG_fail; | |
16631 | } | |
16632 | { | |
16633 | #if wxUSE_UNICODE | |
16634 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16635 | #else | |
16636 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16637 | #endif | |
16638 | } | |
16639 | { | |
16640 | if (temp1) | |
16641 | delete arg1; | |
16642 | } | |
16643 | return resultobj; | |
16644 | fail: | |
16645 | { | |
16646 | if (temp1) | |
16647 | delete arg1; | |
16648 | } | |
16649 | return NULL; | |
16650 | } | |
16651 | ||
16652 | ||
b2dc1044 RD |
16653 | static int _wrap_DateFormatStr_set(PyObject *_val) { |
16654 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); | |
16655 | return 1; | |
16656 | } | |
16657 | ||
16658 | ||
16659 | static PyObject *_wrap_DateFormatStr_get() { | |
16660 | PyObject *pyobj; | |
16661 | ||
16662 | { | |
16663 | #if wxUSE_UNICODE | |
16664 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16665 | #else | |
16666 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16667 | #endif | |
16668 | } | |
16669 | return pyobj; | |
16670 | } | |
16671 | ||
16672 | ||
16673 | static int _wrap_TimeSpanFormatStr_set(PyObject *_val) { | |
16674 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); | |
16675 | return 1; | |
16676 | } | |
16677 | ||
16678 | ||
16679 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
16680 | PyObject *pyobj; | |
16681 | ||
16682 | { | |
16683 | #if wxUSE_UNICODE | |
16684 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16685 | #else | |
16686 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16687 | #endif | |
16688 | } | |
16689 | return pyobj; | |
16690 | } | |
16691 | ||
16692 | ||
d14a1e28 RD |
16693 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { |
16694 | PyObject *resultobj; | |
16695 | int arg1 ; | |
994141e6 | 16696 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16697 | char *kwnames[] = { |
16698 | (char *) "country", NULL | |
16699 | }; | |
16700 | ||
994141e6 | 16701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
16702 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); |
16703 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16704 | { |
16705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16706 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
16707 | ||
16708 | wxPyEndAllowThreads(__tstate); | |
16709 | if (PyErr_Occurred()) SWIG_fail; | |
16710 | } | |
16711 | Py_INCREF(Py_None); resultobj = Py_None; | |
16712 | return resultobj; | |
16713 | fail: | |
16714 | return NULL; | |
16715 | } | |
16716 | ||
16717 | ||
16718 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16719 | PyObject *resultobj; | |
16720 | int result; | |
16721 | char *kwnames[] = { | |
16722 | NULL | |
16723 | }; | |
16724 | ||
16725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
16726 | { | |
16727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16728 | result = (int)wxDateTime::GetCountry(); | |
16729 | ||
16730 | wxPyEndAllowThreads(__tstate); | |
16731 | if (PyErr_Occurred()) SWIG_fail; | |
16732 | } | |
15afbcd0 | 16733 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16734 | return resultobj; |
16735 | fail: | |
16736 | return NULL; | |
16737 | } | |
16738 | ||
16739 | ||
16740 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16741 | PyObject *resultobj; | |
16742 | int arg1 = (int) wxDateTime::Country_Default ; | |
16743 | bool result; | |
994141e6 | 16744 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16745 | char *kwnames[] = { |
16746 | (char *) "country", NULL | |
16747 | }; | |
16748 | ||
994141e6 RD |
16749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; |
16750 | if (obj0) { | |
15afbcd0 RD |
16751 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); |
16752 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16753 | } |
d14a1e28 RD |
16754 | { |
16755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16756 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
16757 | ||
16758 | wxPyEndAllowThreads(__tstate); | |
16759 | if (PyErr_Occurred()) SWIG_fail; | |
16760 | } | |
4f89f6a3 RD |
16761 | { |
16762 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16763 | } | |
d14a1e28 RD |
16764 | return resultobj; |
16765 | fail: | |
16766 | return NULL; | |
16767 | } | |
16768 | ||
16769 | ||
16770 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16771 | PyObject *resultobj; | |
16772 | int arg1 = (int) wxDateTime::Gregorian ; | |
16773 | int result; | |
994141e6 | 16774 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16775 | char *kwnames[] = { |
16776 | (char *) "cal", NULL | |
16777 | }; | |
16778 | ||
994141e6 RD |
16779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; |
16780 | if (obj0) { | |
15afbcd0 RD |
16781 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); |
16782 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16783 | } |
d14a1e28 RD |
16784 | { |
16785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16786 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
16787 | ||
16788 | wxPyEndAllowThreads(__tstate); | |
16789 | if (PyErr_Occurred()) SWIG_fail; | |
16790 | } | |
15afbcd0 | 16791 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16792 | return resultobj; |
16793 | fail: | |
16794 | return NULL; | |
16795 | } | |
16796 | ||
16797 | ||
16798 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16799 | PyObject *resultobj; | |
16800 | int arg1 ; | |
16801 | int result; | |
994141e6 | 16802 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16803 | char *kwnames[] = { |
16804 | (char *) "year", NULL | |
16805 | }; | |
16806 | ||
994141e6 | 16807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
16808 | arg1 = (int) SWIG_AsInt(obj0); |
16809 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16810 | { |
16811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16812 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
16813 | ||
16814 | wxPyEndAllowThreads(__tstate); | |
16815 | if (PyErr_Occurred()) SWIG_fail; | |
16816 | } | |
15afbcd0 | 16817 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16818 | return resultobj; |
16819 | fail: | |
16820 | return NULL; | |
16821 | } | |
16822 | ||
16823 | ||
16824 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16825 | PyObject *resultobj; | |
16826 | int arg1 = (int) wxDateTime::Gregorian ; | |
16827 | int result; | |
994141e6 | 16828 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16829 | char *kwnames[] = { |
16830 | (char *) "cal", NULL | |
16831 | }; | |
16832 | ||
994141e6 RD |
16833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; |
16834 | if (obj0) { | |
15afbcd0 RD |
16835 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); |
16836 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16837 | } |
d14a1e28 RD |
16838 | { |
16839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16840 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
16841 | ||
16842 | wxPyEndAllowThreads(__tstate); | |
16843 | if (PyErr_Occurred()) SWIG_fail; | |
16844 | } | |
15afbcd0 | 16845 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16846 | return resultobj; |
16847 | fail: | |
16848 | return NULL; | |
16849 | } | |
16850 | ||
16851 | ||
16852 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16853 | PyObject *resultobj; | |
16854 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16855 | int arg2 = (int) wxDateTime::Gregorian ; | |
16856 | bool result; | |
994141e6 RD |
16857 | PyObject * obj0 = 0 ; |
16858 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16859 | char *kwnames[] = { |
16860 | (char *) "year",(char *) "cal", NULL | |
16861 | }; | |
16862 | ||
994141e6 RD |
16863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; |
16864 | if (obj0) { | |
15afbcd0 RD |
16865 | arg1 = (int) SWIG_AsInt(obj0); |
16866 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
16867 | } |
16868 | if (obj1) { | |
15afbcd0 RD |
16869 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); |
16870 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16871 | } |
d14a1e28 RD |
16872 | { |
16873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16874 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
16875 | ||
16876 | wxPyEndAllowThreads(__tstate); | |
16877 | if (PyErr_Occurred()) SWIG_fail; | |
16878 | } | |
4f89f6a3 RD |
16879 | { |
16880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16881 | } | |
d14a1e28 RD |
16882 | return resultobj; |
16883 | fail: | |
16884 | return NULL; | |
16885 | } | |
16886 | ||
16887 | ||
16888 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16889 | PyObject *resultobj; | |
16890 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16891 | int result; | |
994141e6 | 16892 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16893 | char *kwnames[] = { |
16894 | (char *) "year", NULL | |
16895 | }; | |
16896 | ||
994141e6 RD |
16897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; |
16898 | if (obj0) { | |
15afbcd0 RD |
16899 | arg1 = (int) SWIG_AsInt(obj0); |
16900 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16901 | } |
d14a1e28 RD |
16902 | { |
16903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16904 | result = (int)wxDateTime::GetCentury(arg1); | |
16905 | ||
16906 | wxPyEndAllowThreads(__tstate); | |
16907 | if (PyErr_Occurred()) SWIG_fail; | |
16908 | } | |
15afbcd0 | 16909 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16910 | return resultobj; |
16911 | fail: | |
16912 | return NULL; | |
16913 | } | |
16914 | ||
16915 | ||
16916 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16917 | PyObject *resultobj; | |
16918 | int arg1 ; | |
16919 | int arg2 = (int) wxDateTime::Gregorian ; | |
322913ce | 16920 | int result; |
994141e6 RD |
16921 | PyObject * obj0 = 0 ; |
16922 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16923 | char *kwnames[] = { |
16924 | (char *) "year",(char *) "cal", NULL | |
16925 | }; | |
16926 | ||
994141e6 | 16927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16928 | arg1 = (int) SWIG_AsInt(obj0); |
16929 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16930 | if (obj1) { |
15afbcd0 RD |
16931 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); |
16932 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16933 | } |
d14a1e28 RD |
16934 | { |
16935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 16936 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); |
d14a1e28 RD |
16937 | |
16938 | wxPyEndAllowThreads(__tstate); | |
16939 | if (PyErr_Occurred()) SWIG_fail; | |
16940 | } | |
15afbcd0 | 16941 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16942 | return resultobj; |
16943 | fail: | |
16944 | return NULL; | |
16945 | } | |
16946 | ||
16947 | ||
16948 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16949 | PyObject *resultobj; | |
16950 | int arg1 ; | |
16951 | int arg2 = (int) wxDateTime::Inv_Year ; | |
16952 | int arg3 = (int) wxDateTime::Gregorian ; | |
322913ce | 16953 | int result; |
994141e6 RD |
16954 | PyObject * obj0 = 0 ; |
16955 | PyObject * obj1 = 0 ; | |
16956 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16957 | char *kwnames[] = { |
16958 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
16959 | }; | |
16960 | ||
994141e6 | 16961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
16962 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); |
16963 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16964 | if (obj1) { |
15afbcd0 RD |
16965 | arg2 = (int) SWIG_AsInt(obj1); |
16966 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
16967 | } |
16968 | if (obj2) { | |
15afbcd0 RD |
16969 | arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2); |
16970 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16971 | } |
d14a1e28 RD |
16972 | { |
16973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 16974 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); |
d14a1e28 RD |
16975 | |
16976 | wxPyEndAllowThreads(__tstate); | |
16977 | if (PyErr_Occurred()) SWIG_fail; | |
16978 | } | |
15afbcd0 | 16979 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16980 | return resultobj; |
16981 | fail: | |
16982 | return NULL; | |
16983 | } | |
16984 | ||
16985 | ||
16986 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16987 | PyObject *resultobj; | |
16988 | int arg1 ; | |
16989 | int arg2 = (int) wxDateTime::Name_Full ; | |
16990 | wxString result; | |
994141e6 RD |
16991 | PyObject * obj0 = 0 ; |
16992 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16993 | char *kwnames[] = { |
16994 | (char *) "month",(char *) "flags", NULL | |
16995 | }; | |
16996 | ||
994141e6 | 16997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16998 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); |
16999 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17000 | if (obj1) { |
15afbcd0 RD |
17001 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); |
17002 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17003 | } |
d14a1e28 RD |
17004 | { |
17005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17006 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
17007 | ||
17008 | wxPyEndAllowThreads(__tstate); | |
17009 | if (PyErr_Occurred()) SWIG_fail; | |
17010 | } | |
17011 | { | |
17012 | #if wxUSE_UNICODE | |
17013 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17014 | #else | |
17015 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17016 | #endif | |
17017 | } | |
17018 | return resultobj; | |
17019 | fail: | |
17020 | return NULL; | |
17021 | } | |
17022 | ||
17023 | ||
17024 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17025 | PyObject *resultobj; | |
17026 | int arg1 ; | |
17027 | int arg2 = (int) wxDateTime::Name_Full ; | |
17028 | wxString result; | |
994141e6 RD |
17029 | PyObject * obj0 = 0 ; |
17030 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17031 | char *kwnames[] = { |
17032 | (char *) "weekday",(char *) "flags", NULL | |
17033 | }; | |
17034 | ||
994141e6 | 17035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17036 | arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0); |
17037 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17038 | if (obj1) { |
15afbcd0 RD |
17039 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); |
17040 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17041 | } |
d14a1e28 RD |
17042 | { |
17043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17044 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
17045 | ||
17046 | wxPyEndAllowThreads(__tstate); | |
17047 | if (PyErr_Occurred()) SWIG_fail; | |
17048 | } | |
17049 | { | |
17050 | #if wxUSE_UNICODE | |
17051 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17052 | #else | |
17053 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17054 | #endif | |
17055 | } | |
17056 | return resultobj; | |
17057 | fail: | |
17058 | return NULL; | |
17059 | } | |
17060 | ||
17061 | ||
17062 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17063 | PyObject *resultobj; | |
17064 | wxString *arg1 = (wxString *) 0 ; | |
17065 | wxString *arg2 = (wxString *) 0 ; | |
7eae615b RD |
17066 | bool temp1 = False ; |
17067 | bool temp2 = False ; | |
d14a1e28 RD |
17068 | PyObject * obj0 = 0 ; |
17069 | PyObject * obj1 = 0 ; | |
17070 | char *kwnames[] = { | |
17071 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
17072 | }; | |
17073 | ||
17074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
7eae615b RD |
17075 | { |
17076 | arg1 = wxString_in_helper(obj0); | |
17077 | if (arg1 == NULL) SWIG_fail; | |
17078 | temp1 = True; | |
17079 | } | |
17080 | { | |
17081 | arg2 = wxString_in_helper(obj1); | |
17082 | if (arg2 == NULL) SWIG_fail; | |
17083 | temp2 = True; | |
17084 | } | |
d14a1e28 RD |
17085 | { |
17086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17087 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
17088 | ||
17089 | wxPyEndAllowThreads(__tstate); | |
17090 | if (PyErr_Occurred()) SWIG_fail; | |
17091 | } | |
17092 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
17093 | { |
17094 | if (temp1) | |
17095 | delete arg1; | |
17096 | } | |
17097 | { | |
17098 | if (temp2) | |
17099 | delete arg2; | |
17100 | } | |
d14a1e28 RD |
17101 | return resultobj; |
17102 | fail: | |
7eae615b RD |
17103 | { |
17104 | if (temp1) | |
17105 | delete arg1; | |
17106 | } | |
17107 | { | |
17108 | if (temp2) | |
17109 | delete arg2; | |
17110 | } | |
d14a1e28 RD |
17111 | return NULL; |
17112 | } | |
17113 | ||
17114 | ||
17115 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17116 | PyObject *resultobj; | |
17117 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17118 | int arg2 = (int) wxDateTime::Country_Default ; | |
17119 | bool result; | |
994141e6 RD |
17120 | PyObject * obj0 = 0 ; |
17121 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17122 | char *kwnames[] = { |
17123 | (char *) "year",(char *) "country", NULL | |
17124 | }; | |
17125 | ||
994141e6 RD |
17126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; |
17127 | if (obj0) { | |
15afbcd0 RD |
17128 | arg1 = (int) SWIG_AsInt(obj0); |
17129 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17130 | } |
17131 | if (obj1) { | |
15afbcd0 RD |
17132 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
17133 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17134 | } |
d14a1e28 RD |
17135 | { |
17136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17137 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
17138 | ||
17139 | wxPyEndAllowThreads(__tstate); | |
17140 | if (PyErr_Occurred()) SWIG_fail; | |
17141 | } | |
4f89f6a3 RD |
17142 | { |
17143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17144 | } | |
d14a1e28 RD |
17145 | return resultobj; |
17146 | fail: | |
17147 | return NULL; | |
17148 | } | |
17149 | ||
17150 | ||
17151 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17152 | PyObject *resultobj; | |
17153 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17154 | int arg2 = (int) wxDateTime::Country_Default ; | |
17155 | wxDateTime result; | |
994141e6 RD |
17156 | PyObject * obj0 = 0 ; |
17157 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17158 | char *kwnames[] = { |
17159 | (char *) "year",(char *) "country", NULL | |
17160 | }; | |
17161 | ||
994141e6 RD |
17162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; |
17163 | if (obj0) { | |
15afbcd0 RD |
17164 | arg1 = (int) SWIG_AsInt(obj0); |
17165 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17166 | } |
17167 | if (obj1) { | |
15afbcd0 RD |
17168 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
17169 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17170 | } |
d14a1e28 RD |
17171 | { |
17172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17173 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
17174 | ||
17175 | wxPyEndAllowThreads(__tstate); | |
17176 | if (PyErr_Occurred()) SWIG_fail; | |
17177 | } | |
17178 | { | |
17179 | wxDateTime * resultptr; | |
17180 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17181 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17182 | } |
17183 | return resultobj; | |
17184 | fail: | |
17185 | return NULL; | |
17186 | } | |
17187 | ||
17188 | ||
17189 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17190 | PyObject *resultobj; | |
17191 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17192 | int arg2 = (int) wxDateTime::Country_Default ; | |
17193 | wxDateTime result; | |
994141e6 RD |
17194 | PyObject * obj0 = 0 ; |
17195 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17196 | char *kwnames[] = { |
17197 | (char *) "year",(char *) "country", NULL | |
17198 | }; | |
17199 | ||
994141e6 RD |
17200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; |
17201 | if (obj0) { | |
15afbcd0 RD |
17202 | arg1 = (int) SWIG_AsInt(obj0); |
17203 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17204 | } |
17205 | if (obj1) { | |
15afbcd0 RD |
17206 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
17207 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17208 | } |
d14a1e28 RD |
17209 | { |
17210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17211 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
17212 | ||
17213 | wxPyEndAllowThreads(__tstate); | |
17214 | if (PyErr_Occurred()) SWIG_fail; | |
17215 | } | |
17216 | { | |
17217 | wxDateTime * resultptr; | |
17218 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17219 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17220 | } |
17221 | return resultobj; | |
17222 | fail: | |
17223 | return NULL; | |
17224 | } | |
17225 | ||
17226 | ||
17227 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17228 | PyObject *resultobj; | |
17229 | wxDateTime result; | |
17230 | char *kwnames[] = { | |
17231 | NULL | |
17232 | }; | |
17233 | ||
17234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
17235 | { | |
17236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17237 | result = wxDateTime::Now(); | |
17238 | ||
17239 | wxPyEndAllowThreads(__tstate); | |
17240 | if (PyErr_Occurred()) SWIG_fail; | |
17241 | } | |
17242 | { | |
17243 | wxDateTime * resultptr; | |
17244 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17245 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17246 | } |
17247 | return resultobj; | |
17248 | fail: | |
17249 | return NULL; | |
17250 | } | |
17251 | ||
17252 | ||
17253 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17254 | PyObject *resultobj; | |
17255 | wxDateTime result; | |
17256 | char *kwnames[] = { | |
17257 | NULL | |
17258 | }; | |
17259 | ||
17260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
17261 | { | |
17262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17263 | result = wxDateTime::UNow(); | |
17264 | ||
17265 | wxPyEndAllowThreads(__tstate); | |
17266 | if (PyErr_Occurred()) SWIG_fail; | |
17267 | } | |
17268 | { | |
17269 | wxDateTime * resultptr; | |
17270 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17271 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17272 | } |
17273 | return resultobj; | |
17274 | fail: | |
17275 | return NULL; | |
17276 | } | |
17277 | ||
17278 | ||
17279 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17280 | PyObject *resultobj; | |
17281 | wxDateTime result; | |
17282 | char *kwnames[] = { | |
17283 | NULL | |
17284 | }; | |
17285 | ||
17286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
17287 | { | |
17288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17289 | result = wxDateTime::Today(); | |
17290 | ||
17291 | wxPyEndAllowThreads(__tstate); | |
17292 | if (PyErr_Occurred()) SWIG_fail; | |
17293 | } | |
17294 | { | |
17295 | wxDateTime * resultptr; | |
17296 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17297 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17298 | } |
17299 | return resultobj; | |
17300 | fail: | |
17301 | return NULL; | |
17302 | } | |
17303 | ||
17304 | ||
17305 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17306 | PyObject *resultobj; | |
17307 | wxDateTime *result; | |
17308 | char *kwnames[] = { | |
17309 | NULL | |
17310 | }; | |
17311 | ||
17312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
17313 | { | |
17314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17315 | result = (wxDateTime *)new wxDateTime(); | |
17316 | ||
17317 | wxPyEndAllowThreads(__tstate); | |
17318 | if (PyErr_Occurred()) SWIG_fail; | |
17319 | } | |
15afbcd0 | 17320 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17321 | return resultobj; |
17322 | fail: | |
17323 | return NULL; | |
17324 | } | |
17325 | ||
17326 | ||
17327 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17328 | PyObject *resultobj; | |
17329 | time_t arg1 ; | |
17330 | wxDateTime *result; | |
17331 | PyObject * obj0 = 0 ; | |
17332 | char *kwnames[] = { | |
17333 | (char *) "timet", NULL | |
17334 | }; | |
17335 | ||
17336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17337 | arg1 = (time_t) SWIG_AsUnsignedInt(obj0); |
17338 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17339 | { |
17340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17341 | result = (wxDateTime *)new wxDateTime(arg1); | |
17342 | ||
17343 | wxPyEndAllowThreads(__tstate); | |
17344 | if (PyErr_Occurred()) SWIG_fail; | |
17345 | } | |
15afbcd0 | 17346 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17347 | return resultobj; |
17348 | fail: | |
17349 | return NULL; | |
17350 | } | |
17351 | ||
17352 | ||
17353 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17354 | PyObject *resultobj; | |
17355 | double arg1 ; | |
17356 | wxDateTime *result; | |
994141e6 | 17357 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17358 | char *kwnames[] = { |
17359 | (char *) "jdn", NULL | |
17360 | }; | |
17361 | ||
994141e6 | 17362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17363 | arg1 = (double) SWIG_AsDouble(obj0); |
17364 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17365 | { |
17366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17367 | result = (wxDateTime *)new wxDateTime(arg1); | |
17368 | ||
17369 | wxPyEndAllowThreads(__tstate); | |
17370 | if (PyErr_Occurred()) SWIG_fail; | |
17371 | } | |
15afbcd0 | 17372 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17373 | return resultobj; |
17374 | fail: | |
17375 | return NULL; | |
17376 | } | |
17377 | ||
17378 | ||
17379 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17380 | PyObject *resultobj; | |
322913ce RD |
17381 | int arg1 ; |
17382 | int arg2 = (int) 0 ; | |
17383 | int arg3 = (int) 0 ; | |
17384 | int arg4 = (int) 0 ; | |
d14a1e28 | 17385 | wxDateTime *result; |
994141e6 RD |
17386 | PyObject * obj0 = 0 ; |
17387 | PyObject * obj1 = 0 ; | |
17388 | PyObject * obj2 = 0 ; | |
17389 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
17390 | char *kwnames[] = { |
17391 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17392 | }; | |
17393 | ||
994141e6 | 17394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
17395 | arg1 = (int) SWIG_AsInt(obj0); |
17396 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17397 | if (obj1) { |
15afbcd0 RD |
17398 | arg2 = (int) SWIG_AsInt(obj1); |
17399 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17400 | } |
17401 | if (obj2) { | |
15afbcd0 RD |
17402 | arg3 = (int) SWIG_AsInt(obj2); |
17403 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17404 | } |
17405 | if (obj3) { | |
15afbcd0 RD |
17406 | arg4 = (int) SWIG_AsInt(obj3); |
17407 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17408 | } |
d14a1e28 RD |
17409 | { |
17410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17411 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
17412 | ||
17413 | wxPyEndAllowThreads(__tstate); | |
17414 | if (PyErr_Occurred()) SWIG_fail; | |
17415 | } | |
15afbcd0 | 17416 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17417 | return resultobj; |
17418 | fail: | |
17419 | return NULL; | |
17420 | } | |
17421 | ||
17422 | ||
17423 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17424 | PyObject *resultobj; | |
322913ce | 17425 | int arg1 ; |
d14a1e28 RD |
17426 | int arg2 = (int) wxDateTime::Inv_Month ; |
17427 | int arg3 = (int) wxDateTime::Inv_Year ; | |
322913ce RD |
17428 | int arg4 = (int) 0 ; |
17429 | int arg5 = (int) 0 ; | |
17430 | int arg6 = (int) 0 ; | |
17431 | int arg7 = (int) 0 ; | |
d14a1e28 | 17432 | wxDateTime *result; |
994141e6 RD |
17433 | PyObject * obj0 = 0 ; |
17434 | PyObject * obj1 = 0 ; | |
17435 | PyObject * obj2 = 0 ; | |
17436 | PyObject * obj3 = 0 ; | |
17437 | PyObject * obj4 = 0 ; | |
17438 | PyObject * obj5 = 0 ; | |
17439 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
17440 | char *kwnames[] = { |
17441 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17442 | }; | |
17443 | ||
994141e6 | 17444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
17445 | arg1 = (int) SWIG_AsInt(obj0); |
17446 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17447 | if (obj1) { |
15afbcd0 RD |
17448 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
17449 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17450 | } |
17451 | if (obj2) { | |
15afbcd0 RD |
17452 | arg3 = (int) SWIG_AsInt(obj2); |
17453 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17454 | } |
17455 | if (obj3) { | |
15afbcd0 RD |
17456 | arg4 = (int) SWIG_AsInt(obj3); |
17457 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17458 | } |
17459 | if (obj4) { | |
15afbcd0 RD |
17460 | arg5 = (int) SWIG_AsInt(obj4); |
17461 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17462 | } |
17463 | if (obj5) { | |
15afbcd0 RD |
17464 | arg6 = (int) SWIG_AsInt(obj5); |
17465 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17466 | } |
17467 | if (obj6) { | |
15afbcd0 RD |
17468 | arg7 = (int) SWIG_AsInt(obj6); |
17469 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17470 | } |
d14a1e28 RD |
17471 | { |
17472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17473 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
17474 | ||
17475 | wxPyEndAllowThreads(__tstate); | |
17476 | if (PyErr_Occurred()) SWIG_fail; | |
17477 | } | |
15afbcd0 | 17478 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17479 | return resultobj; |
17480 | fail: | |
17481 | return NULL; | |
17482 | } | |
17483 | ||
17484 | ||
17485 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17486 | PyObject *resultobj; | |
17487 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17488 | PyObject * obj0 = 0 ; | |
17489 | char *kwnames[] = { | |
17490 | (char *) "self", NULL | |
17491 | }; | |
17492 | ||
17493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17496 | { |
17497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17498 | delete arg1; | |
17499 | ||
17500 | wxPyEndAllowThreads(__tstate); | |
17501 | if (PyErr_Occurred()) SWIG_fail; | |
17502 | } | |
17503 | Py_INCREF(Py_None); resultobj = Py_None; | |
17504 | return resultobj; | |
17505 | fail: | |
17506 | return NULL; | |
17507 | } | |
17508 | ||
17509 | ||
17510 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17511 | PyObject *resultobj; | |
17512 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17513 | wxDateTime *result; | |
17514 | PyObject * obj0 = 0 ; | |
17515 | char *kwnames[] = { | |
17516 | (char *) "self", NULL | |
17517 | }; | |
17518 | ||
17519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17522 | { |
17523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17524 | { | |
17525 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
17526 | result = (wxDateTime *) &_result_ref; | |
17527 | } | |
17528 | ||
17529 | wxPyEndAllowThreads(__tstate); | |
17530 | if (PyErr_Occurred()) SWIG_fail; | |
17531 | } | |
15afbcd0 | 17532 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17533 | return resultobj; |
17534 | fail: | |
17535 | return NULL; | |
17536 | } | |
17537 | ||
17538 | ||
17539 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17540 | PyObject *resultobj; | |
17541 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17542 | time_t arg2 ; | |
17543 | wxDateTime *result; | |
17544 | PyObject * obj0 = 0 ; | |
17545 | PyObject * obj1 = 0 ; | |
17546 | char *kwnames[] = { | |
17547 | (char *) "self",(char *) "timet", NULL | |
17548 | }; | |
17549 | ||
17550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17553 | arg2 = (time_t) SWIG_AsUnsignedInt(obj1); | |
17554 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17555 | { |
17556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17557 | { | |
17558 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17559 | result = (wxDateTime *) &_result_ref; | |
17560 | } | |
17561 | ||
17562 | wxPyEndAllowThreads(__tstate); | |
17563 | if (PyErr_Occurred()) SWIG_fail; | |
17564 | } | |
15afbcd0 | 17565 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17566 | return resultobj; |
17567 | fail: | |
17568 | return NULL; | |
17569 | } | |
17570 | ||
17571 | ||
17572 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17573 | PyObject *resultobj; | |
17574 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17575 | double arg2 ; | |
17576 | wxDateTime *result; | |
17577 | PyObject * obj0 = 0 ; | |
994141e6 | 17578 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17579 | char *kwnames[] = { |
17580 | (char *) "self",(char *) "jdn", NULL | |
17581 | }; | |
17582 | ||
994141e6 | 17583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17586 | arg2 = (double) SWIG_AsDouble(obj1); | |
17587 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17588 | { |
17589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17590 | { | |
17591 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17592 | result = (wxDateTime *) &_result_ref; | |
17593 | } | |
17594 | ||
17595 | wxPyEndAllowThreads(__tstate); | |
17596 | if (PyErr_Occurred()) SWIG_fail; | |
17597 | } | |
15afbcd0 | 17598 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17599 | return resultobj; |
17600 | fail: | |
17601 | return NULL; | |
17602 | } | |
17603 | ||
17604 | ||
17605 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17606 | PyObject *resultobj; | |
17607 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce RD |
17608 | int arg2 ; |
17609 | int arg3 = (int) 0 ; | |
17610 | int arg4 = (int) 0 ; | |
17611 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
17612 | wxDateTime *result; |
17613 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17614 | PyObject * obj1 = 0 ; |
17615 | PyObject * obj2 = 0 ; | |
17616 | PyObject * obj3 = 0 ; | |
17617 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
17618 | char *kwnames[] = { |
17619 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17620 | }; | |
17621 | ||
994141e6 | 17622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
17623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17625 | arg2 = (int) SWIG_AsInt(obj1); | |
17626 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17627 | if (obj2) { |
15afbcd0 RD |
17628 | arg3 = (int) SWIG_AsInt(obj2); |
17629 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17630 | } |
17631 | if (obj3) { | |
15afbcd0 RD |
17632 | arg4 = (int) SWIG_AsInt(obj3); |
17633 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17634 | } |
17635 | if (obj4) { | |
15afbcd0 RD |
17636 | arg5 = (int) SWIG_AsInt(obj4); |
17637 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17638 | } |
d14a1e28 RD |
17639 | { |
17640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17641 | { | |
17642 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
17643 | result = (wxDateTime *) &_result_ref; | |
17644 | } | |
17645 | ||
17646 | wxPyEndAllowThreads(__tstate); | |
17647 | if (PyErr_Occurred()) SWIG_fail; | |
17648 | } | |
15afbcd0 | 17649 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17650 | return resultobj; |
17651 | fail: | |
17652 | return NULL; | |
17653 | } | |
17654 | ||
17655 | ||
17656 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17657 | PyObject *resultobj; | |
17658 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17659 | int arg2 ; |
d14a1e28 RD |
17660 | int arg3 = (int) wxDateTime::Inv_Month ; |
17661 | int arg4 = (int) wxDateTime::Inv_Year ; | |
322913ce RD |
17662 | int arg5 = (int) 0 ; |
17663 | int arg6 = (int) 0 ; | |
17664 | int arg7 = (int) 0 ; | |
17665 | int arg8 = (int) 0 ; | |
d14a1e28 RD |
17666 | wxDateTime *result; |
17667 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17668 | PyObject * obj1 = 0 ; |
17669 | PyObject * obj2 = 0 ; | |
17670 | PyObject * obj3 = 0 ; | |
17671 | PyObject * obj4 = 0 ; | |
17672 | PyObject * obj5 = 0 ; | |
17673 | PyObject * obj6 = 0 ; | |
17674 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
17675 | char *kwnames[] = { |
17676 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17677 | }; | |
17678 | ||
994141e6 | 17679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
17680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17682 | arg2 = (int) SWIG_AsInt(obj1); | |
17683 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17684 | if (obj2) { |
15afbcd0 RD |
17685 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
17686 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17687 | } |
17688 | if (obj3) { | |
15afbcd0 RD |
17689 | arg4 = (int) SWIG_AsInt(obj3); |
17690 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17691 | } |
17692 | if (obj4) { | |
15afbcd0 RD |
17693 | arg5 = (int) SWIG_AsInt(obj4); |
17694 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17695 | } |
17696 | if (obj5) { | |
15afbcd0 RD |
17697 | arg6 = (int) SWIG_AsInt(obj5); |
17698 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17699 | } |
17700 | if (obj6) { | |
15afbcd0 RD |
17701 | arg7 = (int) SWIG_AsInt(obj6); |
17702 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17703 | } |
17704 | if (obj7) { | |
15afbcd0 RD |
17705 | arg8 = (int) SWIG_AsInt(obj7); |
17706 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17707 | } |
d14a1e28 RD |
17708 | { |
17709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17710 | { | |
17711 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
17712 | result = (wxDateTime *) &_result_ref; | |
17713 | } | |
17714 | ||
17715 | wxPyEndAllowThreads(__tstate); | |
17716 | if (PyErr_Occurred()) SWIG_fail; | |
17717 | } | |
15afbcd0 | 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_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17726 | PyObject *resultobj; | |
17727 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17728 | wxDateTime *result; | |
17729 | PyObject * obj0 = 0 ; | |
17730 | char *kwnames[] = { | |
17731 | (char *) "self", NULL | |
17732 | }; | |
17733 | ||
17734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17737 | { |
17738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17739 | { | |
17740 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
17741 | result = (wxDateTime *) &_result_ref; | |
17742 | } | |
17743 | ||
17744 | wxPyEndAllowThreads(__tstate); | |
17745 | if (PyErr_Occurred()) SWIG_fail; | |
17746 | } | |
15afbcd0 | 17747 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17748 | return resultobj; |
17749 | fail: | |
17750 | return NULL; | |
17751 | } | |
17752 | ||
17753 | ||
17754 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17755 | PyObject *resultobj; | |
17756 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17757 | int arg2 ; | |
17758 | wxDateTime *result; | |
17759 | PyObject * obj0 = 0 ; | |
994141e6 | 17760 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17761 | char *kwnames[] = { |
17762 | (char *) "self",(char *) "year", NULL | |
17763 | }; | |
17764 | ||
994141e6 | 17765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17768 | arg2 = (int) SWIG_AsInt(obj1); | |
17769 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17770 | { |
17771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17772 | { | |
17773 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
17774 | result = (wxDateTime *) &_result_ref; | |
17775 | } | |
17776 | ||
17777 | wxPyEndAllowThreads(__tstate); | |
17778 | if (PyErr_Occurred()) SWIG_fail; | |
17779 | } | |
15afbcd0 | 17780 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17781 | return resultobj; |
17782 | fail: | |
17783 | return NULL; | |
17784 | } | |
17785 | ||
17786 | ||
17787 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17788 | PyObject *resultobj; | |
17789 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17790 | int arg2 ; | |
17791 | wxDateTime *result; | |
17792 | PyObject * obj0 = 0 ; | |
994141e6 | 17793 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17794 | char *kwnames[] = { |
17795 | (char *) "self",(char *) "month", NULL | |
17796 | }; | |
17797 | ||
994141e6 | 17798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17801 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
17802 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17803 | { |
17804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17805 | { | |
17806 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
17807 | result = (wxDateTime *) &_result_ref; | |
17808 | } | |
17809 | ||
17810 | wxPyEndAllowThreads(__tstate); | |
17811 | if (PyErr_Occurred()) SWIG_fail; | |
17812 | } | |
15afbcd0 | 17813 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17814 | return resultobj; |
17815 | fail: | |
17816 | return NULL; | |
17817 | } | |
17818 | ||
17819 | ||
17820 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17821 | PyObject *resultobj; | |
17822 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17823 | int arg2 ; |
d14a1e28 RD |
17824 | wxDateTime *result; |
17825 | PyObject * obj0 = 0 ; | |
994141e6 | 17826 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17827 | char *kwnames[] = { |
17828 | (char *) "self",(char *) "day", NULL | |
17829 | }; | |
17830 | ||
994141e6 | 17831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17834 | arg2 = (int) SWIG_AsInt(obj1); | |
17835 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17836 | { |
17837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17838 | { | |
17839 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
17840 | result = (wxDateTime *) &_result_ref; | |
17841 | } | |
17842 | ||
17843 | wxPyEndAllowThreads(__tstate); | |
17844 | if (PyErr_Occurred()) SWIG_fail; | |
17845 | } | |
15afbcd0 | 17846 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17847 | return resultobj; |
17848 | fail: | |
17849 | return NULL; | |
17850 | } | |
17851 | ||
17852 | ||
17853 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17854 | PyObject *resultobj; | |
17855 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17856 | int arg2 ; |
d14a1e28 RD |
17857 | wxDateTime *result; |
17858 | PyObject * obj0 = 0 ; | |
994141e6 | 17859 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17860 | char *kwnames[] = { |
17861 | (char *) "self",(char *) "hour", NULL | |
17862 | }; | |
17863 | ||
994141e6 | 17864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17867 | arg2 = (int) SWIG_AsInt(obj1); | |
17868 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17869 | { |
17870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17871 | { | |
17872 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
17873 | result = (wxDateTime *) &_result_ref; | |
17874 | } | |
17875 | ||
17876 | wxPyEndAllowThreads(__tstate); | |
17877 | if (PyErr_Occurred()) SWIG_fail; | |
17878 | } | |
15afbcd0 | 17879 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17880 | return resultobj; |
17881 | fail: | |
17882 | return NULL; | |
17883 | } | |
17884 | ||
17885 | ||
17886 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17887 | PyObject *resultobj; | |
17888 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17889 | int arg2 ; |
d14a1e28 RD |
17890 | wxDateTime *result; |
17891 | PyObject * obj0 = 0 ; | |
994141e6 | 17892 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17893 | char *kwnames[] = { |
17894 | (char *) "self",(char *) "minute", NULL | |
17895 | }; | |
17896 | ||
994141e6 | 17897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17900 | arg2 = (int) SWIG_AsInt(obj1); | |
17901 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17902 | { |
17903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17904 | { | |
17905 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
17906 | result = (wxDateTime *) &_result_ref; | |
17907 | } | |
17908 | ||
17909 | wxPyEndAllowThreads(__tstate); | |
17910 | if (PyErr_Occurred()) SWIG_fail; | |
17911 | } | |
15afbcd0 | 17912 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17913 | return resultobj; |
17914 | fail: | |
17915 | return NULL; | |
17916 | } | |
17917 | ||
17918 | ||
17919 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17920 | PyObject *resultobj; | |
17921 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17922 | int arg2 ; |
d14a1e28 RD |
17923 | wxDateTime *result; |
17924 | PyObject * obj0 = 0 ; | |
994141e6 | 17925 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17926 | char *kwnames[] = { |
17927 | (char *) "self",(char *) "second", NULL | |
17928 | }; | |
17929 | ||
994141e6 | 17930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17933 | arg2 = (int) SWIG_AsInt(obj1); | |
17934 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17935 | { |
17936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17937 | { | |
17938 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
17939 | result = (wxDateTime *) &_result_ref; | |
17940 | } | |
17941 | ||
17942 | wxPyEndAllowThreads(__tstate); | |
17943 | if (PyErr_Occurred()) SWIG_fail; | |
17944 | } | |
15afbcd0 | 17945 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17946 | return resultobj; |
17947 | fail: | |
17948 | return NULL; | |
17949 | } | |
17950 | ||
17951 | ||
17952 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17953 | PyObject *resultobj; | |
17954 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17955 | int arg2 ; |
d14a1e28 RD |
17956 | wxDateTime *result; |
17957 | PyObject * obj0 = 0 ; | |
994141e6 | 17958 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17959 | char *kwnames[] = { |
17960 | (char *) "self",(char *) "millisecond", NULL | |
17961 | }; | |
17962 | ||
994141e6 | 17963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17966 | arg2 = (int) SWIG_AsInt(obj1); | |
17967 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17968 | { |
17969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17970 | { | |
17971 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
17972 | result = (wxDateTime *) &_result_ref; | |
17973 | } | |
17974 | ||
17975 | wxPyEndAllowThreads(__tstate); | |
17976 | if (PyErr_Occurred()) SWIG_fail; | |
17977 | } | |
15afbcd0 | 17978 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17979 | return resultobj; |
17980 | fail: | |
17981 | return NULL; | |
17982 | } | |
17983 | ||
17984 | ||
17985 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17986 | PyObject *resultobj; | |
17987 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17988 | int arg2 ; | |
17989 | int arg3 = (int) wxDateTime::Monday_First ; | |
17990 | wxDateTime *result; | |
17991 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17992 | PyObject * obj1 = 0 ; |
17993 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17994 | char *kwnames[] = { |
17995 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
17996 | }; | |
17997 | ||
994141e6 | 17998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18001 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18002 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18003 | if (obj2) { |
15afbcd0 RD |
18004 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); |
18005 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18006 | } |
d14a1e28 RD |
18007 | { |
18008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18009 | { | |
18010 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18011 | result = (wxDateTime *) &_result_ref; | |
18012 | } | |
18013 | ||
18014 | wxPyEndAllowThreads(__tstate); | |
18015 | if (PyErr_Occurred()) SWIG_fail; | |
18016 | } | |
15afbcd0 | 18017 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18018 | return resultobj; |
18019 | fail: | |
18020 | return NULL; | |
18021 | } | |
18022 | ||
18023 | ||
18024 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18025 | PyObject *resultobj; | |
18026 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18027 | int arg2 ; | |
18028 | int arg3 = (int) wxDateTime::Monday_First ; | |
18029 | wxDateTime result; | |
18030 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18031 | PyObject * obj1 = 0 ; |
18032 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18033 | char *kwnames[] = { |
18034 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18035 | }; | |
18036 | ||
994141e6 | 18037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18040 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18041 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18042 | if (obj2) { |
15afbcd0 RD |
18043 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); |
18044 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18045 | } |
d14a1e28 RD |
18046 | { |
18047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18048 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18049 | ||
18050 | wxPyEndAllowThreads(__tstate); | |
18051 | if (PyErr_Occurred()) SWIG_fail; | |
18052 | } | |
18053 | { | |
18054 | wxDateTime * resultptr; | |
18055 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18056 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18057 | } |
18058 | return resultobj; | |
18059 | fail: | |
18060 | return NULL; | |
18061 | } | |
18062 | ||
18063 | ||
18064 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18065 | PyObject *resultobj; | |
18066 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18067 | int arg2 ; | |
18068 | wxDateTime *result; | |
18069 | PyObject * obj0 = 0 ; | |
994141e6 | 18070 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18071 | char *kwnames[] = { |
18072 | (char *) "self",(char *) "weekday", NULL | |
18073 | }; | |
18074 | ||
994141e6 | 18075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18078 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18079 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18080 | { |
18081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18082 | { | |
18083 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
18084 | result = (wxDateTime *) &_result_ref; | |
18085 | } | |
18086 | ||
18087 | wxPyEndAllowThreads(__tstate); | |
18088 | if (PyErr_Occurred()) SWIG_fail; | |
18089 | } | |
15afbcd0 | 18090 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18091 | return resultobj; |
18092 | fail: | |
18093 | return NULL; | |
18094 | } | |
18095 | ||
18096 | ||
18097 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18098 | PyObject *resultobj; | |
18099 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18100 | int arg2 ; | |
18101 | wxDateTime result; | |
18102 | PyObject * obj0 = 0 ; | |
994141e6 | 18103 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18104 | char *kwnames[] = { |
18105 | (char *) "self",(char *) "weekday", NULL | |
18106 | }; | |
18107 | ||
994141e6 | 18108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18111 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18112 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18113 | { |
18114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18115 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
18116 | ||
18117 | wxPyEndAllowThreads(__tstate); | |
18118 | if (PyErr_Occurred()) SWIG_fail; | |
18119 | } | |
18120 | { | |
18121 | wxDateTime * resultptr; | |
18122 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18123 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18124 | } |
18125 | return resultobj; | |
18126 | fail: | |
18127 | return NULL; | |
18128 | } | |
18129 | ||
18130 | ||
18131 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18132 | PyObject *resultobj; | |
18133 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18134 | int arg2 ; | |
18135 | wxDateTime *result; | |
18136 | PyObject * obj0 = 0 ; | |
994141e6 | 18137 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18138 | char *kwnames[] = { |
18139 | (char *) "self",(char *) "weekday", NULL | |
18140 | }; | |
18141 | ||
994141e6 | 18142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18145 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18146 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18147 | { |
18148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18149 | { | |
18150 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18151 | result = (wxDateTime *) &_result_ref; | |
18152 | } | |
18153 | ||
18154 | wxPyEndAllowThreads(__tstate); | |
18155 | if (PyErr_Occurred()) SWIG_fail; | |
18156 | } | |
15afbcd0 | 18157 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18158 | return resultobj; |
18159 | fail: | |
18160 | return NULL; | |
18161 | } | |
18162 | ||
18163 | ||
18164 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18165 | PyObject *resultobj; | |
18166 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18167 | int arg2 ; | |
18168 | wxDateTime result; | |
18169 | PyObject * obj0 = 0 ; | |
994141e6 | 18170 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18171 | char *kwnames[] = { |
18172 | (char *) "self",(char *) "weekday", NULL | |
18173 | }; | |
18174 | ||
994141e6 | 18175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18178 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18179 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18180 | { |
18181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18182 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18183 | ||
18184 | wxPyEndAllowThreads(__tstate); | |
18185 | if (PyErr_Occurred()) SWIG_fail; | |
18186 | } | |
18187 | { | |
18188 | wxDateTime * resultptr; | |
18189 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18190 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18191 | } |
18192 | return resultobj; | |
18193 | fail: | |
18194 | return NULL; | |
18195 | } | |
18196 | ||
18197 | ||
18198 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18199 | PyObject *resultobj; | |
18200 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18201 | int arg2 ; | |
18202 | int arg3 = (int) 1 ; | |
18203 | int arg4 = (int) wxDateTime::Inv_Month ; | |
18204 | int arg5 = (int) wxDateTime::Inv_Year ; | |
18205 | bool result; | |
18206 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18207 | PyObject * obj1 = 0 ; |
18208 | PyObject * obj2 = 0 ; | |
18209 | PyObject * obj3 = 0 ; | |
18210 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
18211 | char *kwnames[] = { |
18212 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
18213 | }; | |
18214 | ||
994141e6 | 18215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
18216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18218 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18219 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18220 | if (obj2) { |
15afbcd0 RD |
18221 | arg3 = (int) SWIG_AsInt(obj2); |
18222 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18223 | } |
18224 | if (obj3) { | |
15afbcd0 RD |
18225 | arg4 = (wxDateTime::Month) SWIG_AsInt(obj3); |
18226 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18227 | } |
18228 | if (obj4) { | |
15afbcd0 RD |
18229 | arg5 = (int) SWIG_AsInt(obj4); |
18230 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18231 | } |
d14a1e28 RD |
18232 | { |
18233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18234 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
18235 | ||
18236 | wxPyEndAllowThreads(__tstate); | |
18237 | if (PyErr_Occurred()) SWIG_fail; | |
18238 | } | |
4f89f6a3 RD |
18239 | { |
18240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18241 | } | |
d14a1e28 RD |
18242 | return resultobj; |
18243 | fail: | |
18244 | return NULL; | |
18245 | } | |
18246 | ||
18247 | ||
18248 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18249 | PyObject *resultobj; | |
18250 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18251 | int arg2 ; | |
18252 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18253 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18254 | bool result; | |
18255 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18256 | PyObject * obj1 = 0 ; |
18257 | PyObject * obj2 = 0 ; | |
18258 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18259 | char *kwnames[] = { |
18260 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18261 | }; | |
18262 | ||
994141e6 | 18263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18266 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18267 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18268 | if (obj2) { |
15afbcd0 RD |
18269 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
18270 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18271 | } |
18272 | if (obj3) { | |
15afbcd0 RD |
18273 | arg4 = (int) SWIG_AsInt(obj3); |
18274 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18275 | } |
d14a1e28 RD |
18276 | { |
18277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18278 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18279 | ||
18280 | wxPyEndAllowThreads(__tstate); | |
18281 | if (PyErr_Occurred()) SWIG_fail; | |
18282 | } | |
4f89f6a3 RD |
18283 | { |
18284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18285 | } | |
d14a1e28 RD |
18286 | return resultobj; |
18287 | fail: | |
18288 | return NULL; | |
18289 | } | |
18290 | ||
18291 | ||
18292 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18293 | PyObject *resultobj; | |
18294 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18295 | int arg2 ; | |
18296 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18297 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18298 | wxDateTime result; | |
18299 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18300 | PyObject * obj1 = 0 ; |
18301 | PyObject * obj2 = 0 ; | |
18302 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18303 | char *kwnames[] = { |
18304 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18305 | }; | |
18306 | ||
994141e6 | 18307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18310 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18311 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18312 | if (obj2) { |
15afbcd0 RD |
18313 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
18314 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18315 | } |
18316 | if (obj3) { | |
15afbcd0 RD |
18317 | arg4 = (int) SWIG_AsInt(obj3); |
18318 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18319 | } |
d14a1e28 RD |
18320 | { |
18321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18322 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18323 | ||
18324 | wxPyEndAllowThreads(__tstate); | |
18325 | if (PyErr_Occurred()) SWIG_fail; | |
18326 | } | |
18327 | { | |
18328 | wxDateTime * resultptr; | |
18329 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18330 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18331 | } |
18332 | return resultobj; | |
18333 | fail: | |
18334 | return NULL; | |
18335 | } | |
18336 | ||
18337 | ||
18338 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18339 | PyObject *resultobj; | |
18340 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18341 | int arg2 ; |
d14a1e28 RD |
18342 | int arg3 = (int) wxDateTime::Mon ; |
18343 | int arg4 = (int) wxDateTime::Monday_First ; | |
18344 | bool result; | |
18345 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18346 | PyObject * obj1 = 0 ; |
18347 | PyObject * obj2 = 0 ; | |
18348 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18349 | char *kwnames[] = { |
18350 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18351 | }; | |
18352 | ||
994141e6 | 18353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18356 | arg2 = (int) SWIG_AsInt(obj1); | |
18357 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18358 | if (obj2) { |
15afbcd0 RD |
18359 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); |
18360 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18361 | } |
18362 | if (obj3) { | |
15afbcd0 RD |
18363 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); |
18364 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18365 | } |
d14a1e28 RD |
18366 | { |
18367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18368 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18369 | ||
18370 | wxPyEndAllowThreads(__tstate); | |
18371 | if (PyErr_Occurred()) SWIG_fail; | |
18372 | } | |
4f89f6a3 RD |
18373 | { |
18374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18375 | } | |
d14a1e28 RD |
18376 | return resultobj; |
18377 | fail: | |
18378 | return NULL; | |
18379 | } | |
18380 | ||
18381 | ||
18382 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18383 | PyObject *resultobj; | |
18384 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18385 | int arg2 ; |
d14a1e28 RD |
18386 | int arg3 = (int) wxDateTime::Mon ; |
18387 | int arg4 = (int) wxDateTime::Monday_First ; | |
18388 | wxDateTime result; | |
18389 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18390 | PyObject * obj1 = 0 ; |
18391 | PyObject * obj2 = 0 ; | |
18392 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18393 | char *kwnames[] = { |
18394 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18395 | }; | |
18396 | ||
994141e6 | 18397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18400 | arg2 = (int) SWIG_AsInt(obj1); | |
18401 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18402 | if (obj2) { |
15afbcd0 RD |
18403 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); |
18404 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18405 | } |
18406 | if (obj3) { | |
15afbcd0 RD |
18407 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); |
18408 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18409 | } |
d14a1e28 RD |
18410 | { |
18411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18412 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18413 | ||
18414 | wxPyEndAllowThreads(__tstate); | |
18415 | if (PyErr_Occurred()) SWIG_fail; | |
18416 | } | |
18417 | { | |
18418 | wxDateTime * resultptr; | |
18419 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18420 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18421 | } |
18422 | return resultobj; | |
18423 | fail: | |
18424 | return NULL; | |
18425 | } | |
18426 | ||
18427 | ||
18428 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18429 | PyObject *resultobj; | |
18430 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18431 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18432 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18433 | wxDateTime *result; | |
18434 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18435 | PyObject * obj1 = 0 ; |
18436 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18437 | char *kwnames[] = { |
18438 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18439 | }; | |
18440 | ||
994141e6 | 18441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 18444 | if (obj1) { |
15afbcd0 RD |
18445 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
18446 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18447 | } |
18448 | if (obj2) { | |
15afbcd0 RD |
18449 | arg3 = (int) SWIG_AsInt(obj2); |
18450 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18451 | } |
d14a1e28 RD |
18452 | { |
18453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18454 | { | |
18455 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18456 | result = (wxDateTime *) &_result_ref; | |
18457 | } | |
18458 | ||
18459 | wxPyEndAllowThreads(__tstate); | |
18460 | if (PyErr_Occurred()) SWIG_fail; | |
18461 | } | |
15afbcd0 | 18462 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18463 | return resultobj; |
18464 | fail: | |
18465 | return NULL; | |
18466 | } | |
18467 | ||
18468 | ||
18469 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18470 | PyObject *resultobj; | |
18471 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18472 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18473 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18474 | wxDateTime result; | |
18475 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18476 | PyObject * obj1 = 0 ; |
18477 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18478 | char *kwnames[] = { |
18479 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18480 | }; | |
18481 | ||
994141e6 | 18482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 18485 | if (obj1) { |
15afbcd0 RD |
18486 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
18487 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18488 | } |
18489 | if (obj2) { | |
15afbcd0 RD |
18490 | arg3 = (int) SWIG_AsInt(obj2); |
18491 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18492 | } |
d14a1e28 RD |
18493 | { |
18494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18495 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18496 | ||
18497 | wxPyEndAllowThreads(__tstate); | |
18498 | if (PyErr_Occurred()) SWIG_fail; | |
18499 | } | |
18500 | { | |
18501 | wxDateTime * resultptr; | |
18502 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18503 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18504 | } |
18505 | return resultobj; | |
18506 | fail: | |
18507 | return NULL; | |
18508 | } | |
18509 | ||
18510 | ||
18511 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18512 | PyObject *resultobj; | |
18513 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18514 | int arg2 ; |
d14a1e28 RD |
18515 | wxDateTime *result; |
18516 | PyObject * obj0 = 0 ; | |
994141e6 | 18517 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18518 | char *kwnames[] = { |
18519 | (char *) "self",(char *) "yday", NULL | |
18520 | }; | |
18521 | ||
994141e6 | 18522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18525 | arg2 = (int) SWIG_AsInt(obj1); | |
18526 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18527 | { |
18528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18529 | { | |
18530 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
18531 | result = (wxDateTime *) &_result_ref; | |
18532 | } | |
18533 | ||
18534 | wxPyEndAllowThreads(__tstate); | |
18535 | if (PyErr_Occurred()) SWIG_fail; | |
18536 | } | |
15afbcd0 | 18537 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18538 | return resultobj; |
18539 | fail: | |
18540 | return NULL; | |
18541 | } | |
18542 | ||
18543 | ||
18544 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18545 | PyObject *resultobj; | |
18546 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18547 | int arg2 ; |
d14a1e28 RD |
18548 | wxDateTime result; |
18549 | PyObject * obj0 = 0 ; | |
994141e6 | 18550 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18551 | char *kwnames[] = { |
18552 | (char *) "self",(char *) "yday", NULL | |
18553 | }; | |
18554 | ||
994141e6 | 18555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18558 | arg2 = (int) SWIG_AsInt(obj1); | |
18559 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18560 | { |
18561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18562 | result = (arg1)->GetYearDay(arg2); | |
18563 | ||
18564 | wxPyEndAllowThreads(__tstate); | |
18565 | if (PyErr_Occurred()) SWIG_fail; | |
18566 | } | |
18567 | { | |
18568 | wxDateTime * resultptr; | |
18569 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18570 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18571 | } |
18572 | return resultobj; | |
18573 | fail: | |
18574 | return NULL; | |
18575 | } | |
18576 | ||
18577 | ||
18578 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18579 | PyObject *resultobj; | |
18580 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18581 | double result; | |
18582 | PyObject * obj0 = 0 ; | |
18583 | char *kwnames[] = { | |
18584 | (char *) "self", NULL | |
18585 | }; | |
18586 | ||
18587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18590 | { |
18591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18592 | result = (double)(arg1)->GetJulianDayNumber(); | |
18593 | ||
18594 | wxPyEndAllowThreads(__tstate); | |
18595 | if (PyErr_Occurred()) SWIG_fail; | |
18596 | } | |
15afbcd0 | 18597 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18598 | return resultobj; |
18599 | fail: | |
18600 | return NULL; | |
18601 | } | |
18602 | ||
18603 | ||
18604 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18605 | PyObject *resultobj; | |
18606 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18607 | double result; | |
18608 | PyObject * obj0 = 0 ; | |
18609 | char *kwnames[] = { | |
18610 | (char *) "self", NULL | |
18611 | }; | |
18612 | ||
18613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18616 | { |
18617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18618 | result = (double)(arg1)->GetJDN(); | |
18619 | ||
18620 | wxPyEndAllowThreads(__tstate); | |
18621 | if (PyErr_Occurred()) SWIG_fail; | |
18622 | } | |
15afbcd0 | 18623 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18624 | return resultobj; |
18625 | fail: | |
18626 | return NULL; | |
18627 | } | |
18628 | ||
18629 | ||
18630 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18631 | PyObject *resultobj; | |
18632 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18633 | double result; | |
18634 | PyObject * obj0 = 0 ; | |
18635 | char *kwnames[] = { | |
18636 | (char *) "self", NULL | |
18637 | }; | |
18638 | ||
18639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18642 | { |
18643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18644 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
18645 | ||
18646 | wxPyEndAllowThreads(__tstate); | |
18647 | if (PyErr_Occurred()) SWIG_fail; | |
18648 | } | |
15afbcd0 | 18649 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18650 | return resultobj; |
18651 | fail: | |
18652 | return NULL; | |
18653 | } | |
18654 | ||
18655 | ||
18656 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18657 | PyObject *resultobj; | |
18658 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18659 | double result; | |
18660 | PyObject * obj0 = 0 ; | |
18661 | char *kwnames[] = { | |
18662 | (char *) "self", NULL | |
18663 | }; | |
18664 | ||
18665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18668 | { |
18669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18670 | result = (double)(arg1)->GetMJD(); | |
18671 | ||
18672 | wxPyEndAllowThreads(__tstate); | |
18673 | if (PyErr_Occurred()) SWIG_fail; | |
18674 | } | |
15afbcd0 | 18675 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18676 | return resultobj; |
18677 | fail: | |
18678 | return NULL; | |
18679 | } | |
18680 | ||
18681 | ||
18682 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18683 | PyObject *resultobj; | |
18684 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18685 | double result; | |
18686 | PyObject * obj0 = 0 ; | |
18687 | char *kwnames[] = { | |
18688 | (char *) "self", NULL | |
18689 | }; | |
18690 | ||
18691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18694 | { |
18695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18696 | result = (double)(arg1)->GetRataDie(); | |
18697 | ||
18698 | wxPyEndAllowThreads(__tstate); | |
18699 | if (PyErr_Occurred()) SWIG_fail; | |
18700 | } | |
15afbcd0 | 18701 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18702 | return resultobj; |
18703 | fail: | |
18704 | return NULL; | |
18705 | } | |
18706 | ||
18707 | ||
18708 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18709 | PyObject *resultobj; | |
18710 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18711 | wxDateTime::TimeZone *arg2 = 0 ; | |
e811c8ce | 18712 | bool arg3 = (bool) False ; |
d14a1e28 | 18713 | wxDateTime result; |
7722248d | 18714 | bool temp2 = False ; |
d14a1e28 RD |
18715 | PyObject * obj0 = 0 ; |
18716 | PyObject * obj1 = 0 ; | |
18717 | PyObject * obj2 = 0 ; | |
18718 | char *kwnames[] = { | |
18719 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18720 | }; | |
18721 | ||
18722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
18723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18725 | { |
18726 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18727 | temp2 = True; |
d14a1e28 RD |
18728 | } |
18729 | if (obj2) { | |
15afbcd0 RD |
18730 | arg3 = (bool) SWIG_AsBool(obj2); |
18731 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18732 | } |
18733 | { | |
18734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18735 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18736 | ||
18737 | wxPyEndAllowThreads(__tstate); | |
18738 | if (PyErr_Occurred()) SWIG_fail; | |
18739 | } | |
18740 | { | |
18741 | wxDateTime * resultptr; | |
18742 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18743 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18744 | } |
18745 | { | |
7722248d | 18746 | if (temp2) delete arg2; |
d14a1e28 RD |
18747 | } |
18748 | return resultobj; | |
18749 | fail: | |
18750 | { | |
7722248d | 18751 | if (temp2) delete arg2; |
d14a1e28 RD |
18752 | } |
18753 | return NULL; | |
18754 | } | |
18755 | ||
18756 | ||
18757 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18758 | PyObject *resultobj; | |
18759 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18760 | wxDateTime::TimeZone *arg2 = 0 ; | |
e811c8ce | 18761 | bool arg3 = (bool) False ; |
d14a1e28 | 18762 | wxDateTime *result; |
7722248d | 18763 | bool temp2 = False ; |
d14a1e28 RD |
18764 | PyObject * obj0 = 0 ; |
18765 | PyObject * obj1 = 0 ; | |
18766 | PyObject * obj2 = 0 ; | |
18767 | char *kwnames[] = { | |
18768 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18769 | }; | |
18770 | ||
18771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
18772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18774 | { |
18775 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18776 | temp2 = True; |
d14a1e28 RD |
18777 | } |
18778 | if (obj2) { | |
15afbcd0 RD |
18779 | arg3 = (bool) SWIG_AsBool(obj2); |
18780 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18781 | } |
18782 | { | |
18783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18784 | { | |
18785 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18786 | result = (wxDateTime *) &_result_ref; | |
18787 | } | |
18788 | ||
18789 | wxPyEndAllowThreads(__tstate); | |
18790 | if (PyErr_Occurred()) SWIG_fail; | |
18791 | } | |
15afbcd0 | 18792 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 | 18793 | { |
7722248d | 18794 | if (temp2) delete arg2; |
d14a1e28 RD |
18795 | } |
18796 | return resultobj; | |
18797 | fail: | |
18798 | { | |
7722248d | 18799 | if (temp2) delete arg2; |
d14a1e28 RD |
18800 | } |
18801 | return NULL; | |
18802 | } | |
18803 | ||
18804 | ||
18805 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18806 | PyObject *resultobj; | |
18807 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
e811c8ce | 18808 | bool arg2 = (bool) False ; |
d14a1e28 RD |
18809 | wxDateTime result; |
18810 | PyObject * obj0 = 0 ; | |
18811 | PyObject * obj1 = 0 ; | |
18812 | char *kwnames[] = { | |
18813 | (char *) "self",(char *) "noDST", NULL | |
18814 | }; | |
18815 | ||
18816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 18819 | if (obj1) { |
15afbcd0 RD |
18820 | arg2 = (bool) SWIG_AsBool(obj1); |
18821 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18822 | } |
18823 | { | |
18824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18825 | result = (arg1)->ToGMT(arg2); | |
18826 | ||
18827 | wxPyEndAllowThreads(__tstate); | |
18828 | if (PyErr_Occurred()) SWIG_fail; | |
18829 | } | |
18830 | { | |
18831 | wxDateTime * resultptr; | |
18832 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18833 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18834 | } |
18835 | return resultobj; | |
18836 | fail: | |
18837 | return NULL; | |
18838 | } | |
18839 | ||
18840 | ||
18841 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18842 | PyObject *resultobj; | |
18843 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
e811c8ce | 18844 | bool arg2 = (bool) False ; |
d14a1e28 RD |
18845 | wxDateTime *result; |
18846 | PyObject * obj0 = 0 ; | |
18847 | PyObject * obj1 = 0 ; | |
18848 | char *kwnames[] = { | |
18849 | (char *) "self",(char *) "noDST", NULL | |
18850 | }; | |
18851 | ||
18852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 18855 | if (obj1) { |
15afbcd0 RD |
18856 | arg2 = (bool) SWIG_AsBool(obj1); |
18857 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18858 | } |
18859 | { | |
18860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18861 | { | |
18862 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
18863 | result = (wxDateTime *) &_result_ref; | |
18864 | } | |
18865 | ||
18866 | wxPyEndAllowThreads(__tstate); | |
18867 | if (PyErr_Occurred()) SWIG_fail; | |
18868 | } | |
15afbcd0 | 18869 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18870 | return resultobj; |
18871 | fail: | |
18872 | return NULL; | |
18873 | } | |
18874 | ||
18875 | ||
18876 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18877 | PyObject *resultobj; | |
18878 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18879 | int arg2 = (int) wxDateTime::Country_Default ; | |
18880 | int result; | |
18881 | PyObject * obj0 = 0 ; | |
994141e6 | 18882 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18883 | char *kwnames[] = { |
18884 | (char *) "self",(char *) "country", NULL | |
18885 | }; | |
18886 | ||
994141e6 | 18887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 18890 | if (obj1) { |
15afbcd0 RD |
18891 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
18892 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18893 | } |
d14a1e28 RD |
18894 | { |
18895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18896 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
18897 | ||
18898 | wxPyEndAllowThreads(__tstate); | |
18899 | if (PyErr_Occurred()) SWIG_fail; | |
18900 | } | |
15afbcd0 | 18901 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18902 | return resultobj; |
18903 | fail: | |
18904 | return NULL; | |
18905 | } | |
18906 | ||
18907 | ||
18908 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18909 | PyObject *resultobj; | |
18910 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18911 | bool result; | |
18912 | PyObject * obj0 = 0 ; | |
18913 | char *kwnames[] = { | |
18914 | (char *) "self", NULL | |
18915 | }; | |
18916 | ||
18917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18920 | { |
18921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18922 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
18923 | ||
18924 | wxPyEndAllowThreads(__tstate); | |
18925 | if (PyErr_Occurred()) SWIG_fail; | |
18926 | } | |
4f89f6a3 RD |
18927 | { |
18928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18929 | } | |
d14a1e28 RD |
18930 | return resultobj; |
18931 | fail: | |
18932 | return NULL; | |
18933 | } | |
18934 | ||
18935 | ||
18936 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18937 | PyObject *resultobj; | |
18938 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18939 | time_t result; | |
18940 | PyObject * obj0 = 0 ; | |
18941 | char *kwnames[] = { | |
18942 | (char *) "self", NULL | |
18943 | }; | |
18944 | ||
18945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18948 | { |
18949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18950 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
18951 | ||
18952 | wxPyEndAllowThreads(__tstate); | |
18953 | if (PyErr_Occurred()) SWIG_fail; | |
18954 | } | |
15afbcd0 | 18955 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
18956 | return resultobj; |
18957 | fail: | |
18958 | return NULL; | |
18959 | } | |
18960 | ||
18961 | ||
18962 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18963 | PyObject *resultobj; | |
18964 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18965 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18966 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18967 | int result; | |
7722248d | 18968 | bool temp2 = False ; |
d14a1e28 RD |
18969 | PyObject * obj0 = 0 ; |
18970 | PyObject * obj1 = 0 ; | |
18971 | char *kwnames[] = { | |
18972 | (char *) "self",(char *) "tz", NULL | |
18973 | }; | |
18974 | ||
18975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18978 | if (obj1) { |
18979 | { | |
18980 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18981 | temp2 = True; |
d14a1e28 RD |
18982 | } |
18983 | } | |
18984 | { | |
18985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18986 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
18987 | ||
18988 | wxPyEndAllowThreads(__tstate); | |
18989 | if (PyErr_Occurred()) SWIG_fail; | |
18990 | } | |
15afbcd0 | 18991 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 18992 | { |
7722248d | 18993 | if (temp2) delete arg2; |
d14a1e28 RD |
18994 | } |
18995 | return resultobj; | |
18996 | fail: | |
18997 | { | |
7722248d | 18998 | if (temp2) delete arg2; |
d14a1e28 RD |
18999 | } |
19000 | return NULL; | |
19001 | } | |
19002 | ||
19003 | ||
19004 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19005 | PyObject *resultobj; | |
19006 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19007 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19008 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19009 | int result; | |
7722248d | 19010 | bool temp2 = False ; |
d14a1e28 RD |
19011 | PyObject * obj0 = 0 ; |
19012 | PyObject * obj1 = 0 ; | |
19013 | char *kwnames[] = { | |
19014 | (char *) "self",(char *) "tz", NULL | |
19015 | }; | |
19016 | ||
19017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19020 | if (obj1) { |
19021 | { | |
19022 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19023 | temp2 = True; |
d14a1e28 RD |
19024 | } |
19025 | } | |
19026 | { | |
19027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19028 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
19029 | ||
19030 | wxPyEndAllowThreads(__tstate); | |
19031 | if (PyErr_Occurred()) SWIG_fail; | |
19032 | } | |
15afbcd0 | 19033 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19034 | { |
7722248d | 19035 | if (temp2) delete arg2; |
d14a1e28 RD |
19036 | } |
19037 | return resultobj; | |
19038 | fail: | |
19039 | { | |
7722248d | 19040 | if (temp2) delete arg2; |
d14a1e28 RD |
19041 | } |
19042 | return NULL; | |
19043 | } | |
19044 | ||
19045 | ||
19046 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19047 | PyObject *resultobj; | |
19048 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19049 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19050 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19051 | int result; |
7722248d | 19052 | bool temp2 = False ; |
d14a1e28 RD |
19053 | PyObject * obj0 = 0 ; |
19054 | PyObject * obj1 = 0 ; | |
19055 | char *kwnames[] = { | |
19056 | (char *) "self",(char *) "tz", NULL | |
19057 | }; | |
19058 | ||
19059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19062 | if (obj1) { |
19063 | { | |
19064 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19065 | temp2 = True; |
d14a1e28 RD |
19066 | } |
19067 | } | |
19068 | { | |
19069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19070 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19071 | |
19072 | wxPyEndAllowThreads(__tstate); | |
19073 | if (PyErr_Occurred()) SWIG_fail; | |
19074 | } | |
15afbcd0 | 19075 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19076 | { |
7722248d | 19077 | if (temp2) delete arg2; |
d14a1e28 RD |
19078 | } |
19079 | return resultobj; | |
19080 | fail: | |
19081 | { | |
7722248d | 19082 | if (temp2) delete arg2; |
d14a1e28 RD |
19083 | } |
19084 | return NULL; | |
19085 | } | |
19086 | ||
19087 | ||
19088 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19089 | PyObject *resultobj; | |
19090 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19091 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19092 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19093 | int result; | |
7722248d | 19094 | bool temp2 = False ; |
d14a1e28 RD |
19095 | PyObject * obj0 = 0 ; |
19096 | PyObject * obj1 = 0 ; | |
19097 | char *kwnames[] = { | |
19098 | (char *) "self",(char *) "tz", NULL | |
19099 | }; | |
19100 | ||
19101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19104 | if (obj1) { |
19105 | { | |
19106 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19107 | temp2 = True; |
d14a1e28 RD |
19108 | } |
19109 | } | |
19110 | { | |
19111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19112 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
19113 | ||
19114 | wxPyEndAllowThreads(__tstate); | |
19115 | if (PyErr_Occurred()) SWIG_fail; | |
19116 | } | |
15afbcd0 | 19117 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19118 | { |
7722248d | 19119 | if (temp2) delete arg2; |
d14a1e28 RD |
19120 | } |
19121 | return resultobj; | |
19122 | fail: | |
19123 | { | |
7722248d | 19124 | if (temp2) delete arg2; |
d14a1e28 RD |
19125 | } |
19126 | return NULL; | |
19127 | } | |
19128 | ||
19129 | ||
19130 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19131 | PyObject *resultobj; | |
19132 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19133 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19134 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19135 | int result; |
7722248d | 19136 | bool temp2 = False ; |
d14a1e28 RD |
19137 | PyObject * obj0 = 0 ; |
19138 | PyObject * obj1 = 0 ; | |
19139 | char *kwnames[] = { | |
19140 | (char *) "self",(char *) "tz", NULL | |
19141 | }; | |
19142 | ||
19143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19146 | if (obj1) { |
19147 | { | |
19148 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19149 | temp2 = True; |
d14a1e28 RD |
19150 | } |
19151 | } | |
19152 | { | |
19153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19154 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19155 | |
19156 | wxPyEndAllowThreads(__tstate); | |
19157 | if (PyErr_Occurred()) SWIG_fail; | |
19158 | } | |
15afbcd0 | 19159 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19160 | { |
7722248d | 19161 | if (temp2) delete arg2; |
d14a1e28 RD |
19162 | } |
19163 | return resultobj; | |
19164 | fail: | |
19165 | { | |
7722248d | 19166 | if (temp2) delete arg2; |
d14a1e28 RD |
19167 | } |
19168 | return NULL; | |
19169 | } | |
19170 | ||
19171 | ||
19172 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19173 | PyObject *resultobj; | |
19174 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19175 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19176 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19177 | int result; |
7722248d | 19178 | bool temp2 = False ; |
d14a1e28 RD |
19179 | PyObject * obj0 = 0 ; |
19180 | PyObject * obj1 = 0 ; | |
19181 | char *kwnames[] = { | |
19182 | (char *) "self",(char *) "tz", NULL | |
19183 | }; | |
19184 | ||
19185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19188 | if (obj1) { |
19189 | { | |
19190 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19191 | temp2 = True; |
d14a1e28 RD |
19192 | } |
19193 | } | |
19194 | { | |
19195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19196 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19197 | |
19198 | wxPyEndAllowThreads(__tstate); | |
19199 | if (PyErr_Occurred()) SWIG_fail; | |
19200 | } | |
15afbcd0 | 19201 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19202 | { |
7722248d | 19203 | if (temp2) delete arg2; |
d14a1e28 RD |
19204 | } |
19205 | return resultobj; | |
19206 | fail: | |
19207 | { | |
7722248d | 19208 | if (temp2) delete arg2; |
d14a1e28 RD |
19209 | } |
19210 | return NULL; | |
19211 | } | |
19212 | ||
19213 | ||
19214 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19215 | PyObject *resultobj; | |
19216 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19217 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19218 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19219 | int result; |
7722248d | 19220 | bool temp2 = False ; |
d14a1e28 RD |
19221 | PyObject * obj0 = 0 ; |
19222 | PyObject * obj1 = 0 ; | |
19223 | char *kwnames[] = { | |
19224 | (char *) "self",(char *) "tz", NULL | |
19225 | }; | |
19226 | ||
19227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19230 | if (obj1) { |
19231 | { | |
19232 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19233 | temp2 = True; |
d14a1e28 RD |
19234 | } |
19235 | } | |
19236 | { | |
19237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19238 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19239 | |
19240 | wxPyEndAllowThreads(__tstate); | |
19241 | if (PyErr_Occurred()) SWIG_fail; | |
19242 | } | |
15afbcd0 | 19243 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19244 | { |
7722248d | 19245 | if (temp2) delete arg2; |
d14a1e28 RD |
19246 | } |
19247 | return resultobj; | |
19248 | fail: | |
19249 | { | |
7722248d | 19250 | if (temp2) delete arg2; |
d14a1e28 RD |
19251 | } |
19252 | return NULL; | |
19253 | } | |
19254 | ||
19255 | ||
19256 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19257 | PyObject *resultobj; | |
19258 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19259 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19260 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19261 | int result; |
7722248d | 19262 | bool temp2 = False ; |
d14a1e28 RD |
19263 | PyObject * obj0 = 0 ; |
19264 | PyObject * obj1 = 0 ; | |
19265 | char *kwnames[] = { | |
19266 | (char *) "self",(char *) "tz", NULL | |
19267 | }; | |
19268 | ||
19269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19272 | if (obj1) { |
19273 | { | |
19274 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19275 | temp2 = True; |
d14a1e28 RD |
19276 | } |
19277 | } | |
19278 | { | |
19279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19280 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19281 | |
19282 | wxPyEndAllowThreads(__tstate); | |
19283 | if (PyErr_Occurred()) SWIG_fail; | |
19284 | } | |
15afbcd0 | 19285 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19286 | { |
7722248d | 19287 | if (temp2) delete arg2; |
d14a1e28 RD |
19288 | } |
19289 | return resultobj; | |
19290 | fail: | |
19291 | { | |
7722248d | 19292 | if (temp2) delete arg2; |
d14a1e28 RD |
19293 | } |
19294 | return NULL; | |
19295 | } | |
19296 | ||
19297 | ||
19298 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19299 | PyObject *resultobj; | |
19300 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19301 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19302 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19303 | int result; |
7722248d | 19304 | bool temp2 = False ; |
d14a1e28 RD |
19305 | PyObject * obj0 = 0 ; |
19306 | PyObject * obj1 = 0 ; | |
19307 | char *kwnames[] = { | |
19308 | (char *) "self",(char *) "tz", NULL | |
19309 | }; | |
19310 | ||
19311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19314 | if (obj1) { |
19315 | { | |
19316 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19317 | temp2 = True; |
d14a1e28 RD |
19318 | } |
19319 | } | |
19320 | { | |
19321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19322 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19323 | |
19324 | wxPyEndAllowThreads(__tstate); | |
19325 | if (PyErr_Occurred()) SWIG_fail; | |
19326 | } | |
15afbcd0 | 19327 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19328 | { |
7722248d | 19329 | if (temp2) delete arg2; |
d14a1e28 RD |
19330 | } |
19331 | return resultobj; | |
19332 | fail: | |
19333 | { | |
7722248d | 19334 | if (temp2) delete arg2; |
d14a1e28 RD |
19335 | } |
19336 | return NULL; | |
19337 | } | |
19338 | ||
19339 | ||
19340 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19341 | PyObject *resultobj; | |
19342 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19343 | int arg2 = (int) wxDateTime::Monday_First ; | |
19344 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19345 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 19346 | int result; |
7722248d | 19347 | bool temp3 = False ; |
d14a1e28 | 19348 | PyObject * obj0 = 0 ; |
994141e6 | 19349 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19350 | PyObject * obj2 = 0 ; |
19351 | char *kwnames[] = { | |
19352 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19353 | }; | |
19354 | ||
994141e6 | 19355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
19356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 19358 | if (obj1) { |
15afbcd0 RD |
19359 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); |
19360 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19361 | } |
d14a1e28 RD |
19362 | if (obj2) { |
19363 | { | |
19364 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 19365 | temp3 = True; |
d14a1e28 RD |
19366 | } |
19367 | } | |
19368 | { | |
19369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19370 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
19371 | |
19372 | wxPyEndAllowThreads(__tstate); | |
19373 | if (PyErr_Occurred()) SWIG_fail; | |
19374 | } | |
15afbcd0 | 19375 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19376 | { |
7722248d | 19377 | if (temp3) delete arg3; |
d14a1e28 RD |
19378 | } |
19379 | return resultobj; | |
19380 | fail: | |
19381 | { | |
7722248d | 19382 | if (temp3) delete arg3; |
d14a1e28 RD |
19383 | } |
19384 | return NULL; | |
19385 | } | |
19386 | ||
19387 | ||
19388 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19389 | PyObject *resultobj; | |
19390 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19391 | int arg2 = (int) wxDateTime::Monday_First ; | |
19392 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19393 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 19394 | int result; |
7722248d | 19395 | bool temp3 = False ; |
d14a1e28 | 19396 | PyObject * obj0 = 0 ; |
994141e6 | 19397 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19398 | PyObject * obj2 = 0 ; |
19399 | char *kwnames[] = { | |
19400 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19401 | }; | |
19402 | ||
994141e6 | 19403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
19404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 19406 | if (obj1) { |
15afbcd0 RD |
19407 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); |
19408 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19409 | } |
d14a1e28 RD |
19410 | if (obj2) { |
19411 | { | |
19412 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 19413 | temp3 = True; |
d14a1e28 RD |
19414 | } |
19415 | } | |
19416 | { | |
19417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19418 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
19419 | |
19420 | wxPyEndAllowThreads(__tstate); | |
19421 | if (PyErr_Occurred()) SWIG_fail; | |
19422 | } | |
15afbcd0 | 19423 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19424 | { |
7722248d | 19425 | if (temp3) delete arg3; |
d14a1e28 RD |
19426 | } |
19427 | return resultobj; | |
19428 | fail: | |
19429 | { | |
7722248d | 19430 | if (temp3) delete arg3; |
d14a1e28 RD |
19431 | } |
19432 | return NULL; | |
19433 | } | |
19434 | ||
19435 | ||
19436 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19437 | PyObject *resultobj; | |
19438 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19439 | int arg2 = (int) wxDateTime::Country_Default ; | |
19440 | bool result; | |
19441 | PyObject * obj0 = 0 ; | |
994141e6 | 19442 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19443 | char *kwnames[] = { |
19444 | (char *) "self",(char *) "country", NULL | |
19445 | }; | |
19446 | ||
994141e6 | 19447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 19450 | if (obj1) { |
15afbcd0 RD |
19451 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
19452 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19453 | } |
d14a1e28 RD |
19454 | { |
19455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19456 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
19457 | ||
19458 | wxPyEndAllowThreads(__tstate); | |
19459 | if (PyErr_Occurred()) SWIG_fail; | |
19460 | } | |
4f89f6a3 RD |
19461 | { |
19462 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19463 | } | |
d14a1e28 RD |
19464 | return resultobj; |
19465 | fail: | |
19466 | return NULL; | |
19467 | } | |
19468 | ||
19469 | ||
19470 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19471 | PyObject *resultobj; | |
19472 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19473 | wxDateTime *arg2 = 0 ; | |
19474 | bool result; | |
19475 | PyObject * obj0 = 0 ; | |
19476 | PyObject * obj1 = 0 ; | |
19477 | char *kwnames[] = { | |
19478 | (char *) "self",(char *) "datetime", NULL | |
19479 | }; | |
19480 | ||
19481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19484 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19485 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19486 | SWIG_fail; | |
d14a1e28 | 19487 | if (arg2 == NULL) { |
15afbcd0 RD |
19488 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19489 | SWIG_fail; | |
d14a1e28 RD |
19490 | } |
19491 | { | |
19492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19493 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
19494 | ||
19495 | wxPyEndAllowThreads(__tstate); | |
19496 | if (PyErr_Occurred()) SWIG_fail; | |
19497 | } | |
4f89f6a3 RD |
19498 | { |
19499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19500 | } | |
d14a1e28 RD |
19501 | return resultobj; |
19502 | fail: | |
19503 | return NULL; | |
19504 | } | |
19505 | ||
19506 | ||
19507 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19508 | PyObject *resultobj; | |
19509 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19510 | wxDateTime *arg2 = 0 ; | |
19511 | bool result; | |
19512 | PyObject * obj0 = 0 ; | |
19513 | PyObject * obj1 = 0 ; | |
19514 | char *kwnames[] = { | |
19515 | (char *) "self",(char *) "datetime", NULL | |
19516 | }; | |
19517 | ||
19518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19521 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19522 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19523 | SWIG_fail; | |
d14a1e28 | 19524 | if (arg2 == NULL) { |
15afbcd0 RD |
19525 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19526 | SWIG_fail; | |
d14a1e28 RD |
19527 | } |
19528 | { | |
19529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19530 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
19531 | ||
19532 | wxPyEndAllowThreads(__tstate); | |
19533 | if (PyErr_Occurred()) SWIG_fail; | |
19534 | } | |
4f89f6a3 RD |
19535 | { |
19536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19537 | } | |
d14a1e28 RD |
19538 | return resultobj; |
19539 | fail: | |
19540 | return NULL; | |
19541 | } | |
19542 | ||
19543 | ||
19544 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19545 | PyObject *resultobj; | |
19546 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19547 | wxDateTime *arg2 = 0 ; | |
19548 | bool result; | |
19549 | PyObject * obj0 = 0 ; | |
19550 | PyObject * obj1 = 0 ; | |
19551 | char *kwnames[] = { | |
19552 | (char *) "self",(char *) "datetime", NULL | |
19553 | }; | |
19554 | ||
19555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19558 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19559 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19560 | SWIG_fail; | |
d14a1e28 | 19561 | if (arg2 == NULL) { |
15afbcd0 RD |
19562 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19563 | SWIG_fail; | |
d14a1e28 RD |
19564 | } |
19565 | { | |
19566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19567 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
19568 | ||
19569 | wxPyEndAllowThreads(__tstate); | |
19570 | if (PyErr_Occurred()) SWIG_fail; | |
19571 | } | |
4f89f6a3 RD |
19572 | { |
19573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19574 | } | |
d14a1e28 RD |
19575 | return resultobj; |
19576 | fail: | |
19577 | return NULL; | |
19578 | } | |
19579 | ||
19580 | ||
19581 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19582 | PyObject *resultobj; | |
19583 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19584 | wxDateTime *arg2 = 0 ; | |
19585 | wxDateTime *arg3 = 0 ; | |
19586 | bool result; | |
19587 | PyObject * obj0 = 0 ; | |
19588 | PyObject * obj1 = 0 ; | |
19589 | PyObject * obj2 = 0 ; | |
19590 | char *kwnames[] = { | |
19591 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19592 | }; | |
19593 | ||
19594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19597 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19598 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19599 | SWIG_fail; | |
d14a1e28 | 19600 | if (arg2 == NULL) { |
15afbcd0 RD |
19601 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19602 | SWIG_fail; | |
d14a1e28 | 19603 | } |
15afbcd0 RD |
19604 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, |
19605 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19606 | SWIG_fail; | |
d14a1e28 | 19607 | if (arg3 == NULL) { |
15afbcd0 RD |
19608 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19609 | SWIG_fail; | |
d14a1e28 RD |
19610 | } |
19611 | { | |
19612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19613 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19614 | ||
19615 | wxPyEndAllowThreads(__tstate); | |
19616 | if (PyErr_Occurred()) SWIG_fail; | |
19617 | } | |
4f89f6a3 RD |
19618 | { |
19619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19620 | } | |
d14a1e28 RD |
19621 | return resultobj; |
19622 | fail: | |
19623 | return NULL; | |
19624 | } | |
19625 | ||
19626 | ||
19627 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19628 | PyObject *resultobj; | |
19629 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19630 | wxDateTime *arg2 = 0 ; | |
19631 | wxDateTime *arg3 = 0 ; | |
19632 | bool result; | |
19633 | PyObject * obj0 = 0 ; | |
19634 | PyObject * obj1 = 0 ; | |
19635 | PyObject * obj2 = 0 ; | |
19636 | char *kwnames[] = { | |
19637 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19638 | }; | |
19639 | ||
19640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19643 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19644 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19645 | SWIG_fail; | |
d14a1e28 | 19646 | if (arg2 == NULL) { |
15afbcd0 RD |
19647 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19648 | SWIG_fail; | |
d14a1e28 | 19649 | } |
15afbcd0 RD |
19650 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, |
19651 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19652 | SWIG_fail; | |
d14a1e28 | 19653 | if (arg3 == NULL) { |
15afbcd0 RD |
19654 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19655 | SWIG_fail; | |
d14a1e28 RD |
19656 | } |
19657 | { | |
19658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19659 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19660 | ||
19661 | wxPyEndAllowThreads(__tstate); | |
19662 | if (PyErr_Occurred()) SWIG_fail; | |
19663 | } | |
4f89f6a3 RD |
19664 | { |
19665 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19666 | } | |
d14a1e28 RD |
19667 | return resultobj; |
19668 | fail: | |
19669 | return NULL; | |
19670 | } | |
19671 | ||
19672 | ||
19673 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19674 | PyObject *resultobj; | |
19675 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19676 | wxDateTime *arg2 = 0 ; | |
19677 | bool result; | |
19678 | PyObject * obj0 = 0 ; | |
19679 | PyObject * obj1 = 0 ; | |
19680 | char *kwnames[] = { | |
19681 | (char *) "self",(char *) "dt", NULL | |
19682 | }; | |
19683 | ||
19684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19687 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19688 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19689 | SWIG_fail; | |
d14a1e28 | 19690 | if (arg2 == NULL) { |
15afbcd0 RD |
19691 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19692 | SWIG_fail; | |
d14a1e28 RD |
19693 | } |
19694 | { | |
19695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19696 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
19697 | ||
19698 | wxPyEndAllowThreads(__tstate); | |
19699 | if (PyErr_Occurred()) SWIG_fail; | |
19700 | } | |
4f89f6a3 RD |
19701 | { |
19702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19703 | } | |
d14a1e28 RD |
19704 | return resultobj; |
19705 | fail: | |
19706 | return NULL; | |
19707 | } | |
19708 | ||
19709 | ||
19710 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19711 | PyObject *resultobj; | |
19712 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19713 | wxDateTime *arg2 = 0 ; | |
19714 | bool result; | |
19715 | PyObject * obj0 = 0 ; | |
19716 | PyObject * obj1 = 0 ; | |
19717 | char *kwnames[] = { | |
19718 | (char *) "self",(char *) "dt", NULL | |
19719 | }; | |
19720 | ||
19721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19725 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19726 | SWIG_fail; | |
d14a1e28 | 19727 | if (arg2 == NULL) { |
15afbcd0 RD |
19728 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19729 | SWIG_fail; | |
d14a1e28 RD |
19730 | } |
19731 | { | |
19732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19733 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
19734 | ||
19735 | wxPyEndAllowThreads(__tstate); | |
19736 | if (PyErr_Occurred()) SWIG_fail; | |
19737 | } | |
4f89f6a3 RD |
19738 | { |
19739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19740 | } | |
d14a1e28 RD |
19741 | return resultobj; |
19742 | fail: | |
19743 | return NULL; | |
19744 | } | |
19745 | ||
19746 | ||
19747 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19748 | PyObject *resultobj; | |
19749 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19750 | wxDateTime *arg2 = 0 ; | |
19751 | wxTimeSpan *arg3 = 0 ; | |
19752 | bool result; | |
19753 | PyObject * obj0 = 0 ; | |
19754 | PyObject * obj1 = 0 ; | |
19755 | PyObject * obj2 = 0 ; | |
19756 | char *kwnames[] = { | |
19757 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
19758 | }; | |
19759 | ||
19760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19763 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19764 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19765 | SWIG_fail; | |
d14a1e28 | 19766 | if (arg2 == NULL) { |
15afbcd0 RD |
19767 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19768 | SWIG_fail; | |
d14a1e28 | 19769 | } |
15afbcd0 RD |
19770 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan, |
19771 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19772 | SWIG_fail; | |
d14a1e28 | 19773 | if (arg3 == NULL) { |
15afbcd0 RD |
19774 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19775 | SWIG_fail; | |
d14a1e28 RD |
19776 | } |
19777 | { | |
19778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19779 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
19780 | ||
19781 | wxPyEndAllowThreads(__tstate); | |
19782 | if (PyErr_Occurred()) SWIG_fail; | |
19783 | } | |
4f89f6a3 RD |
19784 | { |
19785 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19786 | } | |
d14a1e28 RD |
19787 | return resultobj; |
19788 | fail: | |
19789 | return NULL; | |
19790 | } | |
19791 | ||
19792 | ||
19793 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19794 | PyObject *resultobj; | |
19795 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19796 | wxTimeSpan *arg2 = 0 ; | |
19797 | wxDateTime *result; | |
19798 | PyObject * obj0 = 0 ; | |
19799 | PyObject * obj1 = 0 ; | |
19800 | char *kwnames[] = { | |
19801 | (char *) "self",(char *) "diff", NULL | |
19802 | }; | |
19803 | ||
19804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19807 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19808 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19809 | SWIG_fail; | |
d14a1e28 | 19810 | if (arg2 == NULL) { |
15afbcd0 RD |
19811 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19812 | SWIG_fail; | |
d14a1e28 RD |
19813 | } |
19814 | { | |
19815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19816 | { | |
19817 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
19818 | result = (wxDateTime *) &_result_ref; | |
19819 | } | |
19820 | ||
19821 | wxPyEndAllowThreads(__tstate); | |
19822 | if (PyErr_Occurred()) SWIG_fail; | |
19823 | } | |
15afbcd0 | 19824 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19825 | return resultobj; |
19826 | fail: | |
19827 | return NULL; | |
19828 | } | |
19829 | ||
19830 | ||
19831 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19832 | PyObject *resultobj; | |
19833 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19834 | wxDateSpan *arg2 = 0 ; | |
19835 | wxDateTime *result; | |
19836 | PyObject * obj0 = 0 ; | |
19837 | PyObject * obj1 = 0 ; | |
19838 | char *kwnames[] = { | |
19839 | (char *) "self",(char *) "diff", NULL | |
19840 | }; | |
19841 | ||
19842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19845 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19846 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19847 | SWIG_fail; | |
d14a1e28 | 19848 | if (arg2 == NULL) { |
15afbcd0 RD |
19849 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19850 | SWIG_fail; | |
d14a1e28 RD |
19851 | } |
19852 | { | |
19853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19854 | { | |
19855 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
19856 | result = (wxDateTime *) &_result_ref; | |
19857 | } | |
19858 | ||
19859 | wxPyEndAllowThreads(__tstate); | |
19860 | if (PyErr_Occurred()) SWIG_fail; | |
19861 | } | |
15afbcd0 | 19862 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19863 | return resultobj; |
19864 | fail: | |
19865 | return NULL; | |
19866 | } | |
19867 | ||
19868 | ||
19869 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19870 | PyObject *resultobj; | |
19871 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19872 | wxTimeSpan *arg2 = 0 ; | |
19873 | wxDateTime *result; | |
19874 | PyObject * obj0 = 0 ; | |
19875 | PyObject * obj1 = 0 ; | |
19876 | char *kwnames[] = { | |
19877 | (char *) "self",(char *) "diff", NULL | |
19878 | }; | |
19879 | ||
19880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19883 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19884 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19885 | SWIG_fail; | |
d14a1e28 | 19886 | if (arg2 == NULL) { |
15afbcd0 RD |
19887 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19888 | SWIG_fail; | |
d14a1e28 RD |
19889 | } |
19890 | { | |
19891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19892 | { | |
19893 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
19894 | result = (wxDateTime *) &_result_ref; | |
19895 | } | |
19896 | ||
19897 | wxPyEndAllowThreads(__tstate); | |
19898 | if (PyErr_Occurred()) SWIG_fail; | |
19899 | } | |
15afbcd0 | 19900 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19901 | return resultobj; |
19902 | fail: | |
19903 | return NULL; | |
19904 | } | |
19905 | ||
19906 | ||
19907 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19908 | PyObject *resultobj; | |
19909 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19910 | wxDateSpan *arg2 = 0 ; | |
19911 | wxDateTime *result; | |
19912 | PyObject * obj0 = 0 ; | |
19913 | PyObject * obj1 = 0 ; | |
19914 | char *kwnames[] = { | |
19915 | (char *) "self",(char *) "diff", NULL | |
19916 | }; | |
19917 | ||
19918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19921 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19922 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19923 | SWIG_fail; | |
d14a1e28 | 19924 | if (arg2 == NULL) { |
15afbcd0 RD |
19925 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19926 | SWIG_fail; | |
d14a1e28 RD |
19927 | } |
19928 | { | |
19929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19930 | { | |
19931 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
19932 | result = (wxDateTime *) &_result_ref; | |
19933 | } | |
19934 | ||
19935 | wxPyEndAllowThreads(__tstate); | |
19936 | if (PyErr_Occurred()) SWIG_fail; | |
19937 | } | |
15afbcd0 | 19938 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19939 | return resultobj; |
19940 | fail: | |
19941 | return NULL; | |
19942 | } | |
19943 | ||
19944 | ||
19945 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19946 | PyObject *resultobj; | |
19947 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19948 | wxDateTime *arg2 = 0 ; | |
19949 | wxTimeSpan result; | |
19950 | PyObject * obj0 = 0 ; | |
19951 | PyObject * obj1 = 0 ; | |
19952 | char *kwnames[] = { | |
19953 | (char *) "self",(char *) "dt", NULL | |
19954 | }; | |
19955 | ||
19956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19959 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19960 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19961 | SWIG_fail; | |
d14a1e28 | 19962 | if (arg2 == NULL) { |
15afbcd0 RD |
19963 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19964 | SWIG_fail; | |
d14a1e28 RD |
19965 | } |
19966 | { | |
19967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19968 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
19969 | ||
19970 | wxPyEndAllowThreads(__tstate); | |
19971 | if (PyErr_Occurred()) SWIG_fail; | |
19972 | } | |
19973 | { | |
19974 | wxTimeSpan * resultptr; | |
19975 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 19976 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
19977 | } |
19978 | return resultobj; | |
19979 | fail: | |
19980 | return NULL; | |
19981 | } | |
19982 | ||
19983 | ||
19984 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
19985 | PyObject *resultobj; | |
19986 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19987 | wxTimeSpan *arg2 = 0 ; | |
19988 | wxDateTime *result; | |
19989 | PyObject * obj0 = 0 ; | |
19990 | PyObject * obj1 = 0 ; | |
19991 | ||
19992 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19995 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19996 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19997 | SWIG_fail; | |
d14a1e28 | 19998 | if (arg2 == NULL) { |
15afbcd0 RD |
19999 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20000 | SWIG_fail; | |
d14a1e28 RD |
20001 | } |
20002 | { | |
20003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20004 | { | |
20005 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
20006 | result = (wxDateTime *) &_result_ref; | |
20007 | } | |
20008 | ||
20009 | wxPyEndAllowThreads(__tstate); | |
20010 | if (PyErr_Occurred()) SWIG_fail; | |
20011 | } | |
15afbcd0 | 20012 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20013 | return resultobj; |
20014 | fail: | |
20015 | return NULL; | |
20016 | } | |
20017 | ||
20018 | ||
20019 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
20020 | PyObject *resultobj; | |
20021 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20022 | wxDateSpan *arg2 = 0 ; | |
20023 | wxDateTime *result; | |
20024 | PyObject * obj0 = 0 ; | |
20025 | PyObject * obj1 = 0 ; | |
20026 | ||
20027 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20030 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20031 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20032 | SWIG_fail; | |
d14a1e28 | 20033 | if (arg2 == NULL) { |
15afbcd0 RD |
20034 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20035 | SWIG_fail; | |
d14a1e28 RD |
20036 | } |
20037 | { | |
20038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20039 | { | |
20040 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
20041 | result = (wxDateTime *) &_result_ref; | |
20042 | } | |
20043 | ||
20044 | wxPyEndAllowThreads(__tstate); | |
20045 | if (PyErr_Occurred()) SWIG_fail; | |
20046 | } | |
15afbcd0 | 20047 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20048 | return resultobj; |
20049 | fail: | |
20050 | return NULL; | |
20051 | } | |
20052 | ||
20053 | ||
20054 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
20055 | int argc; | |
20056 | PyObject *argv[3]; | |
20057 | int ii; | |
20058 | ||
20059 | argc = PyObject_Length(args); | |
20060 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20061 | argv[ii] = PyTuple_GetItem(args,ii); | |
20062 | } | |
20063 | if (argc == 2) { | |
20064 | int _v; | |
20065 | { | |
20066 | void *ptr; | |
15afbcd0 | 20067 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20068 | _v = 0; |
20069 | PyErr_Clear(); | |
20070 | } else { | |
20071 | _v = 1; | |
20072 | } | |
20073 | } | |
20074 | if (_v) { | |
20075 | { | |
20076 | void *ptr; | |
15afbcd0 | 20077 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20078 | _v = 0; |
20079 | PyErr_Clear(); | |
20080 | } else { | |
20081 | _v = 1; | |
20082 | } | |
20083 | } | |
20084 | if (_v) { | |
20085 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
20086 | } | |
20087 | } | |
20088 | } | |
20089 | if (argc == 2) { | |
20090 | int _v; | |
20091 | { | |
20092 | void *ptr; | |
15afbcd0 | 20093 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20094 | _v = 0; |
20095 | PyErr_Clear(); | |
20096 | } else { | |
20097 | _v = 1; | |
20098 | } | |
20099 | } | |
20100 | if (_v) { | |
20101 | { | |
20102 | void *ptr; | |
15afbcd0 | 20103 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20104 | _v = 0; |
20105 | PyErr_Clear(); | |
20106 | } else { | |
20107 | _v = 1; | |
20108 | } | |
20109 | } | |
20110 | if (_v) { | |
20111 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
20112 | } | |
20113 | } | |
20114 | } | |
20115 | ||
20116 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
20117 | return NULL; | |
20118 | } | |
20119 | ||
20120 | ||
20121 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
20122 | PyObject *resultobj; | |
20123 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20124 | wxTimeSpan *arg2 = 0 ; | |
20125 | wxDateTime *result; | |
20126 | PyObject * obj0 = 0 ; | |
20127 | PyObject * obj1 = 0 ; | |
20128 | ||
20129 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20132 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20133 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20134 | SWIG_fail; | |
d14a1e28 | 20135 | if (arg2 == NULL) { |
15afbcd0 RD |
20136 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20137 | SWIG_fail; | |
d14a1e28 RD |
20138 | } |
20139 | { | |
20140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20141 | { | |
20142 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
20143 | result = (wxDateTime *) &_result_ref; | |
20144 | } | |
20145 | ||
20146 | wxPyEndAllowThreads(__tstate); | |
20147 | if (PyErr_Occurred()) SWIG_fail; | |
20148 | } | |
15afbcd0 | 20149 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20150 | return resultobj; |
20151 | fail: | |
20152 | return NULL; | |
20153 | } | |
20154 | ||
20155 | ||
20156 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
20157 | PyObject *resultobj; | |
20158 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20159 | wxDateSpan *arg2 = 0 ; | |
20160 | wxDateTime *result; | |
20161 | PyObject * obj0 = 0 ; | |
20162 | PyObject * obj1 = 0 ; | |
20163 | ||
20164 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20167 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20168 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20169 | SWIG_fail; | |
d14a1e28 | 20170 | if (arg2 == NULL) { |
15afbcd0 RD |
20171 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20172 | SWIG_fail; | |
d14a1e28 RD |
20173 | } |
20174 | { | |
20175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20176 | { | |
20177 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
20178 | result = (wxDateTime *) &_result_ref; | |
20179 | } | |
20180 | ||
20181 | wxPyEndAllowThreads(__tstate); | |
20182 | if (PyErr_Occurred()) SWIG_fail; | |
20183 | } | |
15afbcd0 | 20184 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20185 | return resultobj; |
20186 | fail: | |
20187 | return NULL; | |
20188 | } | |
20189 | ||
20190 | ||
20191 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
20192 | int argc; | |
20193 | PyObject *argv[3]; | |
20194 | int ii; | |
20195 | ||
20196 | argc = PyObject_Length(args); | |
20197 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20198 | argv[ii] = PyTuple_GetItem(args,ii); | |
20199 | } | |
20200 | if (argc == 2) { | |
20201 | int _v; | |
20202 | { | |
20203 | void *ptr; | |
15afbcd0 | 20204 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20205 | _v = 0; |
20206 | PyErr_Clear(); | |
20207 | } else { | |
20208 | _v = 1; | |
20209 | } | |
20210 | } | |
20211 | if (_v) { | |
20212 | { | |
20213 | void *ptr; | |
15afbcd0 | 20214 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20215 | _v = 0; |
20216 | PyErr_Clear(); | |
20217 | } else { | |
20218 | _v = 1; | |
20219 | } | |
20220 | } | |
20221 | if (_v) { | |
20222 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
20223 | } | |
20224 | } | |
20225 | } | |
20226 | if (argc == 2) { | |
20227 | int _v; | |
20228 | { | |
20229 | void *ptr; | |
15afbcd0 | 20230 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20231 | _v = 0; |
20232 | PyErr_Clear(); | |
20233 | } else { | |
20234 | _v = 1; | |
20235 | } | |
20236 | } | |
20237 | if (_v) { | |
20238 | { | |
20239 | void *ptr; | |
15afbcd0 | 20240 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20241 | _v = 0; |
20242 | PyErr_Clear(); | |
20243 | } else { | |
20244 | _v = 1; | |
20245 | } | |
20246 | } | |
20247 | if (_v) { | |
20248 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
20249 | } | |
20250 | } | |
20251 | } | |
20252 | ||
20253 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
20254 | return NULL; | |
20255 | } | |
20256 | ||
20257 | ||
20258 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
20259 | PyObject *resultobj; | |
20260 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20261 | wxTimeSpan *arg2 = 0 ; | |
20262 | wxDateTime result; | |
20263 | PyObject * obj0 = 0 ; | |
20264 | PyObject * obj1 = 0 ; | |
20265 | ||
20266 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20269 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20270 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20271 | SWIG_fail; | |
d14a1e28 | 20272 | if (arg2 == NULL) { |
15afbcd0 RD |
20273 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20274 | SWIG_fail; | |
d14a1e28 RD |
20275 | } |
20276 | { | |
20277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20278 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
20279 | ||
20280 | wxPyEndAllowThreads(__tstate); | |
20281 | if (PyErr_Occurred()) SWIG_fail; | |
20282 | } | |
20283 | { | |
20284 | wxDateTime * resultptr; | |
20285 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20286 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20287 | } |
20288 | return resultobj; | |
20289 | fail: | |
20290 | return NULL; | |
20291 | } | |
20292 | ||
20293 | ||
20294 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
20295 | PyObject *resultobj; | |
20296 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20297 | wxDateSpan *arg2 = 0 ; | |
20298 | wxDateTime result; | |
20299 | PyObject * obj0 = 0 ; | |
20300 | PyObject * obj1 = 0 ; | |
20301 | ||
20302 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20305 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20306 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20307 | SWIG_fail; | |
d14a1e28 | 20308 | if (arg2 == NULL) { |
15afbcd0 RD |
20309 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20310 | SWIG_fail; | |
d14a1e28 RD |
20311 | } |
20312 | { | |
20313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20314 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
20315 | ||
20316 | wxPyEndAllowThreads(__tstate); | |
20317 | if (PyErr_Occurred()) SWIG_fail; | |
20318 | } | |
20319 | { | |
20320 | wxDateTime * resultptr; | |
20321 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20322 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20323 | } |
20324 | return resultobj; | |
20325 | fail: | |
20326 | return NULL; | |
20327 | } | |
20328 | ||
20329 | ||
20330 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
20331 | int argc; | |
20332 | PyObject *argv[3]; | |
20333 | int ii; | |
20334 | ||
20335 | argc = PyObject_Length(args); | |
20336 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20337 | argv[ii] = PyTuple_GetItem(args,ii); | |
20338 | } | |
20339 | if (argc == 2) { | |
20340 | int _v; | |
20341 | { | |
20342 | void *ptr; | |
15afbcd0 | 20343 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20344 | _v = 0; |
20345 | PyErr_Clear(); | |
20346 | } else { | |
20347 | _v = 1; | |
20348 | } | |
20349 | } | |
20350 | if (_v) { | |
20351 | { | |
20352 | void *ptr; | |
15afbcd0 | 20353 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20354 | _v = 0; |
20355 | PyErr_Clear(); | |
20356 | } else { | |
20357 | _v = 1; | |
20358 | } | |
20359 | } | |
20360 | if (_v) { | |
20361 | return _wrap_DateTime___add____SWIG_0(self,args); | |
20362 | } | |
20363 | } | |
20364 | } | |
20365 | if (argc == 2) { | |
20366 | int _v; | |
20367 | { | |
20368 | void *ptr; | |
15afbcd0 | 20369 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20370 | _v = 0; |
20371 | PyErr_Clear(); | |
20372 | } else { | |
20373 | _v = 1; | |
20374 | } | |
20375 | } | |
20376 | if (_v) { | |
20377 | { | |
20378 | void *ptr; | |
15afbcd0 | 20379 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20380 | _v = 0; |
20381 | PyErr_Clear(); | |
20382 | } else { | |
20383 | _v = 1; | |
20384 | } | |
20385 | } | |
20386 | if (_v) { | |
20387 | return _wrap_DateTime___add____SWIG_1(self,args); | |
20388 | } | |
20389 | } | |
20390 | } | |
20391 | ||
20392 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
20393 | return NULL; | |
20394 | } | |
20395 | ||
20396 | ||
20397 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
20398 | PyObject *resultobj; | |
20399 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20400 | wxDateTime *arg2 = 0 ; | |
20401 | wxTimeSpan result; | |
20402 | PyObject * obj0 = 0 ; | |
20403 | PyObject * obj1 = 0 ; | |
20404 | ||
20405 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20408 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20409 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20410 | SWIG_fail; | |
d14a1e28 | 20411 | if (arg2 == NULL) { |
15afbcd0 RD |
20412 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20413 | SWIG_fail; | |
d14a1e28 RD |
20414 | } |
20415 | { | |
20416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20417 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
20418 | ||
20419 | wxPyEndAllowThreads(__tstate); | |
20420 | if (PyErr_Occurred()) SWIG_fail; | |
20421 | } | |
20422 | { | |
20423 | wxTimeSpan * resultptr; | |
20424 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 20425 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
20426 | } |
20427 | return resultobj; | |
20428 | fail: | |
20429 | return NULL; | |
20430 | } | |
20431 | ||
20432 | ||
20433 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
20434 | PyObject *resultobj; | |
20435 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20436 | wxTimeSpan *arg2 = 0 ; | |
20437 | wxDateTime result; | |
20438 | PyObject * obj0 = 0 ; | |
20439 | PyObject * obj1 = 0 ; | |
20440 | ||
20441 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20444 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20445 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20446 | SWIG_fail; | |
d14a1e28 | 20447 | if (arg2 == NULL) { |
15afbcd0 RD |
20448 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20449 | SWIG_fail; | |
d14a1e28 RD |
20450 | } |
20451 | { | |
20452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20453 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
20454 | ||
20455 | wxPyEndAllowThreads(__tstate); | |
20456 | if (PyErr_Occurred()) SWIG_fail; | |
20457 | } | |
20458 | { | |
20459 | wxDateTime * resultptr; | |
20460 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20461 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20462 | } |
20463 | return resultobj; | |
20464 | fail: | |
20465 | return NULL; | |
20466 | } | |
20467 | ||
20468 | ||
20469 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
20470 | PyObject *resultobj; | |
20471 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20472 | wxDateSpan *arg2 = 0 ; | |
20473 | wxDateTime result; | |
20474 | PyObject * obj0 = 0 ; | |
20475 | PyObject * obj1 = 0 ; | |
20476 | ||
20477 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20480 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20481 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20482 | SWIG_fail; | |
d14a1e28 | 20483 | if (arg2 == NULL) { |
15afbcd0 RD |
20484 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20485 | SWIG_fail; | |
d14a1e28 RD |
20486 | } |
20487 | { | |
20488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20489 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
20490 | ||
20491 | wxPyEndAllowThreads(__tstate); | |
20492 | if (PyErr_Occurred()) SWIG_fail; | |
20493 | } | |
20494 | { | |
20495 | wxDateTime * resultptr; | |
20496 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20497 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20498 | } |
20499 | return resultobj; | |
20500 | fail: | |
20501 | return NULL; | |
20502 | } | |
20503 | ||
20504 | ||
20505 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
20506 | int argc; | |
20507 | PyObject *argv[3]; | |
20508 | int ii; | |
20509 | ||
20510 | argc = PyObject_Length(args); | |
20511 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20512 | argv[ii] = PyTuple_GetItem(args,ii); | |
20513 | } | |
20514 | if (argc == 2) { | |
20515 | int _v; | |
20516 | { | |
20517 | void *ptr; | |
15afbcd0 | 20518 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20519 | _v = 0; |
20520 | PyErr_Clear(); | |
20521 | } else { | |
20522 | _v = 1; | |
20523 | } | |
20524 | } | |
20525 | if (_v) { | |
20526 | { | |
20527 | void *ptr; | |
15afbcd0 | 20528 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20529 | _v = 0; |
20530 | PyErr_Clear(); | |
20531 | } else { | |
20532 | _v = 1; | |
20533 | } | |
20534 | } | |
20535 | if (_v) { | |
20536 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
20537 | } | |
20538 | } | |
20539 | } | |
20540 | if (argc == 2) { | |
20541 | int _v; | |
20542 | { | |
20543 | void *ptr; | |
15afbcd0 | 20544 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20545 | _v = 0; |
20546 | PyErr_Clear(); | |
20547 | } else { | |
20548 | _v = 1; | |
20549 | } | |
20550 | } | |
20551 | if (_v) { | |
20552 | { | |
20553 | void *ptr; | |
15afbcd0 | 20554 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20555 | _v = 0; |
20556 | PyErr_Clear(); | |
20557 | } else { | |
20558 | _v = 1; | |
20559 | } | |
20560 | } | |
20561 | if (_v) { | |
20562 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
20563 | } | |
20564 | } | |
20565 | } | |
20566 | if (argc == 2) { | |
20567 | int _v; | |
20568 | { | |
20569 | void *ptr; | |
15afbcd0 | 20570 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20571 | _v = 0; |
20572 | PyErr_Clear(); | |
20573 | } else { | |
20574 | _v = 1; | |
20575 | } | |
20576 | } | |
20577 | if (_v) { | |
20578 | { | |
20579 | void *ptr; | |
15afbcd0 | 20580 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20581 | _v = 0; |
20582 | PyErr_Clear(); | |
20583 | } else { | |
20584 | _v = 1; | |
20585 | } | |
20586 | } | |
20587 | if (_v) { | |
20588 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
20589 | } | |
20590 | } | |
20591 | } | |
20592 | ||
20593 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
20594 | return NULL; | |
20595 | } | |
20596 | ||
20597 | ||
20598 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
20599 | PyObject *resultobj; | |
20600 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20601 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20602 | bool result; |
20603 | PyObject * obj0 = 0 ; | |
20604 | PyObject * obj1 = 0 ; | |
20605 | ||
20606 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20609 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20611 | { |
20612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20613 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20614 | |
20615 | wxPyEndAllowThreads(__tstate); | |
20616 | if (PyErr_Occurred()) SWIG_fail; | |
20617 | } | |
4f89f6a3 RD |
20618 | { |
20619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20620 | } | |
d14a1e28 RD |
20621 | return resultobj; |
20622 | fail: | |
20623 | return NULL; | |
20624 | } | |
20625 | ||
20626 | ||
20627 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
20628 | PyObject *resultobj; | |
20629 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20630 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20631 | bool result; |
20632 | PyObject * obj0 = 0 ; | |
20633 | PyObject * obj1 = 0 ; | |
20634 | ||
20635 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20638 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20640 | { |
20641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20642 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20643 | |
20644 | wxPyEndAllowThreads(__tstate); | |
20645 | if (PyErr_Occurred()) SWIG_fail; | |
20646 | } | |
4f89f6a3 RD |
20647 | { |
20648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20649 | } | |
d14a1e28 RD |
20650 | return resultobj; |
20651 | fail: | |
20652 | return NULL; | |
20653 | } | |
20654 | ||
20655 | ||
20656 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
20657 | PyObject *resultobj; | |
20658 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20659 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20660 | bool result; |
20661 | PyObject * obj0 = 0 ; | |
20662 | PyObject * obj1 = 0 ; | |
20663 | ||
20664 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20667 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20669 | { |
20670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20671 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20672 | |
20673 | wxPyEndAllowThreads(__tstate); | |
20674 | if (PyErr_Occurred()) SWIG_fail; | |
20675 | } | |
4f89f6a3 RD |
20676 | { |
20677 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20678 | } | |
d14a1e28 RD |
20679 | return resultobj; |
20680 | fail: | |
20681 | return NULL; | |
20682 | } | |
20683 | ||
20684 | ||
20685 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
20686 | PyObject *resultobj; | |
20687 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20688 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20689 | bool result; |
20690 | PyObject * obj0 = 0 ; | |
20691 | PyObject * obj1 = 0 ; | |
20692 | ||
20693 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20696 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20698 | { |
20699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20700 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20701 | |
20702 | wxPyEndAllowThreads(__tstate); | |
20703 | if (PyErr_Occurred()) SWIG_fail; | |
20704 | } | |
4f89f6a3 RD |
20705 | { |
20706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20707 | } | |
d14a1e28 RD |
20708 | return resultobj; |
20709 | fail: | |
20710 | return NULL; | |
20711 | } | |
20712 | ||
20713 | ||
20714 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
20715 | PyObject *resultobj; | |
20716 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20717 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20718 | bool result; |
20719 | PyObject * obj0 = 0 ; | |
20720 | PyObject * obj1 = 0 ; | |
20721 | ||
20722 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20725 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20727 | { |
20728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20729 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20730 | |
20731 | wxPyEndAllowThreads(__tstate); | |
20732 | if (PyErr_Occurred()) SWIG_fail; | |
20733 | } | |
4f89f6a3 RD |
20734 | { |
20735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20736 | } | |
d14a1e28 RD |
20737 | return resultobj; |
20738 | fail: | |
20739 | return NULL; | |
20740 | } | |
20741 | ||
20742 | ||
20743 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
20744 | PyObject *resultobj; | |
20745 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20746 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20747 | bool result; |
20748 | PyObject * obj0 = 0 ; | |
20749 | PyObject * obj1 = 0 ; | |
20750 | ||
20751 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20754 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20756 | { |
20757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20758 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20759 | |
20760 | wxPyEndAllowThreads(__tstate); | |
20761 | if (PyErr_Occurred()) SWIG_fail; | |
20762 | } | |
4f89f6a3 RD |
20763 | { |
20764 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20765 | } | |
d14a1e28 RD |
20766 | return resultobj; |
20767 | fail: | |
20768 | return NULL; | |
20769 | } | |
20770 | ||
20771 | ||
20772 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20773 | PyObject *resultobj; | |
20774 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20775 | wxString *arg2 = 0 ; | |
20776 | int result; | |
e811c8ce | 20777 | bool temp2 = False ; |
d14a1e28 RD |
20778 | PyObject * obj0 = 0 ; |
20779 | PyObject * obj1 = 0 ; | |
20780 | char *kwnames[] = { | |
20781 | (char *) "self",(char *) "date", NULL | |
20782 | }; | |
20783 | ||
20784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20787 | { |
20788 | arg2 = wxString_in_helper(obj1); | |
20789 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20790 | temp2 = True; |
d14a1e28 RD |
20791 | } |
20792 | { | |
20793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20794 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
20795 | ||
20796 | wxPyEndAllowThreads(__tstate); | |
20797 | if (PyErr_Occurred()) SWIG_fail; | |
20798 | } | |
15afbcd0 | 20799 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20800 | { |
20801 | if (temp2) | |
20802 | delete arg2; | |
20803 | } | |
20804 | return resultobj; | |
20805 | fail: | |
20806 | { | |
20807 | if (temp2) | |
20808 | delete arg2; | |
20809 | } | |
20810 | return NULL; | |
20811 | } | |
20812 | ||
20813 | ||
20814 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20815 | PyObject *resultobj; | |
20816 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20817 | wxString *arg2 = 0 ; | |
20818 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
20819 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20820 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
20821 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
20822 | int result; | |
e811c8ce RD |
20823 | bool temp2 = False ; |
20824 | bool temp3 = False ; | |
d14a1e28 RD |
20825 | PyObject * obj0 = 0 ; |
20826 | PyObject * obj1 = 0 ; | |
20827 | PyObject * obj2 = 0 ; | |
20828 | PyObject * obj3 = 0 ; | |
20829 | char *kwnames[] = { | |
20830 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
20831 | }; | |
20832 | ||
20833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
20834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20836 | { |
20837 | arg2 = wxString_in_helper(obj1); | |
20838 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20839 | temp2 = True; |
d14a1e28 RD |
20840 | } |
20841 | if (obj2) { | |
20842 | { | |
20843 | arg3 = wxString_in_helper(obj2); | |
20844 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 20845 | temp3 = True; |
d14a1e28 RD |
20846 | } |
20847 | } | |
20848 | if (obj3) { | |
15afbcd0 RD |
20849 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime, |
20850 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20851 | SWIG_fail; | |
d14a1e28 | 20852 | if (arg4 == NULL) { |
15afbcd0 RD |
20853 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20854 | SWIG_fail; | |
d14a1e28 RD |
20855 | } |
20856 | } | |
20857 | { | |
20858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20859 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
20860 | ||
20861 | wxPyEndAllowThreads(__tstate); | |
20862 | if (PyErr_Occurred()) SWIG_fail; | |
20863 | } | |
15afbcd0 | 20864 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20865 | { |
20866 | if (temp2) | |
20867 | delete arg2; | |
20868 | } | |
20869 | { | |
20870 | if (temp3) | |
20871 | delete arg3; | |
20872 | } | |
20873 | return resultobj; | |
20874 | fail: | |
20875 | { | |
20876 | if (temp2) | |
20877 | delete arg2; | |
20878 | } | |
20879 | { | |
20880 | if (temp3) | |
20881 | delete arg3; | |
20882 | } | |
20883 | return NULL; | |
20884 | } | |
20885 | ||
20886 | ||
20887 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20888 | PyObject *resultobj; | |
20889 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20890 | wxString *arg2 = 0 ; | |
20891 | int result; | |
e811c8ce | 20892 | bool temp2 = False ; |
d14a1e28 RD |
20893 | PyObject * obj0 = 0 ; |
20894 | PyObject * obj1 = 0 ; | |
20895 | char *kwnames[] = { | |
20896 | (char *) "self",(char *) "datetime", NULL | |
20897 | }; | |
20898 | ||
20899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20902 | { |
20903 | arg2 = wxString_in_helper(obj1); | |
20904 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20905 | temp2 = True; |
d14a1e28 RD |
20906 | } |
20907 | { | |
20908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20909 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
20910 | ||
20911 | wxPyEndAllowThreads(__tstate); | |
20912 | if (PyErr_Occurred()) SWIG_fail; | |
20913 | } | |
15afbcd0 | 20914 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20915 | { |
20916 | if (temp2) | |
20917 | delete arg2; | |
20918 | } | |
20919 | return resultobj; | |
20920 | fail: | |
20921 | { | |
20922 | if (temp2) | |
20923 | delete arg2; | |
20924 | } | |
20925 | return NULL; | |
20926 | } | |
20927 | ||
20928 | ||
20929 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20930 | PyObject *resultobj; | |
20931 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20932 | wxString *arg2 = 0 ; | |
20933 | int result; | |
e811c8ce | 20934 | bool temp2 = False ; |
d14a1e28 RD |
20935 | PyObject * obj0 = 0 ; |
20936 | PyObject * obj1 = 0 ; | |
20937 | char *kwnames[] = { | |
20938 | (char *) "self",(char *) "date", NULL | |
20939 | }; | |
20940 | ||
20941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20944 | { |
20945 | arg2 = wxString_in_helper(obj1); | |
20946 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20947 | temp2 = True; |
d14a1e28 RD |
20948 | } |
20949 | { | |
20950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20951 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
20952 | ||
20953 | wxPyEndAllowThreads(__tstate); | |
20954 | if (PyErr_Occurred()) SWIG_fail; | |
20955 | } | |
15afbcd0 | 20956 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20957 | { |
20958 | if (temp2) | |
20959 | delete arg2; | |
20960 | } | |
20961 | return resultobj; | |
20962 | fail: | |
20963 | { | |
20964 | if (temp2) | |
20965 | delete arg2; | |
20966 | } | |
20967 | return NULL; | |
20968 | } | |
20969 | ||
20970 | ||
20971 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20972 | PyObject *resultobj; | |
20973 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20974 | wxString *arg2 = 0 ; | |
20975 | int result; | |
e811c8ce | 20976 | bool temp2 = False ; |
d14a1e28 RD |
20977 | PyObject * obj0 = 0 ; |
20978 | PyObject * obj1 = 0 ; | |
20979 | char *kwnames[] = { | |
20980 | (char *) "self",(char *) "time", NULL | |
20981 | }; | |
20982 | ||
20983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20986 | { |
20987 | arg2 = wxString_in_helper(obj1); | |
20988 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20989 | temp2 = True; |
d14a1e28 RD |
20990 | } |
20991 | { | |
20992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20993 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
20994 | ||
20995 | wxPyEndAllowThreads(__tstate); | |
20996 | if (PyErr_Occurred()) SWIG_fail; | |
20997 | } | |
15afbcd0 | 20998 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20999 | { |
21000 | if (temp2) | |
21001 | delete arg2; | |
21002 | } | |
21003 | return resultobj; | |
21004 | fail: | |
21005 | { | |
21006 | if (temp2) | |
21007 | delete arg2; | |
21008 | } | |
21009 | return NULL; | |
21010 | } | |
21011 | ||
21012 | ||
21013 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21014 | PyObject *resultobj; | |
21015 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21016 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
21017 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
21018 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
21019 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
21020 | wxString result; | |
e811c8ce | 21021 | bool temp2 = False ; |
7722248d | 21022 | bool temp3 = False ; |
d14a1e28 RD |
21023 | PyObject * obj0 = 0 ; |
21024 | PyObject * obj1 = 0 ; | |
21025 | PyObject * obj2 = 0 ; | |
21026 | char *kwnames[] = { | |
21027 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
21028 | }; | |
21029 | ||
21030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
21031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21033 | if (obj1) { |
21034 | { | |
21035 | arg2 = wxString_in_helper(obj1); | |
21036 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21037 | temp2 = True; |
d14a1e28 RD |
21038 | } |
21039 | } | |
21040 | if (obj2) { | |
21041 | { | |
21042 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 21043 | temp3 = True; |
d14a1e28 RD |
21044 | } |
21045 | } | |
21046 | { | |
21047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21048 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
21049 | ||
21050 | wxPyEndAllowThreads(__tstate); | |
21051 | if (PyErr_Occurred()) SWIG_fail; | |
21052 | } | |
21053 | { | |
21054 | #if wxUSE_UNICODE | |
21055 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21056 | #else | |
21057 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21058 | #endif | |
21059 | } | |
21060 | { | |
21061 | if (temp2) | |
21062 | delete arg2; | |
21063 | } | |
21064 | { | |
7722248d | 21065 | if (temp3) delete arg3; |
d14a1e28 RD |
21066 | } |
21067 | return resultobj; | |
21068 | fail: | |
21069 | { | |
21070 | if (temp2) | |
21071 | delete arg2; | |
21072 | } | |
21073 | { | |
7722248d | 21074 | if (temp3) delete arg3; |
d14a1e28 RD |
21075 | } |
21076 | return NULL; | |
21077 | } | |
21078 | ||
21079 | ||
21080 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21081 | PyObject *resultobj; | |
21082 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21083 | wxString result; | |
21084 | PyObject * obj0 = 0 ; | |
21085 | char *kwnames[] = { | |
21086 | (char *) "self", NULL | |
21087 | }; | |
21088 | ||
21089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21092 | { |
21093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21094 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
21095 | ||
21096 | wxPyEndAllowThreads(__tstate); | |
21097 | if (PyErr_Occurred()) SWIG_fail; | |
21098 | } | |
21099 | { | |
21100 | #if wxUSE_UNICODE | |
21101 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21102 | #else | |
21103 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21104 | #endif | |
21105 | } | |
21106 | return resultobj; | |
21107 | fail: | |
21108 | return NULL; | |
21109 | } | |
21110 | ||
21111 | ||
21112 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21113 | PyObject *resultobj; | |
21114 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21115 | wxString result; | |
21116 | PyObject * obj0 = 0 ; | |
21117 | char *kwnames[] = { | |
21118 | (char *) "self", NULL | |
21119 | }; | |
21120 | ||
21121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21124 | { |
21125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21126 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
21127 | ||
21128 | wxPyEndAllowThreads(__tstate); | |
21129 | if (PyErr_Occurred()) SWIG_fail; | |
21130 | } | |
21131 | { | |
21132 | #if wxUSE_UNICODE | |
21133 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21134 | #else | |
21135 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21136 | #endif | |
21137 | } | |
21138 | return resultobj; | |
21139 | fail: | |
21140 | return NULL; | |
21141 | } | |
21142 | ||
21143 | ||
21144 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21145 | PyObject *resultobj; | |
21146 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21147 | wxString result; | |
21148 | PyObject * obj0 = 0 ; | |
21149 | char *kwnames[] = { | |
21150 | (char *) "self", NULL | |
21151 | }; | |
21152 | ||
21153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21156 | { |
21157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21158 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
21159 | ||
21160 | wxPyEndAllowThreads(__tstate); | |
21161 | if (PyErr_Occurred()) SWIG_fail; | |
21162 | } | |
21163 | { | |
21164 | #if wxUSE_UNICODE | |
21165 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21166 | #else | |
21167 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21168 | #endif | |
21169 | } | |
21170 | return resultobj; | |
21171 | fail: | |
21172 | return NULL; | |
21173 | } | |
21174 | ||
21175 | ||
21176 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21177 | PyObject *resultobj; | |
21178 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21179 | wxString result; | |
21180 | PyObject * obj0 = 0 ; | |
21181 | char *kwnames[] = { | |
21182 | (char *) "self", NULL | |
21183 | }; | |
21184 | ||
21185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21188 | { |
21189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21190 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
21191 | ||
21192 | wxPyEndAllowThreads(__tstate); | |
21193 | if (PyErr_Occurred()) SWIG_fail; | |
21194 | } | |
21195 | { | |
21196 | #if wxUSE_UNICODE | |
21197 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21198 | #else | |
21199 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21200 | #endif | |
21201 | } | |
21202 | return resultobj; | |
21203 | fail: | |
21204 | return NULL; | |
21205 | } | |
21206 | ||
21207 | ||
21208 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
21209 | PyObject *obj; | |
21210 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21211 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
21212 | Py_INCREF(obj); | |
21213 | return Py_BuildValue((char *)""); | |
21214 | } | |
21215 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21216 | PyObject *resultobj; | |
21217 | long arg1 ; | |
21218 | wxTimeSpan result; | |
994141e6 | 21219 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21220 | char *kwnames[] = { |
21221 | (char *) "sec", NULL | |
21222 | }; | |
21223 | ||
994141e6 | 21224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21225 | arg1 = (long) SWIG_AsLong(obj0); |
21226 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21227 | { |
21228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21229 | result = wxTimeSpan::Seconds(arg1); | |
21230 | ||
21231 | wxPyEndAllowThreads(__tstate); | |
21232 | if (PyErr_Occurred()) SWIG_fail; | |
21233 | } | |
21234 | { | |
21235 | wxTimeSpan * resultptr; | |
21236 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21237 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21238 | } |
21239 | return resultobj; | |
21240 | fail: | |
21241 | return NULL; | |
21242 | } | |
21243 | ||
21244 | ||
21245 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21246 | PyObject *resultobj; | |
21247 | wxTimeSpan result; | |
21248 | char *kwnames[] = { | |
21249 | NULL | |
21250 | }; | |
21251 | ||
21252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
21253 | { | |
21254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21255 | result = wxTimeSpan::Second(); | |
21256 | ||
21257 | wxPyEndAllowThreads(__tstate); | |
21258 | if (PyErr_Occurred()) SWIG_fail; | |
21259 | } | |
21260 | { | |
21261 | wxTimeSpan * resultptr; | |
21262 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21263 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21264 | } |
21265 | return resultobj; | |
21266 | fail: | |
21267 | return NULL; | |
21268 | } | |
21269 | ||
21270 | ||
21271 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21272 | PyObject *resultobj; | |
21273 | long arg1 ; | |
21274 | wxTimeSpan result; | |
994141e6 | 21275 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21276 | char *kwnames[] = { |
21277 | (char *) "min", NULL | |
21278 | }; | |
21279 | ||
994141e6 | 21280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21281 | arg1 = (long) SWIG_AsLong(obj0); |
21282 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21283 | { |
21284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21285 | result = wxTimeSpan::Minutes(arg1); | |
21286 | ||
21287 | wxPyEndAllowThreads(__tstate); | |
21288 | if (PyErr_Occurred()) SWIG_fail; | |
21289 | } | |
21290 | { | |
21291 | wxTimeSpan * resultptr; | |
21292 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21293 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21294 | } |
21295 | return resultobj; | |
21296 | fail: | |
21297 | return NULL; | |
21298 | } | |
21299 | ||
21300 | ||
21301 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21302 | PyObject *resultobj; | |
21303 | wxTimeSpan result; | |
21304 | char *kwnames[] = { | |
21305 | NULL | |
21306 | }; | |
21307 | ||
21308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
21309 | { | |
21310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21311 | result = wxTimeSpan::Minute(); | |
21312 | ||
21313 | wxPyEndAllowThreads(__tstate); | |
21314 | if (PyErr_Occurred()) SWIG_fail; | |
21315 | } | |
21316 | { | |
21317 | wxTimeSpan * resultptr; | |
21318 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21319 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21320 | } |
21321 | return resultobj; | |
21322 | fail: | |
21323 | return NULL; | |
21324 | } | |
21325 | ||
21326 | ||
21327 | static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21328 | PyObject *resultobj; | |
21329 | long arg1 ; | |
21330 | wxTimeSpan result; | |
994141e6 | 21331 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21332 | char *kwnames[] = { |
21333 | (char *) "hours", NULL | |
21334 | }; | |
21335 | ||
994141e6 | 21336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21337 | arg1 = (long) SWIG_AsLong(obj0); |
21338 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21339 | { |
21340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21341 | result = wxTimeSpan::Hours(arg1); | |
21342 | ||
21343 | wxPyEndAllowThreads(__tstate); | |
21344 | if (PyErr_Occurred()) SWIG_fail; | |
21345 | } | |
21346 | { | |
21347 | wxTimeSpan * resultptr; | |
21348 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21349 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21350 | } |
21351 | return resultobj; | |
21352 | fail: | |
21353 | return NULL; | |
21354 | } | |
21355 | ||
21356 | ||
21357 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21358 | PyObject *resultobj; | |
21359 | wxTimeSpan result; | |
21360 | char *kwnames[] = { | |
21361 | NULL | |
21362 | }; | |
21363 | ||
21364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
21365 | { | |
21366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21367 | result = wxTimeSpan::Hour(); | |
21368 | ||
21369 | wxPyEndAllowThreads(__tstate); | |
21370 | if (PyErr_Occurred()) SWIG_fail; | |
21371 | } | |
21372 | { | |
21373 | wxTimeSpan * resultptr; | |
21374 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21375 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21376 | } |
21377 | return resultobj; | |
21378 | fail: | |
21379 | return NULL; | |
21380 | } | |
21381 | ||
21382 | ||
21383 | static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21384 | PyObject *resultobj; | |
21385 | long arg1 ; | |
21386 | wxTimeSpan result; | |
994141e6 | 21387 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21388 | char *kwnames[] = { |
21389 | (char *) "days", NULL | |
21390 | }; | |
21391 | ||
994141e6 | 21392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21393 | arg1 = (long) SWIG_AsLong(obj0); |
21394 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21395 | { |
21396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21397 | result = wxTimeSpan::Days(arg1); | |
21398 | ||
21399 | wxPyEndAllowThreads(__tstate); | |
21400 | if (PyErr_Occurred()) SWIG_fail; | |
21401 | } | |
21402 | { | |
21403 | wxTimeSpan * resultptr; | |
21404 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21405 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21406 | } |
21407 | return resultobj; | |
21408 | fail: | |
21409 | return NULL; | |
21410 | } | |
21411 | ||
21412 | ||
21413 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21414 | PyObject *resultobj; | |
21415 | wxTimeSpan result; | |
21416 | char *kwnames[] = { | |
21417 | NULL | |
21418 | }; | |
21419 | ||
21420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
21421 | { | |
21422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21423 | result = wxTimeSpan::Day(); | |
21424 | ||
21425 | wxPyEndAllowThreads(__tstate); | |
21426 | if (PyErr_Occurred()) SWIG_fail; | |
21427 | } | |
21428 | { | |
21429 | wxTimeSpan * resultptr; | |
21430 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21431 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21432 | } |
21433 | return resultobj; | |
21434 | fail: | |
21435 | return NULL; | |
21436 | } | |
21437 | ||
21438 | ||
21439 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21440 | PyObject *resultobj; | |
21441 | long arg1 ; | |
21442 | wxTimeSpan result; | |
994141e6 | 21443 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21444 | char *kwnames[] = { |
21445 | (char *) "days", NULL | |
21446 | }; | |
21447 | ||
994141e6 | 21448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21449 | arg1 = (long) SWIG_AsLong(obj0); |
21450 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21451 | { |
21452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21453 | result = wxTimeSpan::Weeks(arg1); | |
21454 | ||
21455 | wxPyEndAllowThreads(__tstate); | |
21456 | if (PyErr_Occurred()) SWIG_fail; | |
21457 | } | |
21458 | { | |
21459 | wxTimeSpan * resultptr; | |
21460 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21461 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21462 | } |
21463 | return resultobj; | |
21464 | fail: | |
21465 | return NULL; | |
21466 | } | |
21467 | ||
21468 | ||
21469 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21470 | PyObject *resultobj; | |
21471 | wxTimeSpan result; | |
21472 | char *kwnames[] = { | |
21473 | NULL | |
21474 | }; | |
21475 | ||
21476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
21477 | { | |
21478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21479 | result = wxTimeSpan::Week(); | |
21480 | ||
21481 | wxPyEndAllowThreads(__tstate); | |
21482 | if (PyErr_Occurred()) SWIG_fail; | |
21483 | } | |
21484 | { | |
21485 | wxTimeSpan * resultptr; | |
21486 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21487 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21488 | } |
21489 | return resultobj; | |
21490 | fail: | |
21491 | return NULL; | |
21492 | } | |
21493 | ||
21494 | ||
21495 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21496 | PyObject *resultobj; | |
21497 | long arg1 = (long) 0 ; | |
21498 | long arg2 = (long) 0 ; | |
21499 | long arg3 = (long) 0 ; | |
21500 | long arg4 = (long) 0 ; | |
21501 | wxTimeSpan *result; | |
994141e6 RD |
21502 | PyObject * obj0 = 0 ; |
21503 | PyObject * obj1 = 0 ; | |
21504 | PyObject * obj2 = 0 ; | |
21505 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21506 | char *kwnames[] = { |
21507 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
21508 | }; | |
21509 | ||
994141e6 RD |
21510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
21511 | if (obj0) { | |
15afbcd0 RD |
21512 | arg1 = (long) SWIG_AsLong(obj0); |
21513 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
21514 | } |
21515 | if (obj1) { | |
15afbcd0 RD |
21516 | arg2 = (long) SWIG_AsLong(obj1); |
21517 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
21518 | } |
21519 | if (obj2) { | |
15afbcd0 RD |
21520 | arg3 = (long) SWIG_AsLong(obj2); |
21521 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
21522 | } |
21523 | if (obj3) { | |
15afbcd0 RD |
21524 | arg4 = (long) SWIG_AsLong(obj3); |
21525 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21526 | } |
d14a1e28 RD |
21527 | { |
21528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21529 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
21530 | ||
21531 | wxPyEndAllowThreads(__tstate); | |
21532 | if (PyErr_Occurred()) SWIG_fail; | |
21533 | } | |
15afbcd0 | 21534 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21535 | return resultobj; |
21536 | fail: | |
21537 | return NULL; | |
21538 | } | |
21539 | ||
21540 | ||
21541 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21542 | PyObject *resultobj; | |
21543 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21544 | PyObject * obj0 = 0 ; | |
21545 | char *kwnames[] = { | |
21546 | (char *) "self", NULL | |
21547 | }; | |
21548 | ||
21549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21552 | { |
21553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21554 | delete arg1; | |
21555 | ||
21556 | wxPyEndAllowThreads(__tstate); | |
21557 | if (PyErr_Occurred()) SWIG_fail; | |
21558 | } | |
21559 | Py_INCREF(Py_None); resultobj = Py_None; | |
21560 | return resultobj; | |
21561 | fail: | |
21562 | return NULL; | |
21563 | } | |
21564 | ||
21565 | ||
21566 | static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21567 | PyObject *resultobj; | |
21568 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21569 | wxTimeSpan *arg2 = 0 ; | |
21570 | wxTimeSpan *result; | |
21571 | PyObject * obj0 = 0 ; | |
21572 | PyObject * obj1 = 0 ; | |
21573 | char *kwnames[] = { | |
21574 | (char *) "self",(char *) "diff", NULL | |
21575 | }; | |
21576 | ||
21577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21580 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21581 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21582 | SWIG_fail; | |
d14a1e28 | 21583 | if (arg2 == NULL) { |
15afbcd0 RD |
21584 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21585 | SWIG_fail; | |
d14a1e28 RD |
21586 | } |
21587 | { | |
21588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21589 | { | |
21590 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
21591 | result = (wxTimeSpan *) &_result_ref; | |
21592 | } | |
21593 | ||
21594 | wxPyEndAllowThreads(__tstate); | |
21595 | if (PyErr_Occurred()) SWIG_fail; | |
21596 | } | |
15afbcd0 | 21597 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21598 | return resultobj; |
21599 | fail: | |
21600 | return NULL; | |
21601 | } | |
21602 | ||
21603 | ||
21604 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21605 | PyObject *resultobj; | |
21606 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21607 | wxTimeSpan *arg2 = 0 ; | |
21608 | wxTimeSpan *result; | |
21609 | PyObject * obj0 = 0 ; | |
21610 | PyObject * obj1 = 0 ; | |
21611 | char *kwnames[] = { | |
21612 | (char *) "self",(char *) "diff", NULL | |
21613 | }; | |
21614 | ||
21615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21618 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21619 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21620 | SWIG_fail; | |
d14a1e28 | 21621 | if (arg2 == NULL) { |
15afbcd0 RD |
21622 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21623 | SWIG_fail; | |
d14a1e28 RD |
21624 | } |
21625 | { | |
21626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21627 | { | |
21628 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
21629 | result = (wxTimeSpan *) &_result_ref; | |
21630 | } | |
21631 | ||
21632 | wxPyEndAllowThreads(__tstate); | |
21633 | if (PyErr_Occurred()) SWIG_fail; | |
21634 | } | |
15afbcd0 | 21635 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21636 | return resultobj; |
21637 | fail: | |
21638 | return NULL; | |
21639 | } | |
21640 | ||
21641 | ||
21642 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21643 | PyObject *resultobj; | |
21644 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21645 | int arg2 ; | |
21646 | wxTimeSpan *result; | |
21647 | PyObject * obj0 = 0 ; | |
994141e6 | 21648 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21649 | char *kwnames[] = { |
21650 | (char *) "self",(char *) "n", NULL | |
21651 | }; | |
21652 | ||
994141e6 | 21653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21656 | arg2 = (int) SWIG_AsInt(obj1); | |
21657 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21658 | { |
21659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21660 | { | |
21661 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
21662 | result = (wxTimeSpan *) &_result_ref; | |
21663 | } | |
21664 | ||
21665 | wxPyEndAllowThreads(__tstate); | |
21666 | if (PyErr_Occurred()) SWIG_fail; | |
21667 | } | |
15afbcd0 | 21668 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21669 | return resultobj; |
21670 | fail: | |
21671 | return NULL; | |
21672 | } | |
21673 | ||
21674 | ||
21675 | static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21676 | PyObject *resultobj; | |
21677 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21678 | wxTimeSpan *result; | |
21679 | PyObject * obj0 = 0 ; | |
21680 | char *kwnames[] = { | |
21681 | (char *) "self", NULL | |
21682 | }; | |
21683 | ||
21684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21687 | { |
21688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21689 | { | |
21690 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
21691 | result = (wxTimeSpan *) &_result_ref; | |
21692 | } | |
21693 | ||
21694 | wxPyEndAllowThreads(__tstate); | |
21695 | if (PyErr_Occurred()) SWIG_fail; | |
21696 | } | |
15afbcd0 | 21697 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21698 | return resultobj; |
21699 | fail: | |
21700 | return NULL; | |
21701 | } | |
21702 | ||
21703 | ||
21704 | static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21705 | PyObject *resultobj; | |
21706 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21707 | wxTimeSpan result; | |
21708 | PyObject * obj0 = 0 ; | |
21709 | char *kwnames[] = { | |
21710 | (char *) "self", NULL | |
21711 | }; | |
21712 | ||
21713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21716 | { |
21717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21718 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
21719 | ||
21720 | wxPyEndAllowThreads(__tstate); | |
21721 | if (PyErr_Occurred()) SWIG_fail; | |
21722 | } | |
21723 | { | |
21724 | wxTimeSpan * resultptr; | |
21725 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21726 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21727 | } |
21728 | return resultobj; | |
21729 | fail: | |
21730 | return NULL; | |
21731 | } | |
21732 | ||
21733 | ||
21734 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21735 | PyObject *resultobj; | |
21736 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21737 | wxTimeSpan *arg2 = 0 ; | |
21738 | wxTimeSpan *result; | |
21739 | PyObject * obj0 = 0 ; | |
21740 | PyObject * obj1 = 0 ; | |
21741 | char *kwnames[] = { | |
21742 | (char *) "self",(char *) "diff", NULL | |
21743 | }; | |
21744 | ||
21745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21748 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21749 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21750 | SWIG_fail; | |
d14a1e28 | 21751 | if (arg2 == NULL) { |
15afbcd0 RD |
21752 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21753 | SWIG_fail; | |
d14a1e28 RD |
21754 | } |
21755 | { | |
21756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21757 | { | |
21758 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
21759 | result = (wxTimeSpan *) &_result_ref; | |
21760 | } | |
21761 | ||
21762 | wxPyEndAllowThreads(__tstate); | |
21763 | if (PyErr_Occurred()) SWIG_fail; | |
21764 | } | |
15afbcd0 | 21765 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21766 | return resultobj; |
21767 | fail: | |
21768 | return NULL; | |
21769 | } | |
21770 | ||
21771 | ||
21772 | static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21773 | PyObject *resultobj; | |
21774 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21775 | wxTimeSpan *arg2 = 0 ; | |
21776 | wxTimeSpan *result; | |
21777 | PyObject * obj0 = 0 ; | |
21778 | PyObject * obj1 = 0 ; | |
21779 | char *kwnames[] = { | |
21780 | (char *) "self",(char *) "diff", NULL | |
21781 | }; | |
21782 | ||
21783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21786 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21787 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21788 | SWIG_fail; | |
d14a1e28 | 21789 | if (arg2 == NULL) { |
15afbcd0 RD |
21790 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21791 | SWIG_fail; | |
d14a1e28 RD |
21792 | } |
21793 | { | |
21794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21795 | { | |
21796 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
21797 | result = (wxTimeSpan *) &_result_ref; | |
21798 | } | |
21799 | ||
21800 | wxPyEndAllowThreads(__tstate); | |
21801 | if (PyErr_Occurred()) SWIG_fail; | |
21802 | } | |
15afbcd0 | 21803 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21804 | return resultobj; |
21805 | fail: | |
21806 | return NULL; | |
21807 | } | |
21808 | ||
21809 | ||
21810 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21811 | PyObject *resultobj; | |
21812 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21813 | int arg2 ; | |
21814 | wxTimeSpan *result; | |
21815 | PyObject * obj0 = 0 ; | |
994141e6 | 21816 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21817 | char *kwnames[] = { |
21818 | (char *) "self",(char *) "n", NULL | |
21819 | }; | |
21820 | ||
994141e6 | 21821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21824 | arg2 = (int) SWIG_AsInt(obj1); | |
21825 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21826 | { |
21827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21828 | { | |
21829 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
21830 | result = (wxTimeSpan *) &_result_ref; | |
21831 | } | |
21832 | ||
21833 | wxPyEndAllowThreads(__tstate); | |
21834 | if (PyErr_Occurred()) SWIG_fail; | |
21835 | } | |
15afbcd0 | 21836 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21837 | return resultobj; |
21838 | fail: | |
21839 | return NULL; | |
21840 | } | |
21841 | ||
21842 | ||
21843 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21844 | PyObject *resultobj; | |
21845 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21846 | wxTimeSpan *result; | |
21847 | PyObject * obj0 = 0 ; | |
21848 | char *kwnames[] = { | |
21849 | (char *) "self", NULL | |
21850 | }; | |
21851 | ||
21852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21855 | { |
21856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21857 | { | |
21858 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
21859 | result = (wxTimeSpan *) &_result_ref; | |
21860 | } | |
21861 | ||
21862 | wxPyEndAllowThreads(__tstate); | |
21863 | if (PyErr_Occurred()) SWIG_fail; | |
21864 | } | |
15afbcd0 | 21865 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21866 | return resultobj; |
21867 | fail: | |
21868 | return NULL; | |
21869 | } | |
21870 | ||
21871 | ||
21872 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21873 | PyObject *resultobj; | |
21874 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21875 | wxTimeSpan *arg2 = 0 ; | |
21876 | wxTimeSpan result; | |
21877 | PyObject * obj0 = 0 ; | |
21878 | PyObject * obj1 = 0 ; | |
21879 | char *kwnames[] = { | |
21880 | (char *) "self",(char *) "other", NULL | |
21881 | }; | |
21882 | ||
21883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21886 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21887 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21888 | SWIG_fail; | |
d14a1e28 | 21889 | if (arg2 == NULL) { |
15afbcd0 RD |
21890 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21891 | SWIG_fail; | |
d14a1e28 RD |
21892 | } |
21893 | { | |
21894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21895 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
21896 | ||
21897 | wxPyEndAllowThreads(__tstate); | |
21898 | if (PyErr_Occurred()) SWIG_fail; | |
21899 | } | |
21900 | { | |
21901 | wxTimeSpan * resultptr; | |
21902 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21903 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21904 | } |
21905 | return resultobj; | |
21906 | fail: | |
21907 | return NULL; | |
21908 | } | |
21909 | ||
21910 | ||
21911 | static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21912 | PyObject *resultobj; | |
21913 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21914 | wxTimeSpan *arg2 = 0 ; | |
21915 | wxTimeSpan result; | |
21916 | PyObject * obj0 = 0 ; | |
21917 | PyObject * obj1 = 0 ; | |
21918 | char *kwnames[] = { | |
21919 | (char *) "self",(char *) "other", NULL | |
21920 | }; | |
21921 | ||
21922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21925 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21926 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21927 | SWIG_fail; | |
d14a1e28 | 21928 | if (arg2 == NULL) { |
15afbcd0 RD |
21929 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21930 | SWIG_fail; | |
d14a1e28 RD |
21931 | } |
21932 | { | |
21933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21934 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
21935 | ||
21936 | wxPyEndAllowThreads(__tstate); | |
21937 | if (PyErr_Occurred()) SWIG_fail; | |
21938 | } | |
21939 | { | |
21940 | wxTimeSpan * resultptr; | |
21941 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21942 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21943 | } |
21944 | return resultobj; | |
21945 | fail: | |
21946 | return NULL; | |
21947 | } | |
21948 | ||
21949 | ||
21950 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21951 | PyObject *resultobj; | |
21952 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21953 | int arg2 ; | |
21954 | wxTimeSpan result; | |
21955 | PyObject * obj0 = 0 ; | |
994141e6 | 21956 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21957 | char *kwnames[] = { |
21958 | (char *) "self",(char *) "n", NULL | |
21959 | }; | |
21960 | ||
994141e6 | 21961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21964 | arg2 = (int) SWIG_AsInt(obj1); | |
21965 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21966 | { |
21967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21968 | result = wxTimeSpan___mul__(arg1,arg2); | |
21969 | ||
21970 | wxPyEndAllowThreads(__tstate); | |
21971 | if (PyErr_Occurred()) SWIG_fail; | |
21972 | } | |
21973 | { | |
21974 | wxTimeSpan * resultptr; | |
21975 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21976 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21977 | } |
21978 | return resultobj; | |
21979 | fail: | |
21980 | return NULL; | |
21981 | } | |
21982 | ||
21983 | ||
21984 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21985 | PyObject *resultobj; | |
21986 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21987 | int arg2 ; | |
21988 | wxTimeSpan result; | |
21989 | PyObject * obj0 = 0 ; | |
994141e6 | 21990 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21991 | char *kwnames[] = { |
21992 | (char *) "self",(char *) "n", NULL | |
21993 | }; | |
21994 | ||
994141e6 | 21995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21998 | arg2 = (int) SWIG_AsInt(obj1); | |
21999 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22000 | { |
22001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22002 | result = wxTimeSpan___rmul__(arg1,arg2); | |
22003 | ||
22004 | wxPyEndAllowThreads(__tstate); | |
22005 | if (PyErr_Occurred()) SWIG_fail; | |
22006 | } | |
22007 | { | |
22008 | wxTimeSpan * resultptr; | |
22009 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 22010 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
22011 | } |
22012 | return resultobj; | |
22013 | fail: | |
22014 | return NULL; | |
22015 | } | |
22016 | ||
22017 | ||
22018 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22019 | PyObject *resultobj; | |
22020 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22021 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22022 | bool result; |
22023 | PyObject * obj0 = 0 ; | |
22024 | PyObject * obj1 = 0 ; | |
22025 | char *kwnames[] = { | |
22026 | (char *) "self",(char *) "other", NULL | |
22027 | }; | |
22028 | ||
22029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22032 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22034 | { |
22035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22036 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22037 | |
22038 | wxPyEndAllowThreads(__tstate); | |
22039 | if (PyErr_Occurred()) SWIG_fail; | |
22040 | } | |
4f89f6a3 RD |
22041 | { |
22042 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22043 | } | |
d14a1e28 RD |
22044 | return resultobj; |
22045 | fail: | |
22046 | return NULL; | |
22047 | } | |
22048 | ||
22049 | ||
22050 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22051 | PyObject *resultobj; | |
22052 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22053 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22054 | bool result; |
22055 | PyObject * obj0 = 0 ; | |
22056 | PyObject * obj1 = 0 ; | |
22057 | char *kwnames[] = { | |
22058 | (char *) "self",(char *) "other", NULL | |
22059 | }; | |
22060 | ||
22061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22064 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22066 | { |
22067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22068 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22069 | |
22070 | wxPyEndAllowThreads(__tstate); | |
22071 | if (PyErr_Occurred()) SWIG_fail; | |
22072 | } | |
4f89f6a3 RD |
22073 | { |
22074 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22075 | } | |
d14a1e28 RD |
22076 | return resultobj; |
22077 | fail: | |
22078 | return NULL; | |
22079 | } | |
22080 | ||
22081 | ||
22082 | static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22083 | PyObject *resultobj; | |
22084 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22085 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22086 | bool result; |
22087 | PyObject * obj0 = 0 ; | |
22088 | PyObject * obj1 = 0 ; | |
22089 | char *kwnames[] = { | |
22090 | (char *) "self",(char *) "other", NULL | |
22091 | }; | |
22092 | ||
22093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22096 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22098 | { |
22099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22100 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22101 | |
22102 | wxPyEndAllowThreads(__tstate); | |
22103 | if (PyErr_Occurred()) SWIG_fail; | |
22104 | } | |
4f89f6a3 RD |
22105 | { |
22106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22107 | } | |
d14a1e28 RD |
22108 | return resultobj; |
22109 | fail: | |
22110 | return NULL; | |
22111 | } | |
22112 | ||
22113 | ||
22114 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22115 | PyObject *resultobj; | |
22116 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22117 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22118 | bool result; |
22119 | PyObject * obj0 = 0 ; | |
22120 | PyObject * obj1 = 0 ; | |
22121 | char *kwnames[] = { | |
22122 | (char *) "self",(char *) "other", NULL | |
22123 | }; | |
22124 | ||
22125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 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) SWIG_fail; | |
d14a1e28 RD |
22130 | { |
22131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22132 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22133 | |
22134 | wxPyEndAllowThreads(__tstate); | |
22135 | if (PyErr_Occurred()) SWIG_fail; | |
22136 | } | |
4f89f6a3 RD |
22137 | { |
22138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22139 | } | |
d14a1e28 RD |
22140 | return resultobj; |
22141 | fail: | |
22142 | return NULL; | |
22143 | } | |
22144 | ||
22145 | ||
22146 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22147 | PyObject *resultobj; | |
22148 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22149 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22150 | bool result; |
22151 | PyObject * obj0 = 0 ; | |
22152 | PyObject * obj1 = 0 ; | |
22153 | char *kwnames[] = { | |
22154 | (char *) "self",(char *) "other", NULL | |
22155 | }; | |
22156 | ||
22157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22160 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22162 | { |
22163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22164 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22165 | |
22166 | wxPyEndAllowThreads(__tstate); | |
22167 | if (PyErr_Occurred()) SWIG_fail; | |
22168 | } | |
4f89f6a3 RD |
22169 | { |
22170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22171 | } | |
d14a1e28 RD |
22172 | return resultobj; |
22173 | fail: | |
22174 | return NULL; | |
22175 | } | |
22176 | ||
22177 | ||
22178 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22179 | PyObject *resultobj; | |
22180 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22181 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22182 | bool result; |
22183 | PyObject * obj0 = 0 ; | |
22184 | PyObject * obj1 = 0 ; | |
22185 | char *kwnames[] = { | |
22186 | (char *) "self",(char *) "other", NULL | |
22187 | }; | |
22188 | ||
22189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22192 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22194 | { |
22195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22196 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22197 | |
22198 | wxPyEndAllowThreads(__tstate); | |
22199 | if (PyErr_Occurred()) SWIG_fail; | |
22200 | } | |
4f89f6a3 RD |
22201 | { |
22202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22203 | } | |
d14a1e28 RD |
22204 | return resultobj; |
22205 | fail: | |
22206 | return NULL; | |
22207 | } | |
22208 | ||
22209 | ||
22210 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22211 | PyObject *resultobj; | |
22212 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22213 | bool result; | |
22214 | PyObject * obj0 = 0 ; | |
22215 | char *kwnames[] = { | |
22216 | (char *) "self", NULL | |
22217 | }; | |
22218 | ||
22219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22222 | { |
22223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22224 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
22225 | ||
22226 | wxPyEndAllowThreads(__tstate); | |
22227 | if (PyErr_Occurred()) SWIG_fail; | |
22228 | } | |
4f89f6a3 RD |
22229 | { |
22230 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22231 | } | |
d14a1e28 RD |
22232 | return resultobj; |
22233 | fail: | |
22234 | return NULL; | |
22235 | } | |
22236 | ||
22237 | ||
22238 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22239 | PyObject *resultobj; | |
22240 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22241 | bool result; | |
22242 | PyObject * obj0 = 0 ; | |
22243 | char *kwnames[] = { | |
22244 | (char *) "self", NULL | |
22245 | }; | |
22246 | ||
22247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22250 | { |
22251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22252 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
22253 | ||
22254 | wxPyEndAllowThreads(__tstate); | |
22255 | if (PyErr_Occurred()) SWIG_fail; | |
22256 | } | |
4f89f6a3 RD |
22257 | { |
22258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22259 | } | |
d14a1e28 RD |
22260 | return resultobj; |
22261 | fail: | |
22262 | return NULL; | |
22263 | } | |
22264 | ||
22265 | ||
22266 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22267 | PyObject *resultobj; | |
22268 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22269 | bool result; | |
22270 | PyObject * obj0 = 0 ; | |
22271 | char *kwnames[] = { | |
22272 | (char *) "self", NULL | |
22273 | }; | |
22274 | ||
22275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22278 | { |
22279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22280 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
22281 | ||
22282 | wxPyEndAllowThreads(__tstate); | |
22283 | if (PyErr_Occurred()) SWIG_fail; | |
22284 | } | |
4f89f6a3 RD |
22285 | { |
22286 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22287 | } | |
d14a1e28 RD |
22288 | return resultobj; |
22289 | fail: | |
22290 | return NULL; | |
22291 | } | |
22292 | ||
22293 | ||
22294 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22295 | PyObject *resultobj; | |
22296 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22297 | wxTimeSpan *arg2 = 0 ; | |
22298 | bool result; | |
22299 | PyObject * obj0 = 0 ; | |
22300 | PyObject * obj1 = 0 ; | |
22301 | char *kwnames[] = { | |
22302 | (char *) "self",(char *) "ts", NULL | |
22303 | }; | |
22304 | ||
22305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22308 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22309 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22310 | SWIG_fail; | |
d14a1e28 | 22311 | if (arg2 == NULL) { |
15afbcd0 RD |
22312 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22313 | SWIG_fail; | |
d14a1e28 RD |
22314 | } |
22315 | { | |
22316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22317 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
22318 | ||
22319 | wxPyEndAllowThreads(__tstate); | |
22320 | if (PyErr_Occurred()) SWIG_fail; | |
22321 | } | |
4f89f6a3 RD |
22322 | { |
22323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22324 | } | |
d14a1e28 RD |
22325 | return resultobj; |
22326 | fail: | |
22327 | return NULL; | |
22328 | } | |
22329 | ||
22330 | ||
22331 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22332 | PyObject *resultobj; | |
22333 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22334 | wxTimeSpan *arg2 = 0 ; | |
22335 | bool result; | |
22336 | PyObject * obj0 = 0 ; | |
22337 | PyObject * obj1 = 0 ; | |
22338 | char *kwnames[] = { | |
22339 | (char *) "self",(char *) "ts", NULL | |
22340 | }; | |
22341 | ||
22342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22345 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22346 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22347 | SWIG_fail; | |
d14a1e28 | 22348 | if (arg2 == NULL) { |
15afbcd0 RD |
22349 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22350 | SWIG_fail; | |
d14a1e28 RD |
22351 | } |
22352 | { | |
22353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22354 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
22355 | ||
22356 | wxPyEndAllowThreads(__tstate); | |
22357 | if (PyErr_Occurred()) SWIG_fail; | |
22358 | } | |
4f89f6a3 RD |
22359 | { |
22360 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22361 | } | |
d14a1e28 RD |
22362 | return resultobj; |
22363 | fail: | |
22364 | return NULL; | |
22365 | } | |
22366 | ||
22367 | ||
22368 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22369 | PyObject *resultobj; | |
22370 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22371 | wxTimeSpan *arg2 = 0 ; | |
22372 | bool result; | |
22373 | PyObject * obj0 = 0 ; | |
22374 | PyObject * obj1 = 0 ; | |
22375 | char *kwnames[] = { | |
22376 | (char *) "self",(char *) "t", NULL | |
22377 | }; | |
22378 | ||
22379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22382 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22383 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22384 | SWIG_fail; | |
d14a1e28 | 22385 | if (arg2 == NULL) { |
15afbcd0 RD |
22386 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22387 | SWIG_fail; | |
d14a1e28 RD |
22388 | } |
22389 | { | |
22390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22391 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
22392 | ||
22393 | wxPyEndAllowThreads(__tstate); | |
22394 | if (PyErr_Occurred()) SWIG_fail; | |
22395 | } | |
4f89f6a3 RD |
22396 | { |
22397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22398 | } | |
d14a1e28 RD |
22399 | return resultobj; |
22400 | fail: | |
22401 | return NULL; | |
22402 | } | |
22403 | ||
22404 | ||
22405 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22406 | PyObject *resultobj; | |
22407 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22408 | int result; | |
22409 | PyObject * obj0 = 0 ; | |
22410 | char *kwnames[] = { | |
22411 | (char *) "self", NULL | |
22412 | }; | |
22413 | ||
22414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22417 | { |
22418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22419 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
22420 | ||
22421 | wxPyEndAllowThreads(__tstate); | |
22422 | if (PyErr_Occurred()) SWIG_fail; | |
22423 | } | |
15afbcd0 | 22424 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22425 | return resultobj; |
22426 | fail: | |
22427 | return NULL; | |
22428 | } | |
22429 | ||
22430 | ||
22431 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22432 | PyObject *resultobj; | |
22433 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22434 | int result; | |
22435 | PyObject * obj0 = 0 ; | |
22436 | char *kwnames[] = { | |
22437 | (char *) "self", NULL | |
22438 | }; | |
22439 | ||
22440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22443 | { |
22444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22445 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
22446 | ||
22447 | wxPyEndAllowThreads(__tstate); | |
22448 | if (PyErr_Occurred()) SWIG_fail; | |
22449 | } | |
15afbcd0 | 22450 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22451 | return resultobj; |
22452 | fail: | |
22453 | return NULL; | |
22454 | } | |
22455 | ||
22456 | ||
22457 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22458 | PyObject *resultobj; | |
22459 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22460 | int result; | |
22461 | PyObject * obj0 = 0 ; | |
22462 | char *kwnames[] = { | |
22463 | (char *) "self", NULL | |
22464 | }; | |
22465 | ||
22466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22469 | { |
22470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22471 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
22472 | ||
22473 | wxPyEndAllowThreads(__tstate); | |
22474 | if (PyErr_Occurred()) SWIG_fail; | |
22475 | } | |
15afbcd0 | 22476 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22477 | return resultobj; |
22478 | fail: | |
22479 | return NULL; | |
22480 | } | |
22481 | ||
22482 | ||
22483 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22484 | PyObject *resultobj; | |
22485 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22486 | int result; | |
22487 | PyObject * obj0 = 0 ; | |
22488 | char *kwnames[] = { | |
22489 | (char *) "self", NULL | |
22490 | }; | |
22491 | ||
22492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22495 | { |
22496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22497 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
22498 | ||
22499 | wxPyEndAllowThreads(__tstate); | |
22500 | if (PyErr_Occurred()) SWIG_fail; | |
22501 | } | |
15afbcd0 | 22502 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22503 | return resultobj; |
22504 | fail: | |
22505 | return NULL; | |
22506 | } | |
22507 | ||
22508 | ||
22509 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22510 | PyObject *resultobj; | |
22511 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22512 | wxLongLong result; | |
22513 | PyObject * obj0 = 0 ; | |
22514 | char *kwnames[] = { | |
22515 | (char *) "self", NULL | |
22516 | }; | |
22517 | ||
22518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22521 | { |
22522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22523 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
22524 | ||
22525 | wxPyEndAllowThreads(__tstate); | |
22526 | if (PyErr_Occurred()) SWIG_fail; | |
22527 | } | |
22528 | { | |
22529 | PyObject *hi, *lo, *shifter, *shifted; | |
22530 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22531 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22532 | shifter = PyLong_FromLong(32); | |
22533 | shifted = PyNumber_Lshift(hi, shifter); | |
22534 | resultobj = PyNumber_Or(shifted, lo); | |
22535 | Py_DECREF(hi); | |
22536 | Py_DECREF(lo); | |
22537 | Py_DECREF(shifter); | |
22538 | Py_DECREF(shifted); | |
22539 | } | |
22540 | return resultobj; | |
22541 | fail: | |
22542 | return NULL; | |
22543 | } | |
22544 | ||
22545 | ||
22546 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22547 | PyObject *resultobj; | |
22548 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22549 | wxLongLong result; | |
22550 | PyObject * obj0 = 0 ; | |
22551 | char *kwnames[] = { | |
22552 | (char *) "self", NULL | |
22553 | }; | |
22554 | ||
22555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22558 | { |
22559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22560 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
22561 | ||
22562 | wxPyEndAllowThreads(__tstate); | |
22563 | if (PyErr_Occurred()) SWIG_fail; | |
22564 | } | |
22565 | { | |
22566 | PyObject *hi, *lo, *shifter, *shifted; | |
22567 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22568 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22569 | shifter = PyLong_FromLong(32); | |
22570 | shifted = PyNumber_Lshift(hi, shifter); | |
22571 | resultobj = PyNumber_Or(shifted, lo); | |
22572 | Py_DECREF(hi); | |
22573 | Py_DECREF(lo); | |
22574 | Py_DECREF(shifter); | |
22575 | Py_DECREF(shifted); | |
22576 | } | |
22577 | return resultobj; | |
22578 | fail: | |
22579 | return NULL; | |
22580 | } | |
22581 | ||
22582 | ||
22583 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22584 | PyObject *resultobj; | |
22585 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22586 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
22587 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
22588 | wxString result; | |
e811c8ce | 22589 | bool temp2 = False ; |
d14a1e28 RD |
22590 | PyObject * obj0 = 0 ; |
22591 | PyObject * obj1 = 0 ; | |
22592 | char *kwnames[] = { | |
22593 | (char *) "self",(char *) "format", NULL | |
22594 | }; | |
22595 | ||
22596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22599 | if (obj1) { |
22600 | { | |
22601 | arg2 = wxString_in_helper(obj1); | |
22602 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 22603 | temp2 = True; |
d14a1e28 RD |
22604 | } |
22605 | } | |
22606 | { | |
22607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22608 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
22609 | ||
22610 | wxPyEndAllowThreads(__tstate); | |
22611 | if (PyErr_Occurred()) SWIG_fail; | |
22612 | } | |
22613 | { | |
22614 | #if wxUSE_UNICODE | |
22615 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22616 | #else | |
22617 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22618 | #endif | |
22619 | } | |
22620 | { | |
22621 | if (temp2) | |
22622 | delete arg2; | |
22623 | } | |
22624 | return resultobj; | |
22625 | fail: | |
22626 | { | |
22627 | if (temp2) | |
22628 | delete arg2; | |
22629 | } | |
22630 | return NULL; | |
22631 | } | |
22632 | ||
22633 | ||
22634 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
22635 | PyObject *obj; | |
22636 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22637 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
22638 | Py_INCREF(obj); | |
22639 | return Py_BuildValue((char *)""); | |
22640 | } | |
22641 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22642 | PyObject *resultobj; | |
22643 | int arg1 = (int) 0 ; | |
22644 | int arg2 = (int) 0 ; | |
22645 | int arg3 = (int) 0 ; | |
22646 | int arg4 = (int) 0 ; | |
22647 | wxDateSpan *result; | |
994141e6 RD |
22648 | PyObject * obj0 = 0 ; |
22649 | PyObject * obj1 = 0 ; | |
22650 | PyObject * obj2 = 0 ; | |
22651 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22652 | char *kwnames[] = { |
22653 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
22654 | }; | |
22655 | ||
994141e6 RD |
22656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
22657 | if (obj0) { | |
15afbcd0 RD |
22658 | arg1 = (int) SWIG_AsInt(obj0); |
22659 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22660 | } |
22661 | if (obj1) { | |
15afbcd0 RD |
22662 | arg2 = (int) SWIG_AsInt(obj1); |
22663 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22664 | } |
22665 | if (obj2) { | |
15afbcd0 RD |
22666 | arg3 = (int) SWIG_AsInt(obj2); |
22667 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22668 | } |
22669 | if (obj3) { | |
15afbcd0 RD |
22670 | arg4 = (int) SWIG_AsInt(obj3); |
22671 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22672 | } |
d14a1e28 RD |
22673 | { |
22674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22675 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
22676 | ||
22677 | wxPyEndAllowThreads(__tstate); | |
22678 | if (PyErr_Occurred()) SWIG_fail; | |
22679 | } | |
15afbcd0 | 22680 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22681 | return resultobj; |
22682 | fail: | |
22683 | return NULL; | |
22684 | } | |
22685 | ||
22686 | ||
22687 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22688 | PyObject *resultobj; | |
22689 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22690 | PyObject * obj0 = 0 ; | |
22691 | char *kwnames[] = { | |
22692 | (char *) "self", NULL | |
22693 | }; | |
22694 | ||
22695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22698 | { |
22699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22700 | delete arg1; | |
22701 | ||
22702 | wxPyEndAllowThreads(__tstate); | |
22703 | if (PyErr_Occurred()) SWIG_fail; | |
22704 | } | |
22705 | Py_INCREF(Py_None); resultobj = Py_None; | |
22706 | return resultobj; | |
22707 | fail: | |
22708 | return NULL; | |
22709 | } | |
22710 | ||
22711 | ||
22712 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22713 | PyObject *resultobj; | |
22714 | int arg1 ; | |
22715 | wxDateSpan result; | |
994141e6 | 22716 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22717 | char *kwnames[] = { |
22718 | (char *) "days", NULL | |
22719 | }; | |
22720 | ||
994141e6 | 22721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22722 | arg1 = (int) SWIG_AsInt(obj0); |
22723 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22724 | { |
22725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22726 | result = wxDateSpan::Days(arg1); | |
22727 | ||
22728 | wxPyEndAllowThreads(__tstate); | |
22729 | if (PyErr_Occurred()) SWIG_fail; | |
22730 | } | |
22731 | { | |
22732 | wxDateSpan * resultptr; | |
22733 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22734 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22735 | } |
22736 | return resultobj; | |
22737 | fail: | |
22738 | return NULL; | |
22739 | } | |
22740 | ||
22741 | ||
22742 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22743 | PyObject *resultobj; | |
22744 | wxDateSpan result; | |
22745 | char *kwnames[] = { | |
22746 | NULL | |
22747 | }; | |
22748 | ||
22749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
22750 | { | |
22751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22752 | result = wxDateSpan::Day(); | |
22753 | ||
22754 | wxPyEndAllowThreads(__tstate); | |
22755 | if (PyErr_Occurred()) SWIG_fail; | |
22756 | } | |
22757 | { | |
22758 | wxDateSpan * resultptr; | |
22759 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22760 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22761 | } |
22762 | return resultobj; | |
22763 | fail: | |
22764 | return NULL; | |
22765 | } | |
22766 | ||
22767 | ||
22768 | static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22769 | PyObject *resultobj; | |
22770 | int arg1 ; | |
22771 | wxDateSpan result; | |
994141e6 | 22772 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22773 | char *kwnames[] = { |
22774 | (char *) "weeks", NULL | |
22775 | }; | |
22776 | ||
994141e6 | 22777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22778 | arg1 = (int) SWIG_AsInt(obj0); |
22779 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22780 | { |
22781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22782 | result = wxDateSpan::Weeks(arg1); | |
22783 | ||
22784 | wxPyEndAllowThreads(__tstate); | |
22785 | if (PyErr_Occurred()) SWIG_fail; | |
22786 | } | |
22787 | { | |
22788 | wxDateSpan * resultptr; | |
22789 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22790 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22791 | } |
22792 | return resultobj; | |
22793 | fail: | |
22794 | return NULL; | |
22795 | } | |
22796 | ||
22797 | ||
22798 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22799 | PyObject *resultobj; | |
22800 | wxDateSpan result; | |
22801 | char *kwnames[] = { | |
22802 | NULL | |
22803 | }; | |
22804 | ||
22805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
22806 | { | |
22807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22808 | result = wxDateSpan::Week(); | |
22809 | ||
22810 | wxPyEndAllowThreads(__tstate); | |
22811 | if (PyErr_Occurred()) SWIG_fail; | |
22812 | } | |
22813 | { | |
22814 | wxDateSpan * resultptr; | |
22815 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22816 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22817 | } |
22818 | return resultobj; | |
22819 | fail: | |
22820 | return NULL; | |
22821 | } | |
22822 | ||
22823 | ||
22824 | static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22825 | PyObject *resultobj; | |
22826 | int arg1 ; | |
22827 | wxDateSpan result; | |
994141e6 | 22828 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22829 | char *kwnames[] = { |
22830 | (char *) "mon", NULL | |
22831 | }; | |
22832 | ||
994141e6 | 22833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22834 | arg1 = (int) SWIG_AsInt(obj0); |
22835 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22836 | { |
22837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22838 | result = wxDateSpan::Months(arg1); | |
22839 | ||
22840 | wxPyEndAllowThreads(__tstate); | |
22841 | if (PyErr_Occurred()) SWIG_fail; | |
22842 | } | |
22843 | { | |
22844 | wxDateSpan * resultptr; | |
22845 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22846 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22847 | } |
22848 | return resultobj; | |
22849 | fail: | |
22850 | return NULL; | |
22851 | } | |
22852 | ||
22853 | ||
22854 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22855 | PyObject *resultobj; | |
22856 | wxDateSpan result; | |
22857 | char *kwnames[] = { | |
22858 | NULL | |
22859 | }; | |
22860 | ||
22861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
22862 | { | |
22863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22864 | result = wxDateSpan::Month(); | |
22865 | ||
22866 | wxPyEndAllowThreads(__tstate); | |
22867 | if (PyErr_Occurred()) SWIG_fail; | |
22868 | } | |
22869 | { | |
22870 | wxDateSpan * resultptr; | |
22871 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22872 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22873 | } |
22874 | return resultobj; | |
22875 | fail: | |
22876 | return NULL; | |
22877 | } | |
22878 | ||
22879 | ||
22880 | static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22881 | PyObject *resultobj; | |
22882 | int arg1 ; | |
22883 | wxDateSpan result; | |
994141e6 | 22884 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22885 | char *kwnames[] = { |
22886 | (char *) "years", NULL | |
22887 | }; | |
22888 | ||
994141e6 | 22889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22890 | arg1 = (int) SWIG_AsInt(obj0); |
22891 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22892 | { |
22893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22894 | result = wxDateSpan::Years(arg1); | |
22895 | ||
22896 | wxPyEndAllowThreads(__tstate); | |
22897 | if (PyErr_Occurred()) SWIG_fail; | |
22898 | } | |
22899 | { | |
22900 | wxDateSpan * resultptr; | |
22901 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22902 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22903 | } |
22904 | return resultobj; | |
22905 | fail: | |
22906 | return NULL; | |
22907 | } | |
22908 | ||
22909 | ||
22910 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22911 | PyObject *resultobj; | |
22912 | wxDateSpan result; | |
22913 | char *kwnames[] = { | |
22914 | NULL | |
22915 | }; | |
22916 | ||
22917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
22918 | { | |
22919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22920 | result = wxDateSpan::Year(); | |
22921 | ||
22922 | wxPyEndAllowThreads(__tstate); | |
22923 | if (PyErr_Occurred()) SWIG_fail; | |
22924 | } | |
22925 | { | |
22926 | wxDateSpan * resultptr; | |
22927 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22928 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22929 | } |
22930 | return resultobj; | |
22931 | fail: | |
22932 | return NULL; | |
22933 | } | |
22934 | ||
22935 | ||
22936 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22937 | PyObject *resultobj; | |
22938 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22939 | int arg2 ; | |
22940 | wxDateSpan *result; | |
22941 | PyObject * obj0 = 0 ; | |
994141e6 | 22942 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22943 | char *kwnames[] = { |
22944 | (char *) "self",(char *) "n", NULL | |
22945 | }; | |
22946 | ||
994141e6 | 22947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22950 | arg2 = (int) SWIG_AsInt(obj1); | |
22951 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22952 | { |
22953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22954 | { | |
22955 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
22956 | result = (wxDateSpan *) &_result_ref; | |
22957 | } | |
22958 | ||
22959 | wxPyEndAllowThreads(__tstate); | |
22960 | if (PyErr_Occurred()) SWIG_fail; | |
22961 | } | |
15afbcd0 | 22962 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
22963 | return resultobj; |
22964 | fail: | |
22965 | return NULL; | |
22966 | } | |
22967 | ||
22968 | ||
22969 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22970 | PyObject *resultobj; | |
22971 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22972 | int arg2 ; | |
22973 | wxDateSpan *result; | |
22974 | PyObject * obj0 = 0 ; | |
994141e6 | 22975 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22976 | char *kwnames[] = { |
22977 | (char *) "self",(char *) "n", NULL | |
22978 | }; | |
22979 | ||
994141e6 | 22980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22983 | arg2 = (int) SWIG_AsInt(obj1); | |
22984 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22985 | { |
22986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22987 | { | |
22988 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
22989 | result = (wxDateSpan *) &_result_ref; | |
22990 | } | |
22991 | ||
22992 | wxPyEndAllowThreads(__tstate); | |
22993 | if (PyErr_Occurred()) SWIG_fail; | |
22994 | } | |
15afbcd0 | 22995 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
22996 | return resultobj; |
22997 | fail: | |
22998 | return NULL; | |
22999 | } | |
23000 | ||
23001 | ||
23002 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23003 | PyObject *resultobj; | |
23004 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23005 | int arg2 ; | |
23006 | wxDateSpan *result; | |
23007 | PyObject * obj0 = 0 ; | |
994141e6 | 23008 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23009 | char *kwnames[] = { |
23010 | (char *) "self",(char *) "n", NULL | |
23011 | }; | |
23012 | ||
994141e6 | 23013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23016 | arg2 = (int) SWIG_AsInt(obj1); | |
23017 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23018 | { |
23019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23020 | { | |
23021 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
23022 | result = (wxDateSpan *) &_result_ref; | |
23023 | } | |
23024 | ||
23025 | wxPyEndAllowThreads(__tstate); | |
23026 | if (PyErr_Occurred()) SWIG_fail; | |
23027 | } | |
15afbcd0 | 23028 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23029 | return resultobj; |
23030 | fail: | |
23031 | return NULL; | |
23032 | } | |
23033 | ||
23034 | ||
23035 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23036 | PyObject *resultobj; | |
23037 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23038 | int arg2 ; | |
23039 | wxDateSpan *result; | |
23040 | PyObject * obj0 = 0 ; | |
994141e6 | 23041 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23042 | char *kwnames[] = { |
23043 | (char *) "self",(char *) "n", NULL | |
23044 | }; | |
23045 | ||
994141e6 | 23046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23049 | arg2 = (int) SWIG_AsInt(obj1); | |
23050 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23051 | { |
23052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23053 | { | |
23054 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
23055 | result = (wxDateSpan *) &_result_ref; | |
23056 | } | |
23057 | ||
23058 | wxPyEndAllowThreads(__tstate); | |
23059 | if (PyErr_Occurred()) SWIG_fail; | |
23060 | } | |
15afbcd0 | 23061 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23062 | return resultobj; |
23063 | fail: | |
23064 | return NULL; | |
23065 | } | |
23066 | ||
23067 | ||
23068 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23069 | PyObject *resultobj; | |
23070 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23071 | int result; | |
23072 | PyObject * obj0 = 0 ; | |
23073 | char *kwnames[] = { | |
23074 | (char *) "self", NULL | |
23075 | }; | |
23076 | ||
23077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23080 | { |
23081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23082 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
23083 | ||
23084 | wxPyEndAllowThreads(__tstate); | |
23085 | if (PyErr_Occurred()) SWIG_fail; | |
23086 | } | |
15afbcd0 | 23087 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23088 | return resultobj; |
23089 | fail: | |
23090 | return NULL; | |
23091 | } | |
23092 | ||
23093 | ||
23094 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23095 | PyObject *resultobj; | |
23096 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23097 | int result; | |
23098 | PyObject * obj0 = 0 ; | |
23099 | char *kwnames[] = { | |
23100 | (char *) "self", NULL | |
23101 | }; | |
23102 | ||
23103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23106 | { |
23107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23108 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
23109 | ||
23110 | wxPyEndAllowThreads(__tstate); | |
23111 | if (PyErr_Occurred()) SWIG_fail; | |
23112 | } | |
15afbcd0 | 23113 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23114 | return resultobj; |
23115 | fail: | |
23116 | return NULL; | |
23117 | } | |
23118 | ||
23119 | ||
23120 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23121 | PyObject *resultobj; | |
23122 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23123 | int result; | |
23124 | PyObject * obj0 = 0 ; | |
23125 | char *kwnames[] = { | |
23126 | (char *) "self", NULL | |
23127 | }; | |
23128 | ||
23129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23132 | { |
23133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23134 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
23135 | ||
23136 | wxPyEndAllowThreads(__tstate); | |
23137 | if (PyErr_Occurred()) SWIG_fail; | |
23138 | } | |
15afbcd0 | 23139 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23140 | return resultobj; |
23141 | fail: | |
23142 | return NULL; | |
23143 | } | |
23144 | ||
23145 | ||
23146 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23147 | PyObject *resultobj; | |
23148 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23149 | int result; | |
23150 | PyObject * obj0 = 0 ; | |
23151 | char *kwnames[] = { | |
23152 | (char *) "self", NULL | |
23153 | }; | |
23154 | ||
23155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23158 | { |
23159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23160 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
23161 | ||
23162 | wxPyEndAllowThreads(__tstate); | |
23163 | if (PyErr_Occurred()) SWIG_fail; | |
23164 | } | |
15afbcd0 | 23165 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23166 | return resultobj; |
23167 | fail: | |
23168 | return NULL; | |
23169 | } | |
23170 | ||
23171 | ||
23172 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23173 | PyObject *resultobj; | |
23174 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23175 | int result; | |
23176 | PyObject * obj0 = 0 ; | |
23177 | char *kwnames[] = { | |
23178 | (char *) "self", NULL | |
23179 | }; | |
23180 | ||
23181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23184 | { |
23185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23186 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
23187 | ||
23188 | wxPyEndAllowThreads(__tstate); | |
23189 | if (PyErr_Occurred()) SWIG_fail; | |
23190 | } | |
15afbcd0 | 23191 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23192 | return resultobj; |
23193 | fail: | |
23194 | return NULL; | |
23195 | } | |
23196 | ||
23197 | ||
23198 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23199 | PyObject *resultobj; | |
23200 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23201 | wxDateSpan *arg2 = 0 ; | |
23202 | wxDateSpan *result; | |
23203 | PyObject * obj0 = 0 ; | |
23204 | PyObject * obj1 = 0 ; | |
23205 | char *kwnames[] = { | |
23206 | (char *) "self",(char *) "other", NULL | |
23207 | }; | |
23208 | ||
23209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23212 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23213 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23214 | SWIG_fail; | |
d14a1e28 | 23215 | if (arg2 == NULL) { |
15afbcd0 RD |
23216 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23217 | SWIG_fail; | |
d14a1e28 RD |
23218 | } |
23219 | { | |
23220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23221 | { | |
23222 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
23223 | result = (wxDateSpan *) &_result_ref; | |
23224 | } | |
23225 | ||
23226 | wxPyEndAllowThreads(__tstate); | |
23227 | if (PyErr_Occurred()) SWIG_fail; | |
23228 | } | |
15afbcd0 | 23229 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23230 | return resultobj; |
23231 | fail: | |
23232 | return NULL; | |
23233 | } | |
23234 | ||
23235 | ||
23236 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23237 | PyObject *resultobj; | |
23238 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23239 | wxDateSpan *arg2 = 0 ; | |
23240 | wxDateSpan *result; | |
23241 | PyObject * obj0 = 0 ; | |
23242 | PyObject * obj1 = 0 ; | |
23243 | char *kwnames[] = { | |
23244 | (char *) "self",(char *) "other", NULL | |
23245 | }; | |
23246 | ||
23247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23250 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23251 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23252 | SWIG_fail; | |
d14a1e28 | 23253 | if (arg2 == NULL) { |
15afbcd0 RD |
23254 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23255 | SWIG_fail; | |
d14a1e28 RD |
23256 | } |
23257 | { | |
23258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23259 | { | |
23260 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
23261 | result = (wxDateSpan *) &_result_ref; | |
23262 | } | |
23263 | ||
23264 | wxPyEndAllowThreads(__tstate); | |
23265 | if (PyErr_Occurred()) SWIG_fail; | |
23266 | } | |
15afbcd0 | 23267 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23268 | return resultobj; |
23269 | fail: | |
23270 | return NULL; | |
23271 | } | |
23272 | ||
23273 | ||
23274 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23275 | PyObject *resultobj; | |
23276 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23277 | wxDateSpan *result; | |
23278 | PyObject * obj0 = 0 ; | |
23279 | char *kwnames[] = { | |
23280 | (char *) "self", NULL | |
23281 | }; | |
23282 | ||
23283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23286 | { |
23287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23288 | { | |
23289 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
23290 | result = (wxDateSpan *) &_result_ref; | |
23291 | } | |
23292 | ||
23293 | wxPyEndAllowThreads(__tstate); | |
23294 | if (PyErr_Occurred()) SWIG_fail; | |
23295 | } | |
15afbcd0 | 23296 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23297 | return resultobj; |
23298 | fail: | |
23299 | return NULL; | |
23300 | } | |
23301 | ||
23302 | ||
23303 | static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23304 | PyObject *resultobj; | |
23305 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23306 | int arg2 ; | |
23307 | wxDateSpan *result; | |
23308 | PyObject * obj0 = 0 ; | |
994141e6 | 23309 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23310 | char *kwnames[] = { |
23311 | (char *) "self",(char *) "factor", NULL | |
23312 | }; | |
23313 | ||
994141e6 | 23314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23317 | arg2 = (int) SWIG_AsInt(obj1); | |
23318 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23319 | { |
23320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23321 | { | |
23322 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
23323 | result = (wxDateSpan *) &_result_ref; | |
23324 | } | |
23325 | ||
23326 | wxPyEndAllowThreads(__tstate); | |
23327 | if (PyErr_Occurred()) SWIG_fail; | |
23328 | } | |
15afbcd0 | 23329 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23330 | return resultobj; |
23331 | fail: | |
23332 | return NULL; | |
23333 | } | |
23334 | ||
23335 | ||
23336 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23337 | PyObject *resultobj; | |
23338 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23339 | wxDateSpan *arg2 = 0 ; | |
23340 | wxDateSpan *result; | |
23341 | PyObject * obj0 = 0 ; | |
23342 | PyObject * obj1 = 0 ; | |
23343 | char *kwnames[] = { | |
23344 | (char *) "self",(char *) "other", NULL | |
23345 | }; | |
23346 | ||
23347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23350 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23351 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23352 | SWIG_fail; | |
d14a1e28 | 23353 | if (arg2 == NULL) { |
15afbcd0 RD |
23354 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23355 | SWIG_fail; | |
d14a1e28 RD |
23356 | } |
23357 | { | |
23358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23359 | { | |
23360 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
23361 | result = (wxDateSpan *) &_result_ref; | |
23362 | } | |
23363 | ||
23364 | wxPyEndAllowThreads(__tstate); | |
23365 | if (PyErr_Occurred()) SWIG_fail; | |
23366 | } | |
15afbcd0 | 23367 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23368 | return resultobj; |
23369 | fail: | |
23370 | return NULL; | |
23371 | } | |
23372 | ||
23373 | ||
23374 | static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23375 | PyObject *resultobj; | |
23376 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23377 | wxDateSpan *arg2 = 0 ; | |
23378 | wxDateSpan *result; | |
23379 | PyObject * obj0 = 0 ; | |
23380 | PyObject * obj1 = 0 ; | |
23381 | char *kwnames[] = { | |
23382 | (char *) "self",(char *) "other", NULL | |
23383 | }; | |
23384 | ||
23385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23388 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23389 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23390 | SWIG_fail; | |
d14a1e28 | 23391 | if (arg2 == NULL) { |
15afbcd0 RD |
23392 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23393 | SWIG_fail; | |
d14a1e28 RD |
23394 | } |
23395 | { | |
23396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23397 | { | |
23398 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
23399 | result = (wxDateSpan *) &_result_ref; | |
23400 | } | |
23401 | ||
23402 | wxPyEndAllowThreads(__tstate); | |
23403 | if (PyErr_Occurred()) SWIG_fail; | |
23404 | } | |
15afbcd0 | 23405 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23406 | return resultobj; |
23407 | fail: | |
23408 | return NULL; | |
23409 | } | |
23410 | ||
23411 | ||
23412 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23413 | PyObject *resultobj; | |
23414 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23415 | wxDateSpan *result; | |
23416 | PyObject * obj0 = 0 ; | |
23417 | char *kwnames[] = { | |
23418 | (char *) "self", NULL | |
23419 | }; | |
23420 | ||
23421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23424 | { |
23425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23426 | { | |
23427 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
23428 | result = (wxDateSpan *) &_result_ref; | |
23429 | } | |
23430 | ||
23431 | wxPyEndAllowThreads(__tstate); | |
23432 | if (PyErr_Occurred()) SWIG_fail; | |
23433 | } | |
15afbcd0 | 23434 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23435 | return resultobj; |
23436 | fail: | |
23437 | return NULL; | |
23438 | } | |
23439 | ||
23440 | ||
23441 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23442 | PyObject *resultobj; | |
23443 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23444 | int arg2 ; | |
23445 | wxDateSpan *result; | |
23446 | PyObject * obj0 = 0 ; | |
994141e6 | 23447 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23448 | char *kwnames[] = { |
23449 | (char *) "self",(char *) "factor", NULL | |
23450 | }; | |
23451 | ||
994141e6 | 23452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23455 | arg2 = (int) SWIG_AsInt(obj1); | |
23456 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23457 | { |
23458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23459 | { | |
23460 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
23461 | result = (wxDateSpan *) &_result_ref; | |
23462 | } | |
23463 | ||
23464 | wxPyEndAllowThreads(__tstate); | |
23465 | if (PyErr_Occurred()) SWIG_fail; | |
23466 | } | |
15afbcd0 | 23467 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23468 | return resultobj; |
23469 | fail: | |
23470 | return NULL; | |
23471 | } | |
23472 | ||
23473 | ||
23474 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23475 | PyObject *resultobj; | |
23476 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23477 | wxDateSpan *arg2 = 0 ; | |
23478 | wxDateSpan result; | |
23479 | PyObject * obj0 = 0 ; | |
23480 | PyObject * obj1 = 0 ; | |
23481 | char *kwnames[] = { | |
23482 | (char *) "self",(char *) "other", NULL | |
23483 | }; | |
23484 | ||
23485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23488 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23489 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23490 | SWIG_fail; | |
d14a1e28 | 23491 | if (arg2 == NULL) { |
15afbcd0 RD |
23492 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23493 | SWIG_fail; | |
d14a1e28 RD |
23494 | } |
23495 | { | |
23496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23497 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
23498 | ||
23499 | wxPyEndAllowThreads(__tstate); | |
23500 | if (PyErr_Occurred()) SWIG_fail; | |
23501 | } | |
23502 | { | |
23503 | wxDateSpan * resultptr; | |
23504 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23505 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23506 | } |
23507 | return resultobj; | |
23508 | fail: | |
23509 | return NULL; | |
23510 | } | |
23511 | ||
23512 | ||
23513 | static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23514 | PyObject *resultobj; | |
23515 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23516 | wxDateSpan *arg2 = 0 ; | |
23517 | wxDateSpan result; | |
23518 | PyObject * obj0 = 0 ; | |
23519 | PyObject * obj1 = 0 ; | |
23520 | char *kwnames[] = { | |
23521 | (char *) "self",(char *) "other", NULL | |
23522 | }; | |
23523 | ||
23524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23527 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23528 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23529 | SWIG_fail; | |
d14a1e28 | 23530 | if (arg2 == NULL) { |
15afbcd0 RD |
23531 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23532 | SWIG_fail; | |
d14a1e28 RD |
23533 | } |
23534 | { | |
23535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23536 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
23537 | ||
23538 | wxPyEndAllowThreads(__tstate); | |
23539 | if (PyErr_Occurred()) SWIG_fail; | |
23540 | } | |
23541 | { | |
23542 | wxDateSpan * resultptr; | |
23543 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23544 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23545 | } |
23546 | return resultobj; | |
23547 | fail: | |
23548 | return NULL; | |
23549 | } | |
23550 | ||
23551 | ||
23552 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23553 | PyObject *resultobj; | |
23554 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23555 | int arg2 ; | |
23556 | wxDateSpan result; | |
23557 | PyObject * obj0 = 0 ; | |
994141e6 | 23558 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23559 | char *kwnames[] = { |
23560 | (char *) "self",(char *) "n", NULL | |
23561 | }; | |
23562 | ||
994141e6 | 23563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23566 | arg2 = (int) SWIG_AsInt(obj1); | |
23567 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23568 | { |
23569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23570 | result = wxDateSpan___mul__(arg1,arg2); | |
23571 | ||
23572 | wxPyEndAllowThreads(__tstate); | |
23573 | if (PyErr_Occurred()) SWIG_fail; | |
23574 | } | |
23575 | { | |
23576 | wxDateSpan * resultptr; | |
23577 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23578 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23579 | } |
23580 | return resultobj; | |
23581 | fail: | |
23582 | return NULL; | |
23583 | } | |
23584 | ||
23585 | ||
23586 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23587 | PyObject *resultobj; | |
23588 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23589 | int arg2 ; | |
23590 | wxDateSpan result; | |
23591 | PyObject * obj0 = 0 ; | |
994141e6 | 23592 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23593 | char *kwnames[] = { |
23594 | (char *) "self",(char *) "n", NULL | |
23595 | }; | |
23596 | ||
994141e6 | 23597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23600 | arg2 = (int) SWIG_AsInt(obj1); | |
23601 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23602 | { |
23603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23604 | result = wxDateSpan___rmul__(arg1,arg2); | |
23605 | ||
23606 | wxPyEndAllowThreads(__tstate); | |
23607 | if (PyErr_Occurred()) SWIG_fail; | |
23608 | } | |
23609 | { | |
23610 | wxDateSpan * resultptr; | |
23611 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23612 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23613 | } |
23614 | return resultobj; | |
23615 | fail: | |
23616 | return NULL; | |
23617 | } | |
23618 | ||
23619 | ||
23620 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23621 | PyObject *resultobj; | |
23622 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22faec7d | 23623 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; |
d14a1e28 RD |
23624 | bool result; |
23625 | PyObject * obj0 = 0 ; | |
23626 | PyObject * obj1 = 0 ; | |
23627 | char *kwnames[] = { | |
23628 | (char *) "self",(char *) "other", NULL | |
23629 | }; | |
23630 | ||
23631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23634 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23636 | { |
23637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 23638 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); |
d14a1e28 RD |
23639 | |
23640 | wxPyEndAllowThreads(__tstate); | |
23641 | if (PyErr_Occurred()) SWIG_fail; | |
23642 | } | |
4f89f6a3 RD |
23643 | { |
23644 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23645 | } | |
d14a1e28 RD |
23646 | return resultobj; |
23647 | fail: | |
23648 | return NULL; | |
23649 | } | |
23650 | ||
23651 | ||
23652 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23653 | PyObject *resultobj; | |
23654 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22faec7d | 23655 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; |
d14a1e28 RD |
23656 | bool result; |
23657 | PyObject * obj0 = 0 ; | |
23658 | PyObject * obj1 = 0 ; | |
23659 | char *kwnames[] = { | |
23660 | (char *) "self",(char *) "other", NULL | |
23661 | }; | |
23662 | ||
23663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23666 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23668 | { |
23669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 23670 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); |
d14a1e28 RD |
23671 | |
23672 | wxPyEndAllowThreads(__tstate); | |
23673 | if (PyErr_Occurred()) SWIG_fail; | |
23674 | } | |
4f89f6a3 RD |
23675 | { |
23676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23677 | } | |
d14a1e28 RD |
23678 | return resultobj; |
23679 | fail: | |
23680 | return NULL; | |
23681 | } | |
23682 | ||
23683 | ||
23684 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
23685 | PyObject *obj; | |
23686 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23687 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
23688 | Py_INCREF(obj); | |
23689 | return Py_BuildValue((char *)""); | |
23690 | } | |
23691 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23692 | PyObject *resultobj; | |
23693 | long result; | |
23694 | char *kwnames[] = { | |
23695 | NULL | |
23696 | }; | |
23697 | ||
23698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
23699 | { | |
23700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23701 | result = (long)wxGetLocalTime(); | |
23702 | ||
23703 | wxPyEndAllowThreads(__tstate); | |
23704 | if (PyErr_Occurred()) SWIG_fail; | |
23705 | } | |
15afbcd0 | 23706 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23707 | return resultobj; |
23708 | fail: | |
23709 | return NULL; | |
23710 | } | |
23711 | ||
23712 | ||
23713 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23714 | PyObject *resultobj; | |
23715 | long result; | |
23716 | char *kwnames[] = { | |
23717 | NULL | |
23718 | }; | |
23719 | ||
23720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
23721 | { | |
23722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23723 | result = (long)wxGetUTCTime(); | |
23724 | ||
23725 | wxPyEndAllowThreads(__tstate); | |
23726 | if (PyErr_Occurred()) SWIG_fail; | |
23727 | } | |
15afbcd0 | 23728 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23729 | return resultobj; |
23730 | fail: | |
23731 | return NULL; | |
23732 | } | |
23733 | ||
23734 | ||
23735 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23736 | PyObject *resultobj; | |
23737 | long result; | |
23738 | char *kwnames[] = { | |
23739 | NULL | |
23740 | }; | |
23741 | ||
23742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
23743 | { | |
23744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23745 | result = (long)wxGetCurrentTime(); | |
23746 | ||
23747 | wxPyEndAllowThreads(__tstate); | |
23748 | if (PyErr_Occurred()) SWIG_fail; | |
23749 | } | |
15afbcd0 | 23750 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23751 | return resultobj; |
23752 | fail: | |
23753 | return NULL; | |
23754 | } | |
23755 | ||
23756 | ||
23757 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23758 | PyObject *resultobj; | |
23759 | wxLongLong result; | |
23760 | char *kwnames[] = { | |
23761 | NULL | |
23762 | }; | |
23763 | ||
23764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
23765 | { | |
23766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23767 | result = wxGetLocalTimeMillis(); | |
23768 | ||
23769 | wxPyEndAllowThreads(__tstate); | |
23770 | if (PyErr_Occurred()) SWIG_fail; | |
23771 | } | |
23772 | { | |
23773 | PyObject *hi, *lo, *shifter, *shifted; | |
23774 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23775 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23776 | shifter = PyLong_FromLong(32); | |
23777 | shifted = PyNumber_Lshift(hi, shifter); | |
23778 | resultobj = PyNumber_Or(shifted, lo); | |
23779 | Py_DECREF(hi); | |
23780 | Py_DECREF(lo); | |
23781 | Py_DECREF(shifter); | |
23782 | Py_DECREF(shifted); | |
23783 | } | |
23784 | return resultobj; | |
23785 | fail: | |
23786 | return NULL; | |
23787 | } | |
23788 | ||
23789 | ||
98e665d3 RD |
23790 | static int _wrap_DefaultDateTime_set(PyObject *_val) { |
23791 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); | |
23792 | return 1; | |
23793 | } | |
23794 | ||
23795 | ||
23796 | static PyObject *_wrap_DefaultDateTime_get() { | |
23797 | PyObject *pyobj; | |
23798 | ||
15afbcd0 | 23799 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); |
98e665d3 RD |
23800 | return pyobj; |
23801 | } | |
23802 | ||
23803 | ||
d14a1e28 RD |
23804 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { |
23805 | PyObject *resultobj; | |
23806 | int arg1 ; | |
23807 | wxDataFormat *result; | |
994141e6 | 23808 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
23809 | char *kwnames[] = { |
23810 | (char *) "type", NULL | |
23811 | }; | |
23812 | ||
994141e6 | 23813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
23814 | arg1 = (wxDataFormatId) SWIG_AsInt(obj0); |
23815 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23816 | { |
23817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23818 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
23819 | ||
23820 | wxPyEndAllowThreads(__tstate); | |
23821 | if (PyErr_Occurred()) SWIG_fail; | |
23822 | } | |
15afbcd0 | 23823 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
23824 | return resultobj; |
23825 | fail: | |
23826 | return NULL; | |
23827 | } | |
23828 | ||
23829 | ||
23830 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23831 | PyObject *resultobj; | |
23832 | wxString *arg1 = 0 ; | |
23833 | wxDataFormat *result; | |
e811c8ce | 23834 | bool temp1 = False ; |
d14a1e28 RD |
23835 | PyObject * obj0 = 0 ; |
23836 | char *kwnames[] = { | |
23837 | (char *) "format", NULL | |
23838 | }; | |
23839 | ||
23840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
23841 | { | |
23842 | arg1 = wxString_in_helper(obj0); | |
23843 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 23844 | temp1 = True; |
d14a1e28 RD |
23845 | } |
23846 | { | |
23847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23848 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
23849 | ||
23850 | wxPyEndAllowThreads(__tstate); | |
23851 | if (PyErr_Occurred()) SWIG_fail; | |
23852 | } | |
15afbcd0 | 23853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
23854 | { |
23855 | if (temp1) | |
23856 | delete arg1; | |
23857 | } | |
23858 | return resultobj; | |
23859 | fail: | |
23860 | { | |
23861 | if (temp1) | |
23862 | delete arg1; | |
23863 | } | |
23864 | return NULL; | |
23865 | } | |
23866 | ||
23867 | ||
23868 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23869 | PyObject *resultobj; | |
23870 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23871 | PyObject * obj0 = 0 ; | |
23872 | char *kwnames[] = { | |
23873 | (char *) "self", NULL | |
23874 | }; | |
23875 | ||
23876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23879 | { |
23880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23881 | delete arg1; | |
23882 | ||
23883 | wxPyEndAllowThreads(__tstate); | |
23884 | if (PyErr_Occurred()) SWIG_fail; | |
23885 | } | |
23886 | Py_INCREF(Py_None); resultobj = Py_None; | |
23887 | return resultobj; | |
23888 | fail: | |
23889 | return NULL; | |
23890 | } | |
23891 | ||
23892 | ||
23893 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
23894 | PyObject *resultobj; | |
23895 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23896 | int arg2 ; | |
23897 | bool result; | |
23898 | PyObject * obj0 = 0 ; | |
994141e6 | 23899 | PyObject * obj1 = 0 ; |
d14a1e28 | 23900 | |
994141e6 | 23901 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23904 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23905 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23906 | { |
23907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 23908 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); |
d14a1e28 RD |
23909 | |
23910 | wxPyEndAllowThreads(__tstate); | |
23911 | if (PyErr_Occurred()) SWIG_fail; | |
23912 | } | |
4f89f6a3 RD |
23913 | { |
23914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23915 | } | |
d14a1e28 RD |
23916 | return resultobj; |
23917 | fail: | |
23918 | return NULL; | |
23919 | } | |
23920 | ||
23921 | ||
23922 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
23923 | PyObject *resultobj; | |
23924 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23925 | int arg2 ; | |
23926 | bool result; | |
23927 | PyObject * obj0 = 0 ; | |
994141e6 | 23928 | PyObject * obj1 = 0 ; |
d14a1e28 | 23929 | |
994141e6 | 23930 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23933 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23934 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23935 | { |
23936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 23937 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); |
d14a1e28 RD |
23938 | |
23939 | wxPyEndAllowThreads(__tstate); | |
23940 | if (PyErr_Occurred()) SWIG_fail; | |
23941 | } | |
4f89f6a3 RD |
23942 | { |
23943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23944 | } | |
d14a1e28 RD |
23945 | return resultobj; |
23946 | fail: | |
23947 | return NULL; | |
23948 | } | |
23949 | ||
23950 | ||
23951 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
23952 | PyObject *resultobj; | |
23953 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23954 | wxDataFormat *arg2 = 0 ; | |
23955 | bool result; | |
23956 | PyObject * obj0 = 0 ; | |
23957 | PyObject * obj1 = 0 ; | |
23958 | ||
23959 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23962 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
23963 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23964 | SWIG_fail; | |
d14a1e28 | 23965 | if (arg2 == NULL) { |
15afbcd0 RD |
23966 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23967 | SWIG_fail; | |
d14a1e28 RD |
23968 | } |
23969 | { | |
23970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23971 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
23972 | ||
23973 | wxPyEndAllowThreads(__tstate); | |
23974 | if (PyErr_Occurred()) SWIG_fail; | |
23975 | } | |
4f89f6a3 RD |
23976 | { |
23977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23978 | } | |
d14a1e28 RD |
23979 | return resultobj; |
23980 | fail: | |
23981 | return NULL; | |
23982 | } | |
23983 | ||
23984 | ||
23985 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
23986 | int argc; | |
23987 | PyObject *argv[3]; | |
23988 | int ii; | |
23989 | ||
23990 | argc = PyObject_Length(args); | |
23991 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23992 | argv[ii] = PyTuple_GetItem(args,ii); | |
23993 | } | |
23994 | if (argc == 2) { | |
23995 | int _v; | |
23996 | { | |
23997 | void *ptr; | |
15afbcd0 | 23998 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
23999 | _v = 0; |
24000 | PyErr_Clear(); | |
24001 | } else { | |
24002 | _v = 1; | |
24003 | } | |
24004 | } | |
24005 | if (_v) { | |
24006 | { | |
24007 | void *ptr; | |
15afbcd0 | 24008 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24009 | _v = 0; |
24010 | PyErr_Clear(); | |
24011 | } else { | |
24012 | _v = 1; | |
24013 | } | |
24014 | } | |
24015 | if (_v) { | |
24016 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
24017 | } | |
24018 | } | |
24019 | } | |
24020 | if (argc == 2) { | |
24021 | int _v; | |
24022 | { | |
24023 | void *ptr; | |
15afbcd0 | 24024 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24025 | _v = 0; |
24026 | PyErr_Clear(); | |
24027 | } else { | |
24028 | _v = 1; | |
24029 | } | |
24030 | } | |
24031 | if (_v) { | |
15afbcd0 | 24032 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
24033 | if (_v) { |
24034 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
24035 | } | |
24036 | } | |
24037 | } | |
24038 | ||
24039 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
24040 | return NULL; | |
24041 | } | |
24042 | ||
24043 | ||
24044 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
24045 | PyObject *resultobj; | |
24046 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24047 | wxDataFormat *arg2 = 0 ; | |
24048 | bool result; | |
24049 | PyObject * obj0 = 0 ; | |
24050 | PyObject * obj1 = 0 ; | |
24051 | ||
24052 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24055 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24056 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24057 | SWIG_fail; | |
d14a1e28 | 24058 | if (arg2 == NULL) { |
15afbcd0 RD |
24059 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24060 | SWIG_fail; | |
d14a1e28 RD |
24061 | } |
24062 | { | |
24063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24064 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
24065 | ||
24066 | wxPyEndAllowThreads(__tstate); | |
24067 | if (PyErr_Occurred()) SWIG_fail; | |
24068 | } | |
4f89f6a3 RD |
24069 | { |
24070 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24071 | } | |
d14a1e28 RD |
24072 | return resultobj; |
24073 | fail: | |
24074 | return NULL; | |
24075 | } | |
24076 | ||
24077 | ||
24078 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
24079 | int argc; | |
24080 | PyObject *argv[3]; | |
24081 | int ii; | |
24082 | ||
24083 | argc = PyObject_Length(args); | |
24084 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24085 | argv[ii] = PyTuple_GetItem(args,ii); | |
24086 | } | |
24087 | if (argc == 2) { | |
24088 | int _v; | |
24089 | { | |
24090 | void *ptr; | |
15afbcd0 | 24091 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24092 | _v = 0; |
24093 | PyErr_Clear(); | |
24094 | } else { | |
24095 | _v = 1; | |
24096 | } | |
24097 | } | |
24098 | if (_v) { | |
24099 | { | |
24100 | void *ptr; | |
15afbcd0 | 24101 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24102 | _v = 0; |
24103 | PyErr_Clear(); | |
24104 | } else { | |
24105 | _v = 1; | |
24106 | } | |
24107 | } | |
24108 | if (_v) { | |
24109 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
24110 | } | |
24111 | } | |
24112 | } | |
24113 | if (argc == 2) { | |
24114 | int _v; | |
24115 | { | |
24116 | void *ptr; | |
15afbcd0 | 24117 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24118 | _v = 0; |
24119 | PyErr_Clear(); | |
24120 | } else { | |
24121 | _v = 1; | |
24122 | } | |
24123 | } | |
24124 | if (_v) { | |
15afbcd0 | 24125 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
24126 | if (_v) { |
24127 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
24128 | } | |
24129 | } | |
24130 | } | |
24131 | ||
24132 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
24133 | return NULL; | |
24134 | } | |
24135 | ||
24136 | ||
24137 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24138 | PyObject *resultobj; | |
24139 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24140 | int arg2 ; | |
24141 | PyObject * obj0 = 0 ; | |
994141e6 | 24142 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24143 | char *kwnames[] = { |
24144 | (char *) "self",(char *) "format", NULL | |
24145 | }; | |
24146 | ||
994141e6 | 24147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24150 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
24151 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24152 | { |
24153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24154 | (arg1)->SetType((wxDataFormatId )arg2); | |
24155 | ||
24156 | wxPyEndAllowThreads(__tstate); | |
24157 | if (PyErr_Occurred()) SWIG_fail; | |
24158 | } | |
24159 | Py_INCREF(Py_None); resultobj = Py_None; | |
24160 | return resultobj; | |
24161 | fail: | |
24162 | return NULL; | |
24163 | } | |
24164 | ||
24165 | ||
24166 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24167 | PyObject *resultobj; | |
24168 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24169 | int result; | |
24170 | PyObject * obj0 = 0 ; | |
24171 | char *kwnames[] = { | |
24172 | (char *) "self", NULL | |
24173 | }; | |
24174 | ||
24175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24178 | { |
24179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24180 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
24181 | ||
24182 | wxPyEndAllowThreads(__tstate); | |
24183 | if (PyErr_Occurred()) SWIG_fail; | |
24184 | } | |
15afbcd0 | 24185 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
24186 | return resultobj; |
24187 | fail: | |
24188 | return NULL; | |
24189 | } | |
24190 | ||
24191 | ||
24192 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24193 | PyObject *resultobj; | |
24194 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24195 | wxString result; | |
24196 | PyObject * obj0 = 0 ; | |
24197 | char *kwnames[] = { | |
24198 | (char *) "self", NULL | |
24199 | }; | |
24200 | ||
24201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24204 | { |
24205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24206 | result = ((wxDataFormat const *)arg1)->GetId(); | |
24207 | ||
24208 | wxPyEndAllowThreads(__tstate); | |
24209 | if (PyErr_Occurred()) SWIG_fail; | |
24210 | } | |
24211 | { | |
24212 | #if wxUSE_UNICODE | |
24213 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24214 | #else | |
24215 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24216 | #endif | |
24217 | } | |
24218 | return resultobj; | |
24219 | fail: | |
24220 | return NULL; | |
24221 | } | |
24222 | ||
24223 | ||
24224 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24225 | PyObject *resultobj; | |
24226 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24227 | wxString *arg2 = 0 ; | |
e811c8ce | 24228 | bool temp2 = False ; |
d14a1e28 RD |
24229 | PyObject * obj0 = 0 ; |
24230 | PyObject * obj1 = 0 ; | |
24231 | char *kwnames[] = { | |
24232 | (char *) "self",(char *) "format", NULL | |
24233 | }; | |
24234 | ||
24235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24238 | { |
24239 | arg2 = wxString_in_helper(obj1); | |
24240 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24241 | temp2 = True; |
d14a1e28 RD |
24242 | } |
24243 | { | |
24244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24245 | (arg1)->SetId((wxString const &)*arg2); | |
24246 | ||
24247 | wxPyEndAllowThreads(__tstate); | |
24248 | if (PyErr_Occurred()) SWIG_fail; | |
24249 | } | |
24250 | Py_INCREF(Py_None); resultobj = Py_None; | |
24251 | { | |
24252 | if (temp2) | |
24253 | delete arg2; | |
24254 | } | |
24255 | return resultobj; | |
24256 | fail: | |
24257 | { | |
24258 | if (temp2) | |
24259 | delete arg2; | |
24260 | } | |
24261 | return NULL; | |
24262 | } | |
24263 | ||
24264 | ||
24265 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
24266 | PyObject *obj; | |
24267 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24268 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
24269 | Py_INCREF(obj); | |
24270 | return Py_BuildValue((char *)""); | |
24271 | } | |
24272 | static int _wrap_FormatInvalid_set(PyObject *_val) { | |
24273 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); | |
24274 | return 1; | |
24275 | } | |
24276 | ||
24277 | ||
24278 | static PyObject *_wrap_FormatInvalid_get() { | |
24279 | PyObject *pyobj; | |
24280 | ||
15afbcd0 | 24281 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); |
d14a1e28 RD |
24282 | return pyobj; |
24283 | } | |
24284 | ||
24285 | ||
24286 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24287 | PyObject *resultobj; | |
24288 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24289 | PyObject * obj0 = 0 ; | |
24290 | char *kwnames[] = { | |
24291 | (char *) "self", NULL | |
24292 | }; | |
24293 | ||
24294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24297 | { |
24298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24299 | delete arg1; | |
24300 | ||
24301 | wxPyEndAllowThreads(__tstate); | |
24302 | if (PyErr_Occurred()) SWIG_fail; | |
24303 | } | |
24304 | Py_INCREF(Py_None); resultobj = Py_None; | |
24305 | return resultobj; | |
24306 | fail: | |
24307 | return NULL; | |
24308 | } | |
24309 | ||
24310 | ||
24311 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24312 | PyObject *resultobj; | |
24313 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24314 | int arg2 = (int) wxDataObject::Get ; | |
24315 | SwigValueWrapper< wxDataFormat > result; | |
24316 | PyObject * obj0 = 0 ; | |
994141e6 | 24317 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24318 | char *kwnames[] = { |
24319 | (char *) "self",(char *) "dir", NULL | |
24320 | }; | |
24321 | ||
994141e6 | 24322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24325 | if (obj1) { |
15afbcd0 RD |
24326 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); |
24327 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24328 | } |
d14a1e28 RD |
24329 | { |
24330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24331 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
24332 | ||
24333 | wxPyEndAllowThreads(__tstate); | |
24334 | if (PyErr_Occurred()) SWIG_fail; | |
24335 | } | |
24336 | { | |
24337 | wxDataFormat * resultptr; | |
24338 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
15afbcd0 | 24339 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
24340 | } |
24341 | return resultobj; | |
24342 | fail: | |
24343 | return NULL; | |
24344 | } | |
24345 | ||
24346 | ||
24347 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24348 | PyObject *resultobj; | |
24349 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24350 | int arg2 = (int) wxDataObject::Get ; | |
24351 | size_t result; | |
24352 | PyObject * obj0 = 0 ; | |
994141e6 | 24353 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24354 | char *kwnames[] = { |
24355 | (char *) "self",(char *) "dir", NULL | |
24356 | }; | |
24357 | ||
994141e6 | 24358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24361 | if (obj1) { |
15afbcd0 RD |
24362 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); |
24363 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24364 | } |
d14a1e28 RD |
24365 | { |
24366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24367 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
24368 | ||
24369 | wxPyEndAllowThreads(__tstate); | |
24370 | if (PyErr_Occurred()) SWIG_fail; | |
24371 | } | |
15afbcd0 | 24372 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24373 | return resultobj; |
24374 | fail: | |
24375 | return NULL; | |
24376 | } | |
24377 | ||
24378 | ||
24379 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24380 | PyObject *resultobj; | |
24381 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24382 | wxDataFormat *arg2 = 0 ; | |
24383 | int arg3 = (int) wxDataObject::Get ; | |
24384 | bool result; | |
24385 | PyObject * obj0 = 0 ; | |
24386 | PyObject * obj1 = 0 ; | |
994141e6 | 24387 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24388 | char *kwnames[] = { |
24389 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
24390 | }; | |
24391 | ||
994141e6 | 24392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24395 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24396 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24397 | SWIG_fail; | |
d14a1e28 | 24398 | if (arg2 == NULL) { |
15afbcd0 RD |
24399 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24400 | SWIG_fail; | |
d14a1e28 | 24401 | } |
994141e6 | 24402 | if (obj2) { |
15afbcd0 RD |
24403 | arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); |
24404 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24405 | } |
d14a1e28 RD |
24406 | { |
24407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24408 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
24409 | ||
24410 | wxPyEndAllowThreads(__tstate); | |
24411 | if (PyErr_Occurred()) SWIG_fail; | |
24412 | } | |
4f89f6a3 RD |
24413 | { |
24414 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24415 | } | |
d14a1e28 RD |
24416 | return resultobj; |
24417 | fail: | |
24418 | return NULL; | |
24419 | } | |
24420 | ||
24421 | ||
24422 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24423 | PyObject *resultobj; | |
24424 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24425 | wxDataFormat *arg2 = 0 ; | |
24426 | size_t result; | |
24427 | PyObject * obj0 = 0 ; | |
24428 | PyObject * obj1 = 0 ; | |
24429 | char *kwnames[] = { | |
24430 | (char *) "self",(char *) "format", NULL | |
24431 | }; | |
24432 | ||
24433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24436 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24437 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24438 | SWIG_fail; | |
d14a1e28 | 24439 | if (arg2 == NULL) { |
15afbcd0 RD |
24440 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24441 | SWIG_fail; | |
d14a1e28 RD |
24442 | } |
24443 | { | |
24444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24445 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
24446 | ||
24447 | wxPyEndAllowThreads(__tstate); | |
24448 | if (PyErr_Occurred()) SWIG_fail; | |
24449 | } | |
15afbcd0 | 24450 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24451 | return resultobj; |
24452 | fail: | |
24453 | return NULL; | |
24454 | } | |
24455 | ||
24456 | ||
24457 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24458 | PyObject *resultobj; | |
24459 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24460 | wxDataFormat *arg2 = (wxDataFormat *) 0 ; | |
24461 | int arg3 = (int) wxDataObject::Get ; | |
24462 | PyObject * obj0 = 0 ; | |
24463 | PyObject * obj1 = 0 ; | |
994141e6 | 24464 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24465 | char *kwnames[] = { |
24466 | (char *) "self",(char *) "formats",(char *) "dir", NULL | |
24467 | }; | |
24468 | ||
994141e6 | 24469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24472 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24474 | if (obj2) { |
15afbcd0 RD |
24475 | arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); |
24476 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24477 | } |
d14a1e28 RD |
24478 | { |
24479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24480 | ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3); | |
24481 | ||
24482 | wxPyEndAllowThreads(__tstate); | |
24483 | if (PyErr_Occurred()) SWIG_fail; | |
24484 | } | |
24485 | Py_INCREF(Py_None); resultobj = Py_None; | |
24486 | return resultobj; | |
24487 | fail: | |
24488 | return NULL; | |
24489 | } | |
24490 | ||
24491 | ||
24492 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24493 | PyObject *resultobj; | |
24494 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24495 | wxDataFormat *arg2 = 0 ; | |
24496 | void *arg3 = (void *) 0 ; | |
24497 | bool result; | |
24498 | PyObject * obj0 = 0 ; | |
24499 | PyObject * obj1 = 0 ; | |
24500 | PyObject * obj2 = 0 ; | |
24501 | char *kwnames[] = { | |
24502 | (char *) "self",(char *) "format",(char *) "buf", NULL | |
24503 | }; | |
24504 | ||
24505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
24506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24508 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24509 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24510 | SWIG_fail; | |
d14a1e28 | 24511 | if (arg2 == NULL) { |
15afbcd0 RD |
24512 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24513 | SWIG_fail; | |
d14a1e28 | 24514 | } |
15afbcd0 | 24515 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
24516 | { |
24517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24518 | result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3); | |
24519 | ||
24520 | wxPyEndAllowThreads(__tstate); | |
24521 | if (PyErr_Occurred()) SWIG_fail; | |
24522 | } | |
4f89f6a3 RD |
24523 | { |
24524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24525 | } | |
d14a1e28 RD |
24526 | return resultobj; |
24527 | fail: | |
24528 | return NULL; | |
24529 | } | |
24530 | ||
24531 | ||
24532 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24533 | PyObject *resultobj; | |
24534 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24535 | wxDataFormat *arg2 = 0 ; | |
24536 | size_t arg3 ; | |
24537 | void *arg4 = (void *) 0 ; | |
24538 | bool result; | |
24539 | PyObject * obj0 = 0 ; | |
24540 | PyObject * obj1 = 0 ; | |
24541 | PyObject * obj2 = 0 ; | |
24542 | PyObject * obj3 = 0 ; | |
24543 | char *kwnames[] = { | |
24544 | (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL | |
24545 | }; | |
24546 | ||
24547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
24548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24550 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24551 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24552 | SWIG_fail; | |
d14a1e28 | 24553 | if (arg2 == NULL) { |
15afbcd0 RD |
24554 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24555 | SWIG_fail; | |
a41e16b6 | 24556 | } |
15afbcd0 RD |
24557 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
24558 | if (PyErr_Occurred()) SWIG_fail; | |
24559 | if ((SWIG_ConvertPtr(obj3,&arg4,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24560 | { |
24561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24562 | result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4); | |
24563 | ||
24564 | wxPyEndAllowThreads(__tstate); | |
24565 | if (PyErr_Occurred()) SWIG_fail; | |
24566 | } | |
4f89f6a3 RD |
24567 | { |
24568 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24569 | } | |
d14a1e28 RD |
24570 | return resultobj; |
24571 | fail: | |
24572 | return NULL; | |
24573 | } | |
24574 | ||
24575 | ||
24576 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
24577 | PyObject *obj; | |
24578 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24579 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
24580 | Py_INCREF(obj); | |
24581 | return Py_BuildValue((char *)""); | |
24582 | } | |
24583 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24584 | PyObject *resultobj; | |
24585 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24586 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24587 | wxDataObjectSimple *result; | |
24588 | PyObject * obj0 = 0 ; | |
24589 | char *kwnames[] = { | |
24590 | (char *) "format", NULL | |
24591 | }; | |
24592 | ||
24593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
24594 | if (obj0) { | |
15afbcd0 RD |
24595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24596 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24597 | SWIG_fail; | |
d14a1e28 | 24598 | if (arg1 == NULL) { |
15afbcd0 RD |
24599 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24600 | SWIG_fail; | |
d14a1e28 RD |
24601 | } |
24602 | } | |
24603 | { | |
24604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24605 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
24606 | ||
24607 | wxPyEndAllowThreads(__tstate); | |
24608 | if (PyErr_Occurred()) SWIG_fail; | |
24609 | } | |
15afbcd0 | 24610 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); |
d14a1e28 RD |
24611 | return resultobj; |
24612 | fail: | |
24613 | return NULL; | |
24614 | } | |
24615 | ||
24616 | ||
24617 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24618 | PyObject *resultobj; | |
24619 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24620 | wxDataFormat *result; | |
24621 | PyObject * obj0 = 0 ; | |
24622 | char *kwnames[] = { | |
24623 | (char *) "self", NULL | |
24624 | }; | |
24625 | ||
24626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, |
24628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24629 | { |
24630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24631 | { | |
24632 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
24633 | result = (wxDataFormat *) &_result_ref; | |
24634 | } | |
24635 | ||
24636 | wxPyEndAllowThreads(__tstate); | |
24637 | if (PyErr_Occurred()) SWIG_fail; | |
24638 | } | |
15afbcd0 | 24639 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); |
d14a1e28 RD |
24640 | return resultobj; |
24641 | fail: | |
24642 | return NULL; | |
24643 | } | |
24644 | ||
24645 | ||
24646 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24647 | PyObject *resultobj; | |
24648 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24649 | wxDataFormat *arg2 = 0 ; | |
24650 | PyObject * obj0 = 0 ; | |
24651 | PyObject * obj1 = 0 ; | |
24652 | char *kwnames[] = { | |
24653 | (char *) "self",(char *) "format", NULL | |
24654 | }; | |
24655 | ||
24656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, |
24658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24659 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24660 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24661 | SWIG_fail; | |
d14a1e28 | 24662 | if (arg2 == NULL) { |
15afbcd0 RD |
24663 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24664 | SWIG_fail; | |
d14a1e28 RD |
24665 | } |
24666 | { | |
24667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24668 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
24669 | ||
24670 | wxPyEndAllowThreads(__tstate); | |
24671 | if (PyErr_Occurred()) SWIG_fail; | |
24672 | } | |
24673 | Py_INCREF(Py_None); resultobj = Py_None; | |
24674 | return resultobj; | |
24675 | fail: | |
24676 | return NULL; | |
24677 | } | |
24678 | ||
24679 | ||
24680 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24681 | PyObject *obj; | |
24682 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24683 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
24684 | Py_INCREF(obj); | |
24685 | return Py_BuildValue((char *)""); | |
24686 | } | |
24687 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24688 | PyObject *resultobj; | |
24689 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24690 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24691 | wxPyDataObjectSimple *result; | |
24692 | PyObject * obj0 = 0 ; | |
24693 | char *kwnames[] = { | |
24694 | (char *) "format", NULL | |
24695 | }; | |
24696 | ||
24697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
24698 | if (obj0) { | |
15afbcd0 RD |
24699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24700 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24701 | SWIG_fail; | |
d14a1e28 | 24702 | if (arg1 == NULL) { |
15afbcd0 RD |
24703 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24704 | SWIG_fail; | |
d14a1e28 RD |
24705 | } |
24706 | } | |
24707 | { | |
24708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24709 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
24710 | ||
24711 | wxPyEndAllowThreads(__tstate); | |
24712 | if (PyErr_Occurred()) SWIG_fail; | |
24713 | } | |
15afbcd0 | 24714 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); |
d14a1e28 RD |
24715 | return resultobj; |
24716 | fail: | |
24717 | return NULL; | |
24718 | } | |
24719 | ||
24720 | ||
24721 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24722 | PyObject *resultobj; | |
24723 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
24724 | PyObject *arg2 = (PyObject *) 0 ; | |
24725 | PyObject *arg3 = (PyObject *) 0 ; | |
24726 | PyObject * obj0 = 0 ; | |
24727 | PyObject * obj1 = 0 ; | |
24728 | PyObject * obj2 = 0 ; | |
24729 | char *kwnames[] = { | |
24730 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24731 | }; | |
24732 | ||
24733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
24734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple, |
24735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24736 | arg2 = obj1; |
24737 | arg3 = obj2; | |
24738 | { | |
24739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24740 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24741 | ||
24742 | wxPyEndAllowThreads(__tstate); | |
24743 | if (PyErr_Occurred()) SWIG_fail; | |
24744 | } | |
24745 | Py_INCREF(Py_None); resultobj = Py_None; | |
24746 | return resultobj; | |
24747 | fail: | |
24748 | return NULL; | |
24749 | } | |
24750 | ||
24751 | ||
24752 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24753 | PyObject *obj; | |
24754 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24755 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
24756 | Py_INCREF(obj); | |
24757 | return Py_BuildValue((char *)""); | |
24758 | } | |
24759 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24760 | PyObject *resultobj; | |
24761 | wxDataObjectComposite *result; | |
24762 | char *kwnames[] = { | |
24763 | NULL | |
24764 | }; | |
24765 | ||
24766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
24767 | { | |
24768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24769 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
24770 | ||
24771 | wxPyEndAllowThreads(__tstate); | |
24772 | if (PyErr_Occurred()) SWIG_fail; | |
24773 | } | |
15afbcd0 | 24774 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); |
d14a1e28 RD |
24775 | return resultobj; |
24776 | fail: | |
24777 | return NULL; | |
24778 | } | |
24779 | ||
24780 | ||
24781 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24782 | PyObject *resultobj; | |
24783 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
24784 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
e811c8ce | 24785 | int arg3 = (int) False ; |
d14a1e28 RD |
24786 | PyObject * obj0 = 0 ; |
24787 | PyObject * obj1 = 0 ; | |
994141e6 | 24788 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24789 | char *kwnames[] = { |
24790 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
24791 | }; | |
24792 | ||
994141e6 | 24793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite, |
24795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24796 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple, | |
24797 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
994141e6 | 24798 | if (obj2) { |
15afbcd0 RD |
24799 | arg3 = (int) SWIG_AsInt(obj2); |
24800 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24801 | } |
d14a1e28 RD |
24802 | { |
24803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24804 | (arg1)->Add(arg2,arg3); | |
24805 | ||
24806 | wxPyEndAllowThreads(__tstate); | |
24807 | if (PyErr_Occurred()) SWIG_fail; | |
24808 | } | |
24809 | Py_INCREF(Py_None); resultobj = Py_None; | |
24810 | return resultobj; | |
24811 | fail: | |
24812 | return NULL; | |
24813 | } | |
24814 | ||
24815 | ||
24816 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
24817 | PyObject *obj; | |
24818 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24819 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
24820 | Py_INCREF(obj); | |
24821 | return Py_BuildValue((char *)""); | |
24822 | } | |
24823 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24824 | PyObject *resultobj; | |
24825 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24826 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24827 | wxTextDataObject *result; | |
e811c8ce | 24828 | bool temp1 = False ; |
d14a1e28 RD |
24829 | PyObject * obj0 = 0 ; |
24830 | char *kwnames[] = { | |
24831 | (char *) "text", NULL | |
24832 | }; | |
24833 | ||
24834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
24835 | if (obj0) { | |
24836 | { | |
24837 | arg1 = wxString_in_helper(obj0); | |
24838 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 24839 | temp1 = True; |
d14a1e28 RD |
24840 | } |
24841 | } | |
24842 | { | |
24843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24844 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
24845 | ||
24846 | wxPyEndAllowThreads(__tstate); | |
24847 | if (PyErr_Occurred()) SWIG_fail; | |
24848 | } | |
15afbcd0 | 24849 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); |
d14a1e28 RD |
24850 | { |
24851 | if (temp1) | |
24852 | delete arg1; | |
24853 | } | |
24854 | return resultobj; | |
24855 | fail: | |
24856 | { | |
24857 | if (temp1) | |
24858 | delete arg1; | |
24859 | } | |
24860 | return NULL; | |
24861 | } | |
24862 | ||
24863 | ||
24864 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24865 | PyObject *resultobj; | |
24866 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24867 | size_t result; | |
24868 | PyObject * obj0 = 0 ; | |
24869 | char *kwnames[] = { | |
24870 | (char *) "self", NULL | |
24871 | }; | |
24872 | ||
24873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
24875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24876 | { |
24877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24878 | result = (size_t)(arg1)->GetTextLength(); | |
24879 | ||
24880 | wxPyEndAllowThreads(__tstate); | |
24881 | if (PyErr_Occurred()) SWIG_fail; | |
24882 | } | |
15afbcd0 | 24883 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24884 | return resultobj; |
24885 | fail: | |
24886 | return NULL; | |
24887 | } | |
24888 | ||
24889 | ||
24890 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24891 | PyObject *resultobj; | |
24892 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24893 | wxString result; | |
24894 | PyObject * obj0 = 0 ; | |
24895 | char *kwnames[] = { | |
24896 | (char *) "self", NULL | |
24897 | }; | |
24898 | ||
24899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
24901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24902 | { |
24903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24904 | result = (arg1)->GetText(); | |
24905 | ||
24906 | wxPyEndAllowThreads(__tstate); | |
24907 | if (PyErr_Occurred()) SWIG_fail; | |
24908 | } | |
24909 | { | |
24910 | #if wxUSE_UNICODE | |
24911 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24912 | #else | |
24913 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24914 | #endif | |
24915 | } | |
24916 | return resultobj; | |
24917 | fail: | |
24918 | return NULL; | |
24919 | } | |
24920 | ||
24921 | ||
24922 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24923 | PyObject *resultobj; | |
24924 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24925 | wxString *arg2 = 0 ; | |
e811c8ce | 24926 | bool temp2 = False ; |
d14a1e28 RD |
24927 | PyObject * obj0 = 0 ; |
24928 | PyObject * obj1 = 0 ; | |
24929 | char *kwnames[] = { | |
24930 | (char *) "self",(char *) "text", NULL | |
24931 | }; | |
24932 | ||
24933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
24935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24936 | { |
24937 | arg2 = wxString_in_helper(obj1); | |
24938 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24939 | temp2 = True; |
d14a1e28 RD |
24940 | } |
24941 | { | |
24942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24943 | (arg1)->SetText((wxString const &)*arg2); | |
24944 | ||
24945 | wxPyEndAllowThreads(__tstate); | |
24946 | if (PyErr_Occurred()) SWIG_fail; | |
24947 | } | |
24948 | Py_INCREF(Py_None); resultobj = Py_None; | |
24949 | { | |
24950 | if (temp2) | |
24951 | delete arg2; | |
24952 | } | |
24953 | return resultobj; | |
24954 | fail: | |
24955 | { | |
24956 | if (temp2) | |
24957 | delete arg2; | |
24958 | } | |
24959 | return NULL; | |
24960 | } | |
24961 | ||
24962 | ||
24963 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
24964 | PyObject *obj; | |
24965 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24966 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
24967 | Py_INCREF(obj); | |
24968 | return Py_BuildValue((char *)""); | |
24969 | } | |
24970 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24971 | PyObject *resultobj; | |
24972 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24973 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24974 | wxPyTextDataObject *result; | |
e811c8ce | 24975 | bool temp1 = False ; |
d14a1e28 RD |
24976 | PyObject * obj0 = 0 ; |
24977 | char *kwnames[] = { | |
24978 | (char *) "text", NULL | |
24979 | }; | |
24980 | ||
24981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
24982 | if (obj0) { | |
24983 | { | |
24984 | arg1 = wxString_in_helper(obj0); | |
24985 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 24986 | temp1 = True; |
d14a1e28 RD |
24987 | } |
24988 | } | |
24989 | { | |
24990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24991 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
24992 | ||
24993 | wxPyEndAllowThreads(__tstate); | |
24994 | if (PyErr_Occurred()) SWIG_fail; | |
24995 | } | |
15afbcd0 | 24996 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); |
d14a1e28 RD |
24997 | { |
24998 | if (temp1) | |
24999 | delete arg1; | |
25000 | } | |
25001 | return resultobj; | |
25002 | fail: | |
25003 | { | |
25004 | if (temp1) | |
25005 | delete arg1; | |
25006 | } | |
25007 | return NULL; | |
25008 | } | |
25009 | ||
25010 | ||
25011 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25012 | PyObject *resultobj; | |
25013 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
25014 | PyObject *arg2 = (PyObject *) 0 ; | |
25015 | PyObject *arg3 = (PyObject *) 0 ; | |
25016 | PyObject * obj0 = 0 ; | |
25017 | PyObject * obj1 = 0 ; | |
25018 | PyObject * obj2 = 0 ; | |
25019 | char *kwnames[] = { | |
25020 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25021 | }; | |
25022 | ||
25023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject, |
25025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25026 | arg2 = obj1; |
25027 | arg3 = obj2; | |
25028 | { | |
25029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25030 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25031 | ||
25032 | wxPyEndAllowThreads(__tstate); | |
25033 | if (PyErr_Occurred()) SWIG_fail; | |
25034 | } | |
25035 | Py_INCREF(Py_None); resultobj = Py_None; | |
25036 | return resultobj; | |
25037 | fail: | |
25038 | return NULL; | |
25039 | } | |
25040 | ||
25041 | ||
25042 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
25043 | PyObject *obj; | |
25044 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25045 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
25046 | Py_INCREF(obj); | |
25047 | return Py_BuildValue((char *)""); | |
25048 | } | |
25049 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25050 | PyObject *resultobj; | |
25051 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25052 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25053 | wxBitmapDataObject *result; | |
25054 | PyObject * obj0 = 0 ; | |
25055 | char *kwnames[] = { | |
25056 | (char *) "bitmap", NULL | |
25057 | }; | |
25058 | ||
25059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
25060 | if (obj0) { | |
15afbcd0 RD |
25061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
25062 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25063 | SWIG_fail; | |
d14a1e28 | 25064 | if (arg1 == NULL) { |
15afbcd0 RD |
25065 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25066 | SWIG_fail; | |
d14a1e28 RD |
25067 | } |
25068 | } | |
25069 | { | |
25070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25071 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
25072 | ||
25073 | wxPyEndAllowThreads(__tstate); | |
25074 | if (PyErr_Occurred()) SWIG_fail; | |
25075 | } | |
15afbcd0 | 25076 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); |
d14a1e28 RD |
25077 | return resultobj; |
25078 | fail: | |
25079 | return NULL; | |
25080 | } | |
25081 | ||
25082 | ||
25083 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25084 | PyObject *resultobj; | |
25085 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25086 | wxBitmap result; | |
25087 | PyObject * obj0 = 0 ; | |
25088 | char *kwnames[] = { | |
25089 | (char *) "self", NULL | |
25090 | }; | |
25091 | ||
25092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, |
25094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25095 | { |
25096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25097 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
25098 | ||
25099 | wxPyEndAllowThreads(__tstate); | |
25100 | if (PyErr_Occurred()) SWIG_fail; | |
25101 | } | |
25102 | { | |
25103 | wxBitmap * resultptr; | |
25104 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 25105 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
25106 | } |
25107 | return resultobj; | |
25108 | fail: | |
25109 | return NULL; | |
25110 | } | |
25111 | ||
25112 | ||
25113 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25114 | PyObject *resultobj; | |
25115 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25116 | wxBitmap *arg2 = 0 ; | |
25117 | PyObject * obj0 = 0 ; | |
25118 | PyObject * obj1 = 0 ; | |
25119 | char *kwnames[] = { | |
25120 | (char *) "self",(char *) "bitmap", NULL | |
25121 | }; | |
25122 | ||
25123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, |
25125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25126 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
25127 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25128 | SWIG_fail; | |
d14a1e28 | 25129 | if (arg2 == NULL) { |
15afbcd0 RD |
25130 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25131 | SWIG_fail; | |
d14a1e28 RD |
25132 | } |
25133 | { | |
25134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25135 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
25136 | ||
25137 | wxPyEndAllowThreads(__tstate); | |
25138 | if (PyErr_Occurred()) SWIG_fail; | |
25139 | } | |
25140 | Py_INCREF(Py_None); resultobj = Py_None; | |
25141 | return resultobj; | |
25142 | fail: | |
25143 | return NULL; | |
25144 | } | |
25145 | ||
25146 | ||
25147 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25148 | PyObject *obj; | |
25149 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25150 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
25151 | Py_INCREF(obj); | |
25152 | return Py_BuildValue((char *)""); | |
25153 | } | |
25154 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25155 | PyObject *resultobj; | |
25156 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25157 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25158 | wxPyBitmapDataObject *result; | |
25159 | PyObject * obj0 = 0 ; | |
25160 | char *kwnames[] = { | |
25161 | (char *) "bitmap", NULL | |
25162 | }; | |
25163 | ||
25164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
25165 | if (obj0) { | |
15afbcd0 RD |
25166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
25167 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25168 | SWIG_fail; | |
d14a1e28 | 25169 | if (arg1 == NULL) { |
15afbcd0 RD |
25170 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25171 | SWIG_fail; | |
d14a1e28 RD |
25172 | } |
25173 | } | |
25174 | { | |
25175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25176 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
25177 | ||
25178 | wxPyEndAllowThreads(__tstate); | |
25179 | if (PyErr_Occurred()) SWIG_fail; | |
25180 | } | |
15afbcd0 | 25181 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); |
d14a1e28 RD |
25182 | return resultobj; |
25183 | fail: | |
25184 | return NULL; | |
25185 | } | |
25186 | ||
25187 | ||
25188 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25189 | PyObject *resultobj; | |
25190 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
25191 | PyObject *arg2 = (PyObject *) 0 ; | |
25192 | PyObject *arg3 = (PyObject *) 0 ; | |
25193 | PyObject * obj0 = 0 ; | |
25194 | PyObject * obj1 = 0 ; | |
25195 | PyObject * obj2 = 0 ; | |
25196 | char *kwnames[] = { | |
25197 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25198 | }; | |
25199 | ||
25200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject, |
25202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25203 | arg2 = obj1; |
25204 | arg3 = obj2; | |
25205 | { | |
25206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25207 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25208 | ||
25209 | wxPyEndAllowThreads(__tstate); | |
25210 | if (PyErr_Occurred()) SWIG_fail; | |
25211 | } | |
25212 | Py_INCREF(Py_None); resultobj = Py_None; | |
25213 | return resultobj; | |
25214 | fail: | |
25215 | return NULL; | |
25216 | } | |
25217 | ||
25218 | ||
25219 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25220 | PyObject *obj; | |
25221 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25222 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
25223 | Py_INCREF(obj); | |
25224 | return Py_BuildValue((char *)""); | |
25225 | } | |
25226 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25227 | PyObject *resultobj; | |
25228 | wxFileDataObject *result; | |
25229 | char *kwnames[] = { | |
25230 | NULL | |
25231 | }; | |
25232 | ||
25233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
25234 | { | |
25235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25236 | result = (wxFileDataObject *)new wxFileDataObject(); | |
25237 | ||
25238 | wxPyEndAllowThreads(__tstate); | |
25239 | if (PyErr_Occurred()) SWIG_fail; | |
25240 | } | |
15afbcd0 | 25241 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); |
d14a1e28 RD |
25242 | return resultobj; |
25243 | fail: | |
25244 | return NULL; | |
25245 | } | |
25246 | ||
25247 | ||
25248 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25249 | PyObject *resultobj; | |
25250 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25251 | wxArrayString *result; | |
25252 | PyObject * obj0 = 0 ; | |
25253 | char *kwnames[] = { | |
25254 | (char *) "self", NULL | |
25255 | }; | |
25256 | ||
25257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, |
25259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25260 | { |
25261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25262 | { | |
25263 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
25264 | result = (wxArrayString *) &_result_ref; | |
25265 | } | |
25266 | ||
25267 | wxPyEndAllowThreads(__tstate); | |
25268 | if (PyErr_Occurred()) SWIG_fail; | |
25269 | } | |
25270 | { | |
25271 | resultobj = wxArrayString2PyList_helper(*result); | |
25272 | } | |
25273 | return resultobj; | |
25274 | fail: | |
25275 | return NULL; | |
25276 | } | |
25277 | ||
25278 | ||
15afbcd0 RD |
25279 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
25280 | PyObject *resultobj; | |
25281 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25282 | wxString *arg2 = 0 ; | |
25283 | bool temp2 = False ; | |
25284 | PyObject * obj0 = 0 ; | |
25285 | PyObject * obj1 = 0 ; | |
25286 | char *kwnames[] = { | |
25287 | (char *) "self",(char *) "filename", NULL | |
25288 | }; | |
25289 | ||
25290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
25291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25293 | { | |
25294 | arg2 = wxString_in_helper(obj1); | |
25295 | if (arg2 == NULL) SWIG_fail; | |
25296 | temp2 = True; | |
25297 | } | |
25298 | { | |
25299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25300 | (arg1)->AddFile((wxString const &)*arg2); | |
25301 | ||
25302 | wxPyEndAllowThreads(__tstate); | |
25303 | if (PyErr_Occurred()) SWIG_fail; | |
25304 | } | |
25305 | Py_INCREF(Py_None); resultobj = Py_None; | |
25306 | { | |
25307 | if (temp2) | |
25308 | delete arg2; | |
25309 | } | |
25310 | return resultobj; | |
25311 | fail: | |
25312 | { | |
25313 | if (temp2) | |
25314 | delete arg2; | |
25315 | } | |
25316 | return NULL; | |
25317 | } | |
25318 | ||
25319 | ||
d14a1e28 RD |
25320 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { |
25321 | PyObject *obj; | |
25322 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25323 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
25324 | Py_INCREF(obj); | |
25325 | return Py_BuildValue((char *)""); | |
25326 | } | |
25327 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25328 | PyObject *resultobj; | |
25329 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25330 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25331 | wxCustomDataObject *result; | |
25332 | PyObject * obj0 = 0 ; | |
25333 | char *kwnames[] = { | |
25334 | (char *) "format", NULL | |
25335 | }; | |
25336 | ||
25337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
25338 | if (obj0) { | |
15afbcd0 RD |
25339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
25340 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25341 | SWIG_fail; | |
d14a1e28 | 25342 | if (arg1 == NULL) { |
15afbcd0 RD |
25343 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25344 | SWIG_fail; | |
d14a1e28 RD |
25345 | } |
25346 | } | |
25347 | { | |
25348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25349 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
25350 | ||
25351 | wxPyEndAllowThreads(__tstate); | |
25352 | if (PyErr_Occurred()) SWIG_fail; | |
25353 | } | |
15afbcd0 | 25354 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); |
d14a1e28 RD |
25355 | return resultobj; |
25356 | fail: | |
25357 | return NULL; | |
25358 | } | |
25359 | ||
25360 | ||
25361 | static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25362 | PyObject *resultobj; | |
25363 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25364 | PyObject *arg2 = (PyObject *) 0 ; | |
25365 | PyObject * obj0 = 0 ; | |
25366 | PyObject * obj1 = 0 ; | |
25367 | char *kwnames[] = { | |
25368 | (char *) "self",(char *) "data", NULL | |
25369 | }; | |
25370 | ||
25371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25374 | arg2 = obj1; |
25375 | { | |
25376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25377 | wxCustomDataObject_TakeData(arg1,arg2); | |
25378 | ||
25379 | wxPyEndAllowThreads(__tstate); | |
25380 | if (PyErr_Occurred()) SWIG_fail; | |
25381 | } | |
25382 | Py_INCREF(Py_None); resultobj = Py_None; | |
25383 | return resultobj; | |
25384 | fail: | |
25385 | return NULL; | |
25386 | } | |
25387 | ||
25388 | ||
25389 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25390 | PyObject *resultobj; | |
25391 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25392 | PyObject *arg2 = (PyObject *) 0 ; | |
25393 | bool result; | |
25394 | PyObject * obj0 = 0 ; | |
25395 | PyObject * obj1 = 0 ; | |
25396 | char *kwnames[] = { | |
25397 | (char *) "self",(char *) "data", NULL | |
25398 | }; | |
25399 | ||
25400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25403 | arg2 = obj1; |
25404 | { | |
25405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25406 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
25407 | ||
25408 | wxPyEndAllowThreads(__tstate); | |
25409 | if (PyErr_Occurred()) SWIG_fail; | |
25410 | } | |
4f89f6a3 RD |
25411 | { |
25412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25413 | } | |
d14a1e28 RD |
25414 | return resultobj; |
25415 | fail: | |
25416 | return NULL; | |
25417 | } | |
25418 | ||
25419 | ||
25420 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25421 | PyObject *resultobj; | |
25422 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25423 | size_t result; | |
25424 | PyObject * obj0 = 0 ; | |
25425 | char *kwnames[] = { | |
25426 | (char *) "self", NULL | |
25427 | }; | |
25428 | ||
25429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25432 | { |
25433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25434 | result = (size_t)(arg1)->GetSize(); | |
25435 | ||
25436 | wxPyEndAllowThreads(__tstate); | |
25437 | if (PyErr_Occurred()) SWIG_fail; | |
25438 | } | |
15afbcd0 | 25439 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
25440 | return resultobj; |
25441 | fail: | |
25442 | return NULL; | |
25443 | } | |
25444 | ||
25445 | ||
25446 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25447 | PyObject *resultobj; | |
25448 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25449 | PyObject *result; | |
25450 | PyObject * obj0 = 0 ; | |
25451 | char *kwnames[] = { | |
25452 | (char *) "self", NULL | |
25453 | }; | |
25454 | ||
25455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25458 | { |
25459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25460 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
25461 | ||
25462 | wxPyEndAllowThreads(__tstate); | |
25463 | if (PyErr_Occurred()) SWIG_fail; | |
25464 | } | |
25465 | resultobj = result; | |
25466 | return resultobj; | |
25467 | fail: | |
25468 | return NULL; | |
25469 | } | |
25470 | ||
25471 | ||
25472 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
25473 | PyObject *obj; | |
25474 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25475 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
25476 | Py_INCREF(obj); | |
25477 | return Py_BuildValue((char *)""); | |
25478 | } | |
25479 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25480 | PyObject *resultobj; | |
25481 | wxURLDataObject *result; | |
25482 | char *kwnames[] = { | |
25483 | NULL | |
25484 | }; | |
25485 | ||
25486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
25487 | { | |
25488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25489 | result = (wxURLDataObject *)new wxURLDataObject(); | |
25490 | ||
25491 | wxPyEndAllowThreads(__tstate); | |
25492 | if (PyErr_Occurred()) SWIG_fail; | |
25493 | } | |
15afbcd0 | 25494 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); |
d14a1e28 RD |
25495 | return resultobj; |
25496 | fail: | |
25497 | return NULL; | |
25498 | } | |
25499 | ||
25500 | ||
25501 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25502 | PyObject *resultobj; | |
25503 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25504 | wxString result; | |
25505 | PyObject * obj0 = 0 ; | |
25506 | char *kwnames[] = { | |
25507 | (char *) "self", NULL | |
25508 | }; | |
25509 | ||
25510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, |
25512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25513 | { |
25514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25515 | result = (arg1)->GetURL(); | |
25516 | ||
25517 | wxPyEndAllowThreads(__tstate); | |
25518 | if (PyErr_Occurred()) SWIG_fail; | |
25519 | } | |
25520 | { | |
25521 | #if wxUSE_UNICODE | |
25522 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25523 | #else | |
25524 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25525 | #endif | |
25526 | } | |
25527 | return resultobj; | |
25528 | fail: | |
25529 | return NULL; | |
25530 | } | |
25531 | ||
25532 | ||
25533 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25534 | PyObject *resultobj; | |
25535 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25536 | wxString *arg2 = 0 ; | |
e811c8ce | 25537 | bool temp2 = False ; |
d14a1e28 RD |
25538 | PyObject * obj0 = 0 ; |
25539 | PyObject * obj1 = 0 ; | |
25540 | char *kwnames[] = { | |
25541 | (char *) "self",(char *) "url", NULL | |
25542 | }; | |
25543 | ||
25544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, |
25546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25547 | { |
25548 | arg2 = wxString_in_helper(obj1); | |
25549 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 25550 | temp2 = True; |
d14a1e28 RD |
25551 | } |
25552 | { | |
25553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25554 | (arg1)->SetURL((wxString const &)*arg2); | |
25555 | ||
25556 | wxPyEndAllowThreads(__tstate); | |
25557 | if (PyErr_Occurred()) SWIG_fail; | |
25558 | } | |
25559 | Py_INCREF(Py_None); resultobj = Py_None; | |
25560 | { | |
25561 | if (temp2) | |
25562 | delete arg2; | |
25563 | } | |
25564 | return resultobj; | |
25565 | fail: | |
25566 | { | |
25567 | if (temp2) | |
25568 | delete arg2; | |
25569 | } | |
25570 | return NULL; | |
25571 | } | |
25572 | ||
25573 | ||
25574 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
25575 | PyObject *obj; | |
25576 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25577 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
25578 | Py_INCREF(obj); | |
25579 | return Py_BuildValue((char *)""); | |
25580 | } | |
25581 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25582 | PyObject *resultobj; | |
25583 | wxMetafileDataObject *result; | |
25584 | char *kwnames[] = { | |
25585 | NULL | |
25586 | }; | |
25587 | ||
25588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
25589 | { | |
25590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25591 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
25592 | ||
25593 | wxPyEndAllowThreads(__tstate); | |
25594 | if (PyErr_Occurred()) SWIG_fail; | |
25595 | } | |
15afbcd0 | 25596 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); |
d14a1e28 RD |
25597 | return resultobj; |
25598 | fail: | |
25599 | return NULL; | |
25600 | } | |
25601 | ||
25602 | ||
25603 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { | |
25604 | PyObject *obj; | |
25605 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25606 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
25607 | Py_INCREF(obj); | |
25608 | return Py_BuildValue((char *)""); | |
25609 | } | |
25610 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25611 | PyObject *resultobj; | |
25612 | int arg1 ; | |
25613 | bool result; | |
994141e6 | 25614 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
25615 | char *kwnames[] = { |
25616 | (char *) "res", NULL | |
25617 | }; | |
25618 | ||
994141e6 | 25619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
25620 | arg1 = (wxDragResult) SWIG_AsInt(obj0); |
25621 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25622 | { |
25623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25624 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
25625 | ||
25626 | wxPyEndAllowThreads(__tstate); | |
25627 | if (PyErr_Occurred()) SWIG_fail; | |
25628 | } | |
4f89f6a3 RD |
25629 | { |
25630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25631 | } | |
d14a1e28 RD |
25632 | return resultobj; |
25633 | fail: | |
25634 | return NULL; | |
25635 | } | |
25636 | ||
25637 | ||
25638 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25639 | PyObject *resultobj; | |
d1e20054 | 25640 | wxWindow *arg1 = (wxWindow *) 0 ; |
d14a1e28 RD |
25641 | wxIcon const &arg2_defvalue = wxNullIcon ; |
25642 | wxIcon *arg2 = (wxIcon *) &arg2_defvalue ; | |
25643 | wxIcon const &arg3_defvalue = wxNullIcon ; | |
25644 | wxIcon *arg3 = (wxIcon *) &arg3_defvalue ; | |
25645 | wxIcon const &arg4_defvalue = wxNullIcon ; | |
25646 | wxIcon *arg4 = (wxIcon *) &arg4_defvalue ; | |
25647 | wxPyDropSource *result; | |
25648 | PyObject * obj0 = 0 ; | |
25649 | PyObject * obj1 = 0 ; | |
25650 | PyObject * obj2 = 0 ; | |
25651 | PyObject * obj3 = 0 ; | |
25652 | char *kwnames[] = { | |
25653 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
25654 | }; | |
25655 | ||
d1e20054 | 25656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
25657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 25659 | if (obj1) { |
15afbcd0 RD |
25660 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, |
25661 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25662 | SWIG_fail; | |
d14a1e28 | 25663 | if (arg2 == NULL) { |
15afbcd0 RD |
25664 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25665 | SWIG_fail; | |
d14a1e28 RD |
25666 | } |
25667 | } | |
25668 | if (obj2) { | |
15afbcd0 RD |
25669 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIcon, |
25670 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25671 | SWIG_fail; | |
d14a1e28 | 25672 | if (arg3 == NULL) { |
15afbcd0 RD |
25673 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25674 | SWIG_fail; | |
d14a1e28 RD |
25675 | } |
25676 | } | |
25677 | if (obj3) { | |
15afbcd0 RD |
25678 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxIcon, |
25679 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25680 | SWIG_fail; | |
d14a1e28 | 25681 | if (arg4 == NULL) { |
15afbcd0 RD |
25682 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25683 | SWIG_fail; | |
d14a1e28 RD |
25684 | } |
25685 | } | |
25686 | { | |
25687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25688 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4); | |
25689 | ||
25690 | wxPyEndAllowThreads(__tstate); | |
25691 | if (PyErr_Occurred()) SWIG_fail; | |
25692 | } | |
15afbcd0 | 25693 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); |
d14a1e28 RD |
25694 | return resultobj; |
25695 | fail: | |
25696 | return NULL; | |
25697 | } | |
25698 | ||
25699 | ||
25700 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25701 | PyObject *resultobj; | |
25702 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25703 | PyObject *arg2 = (PyObject *) 0 ; | |
25704 | PyObject *arg3 = (PyObject *) 0 ; | |
25705 | int arg4 ; | |
25706 | PyObject * obj0 = 0 ; | |
25707 | PyObject * obj1 = 0 ; | |
25708 | PyObject * obj2 = 0 ; | |
994141e6 | 25709 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
25710 | char *kwnames[] = { |
25711 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
25712 | }; | |
25713 | ||
994141e6 | 25714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
25715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25717 | arg2 = obj1; |
25718 | arg3 = obj2; | |
15afbcd0 RD |
25719 | arg4 = (int) SWIG_AsInt(obj3); |
25720 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25721 | { |
25722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25723 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
25724 | ||
25725 | wxPyEndAllowThreads(__tstate); | |
25726 | if (PyErr_Occurred()) SWIG_fail; | |
25727 | } | |
25728 | Py_INCREF(Py_None); resultobj = Py_None; | |
25729 | return resultobj; | |
25730 | fail: | |
25731 | return NULL; | |
25732 | } | |
25733 | ||
25734 | ||
25735 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25736 | PyObject *resultobj; | |
25737 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25738 | PyObject * obj0 = 0 ; | |
25739 | char *kwnames[] = { | |
25740 | (char *) "self", NULL | |
25741 | }; | |
25742 | ||
25743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25746 | { |
25747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25748 | delete arg1; | |
25749 | ||
25750 | wxPyEndAllowThreads(__tstate); | |
25751 | if (PyErr_Occurred()) SWIG_fail; | |
25752 | } | |
25753 | Py_INCREF(Py_None); resultobj = Py_None; | |
25754 | return resultobj; | |
25755 | fail: | |
25756 | return NULL; | |
25757 | } | |
25758 | ||
25759 | ||
25760 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25761 | PyObject *resultobj; | |
25762 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25763 | wxDataObject *arg2 = 0 ; | |
25764 | PyObject * obj0 = 0 ; | |
25765 | PyObject * obj1 = 0 ; | |
25766 | char *kwnames[] = { | |
25767 | (char *) "self",(char *) "data", NULL | |
25768 | }; | |
25769 | ||
25770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25773 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
25774 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25775 | SWIG_fail; | |
d14a1e28 | 25776 | if (arg2 == NULL) { |
15afbcd0 RD |
25777 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25778 | SWIG_fail; | |
d14a1e28 RD |
25779 | } |
25780 | { | |
25781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25782 | (arg1)->SetData(*arg2); | |
25783 | ||
25784 | wxPyEndAllowThreads(__tstate); | |
25785 | if (PyErr_Occurred()) SWIG_fail; | |
25786 | } | |
25787 | Py_INCREF(Py_None); resultobj = Py_None; | |
25788 | return resultobj; | |
25789 | fail: | |
25790 | return NULL; | |
25791 | } | |
25792 | ||
25793 | ||
25794 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25795 | PyObject *resultobj; | |
25796 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25797 | wxDataObject *result; | |
25798 | PyObject * obj0 = 0 ; | |
25799 | char *kwnames[] = { | |
25800 | (char *) "self", NULL | |
25801 | }; | |
25802 | ||
25803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25806 | { |
25807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25808 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
25809 | ||
25810 | wxPyEndAllowThreads(__tstate); | |
25811 | if (PyErr_Occurred()) SWIG_fail; | |
25812 | } | |
15afbcd0 | 25813 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); |
d14a1e28 RD |
25814 | return resultobj; |
25815 | fail: | |
25816 | return NULL; | |
25817 | } | |
25818 | ||
25819 | ||
25820 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25821 | PyObject *resultobj; | |
25822 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25823 | int arg2 ; | |
25824 | wxCursor *arg3 = 0 ; | |
25825 | PyObject * obj0 = 0 ; | |
994141e6 | 25826 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25827 | PyObject * obj2 = 0 ; |
25828 | char *kwnames[] = { | |
25829 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
25830 | }; | |
25831 | ||
994141e6 | 25832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
25833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25835 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
25836 | if (PyErr_Occurred()) SWIG_fail; | |
25837 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
25838 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25839 | SWIG_fail; | |
d14a1e28 | 25840 | if (arg3 == NULL) { |
15afbcd0 RD |
25841 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25842 | SWIG_fail; | |
d14a1e28 RD |
25843 | } |
25844 | { | |
25845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25846 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
25847 | ||
25848 | wxPyEndAllowThreads(__tstate); | |
25849 | if (PyErr_Occurred()) SWIG_fail; | |
25850 | } | |
25851 | Py_INCREF(Py_None); resultobj = Py_None; | |
25852 | return resultobj; | |
25853 | fail: | |
25854 | return NULL; | |
25855 | } | |
25856 | ||
25857 | ||
25858 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25859 | PyObject *resultobj; | |
25860 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25861 | int arg2 = (int) wxDrag_CopyOnly ; | |
25862 | int result; | |
25863 | PyObject * obj0 = 0 ; | |
994141e6 | 25864 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25865 | char *kwnames[] = { |
25866 | (char *) "self",(char *) "flags", NULL | |
25867 | }; | |
25868 | ||
994141e6 | 25869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
25870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 25872 | if (obj1) { |
15afbcd0 RD |
25873 | arg2 = (int) SWIG_AsInt(obj1); |
25874 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25875 | } |
d14a1e28 RD |
25876 | { |
25877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25878 | result = (int)(arg1)->DoDragDrop(arg2); | |
25879 | ||
25880 | wxPyEndAllowThreads(__tstate); | |
25881 | if (PyErr_Occurred()) SWIG_fail; | |
25882 | } | |
15afbcd0 | 25883 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25884 | return resultobj; |
25885 | fail: | |
25886 | return NULL; | |
25887 | } | |
25888 | ||
25889 | ||
25890 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25891 | PyObject *resultobj; | |
25892 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25893 | int arg2 ; | |
25894 | bool result; | |
25895 | PyObject * obj0 = 0 ; | |
994141e6 | 25896 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25897 | char *kwnames[] = { |
25898 | (char *) "self",(char *) "effect", NULL | |
25899 | }; | |
25900 | ||
994141e6 | 25901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
25902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25904 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
25905 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25906 | { |
25907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25908 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
25909 | ||
25910 | wxPyEndAllowThreads(__tstate); | |
25911 | if (PyErr_Occurred()) SWIG_fail; | |
25912 | } | |
4f89f6a3 RD |
25913 | { |
25914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25915 | } | |
d14a1e28 RD |
25916 | return resultobj; |
25917 | fail: | |
25918 | return NULL; | |
25919 | } | |
25920 | ||
25921 | ||
25922 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
25923 | PyObject *obj; | |
25924 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25925 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
25926 | Py_INCREF(obj); | |
25927 | return Py_BuildValue((char *)""); | |
25928 | } | |
15afbcd0 | 25929 | static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25930 | PyObject *resultobj; |
25931 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
25932 | wxPyDropTarget *result; | |
25933 | PyObject * obj0 = 0 ; | |
25934 | char *kwnames[] = { | |
25935 | (char *) "dataObject", NULL | |
25936 | }; | |
25937 | ||
15afbcd0 | 25938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; |
d14a1e28 | 25939 | if (obj0) { |
15afbcd0 RD |
25940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
25941 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
25942 | } |
25943 | { | |
25944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25945 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
25946 | ||
25947 | wxPyEndAllowThreads(__tstate); | |
25948 | if (PyErr_Occurred()) SWIG_fail; | |
25949 | } | |
15afbcd0 | 25950 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); |
d14a1e28 RD |
25951 | return resultobj; |
25952 | fail: | |
25953 | return NULL; | |
25954 | } | |
25955 | ||
25956 | ||
25957 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25958 | PyObject *resultobj; | |
25959 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25960 | PyObject *arg2 = (PyObject *) 0 ; | |
25961 | PyObject *arg3 = (PyObject *) 0 ; | |
25962 | PyObject * obj0 = 0 ; | |
25963 | PyObject * obj1 = 0 ; | |
25964 | PyObject * obj2 = 0 ; | |
25965 | char *kwnames[] = { | |
25966 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25967 | }; | |
25968 | ||
25969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
25971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25972 | arg2 = obj1; |
25973 | arg3 = obj2; | |
25974 | { | |
25975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25976 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25977 | ||
25978 | wxPyEndAllowThreads(__tstate); | |
25979 | if (PyErr_Occurred()) SWIG_fail; | |
25980 | } | |
25981 | Py_INCREF(Py_None); resultobj = Py_None; | |
25982 | return resultobj; | |
25983 | fail: | |
25984 | return NULL; | |
25985 | } | |
25986 | ||
25987 | ||
25988 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25989 | PyObject *resultobj; | |
25990 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25991 | PyObject * obj0 = 0 ; | |
25992 | char *kwnames[] = { | |
25993 | (char *) "self", NULL | |
25994 | }; | |
25995 | ||
25996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 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 | delete arg1; | |
26002 | ||
26003 | wxPyEndAllowThreads(__tstate); | |
26004 | if (PyErr_Occurred()) SWIG_fail; | |
26005 | } | |
26006 | Py_INCREF(Py_None); resultobj = Py_None; | |
26007 | return resultobj; | |
26008 | fail: | |
26009 | return NULL; | |
26010 | } | |
26011 | ||
26012 | ||
26013 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26014 | PyObject *resultobj; | |
26015 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26016 | wxDataObject *result; | |
26017 | PyObject * obj0 = 0 ; | |
26018 | char *kwnames[] = { | |
26019 | (char *) "self", NULL | |
26020 | }; | |
26021 | ||
26022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26025 | { |
26026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26027 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26028 | ||
26029 | wxPyEndAllowThreads(__tstate); | |
26030 | if (PyErr_Occurred()) SWIG_fail; | |
26031 | } | |
15afbcd0 | 26032 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); |
d14a1e28 RD |
26033 | return resultobj; |
26034 | fail: | |
26035 | return NULL; | |
26036 | } | |
26037 | ||
26038 | ||
26039 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26040 | PyObject *resultobj; | |
26041 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26042 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26043 | PyObject * obj0 = 0 ; | |
26044 | PyObject * obj1 = 0 ; | |
26045 | char *kwnames[] = { | |
26046 | (char *) "self",(char *) "dataObject", NULL | |
26047 | }; | |
26048 | ||
26049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26052 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26053 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26054 | { |
26055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26056 | (arg1)->SetDataObject(arg2); | |
26057 | ||
26058 | wxPyEndAllowThreads(__tstate); | |
26059 | if (PyErr_Occurred()) SWIG_fail; | |
26060 | } | |
26061 | Py_INCREF(Py_None); resultobj = Py_None; | |
26062 | return resultobj; | |
26063 | fail: | |
26064 | return NULL; | |
26065 | } | |
26066 | ||
26067 | ||
26068 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26069 | PyObject *resultobj; | |
26070 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
26071 | int arg2 ; |
26072 | int arg3 ; | |
d14a1e28 RD |
26073 | int arg4 ; |
26074 | int result; | |
26075 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26076 | PyObject * obj1 = 0 ; |
26077 | PyObject * obj2 = 0 ; | |
26078 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26079 | char *kwnames[] = { |
26080 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26081 | }; | |
26082 | ||
994141e6 | 26083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26086 | arg2 = (int) SWIG_AsInt(obj1); | |
26087 | if (PyErr_Occurred()) SWIG_fail; | |
26088 | arg3 = (int) SWIG_AsInt(obj2); | |
26089 | if (PyErr_Occurred()) SWIG_fail; | |
26090 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26091 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26092 | { |
26093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26094 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26095 | ||
26096 | wxPyEndAllowThreads(__tstate); | |
26097 | if (PyErr_Occurred()) SWIG_fail; | |
26098 | } | |
15afbcd0 | 26099 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26100 | return resultobj; |
26101 | fail: | |
26102 | return NULL; | |
26103 | } | |
26104 | ||
26105 | ||
26106 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26107 | PyObject *resultobj; | |
26108 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
26109 | int arg2 ; |
26110 | int arg3 ; | |
d14a1e28 RD |
26111 | int arg4 ; |
26112 | int result; | |
26113 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26114 | PyObject * obj1 = 0 ; |
26115 | PyObject * obj2 = 0 ; | |
26116 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26117 | char *kwnames[] = { |
26118 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26119 | }; | |
26120 | ||
994141e6 | 26121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26124 | arg2 = (int) SWIG_AsInt(obj1); | |
26125 | if (PyErr_Occurred()) SWIG_fail; | |
26126 | arg3 = (int) SWIG_AsInt(obj2); | |
26127 | if (PyErr_Occurred()) SWIG_fail; | |
26128 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26129 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26130 | { |
26131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26132 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26133 | ||
26134 | wxPyEndAllowThreads(__tstate); | |
26135 | if (PyErr_Occurred()) SWIG_fail; | |
26136 | } | |
15afbcd0 | 26137 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26138 | return resultobj; |
26139 | fail: | |
26140 | return NULL; | |
26141 | } | |
26142 | ||
26143 | ||
26144 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26145 | PyObject *resultobj; | |
26146 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26147 | PyObject * obj0 = 0 ; | |
26148 | char *kwnames[] = { | |
26149 | (char *) "self", NULL | |
26150 | }; | |
26151 | ||
26152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26155 | { |
26156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26157 | (arg1)->base_OnLeave(); | |
26158 | ||
26159 | wxPyEndAllowThreads(__tstate); | |
26160 | if (PyErr_Occurred()) SWIG_fail; | |
26161 | } | |
26162 | Py_INCREF(Py_None); resultobj = Py_None; | |
26163 | return resultobj; | |
26164 | fail: | |
26165 | return NULL; | |
26166 | } | |
26167 | ||
26168 | ||
26169 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26170 | PyObject *resultobj; | |
26171 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
26172 | int arg2 ; |
26173 | int arg3 ; | |
d14a1e28 RD |
26174 | bool result; |
26175 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26176 | PyObject * obj1 = 0 ; |
26177 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26178 | char *kwnames[] = { |
26179 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26180 | }; | |
26181 | ||
994141e6 | 26182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26185 | arg2 = (int) SWIG_AsInt(obj1); | |
26186 | if (PyErr_Occurred()) SWIG_fail; | |
26187 | arg3 = (int) SWIG_AsInt(obj2); | |
26188 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26189 | { |
26190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26191 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26192 | ||
26193 | wxPyEndAllowThreads(__tstate); | |
26194 | if (PyErr_Occurred()) SWIG_fail; | |
26195 | } | |
4f89f6a3 RD |
26196 | { |
26197 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26198 | } | |
d14a1e28 RD |
26199 | return resultobj; |
26200 | fail: | |
26201 | return NULL; | |
26202 | } | |
26203 | ||
26204 | ||
26205 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26206 | PyObject *resultobj; | |
26207 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26208 | bool result; | |
26209 | PyObject * obj0 = 0 ; | |
26210 | char *kwnames[] = { | |
26211 | (char *) "self", NULL | |
26212 | }; | |
26213 | ||
26214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26217 | { |
26218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26219 | result = (bool)(arg1)->GetData(); | |
26220 | ||
26221 | wxPyEndAllowThreads(__tstate); | |
26222 | if (PyErr_Occurred()) SWIG_fail; | |
26223 | } | |
4f89f6a3 RD |
26224 | { |
26225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26226 | } | |
d14a1e28 RD |
26227 | return resultobj; |
26228 | fail: | |
26229 | return NULL; | |
26230 | } | |
26231 | ||
26232 | ||
26233 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
26234 | PyObject *obj; | |
26235 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26236 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
26237 | Py_INCREF(obj); | |
26238 | return Py_BuildValue((char *)""); | |
26239 | } | |
26240 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26241 | PyObject *resultobj; | |
26242 | wxPyTextDropTarget *result; | |
26243 | char *kwnames[] = { | |
26244 | NULL | |
26245 | }; | |
26246 | ||
26247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
26248 | { | |
26249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26250 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
26251 | ||
26252 | wxPyEndAllowThreads(__tstate); | |
26253 | if (PyErr_Occurred()) SWIG_fail; | |
26254 | } | |
15afbcd0 | 26255 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); |
d14a1e28 RD |
26256 | return resultobj; |
26257 | fail: | |
26258 | return NULL; | |
26259 | } | |
26260 | ||
26261 | ||
26262 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26263 | PyObject *resultobj; | |
26264 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26265 | PyObject *arg2 = (PyObject *) 0 ; | |
26266 | PyObject *arg3 = (PyObject *) 0 ; | |
26267 | PyObject * obj0 = 0 ; | |
26268 | PyObject * obj1 = 0 ; | |
26269 | PyObject * obj2 = 0 ; | |
26270 | char *kwnames[] = { | |
26271 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26272 | }; | |
26273 | ||
26274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26277 | arg2 = obj1; |
26278 | arg3 = obj2; | |
26279 | { | |
26280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26281 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26282 | ||
26283 | wxPyEndAllowThreads(__tstate); | |
26284 | if (PyErr_Occurred()) SWIG_fail; | |
26285 | } | |
26286 | Py_INCREF(Py_None); resultobj = Py_None; | |
26287 | return resultobj; | |
26288 | fail: | |
26289 | return NULL; | |
26290 | } | |
26291 | ||
26292 | ||
26293 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26294 | PyObject *resultobj; | |
26295 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26296 | int arg2 ; |
26297 | int arg3 ; | |
d14a1e28 RD |
26298 | int arg4 ; |
26299 | int result; | |
26300 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26301 | PyObject * obj1 = 0 ; |
26302 | PyObject * obj2 = 0 ; | |
26303 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26304 | char *kwnames[] = { |
26305 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26306 | }; | |
26307 | ||
994141e6 | 26308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26311 | arg2 = (int) SWIG_AsInt(obj1); | |
26312 | if (PyErr_Occurred()) SWIG_fail; | |
26313 | arg3 = (int) SWIG_AsInt(obj2); | |
26314 | if (PyErr_Occurred()) SWIG_fail; | |
26315 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26316 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26317 | { |
26318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26319 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26320 | ||
26321 | wxPyEndAllowThreads(__tstate); | |
26322 | if (PyErr_Occurred()) SWIG_fail; | |
26323 | } | |
15afbcd0 | 26324 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26325 | return resultobj; |
26326 | fail: | |
26327 | return NULL; | |
26328 | } | |
26329 | ||
26330 | ||
26331 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26332 | PyObject *resultobj; | |
26333 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26334 | int arg2 ; |
26335 | int arg3 ; | |
d14a1e28 RD |
26336 | int arg4 ; |
26337 | int result; | |
26338 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26339 | PyObject * obj1 = 0 ; |
26340 | PyObject * obj2 = 0 ; | |
26341 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26342 | char *kwnames[] = { |
26343 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26344 | }; | |
26345 | ||
994141e6 | 26346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26349 | arg2 = (int) SWIG_AsInt(obj1); | |
26350 | if (PyErr_Occurred()) SWIG_fail; | |
26351 | arg3 = (int) SWIG_AsInt(obj2); | |
26352 | if (PyErr_Occurred()) SWIG_fail; | |
26353 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26354 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26355 | { |
26356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26357 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26358 | ||
26359 | wxPyEndAllowThreads(__tstate); | |
26360 | if (PyErr_Occurred()) SWIG_fail; | |
26361 | } | |
15afbcd0 | 26362 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26363 | return resultobj; |
26364 | fail: | |
26365 | return NULL; | |
26366 | } | |
26367 | ||
26368 | ||
26369 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26370 | PyObject *resultobj; | |
26371 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26372 | PyObject * obj0 = 0 ; | |
26373 | char *kwnames[] = { | |
26374 | (char *) "self", NULL | |
26375 | }; | |
26376 | ||
26377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26380 | { |
26381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26382 | (arg1)->base_OnLeave(); | |
26383 | ||
26384 | wxPyEndAllowThreads(__tstate); | |
26385 | if (PyErr_Occurred()) SWIG_fail; | |
26386 | } | |
26387 | Py_INCREF(Py_None); resultobj = Py_None; | |
26388 | return resultobj; | |
26389 | fail: | |
26390 | return NULL; | |
26391 | } | |
26392 | ||
26393 | ||
26394 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26395 | PyObject *resultobj; | |
26396 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26397 | int arg2 ; |
26398 | int arg3 ; | |
d14a1e28 RD |
26399 | bool result; |
26400 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26401 | PyObject * obj1 = 0 ; |
26402 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26403 | char *kwnames[] = { |
26404 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26405 | }; | |
26406 | ||
994141e6 | 26407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26410 | arg2 = (int) SWIG_AsInt(obj1); | |
26411 | if (PyErr_Occurred()) SWIG_fail; | |
26412 | arg3 = (int) SWIG_AsInt(obj2); | |
26413 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26414 | { |
26415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26416 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26417 | ||
26418 | wxPyEndAllowThreads(__tstate); | |
26419 | if (PyErr_Occurred()) SWIG_fail; | |
26420 | } | |
4f89f6a3 RD |
26421 | { |
26422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26423 | } | |
d14a1e28 RD |
26424 | return resultobj; |
26425 | fail: | |
26426 | return NULL; | |
26427 | } | |
26428 | ||
26429 | ||
26430 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26431 | PyObject *resultobj; | |
26432 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26433 | int arg2 ; |
26434 | int arg3 ; | |
d14a1e28 RD |
26435 | int arg4 ; |
26436 | int result; | |
26437 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26438 | PyObject * obj1 = 0 ; |
26439 | PyObject * obj2 = 0 ; | |
26440 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26441 | char *kwnames[] = { |
26442 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26443 | }; | |
26444 | ||
994141e6 | 26445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26448 | arg2 = (int) SWIG_AsInt(obj1); | |
26449 | if (PyErr_Occurred()) SWIG_fail; | |
26450 | arg3 = (int) SWIG_AsInt(obj2); | |
26451 | if (PyErr_Occurred()) SWIG_fail; | |
26452 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26453 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26454 | { |
26455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26456 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26457 | ||
26458 | wxPyEndAllowThreads(__tstate); | |
26459 | if (PyErr_Occurred()) SWIG_fail; | |
26460 | } | |
15afbcd0 | 26461 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26462 | return resultobj; |
26463 | fail: | |
26464 | return NULL; | |
26465 | } | |
26466 | ||
26467 | ||
26468 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26469 | PyObject *obj; | |
26470 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26471 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
26472 | Py_INCREF(obj); | |
26473 | return Py_BuildValue((char *)""); | |
26474 | } | |
26475 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26476 | PyObject *resultobj; | |
26477 | wxPyFileDropTarget *result; | |
26478 | char *kwnames[] = { | |
26479 | NULL | |
26480 | }; | |
26481 | ||
26482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
26483 | { | |
26484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26485 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
26486 | ||
26487 | wxPyEndAllowThreads(__tstate); | |
26488 | if (PyErr_Occurred()) SWIG_fail; | |
26489 | } | |
15afbcd0 | 26490 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); |
d14a1e28 RD |
26491 | return resultobj; |
26492 | fail: | |
26493 | return NULL; | |
26494 | } | |
26495 | ||
26496 | ||
26497 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26498 | PyObject *resultobj; | |
26499 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26500 | PyObject *arg2 = (PyObject *) 0 ; | |
26501 | PyObject *arg3 = (PyObject *) 0 ; | |
26502 | PyObject * obj0 = 0 ; | |
26503 | PyObject * obj1 = 0 ; | |
26504 | PyObject * obj2 = 0 ; | |
26505 | char *kwnames[] = { | |
26506 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26507 | }; | |
26508 | ||
26509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26512 | arg2 = obj1; |
26513 | arg3 = obj2; | |
26514 | { | |
26515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26516 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26517 | ||
26518 | wxPyEndAllowThreads(__tstate); | |
26519 | if (PyErr_Occurred()) SWIG_fail; | |
26520 | } | |
26521 | Py_INCREF(Py_None); resultobj = Py_None; | |
26522 | return resultobj; | |
26523 | fail: | |
26524 | return NULL; | |
26525 | } | |
26526 | ||
26527 | ||
26528 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26529 | PyObject *resultobj; | |
26530 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26531 | int arg2 ; |
26532 | int arg3 ; | |
d14a1e28 RD |
26533 | int arg4 ; |
26534 | int result; | |
26535 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26536 | PyObject * obj1 = 0 ; |
26537 | PyObject * obj2 = 0 ; | |
26538 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26539 | char *kwnames[] = { |
26540 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26541 | }; | |
26542 | ||
994141e6 | 26543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26546 | arg2 = (int) SWIG_AsInt(obj1); | |
26547 | if (PyErr_Occurred()) SWIG_fail; | |
26548 | arg3 = (int) SWIG_AsInt(obj2); | |
26549 | if (PyErr_Occurred()) SWIG_fail; | |
26550 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26551 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26552 | { |
26553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26554 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26555 | ||
26556 | wxPyEndAllowThreads(__tstate); | |
26557 | if (PyErr_Occurred()) SWIG_fail; | |
26558 | } | |
15afbcd0 | 26559 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26560 | return resultobj; |
26561 | fail: | |
26562 | return NULL; | |
26563 | } | |
26564 | ||
26565 | ||
26566 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26567 | PyObject *resultobj; | |
26568 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26569 | int arg2 ; |
26570 | int arg3 ; | |
d14a1e28 RD |
26571 | int arg4 ; |
26572 | int result; | |
26573 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26574 | PyObject * obj1 = 0 ; |
26575 | PyObject * obj2 = 0 ; | |
26576 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26577 | char *kwnames[] = { |
26578 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26579 | }; | |
26580 | ||
994141e6 | 26581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26584 | arg2 = (int) SWIG_AsInt(obj1); | |
26585 | if (PyErr_Occurred()) SWIG_fail; | |
26586 | arg3 = (int) SWIG_AsInt(obj2); | |
26587 | if (PyErr_Occurred()) SWIG_fail; | |
26588 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26589 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26590 | { |
26591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26592 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26593 | ||
26594 | wxPyEndAllowThreads(__tstate); | |
26595 | if (PyErr_Occurred()) SWIG_fail; | |
26596 | } | |
15afbcd0 | 26597 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26598 | return resultobj; |
26599 | fail: | |
26600 | return NULL; | |
26601 | } | |
26602 | ||
26603 | ||
26604 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26605 | PyObject *resultobj; | |
26606 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26607 | PyObject * obj0 = 0 ; | |
26608 | char *kwnames[] = { | |
26609 | (char *) "self", NULL | |
26610 | }; | |
26611 | ||
26612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26615 | { |
26616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26617 | (arg1)->base_OnLeave(); | |
26618 | ||
26619 | wxPyEndAllowThreads(__tstate); | |
26620 | if (PyErr_Occurred()) SWIG_fail; | |
26621 | } | |
26622 | Py_INCREF(Py_None); resultobj = Py_None; | |
26623 | return resultobj; | |
26624 | fail: | |
26625 | return NULL; | |
26626 | } | |
26627 | ||
26628 | ||
26629 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26630 | PyObject *resultobj; | |
26631 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26632 | int arg2 ; |
26633 | int arg3 ; | |
d14a1e28 RD |
26634 | bool result; |
26635 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26636 | PyObject * obj1 = 0 ; |
26637 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26638 | char *kwnames[] = { |
26639 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26640 | }; | |
26641 | ||
994141e6 | 26642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26645 | arg2 = (int) SWIG_AsInt(obj1); | |
26646 | if (PyErr_Occurred()) SWIG_fail; | |
26647 | arg3 = (int) SWIG_AsInt(obj2); | |
26648 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26649 | { |
26650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26651 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26652 | ||
26653 | wxPyEndAllowThreads(__tstate); | |
26654 | if (PyErr_Occurred()) SWIG_fail; | |
26655 | } | |
4f89f6a3 RD |
26656 | { |
26657 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26658 | } | |
d14a1e28 RD |
26659 | return resultobj; |
26660 | fail: | |
26661 | return NULL; | |
26662 | } | |
26663 | ||
26664 | ||
26665 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26666 | PyObject *resultobj; | |
26667 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26668 | int arg2 ; |
26669 | int arg3 ; | |
d14a1e28 RD |
26670 | int arg4 ; |
26671 | int result; | |
26672 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26673 | PyObject * obj1 = 0 ; |
26674 | PyObject * obj2 = 0 ; | |
26675 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26676 | char *kwnames[] = { |
26677 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26678 | }; | |
26679 | ||
994141e6 | 26680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26683 | arg2 = (int) SWIG_AsInt(obj1); | |
26684 | if (PyErr_Occurred()) SWIG_fail; | |
26685 | arg3 = (int) SWIG_AsInt(obj2); | |
26686 | if (PyErr_Occurred()) SWIG_fail; | |
26687 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26688 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26689 | { |
26690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26691 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26692 | ||
26693 | wxPyEndAllowThreads(__tstate); | |
26694 | if (PyErr_Occurred()) SWIG_fail; | |
26695 | } | |
15afbcd0 | 26696 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26697 | return resultobj; |
26698 | fail: | |
26699 | return NULL; | |
26700 | } | |
26701 | ||
26702 | ||
26703 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26704 | PyObject *obj; | |
26705 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26706 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
26707 | Py_INCREF(obj); | |
26708 | return Py_BuildValue((char *)""); | |
26709 | } | |
26710 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26711 | PyObject *resultobj; | |
26712 | wxClipboard *result; | |
26713 | char *kwnames[] = { | |
26714 | NULL | |
26715 | }; | |
26716 | ||
26717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
26718 | { | |
26719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26720 | result = (wxClipboard *)new wxClipboard(); | |
26721 | ||
26722 | wxPyEndAllowThreads(__tstate); | |
26723 | if (PyErr_Occurred()) SWIG_fail; | |
26724 | } | |
15afbcd0 | 26725 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); |
d14a1e28 RD |
26726 | return resultobj; |
26727 | fail: | |
26728 | return NULL; | |
26729 | } | |
26730 | ||
26731 | ||
26732 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26733 | PyObject *resultobj; | |
26734 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26735 | PyObject * obj0 = 0 ; | |
26736 | char *kwnames[] = { | |
26737 | (char *) "self", NULL | |
26738 | }; | |
26739 | ||
26740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26743 | { |
26744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26745 | delete arg1; | |
26746 | ||
26747 | wxPyEndAllowThreads(__tstate); | |
26748 | if (PyErr_Occurred()) SWIG_fail; | |
26749 | } | |
26750 | Py_INCREF(Py_None); resultobj = Py_None; | |
26751 | return resultobj; | |
26752 | fail: | |
26753 | return NULL; | |
26754 | } | |
26755 | ||
26756 | ||
26757 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26758 | PyObject *resultobj; | |
26759 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26760 | bool result; | |
26761 | PyObject * obj0 = 0 ; | |
26762 | char *kwnames[] = { | |
26763 | (char *) "self", NULL | |
26764 | }; | |
26765 | ||
26766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26769 | { |
26770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26771 | result = (bool)(arg1)->Open(); | |
26772 | ||
26773 | wxPyEndAllowThreads(__tstate); | |
26774 | if (PyErr_Occurred()) SWIG_fail; | |
26775 | } | |
4f89f6a3 RD |
26776 | { |
26777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26778 | } | |
d14a1e28 RD |
26779 | return resultobj; |
26780 | fail: | |
26781 | return NULL; | |
26782 | } | |
26783 | ||
26784 | ||
26785 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26786 | PyObject *resultobj; | |
26787 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26788 | PyObject * obj0 = 0 ; | |
26789 | char *kwnames[] = { | |
26790 | (char *) "self", NULL | |
26791 | }; | |
26792 | ||
26793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26796 | { |
26797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26798 | (arg1)->Close(); | |
26799 | ||
26800 | wxPyEndAllowThreads(__tstate); | |
26801 | if (PyErr_Occurred()) SWIG_fail; | |
26802 | } | |
26803 | Py_INCREF(Py_None); resultobj = Py_None; | |
26804 | return resultobj; | |
26805 | fail: | |
26806 | return NULL; | |
26807 | } | |
26808 | ||
26809 | ||
26810 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26811 | PyObject *resultobj; | |
26812 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26813 | bool result; | |
26814 | PyObject * obj0 = 0 ; | |
26815 | char *kwnames[] = { | |
26816 | (char *) "self", NULL | |
26817 | }; | |
26818 | ||
26819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26822 | { |
26823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26824 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
26825 | ||
26826 | wxPyEndAllowThreads(__tstate); | |
26827 | if (PyErr_Occurred()) SWIG_fail; | |
26828 | } | |
4f89f6a3 RD |
26829 | { |
26830 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26831 | } | |
d14a1e28 RD |
26832 | return resultobj; |
26833 | fail: | |
26834 | return NULL; | |
26835 | } | |
26836 | ||
26837 | ||
26838 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26839 | PyObject *resultobj; | |
26840 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26841 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26842 | bool result; | |
26843 | PyObject * obj0 = 0 ; | |
26844 | PyObject * obj1 = 0 ; | |
26845 | char *kwnames[] = { | |
26846 | (char *) "self",(char *) "data", NULL | |
26847 | }; | |
26848 | ||
26849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26852 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26853 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26854 | { |
26855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26856 | result = (bool)(arg1)->AddData(arg2); | |
26857 | ||
26858 | wxPyEndAllowThreads(__tstate); | |
26859 | if (PyErr_Occurred()) SWIG_fail; | |
26860 | } | |
4f89f6a3 RD |
26861 | { |
26862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26863 | } | |
d14a1e28 RD |
26864 | return resultobj; |
26865 | fail: | |
26866 | return NULL; | |
26867 | } | |
26868 | ||
26869 | ||
26870 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26871 | PyObject *resultobj; | |
26872 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26873 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26874 | bool result; | |
26875 | PyObject * obj0 = 0 ; | |
26876 | PyObject * obj1 = 0 ; | |
26877 | char *kwnames[] = { | |
26878 | (char *) "self",(char *) "data", NULL | |
26879 | }; | |
26880 | ||
26881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26884 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26885 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26886 | { |
26887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26888 | result = (bool)(arg1)->SetData(arg2); | |
26889 | ||
26890 | wxPyEndAllowThreads(__tstate); | |
26891 | if (PyErr_Occurred()) SWIG_fail; | |
26892 | } | |
4f89f6a3 RD |
26893 | { |
26894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26895 | } | |
d14a1e28 RD |
26896 | return resultobj; |
26897 | fail: | |
26898 | return NULL; | |
26899 | } | |
26900 | ||
26901 | ||
26902 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26903 | PyObject *resultobj; | |
26904 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26905 | wxDataFormat *arg2 = 0 ; | |
26906 | bool result; | |
26907 | PyObject * obj0 = 0 ; | |
26908 | PyObject * obj1 = 0 ; | |
26909 | char *kwnames[] = { | |
26910 | (char *) "self",(char *) "format", NULL | |
26911 | }; | |
26912 | ||
26913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26916 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
26917 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26918 | SWIG_fail; | |
d14a1e28 | 26919 | if (arg2 == NULL) { |
15afbcd0 RD |
26920 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26921 | SWIG_fail; | |
d14a1e28 RD |
26922 | } |
26923 | { | |
26924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26925 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
26926 | ||
26927 | wxPyEndAllowThreads(__tstate); | |
26928 | if (PyErr_Occurred()) SWIG_fail; | |
26929 | } | |
4f89f6a3 RD |
26930 | { |
26931 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26932 | } | |
d14a1e28 RD |
26933 | return resultobj; |
26934 | fail: | |
26935 | return NULL; | |
26936 | } | |
26937 | ||
26938 | ||
26939 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26940 | PyObject *resultobj; | |
26941 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26942 | wxDataObject *arg2 = 0 ; | |
26943 | bool result; | |
26944 | PyObject * obj0 = 0 ; | |
26945 | PyObject * obj1 = 0 ; | |
26946 | char *kwnames[] = { | |
26947 | (char *) "self",(char *) "data", NULL | |
26948 | }; | |
26949 | ||
26950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26953 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26954 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26955 | SWIG_fail; | |
d14a1e28 | 26956 | if (arg2 == NULL) { |
15afbcd0 RD |
26957 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26958 | SWIG_fail; | |
d14a1e28 RD |
26959 | } |
26960 | { | |
26961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26962 | result = (bool)(arg1)->GetData(*arg2); | |
26963 | ||
26964 | wxPyEndAllowThreads(__tstate); | |
26965 | if (PyErr_Occurred()) SWIG_fail; | |
26966 | } | |
4f89f6a3 RD |
26967 | { |
26968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26969 | } | |
d14a1e28 RD |
26970 | return resultobj; |
26971 | fail: | |
26972 | return NULL; | |
26973 | } | |
26974 | ||
26975 | ||
26976 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26977 | PyObject *resultobj; | |
26978 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26979 | PyObject * obj0 = 0 ; | |
26980 | char *kwnames[] = { | |
26981 | (char *) "self", NULL | |
26982 | }; | |
26983 | ||
26984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26987 | { |
26988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26989 | (arg1)->Clear(); | |
26990 | ||
26991 | wxPyEndAllowThreads(__tstate); | |
26992 | if (PyErr_Occurred()) SWIG_fail; | |
26993 | } | |
26994 | Py_INCREF(Py_None); resultobj = Py_None; | |
26995 | return resultobj; | |
26996 | fail: | |
26997 | return NULL; | |
26998 | } | |
26999 | ||
27000 | ||
27001 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27002 | PyObject *resultobj; | |
27003 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27004 | bool result; | |
27005 | PyObject * obj0 = 0 ; | |
27006 | char *kwnames[] = { | |
27007 | (char *) "self", NULL | |
27008 | }; | |
27009 | ||
27010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27013 | { |
27014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27015 | result = (bool)(arg1)->Flush(); | |
27016 | ||
27017 | wxPyEndAllowThreads(__tstate); | |
27018 | if (PyErr_Occurred()) SWIG_fail; | |
27019 | } | |
4f89f6a3 RD |
27020 | { |
27021 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27022 | } | |
d14a1e28 RD |
27023 | return resultobj; |
27024 | fail: | |
27025 | return NULL; | |
27026 | } | |
27027 | ||
27028 | ||
27029 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27030 | PyObject *resultobj; | |
27031 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
fcafa8a9 | 27032 | bool arg2 = (bool) True ; |
d14a1e28 RD |
27033 | PyObject * obj0 = 0 ; |
27034 | PyObject * obj1 = 0 ; | |
27035 | char *kwnames[] = { | |
27036 | (char *) "self",(char *) "primary", NULL | |
27037 | }; | |
27038 | ||
27039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 27042 | if (obj1) { |
15afbcd0 RD |
27043 | arg2 = (bool) SWIG_AsBool(obj1); |
27044 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27045 | } |
27046 | { | |
27047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27048 | (arg1)->UsePrimarySelection(arg2); | |
27049 | ||
27050 | wxPyEndAllowThreads(__tstate); | |
27051 | if (PyErr_Occurred()) SWIG_fail; | |
27052 | } | |
27053 | Py_INCREF(Py_None); resultobj = Py_None; | |
27054 | return resultobj; | |
27055 | fail: | |
27056 | return NULL; | |
27057 | } | |
27058 | ||
27059 | ||
27060 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { | |
27061 | PyObject *obj; | |
27062 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27063 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
27064 | Py_INCREF(obj); | |
27065 | return Py_BuildValue((char *)""); | |
27066 | } | |
27067 | static int _wrap_TheClipboard_set(PyObject *_val) { | |
27068 | PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); | |
27069 | return 1; | |
27070 | } | |
27071 | ||
27072 | ||
27073 | static PyObject *_wrap_TheClipboard_get() { | |
27074 | PyObject *pyobj; | |
27075 | ||
15afbcd0 | 27076 | pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0); |
d14a1e28 RD |
27077 | return pyobj; |
27078 | } | |
27079 | ||
27080 | ||
27081 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27082 | PyObject *resultobj; | |
27083 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
27084 | wxClipboardLocker *result; | |
27085 | PyObject * obj0 = 0 ; | |
27086 | char *kwnames[] = { | |
27087 | (char *) "clipboard", NULL | |
27088 | }; | |
27089 | ||
27090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27091 | if (obj0) { | |
15afbcd0 RD |
27092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27094 | } |
27095 | { | |
27096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27097 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
27098 | ||
27099 | wxPyEndAllowThreads(__tstate); | |
27100 | if (PyErr_Occurred()) SWIG_fail; | |
27101 | } | |
15afbcd0 | 27102 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); |
d14a1e28 RD |
27103 | return resultobj; |
27104 | fail: | |
27105 | return NULL; | |
27106 | } | |
27107 | ||
27108 | ||
27109 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27110 | PyObject *resultobj; | |
27111 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27112 | PyObject * obj0 = 0 ; | |
27113 | char *kwnames[] = { | |
27114 | (char *) "self", NULL | |
27115 | }; | |
27116 | ||
27117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, |
27119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27120 | { |
27121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27122 | delete arg1; | |
27123 | ||
27124 | wxPyEndAllowThreads(__tstate); | |
27125 | if (PyErr_Occurred()) SWIG_fail; | |
27126 | } | |
27127 | Py_INCREF(Py_None); resultobj = Py_None; | |
27128 | return resultobj; | |
27129 | fail: | |
27130 | return NULL; | |
27131 | } | |
27132 | ||
27133 | ||
27134 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27135 | PyObject *resultobj; | |
27136 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27137 | bool result; | |
27138 | PyObject * obj0 = 0 ; | |
27139 | char *kwnames[] = { | |
27140 | (char *) "self", NULL | |
27141 | }; | |
27142 | ||
27143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, |
27145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27146 | { |
27147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27148 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
27149 | ||
27150 | wxPyEndAllowThreads(__tstate); | |
27151 | if (PyErr_Occurred()) SWIG_fail; | |
27152 | } | |
4f89f6a3 RD |
27153 | { |
27154 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27155 | } | |
d14a1e28 RD |
27156 | return resultobj; |
27157 | fail: | |
27158 | return NULL; | |
27159 | } | |
27160 | ||
27161 | ||
27162 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
27163 | PyObject *obj; | |
27164 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27165 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
27166 | Py_INCREF(obj); | |
27167 | return Py_BuildValue((char *)""); | |
27168 | } | |
4276dc52 RD |
27169 | static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
27170 | PyObject *resultobj; | |
27171 | int arg1 = (int) 0 ; | |
27172 | int arg2 = (int) 0 ; | |
27173 | int arg3 = (int) 0 ; | |
27174 | int arg4 = (int) 0 ; | |
27175 | wxVideoMode *result; | |
27176 | PyObject * obj0 = 0 ; | |
27177 | PyObject * obj1 = 0 ; | |
27178 | PyObject * obj2 = 0 ; | |
27179 | PyObject * obj3 = 0 ; | |
27180 | char *kwnames[] = { | |
27181 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
27182 | }; | |
27183 | ||
27184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27185 | if (obj0) { | |
27186 | arg1 = (int) SWIG_AsInt(obj0); | |
27187 | if (PyErr_Occurred()) SWIG_fail; | |
27188 | } | |
27189 | if (obj1) { | |
27190 | arg2 = (int) SWIG_AsInt(obj1); | |
27191 | if (PyErr_Occurred()) SWIG_fail; | |
27192 | } | |
27193 | if (obj2) { | |
27194 | arg3 = (int) SWIG_AsInt(obj2); | |
27195 | if (PyErr_Occurred()) SWIG_fail; | |
27196 | } | |
27197 | if (obj3) { | |
27198 | arg4 = (int) SWIG_AsInt(obj3); | |
27199 | if (PyErr_Occurred()) SWIG_fail; | |
27200 | } | |
27201 | { | |
27202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27203 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
27204 | ||
27205 | wxPyEndAllowThreads(__tstate); | |
27206 | if (PyErr_Occurred()) SWIG_fail; | |
27207 | } | |
27208 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
27209 | return resultobj; | |
27210 | fail: | |
27211 | return NULL; | |
27212 | } | |
27213 | ||
27214 | ||
27215 | static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27216 | PyObject *resultobj; | |
27217 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27218 | PyObject * obj0 = 0 ; | |
27219 | char *kwnames[] = { | |
27220 | (char *) "self", NULL | |
27221 | }; | |
27222 | ||
27223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
27224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27226 | { | |
27227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27228 | delete arg1; | |
27229 | ||
27230 | wxPyEndAllowThreads(__tstate); | |
27231 | if (PyErr_Occurred()) SWIG_fail; | |
27232 | } | |
27233 | Py_INCREF(Py_None); resultobj = Py_None; | |
27234 | return resultobj; | |
27235 | fail: | |
27236 | return NULL; | |
27237 | } | |
27238 | ||
27239 | ||
27240 | static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27241 | PyObject *resultobj; | |
27242 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27243 | wxVideoMode *arg2 = 0 ; | |
27244 | bool result; | |
27245 | PyObject * obj0 = 0 ; | |
27246 | PyObject * obj1 = 0 ; | |
27247 | char *kwnames[] = { | |
27248 | (char *) "self",(char *) "other", NULL | |
27249 | }; | |
27250 | ||
27251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
27252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27254 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27255 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27256 | SWIG_fail; | |
27257 | if (arg2 == NULL) { | |
27258 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27259 | SWIG_fail; | |
27260 | } | |
27261 | { | |
27262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27263 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
27264 | ||
27265 | wxPyEndAllowThreads(__tstate); | |
27266 | if (PyErr_Occurred()) SWIG_fail; | |
27267 | } | |
4f89f6a3 RD |
27268 | { |
27269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27270 | } | |
4276dc52 RD |
27271 | return resultobj; |
27272 | fail: | |
27273 | return NULL; | |
27274 | } | |
27275 | ||
27276 | ||
27277 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27278 | PyObject *resultobj; | |
27279 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27280 | int result; | |
27281 | PyObject * obj0 = 0 ; | |
27282 | char *kwnames[] = { | |
27283 | (char *) "self", NULL | |
27284 | }; | |
27285 | ||
27286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
27287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27289 | { | |
27290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27291 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
27292 | ||
27293 | wxPyEndAllowThreads(__tstate); | |
27294 | if (PyErr_Occurred()) SWIG_fail; | |
27295 | } | |
27296 | resultobj = SWIG_FromInt((int)result); | |
27297 | return resultobj; | |
27298 | fail: | |
27299 | return NULL; | |
27300 | } | |
27301 | ||
27302 | ||
27303 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27304 | PyObject *resultobj; | |
27305 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27306 | int result; | |
27307 | PyObject * obj0 = 0 ; | |
27308 | char *kwnames[] = { | |
27309 | (char *) "self", NULL | |
27310 | }; | |
27311 | ||
27312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
27313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27315 | { | |
27316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27317 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
27318 | ||
27319 | wxPyEndAllowThreads(__tstate); | |
27320 | if (PyErr_Occurred()) SWIG_fail; | |
27321 | } | |
27322 | resultobj = SWIG_FromInt((int)result); | |
27323 | return resultobj; | |
27324 | fail: | |
27325 | return NULL; | |
27326 | } | |
27327 | ||
27328 | ||
27329 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27330 | PyObject *resultobj; | |
27331 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27332 | int result; | |
27333 | PyObject * obj0 = 0 ; | |
27334 | char *kwnames[] = { | |
27335 | (char *) "self", NULL | |
27336 | }; | |
27337 | ||
27338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
27339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27341 | { | |
27342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27343 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
27344 | ||
27345 | wxPyEndAllowThreads(__tstate); | |
27346 | if (PyErr_Occurred()) SWIG_fail; | |
27347 | } | |
27348 | resultobj = SWIG_FromInt((int)result); | |
27349 | return resultobj; | |
27350 | fail: | |
27351 | return NULL; | |
27352 | } | |
27353 | ||
27354 | ||
27355 | static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27356 | PyObject *resultobj; | |
27357 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27358 | bool result; | |
27359 | PyObject * obj0 = 0 ; | |
27360 | char *kwnames[] = { | |
27361 | (char *) "self", NULL | |
27362 | }; | |
27363 | ||
27364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
27365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27367 | { | |
27368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27369 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
27370 | ||
27371 | wxPyEndAllowThreads(__tstate); | |
27372 | if (PyErr_Occurred()) SWIG_fail; | |
27373 | } | |
4f89f6a3 RD |
27374 | { |
27375 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27376 | } | |
4276dc52 RD |
27377 | return resultobj; |
27378 | fail: | |
27379 | return NULL; | |
27380 | } | |
27381 | ||
27382 | ||
27383 | static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27384 | PyObject *resultobj; | |
27385 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27386 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27387 | bool result; | |
27388 | PyObject * obj0 = 0 ; | |
27389 | PyObject * obj1 = 0 ; | |
27390 | char *kwnames[] = { | |
27391 | (char *) "self",(char *) "other", NULL | |
27392 | }; | |
27393 | ||
27394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
27395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27397 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27399 | { | |
27400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27401 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
27402 | ||
27403 | wxPyEndAllowThreads(__tstate); | |
27404 | if (PyErr_Occurred()) SWIG_fail; | |
27405 | } | |
4f89f6a3 RD |
27406 | { |
27407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27408 | } | |
4276dc52 RD |
27409 | return resultobj; |
27410 | fail: | |
27411 | return NULL; | |
27412 | } | |
27413 | ||
27414 | ||
27415 | static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27416 | PyObject *resultobj; | |
27417 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27418 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27419 | bool result; | |
27420 | PyObject * obj0 = 0 ; | |
27421 | PyObject * obj1 = 0 ; | |
27422 | char *kwnames[] = { | |
27423 | (char *) "self",(char *) "other", NULL | |
27424 | }; | |
27425 | ||
27426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
27427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27429 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27431 | { | |
27432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27433 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
27434 | ||
27435 | wxPyEndAllowThreads(__tstate); | |
27436 | if (PyErr_Occurred()) SWIG_fail; | |
27437 | } | |
4f89f6a3 RD |
27438 | { |
27439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27440 | } | |
4276dc52 RD |
27441 | return resultobj; |
27442 | fail: | |
27443 | return NULL; | |
27444 | } | |
27445 | ||
27446 | ||
27447 | static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27448 | PyObject *resultobj; | |
27449 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27450 | int arg2 ; | |
27451 | PyObject * obj0 = 0 ; | |
27452 | PyObject * obj1 = 0 ; | |
27453 | char *kwnames[] = { | |
27454 | (char *) "self",(char *) "w", NULL | |
27455 | }; | |
27456 | ||
27457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
27458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27460 | arg2 = (int) SWIG_AsInt(obj1); | |
27461 | if (PyErr_Occurred()) SWIG_fail; | |
27462 | if (arg1) (arg1)->w = arg2; | |
27463 | ||
27464 | Py_INCREF(Py_None); resultobj = Py_None; | |
27465 | return resultobj; | |
27466 | fail: | |
27467 | return NULL; | |
27468 | } | |
27469 | ||
27470 | ||
27471 | static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27472 | PyObject *resultobj; | |
27473 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27474 | int result; | |
27475 | PyObject * obj0 = 0 ; | |
27476 | char *kwnames[] = { | |
27477 | (char *) "self", NULL | |
27478 | }; | |
27479 | ||
27480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
27481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27483 | result = (int) ((arg1)->w); | |
27484 | ||
27485 | resultobj = SWIG_FromInt((int)result); | |
27486 | return resultobj; | |
27487 | fail: | |
27488 | return NULL; | |
27489 | } | |
27490 | ||
27491 | ||
27492 | static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27493 | PyObject *resultobj; | |
27494 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27495 | int arg2 ; | |
27496 | PyObject * obj0 = 0 ; | |
27497 | PyObject * obj1 = 0 ; | |
27498 | char *kwnames[] = { | |
27499 | (char *) "self",(char *) "h", NULL | |
27500 | }; | |
27501 | ||
27502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
27503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27505 | arg2 = (int) SWIG_AsInt(obj1); | |
27506 | if (PyErr_Occurred()) SWIG_fail; | |
27507 | if (arg1) (arg1)->h = arg2; | |
27508 | ||
27509 | Py_INCREF(Py_None); resultobj = Py_None; | |
27510 | return resultobj; | |
27511 | fail: | |
27512 | return NULL; | |
27513 | } | |
27514 | ||
27515 | ||
27516 | static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27517 | PyObject *resultobj; | |
27518 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27519 | int result; | |
27520 | PyObject * obj0 = 0 ; | |
27521 | char *kwnames[] = { | |
27522 | (char *) "self", NULL | |
27523 | }; | |
27524 | ||
27525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
27526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27528 | result = (int) ((arg1)->h); | |
27529 | ||
27530 | resultobj = SWIG_FromInt((int)result); | |
27531 | return resultobj; | |
27532 | fail: | |
27533 | return NULL; | |
27534 | } | |
27535 | ||
27536 | ||
27537 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27538 | PyObject *resultobj; | |
27539 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27540 | int arg2 ; | |
27541 | PyObject * obj0 = 0 ; | |
27542 | PyObject * obj1 = 0 ; | |
27543 | char *kwnames[] = { | |
27544 | (char *) "self",(char *) "bpp", NULL | |
27545 | }; | |
27546 | ||
27547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
27548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27550 | arg2 = (int) SWIG_AsInt(obj1); | |
27551 | if (PyErr_Occurred()) SWIG_fail; | |
27552 | if (arg1) (arg1)->bpp = arg2; | |
27553 | ||
27554 | Py_INCREF(Py_None); resultobj = Py_None; | |
27555 | return resultobj; | |
27556 | fail: | |
27557 | return NULL; | |
27558 | } | |
27559 | ||
27560 | ||
27561 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27562 | PyObject *resultobj; | |
27563 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27564 | int result; | |
27565 | PyObject * obj0 = 0 ; | |
27566 | char *kwnames[] = { | |
27567 | (char *) "self", NULL | |
27568 | }; | |
27569 | ||
27570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
27571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27573 | result = (int) ((arg1)->bpp); | |
27574 | ||
27575 | resultobj = SWIG_FromInt((int)result); | |
27576 | return resultobj; | |
27577 | fail: | |
27578 | return NULL; | |
27579 | } | |
27580 | ||
27581 | ||
27582 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27583 | PyObject *resultobj; | |
27584 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27585 | int arg2 ; | |
27586 | PyObject * obj0 = 0 ; | |
27587 | PyObject * obj1 = 0 ; | |
27588 | char *kwnames[] = { | |
27589 | (char *) "self",(char *) "refresh", NULL | |
27590 | }; | |
27591 | ||
27592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
27593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27595 | arg2 = (int) SWIG_AsInt(obj1); | |
27596 | if (PyErr_Occurred()) SWIG_fail; | |
27597 | if (arg1) (arg1)->refresh = arg2; | |
27598 | ||
27599 | Py_INCREF(Py_None); resultobj = Py_None; | |
27600 | return resultobj; | |
27601 | fail: | |
27602 | return NULL; | |
27603 | } | |
27604 | ||
27605 | ||
27606 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27607 | PyObject *resultobj; | |
27608 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27609 | int result; | |
27610 | PyObject * obj0 = 0 ; | |
27611 | char *kwnames[] = { | |
27612 | (char *) "self", NULL | |
27613 | }; | |
27614 | ||
27615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
27616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27618 | result = (int) ((arg1)->refresh); | |
27619 | ||
27620 | resultobj = SWIG_FromInt((int)result); | |
27621 | return resultobj; | |
27622 | fail: | |
27623 | return NULL; | |
27624 | } | |
27625 | ||
27626 | ||
27627 | static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) { | |
27628 | PyObject *obj; | |
27629 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27630 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
27631 | Py_INCREF(obj); | |
27632 | return Py_BuildValue((char *)""); | |
27633 | } | |
27634 | static int _wrap_DefaultVideoMode_set(PyObject *_val) { | |
27635 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); | |
27636 | return 1; | |
27637 | } | |
27638 | ||
27639 | ||
27640 | static PyObject *_wrap_DefaultVideoMode_get() { | |
27641 | PyObject *pyobj; | |
27642 | ||
27643 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
27644 | return pyobj; | |
27645 | } | |
27646 | ||
27647 | ||
27648 | static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27649 | PyObject *resultobj; | |
27650 | size_t arg1 = (size_t) 0 ; | |
27651 | wxDisplay *result; | |
27652 | PyObject * obj0 = 0 ; | |
27653 | char *kwnames[] = { | |
27654 | (char *) "index", NULL | |
27655 | }; | |
27656 | ||
27657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
27658 | if (obj0) { | |
27659 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); | |
27660 | if (PyErr_Occurred()) SWIG_fail; | |
27661 | } | |
27662 | { | |
27663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27664 | result = (wxDisplay *)new wxDisplay(arg1); | |
27665 | ||
27666 | wxPyEndAllowThreads(__tstate); | |
27667 | if (PyErr_Occurred()) SWIG_fail; | |
27668 | } | |
27669 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
27670 | return resultobj; | |
27671 | fail: | |
27672 | return NULL; | |
27673 | } | |
27674 | ||
27675 | ||
27676 | static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27677 | PyObject *resultobj; | |
27678 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27679 | PyObject * obj0 = 0 ; | |
27680 | char *kwnames[] = { | |
27681 | (char *) "self", NULL | |
27682 | }; | |
27683 | ||
27684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
27685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27687 | { | |
27688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27689 | delete arg1; | |
27690 | ||
27691 | wxPyEndAllowThreads(__tstate); | |
27692 | if (PyErr_Occurred()) SWIG_fail; | |
27693 | } | |
27694 | Py_INCREF(Py_None); resultobj = Py_None; | |
27695 | return resultobj; | |
27696 | fail: | |
27697 | return NULL; | |
27698 | } | |
27699 | ||
27700 | ||
27701 | static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27702 | PyObject *resultobj; | |
27703 | size_t result; | |
27704 | char *kwnames[] = { | |
27705 | NULL | |
27706 | }; | |
27707 | ||
27708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
27709 | { | |
27710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27711 | result = (size_t)wxDisplay::GetCount(); | |
27712 | ||
27713 | wxPyEndAllowThreads(__tstate); | |
27714 | if (PyErr_Occurred()) SWIG_fail; | |
27715 | } | |
27716 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
27717 | return resultobj; | |
27718 | fail: | |
27719 | return NULL; | |
27720 | } | |
27721 | ||
27722 | ||
27723 | static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27724 | PyObject *resultobj; | |
27725 | wxPoint *arg1 = 0 ; | |
27726 | int result; | |
27727 | wxPoint temp1 ; | |
27728 | PyObject * obj0 = 0 ; | |
27729 | char *kwnames[] = { | |
27730 | (char *) "pt", NULL | |
27731 | }; | |
27732 | ||
27733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
27734 | { | |
27735 | arg1 = &temp1; | |
27736 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
27737 | } | |
27738 | { | |
27739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27740 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
27741 | ||
27742 | wxPyEndAllowThreads(__tstate); | |
27743 | if (PyErr_Occurred()) SWIG_fail; | |
27744 | } | |
27745 | resultobj = SWIG_FromInt((int)result); | |
27746 | return resultobj; | |
27747 | fail: | |
27748 | return NULL; | |
27749 | } | |
27750 | ||
27751 | ||
27752 | static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27753 | PyObject *resultobj; | |
27754 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27755 | int result; | |
27756 | PyObject * obj0 = 0 ; | |
27757 | char *kwnames[] = { | |
27758 | (char *) "window", NULL | |
27759 | }; | |
27760 | ||
27761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
27762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27764 | { | |
27765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27766 | result = (int)Display_GetFromWindow(arg1); | |
27767 | ||
27768 | wxPyEndAllowThreads(__tstate); | |
27769 | if (PyErr_Occurred()) SWIG_fail; | |
27770 | } | |
27771 | resultobj = SWIG_FromInt((int)result); | |
27772 | return resultobj; | |
27773 | fail: | |
27774 | return NULL; | |
27775 | } | |
27776 | ||
27777 | ||
27778 | static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27779 | PyObject *resultobj; | |
27780 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27781 | bool result; | |
27782 | PyObject * obj0 = 0 ; | |
27783 | char *kwnames[] = { | |
27784 | (char *) "self", NULL | |
27785 | }; | |
27786 | ||
27787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
27788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27790 | { | |
27791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27792 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
27793 | ||
27794 | wxPyEndAllowThreads(__tstate); | |
27795 | if (PyErr_Occurred()) SWIG_fail; | |
27796 | } | |
4f89f6a3 RD |
27797 | { |
27798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27799 | } | |
4276dc52 RD |
27800 | return resultobj; |
27801 | fail: | |
27802 | return NULL; | |
27803 | } | |
27804 | ||
27805 | ||
27806 | static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27807 | PyObject *resultobj; | |
27808 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27809 | wxRect result; | |
27810 | PyObject * obj0 = 0 ; | |
27811 | char *kwnames[] = { | |
27812 | (char *) "self", NULL | |
27813 | }; | |
27814 | ||
27815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
27816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27818 | { | |
27819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27820 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
27821 | ||
27822 | wxPyEndAllowThreads(__tstate); | |
27823 | if (PyErr_Occurred()) SWIG_fail; | |
27824 | } | |
27825 | { | |
27826 | wxRect * resultptr; | |
27827 | resultptr = new wxRect((wxRect &) result); | |
27828 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
27829 | } | |
27830 | return resultobj; | |
27831 | fail: | |
27832 | return NULL; | |
27833 | } | |
27834 | ||
27835 | ||
27836 | static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27837 | PyObject *resultobj; | |
27838 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27839 | wxString result; | |
27840 | PyObject * obj0 = 0 ; | |
27841 | char *kwnames[] = { | |
27842 | (char *) "self", NULL | |
27843 | }; | |
27844 | ||
27845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
27846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27848 | { | |
27849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27850 | result = ((wxDisplay const *)arg1)->GetName(); | |
27851 | ||
27852 | wxPyEndAllowThreads(__tstate); | |
27853 | if (PyErr_Occurred()) SWIG_fail; | |
27854 | } | |
27855 | { | |
27856 | #if wxUSE_UNICODE | |
27857 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27858 | #else | |
27859 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27860 | #endif | |
27861 | } | |
27862 | return resultobj; | |
27863 | fail: | |
27864 | return NULL; | |
27865 | } | |
27866 | ||
27867 | ||
27868 | static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27869 | PyObject *resultobj; | |
27870 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27871 | bool result; | |
27872 | PyObject * obj0 = 0 ; | |
27873 | char *kwnames[] = { | |
27874 | (char *) "self", NULL | |
27875 | }; | |
27876 | ||
27877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
27878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27880 | { | |
27881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27882 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
27883 | ||
27884 | wxPyEndAllowThreads(__tstate); | |
27885 | if (PyErr_Occurred()) SWIG_fail; | |
27886 | } | |
4f89f6a3 RD |
27887 | { |
27888 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27889 | } | |
4276dc52 RD |
27890 | return resultobj; |
27891 | fail: | |
27892 | return NULL; | |
27893 | } | |
27894 | ||
27895 | ||
27896 | static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27897 | PyObject *resultobj; | |
27898 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27899 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
27900 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
27901 | PyObject *result; | |
27902 | PyObject * obj0 = 0 ; | |
27903 | PyObject * obj1 = 0 ; | |
27904 | char *kwnames[] = { | |
27905 | (char *) "self",(char *) "mode", NULL | |
27906 | }; | |
27907 | ||
27908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
27909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27911 | if (obj1) { | |
27912 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27913 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27914 | SWIG_fail; | |
27915 | if (arg2 == NULL) { | |
27916 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27917 | SWIG_fail; | |
27918 | } | |
27919 | } | |
27920 | { | |
27921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27922 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
27923 | ||
27924 | wxPyEndAllowThreads(__tstate); | |
27925 | if (PyErr_Occurred()) SWIG_fail; | |
27926 | } | |
27927 | resultobj = result; | |
27928 | return resultobj; | |
27929 | fail: | |
27930 | return NULL; | |
27931 | } | |
27932 | ||
27933 | ||
27934 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27935 | PyObject *resultobj; | |
27936 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27937 | wxVideoMode result; | |
27938 | PyObject * obj0 = 0 ; | |
27939 | char *kwnames[] = { | |
27940 | (char *) "self", NULL | |
27941 | }; | |
27942 | ||
27943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
27944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27946 | { | |
27947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27948 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
27949 | ||
27950 | wxPyEndAllowThreads(__tstate); | |
27951 | if (PyErr_Occurred()) SWIG_fail; | |
27952 | } | |
27953 | { | |
27954 | wxVideoMode * resultptr; | |
27955 | resultptr = new wxVideoMode((wxVideoMode &) result); | |
27956 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); | |
27957 | } | |
27958 | return resultobj; | |
27959 | fail: | |
27960 | return NULL; | |
27961 | } | |
27962 | ||
27963 | ||
27964 | static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27965 | PyObject *resultobj; | |
27966 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27967 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
27968 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
27969 | bool result; | |
27970 | PyObject * obj0 = 0 ; | |
27971 | PyObject * obj1 = 0 ; | |
27972 | char *kwnames[] = { | |
27973 | (char *) "self",(char *) "mode", NULL | |
27974 | }; | |
27975 | ||
27976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
27977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27979 | if (obj1) { | |
27980 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27981 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27982 | SWIG_fail; | |
27983 | if (arg2 == NULL) { | |
27984 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27985 | SWIG_fail; | |
27986 | } | |
27987 | } | |
27988 | { | |
27989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27990 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
27991 | ||
27992 | wxPyEndAllowThreads(__tstate); | |
27993 | if (PyErr_Occurred()) SWIG_fail; | |
27994 | } | |
4f89f6a3 RD |
27995 | { |
27996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27997 | } | |
4276dc52 RD |
27998 | return resultobj; |
27999 | fail: | |
28000 | return NULL; | |
28001 | } | |
28002 | ||
28003 | ||
28004 | static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28005 | PyObject *resultobj; | |
28006 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28007 | PyObject * obj0 = 0 ; | |
28008 | char *kwnames[] = { | |
28009 | (char *) "self", NULL | |
28010 | }; | |
28011 | ||
28012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
28013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28015 | { | |
28016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28017 | (arg1)->ResetMode(); | |
28018 | ||
28019 | wxPyEndAllowThreads(__tstate); | |
28020 | if (PyErr_Occurred()) SWIG_fail; | |
28021 | } | |
28022 | Py_INCREF(Py_None); resultobj = Py_None; | |
28023 | return resultobj; | |
28024 | fail: | |
28025 | return NULL; | |
28026 | } | |
28027 | ||
28028 | ||
28029 | static PyObject * Display_swigregister(PyObject *self, PyObject *args) { | |
28030 | PyObject *obj; | |
28031 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28032 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
28033 | Py_INCREF(obj); | |
28034 | return Py_BuildValue((char *)""); | |
28035 | } | |
d14a1e28 RD |
28036 | static PyMethodDef SwigMethods[] = { |
28037 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
28038 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
28039 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
28040 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
28041 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
28042 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
28043 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
28044 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
28045 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
28046 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
28047 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
28048 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
28049 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
28050 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
28051 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
28052 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
28053 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
28054 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, | |
28055 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28056 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
28057 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
28058 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
28059 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
28060 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
28061 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
28062 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
28063 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
28064 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
28065 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
28066 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
28067 | { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, | |
28068 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
28069 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
28070 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
28071 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
28072 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
28073 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
28074 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
28075 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
28076 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
28077 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
28078 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
28079 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28080 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28081 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28082 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
28083 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28084 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28085 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
28086 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
28087 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
28088 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28089 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
28090 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28091 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28092 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28093 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28094 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28095 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28096 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28097 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28098 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28099 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28100 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
28101 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28102 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28103 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
39f61e25 | 28104 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28105 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, |
28106 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
28107 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
28108 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28109 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28110 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
28111 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
28112 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
28113 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
28114 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28115 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
28116 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
28117 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
28118 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
28119 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28120 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28121 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28122 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 28123 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 28124 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 28125 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 28126 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28127 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
28128 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
28129 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
28130 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
28131 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
28132 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
28133 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
28134 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
28135 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28136 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28137 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28138 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28139 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
28140 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28141 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28142 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
28143 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28144 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28145 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
28146 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
28147 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
28148 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
28149 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28150 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
28151 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
28152 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28153 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28154 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
28155 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
28156 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
28157 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
28158 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
28159 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
28160 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
28161 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
28162 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
28163 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
28164 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28165 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
28166 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28167 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28168 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28169 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
28170 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
28171 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
28172 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
28173 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28174 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28175 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
28176 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
28177 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
28178 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28179 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28180 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
28181 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
28182 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28183 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
28184 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
7722248d | 28185 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28186 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, |
28187 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, | |
28188 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28189 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, |
28190 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28191 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
cc6dd355 | 28192 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28193 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, |
28194 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
28195 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28196 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
28197 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
28198 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
28199 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
28200 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
28201 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
28202 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
28203 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
28204 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
28205 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28206 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
28207 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28208 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28209 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
28210 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28211 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28212 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28213 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28214 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28215 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28216 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28217 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28218 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28219 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28220 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28221 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28222 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28223 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28224 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28225 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
28226 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
28227 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
28228 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
28229 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
28230 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
28231 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
28232 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
28233 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
28234 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
28235 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
28236 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
28237 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28238 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28239 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28240 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
28241 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
28242 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
28243 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28244 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28245 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28246 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
28247 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
28248 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
28249 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
28250 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
28251 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
28252 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
28253 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
28254 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
28255 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28256 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
28257 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
28258 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
cc6dd355 | 28259 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, |
d14a1e28 RD |
28260 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, |
28261 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
28262 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28263 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28264 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
28265 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
28266 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28267 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
28268 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
28269 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28270 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
28271 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
28272 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28273 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
28274 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
28275 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
28276 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
28277 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
28278 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
28279 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
28280 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
28281 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
28282 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28283 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28284 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
28285 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
28286 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
28287 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
28288 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
28289 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
28290 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
28291 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
28292 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
28293 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
28294 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28295 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28296 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28297 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28298 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28299 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28300 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
28301 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
28302 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
28303 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28304 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28305 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28306 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28307 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
28308 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
28309 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
28310 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
28311 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
28312 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
28313 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
28314 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
28315 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
28316 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
28317 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
28318 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
28319 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
28320 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
28321 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
28322 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
28323 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
28324 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
28325 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
28326 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
28327 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
28328 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
28329 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
28330 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
28331 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
28332 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
28333 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
28334 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
28335 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
28336 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
28337 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
28338 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
28339 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
28340 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
28341 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
28342 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
28343 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
28344 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
28345 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
28346 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
28347 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
28348 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
28349 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
28350 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28351 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28352 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28353 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28354 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28355 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28356 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28357 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28358 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28359 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28360 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
28361 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
28362 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
28363 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
28364 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
28365 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
28366 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
4d5c3d91 RD |
28367 | { (char *)"new_Sound", _wrap_new_Sound, METH_VARARGS }, |
28368 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS }, | |
28369 | { (char *)"Sound_Create", _wrap_Sound_Create, METH_VARARGS }, | |
28370 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28371 | { (char *)"Sound_Play", _wrap_Sound_Play, METH_VARARGS }, | |
28372 | { (char *)"Sound_PlaySound", _wrap_Sound_PlaySound, METH_VARARGS }, | |
28373 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS }, | |
28374 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28375 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, |
28376 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
28377 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
28378 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28379 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28380 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28381 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28382 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28383 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28384 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28385 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28386 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28387 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
28388 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
28389 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
28390 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
28391 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28392 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28393 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28394 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28395 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28396 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28397 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
28398 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28399 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28400 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28401 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
28402 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
28403 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
28404 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28405 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
28406 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
28407 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
28408 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28409 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
28410 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
28411 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
28412 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28413 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
28414 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28415 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
28416 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
28417 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
28418 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28419 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28420 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
28421 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28422 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
28423 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
28424 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
28425 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
28426 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28427 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
1e0c8722 | 28428 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28429 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, |
28430 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
28431 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
28432 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
28433 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
28434 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28435 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
28436 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
28437 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
28438 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
28439 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
28440 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
28441 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
28442 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
28443 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
28444 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
28445 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28446 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
28447 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
28448 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
28449 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
28450 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
28451 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
28452 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
28453 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
28454 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
28455 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28456 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
28457 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
28458 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
28459 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
28460 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 28461 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, |
b88bce5f | 28462 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28463 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, |
28464 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
28465 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28466 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28467 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28468 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28469 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28470 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28471 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28472 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28473 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, |
28474 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
28475 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
28476 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28477 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28478 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
b88bce5f RD |
28479 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, |
28480 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
28481 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
28482 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28483 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, |
28484 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28485 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28486 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
28487 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
28488 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
28489 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
28490 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
28491 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
28492 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
28493 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
28494 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
28495 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
28496 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
28497 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
28498 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
28499 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
28500 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
28501 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
28502 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
28503 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28504 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28505 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
28506 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
28507 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
28508 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28509 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
28510 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28511 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28512 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
28513 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
28514 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
28515 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
28516 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28517 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
28518 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
28519 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28520 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28521 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28522 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28523 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28524 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28525 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28526 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28527 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28528 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28529 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28530 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28531 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
28532 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
28533 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28534 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28535 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28536 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28537 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28538 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28539 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28540 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
28541 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
28542 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28543 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28544 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
28545 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
28546 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
28547 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28548 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
28549 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
28550 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28551 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
28552 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28553 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
28554 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28555 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28556 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28557 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28558 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28559 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
28560 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
28561 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28562 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
28563 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
28564 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
28565 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
28566 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
28567 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
28568 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
28569 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
28570 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
28571 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
28572 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
28573 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28574 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
28575 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
28576 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
28577 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
28578 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
28579 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
28580 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
28581 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
28582 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
28583 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
28584 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
28585 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
28586 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
28587 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
28588 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
28589 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
28590 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
28591 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
28592 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
28593 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
28594 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
28595 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
28596 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
28597 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
28598 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
28599 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
28600 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
28601 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28602 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28603 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28604 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28605 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28606 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28607 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28608 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28609 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28610 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28611 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
28612 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28613 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28614 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28615 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28616 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28617 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28618 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28619 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28620 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
28621 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
28622 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
28623 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
28624 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28625 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28626 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
28627 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
28628 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
28629 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28630 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
28631 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
28632 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28633 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28634 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
28635 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
28636 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
28637 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
28638 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
28639 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
28640 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28641 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28642 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28643 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28644 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28645 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28646 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
28647 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
28648 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
28649 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
28650 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
28651 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28652 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28653 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
28654 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
28655 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28656 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28657 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28658 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
28659 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28660 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28661 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28662 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28663 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28664 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28665 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28666 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28667 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28668 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28669 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28670 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28671 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28672 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28673 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
28674 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
28675 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
28676 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
28677 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
28678 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28679 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28680 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28681 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
28682 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
28683 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
28684 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
28685 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
28686 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
28687 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
28688 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
28689 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
28690 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
28691 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28692 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
28693 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
28694 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
28695 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28696 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
28697 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28698 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
28699 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
28700 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, | |
28701 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28702 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28703 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
28704 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
28705 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
28706 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
28707 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28708 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
28709 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
28710 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
28711 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
28712 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28713 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28714 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
28715 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28716 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28717 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28718 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
28719 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28720 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28721 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
28722 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28723 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
15afbcd0 | 28724 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28725 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, |
28726 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28727 | { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS }, | |
28728 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28729 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
28730 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28731 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
28732 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28733 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
28734 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
28735 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
28736 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28737 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, | |
28738 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
28739 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28740 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28741 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28742 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28743 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28744 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28745 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
28746 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
28747 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
15afbcd0 | 28748 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28749 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
28750 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28751 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28752 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28753 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28754 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28755 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28756 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28757 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28758 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
28759 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28760 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28761 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28762 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28763 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28764 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28765 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28766 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
28767 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28768 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28769 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28770 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28771 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28772 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28773 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28774 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
28775 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28776 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28777 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
28778 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
28779 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
28780 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
28781 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28782 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28783 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28784 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
28785 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28786 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
28787 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, | |
28788 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28789 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28790 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
28791 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
4276dc52 RD |
28792 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS }, |
28793 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS }, | |
28794 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS }, | |
28795 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
28796 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
28797 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
28798 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28799 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28800 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28801 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS }, | |
28802 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS }, | |
28803 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS }, | |
28804 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS }, | |
28805 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS }, | |
28806 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS }, | |
28807 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS }, | |
28808 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS }, | |
28809 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS }, | |
28810 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS }, | |
28811 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS }, | |
28812 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28813 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
28814 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
28815 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28816 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS }, | |
28817 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS }, | |
28818 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS }, | |
28819 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS }, | |
28820 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS }, | |
28821 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS }, | |
28822 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS }, | |
28823 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28824 | { NULL, NULL } |
28825 | }; | |
28826 | ||
28827 | ||
28828 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
28829 | ||
28830 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
28831 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
28832 | } | |
28833 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
28834 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
28835 | } | |
28836 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
28837 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
28838 | } | |
28839 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
28840 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
28841 | } | |
28842 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
28843 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
28844 | } | |
28845 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
28846 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
28847 | } | |
28848 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
28849 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
28850 | } | |
28851 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
28852 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
28853 | } | |
28854 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
28855 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
28856 | } | |
28857 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
28858 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
28859 | } | |
28860 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
28861 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
28862 | } | |
28863 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
28864 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
28865 | } | |
28866 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
28867 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
28868 | } | |
28869 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
28870 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
28871 | } | |
28872 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
28873 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
28874 | } | |
28875 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
28876 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
28877 | } | |
28878 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
28879 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
28880 | } | |
28881 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
28882 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
28883 | } | |
28884 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
28885 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
28886 | } | |
28887 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
28888 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
28889 | } | |
28890 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
28891 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
28892 | } | |
28893 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
28894 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
28895 | } | |
28896 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
28897 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
28898 | } | |
28899 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
28900 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
28901 | } | |
28902 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
28903 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
28904 | } | |
28905 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
28906 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
28907 | } | |
28908 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
28909 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
28910 | } | |
28911 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
28912 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
28913 | } | |
28914 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
28915 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
28916 | } | |
28917 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
28918 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
28919 | } | |
28920 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
28921 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
28922 | } | |
28923 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
28924 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
28925 | } | |
28926 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
28927 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
28928 | } | |
28929 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
28930 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
28931 | } | |
28932 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
28933 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
28934 | } | |
28935 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
28936 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
28937 | } | |
28938 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
28939 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
28940 | } | |
28941 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
28942 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
28943 | } | |
28944 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
28945 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
28946 | } | |
28947 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
28948 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
28949 | } | |
28950 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
28951 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
28952 | } | |
28953 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
28954 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
28955 | } | |
28956 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
28957 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
28958 | } | |
28959 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
28960 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
28961 | } | |
28962 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
28963 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
28964 | } | |
28965 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
28966 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
28967 | } | |
28968 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
28969 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
28970 | } | |
28971 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
28972 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
28973 | } | |
28974 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
28975 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
28976 | } | |
28977 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
28978 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
28979 | } | |
28980 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
28981 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
28982 | } | |
28983 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
28984 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
28985 | } | |
28986 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
28987 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
28988 | } | |
28989 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
28990 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
28991 | } | |
28992 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
28993 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
28994 | } | |
28995 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28996 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
28997 | } | |
28998 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28999 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29000 | } | |
29001 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29002 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29003 | } | |
29004 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29005 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29006 | } | |
29007 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29008 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29009 | } | |
29010 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29011 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29012 | } | |
29013 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29014 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29015 | } | |
29016 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
29017 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
29018 | } | |
29019 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
29020 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
29021 | } | |
29022 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
29023 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29024 | } | |
29025 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
29026 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
29027 | } | |
29028 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
29029 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
29030 | } | |
29031 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
29032 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
29033 | } | |
29034 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
29035 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
29036 | } | |
29037 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
29038 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
29039 | } | |
29040 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
29041 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
29042 | } | |
29043 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
29044 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
29045 | } | |
29046 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
29047 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
29048 | } | |
29049 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
29050 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
29051 | } | |
29052 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
29053 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
29054 | } | |
29055 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
29056 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
29057 | } | |
29058 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
29059 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
29060 | } | |
29061 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
29062 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
29063 | } | |
29064 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
29065 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
29066 | } | |
29067 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
29068 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
29069 | } | |
29070 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
29071 | return (void *)((wxObject *) ((wxSizer *) x)); | |
29072 | } | |
29073 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
29074 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
29075 | } | |
29076 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
29077 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
29078 | } | |
29079 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
29080 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29081 | } | |
29082 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
29083 | return (void *)((wxObject *) ((wxEvent *) x)); | |
29084 | } | |
29085 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
29086 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
29087 | } | |
29088 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
29089 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
29090 | } | |
29091 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
29092 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
29093 | } | |
29094 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
29095 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
29096 | } | |
29097 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
29098 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
29099 | } | |
29100 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
29101 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29102 | } | |
29103 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
29104 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29105 | } | |
29106 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
29107 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29108 | } | |
29109 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
29110 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29111 | } | |
29112 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
29113 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
29114 | } | |
29115 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
29116 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
29117 | } | |
29118 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
29119 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
29120 | } | |
29121 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
29122 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
29123 | } | |
29124 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
29125 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
29126 | } | |
29127 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
29128 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
29129 | } | |
29130 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
29131 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
29132 | } | |
29133 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
29134 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29135 | } | |
29136 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
29137 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
29138 | } | |
29139 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
29140 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
29141 | } | |
29142 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
29143 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
29144 | } | |
29145 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
29146 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
29147 | } | |
29148 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
29149 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29150 | } | |
29151 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
29152 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29153 | } | |
29154 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
29155 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
29156 | } | |
29157 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
29158 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
29159 | } | |
29160 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
29161 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
29162 | } | |
29163 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
29164 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
29165 | } | |
29166 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
29167 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
29168 | } | |
29169 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
29170 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
29171 | } | |
29172 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
29173 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
29174 | } | |
29175 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
29176 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
29177 | } | |
29178 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
29179 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
29180 | } | |
29181 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
29182 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
29183 | } | |
29184 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
29185 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
29186 | } | |
29187 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
29188 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
29189 | } | |
29190 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
29191 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
29192 | } | |
29193 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
29194 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
29195 | } | |
29196 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
29197 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
29198 | } | |
29199 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
29200 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
29201 | } | |
29202 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
29203 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
29204 | } | |
29205 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
29206 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
29207 | } | |
1e0c8722 RD |
29208 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
29209 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
29210 | } | |
d14a1e28 RD |
29211 | static void *_p_wxImageTo_p_wxObject(void *x) { |
29212 | return (void *)((wxObject *) ((wxImage *) x)); | |
29213 | } | |
29214 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
29215 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
29216 | } | |
29217 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
29218 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
29219 | } | |
29220 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
29221 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
29222 | } | |
29223 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
29224 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29225 | } | |
29226 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
29227 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29228 | } | |
29229 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
29230 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
29231 | } | |
29232 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
29233 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
29234 | } | |
29235 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
29236 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
29237 | } | |
29238 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
29239 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
29240 | } | |
29241 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
29242 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
29243 | } | |
29244 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
29245 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
29246 | } | |
29247 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
29248 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29249 | } | |
29250 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
29251 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
29252 | } | |
29253 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
29254 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
29255 | } | |
29256 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
29257 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
29258 | } | |
29259 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
29260 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
29261 | } | |
29262 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
29263 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
29264 | } | |
29265 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
29266 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
29267 | } | |
29268 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
29269 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29270 | } | |
29271 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
29272 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
29273 | } | |
29274 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
29275 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
29276 | } | |
29277 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
29278 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
29279 | } | |
29280 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
29281 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29282 | } | |
29283 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
29284 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
29285 | } | |
29286 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
29287 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29288 | } | |
29289 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
29290 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
29291 | } | |
29292 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
29293 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
29294 | } | |
29295 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
29296 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
29297 | } | |
29298 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
29299 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
29300 | } | |
29301 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
29302 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
29303 | } | |
29304 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
29305 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
29306 | } | |
29307 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
29308 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
29309 | } | |
29310 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
29311 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
29312 | } | |
29313 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
29314 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
29315 | } | |
29316 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
29317 | return (void *)((wxWindow *) ((wxControl *) x)); | |
29318 | } | |
29319 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
29320 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
29321 | } | |
29322 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
29323 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
29324 | } | |
29325 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
29326 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
29327 | } | |
29328 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
29329 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
29330 | } | |
15afbcd0 RD |
29331 | 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}}; |
29332 | 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}}; | |
29333 | 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}}; | |
29334 | 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}}; | |
29335 | 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}}; | |
29336 | 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}}; | |
29337 | 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}}; | |
29338 | 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}}; | |
4276dc52 | 29339 | 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}}; |
15afbcd0 RD |
29340 | 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}}; |
29341 | 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}}; | |
29342 | 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}}; | |
29343 | 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}}; | |
29344 | 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}}; | |
29345 | 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}}; | |
29346 | 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}}; | |
29347 | 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}}; | |
29348 | 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}}; | |
29349 | 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}}; | |
29350 | 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}}; | |
29351 | 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}}; | |
29352 | 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}}; | |
29353 | 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}}; | |
29354 | 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}}; | |
29355 | 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}}; | |
29356 | 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}}; | |
29357 | 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}}; | |
29358 | 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}}; | |
29359 | 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}}; | |
29360 | 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}}; | |
29361 | 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}}; | |
29362 | 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}}; | |
29363 | 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}}; | |
29364 | 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}}; | |
29365 | 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}}; | |
29366 | 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}}; | |
29367 | 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}}; | |
29368 | 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}}; | |
29369 | 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}}; | |
29370 | 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}}; | |
29371 | 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}}; | |
29372 | 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}}; | |
29373 | 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}}; | |
29374 | 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}}; | |
29375 | 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}}; | |
4276dc52 | 29376 | 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}}; |
15afbcd0 RD |
29377 | 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}}; |
29378 | 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}}; | |
29379 | 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}}; | |
29380 | 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}}; | |
29381 | 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}}; | |
29382 | 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}}; | |
29383 | 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}}; | |
29384 | 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}}; | |
29385 | 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}}; | |
29386 | 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}}; | |
29387 | 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}}; | |
29388 | 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}}; | |
29389 | 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}}; | |
29390 | 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}}; | |
29391 | 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}}; | |
29392 | 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}}; | |
29393 | 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}}; | |
29394 | 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}}; | |
29395 | 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}}; | |
29396 | 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}}; | |
29397 | 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}}; | |
29398 | 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}}; | |
29399 | 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}}; | |
29400 | 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}}; | |
29401 | 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}}; | |
29402 | 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}}; | |
29403 | 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}}; | |
29404 | 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}}; | |
29405 | 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}}; | |
29406 | 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}}; | |
29407 | 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}}; | |
29408 | 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}}; | |
29409 | 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}}; | |
29410 | 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}}; | |
29411 | 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}}; | |
29412 | 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}}; | |
29413 | 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}}; | |
29414 | 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}}; | |
29415 | 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}}; | |
29416 | 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 |
29417 | |
29418 | static swig_type_info *swig_types_initial[] = { | |
29419 | _swigt__p_wxLogChain, | |
29420 | _swigt__p_wxMutexGuiLocker, | |
29421 | _swigt__p_wxFileHistory, | |
29422 | _swigt__p_wxLog, | |
29423 | _swigt__p_wxDateTime__TimeZone, | |
29424 | _swigt__p_wxMenu, | |
29425 | _swigt__p_wxEvent, | |
29426 | _swigt__p_wxConfigBase, | |
4276dc52 | 29427 | _swigt__p_wxDisplay, |
d14a1e28 RD |
29428 | _swigt__p_wxFileType, |
29429 | _swigt__p_wxLogGui, | |
29430 | _swigt__p_wxFont, | |
29431 | _swigt__p_wxDataFormat, | |
29432 | _swigt__p_wxTimerEvent, | |
29433 | _swigt__p_wxCaret, | |
29434 | _swigt__p_int, | |
29435 | _swigt__p_wxSize, | |
29436 | _swigt__p_wxClipboard, | |
29437 | _swigt__p_wxStopWatch, | |
29438 | _swigt__p_wxDC, | |
29439 | _swigt__p_wxClipboardLocker, | |
29440 | _swigt__p_wxIcon, | |
29441 | _swigt__p_wxLogStderr, | |
29442 | _swigt__p_wxLogTextCtrl, | |
29443 | _swigt__p_wxTextCtrl, | |
29444 | _swigt__p_wxBusyCursor, | |
d14a1e28 RD |
29445 | _swigt__p_wxPyTextDataObject, |
29446 | _swigt__p_wxBitmapDataObject, | |
29447 | _swigt__p_wxTextDataObject, | |
29448 | _swigt__p_wxDataObject, | |
4d5c3d91 | 29449 | _swigt__p_wxPyBitmapDataObject, |
994141e6 | 29450 | _swigt__p_wxFileDataObject, |
d14a1e28 RD |
29451 | _swigt__p_wxCustomDataObject, |
29452 | _swigt__p_wxURLDataObject, | |
29453 | _swigt__p_wxMetafileDataObject, | |
4d5c3d91 | 29454 | _swigt__p_wxSound, |
d14a1e28 RD |
29455 | _swigt__p_wxTimerRunner, |
29456 | _swigt__p_wxLogWindow, | |
29457 | _swigt__p_wxTimeSpan, | |
29458 | _swigt__p_wxArrayString, | |
29459 | _swigt__p_wxWindowDisabler, | |
29460 | _swigt__p_wxToolTip, | |
29461 | _swigt__p_wxDataObjectComposite, | |
29462 | _swigt__p_wxFileConfig, | |
29463 | _swigt__p_wxSystemSettings, | |
4276dc52 | 29464 | _swigt__p_wxVideoMode, |
d14a1e28 RD |
29465 | _swigt__p_wxPyDataObjectSimple, |
29466 | _swigt__p_wxDataObjectSimple, | |
29467 | _swigt__p_wxEvtHandler, | |
29468 | _swigt__p_wxRect, | |
994141e6 | 29469 | _swigt__p_char, |
d14a1e28 RD |
29470 | _swigt__p_wxSingleInstanceChecker, |
29471 | _swigt__p_wxFileTypeInfo, | |
29472 | _swigt__p_wxFrame, | |
29473 | _swigt__p_wxTimer, | |
29474 | _swigt__p_wxMimeTypesManager, | |
29475 | _swigt__p_wxPyArtProvider, | |
29476 | _swigt__p_wxPyTipProvider, | |
29477 | _swigt__p_wxTipProvider, | |
29478 | _swigt__p_wxJoystick, | |
29479 | _swigt__p_wxSystemOptions, | |
29480 | _swigt__p_wxPoint, | |
29481 | _swigt__p_wxJoystickEvent, | |
29482 | _swigt__p_wxCursor, | |
29483 | _swigt__p_wxObject, | |
29484 | _swigt__p_wxOutputStream, | |
29485 | _swigt__p_wxDateTime, | |
29486 | _swigt__p_wxPyDropSource, | |
29487 | _swigt__p_wxWindow, | |
29488 | _swigt__p_wxString, | |
29489 | _swigt__p_wxPyProcess, | |
29490 | _swigt__p_wxBitmap, | |
29491 | _swigt__p_wxConfig, | |
29492 | _swigt__p_wxChar, | |
29493 | _swigt__p_wxBusyInfo, | |
29494 | _swigt__p_wxPyDropTarget, | |
29495 | _swigt__p_wxPyTextDropTarget, | |
29496 | _swigt__p_wxPyFileDropTarget, | |
29497 | _swigt__p_wxProcessEvent, | |
29498 | _swigt__p_wxPyLog, | |
29499 | _swigt__p_wxLogNull, | |
29500 | _swigt__p_wxColour, | |
4d5c3d91 | 29501 | _swigt__p_wxByte, |
d14a1e28 RD |
29502 | _swigt__p_wxConfigPathChanger, |
29503 | _swigt__p_wxPyTimer, | |
29504 | _swigt__p_wxDateSpan, | |
29505 | 0 | |
29506 | }; | |
29507 | ||
29508 | ||
29509 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
29510 | ||
29511 | static swig_const_info swig_const_table[] = { | |
15afbcd0 RD |
29512 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, |
29513 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
29514 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
29515 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
29516 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
d14a1e28 RD |
29517 | {0}}; |
29518 | ||
29519 | #ifdef __cplusplus | |
29520 | } | |
29521 | #endif | |
29522 | ||
29523 | #ifdef __cplusplus | |
29524 | extern "C" | |
29525 | #endif | |
29526 | SWIGEXPORT(void) SWIG_init(void) { | |
29527 | static PyObject *SWIG_globals = 0; | |
29528 | static int typeinit = 0; | |
29529 | PyObject *m, *d; | |
29530 | int i; | |
29531 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
29532 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
29533 | d = PyModule_GetDict(m); | |
29534 | ||
29535 | if (!typeinit) { | |
29536 | for (i = 0; swig_types_initial[i]; i++) { | |
29537 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
29538 | } | |
29539 | typeinit = 1; | |
29540 | } | |
29541 | SWIG_InstallConstants(d,swig_const_table); | |
29542 | ||
15afbcd0 RD |
29543 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT)); |
29544 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT)); | |
29545 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT)); | |
29546 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT)); | |
29547 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
29548 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE)); | |
29549 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT)); | |
29550 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT)); | |
29551 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT)); | |
29552 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR)); | |
29553 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND)); | |
29554 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP)); | |
29555 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
29556 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
29557 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU)); | |
29558 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW)); | |
29559 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME)); | |
29560 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT)); | |
29561 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT)); | |
29562 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
29563 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
29564 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
29565 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE)); | |
29566 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT)); | |
29567 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
29568 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE)); | |
29569 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE)); | |
29570 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW)); | |
29571 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW)); | |
29572 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT)); | |
29573 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT)); | |
29574 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
29575 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
29576 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT)); | |
29577 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
29578 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT)); | |
29579 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW)); | |
29580 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT)); | |
29581 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT)); | |
29582 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK)); | |
29583 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX)); | |
29584 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT)); | |
29585 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
29586 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
29587 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT)); | |
29588 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR)); | |
29589 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX)); | |
29590 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS)); | |
29591 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X)); | |
29592 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y)); | |
29593 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X)); | |
29594 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y)); | |
29595 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X)); | |
29596 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y)); | |
29597 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X)); | |
29598 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y)); | |
29599 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X)); | |
29600 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y)); | |
29601 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X)); | |
29602 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y)); | |
29603 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X)); | |
29604 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X)); | |
29605 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y)); | |
29606 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X)); | |
29607 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y)); | |
29608 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X)); | |
29609 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y)); | |
29610 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X)); | |
29611 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y)); | |
29612 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X)); | |
29613 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y)); | |
29614 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X)); | |
29615 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y)); | |
29616 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y)); | |
29617 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X)); | |
29618 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X)); | |
29619 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y)); | |
29620 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y)); | |
29621 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y)); | |
29622 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y)); | |
29623 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT)); | |
29624 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT)); | |
29625 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS)); | |
29626 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS)); | |
29627 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
29628 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME)); | |
29629 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE)); | |
29630 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY)); | |
29631 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA)); | |
29632 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL)); | |
29633 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP)); | |
b2dc1044 RD |
29634 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
29635 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
29636 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
29637 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
15afbcd0 RD |
29638 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF)); |
29639 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT)); | |
29640 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS)); | |
29641 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT)); | |
d14a1e28 | 29642 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); |
15afbcd0 RD |
29643 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError)); |
29644 | PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error)); | |
29645 | PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning)); | |
29646 | PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message)); | |
29647 | PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status)); | |
29648 | PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info)); | |
29649 | PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug)); | |
29650 | PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace)); | |
29651 | PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress)); | |
29652 | PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User)); | |
29653 | PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max)); | |
29654 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); | |
29655 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); | |
29656 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
29657 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
29658 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
29659 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001)); | |
29660 | PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002)); | |
29661 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004)); | |
29662 | PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008)); | |
29663 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100)); | |
29664 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT)); | |
29665 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT)); | |
29666 | PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK)); | |
29667 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL)); | |
29668 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED)); | |
29669 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS)); | |
29670 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR)); | |
29671 | PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE)); | |
29672 | PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP)); | |
29673 | PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT)); | |
29674 | PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT)); | |
29675 | PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL)); | |
29676 | PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP)); | |
29677 | PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT)); | |
29678 | PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT)); | |
29679 | PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT)); | |
29680 | PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE)); | |
29681 | PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL)); | |
29682 | PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS)); | |
29683 | PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV)); | |
29684 | PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS)); | |
29685 | PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE)); | |
29686 | PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM)); | |
29687 | PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM)); | |
d14a1e28 | 29688 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); |
15afbcd0 RD |
29689 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC)); |
29690 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC)); | |
29691 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE)); | |
29692 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER)); | |
d14a1e28 RD |
29693 | |
29694 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
29695 | ||
15afbcd0 RD |
29696 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1)); |
29697 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2)); | |
29698 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY)); | |
29699 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1)); | |
29700 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2)); | |
29701 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3)); | |
29702 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4)); | |
d14a1e28 RD |
29703 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); |
29704 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
29705 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
29706 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
15afbcd0 RD |
29707 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC)); |
29708 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC)); | |
29709 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP)); | |
29710 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD)); | |
29711 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE)); | |
29712 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE)); | |
29713 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME)); | |
29714 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL)); | |
d14a1e28 RD |
29715 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); |
29716 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
29717 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
29718 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
29719 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
29720 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
29721 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
29722 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
29723 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
29724 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
29725 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
29726 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
29727 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
29728 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
29729 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
29730 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
29731 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
29732 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
29733 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
29734 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
29735 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
29736 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
29737 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
29738 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
29739 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
29740 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
29741 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
29742 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
29743 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
29744 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
29745 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
29746 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
29747 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
29748 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
29749 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
29750 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
29751 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
29752 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
29753 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
29754 | ||
29755 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
29756 | ||
15afbcd0 RD |
29757 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE)); |
29758 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE)); | |
29759 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH)); | |
29760 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
29761 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown)); | |
29762 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String)); | |
29763 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean)); | |
29764 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer)); | |
29765 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float)); | |
b2dc1044 RD |
29766 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); |
29767 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
15afbcd0 RD |
29768 | PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local)); |
29769 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12)); | |
29770 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11)); | |
29771 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10)); | |
29772 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9)); | |
29773 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8)); | |
29774 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7)); | |
29775 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6)); | |
29776 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5)); | |
29777 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4)); | |
29778 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3)); | |
29779 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2)); | |
29780 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1)); | |
29781 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0)); | |
29782 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1)); | |
29783 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2)); | |
29784 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3)); | |
29785 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4)); | |
29786 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5)); | |
29787 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6)); | |
29788 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7)); | |
29789 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8)); | |
29790 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9)); | |
29791 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10)); | |
29792 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11)); | |
29793 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12)); | |
29794 | PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET)); | |
29795 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST)); | |
29796 | PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET)); | |
29797 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST)); | |
29798 | PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET)); | |
29799 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST)); | |
29800 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK)); | |
29801 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD)); | |
29802 | PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST)); | |
29803 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT)); | |
29804 | PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST)); | |
29805 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT)); | |
29806 | PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST)); | |
29807 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT)); | |
29808 | PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST)); | |
29809 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT)); | |
29810 | PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST)); | |
29811 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT)); | |
29812 | PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST)); | |
29813 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST)); | |
29814 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT)); | |
29815 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST)); | |
29816 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST)); | |
29817 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST)); | |
29818 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST)); | |
29819 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC)); | |
29820 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian)); | |
29821 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian)); | |
29822 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown)); | |
29823 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard)); | |
29824 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska)); | |
29825 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania)); | |
29826 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria)); | |
29827 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen)); | |
29828 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg)); | |
29829 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol)); | |
29830 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia)); | |
29831 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria)); | |
29832 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium)); | |
29833 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria)); | |
29834 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1)); | |
29835 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2)); | |
29836 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3)); | |
29837 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada)); | |
29838 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China)); | |
29839 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1)); | |
29840 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2)); | |
29841 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia)); | |
29842 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark)); | |
29843 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt)); | |
29844 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia)); | |
29845 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland)); | |
29846 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France)); | |
29847 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace)); | |
29848 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine)); | |
29849 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg)); | |
29850 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany)); | |
29851 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic)); | |
29852 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia)); | |
29853 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant)); | |
29854 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain)); | |
29855 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece)); | |
29856 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary)); | |
29857 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland)); | |
29858 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy)); | |
29859 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan)); | |
29860 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1)); | |
29861 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2)); | |
29862 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3)); | |
29863 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia)); | |
29864 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania)); | |
29865 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg)); | |
29866 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands)); | |
29867 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen)); | |
29868 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
29869 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
29870 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland)); | |
29871 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway)); | |
29872 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland)); | |
29873 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal)); | |
29874 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania)); | |
29875 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia)); | |
29876 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland)); | |
29877 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain)); | |
29878 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden)); | |
29879 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland)); | |
29880 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic)); | |
29881 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant)); | |
29882 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey)); | |
29883 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA)); | |
29884 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales)); | |
29885 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia)); | |
29886 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown)); | |
29887 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default)); | |
29888 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start)); | |
29889 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC)); | |
29890 | PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France)); | |
29891 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany)); | |
29892 | PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK)); | |
29893 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End)); | |
29894 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia)); | |
29895 | PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA)); | |
29896 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan)); | |
29897 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb)); | |
29898 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar)); | |
29899 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr)); | |
29900 | PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May)); | |
29901 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun)); | |
29902 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul)); | |
29903 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug)); | |
29904 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep)); | |
29905 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct)); | |
29906 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov)); | |
29907 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec)); | |
29908 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month)); | |
29909 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun)); | |
29910 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon)); | |
29911 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue)); | |
29912 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed)); | |
29913 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu)); | |
29914 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri)); | |
29915 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat)); | |
29916 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay)); | |
29917 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year)); | |
29918 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full)); | |
29919 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr)); | |
29920 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First)); | |
29921 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First)); | |
29922 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First)); | |
98e665d3 | 29923 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); |
15afbcd0 RD |
29924 | PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID)); |
29925 | PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT)); | |
29926 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP)); | |
29927 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE)); | |
29928 | PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK)); | |
29929 | PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF)); | |
29930 | PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF)); | |
29931 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT)); | |
29932 | PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB)); | |
29933 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE)); | |
29934 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA)); | |
29935 | PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF)); | |
29936 | PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE)); | |
29937 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT)); | |
29938 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE)); | |
29939 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME)); | |
29940 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE)); | |
29941 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE)); | |
29942 | PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML)); | |
29943 | PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX)); | |
d14a1e28 | 29944 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); |
15afbcd0 RD |
29945 | PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get)); |
29946 | PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set)); | |
29947 | PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both)); | |
29948 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly)); | |
29949 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove)); | |
29950 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove)); | |
29951 | PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError)); | |
29952 | PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone)); | |
29953 | PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy)); | |
29954 | PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove)); | |
29955 | PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink)); | |
29956 | PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel)); | |
d14a1e28 RD |
29957 | |
29958 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
29959 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
29960 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
29961 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
29962 | ||
29963 | SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); | |
4276dc52 | 29964 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); |
d14a1e28 RD |
29965 | } |
29966 |