]>
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] | |
36cadbf7 RD |
235 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[26] |
236 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[27] | |
237 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[28] | |
238 | #define SWIGTYPE_p_wxTextDataObject swig_types[29] | |
239 | #define SWIGTYPE_p_wxDataObject swig_types[30] | |
4276dc52 RD |
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] | |
36cadbf7 RD |
291 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[82] |
292 | #define SWIGTYPE_p_wxPyTimer swig_types[83] | |
293 | #define SWIGTYPE_p_wxDateSpan swig_types[84] | |
294 | static swig_type_info *swig_types[86]; | |
d14a1e28 RD |
295 | |
296 | /* -------- TYPES TABLE (END) -------- */ | |
297 | ||
298 | ||
299 | /*----------------------------------------------- | |
54f9ee45 | 300 | @(target):= _misc_.so |
d14a1e28 | 301 | ------------------------------------------------*/ |
54f9ee45 | 302 | #define SWIG_init init_misc_ |
d14a1e28 | 303 | |
54f9ee45 | 304 | #define SWIG_name "_misc_" |
d14a1e28 | 305 | |
15afbcd0 | 306 | /* Auxiliar swig macros */ |
994141e6 | 307 | |
994141e6 | 308 | #ifdef __cplusplus |
15afbcd0 | 309 | #define SWIGSTATICINLINE(a) static inline a |
994141e6 | 310 | #define SWIGSTATIC(a) static a |
15afbcd0 RD |
311 | #define swig_new_array(type, size) (new type[(size)]) |
312 | #define swig_delete_array(cptr) delete[] cptr | |
313 | #define swig_const_cast(type,a) const_cast<type>(a) | |
314 | #define swig_static_cast(type,a) static_cast<type>(a) | |
315 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
994141e6 | 316 | |
994141e6 | 317 | #ifdef HAVE_NUMERIC_CAST |
15afbcd0 | 318 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) |
994141e6 | 319 | #else |
15afbcd0 | 320 | #define swig_numeric_cast(type,a) static_cast<type>(a) |
994141e6 RD |
321 | #endif |
322 | ||
15afbcd0 RD |
323 | #else /* C case */ |
324 | ||
325 | #define SWIGSTATICINLINE(a) static a | |
326 | #define SWIGSTATIC(a) static a | |
327 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
328 | #define swig_delete_array(cptr) free((char*)cptr) | |
329 | #define swig_const_cast(type,a) (type)(a) | |
330 | #define swig_static_cast(type,a) (type)(a) | |
331 | #define swig_reinterpret_cast(type,a) (type)(a) | |
332 | #define swig_numeric_cast(type,a) (type)(a) | |
333 | ||
334 | #endif /* __cplusplus */ | |
994141e6 RD |
335 | |
336 | ||
15afbcd0 RD |
337 | #define SWIG_FromSignedChar PyInt_FromLong |
338 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
339 | #define SWIG_FromShort PyInt_FromLong | |
340 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
341 | #define SWIG_FromInt PyInt_FromLong | |
342 | #define SWIG_FromLong PyInt_FromLong | |
343 | #define SWIG_FromFloat PyFloat_FromDouble | |
344 | #define SWIG_FromDouble PyFloat_FromDouble | |
345 | #define SWIG_FromFloat PyFloat_FromDouble | |
346 | #define SWIG_FromDouble PyFloat_FromDouble | |
994141e6 RD |
347 | |
348 | ||
d14a1e28 RD |
349 | #include "wx/wxPython/wxPython.h" |
350 | #include "wx/wxPython/pyclasses.h" | |
351 | #include "wx/wxPython/pyistream.h" | |
352 | ||
d14a1e28 | 353 | |
b2dc1044 | 354 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 | 355 | |
d14a1e28 | 356 | |
994141e6 | 357 | |
15afbcd0 RD |
358 | #include <limits.h> |
359 | ||
360 | ||
361 | SWIGSTATICINLINE(long) | |
362 | SWIG_CheckLongInRange(long value, const char* type, | |
363 | long min_value, long max_value) | |
364 | { | |
365 | if (!PyErr_Occurred()) { | |
366 | if (value < min_value) { | |
367 | PyObject *err = | |
368 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
369 | value, type, min_value); | |
370 | ||
371 | PyErr_SetObject(PyExc_OverflowError, err); | |
372 | Py_DECREF(err); | |
373 | } else if (value > max_value) { | |
374 | PyObject *err = | |
375 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
376 | value, type, max_value); | |
377 | PyErr_SetObject(PyExc_OverflowError, err); | |
378 | Py_DECREF(err); | |
379 | } | |
380 | } | |
381 | return value; | |
382 | } | |
383 | ||
384 | ||
385 | SWIGSTATICINLINE(long) | |
386 | SWIG_AsLong(PyObject * obj) | |
387 | { | |
69223c70 RD |
388 | if (PyNumber_Check(obj)) |
389 | return PyInt_AsLong(obj); | |
390 | else { | |
391 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
392 | obj->ob_type->tp_name); | |
393 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
394 | Py_DECREF(errmsg); | |
395 | return 0; | |
396 | } | |
15afbcd0 RD |
397 | } |
398 | ||
399 | ||
400 | #if INT_MAX != LONG_MAX | |
401 | SWIGSTATICINLINE(int) | |
402 | SWIG_AsInt(PyObject *obj) | |
994141e6 | 403 | { |
15afbcd0 RD |
404 | return swig_numeric_cast(int, |
405 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
406 | "int", INT_MIN, INT_MAX)); | |
407 | } | |
408 | #else | |
409 | #define SWIG_AsInt SWIG_AsLong | |
410 | #endif | |
411 | ||
412 | ||
413 | SWIGSTATICINLINE(int) | |
414 | SWIG_CheckInt(PyObject* obj) | |
415 | { | |
416 | SWIG_AsInt(obj); | |
417 | if (PyErr_Occurred()) { | |
418 | PyErr_Clear(); | |
419 | return 0; | |
420 | } else { | |
421 | return 1; | |
422 | } | |
994141e6 RD |
423 | } |
424 | ||
b2dc1044 RD |
425 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
426 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
427 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
d14a1e28 | 428 | |
15afbcd0 RD |
429 | SWIGSTATICINLINE(int) |
430 | SWIG_CheckLong(PyObject* obj) | |
994141e6 | 431 | { |
15afbcd0 RD |
432 | SWIG_AsLong(obj); |
433 | if (PyErr_Occurred()) { | |
434 | PyErr_Clear(); | |
435 | return 0; | |
436 | } else { | |
437 | return 1; | |
438 | } | |
994141e6 RD |
439 | } |
440 | ||
441 | ||
15afbcd0 RD |
442 | SWIGSTATICINLINE(bool) |
443 | SWIG_AsBool(PyObject *obj) | |
994141e6 RD |
444 | { |
445 | return PyObject_IsTrue(obj) ? true : false; | |
446 | } | |
447 | ||
448 | ||
15afbcd0 RD |
449 | SWIGSTATICINLINE(int) |
450 | SWIG_CheckBool(PyObject* obj) | |
451 | { | |
452 | SWIG_AsBool(obj); | |
453 | if (PyErr_Occurred()) { | |
454 | PyErr_Clear(); | |
455 | return 0; | |
456 | } else { | |
457 | return 1; | |
458 | } | |
459 | } | |
460 | ||
461 | ||
d14a1e28 RD |
462 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
463 | PyObject* o2; | |
464 | PyObject* o3; | |
465 | ||
466 | if (!target) { | |
467 | target = o; | |
468 | } else if (target == Py_None) { | |
469 | Py_DECREF(Py_None); | |
470 | target = o; | |
471 | } else { | |
472 | if (!PyTuple_Check(target)) { | |
473 | o2 = target; | |
474 | target = PyTuple_New(1); | |
475 | PyTuple_SetItem(target, 0, o2); | |
476 | } | |
477 | o3 = PyTuple_New(1); | |
478 | PyTuple_SetItem(o3, 0, o); | |
479 | ||
480 | o2 = target; | |
481 | target = PySequence_Concat(o2, o3); | |
482 | Py_DECREF(o2); | |
483 | Py_DECREF(o3); | |
484 | } | |
485 | return target; | |
486 | } | |
487 | ||
488 | ||
489 | long wxGetFreeMemory() | |
39f61e25 RD |
490 | { wxPyRaiseNotImplemented(); return 0; } |
491 | ||
492 | ||
15afbcd0 RD |
493 | SWIGSTATICINLINE(unsigned long) |
494 | SWIG_AsUnsignedLong(PyObject * obj) | |
495 | { | |
496 | if (PyLong_Check(obj)) { | |
497 | return PyLong_AsUnsignedLong(obj); | |
498 | } else { | |
69223c70 | 499 | long i = SWIG_AsLong(obj); |
15afbcd0 | 500 | if ( !PyErr_Occurred() && (i < 0)) { |
69223c70 | 501 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); |
15afbcd0 RD |
502 | } |
503 | return i; | |
504 | } | |
505 | } | |
506 | ||
507 | ||
508 | SWIGSTATICINLINE(int) | |
509 | SWIG_CheckUnsignedLong(PyObject* obj) | |
510 | { | |
511 | SWIG_AsUnsignedLong(obj); | |
512 | if (PyErr_Occurred()) { | |
513 | PyErr_Clear(); | |
514 | return 0; | |
515 | } else { | |
516 | return 1; | |
517 | } | |
518 | } | |
519 | ||
520 | ||
521 | SWIGSTATICINLINE(PyObject* ) | |
522 | SWIG_FromUnsignedLong(unsigned long value) | |
994141e6 | 523 | { |
15afbcd0 RD |
524 | return (value > LONG_MAX) ? |
525 | PyLong_FromUnsignedLong(value) | |
526 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
994141e6 RD |
527 | } |
528 | ||
529 | ||
d14a1e28 RD |
530 | void wxWakeUpMainThread() {} |
531 | ||
532 | ||
533 | bool wxThread_IsMain() { | |
534 | #ifdef WXP_WITH_THREAD | |
535 | return wxThread::IsMain(); | |
536 | #else | |
e811c8ce | 537 | return True; |
d14a1e28 RD |
538 | #endif |
539 | } | |
540 | ||
541 | ||
542 | int wxCaret_GetBlinkTime() { | |
543 | return wxCaret::GetBlinkTime(); | |
544 | } | |
545 | ||
546 | void wxCaret_SetBlinkTime(int milliseconds) { | |
547 | wxCaret::SetBlinkTime(milliseconds); | |
548 | } | |
549 | ||
550 | ||
551 | #include <wx/snglinst.h> | |
552 | ||
553 | ||
554 | #ifdef __WXMSW__ | |
555 | #include <wx/msw/private.h> | |
556 | #include <wx/dynload.h> | |
557 | #endif | |
558 | ||
559 | ||
560 | ||
561 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
562 | { | |
563 | #ifdef __WXMSW__ | |
564 | ||
565 | switch (method) | |
566 | { | |
567 | case 1: | |
568 | // This one only partially works. Appears to be an undocumented | |
569 | // "standard" convention that not all widgets adhear to. For | |
570 | // example, for some widgets backgrounds or non-client areas may | |
571 | // not be painted. | |
572 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
573 | break; | |
574 | ||
575 | case 2: | |
576 | // This one works much better, except for on XP. On Win2k nearly | |
577 | // all widgets and their children are captured correctly[**]. On | |
578 | // XP with Themes activated most native widgets draw only | |
579 | // partially, if at all. Without themes it works just like on | |
580 | // Win2k. | |
581 | // | |
582 | // ** For example the radio buttons in a wxRadioBox are not its | |
583 | // children by default, but you can capture it via the panel | |
584 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
585 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
586 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
587 | PRF_ERASEBKGND | PRF_OWNED ); | |
588 | break; | |
589 | ||
590 | case 3: | |
591 | // This one is only defined in the latest SDK and is only | |
592 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
593 | // so I expect that it will work similar to the above. Since it | |
594 | // is avaialble only on XP, it can't be compiled like this and | |
595 | // will have to be loaded dynamically. | |
596 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
597 | ||
598 | // fall through | |
599 | ||
600 | case 4: | |
601 | // Use PrintWindow if available, or fallback to WM_PRINT | |
602 | // otherwise. Unfortunately using PrintWindow is even worse than | |
603 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
604 | // at all, with or without Themes. | |
605 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
e811c8ce | 606 | static bool s_triedToLoad = False; |
d14a1e28 RD |
607 | static PrintWindow_t pfnPrintWindow = NULL; |
608 | if ( !s_triedToLoad ) | |
609 | { | |
610 | ||
e811c8ce | 611 | s_triedToLoad = True; |
d14a1e28 RD |
612 | wxDynamicLibrary dllUser32(_T("user32.dll")); |
613 | if ( dllUser32.IsLoaded() ) | |
614 | { | |
615 | wxLogNull nolog; // Don't report errors here | |
616 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
617 | } | |
618 | } | |
619 | if (pfnPrintWindow) | |
620 | { | |
621 | printf("Using PrintWindow\n"); | |
622 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
623 | } | |
624 | else | |
625 | { | |
626 | printf("Using WM_PRINT\n"); | |
627 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
628 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
629 | } | |
630 | } | |
631 | #endif | |
632 | } | |
633 | ||
634 | ||
635 | ||
636 | #include <wx/tipdlg.h> | |
637 | ||
638 | ||
639 | class wxPyTipProvider : public wxTipProvider { | |
640 | public: | |
641 | wxPyTipProvider(size_t currentTip) | |
642 | : wxTipProvider(currentTip) {} | |
643 | ||
644 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
645 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
646 | PYPRIVATE; | |
647 | }; | |
648 | ||
649 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
650 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
651 | ||
652 | ||
4276dc52 RD |
653 | //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); |
654 | ||
1c0f361b RD |
655 | IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer); |
656 | ||
4276dc52 RD |
657 | void wxPyTimer::Notify() { |
658 | bool found; | |
4f89f6a3 | 659 | bool blocked = wxPyBeginBlockThreads(); |
4276dc52 RD |
660 | if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) |
661 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); | |
4f89f6a3 | 662 | wxPyEndBlockThreads(blocked); |
4276dc52 RD |
663 | if (! found) |
664 | wxTimer::Notify(); | |
665 | } | |
666 | void wxPyTimer::base_Notify() { | |
667 | wxTimer::Notify(); | |
668 | } | |
669 | ||
d14a1e28 | 670 | |
994141e6 | 671 | |
15afbcd0 RD |
672 | SWIGSTATICINLINE(PyObject *) |
673 | SWIG_FromCharPtr(const char* cptr) | |
674 | { | |
675 | size_t size = cptr ? strlen(cptr) : 0; | |
676 | if (cptr) { | |
677 | if (size > INT_MAX) { | |
678 | return SWIG_NewPointerObj(swig_const_cast(char*,cptr), | |
679 | SWIG_TypeQuery("char *"), 0); | |
680 | } else { | |
681 | return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size)); | |
682 | } | |
683 | } else { | |
684 | Py_INCREF(Py_None); | |
685 | return Py_None; | |
686 | } | |
687 | } | |
688 | ||
689 | ||
690 | SWIGSTATICINLINE(unsigned long) | |
691 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
692 | unsigned long max_value) | |
693 | { | |
694 | if (!PyErr_Occurred()) { | |
695 | if (value > max_value) { | |
696 | PyObject *err = | |
697 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
698 | value, type, max_value); | |
699 | PyErr_SetObject(PyExc_OverflowError, err); | |
700 | Py_DECREF(err); | |
701 | } | |
702 | } | |
703 | return value; | |
704 | } | |
705 | ||
706 | ||
707 | #if UINT_MAX != ULONG_MAX | |
708 | SWIGSTATICINLINE(unsigned int) | |
709 | SWIG_AsUnsignedInt(PyObject *obj) | |
994141e6 | 710 | { |
15afbcd0 RD |
711 | return swig_numeric_cast(unsigned int, |
712 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
713 | "unsigned int", UINT_MAX)); | |
714 | } | |
715 | #else | |
716 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
717 | #endif | |
718 | ||
719 | ||
720 | SWIGSTATICINLINE(int) | |
721 | SWIG_CheckUnsignedInt(PyObject* obj) | |
722 | { | |
723 | SWIG_AsUnsignedInt(obj); | |
724 | if (PyErr_Occurred()) { | |
725 | PyErr_Clear(); | |
726 | return 0; | |
727 | } else { | |
728 | return 1; | |
729 | } | |
994141e6 RD |
730 | } |
731 | ||
d14a1e28 RD |
732 | wxString Log_TimeStamp(){ |
733 | wxString msg; | |
734 | wxLog::TimeStamp(&msg); | |
735 | return msg; | |
736 | } | |
737 | void wxLog_Destroy(wxLog *self){ delete self; } | |
738 | ||
739 | // A wxLog class that can be derived from in wxPython | |
740 | class wxPyLog : public wxLog { | |
741 | public: | |
742 | wxPyLog() : wxLog() {} | |
743 | ||
744 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
745 | bool found; | |
4f89f6a3 | 746 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
747 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { |
748 | PyObject* s = wx2PyString(szString); | |
749 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
750 | Py_DECREF(s); | |
751 | } | |
4f89f6a3 | 752 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
753 | if (! found) |
754 | wxLog::DoLog(level, szString, t); | |
755 | } | |
756 | ||
757 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
758 | bool found; | |
4f89f6a3 | 759 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
760 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { |
761 | PyObject* s = wx2PyString(szString); | |
762 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
763 | Py_DECREF(s); | |
764 | } | |
4f89f6a3 | 765 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
766 | if (! found) |
767 | wxLog::DoLogString(szString, t); | |
768 | } | |
769 | ||
770 | PYPRIVATE; | |
771 | }; | |
772 | ||
773 | ||
774 | ||
775 | ||
776 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
777 | ||
778 | ||
779 | #include <wx/joystick.h> | |
780 | ||
781 | ||
782 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
783 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
784 | class wxJoystick : public wxObject { | |
785 | public: | |
786 | wxJoystick(int joystick = wxJOYSTICK1) { | |
4f89f6a3 | 787 | bool blocked = wxPyBeginBlockThreads(); |
39f61e25 RD |
788 | PyErr_SetString(PyExc_NotImplementedError, |
789 | "wxJoystick is not available on this platform."); | |
4f89f6a3 | 790 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
791 | } |
792 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
793 | int GetZPosition() { return -1; } | |
794 | int GetButtonState() { return -1; } | |
795 | int GetPOVPosition() { return -1; } | |
796 | int GetPOVCTSPosition() { return -1; } | |
797 | int GetRudderPosition() { return -1; } | |
798 | int GetUPosition() { return -1; } | |
799 | int GetVPosition() { return -1; } | |
800 | int GetMovementThreshold() { return -1; } | |
801 | void SetMovementThreshold(int threshold) {} | |
802 | ||
e811c8ce | 803 | bool IsOk(void) { return False; } |
d14a1e28 RD |
804 | int GetNumberJoysticks() { return -1; } |
805 | int GetManufacturerId() { return -1; } | |
806 | int GetProductId() { return -1; } | |
41e2b43e | 807 | wxString GetProductName() { return wxEmptyString; } |
d14a1e28 RD |
808 | int GetXMin() { return -1; } |
809 | int GetYMin() { return -1; } | |
810 | int GetZMin() { return -1; } | |
811 | int GetXMax() { return -1; } | |
812 | int GetYMax() { return -1; } | |
813 | int GetZMax() { return -1; } | |
814 | int GetNumberButtons() { return -1; } | |
815 | int GetNumberAxes() { return -1; } | |
816 | int GetMaxButtons() { return -1; } | |
817 | int GetMaxAxes() { return -1; } | |
818 | int GetPollingMin() { return -1; } | |
819 | int GetPollingMax() { return -1; } | |
820 | int GetRudderMin() { return -1; } | |
821 | int GetRudderMax() { return -1; } | |
822 | int GetUMin() { return -1; } | |
823 | int GetUMax() { return -1; } | |
824 | int GetVMin() { return -1; } | |
825 | int GetVMax() { return -1; } | |
826 | ||
e811c8ce RD |
827 | bool HasRudder() { return False; } |
828 | bool HasZ() { return False; } | |
829 | bool HasU() { return False; } | |
830 | bool HasV() { return False; } | |
831 | bool HasPOV() { return False; } | |
832 | bool HasPOV4Dir() { return False; } | |
833 | bool HasPOVCTS() { return False; } | |
d14a1e28 | 834 | |
e811c8ce RD |
835 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; } |
836 | bool ReleaseCapture() { return False; } | |
d14a1e28 RD |
837 | }; |
838 | #endif | |
839 | ||
840 | ||
4d5c3d91 | 841 | #include <wx/sound.h> |
d14a1e28 RD |
842 | |
843 | ||
dff1fa9b | 844 | #if !wxUSE_SOUND |
d14a1e28 | 845 | // A C++ stub class for wxWave for platforms that don't have it. |
4d5c3d91 | 846 | class wxSound : public wxObject |
d14a1e28 RD |
847 | { |
848 | public: | |
4d5c3d91 | 849 | wxSound() { |
4f89f6a3 | 850 | bool blocked = wxPyBeginBlockThreads(); |
39f61e25 | 851 | PyErr_SetString(PyExc_NotImplementedError, |
4d5c3d91 | 852 | "wxSound is not available on this platform."); |
4f89f6a3 | 853 | wxPyEndBlockThreads(blocked); |
d14a1e28 | 854 | } |
36cadbf7 | 855 | wxSound(const wxString&/*, bool*/) { |
4f89f6a3 | 856 | bool blocked = wxPyBeginBlockThreads(); |
39f61e25 | 857 | PyErr_SetString(PyExc_NotImplementedError, |
4d5c3d91 | 858 | "wxSound is not available on this platform."); |
4f89f6a3 | 859 | wxPyEndBlockThreads(blocked); |
d14a1e28 | 860 | } |
4d5c3d91 | 861 | wxSound(int, const wxByte*) { |
4f89f6a3 | 862 | bool blocked = wxPyBeginBlockThreads(); |
4d5c3d91 RD |
863 | PyErr_SetString(PyExc_NotImplementedError, |
864 | "wxSound is not available on this platform."); | |
4f89f6a3 | 865 | wxPyEndBlockThreads(blocked); |
4d5c3d91 RD |
866 | } |
867 | ||
868 | ~wxSound() {}; | |
d14a1e28 | 869 | |
36cadbf7 | 870 | bool Create(const wxString&/*, bool*/) { return false; } |
4d5c3d91 RD |
871 | bool Create(int, const wxByte*) { return false; }; |
872 | bool IsOk() { return false; }; | |
873 | bool Play(unsigned) const { return false; } | |
874 | static bool Play(const wxString&, unsigned) { return false; } | |
875 | static void Stop() {} | |
d14a1e28 RD |
876 | }; |
877 | ||
878 | #endif | |
879 | ||
36cadbf7 RD |
880 | wxSound *new_wxSound(wxString const &fileName){ |
881 | if (fileName.Length() == 0) | |
882 | return new wxSound; | |
883 | else | |
884 | return new wxSound(fileName); | |
885 | } | |
886 | wxSound *new_wxSound(PyObject *data){ | |
887 | unsigned char* buffer; int size; | |
888 | wxSound *sound = NULL; | |
889 | ||
890 | bool blocked = wxPyBeginBlockThreads(); | |
891 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
892 | goto done; | |
893 | sound = new wxSound(size, buffer); | |
894 | done: | |
895 | wxPyEndBlockThreads(blocked); | |
896 | return sound; | |
897 | } | |
898 | bool wxSound_CreateFromData(wxSound *self,PyObject *data){ | |
899 | #ifndef __WXMAC__ | |
900 | unsigned char* buffer; | |
901 | int size; | |
902 | bool rv = False; | |
903 | ||
904 | bool blocked = wxPyBeginBlockThreads(); | |
905 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
906 | goto done; | |
907 | rv = self->Create(size, buffer); | |
908 | done: | |
909 | wxPyEndBlockThreads(blocked); | |
910 | return rv; | |
911 | #else | |
912 | bool blocked = wxPyBeginBlockThreads(); | |
913 | PyErr_SetString(PyExc_NotImplementedError, | |
914 | "Create from data is not available on this platform."); | |
915 | wxPyEndBlockThreads(blocked); | |
916 | return False; | |
917 | #endif | |
918 | } | |
d14a1e28 RD |
919 | |
920 | #include <wx/mimetype.h> | |
921 | ||
922 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
923 | wxString str; | |
924 | if (self->GetMimeType(&str)) | |
925 | return wx2PyString(str); | |
926 | else | |
927 | RETURN_NONE(); | |
928 | } | |
929 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
930 | wxArrayString arr; | |
931 | if (self->GetMimeTypes(arr)) | |
932 | return wxArrayString2PyList_helper(arr); | |
933 | else | |
934 | RETURN_NONE(); | |
935 | } | |
936 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
937 | wxArrayString arr; | |
938 | if (self->GetExtensions(arr)) | |
939 | return wxArrayString2PyList_helper(arr); | |
940 | else | |
941 | RETURN_NONE(); | |
942 | } | |
943 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
944 | wxIconLocation loc; | |
945 | if (self->GetIcon(&loc)) | |
946 | return new wxIcon(loc); | |
947 | else | |
948 | return NULL; | |
949 | } | |
950 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
951 | wxIconLocation loc; | |
952 | if (self->GetIcon(&loc)) { | |
953 | wxString iconFile = loc.GetFileName(); | |
954 | int iconIndex = -1; | |
955 | ||
956 | ||
957 | ||
958 | // Make a tuple and put the values in it | |
4f89f6a3 | 959 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
960 | PyObject* tuple = PyTuple_New(3); |
961 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
e811c8ce | 962 | wxT("wxIcon"), True)); |
d14a1e28 RD |
963 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); |
964 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
4f89f6a3 | 965 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
966 | return tuple; |
967 | } | |
968 | else | |
969 | RETURN_NONE(); | |
970 | } | |
971 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
972 | wxString str; | |
973 | if (self->GetDescription(&str)) | |
974 | return wx2PyString(str); | |
975 | else | |
976 | RETURN_NONE(); | |
977 | } | |
978 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
979 | wxString str; | |
980 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
981 | return wx2PyString(str); | |
982 | else | |
983 | RETURN_NONE(); | |
984 | } | |
985 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
986 | wxString str; | |
987 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
988 | return wx2PyString(str); | |
989 | else | |
990 | RETURN_NONE(); | |
991 | } | |
992 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
993 | wxArrayString verbs; | |
994 | wxArrayString commands; | |
995 | if (self->GetAllCommands(&verbs, &commands, | |
996 | wxFileType::MessageParameters(filename, mimetype))) { | |
4f89f6a3 | 997 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
998 | PyObject* tuple = PyTuple_New(2); |
999 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
1000 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
4f89f6a3 | 1001 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1002 | return tuple; |
1003 | } | |
1004 | else | |
1005 | RETURN_NONE(); | |
1006 | } | |
1007 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
1008 | return wxFileType::ExpandCommand(command, | |
1009 | wxFileType::MessageParameters(filename, mimetype)); | |
1010 | } | |
1011 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
1012 | wxArrayString arr; | |
1013 | self->EnumAllFileTypes(arr); | |
1014 | return wxArrayString2PyList_helper(arr); | |
1015 | } | |
1016 | ||
1017 | #include <wx/artprov.h> | |
1018 | ||
1019 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
1020 | static const wxString wxPyART_MENU(wxART_MENU); | |
1021 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
1022 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
1023 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
1024 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
1025 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
1026 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
1027 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
1028 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
1029 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
1030 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
1031 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
1032 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
1033 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
1034 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
1035 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
1036 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
1037 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
1038 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
1039 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
1040 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
1041 | static const wxString wxPyART_HELP(wxART_HELP); | |
1042 | static const wxString wxPyART_TIP(wxART_TIP); | |
1043 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
1044 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
1045 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
1046 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
1047 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
1048 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
1049 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
1050 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
1051 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
1052 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
1053 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
1054 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
1055 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
1056 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
1057 | // Python aware wxArtProvider | |
1058 | class wxPyArtProvider : public wxArtProvider { | |
1059 | public: | |
1060 | ||
1061 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
1062 | const wxArtClient& client, | |
1063 | const wxSize& size) { | |
1064 | wxBitmap rval = wxNullBitmap; | |
4f89f6a3 | 1065 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1066 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { |
1067 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
1068 | PyObject* ro; | |
1069 | wxBitmap* ptr; | |
1070 | PyObject* s1, *s2; | |
1071 | s1 = wx2PyString(id); | |
1072 | s2 = wx2PyString(client); | |
1073 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
1074 | Py_DECREF(so); | |
1075 | Py_DECREF(s1); | |
1076 | Py_DECREF(s2); | |
1077 | if (ro) { | |
1078 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
1079 | rval = *ptr; | |
1080 | Py_DECREF(ro); | |
1081 | } | |
1082 | } | |
4f89f6a3 | 1083 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1084 | return rval; |
1085 | } | |
1086 | ||
1087 | PYPRIVATE; | |
1088 | }; | |
1089 | ||
1e0c8722 | 1090 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } |
d14a1e28 RD |
1091 | |
1092 | ||
1093 | ||
1094 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
1095 | PyObject* ret = PyTuple_New(3); | |
1096 | if (ret) { | |
1097 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
1098 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
1099 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
1100 | } | |
1101 | return ret; | |
1102 | } | |
1103 | ||
1104 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
1105 | bool cont; | |
1106 | long index = 0; | |
1107 | wxString value; | |
1108 | ||
1109 | cont = self->GetFirstGroup(value, index); | |
1110 | return __EnumerationHelper(cont, value, index); | |
1111 | } | |
1112 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
1113 | bool cont; | |
1114 | wxString value; | |
1115 | ||
1116 | cont = self->GetNextGroup(value, index); | |
1117 | return __EnumerationHelper(cont, value, index); | |
1118 | } | |
1119 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
1120 | bool cont; | |
1121 | long index = 0; | |
1122 | wxString value; | |
1123 | ||
1124 | cont = self->GetFirstEntry(value, index); | |
1125 | return __EnumerationHelper(cont, value, index); | |
1126 | } | |
1127 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
1128 | bool cont; | |
1129 | wxString value; | |
1130 | ||
1131 | cont = self->GetNextEntry(value, index); | |
1132 | return __EnumerationHelper(cont, value, index); | |
1133 | } | |
1134 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
1135 | long rv; | |
1136 | self->Read(key, &rv, defaultVal); | |
1137 | return rv; | |
1138 | } | |
994141e6 | 1139 | |
15afbcd0 RD |
1140 | SWIGSTATICINLINE(double) |
1141 | SWIG_AsDouble(PyObject *obj) | |
994141e6 | 1142 | { |
69223c70 RD |
1143 | if (PyNumber_Check(obj)) |
1144 | return PyFloat_AsDouble(obj); | |
1145 | else { | |
1146 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
1147 | obj->ob_type->tp_name); | |
1148 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
1149 | Py_DECREF(errmsg); | |
1150 | return 0; | |
1151 | } | |
15afbcd0 RD |
1152 | } |
1153 | ||
1154 | ||
1155 | SWIGSTATICINLINE(int) | |
1156 | SWIG_CheckDouble(PyObject* obj) | |
1157 | { | |
1158 | SWIG_AsDouble(obj); | |
1159 | if (PyErr_Occurred()) { | |
1160 | PyErr_Clear(); | |
1161 | return 0; | |
1162 | } else { | |
1163 | return 1; | |
1164 | } | |
994141e6 RD |
1165 | } |
1166 | ||
d14a1e28 RD |
1167 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ |
1168 | double rv; | |
1169 | self->Read(key, &rv, defaultVal); | |
1170 | return rv; | |
1171 | } | |
1172 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
1173 | bool rv; | |
1174 | self->Read(key, &rv, defaultVal); | |
1175 | return rv; | |
1176 | } | |
1177 | ||
1178 | #include <wx/datetime.h> | |
1179 | ||
d14a1e28 | 1180 | |
33b885b9 RD |
1181 | static const wxString wxPyDateFormatStr(wxT("%c")); |
1182 | static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); | |
d14a1e28 RD |
1183 | |
1184 | #define LOCAL_TZ wxDateTime::Local | |
1185 | ||
994141e6 | 1186 | |
15afbcd0 RD |
1187 | #if UINT_MAX < LONG_MAX |
1188 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
1189 | #else | |
1190 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
1191 | #endif | |
994141e6 | 1192 | |
d14a1e28 RD |
1193 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } |
1194 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
1195 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
1196 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
1197 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
a95a7133 RD |
1198 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ |
1199 | if (!other || !self->IsValid() || !other->IsValid()) return self < other; | |
1200 | return (*self < *other); | |
1201 | } | |
1202 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ | |
1203 | if (!other || !self->IsValid() || !other->IsValid()) return self <= other; | |
1204 | return (*self <= *other); | |
1205 | } | |
1206 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ | |
1207 | if (!other || !self->IsValid() || !other->IsValid()) return self > other; | |
1208 | return (*self > *other); | |
1209 | } | |
1210 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ | |
1211 | if (!other || !self->IsValid() || !other->IsValid()) return self >= other; | |
1212 | return (*self >= *other); | |
1213 | } | |
1214 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ | |
1215 | if (!other || !self->IsValid() || !other->IsValid()) return self == other; | |
1216 | return (*self == *other); | |
1217 | } | |
1218 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ | |
1219 | if (!other || !self->IsValid() || !other->IsValid()) return self != other; | |
1220 | return (*self != *other); | |
1221 | } | |
d14a1e28 RD |
1222 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ |
1223 | const wxChar* rv; | |
1224 | const wxChar* _date = date; | |
1225 | rv = self->ParseRfc822Date(_date); | |
1226 | if (rv == NULL) return -1; | |
1227 | return rv - _date; | |
1228 | } | |
1229 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
1230 | const wxChar* rv; | |
1231 | const wxChar* _date = date; | |
1232 | rv = self->ParseFormat(_date, format, dateDef); | |
1233 | if (rv == NULL) return -1; | |
1234 | return rv - _date; | |
1235 | } | |
1236 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
1237 | const wxChar* rv; | |
1238 | const wxChar* _datetime = datetime; | |
1239 | rv = self->ParseDateTime(_datetime); | |
1240 | if (rv == NULL) return -1; | |
1241 | return rv - _datetime; | |
1242 | } | |
1243 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
1244 | const wxChar* rv; | |
1245 | const wxChar* _date = date; | |
1246 | rv = self->ParseDate(_date); | |
1247 | if (rv == NULL) return -1; | |
1248 | return rv - _date; | |
1249 | } | |
1250 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
1251 | const wxChar* rv; | |
1252 | const wxChar* _time = time; | |
1253 | rv = self->ParseTime(_time); | |
1254 | if (rv == NULL) return -1; | |
1255 | return rv - _time; | |
1256 | } | |
1257 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
1258 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
1259 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
1260 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
22faec7d RD |
1261 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; } |
1262 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; } | |
1263 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; } | |
1264 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; } | |
1265 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; } | |
1266 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
1267 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } |
1268 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
1269 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
1270 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
22faec7d RD |
1271 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; } |
1272 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
1273 | |
1274 | #include <wx/dataobj.h> | |
1275 | ||
1276 | // Create a new class for wxPython to use | |
1277 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1278 | public: | |
1279 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1280 | : wxDataObjectSimple(format) {} | |
1281 | ||
1282 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1283 | bool GetDataHere(void *buf) const; | |
1284 | bool SetData(size_t len, const void *buf) const; | |
1285 | PYPRIVATE; | |
1286 | }; | |
1287 | ||
1288 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1289 | ||
1290 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1291 | // We need to get the data for this object and write it to buf. I think | |
1292 | // the best way to do this for wxPython is to have the Python method | |
1293 | // return either a string or None and then act appropriately with the | |
1294 | // C++ version. | |
1295 | ||
e811c8ce | 1296 | bool rval = False; |
4f89f6a3 | 1297 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1298 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { |
1299 | PyObject* ro; | |
1300 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1301 | if (ro) { | |
1302 | rval = (ro != Py_None && PyString_Check(ro)); | |
1303 | if (rval) | |
1304 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1305 | Py_DECREF(ro); | |
1306 | } | |
1307 | } | |
4f89f6a3 | 1308 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1309 | return rval; |
1310 | } | |
1311 | ||
1312 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1313 | // For this one we simply need to make a string from buf and len | |
1314 | // and send it to the Python method. | |
e811c8ce | 1315 | bool rval = False; |
4f89f6a3 | 1316 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1317 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { |
1318 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1319 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1320 | Py_DECREF(data); | |
1321 | } | |
4f89f6a3 | 1322 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1323 | return rval; |
1324 | } | |
1325 | ||
1326 | // Create a new class for wxPython to use | |
1327 | class wxPyTextDataObject : public wxTextDataObject { | |
1328 | public: | |
1329 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1330 | : wxTextDataObject(text) {} | |
1331 | ||
1332 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1333 | DEC_PYCALLBACK_STRING__const(GetText); | |
1334 | DEC_PYCALLBACK__STRING(SetText); | |
1335 | PYPRIVATE; | |
1336 | }; | |
1337 | ||
1338 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1339 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1340 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1341 | ||
1342 | ||
1343 | // Create a new class for wxPython to use | |
1344 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1345 | public: | |
1346 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1347 | : wxBitmapDataObject(bitmap) {} | |
1348 | ||
1349 | wxBitmap GetBitmap() const; | |
1350 | void SetBitmap(const wxBitmap& bitmap); | |
1351 | PYPRIVATE; | |
1352 | }; | |
1353 | ||
1354 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1355 | wxBitmap* rval = &wxNullBitmap; | |
4f89f6a3 | 1356 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1357 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { |
1358 | PyObject* ro; | |
1359 | wxBitmap* ptr; | |
1360 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1361 | if (ro) { | |
1362 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1363 | rval = ptr; | |
1364 | Py_DECREF(ro); | |
1365 | } | |
1366 | } | |
4f89f6a3 | 1367 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1368 | return *rval; |
1369 | } | |
1370 | ||
1371 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { | |
4f89f6a3 | 1372 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1373 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { |
e811c8ce | 1374 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False); |
d14a1e28 RD |
1375 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); |
1376 | Py_DECREF(bo); | |
1377 | } | |
4f89f6a3 | 1378 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1379 | } |
1380 | ||
1381 | void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){ | |
1382 | if (PyString_Check(data)) { | |
1383 | // for Python we just call SetData here since we always need it to make a copy. | |
1384 | self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1385 | } | |
1386 | else { | |
1387 | // raise a TypeError if not a string | |
1388 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1389 | } | |
1390 | } | |
1391 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ | |
1392 | if (PyString_Check(data)) { | |
1393 | return self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1394 | } | |
1395 | else { | |
1396 | // raise a TypeError if not a string | |
1397 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
e811c8ce | 1398 | return False; |
d14a1e28 RD |
1399 | } |
1400 | } | |
1401 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
1402 | return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
1403 | } | |
1404 | ||
1405 | class wxMetafileDataObject : public wxDataObjectSimple | |
1406 | { | |
1407 | public: | |
39f61e25 | 1408 | wxMetafileDataObject() { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1409 | }; |
1410 | ||
1411 | ||
d14a1e28 RD |
1412 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); |
1413 | ||
1414 | ||
d14a1e28 RD |
1415 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); |
1416 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1417 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1418 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1419 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1420 | ||
1421 | ||
d14a1e28 RD |
1422 | class wxPyTextDropTarget : public wxTextDropTarget { |
1423 | public: | |
1424 | wxPyTextDropTarget() {} | |
1425 | ||
1426 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1427 | ||
1428 | DEC_PYCALLBACK__(OnLeave); | |
1429 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1430 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1431 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1432 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1433 | ||
1434 | PYPRIVATE; | |
1435 | }; | |
1436 | ||
1437 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1438 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1439 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1440 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1441 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1442 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1443 | ||
1444 | ||
1445 | ||
1446 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1447 | public: | |
1448 | wxPyFileDropTarget() {} | |
1449 | ||
1450 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1451 | ||
1452 | DEC_PYCALLBACK__(OnLeave); | |
1453 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1454 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1455 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1456 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1457 | ||
1458 | PYPRIVATE; | |
1459 | }; | |
1460 | ||
1461 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1462 | const wxArrayString& filenames) { | |
e811c8ce | 1463 | bool rval = False; |
4f89f6a3 | 1464 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1465 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { |
1466 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1467 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1468 | Py_DECREF(list); | |
1469 | } | |
4f89f6a3 | 1470 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1471 | return rval; |
1472 | } | |
1473 | ||
1474 | ||
1475 | ||
1476 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1477 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1478 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1479 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1480 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1481 | ||
1482 | ||
1483 | ||
1484 | ||
1485 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
4276dc52 RD |
1486 | |
1487 | #include "wx/display.h" | |
1488 | ||
1489 | bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; } | |
1490 | bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; } | |
1491 | int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1492 | PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){ | |
1493 | PyObject* pyList = NULL; | |
1494 | wxArrayVideoModes arr = self->GetModes(mode); | |
4f89f6a3 | 1495 | bool blocked = wxPyBeginBlockThreads(); |
4276dc52 RD |
1496 | pyList = PyList_New(0); |
1497 | for (int i=0; i < arr.GetCount(); i++) { | |
1498 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
1499 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
1500 | PyList_Append(pyList, pyObj); | |
1501 | } | |
4f89f6a3 | 1502 | wxPyEndBlockThreads(blocked); |
4276dc52 RD |
1503 | return pyList; |
1504 | } | |
d14a1e28 RD |
1505 | #ifdef __cplusplus |
1506 | extern "C" { | |
1507 | #endif | |
1508 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1509 | PyObject *resultobj; | |
1510 | int arg1 ; | |
1511 | wxColour result; | |
994141e6 | 1512 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1513 | char *kwnames[] = { |
1514 | (char *) "index", NULL | |
1515 | }; | |
1516 | ||
994141e6 | 1517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1518 | arg1 = (wxSystemColour) SWIG_AsInt(obj0); |
1519 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1520 | { |
1521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1522 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1523 | ||
1524 | wxPyEndAllowThreads(__tstate); | |
1525 | if (PyErr_Occurred()) SWIG_fail; | |
1526 | } | |
1527 | { | |
1528 | wxColour * resultptr; | |
1529 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 1530 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1531 | } |
1532 | return resultobj; | |
1533 | fail: | |
1534 | return NULL; | |
1535 | } | |
1536 | ||
1537 | ||
1538 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1539 | PyObject *resultobj; | |
1540 | int arg1 ; | |
1541 | wxFont result; | |
994141e6 | 1542 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1543 | char *kwnames[] = { |
1544 | (char *) "index", NULL | |
1545 | }; | |
1546 | ||
994141e6 | 1547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1548 | arg1 = (wxSystemFont) SWIG_AsInt(obj0); |
1549 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1550 | { |
1551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1552 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1553 | ||
1554 | wxPyEndAllowThreads(__tstate); | |
1555 | if (PyErr_Occurred()) SWIG_fail; | |
1556 | } | |
1557 | { | |
1558 | wxFont * resultptr; | |
1559 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 1560 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
1561 | } |
1562 | return resultobj; | |
1563 | fail: | |
1564 | return NULL; | |
1565 | } | |
1566 | ||
1567 | ||
1568 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1569 | PyObject *resultobj; | |
1570 | int arg1 ; | |
1571 | int result; | |
994141e6 | 1572 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1573 | char *kwnames[] = { |
1574 | (char *) "index", NULL | |
1575 | }; | |
1576 | ||
994141e6 | 1577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1578 | arg1 = (wxSystemMetric) SWIG_AsInt(obj0); |
1579 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1580 | { |
1581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1582 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1583 | ||
1584 | wxPyEndAllowThreads(__tstate); | |
1585 | if (PyErr_Occurred()) SWIG_fail; | |
1586 | } | |
15afbcd0 | 1587 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1588 | return resultobj; |
1589 | fail: | |
1590 | return NULL; | |
1591 | } | |
1592 | ||
1593 | ||
1594 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1595 | PyObject *resultobj; | |
1596 | int arg1 ; | |
1597 | bool result; | |
994141e6 | 1598 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1599 | char *kwnames[] = { |
1600 | (char *) "index", NULL | |
1601 | }; | |
1602 | ||
994141e6 | 1603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1604 | arg1 = (wxSystemFeature) SWIG_AsInt(obj0); |
1605 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1606 | { |
1607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1608 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1609 | ||
1610 | wxPyEndAllowThreads(__tstate); | |
1611 | if (PyErr_Occurred()) SWIG_fail; | |
1612 | } | |
4f89f6a3 RD |
1613 | { |
1614 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1615 | } | |
d14a1e28 RD |
1616 | return resultobj; |
1617 | fail: | |
1618 | return NULL; | |
1619 | } | |
1620 | ||
1621 | ||
1622 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1623 | PyObject *resultobj; | |
1624 | int result; | |
1625 | char *kwnames[] = { | |
1626 | NULL | |
1627 | }; | |
1628 | ||
1629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1630 | { | |
1631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1632 | result = (int)wxSystemSettings::GetScreenType(); | |
1633 | ||
1634 | wxPyEndAllowThreads(__tstate); | |
1635 | if (PyErr_Occurred()) SWIG_fail; | |
1636 | } | |
15afbcd0 | 1637 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1638 | return resultobj; |
1639 | fail: | |
1640 | return NULL; | |
1641 | } | |
1642 | ||
1643 | ||
1644 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1645 | PyObject *resultobj; | |
1646 | int arg1 ; | |
994141e6 | 1647 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1648 | char *kwnames[] = { |
1649 | (char *) "screen", NULL | |
1650 | }; | |
1651 | ||
994141e6 | 1652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1653 | arg1 = (wxSystemScreenType) SWIG_AsInt(obj0); |
1654 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1655 | { |
1656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1657 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1658 | ||
1659 | wxPyEndAllowThreads(__tstate); | |
1660 | if (PyErr_Occurred()) SWIG_fail; | |
1661 | } | |
1662 | Py_INCREF(Py_None); resultobj = Py_None; | |
1663 | return resultobj; | |
1664 | fail: | |
1665 | return NULL; | |
1666 | } | |
1667 | ||
1668 | ||
1669 | static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { | |
1670 | PyObject *obj; | |
1671 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1672 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1673 | Py_INCREF(obj); | |
1674 | return Py_BuildValue((char *)""); | |
1675 | } | |
1676 | static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1677 | PyObject *resultobj; | |
1678 | wxSystemOptions *result; | |
1679 | char *kwnames[] = { | |
1680 | NULL | |
1681 | }; | |
1682 | ||
1683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1684 | { | |
1685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1686 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1687 | ||
1688 | wxPyEndAllowThreads(__tstate); | |
1689 | if (PyErr_Occurred()) SWIG_fail; | |
1690 | } | |
15afbcd0 | 1691 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); |
d14a1e28 RD |
1692 | return resultobj; |
1693 | fail: | |
1694 | return NULL; | |
1695 | } | |
1696 | ||
1697 | ||
1698 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1699 | PyObject *resultobj; | |
1700 | wxString *arg1 = 0 ; | |
1701 | wxString *arg2 = 0 ; | |
e811c8ce RD |
1702 | bool temp1 = False ; |
1703 | bool temp2 = False ; | |
d14a1e28 RD |
1704 | PyObject * obj0 = 0 ; |
1705 | PyObject * obj1 = 0 ; | |
1706 | char *kwnames[] = { | |
1707 | (char *) "name",(char *) "value", NULL | |
1708 | }; | |
1709 | ||
1710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1711 | { | |
1712 | arg1 = wxString_in_helper(obj0); | |
1713 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1714 | temp1 = True; |
d14a1e28 RD |
1715 | } |
1716 | { | |
1717 | arg2 = wxString_in_helper(obj1); | |
1718 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 1719 | temp2 = True; |
d14a1e28 RD |
1720 | } |
1721 | { | |
1722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1723 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
1724 | ||
1725 | wxPyEndAllowThreads(__tstate); | |
1726 | if (PyErr_Occurred()) SWIG_fail; | |
1727 | } | |
1728 | Py_INCREF(Py_None); resultobj = Py_None; | |
1729 | { | |
1730 | if (temp1) | |
1731 | delete arg1; | |
1732 | } | |
1733 | { | |
1734 | if (temp2) | |
1735 | delete arg2; | |
1736 | } | |
1737 | return resultobj; | |
1738 | fail: | |
1739 | { | |
1740 | if (temp1) | |
1741 | delete arg1; | |
1742 | } | |
1743 | { | |
1744 | if (temp2) | |
1745 | delete arg2; | |
1746 | } | |
1747 | return NULL; | |
1748 | } | |
1749 | ||
1750 | ||
1751 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1752 | PyObject *resultobj; | |
1753 | wxString *arg1 = 0 ; | |
1754 | int arg2 ; | |
e811c8ce | 1755 | bool temp1 = False ; |
d14a1e28 | 1756 | PyObject * obj0 = 0 ; |
994141e6 | 1757 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1758 | char *kwnames[] = { |
1759 | (char *) "name",(char *) "value", NULL | |
1760 | }; | |
1761 | ||
994141e6 | 1762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
1763 | { |
1764 | arg1 = wxString_in_helper(obj0); | |
1765 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1766 | temp1 = True; |
d14a1e28 | 1767 | } |
15afbcd0 RD |
1768 | arg2 = (int) SWIG_AsInt(obj1); |
1769 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1770 | { |
1771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1772 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
1773 | ||
1774 | wxPyEndAllowThreads(__tstate); | |
1775 | if (PyErr_Occurred()) SWIG_fail; | |
1776 | } | |
1777 | Py_INCREF(Py_None); resultobj = Py_None; | |
1778 | { | |
1779 | if (temp1) | |
1780 | delete arg1; | |
1781 | } | |
1782 | return resultobj; | |
1783 | fail: | |
1784 | { | |
1785 | if (temp1) | |
1786 | delete arg1; | |
1787 | } | |
1788 | return NULL; | |
1789 | } | |
1790 | ||
1791 | ||
1792 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1793 | PyObject *resultobj; | |
1794 | wxString *arg1 = 0 ; | |
1795 | wxString result; | |
e811c8ce | 1796 | bool temp1 = False ; |
d14a1e28 RD |
1797 | PyObject * obj0 = 0 ; |
1798 | char *kwnames[] = { | |
1799 | (char *) "name", NULL | |
1800 | }; | |
1801 | ||
1802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
1803 | { | |
1804 | arg1 = wxString_in_helper(obj0); | |
1805 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1806 | temp1 = True; |
d14a1e28 RD |
1807 | } |
1808 | { | |
1809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1810 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
1811 | ||
1812 | wxPyEndAllowThreads(__tstate); | |
1813 | if (PyErr_Occurred()) SWIG_fail; | |
1814 | } | |
1815 | { | |
1816 | #if wxUSE_UNICODE | |
1817 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1818 | #else | |
1819 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1820 | #endif | |
1821 | } | |
1822 | { | |
1823 | if (temp1) | |
1824 | delete arg1; | |
1825 | } | |
1826 | return resultobj; | |
1827 | fail: | |
1828 | { | |
1829 | if (temp1) | |
1830 | delete arg1; | |
1831 | } | |
1832 | return NULL; | |
1833 | } | |
1834 | ||
1835 | ||
1836 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1837 | PyObject *resultobj; | |
1838 | wxString *arg1 = 0 ; | |
1839 | int result; | |
e811c8ce | 1840 | bool temp1 = False ; |
d14a1e28 RD |
1841 | PyObject * obj0 = 0 ; |
1842 | char *kwnames[] = { | |
1843 | (char *) "name", NULL | |
1844 | }; | |
1845 | ||
1846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
1847 | { | |
1848 | arg1 = wxString_in_helper(obj0); | |
1849 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1850 | temp1 = True; |
d14a1e28 RD |
1851 | } |
1852 | { | |
1853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1854 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
1855 | ||
1856 | wxPyEndAllowThreads(__tstate); | |
1857 | if (PyErr_Occurred()) SWIG_fail; | |
1858 | } | |
15afbcd0 | 1859 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1860 | { |
1861 | if (temp1) | |
1862 | delete arg1; | |
1863 | } | |
1864 | return resultobj; | |
1865 | fail: | |
1866 | { | |
1867 | if (temp1) | |
1868 | delete arg1; | |
1869 | } | |
1870 | return NULL; | |
1871 | } | |
1872 | ||
1873 | ||
1874 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1875 | PyObject *resultobj; | |
1876 | wxString *arg1 = 0 ; | |
1877 | bool result; | |
e811c8ce | 1878 | bool temp1 = False ; |
d14a1e28 RD |
1879 | PyObject * obj0 = 0 ; |
1880 | char *kwnames[] = { | |
1881 | (char *) "name", NULL | |
1882 | }; | |
1883 | ||
1884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
1885 | { | |
1886 | arg1 = wxString_in_helper(obj0); | |
1887 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1888 | temp1 = True; |
d14a1e28 RD |
1889 | } |
1890 | { | |
1891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1892 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
1893 | ||
1894 | wxPyEndAllowThreads(__tstate); | |
1895 | if (PyErr_Occurred()) SWIG_fail; | |
1896 | } | |
4f89f6a3 RD |
1897 | { |
1898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1899 | } | |
d14a1e28 RD |
1900 | { |
1901 | if (temp1) | |
1902 | delete arg1; | |
1903 | } | |
1904 | return resultobj; | |
1905 | fail: | |
1906 | { | |
1907 | if (temp1) | |
1908 | delete arg1; | |
1909 | } | |
1910 | return NULL; | |
1911 | } | |
1912 | ||
1913 | ||
1914 | static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) { | |
1915 | PyObject *obj; | |
1916 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1917 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
1918 | Py_INCREF(obj); | |
1919 | return Py_BuildValue((char *)""); | |
1920 | } | |
b2dc1044 RD |
1921 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { |
1922 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
1923 | return 1; | |
1924 | } | |
1925 | ||
1926 | ||
1927 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
1928 | PyObject *pyobj; | |
1929 | ||
1930 | { | |
1931 | #if wxUSE_UNICODE | |
1932 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1933 | #else | |
1934 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1935 | #endif | |
1936 | } | |
1937 | return pyobj; | |
1938 | } | |
1939 | ||
1940 | ||
1941 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
1942 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
1943 | return 1; | |
1944 | } | |
1945 | ||
1946 | ||
1947 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
1948 | PyObject *pyobj; | |
1949 | ||
1950 | { | |
1951 | #if wxUSE_UNICODE | |
1952 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1953 | #else | |
1954 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1955 | #endif | |
1956 | } | |
1957 | return pyobj; | |
1958 | } | |
1959 | ||
1960 | ||
1961 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
1962 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
1963 | return 1; | |
1964 | } | |
1965 | ||
1966 | ||
1967 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
1968 | PyObject *pyobj; | |
1969 | ||
1970 | { | |
1971 | #if wxUSE_UNICODE | |
1972 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1973 | #else | |
1974 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1975 | #endif | |
1976 | } | |
1977 | return pyobj; | |
1978 | } | |
1979 | ||
1980 | ||
d14a1e28 RD |
1981 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { |
1982 | PyObject *resultobj; | |
1983 | long result; | |
1984 | char *kwnames[] = { | |
1985 | NULL | |
1986 | }; | |
1987 | ||
1988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
1989 | { | |
1990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1991 | result = (long)wxNewId(); | |
1992 | ||
1993 | wxPyEndAllowThreads(__tstate); | |
1994 | if (PyErr_Occurred()) SWIG_fail; | |
1995 | } | |
15afbcd0 | 1996 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
1997 | return resultobj; |
1998 | fail: | |
1999 | return NULL; | |
2000 | } | |
2001 | ||
2002 | ||
2003 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2004 | PyObject *resultobj; | |
2005 | long arg1 ; | |
994141e6 | 2006 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2007 | char *kwnames[] = { |
2008 | (char *) "id", NULL | |
2009 | }; | |
2010 | ||
994141e6 | 2011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2012 | arg1 = (long) SWIG_AsLong(obj0); |
2013 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2014 | { |
2015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2016 | wxRegisterId(arg1); | |
2017 | ||
2018 | wxPyEndAllowThreads(__tstate); | |
2019 | if (PyErr_Occurred()) SWIG_fail; | |
2020 | } | |
2021 | Py_INCREF(Py_None); resultobj = Py_None; | |
2022 | return resultobj; | |
2023 | fail: | |
2024 | return NULL; | |
2025 | } | |
2026 | ||
2027 | ||
2028 | static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2029 | PyObject *resultobj; | |
2030 | long result; | |
2031 | char *kwnames[] = { | |
2032 | NULL | |
2033 | }; | |
2034 | ||
2035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
2036 | { | |
2037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2038 | result = (long)wxGetCurrentId(); | |
2039 | ||
2040 | wxPyEndAllowThreads(__tstate); | |
2041 | if (PyErr_Occurred()) SWIG_fail; | |
2042 | } | |
15afbcd0 | 2043 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2044 | return resultobj; |
2045 | fail: | |
2046 | return NULL; | |
2047 | } | |
2048 | ||
2049 | ||
2050 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2051 | PyObject *resultobj; | |
2052 | char *kwnames[] = { | |
2053 | NULL | |
2054 | }; | |
2055 | ||
2056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
2057 | { | |
2058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2059 | wxBell(); | |
2060 | ||
2061 | wxPyEndAllowThreads(__tstate); | |
2062 | if (PyErr_Occurred()) SWIG_fail; | |
2063 | } | |
2064 | Py_INCREF(Py_None); resultobj = Py_None; | |
2065 | return resultobj; | |
2066 | fail: | |
2067 | return NULL; | |
2068 | } | |
2069 | ||
2070 | ||
2071 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2072 | PyObject *resultobj; | |
2073 | char *kwnames[] = { | |
2074 | NULL | |
2075 | }; | |
2076 | ||
2077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
2078 | { | |
2079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2080 | wxEndBusyCursor(); | |
2081 | ||
2082 | wxPyEndAllowThreads(__tstate); | |
2083 | if (PyErr_Occurred()) SWIG_fail; | |
2084 | } | |
2085 | Py_INCREF(Py_None); resultobj = Py_None; | |
2086 | return resultobj; | |
2087 | fail: | |
2088 | return NULL; | |
2089 | } | |
2090 | ||
2091 | ||
2092 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2093 | PyObject *resultobj; | |
e811c8ce | 2094 | bool arg1 = (bool) True ; |
d14a1e28 RD |
2095 | long result; |
2096 | PyObject * obj0 = 0 ; | |
2097 | char *kwnames[] = { | |
2098 | (char *) "resetTimer", NULL | |
2099 | }; | |
2100 | ||
2101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
2102 | if (obj0) { | |
15afbcd0 RD |
2103 | arg1 = (bool) SWIG_AsBool(obj0); |
2104 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2105 | } |
2106 | { | |
2107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2108 | result = (long)wxGetElapsedTime(arg1); | |
2109 | ||
2110 | wxPyEndAllowThreads(__tstate); | |
2111 | if (PyErr_Occurred()) SWIG_fail; | |
2112 | } | |
15afbcd0 | 2113 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2114 | return resultobj; |
2115 | fail: | |
2116 | return NULL; | |
2117 | } | |
2118 | ||
2119 | ||
2120 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2121 | PyObject *resultobj; | |
2122 | int *arg1 = (int *) 0 ; | |
2123 | int *arg2 = (int *) 0 ; | |
2124 | int temp1 ; | |
2125 | int temp2 ; | |
2126 | char *kwnames[] = { | |
2127 | NULL | |
2128 | }; | |
2129 | ||
2130 | arg1 = &temp1; | |
2131 | arg2 = &temp2; | |
2132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
2133 | { | |
2134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2135 | wxGetMousePosition(arg1,arg2); | |
2136 | ||
2137 | wxPyEndAllowThreads(__tstate); | |
2138 | if (PyErr_Occurred()) SWIG_fail; | |
2139 | } | |
2140 | Py_INCREF(Py_None); resultobj = Py_None; | |
2141 | { | |
2142 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2143 | resultobj = t_output_helper(resultobj,o); | |
2144 | } | |
2145 | { | |
2146 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2147 | resultobj = t_output_helper(resultobj,o); | |
2148 | } | |
2149 | return resultobj; | |
2150 | fail: | |
2151 | return NULL; | |
2152 | } | |
2153 | ||
2154 | ||
2155 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2156 | PyObject *resultobj; | |
2157 | bool result; | |
2158 | char *kwnames[] = { | |
2159 | NULL | |
2160 | }; | |
2161 | ||
2162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
2163 | { | |
2164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2165 | result = (bool)wxIsBusy(); | |
2166 | ||
2167 | wxPyEndAllowThreads(__tstate); | |
2168 | if (PyErr_Occurred()) SWIG_fail; | |
2169 | } | |
4f89f6a3 RD |
2170 | { |
2171 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2172 | } | |
d14a1e28 RD |
2173 | return resultobj; |
2174 | fail: | |
2175 | return NULL; | |
2176 | } | |
2177 | ||
2178 | ||
2179 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2180 | PyObject *resultobj; | |
2181 | wxString result; | |
2182 | char *kwnames[] = { | |
2183 | NULL | |
2184 | }; | |
2185 | ||
2186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
2187 | { | |
2188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2189 | result = wxNow(); | |
2190 | ||
2191 | wxPyEndAllowThreads(__tstate); | |
2192 | if (PyErr_Occurred()) SWIG_fail; | |
2193 | } | |
2194 | { | |
2195 | #if wxUSE_UNICODE | |
2196 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2197 | #else | |
2198 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2199 | #endif | |
2200 | } | |
2201 | return resultobj; | |
2202 | fail: | |
2203 | return NULL; | |
2204 | } | |
2205 | ||
2206 | ||
2207 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2208 | PyObject *resultobj; | |
2209 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2210 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2211 | bool result; | |
e811c8ce | 2212 | bool temp1 = False ; |
d14a1e28 RD |
2213 | PyObject * obj0 = 0 ; |
2214 | char *kwnames[] = { | |
2215 | (char *) "command", NULL | |
2216 | }; | |
2217 | ||
2218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
2219 | if (obj0) { | |
2220 | { | |
2221 | arg1 = wxString_in_helper(obj0); | |
2222 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2223 | temp1 = True; |
d14a1e28 RD |
2224 | } |
2225 | } | |
2226 | { | |
2227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2228 | result = (bool)wxShell((wxString const &)*arg1); | |
2229 | ||
2230 | wxPyEndAllowThreads(__tstate); | |
2231 | if (PyErr_Occurred()) SWIG_fail; | |
2232 | } | |
4f89f6a3 RD |
2233 | { |
2234 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2235 | } | |
d14a1e28 RD |
2236 | { |
2237 | if (temp1) | |
2238 | delete arg1; | |
2239 | } | |
2240 | return resultobj; | |
2241 | fail: | |
2242 | { | |
2243 | if (temp1) | |
2244 | delete arg1; | |
2245 | } | |
2246 | return NULL; | |
2247 | } | |
2248 | ||
2249 | ||
2250 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2251 | PyObject *resultobj; | |
2252 | char *kwnames[] = { | |
2253 | NULL | |
2254 | }; | |
2255 | ||
2256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2257 | { | |
2258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2259 | wxStartTimer(); | |
2260 | ||
2261 | wxPyEndAllowThreads(__tstate); | |
2262 | if (PyErr_Occurred()) SWIG_fail; | |
2263 | } | |
2264 | Py_INCREF(Py_None); resultobj = Py_None; | |
2265 | return resultobj; | |
2266 | fail: | |
2267 | return NULL; | |
2268 | } | |
2269 | ||
2270 | ||
2271 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2272 | PyObject *resultobj; | |
2273 | int *arg1 = (int *) 0 ; | |
2274 | int *arg2 = (int *) 0 ; | |
2275 | int result; | |
2276 | int temp1 ; | |
2277 | int temp2 ; | |
2278 | char *kwnames[] = { | |
2279 | NULL | |
2280 | }; | |
2281 | ||
2282 | arg1 = &temp1; | |
2283 | arg2 = &temp2; | |
2284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
2285 | { | |
2286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2287 | result = (int)wxGetOsVersion(arg1,arg2); | |
2288 | ||
2289 | wxPyEndAllowThreads(__tstate); | |
2290 | if (PyErr_Occurred()) SWIG_fail; | |
2291 | } | |
15afbcd0 | 2292 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2293 | { |
2294 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2295 | resultobj = t_output_helper(resultobj,o); | |
2296 | } | |
2297 | { | |
2298 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2299 | resultobj = t_output_helper(resultobj,o); | |
2300 | } | |
2301 | return resultobj; | |
2302 | fail: | |
2303 | return NULL; | |
2304 | } | |
2305 | ||
2306 | ||
2307 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2308 | PyObject *resultobj; | |
2309 | wxString result; | |
2310 | char *kwnames[] = { | |
2311 | NULL | |
2312 | }; | |
2313 | ||
2314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2315 | { | |
2316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2317 | result = wxGetOsDescription(); | |
2318 | ||
2319 | wxPyEndAllowThreads(__tstate); | |
2320 | if (PyErr_Occurred()) SWIG_fail; | |
2321 | } | |
2322 | { | |
2323 | #if wxUSE_UNICODE | |
2324 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2325 | #else | |
2326 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2327 | #endif | |
2328 | } | |
2329 | return resultobj; | |
2330 | fail: | |
2331 | return NULL; | |
2332 | } | |
2333 | ||
2334 | ||
2335 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2336 | PyObject *resultobj; | |
2337 | long result; | |
2338 | char *kwnames[] = { | |
2339 | NULL | |
2340 | }; | |
2341 | ||
2342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2343 | { | |
2344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2345 | result = (long)wxGetFreeMemory(); | |
2346 | ||
2347 | wxPyEndAllowThreads(__tstate); | |
2348 | if (PyErr_Occurred()) SWIG_fail; | |
2349 | } | |
15afbcd0 | 2350 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2351 | return resultobj; |
2352 | fail: | |
2353 | return NULL; | |
2354 | } | |
2355 | ||
2356 | ||
2357 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2358 | PyObject *resultobj; | |
2359 | int arg1 ; | |
2360 | bool result; | |
994141e6 | 2361 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2362 | char *kwnames[] = { |
2363 | (char *) "wFlags", NULL | |
2364 | }; | |
2365 | ||
994141e6 | 2366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2367 | arg1 = (wxShutdownFlags) SWIG_AsInt(obj0); |
2368 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2369 | { |
2370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2371 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2372 | ||
2373 | wxPyEndAllowThreads(__tstate); | |
2374 | if (PyErr_Occurred()) SWIG_fail; | |
2375 | } | |
4f89f6a3 RD |
2376 | { |
2377 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2378 | } | |
d14a1e28 RD |
2379 | return resultobj; |
2380 | fail: | |
2381 | return NULL; | |
2382 | } | |
2383 | ||
2384 | ||
2385 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2386 | PyObject *resultobj; | |
2387 | int arg1 ; | |
994141e6 | 2388 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2389 | char *kwnames[] = { |
2390 | (char *) "secs", NULL | |
2391 | }; | |
2392 | ||
994141e6 | 2393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2394 | arg1 = (int) SWIG_AsInt(obj0); |
2395 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2396 | { |
2397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2398 | wxSleep(arg1); | |
2399 | ||
2400 | wxPyEndAllowThreads(__tstate); | |
2401 | if (PyErr_Occurred()) SWIG_fail; | |
2402 | } | |
2403 | Py_INCREF(Py_None); resultobj = Py_None; | |
2404 | return resultobj; | |
2405 | fail: | |
2406 | return NULL; | |
2407 | } | |
2408 | ||
2409 | ||
2410 | static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2411 | PyObject *resultobj; | |
2412 | unsigned long arg1 ; | |
2413 | PyObject * obj0 = 0 ; | |
2414 | char *kwnames[] = { | |
2415 | (char *) "milliseconds", NULL | |
2416 | }; | |
2417 | ||
2418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2419 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
2420 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2421 | { |
2422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2423 | wxUsleep(arg1); | |
2424 | ||
2425 | wxPyEndAllowThreads(__tstate); | |
2426 | if (PyErr_Occurred()) SWIG_fail; | |
2427 | } | |
2428 | Py_INCREF(Py_None); resultobj = Py_None; | |
2429 | return resultobj; | |
2430 | fail: | |
2431 | return NULL; | |
2432 | } | |
2433 | ||
2434 | ||
2435 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2436 | PyObject *resultobj; | |
2437 | bool arg1 ; | |
2438 | PyObject * obj0 = 0 ; | |
2439 | char *kwnames[] = { | |
2440 | (char *) "enable", NULL | |
2441 | }; | |
2442 | ||
2443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2444 | arg1 = (bool) SWIG_AsBool(obj0); |
2445 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2446 | { |
2447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2448 | wxEnableTopLevelWindows(arg1); | |
2449 | ||
2450 | wxPyEndAllowThreads(__tstate); | |
2451 | if (PyErr_Occurred()) SWIG_fail; | |
2452 | } | |
2453 | Py_INCREF(Py_None); resultobj = Py_None; | |
2454 | return resultobj; | |
2455 | fail: | |
2456 | return NULL; | |
2457 | } | |
2458 | ||
2459 | ||
2460 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2461 | PyObject *resultobj; | |
2462 | wxString *arg1 = 0 ; | |
2463 | wxString result; | |
e811c8ce | 2464 | bool temp1 = False ; |
d14a1e28 RD |
2465 | PyObject * obj0 = 0 ; |
2466 | char *kwnames[] = { | |
2467 | (char *) "in", NULL | |
2468 | }; | |
2469 | ||
2470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2471 | { | |
2472 | arg1 = wxString_in_helper(obj0); | |
2473 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2474 | temp1 = True; |
d14a1e28 RD |
2475 | } |
2476 | { | |
2477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2478 | result = wxStripMenuCodes((wxString const &)*arg1); | |
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 | { | |
2491 | if (temp1) | |
2492 | delete arg1; | |
2493 | } | |
2494 | return resultobj; | |
2495 | fail: | |
2496 | { | |
2497 | if (temp1) | |
2498 | delete arg1; | |
2499 | } | |
2500 | return NULL; | |
2501 | } | |
2502 | ||
2503 | ||
2504 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2505 | PyObject *resultobj; | |
2506 | wxString result; | |
2507 | char *kwnames[] = { | |
2508 | NULL | |
2509 | }; | |
2510 | ||
2511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2512 | { | |
2513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2514 | result = wxGetEmailAddress(); | |
2515 | ||
2516 | wxPyEndAllowThreads(__tstate); | |
2517 | if (PyErr_Occurred()) SWIG_fail; | |
2518 | } | |
2519 | { | |
2520 | #if wxUSE_UNICODE | |
2521 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2522 | #else | |
2523 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2524 | #endif | |
2525 | } | |
2526 | return resultobj; | |
2527 | fail: | |
2528 | return NULL; | |
2529 | } | |
2530 | ||
2531 | ||
2532 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2533 | PyObject *resultobj; | |
2534 | wxString result; | |
2535 | char *kwnames[] = { | |
2536 | NULL | |
2537 | }; | |
2538 | ||
2539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2540 | { | |
2541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2542 | result = wxGetHostName(); | |
2543 | ||
2544 | wxPyEndAllowThreads(__tstate); | |
2545 | if (PyErr_Occurred()) SWIG_fail; | |
2546 | } | |
2547 | { | |
2548 | #if wxUSE_UNICODE | |
2549 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2550 | #else | |
2551 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2552 | #endif | |
2553 | } | |
2554 | return resultobj; | |
2555 | fail: | |
2556 | return NULL; | |
2557 | } | |
2558 | ||
2559 | ||
2560 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2561 | PyObject *resultobj; | |
2562 | wxString result; | |
2563 | char *kwnames[] = { | |
2564 | NULL | |
2565 | }; | |
2566 | ||
2567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2568 | { | |
2569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2570 | result = wxGetFullHostName(); | |
2571 | ||
2572 | wxPyEndAllowThreads(__tstate); | |
2573 | if (PyErr_Occurred()) SWIG_fail; | |
2574 | } | |
2575 | { | |
2576 | #if wxUSE_UNICODE | |
2577 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2578 | #else | |
2579 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2580 | #endif | |
2581 | } | |
2582 | return resultobj; | |
2583 | fail: | |
2584 | return NULL; | |
2585 | } | |
2586 | ||
2587 | ||
2588 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2589 | PyObject *resultobj; | |
2590 | wxString result; | |
2591 | char *kwnames[] = { | |
2592 | NULL | |
2593 | }; | |
2594 | ||
2595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2596 | { | |
2597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2598 | result = wxGetUserId(); | |
2599 | ||
2600 | wxPyEndAllowThreads(__tstate); | |
2601 | if (PyErr_Occurred()) SWIG_fail; | |
2602 | } | |
2603 | { | |
2604 | #if wxUSE_UNICODE | |
2605 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2606 | #else | |
2607 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2608 | #endif | |
2609 | } | |
2610 | return resultobj; | |
2611 | fail: | |
2612 | return NULL; | |
2613 | } | |
2614 | ||
2615 | ||
2616 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2617 | PyObject *resultobj; | |
2618 | wxString result; | |
2619 | char *kwnames[] = { | |
2620 | NULL | |
2621 | }; | |
2622 | ||
2623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2624 | { | |
2625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2626 | result = wxGetUserName(); | |
2627 | ||
2628 | wxPyEndAllowThreads(__tstate); | |
2629 | if (PyErr_Occurred()) SWIG_fail; | |
2630 | } | |
2631 | { | |
2632 | #if wxUSE_UNICODE | |
2633 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2634 | #else | |
2635 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2636 | #endif | |
2637 | } | |
2638 | return resultobj; | |
2639 | fail: | |
2640 | return NULL; | |
2641 | } | |
2642 | ||
2643 | ||
2644 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2645 | PyObject *resultobj; | |
2646 | wxString result; | |
2647 | char *kwnames[] = { | |
2648 | NULL | |
2649 | }; | |
2650 | ||
2651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2652 | { | |
2653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2654 | result = wxGetHomeDir(); | |
2655 | ||
2656 | wxPyEndAllowThreads(__tstate); | |
2657 | if (PyErr_Occurred()) SWIG_fail; | |
2658 | } | |
2659 | { | |
2660 | #if wxUSE_UNICODE | |
2661 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2662 | #else | |
2663 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2664 | #endif | |
2665 | } | |
2666 | return resultobj; | |
2667 | fail: | |
2668 | return NULL; | |
2669 | } | |
2670 | ||
2671 | ||
2672 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2673 | PyObject *resultobj; | |
2674 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2675 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2676 | wxString result; | |
e811c8ce | 2677 | bool temp1 = False ; |
d14a1e28 RD |
2678 | PyObject * obj0 = 0 ; |
2679 | char *kwnames[] = { | |
2680 | (char *) "user", NULL | |
2681 | }; | |
2682 | ||
2683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2684 | if (obj0) { | |
2685 | { | |
2686 | arg1 = wxString_in_helper(obj0); | |
2687 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2688 | temp1 = True; |
d14a1e28 RD |
2689 | } |
2690 | } | |
2691 | { | |
2692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2693 | result = wxGetUserHome((wxString const &)*arg1); | |
2694 | ||
2695 | wxPyEndAllowThreads(__tstate); | |
2696 | if (PyErr_Occurred()) SWIG_fail; | |
2697 | } | |
2698 | { | |
2699 | #if wxUSE_UNICODE | |
2700 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2701 | #else | |
2702 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2703 | #endif | |
2704 | } | |
2705 | { | |
2706 | if (temp1) | |
2707 | delete arg1; | |
2708 | } | |
2709 | return resultobj; | |
2710 | fail: | |
2711 | { | |
2712 | if (temp1) | |
2713 | delete arg1; | |
2714 | } | |
2715 | return NULL; | |
2716 | } | |
2717 | ||
2718 | ||
2719 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2720 | PyObject *resultobj; | |
2721 | unsigned long result; | |
2722 | char *kwnames[] = { | |
2723 | NULL | |
2724 | }; | |
2725 | ||
2726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2727 | { | |
2728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2729 | result = (unsigned long)wxGetProcessId(); | |
2730 | ||
2731 | wxPyEndAllowThreads(__tstate); | |
2732 | if (PyErr_Occurred()) SWIG_fail; | |
2733 | } | |
15afbcd0 | 2734 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
2735 | return resultobj; |
2736 | fail: | |
2737 | return NULL; | |
2738 | } | |
2739 | ||
2740 | ||
2741 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2742 | PyObject *resultobj; | |
2743 | char *kwnames[] = { | |
2744 | NULL | |
2745 | }; | |
2746 | ||
2747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
2748 | { | |
2749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2750 | wxTrap(); | |
2751 | ||
2752 | wxPyEndAllowThreads(__tstate); | |
2753 | if (PyErr_Occurred()) SWIG_fail; | |
2754 | } | |
2755 | Py_INCREF(Py_None); resultobj = Py_None; | |
2756 | return resultobj; | |
2757 | fail: | |
2758 | return NULL; | |
2759 | } | |
2760 | ||
2761 | ||
2762 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2763 | PyObject *resultobj; | |
2764 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
2765 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2766 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2767 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2768 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2769 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2770 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2771 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2772 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
2773 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2774 | int arg6 = (int) 0 ; | |
2775 | wxWindow *arg7 = (wxWindow *) NULL ; | |
2776 | int arg8 = (int) -1 ; | |
2777 | int arg9 = (int) -1 ; | |
2778 | wxString result; | |
e811c8ce RD |
2779 | bool temp1 = False ; |
2780 | bool temp2 = False ; | |
2781 | bool temp3 = False ; | |
2782 | bool temp4 = False ; | |
2783 | bool temp5 = False ; | |
d14a1e28 RD |
2784 | PyObject * obj0 = 0 ; |
2785 | PyObject * obj1 = 0 ; | |
2786 | PyObject * obj2 = 0 ; | |
2787 | PyObject * obj3 = 0 ; | |
2788 | PyObject * obj4 = 0 ; | |
994141e6 | 2789 | PyObject * obj5 = 0 ; |
d14a1e28 | 2790 | PyObject * obj6 = 0 ; |
994141e6 RD |
2791 | PyObject * obj7 = 0 ; |
2792 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
2793 | char *kwnames[] = { |
2794 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
2795 | }; | |
2796 | ||
994141e6 | 2797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
2798 | if (obj0) { |
2799 | { | |
2800 | arg1 = wxString_in_helper(obj0); | |
2801 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2802 | temp1 = True; |
d14a1e28 RD |
2803 | } |
2804 | } | |
2805 | if (obj1) { | |
2806 | { | |
2807 | arg2 = wxString_in_helper(obj1); | |
2808 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2809 | temp2 = True; |
d14a1e28 RD |
2810 | } |
2811 | } | |
2812 | if (obj2) { | |
2813 | { | |
2814 | arg3 = wxString_in_helper(obj2); | |
2815 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2816 | temp3 = True; |
d14a1e28 RD |
2817 | } |
2818 | } | |
2819 | if (obj3) { | |
2820 | { | |
2821 | arg4 = wxString_in_helper(obj3); | |
2822 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 2823 | temp4 = True; |
d14a1e28 RD |
2824 | } |
2825 | } | |
2826 | if (obj4) { | |
2827 | { | |
2828 | arg5 = wxString_in_helper(obj4); | |
2829 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 2830 | temp5 = True; |
d14a1e28 RD |
2831 | } |
2832 | } | |
994141e6 | 2833 | if (obj5) { |
15afbcd0 RD |
2834 | arg6 = (int) SWIG_AsInt(obj5); |
2835 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2836 | } |
d14a1e28 | 2837 | if (obj6) { |
15afbcd0 RD |
2838 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, |
2839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 2840 | } |
994141e6 | 2841 | if (obj7) { |
15afbcd0 RD |
2842 | arg8 = (int) SWIG_AsInt(obj7); |
2843 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
2844 | } |
2845 | if (obj8) { | |
15afbcd0 RD |
2846 | arg9 = (int) SWIG_AsInt(obj8); |
2847 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2848 | } |
d14a1e28 RD |
2849 | { |
2850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2851 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
2852 | ||
2853 | wxPyEndAllowThreads(__tstate); | |
2854 | if (PyErr_Occurred()) SWIG_fail; | |
2855 | } | |
2856 | { | |
2857 | #if wxUSE_UNICODE | |
2858 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2859 | #else | |
2860 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2861 | #endif | |
2862 | } | |
2863 | { | |
2864 | if (temp1) | |
2865 | delete arg1; | |
2866 | } | |
2867 | { | |
2868 | if (temp2) | |
2869 | delete arg2; | |
2870 | } | |
2871 | { | |
2872 | if (temp3) | |
2873 | delete arg3; | |
2874 | } | |
2875 | { | |
2876 | if (temp4) | |
2877 | delete arg4; | |
2878 | } | |
2879 | { | |
2880 | if (temp5) | |
2881 | delete arg5; | |
2882 | } | |
2883 | return resultobj; | |
2884 | fail: | |
2885 | { | |
2886 | if (temp1) | |
2887 | delete arg1; | |
2888 | } | |
2889 | { | |
2890 | if (temp2) | |
2891 | delete arg2; | |
2892 | } | |
2893 | { | |
2894 | if (temp3) | |
2895 | delete arg3; | |
2896 | } | |
2897 | { | |
2898 | if (temp4) | |
2899 | delete arg4; | |
2900 | } | |
2901 | { | |
2902 | if (temp5) | |
2903 | delete arg5; | |
2904 | } | |
2905 | return NULL; | |
2906 | } | |
2907 | ||
2908 | ||
2909 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2910 | PyObject *resultobj; | |
2911 | wxString *arg1 = 0 ; | |
2912 | wxString *arg2 = 0 ; | |
2913 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2914 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2915 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2916 | wxString result; | |
e811c8ce RD |
2917 | bool temp1 = False ; |
2918 | bool temp2 = False ; | |
2919 | bool temp3 = False ; | |
d14a1e28 RD |
2920 | PyObject * obj0 = 0 ; |
2921 | PyObject * obj1 = 0 ; | |
2922 | PyObject * obj2 = 0 ; | |
2923 | PyObject * obj3 = 0 ; | |
2924 | char *kwnames[] = { | |
2925 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2926 | }; | |
2927 | ||
2928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2929 | { | |
2930 | arg1 = wxString_in_helper(obj0); | |
2931 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2932 | temp1 = True; |
d14a1e28 RD |
2933 | } |
2934 | { | |
2935 | arg2 = wxString_in_helper(obj1); | |
2936 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2937 | temp2 = True; |
d14a1e28 RD |
2938 | } |
2939 | if (obj2) { | |
2940 | { | |
2941 | arg3 = wxString_in_helper(obj2); | |
2942 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2943 | temp3 = True; |
d14a1e28 RD |
2944 | } |
2945 | } | |
2946 | if (obj3) { | |
15afbcd0 RD |
2947 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
2948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2949 | } |
2950 | { | |
2951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2952 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2953 | ||
2954 | wxPyEndAllowThreads(__tstate); | |
2955 | if (PyErr_Occurred()) SWIG_fail; | |
2956 | } | |
2957 | { | |
2958 | #if wxUSE_UNICODE | |
2959 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2960 | #else | |
2961 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2962 | #endif | |
2963 | } | |
2964 | { | |
2965 | if (temp1) | |
2966 | delete arg1; | |
2967 | } | |
2968 | { | |
2969 | if (temp2) | |
2970 | delete arg2; | |
2971 | } | |
2972 | { | |
2973 | if (temp3) | |
2974 | delete arg3; | |
2975 | } | |
2976 | return resultobj; | |
2977 | fail: | |
2978 | { | |
2979 | if (temp1) | |
2980 | delete arg1; | |
2981 | } | |
2982 | { | |
2983 | if (temp2) | |
2984 | delete arg2; | |
2985 | } | |
2986 | { | |
2987 | if (temp3) | |
2988 | delete arg3; | |
2989 | } | |
2990 | return NULL; | |
2991 | } | |
2992 | ||
2993 | ||
2994 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2995 | PyObject *resultobj; | |
2996 | wxString *arg1 = 0 ; | |
2997 | wxString *arg2 = 0 ; | |
2998 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2999 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3000 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3001 | wxString result; | |
e811c8ce RD |
3002 | bool temp1 = False ; |
3003 | bool temp2 = False ; | |
3004 | bool temp3 = False ; | |
d14a1e28 RD |
3005 | PyObject * obj0 = 0 ; |
3006 | PyObject * obj1 = 0 ; | |
3007 | PyObject * obj2 = 0 ; | |
3008 | PyObject * obj3 = 0 ; | |
3009 | char *kwnames[] = { | |
3010 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3011 | }; | |
3012 | ||
3013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3014 | { | |
3015 | arg1 = wxString_in_helper(obj0); | |
3016 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3017 | temp1 = True; |
d14a1e28 RD |
3018 | } |
3019 | { | |
3020 | arg2 = wxString_in_helper(obj1); | |
3021 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3022 | temp2 = True; |
d14a1e28 RD |
3023 | } |
3024 | if (obj2) { | |
3025 | { | |
3026 | arg3 = wxString_in_helper(obj2); | |
3027 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3028 | temp3 = True; |
d14a1e28 RD |
3029 | } |
3030 | } | |
3031 | if (obj3) { | |
15afbcd0 RD |
3032 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3034 | } |
3035 | { | |
3036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3037 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3038 | ||
3039 | wxPyEndAllowThreads(__tstate); | |
3040 | if (PyErr_Occurred()) SWIG_fail; | |
3041 | } | |
3042 | { | |
3043 | #if wxUSE_UNICODE | |
3044 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3045 | #else | |
3046 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3047 | #endif | |
3048 | } | |
3049 | { | |
3050 | if (temp1) | |
3051 | delete arg1; | |
3052 | } | |
3053 | { | |
3054 | if (temp2) | |
3055 | delete arg2; | |
3056 | } | |
3057 | { | |
3058 | if (temp3) | |
3059 | delete arg3; | |
3060 | } | |
3061 | return resultobj; | |
3062 | fail: | |
3063 | { | |
3064 | if (temp1) | |
3065 | delete arg1; | |
3066 | } | |
3067 | { | |
3068 | if (temp2) | |
3069 | delete arg2; | |
3070 | } | |
3071 | { | |
3072 | if (temp3) | |
3073 | delete arg3; | |
3074 | } | |
3075 | return NULL; | |
3076 | } | |
3077 | ||
3078 | ||
3079 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3080 | PyObject *resultobj; | |
3081 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
3082 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3083 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3084 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3085 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
3086 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3087 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3088 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3089 | wxString result; | |
e811c8ce RD |
3090 | bool temp1 = False ; |
3091 | bool temp2 = False ; | |
d14a1e28 RD |
3092 | wxPoint temp4 ; |
3093 | PyObject * obj0 = 0 ; | |
3094 | PyObject * obj1 = 0 ; | |
994141e6 | 3095 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3096 | PyObject * obj3 = 0 ; |
3097 | PyObject * obj4 = 0 ; | |
3098 | char *kwnames[] = { | |
3099 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
3100 | }; | |
3101 | ||
994141e6 | 3102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
3103 | if (obj0) { |
3104 | { | |
3105 | arg1 = wxString_in_helper(obj0); | |
3106 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3107 | temp1 = True; |
d14a1e28 RD |
3108 | } |
3109 | } | |
3110 | if (obj1) { | |
3111 | { | |
3112 | arg2 = wxString_in_helper(obj1); | |
3113 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3114 | temp2 = True; |
d14a1e28 RD |
3115 | } |
3116 | } | |
994141e6 | 3117 | if (obj2) { |
15afbcd0 RD |
3118 | arg3 = (long) SWIG_AsLong(obj2); |
3119 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3120 | } |
d14a1e28 RD |
3121 | if (obj3) { |
3122 | { | |
3123 | arg4 = &temp4; | |
3124 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3125 | } | |
3126 | } | |
3127 | if (obj4) { | |
15afbcd0 RD |
3128 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3130 | } |
3131 | { | |
3132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3133 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
3134 | ||
3135 | wxPyEndAllowThreads(__tstate); | |
3136 | if (PyErr_Occurred()) SWIG_fail; | |
3137 | } | |
3138 | { | |
3139 | #if wxUSE_UNICODE | |
3140 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3141 | #else | |
3142 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3143 | #endif | |
3144 | } | |
3145 | { | |
3146 | if (temp1) | |
3147 | delete arg1; | |
3148 | } | |
3149 | { | |
3150 | if (temp2) | |
3151 | delete arg2; | |
3152 | } | |
3153 | return resultobj; | |
3154 | fail: | |
3155 | { | |
3156 | if (temp1) | |
3157 | delete arg1; | |
3158 | } | |
3159 | { | |
3160 | if (temp2) | |
3161 | delete arg2; | |
3162 | } | |
3163 | return NULL; | |
3164 | } | |
3165 | ||
3166 | ||
3167 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3168 | PyObject *resultobj; | |
3169 | wxString *arg1 = 0 ; | |
3170 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3171 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3172 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3173 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3174 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3175 | int arg5 = (int) -1 ; | |
3176 | int arg6 = (int) -1 ; | |
e811c8ce | 3177 | bool arg7 = (bool) True ; |
d14a1e28 | 3178 | wxString result; |
e811c8ce RD |
3179 | bool temp1 = False ; |
3180 | bool temp2 = False ; | |
3181 | bool temp3 = False ; | |
d14a1e28 RD |
3182 | PyObject * obj0 = 0 ; |
3183 | PyObject * obj1 = 0 ; | |
3184 | PyObject * obj2 = 0 ; | |
3185 | PyObject * obj3 = 0 ; | |
994141e6 RD |
3186 | PyObject * obj4 = 0 ; |
3187 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
3188 | PyObject * obj6 = 0 ; |
3189 | char *kwnames[] = { | |
3190 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
3191 | }; | |
3192 | ||
994141e6 | 3193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
3194 | { |
3195 | arg1 = wxString_in_helper(obj0); | |
3196 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3197 | temp1 = True; |
d14a1e28 RD |
3198 | } |
3199 | if (obj1) { | |
3200 | { | |
3201 | arg2 = wxString_in_helper(obj1); | |
3202 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3203 | temp2 = True; |
d14a1e28 RD |
3204 | } |
3205 | } | |
3206 | if (obj2) { | |
3207 | { | |
3208 | arg3 = wxString_in_helper(obj2); | |
3209 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3210 | temp3 = True; |
d14a1e28 RD |
3211 | } |
3212 | } | |
3213 | if (obj3) { | |
15afbcd0 RD |
3214 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3216 | } |
994141e6 | 3217 | if (obj4) { |
15afbcd0 RD |
3218 | arg5 = (int) SWIG_AsInt(obj4); |
3219 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3220 | } |
3221 | if (obj5) { | |
15afbcd0 RD |
3222 | arg6 = (int) SWIG_AsInt(obj5); |
3223 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3224 | } |
d14a1e28 | 3225 | if (obj6) { |
15afbcd0 RD |
3226 | arg7 = (bool) SWIG_AsBool(obj6); |
3227 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3228 | } |
3229 | { | |
3230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3231 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
3232 | ||
3233 | wxPyEndAllowThreads(__tstate); | |
3234 | if (PyErr_Occurred()) SWIG_fail; | |
3235 | } | |
3236 | { | |
3237 | #if wxUSE_UNICODE | |
3238 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3239 | #else | |
3240 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3241 | #endif | |
3242 | } | |
3243 | { | |
3244 | if (temp1) | |
3245 | delete arg1; | |
3246 | } | |
3247 | { | |
3248 | if (temp2) | |
3249 | delete arg2; | |
3250 | } | |
3251 | { | |
3252 | if (temp3) | |
3253 | delete arg3; | |
3254 | } | |
3255 | return resultobj; | |
3256 | fail: | |
3257 | { | |
3258 | if (temp1) | |
3259 | delete arg1; | |
3260 | } | |
3261 | { | |
3262 | if (temp2) | |
3263 | delete arg2; | |
3264 | } | |
3265 | { | |
3266 | if (temp3) | |
3267 | delete arg3; | |
3268 | } | |
3269 | return NULL; | |
3270 | } | |
3271 | ||
3272 | ||
3273 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3274 | PyObject *resultobj; | |
3275 | wxString *arg1 = 0 ; | |
3276 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3277 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3278 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3279 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3280 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3281 | wxString result; | |
e811c8ce RD |
3282 | bool temp1 = False ; |
3283 | bool temp2 = False ; | |
3284 | bool temp3 = False ; | |
d14a1e28 RD |
3285 | PyObject * obj0 = 0 ; |
3286 | PyObject * obj1 = 0 ; | |
3287 | PyObject * obj2 = 0 ; | |
3288 | PyObject * obj3 = 0 ; | |
3289 | char *kwnames[] = { | |
3290 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3291 | }; | |
3292 | ||
3293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3294 | { | |
3295 | arg1 = wxString_in_helper(obj0); | |
3296 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3297 | temp1 = True; |
d14a1e28 RD |
3298 | } |
3299 | if (obj1) { | |
3300 | { | |
3301 | arg2 = wxString_in_helper(obj1); | |
3302 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3303 | temp2 = True; |
d14a1e28 RD |
3304 | } |
3305 | } | |
3306 | if (obj2) { | |
3307 | { | |
3308 | arg3 = wxString_in_helper(obj2); | |
3309 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3310 | temp3 = True; |
d14a1e28 RD |
3311 | } |
3312 | } | |
3313 | if (obj3) { | |
15afbcd0 RD |
3314 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3316 | } |
3317 | { | |
3318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3319 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3320 | ||
3321 | wxPyEndAllowThreads(__tstate); | |
3322 | if (PyErr_Occurred()) SWIG_fail; | |
3323 | } | |
3324 | { | |
3325 | #if wxUSE_UNICODE | |
3326 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3327 | #else | |
3328 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3329 | #endif | |
3330 | } | |
3331 | { | |
3332 | if (temp1) | |
3333 | delete arg1; | |
3334 | } | |
3335 | { | |
3336 | if (temp2) | |
3337 | delete arg2; | |
3338 | } | |
3339 | { | |
3340 | if (temp3) | |
3341 | delete arg3; | |
3342 | } | |
3343 | return resultobj; | |
3344 | fail: | |
3345 | { | |
3346 | if (temp1) | |
3347 | delete arg1; | |
3348 | } | |
3349 | { | |
3350 | if (temp2) | |
3351 | delete arg2; | |
3352 | } | |
3353 | { | |
3354 | if (temp3) | |
3355 | delete arg3; | |
3356 | } | |
3357 | return NULL; | |
3358 | } | |
3359 | ||
3360 | ||
3361 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3362 | PyObject *resultobj; | |
3363 | wxString *arg1 = 0 ; | |
3364 | wxString *arg2 = 0 ; | |
3365 | int arg3 ; | |
3366 | wxString *arg4 = (wxString *) 0 ; | |
3367 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3368 | int arg6 = (int) -1 ; | |
3369 | int arg7 = (int) -1 ; | |
e811c8ce | 3370 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3371 | int arg9 = (int) 150 ; |
3372 | int arg10 = (int) 200 ; | |
3373 | wxString result; | |
e811c8ce RD |
3374 | bool temp1 = False ; |
3375 | bool temp2 = False ; | |
d14a1e28 RD |
3376 | PyObject * obj0 = 0 ; |
3377 | PyObject * obj1 = 0 ; | |
3378 | PyObject * obj2 = 0 ; | |
3379 | PyObject * obj3 = 0 ; | |
994141e6 RD |
3380 | PyObject * obj4 = 0 ; |
3381 | PyObject * obj5 = 0 ; | |
d14a1e28 | 3382 | PyObject * obj6 = 0 ; |
994141e6 RD |
3383 | PyObject * obj7 = 0 ; |
3384 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
3385 | char *kwnames[] = { |
3386 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3387 | }; | |
3388 | ||
994141e6 | 3389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3390 | { |
3391 | arg1 = wxString_in_helper(obj0); | |
3392 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3393 | temp1 = True; |
d14a1e28 RD |
3394 | } |
3395 | { | |
3396 | arg2 = wxString_in_helper(obj1); | |
3397 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3398 | temp2 = True; |
d14a1e28 RD |
3399 | } |
3400 | { | |
3401 | arg3 = PyList_Size(obj2); | |
3402 | arg4 = wxString_LIST_helper(obj2); | |
3403 | if (arg4 == NULL) SWIG_fail; | |
3404 | } | |
3405 | if (obj3) { | |
15afbcd0 RD |
3406 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3408 | } |
994141e6 | 3409 | if (obj4) { |
15afbcd0 RD |
3410 | arg6 = (int) SWIG_AsInt(obj4); |
3411 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3412 | } |
3413 | if (obj5) { | |
15afbcd0 RD |
3414 | arg7 = (int) SWIG_AsInt(obj5); |
3415 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3416 | } |
d14a1e28 | 3417 | if (obj6) { |
15afbcd0 RD |
3418 | arg8 = (bool) SWIG_AsBool(obj6); |
3419 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3420 | } |
3421 | if (obj7) { | |
15afbcd0 RD |
3422 | arg9 = (int) SWIG_AsInt(obj7); |
3423 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3424 | } |
3425 | if (obj8) { | |
15afbcd0 RD |
3426 | arg10 = (int) SWIG_AsInt(obj8); |
3427 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3428 | } |
3429 | { | |
3430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3431 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3432 | ||
3433 | wxPyEndAllowThreads(__tstate); | |
3434 | if (PyErr_Occurred()) SWIG_fail; | |
3435 | } | |
3436 | { | |
3437 | #if wxUSE_UNICODE | |
3438 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3439 | #else | |
3440 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3441 | #endif | |
3442 | } | |
3443 | { | |
3444 | if (temp1) | |
3445 | delete arg1; | |
3446 | } | |
3447 | { | |
3448 | if (temp2) | |
3449 | delete arg2; | |
3450 | } | |
3451 | { | |
3452 | if (arg4) delete [] arg4; | |
3453 | } | |
3454 | return resultobj; | |
3455 | fail: | |
3456 | { | |
3457 | if (temp1) | |
3458 | delete arg1; | |
3459 | } | |
3460 | { | |
3461 | if (temp2) | |
3462 | delete arg2; | |
3463 | } | |
3464 | { | |
3465 | if (arg4) delete [] arg4; | |
3466 | } | |
3467 | return NULL; | |
3468 | } | |
3469 | ||
3470 | ||
3471 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3472 | PyObject *resultobj; | |
3473 | wxString *arg1 = 0 ; | |
3474 | wxString *arg2 = 0 ; | |
3475 | int arg3 ; | |
3476 | wxString *arg4 = (wxString *) 0 ; | |
3477 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3478 | int arg6 = (int) -1 ; | |
3479 | int arg7 = (int) -1 ; | |
e811c8ce | 3480 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3481 | int arg9 = (int) 150 ; |
3482 | int arg10 = (int) 200 ; | |
3483 | int result; | |
e811c8ce RD |
3484 | bool temp1 = False ; |
3485 | bool temp2 = False ; | |
d14a1e28 RD |
3486 | PyObject * obj0 = 0 ; |
3487 | PyObject * obj1 = 0 ; | |
3488 | PyObject * obj2 = 0 ; | |
3489 | PyObject * obj3 = 0 ; | |
994141e6 RD |
3490 | PyObject * obj4 = 0 ; |
3491 | PyObject * obj5 = 0 ; | |
d14a1e28 | 3492 | PyObject * obj6 = 0 ; |
994141e6 RD |
3493 | PyObject * obj7 = 0 ; |
3494 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
3495 | char *kwnames[] = { |
3496 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3497 | }; | |
3498 | ||
994141e6 | 3499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3500 | { |
3501 | arg1 = wxString_in_helper(obj0); | |
3502 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3503 | temp1 = True; |
d14a1e28 RD |
3504 | } |
3505 | { | |
3506 | arg2 = wxString_in_helper(obj1); | |
3507 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3508 | temp2 = True; |
d14a1e28 RD |
3509 | } |
3510 | { | |
3511 | arg3 = PyList_Size(obj2); | |
3512 | arg4 = wxString_LIST_helper(obj2); | |
3513 | if (arg4 == NULL) SWIG_fail; | |
3514 | } | |
3515 | if (obj3) { | |
15afbcd0 RD |
3516 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3518 | } |
994141e6 | 3519 | if (obj4) { |
15afbcd0 RD |
3520 | arg6 = (int) SWIG_AsInt(obj4); |
3521 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3522 | } |
3523 | if (obj5) { | |
15afbcd0 RD |
3524 | arg7 = (int) SWIG_AsInt(obj5); |
3525 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3526 | } |
d14a1e28 | 3527 | if (obj6) { |
15afbcd0 RD |
3528 | arg8 = (bool) SWIG_AsBool(obj6); |
3529 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3530 | } |
3531 | if (obj7) { | |
15afbcd0 RD |
3532 | arg9 = (int) SWIG_AsInt(obj7); |
3533 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3534 | } |
3535 | if (obj8) { | |
15afbcd0 RD |
3536 | arg10 = (int) SWIG_AsInt(obj8); |
3537 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3538 | } |
3539 | { | |
3540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3541 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3542 | ||
3543 | wxPyEndAllowThreads(__tstate); | |
3544 | if (PyErr_Occurred()) SWIG_fail; | |
3545 | } | |
15afbcd0 | 3546 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3547 | { |
3548 | if (temp1) | |
3549 | delete arg1; | |
3550 | } | |
3551 | { | |
3552 | if (temp2) | |
3553 | delete arg2; | |
3554 | } | |
3555 | { | |
3556 | if (arg4) delete [] arg4; | |
3557 | } | |
3558 | return resultobj; | |
3559 | fail: | |
3560 | { | |
3561 | if (temp1) | |
3562 | delete arg1; | |
3563 | } | |
3564 | { | |
3565 | if (temp2) | |
3566 | delete arg2; | |
3567 | } | |
3568 | { | |
3569 | if (arg4) delete [] arg4; | |
3570 | } | |
3571 | return NULL; | |
3572 | } | |
3573 | ||
3574 | ||
3575 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3576 | PyObject *resultobj; | |
3577 | wxString *arg1 = 0 ; | |
3578 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3579 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3580 | int arg3 = (int) wxOK|wxCENTRE ; | |
3581 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3582 | int arg5 = (int) -1 ; | |
3583 | int arg6 = (int) -1 ; | |
3584 | int result; | |
e811c8ce RD |
3585 | bool temp1 = False ; |
3586 | bool temp2 = False ; | |
d14a1e28 RD |
3587 | PyObject * obj0 = 0 ; |
3588 | PyObject * obj1 = 0 ; | |
994141e6 | 3589 | PyObject * obj2 = 0 ; |
d14a1e28 | 3590 | PyObject * obj3 = 0 ; |
994141e6 RD |
3591 | PyObject * obj4 = 0 ; |
3592 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
3593 | char *kwnames[] = { |
3594 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3595 | }; | |
3596 | ||
994141e6 | 3597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
3598 | { |
3599 | arg1 = wxString_in_helper(obj0); | |
3600 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3601 | temp1 = True; |
d14a1e28 RD |
3602 | } |
3603 | if (obj1) { | |
3604 | { | |
3605 | arg2 = wxString_in_helper(obj1); | |
3606 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3607 | temp2 = True; |
d14a1e28 RD |
3608 | } |
3609 | } | |
994141e6 | 3610 | if (obj2) { |
15afbcd0 RD |
3611 | arg3 = (int) SWIG_AsInt(obj2); |
3612 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3613 | } |
d14a1e28 | 3614 | if (obj3) { |
15afbcd0 RD |
3615 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3617 | } |
994141e6 | 3618 | if (obj4) { |
15afbcd0 RD |
3619 | arg5 = (int) SWIG_AsInt(obj4); |
3620 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3621 | } |
3622 | if (obj5) { | |
15afbcd0 RD |
3623 | arg6 = (int) SWIG_AsInt(obj5); |
3624 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3625 | } |
d14a1e28 RD |
3626 | { |
3627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3628 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3629 | ||
3630 | wxPyEndAllowThreads(__tstate); | |
3631 | if (PyErr_Occurred()) SWIG_fail; | |
3632 | } | |
15afbcd0 | 3633 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3634 | { |
3635 | if (temp1) | |
3636 | delete arg1; | |
3637 | } | |
3638 | { | |
3639 | if (temp2) | |
3640 | delete arg2; | |
3641 | } | |
3642 | return resultobj; | |
3643 | fail: | |
3644 | { | |
3645 | if (temp1) | |
3646 | delete arg1; | |
3647 | } | |
3648 | { | |
3649 | if (temp2) | |
3650 | delete arg2; | |
3651 | } | |
3652 | return NULL; | |
3653 | } | |
3654 | ||
3655 | ||
3656 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3657 | PyObject *resultobj; | |
3658 | wxString *arg1 = 0 ; | |
3659 | wxString *arg2 = 0 ; | |
3660 | wxString *arg3 = 0 ; | |
3661 | long arg4 ; | |
3662 | long arg5 = (long) 0 ; | |
3663 | long arg6 = (long) 100 ; | |
3664 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3665 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3666 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3667 | long result; | |
e811c8ce RD |
3668 | bool temp1 = False ; |
3669 | bool temp2 = False ; | |
3670 | bool temp3 = False ; | |
d14a1e28 RD |
3671 | wxPoint temp8 ; |
3672 | PyObject * obj0 = 0 ; | |
3673 | PyObject * obj1 = 0 ; | |
3674 | PyObject * obj2 = 0 ; | |
994141e6 RD |
3675 | PyObject * obj3 = 0 ; |
3676 | PyObject * obj4 = 0 ; | |
3677 | PyObject * obj5 = 0 ; | |
3678 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
3679 | PyObject * obj7 = 0 ; |
3680 | char *kwnames[] = { | |
3681 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3682 | }; | |
3683 | ||
994141e6 | 3684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
3685 | { |
3686 | arg1 = wxString_in_helper(obj0); | |
3687 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3688 | temp1 = True; |
d14a1e28 RD |
3689 | } |
3690 | { | |
3691 | arg2 = wxString_in_helper(obj1); | |
3692 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3693 | temp2 = True; |
d14a1e28 RD |
3694 | } |
3695 | { | |
3696 | arg3 = wxString_in_helper(obj2); | |
3697 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3698 | temp3 = True; |
d14a1e28 | 3699 | } |
15afbcd0 RD |
3700 | arg4 = (long) SWIG_AsLong(obj3); |
3701 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3702 | if (obj4) { |
15afbcd0 RD |
3703 | arg5 = (long) SWIG_AsLong(obj4); |
3704 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3705 | } |
3706 | if (obj5) { | |
15afbcd0 RD |
3707 | arg6 = (long) SWIG_AsLong(obj5); |
3708 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3709 | } |
d14a1e28 | 3710 | if (obj6) { |
15afbcd0 RD |
3711 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, |
3712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3713 | } |
3714 | if (obj7) { | |
3715 | { | |
3716 | arg8 = &temp8; | |
3717 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3718 | } | |
3719 | } | |
3720 | { | |
3721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3722 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3723 | ||
3724 | wxPyEndAllowThreads(__tstate); | |
3725 | if (PyErr_Occurred()) SWIG_fail; | |
3726 | } | |
15afbcd0 | 3727 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3728 | { |
3729 | if (temp1) | |
3730 | delete arg1; | |
3731 | } | |
3732 | { | |
3733 | if (temp2) | |
3734 | delete arg2; | |
3735 | } | |
3736 | { | |
3737 | if (temp3) | |
3738 | delete arg3; | |
3739 | } | |
3740 | return resultobj; | |
3741 | fail: | |
3742 | { | |
3743 | if (temp1) | |
3744 | delete arg1; | |
3745 | } | |
3746 | { | |
3747 | if (temp2) | |
3748 | delete arg2; | |
3749 | } | |
3750 | { | |
3751 | if (temp3) | |
3752 | delete arg3; | |
3753 | } | |
3754 | return NULL; | |
3755 | } | |
3756 | ||
3757 | ||
3758 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3759 | PyObject *resultobj; | |
3760 | bool result; | |
3761 | char *kwnames[] = { | |
3762 | NULL | |
3763 | }; | |
3764 | ||
3765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
3766 | { | |
3767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3768 | result = (bool)wxColourDisplay(); | |
3769 | ||
3770 | wxPyEndAllowThreads(__tstate); | |
3771 | if (PyErr_Occurred()) SWIG_fail; | |
3772 | } | |
4f89f6a3 RD |
3773 | { |
3774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3775 | } | |
d14a1e28 RD |
3776 | return resultobj; |
3777 | fail: | |
3778 | return NULL; | |
3779 | } | |
3780 | ||
3781 | ||
3782 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3783 | PyObject *resultobj; | |
3784 | int result; | |
3785 | char *kwnames[] = { | |
3786 | NULL | |
3787 | }; | |
3788 | ||
3789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
3790 | { | |
3791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3792 | result = (int)wxDisplayDepth(); | |
3793 | ||
3794 | wxPyEndAllowThreads(__tstate); | |
3795 | if (PyErr_Occurred()) SWIG_fail; | |
3796 | } | |
15afbcd0 | 3797 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3798 | return resultobj; |
3799 | fail: | |
3800 | return NULL; | |
3801 | } | |
3802 | ||
3803 | ||
3804 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3805 | PyObject *resultobj; | |
3806 | int result; | |
3807 | char *kwnames[] = { | |
3808 | NULL | |
3809 | }; | |
3810 | ||
3811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
3812 | { | |
3813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3814 | result = (int)wxGetDisplayDepth(); | |
3815 | ||
3816 | wxPyEndAllowThreads(__tstate); | |
3817 | if (PyErr_Occurred()) SWIG_fail; | |
3818 | } | |
15afbcd0 | 3819 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3820 | return resultobj; |
3821 | fail: | |
3822 | return NULL; | |
3823 | } | |
3824 | ||
3825 | ||
3826 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3827 | PyObject *resultobj; | |
3828 | int *arg1 = (int *) 0 ; | |
3829 | int *arg2 = (int *) 0 ; | |
3830 | int temp1 ; | |
3831 | int temp2 ; | |
3832 | char *kwnames[] = { | |
3833 | NULL | |
3834 | }; | |
3835 | ||
3836 | arg1 = &temp1; | |
3837 | arg2 = &temp2; | |
3838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
3839 | { | |
3840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3841 | wxDisplaySize(arg1,arg2); | |
3842 | ||
3843 | wxPyEndAllowThreads(__tstate); | |
3844 | if (PyErr_Occurred()) SWIG_fail; | |
3845 | } | |
3846 | Py_INCREF(Py_None); resultobj = Py_None; | |
3847 | { | |
3848 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3849 | resultobj = t_output_helper(resultobj,o); | |
3850 | } | |
3851 | { | |
3852 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3853 | resultobj = t_output_helper(resultobj,o); | |
3854 | } | |
3855 | return resultobj; | |
3856 | fail: | |
3857 | return NULL; | |
3858 | } | |
3859 | ||
3860 | ||
3861 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3862 | PyObject *resultobj; | |
3863 | wxSize result; | |
3864 | char *kwnames[] = { | |
3865 | NULL | |
3866 | }; | |
3867 | ||
3868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
3869 | { | |
3870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3871 | result = wxGetDisplaySize(); | |
3872 | ||
3873 | wxPyEndAllowThreads(__tstate); | |
3874 | if (PyErr_Occurred()) SWIG_fail; | |
3875 | } | |
3876 | { | |
3877 | wxSize * resultptr; | |
3878 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 3879 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
3880 | } |
3881 | return resultobj; | |
3882 | fail: | |
3883 | return NULL; | |
3884 | } | |
3885 | ||
3886 | ||
3887 | static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3888 | PyObject *resultobj; | |
3889 | int *arg1 = (int *) 0 ; | |
3890 | int *arg2 = (int *) 0 ; | |
3891 | int temp1 ; | |
3892 | int temp2 ; | |
3893 | char *kwnames[] = { | |
3894 | NULL | |
3895 | }; | |
3896 | ||
3897 | arg1 = &temp1; | |
3898 | arg2 = &temp2; | |
3899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
3900 | { | |
3901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3902 | wxDisplaySizeMM(arg1,arg2); | |
3903 | ||
3904 | wxPyEndAllowThreads(__tstate); | |
3905 | if (PyErr_Occurred()) SWIG_fail; | |
3906 | } | |
3907 | Py_INCREF(Py_None); resultobj = Py_None; | |
3908 | { | |
3909 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3910 | resultobj = t_output_helper(resultobj,o); | |
3911 | } | |
3912 | { | |
3913 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3914 | resultobj = t_output_helper(resultobj,o); | |
3915 | } | |
3916 | return resultobj; | |
3917 | fail: | |
3918 | return NULL; | |
3919 | } | |
3920 | ||
3921 | ||
3922 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3923 | PyObject *resultobj; | |
3924 | wxSize result; | |
3925 | char *kwnames[] = { | |
3926 | NULL | |
3927 | }; | |
3928 | ||
3929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
3930 | { | |
3931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3932 | result = wxGetDisplaySizeMM(); | |
3933 | ||
3934 | wxPyEndAllowThreads(__tstate); | |
3935 | if (PyErr_Occurred()) SWIG_fail; | |
3936 | } | |
3937 | { | |
3938 | wxSize * resultptr; | |
3939 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 3940 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
3941 | } |
3942 | return resultobj; | |
3943 | fail: | |
3944 | return NULL; | |
3945 | } | |
3946 | ||
3947 | ||
3948 | static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3949 | PyObject *resultobj; | |
3950 | int *arg1 = (int *) 0 ; | |
3951 | int *arg2 = (int *) 0 ; | |
3952 | int *arg3 = (int *) 0 ; | |
3953 | int *arg4 = (int *) 0 ; | |
3954 | int temp1 ; | |
3955 | int temp2 ; | |
3956 | int temp3 ; | |
3957 | int temp4 ; | |
3958 | char *kwnames[] = { | |
3959 | NULL | |
3960 | }; | |
3961 | ||
3962 | arg1 = &temp1; | |
3963 | arg2 = &temp2; | |
3964 | arg3 = &temp3; | |
3965 | arg4 = &temp4; | |
3966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
3967 | { | |
3968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3969 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
3970 | ||
3971 | wxPyEndAllowThreads(__tstate); | |
3972 | if (PyErr_Occurred()) SWIG_fail; | |
3973 | } | |
3974 | Py_INCREF(Py_None); resultobj = Py_None; | |
3975 | { | |
3976 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3977 | resultobj = t_output_helper(resultobj,o); | |
3978 | } | |
3979 | { | |
3980 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3981 | resultobj = t_output_helper(resultobj,o); | |
3982 | } | |
3983 | { | |
3984 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
3985 | resultobj = t_output_helper(resultobj,o); | |
3986 | } | |
3987 | { | |
3988 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
3989 | resultobj = t_output_helper(resultobj,o); | |
3990 | } | |
3991 | return resultobj; | |
3992 | fail: | |
3993 | return NULL; | |
3994 | } | |
3995 | ||
3996 | ||
3997 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3998 | PyObject *resultobj; | |
3999 | wxRect result; | |
4000 | char *kwnames[] = { | |
4001 | NULL | |
4002 | }; | |
4003 | ||
4004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
4005 | { | |
4006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4007 | result = wxGetClientDisplayRect(); | |
4008 | ||
4009 | wxPyEndAllowThreads(__tstate); | |
4010 | if (PyErr_Occurred()) SWIG_fail; | |
4011 | } | |
4012 | { | |
4013 | wxRect * resultptr; | |
4014 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 4015 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
4016 | } |
4017 | return resultobj; | |
4018 | fail: | |
4019 | return NULL; | |
4020 | } | |
4021 | ||
4022 | ||
4023 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4024 | PyObject *resultobj; | |
4025 | wxCursor *arg1 = 0 ; | |
4026 | PyObject * obj0 = 0 ; | |
4027 | char *kwnames[] = { | |
4028 | (char *) "cursor", NULL | |
4029 | }; | |
4030 | ||
4031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4033 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4034 | SWIG_fail; | |
d14a1e28 | 4035 | if (arg1 == NULL) { |
15afbcd0 RD |
4036 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4037 | SWIG_fail; | |
d14a1e28 RD |
4038 | } |
4039 | { | |
4040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4041 | wxSetCursor(*arg1); | |
4042 | ||
4043 | wxPyEndAllowThreads(__tstate); | |
4044 | if (PyErr_Occurred()) SWIG_fail; | |
4045 | } | |
4046 | Py_INCREF(Py_None); resultobj = Py_None; | |
4047 | return resultobj; | |
4048 | fail: | |
4049 | return NULL; | |
4050 | } | |
4051 | ||
4052 | ||
4053 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4054 | PyObject *resultobj; | |
4055 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4056 | PyObject * obj0 = 0 ; | |
4057 | char *kwnames[] = { | |
4058 | (char *) "cursor", NULL | |
4059 | }; | |
4060 | ||
4061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
4062 | if (obj0) { | |
15afbcd0 RD |
4063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4065 | } |
4066 | { | |
4067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4068 | wxBeginBusyCursor(arg1); | |
4069 | ||
4070 | wxPyEndAllowThreads(__tstate); | |
4071 | if (PyErr_Occurred()) SWIG_fail; | |
4072 | } | |
4073 | Py_INCREF(Py_None); resultobj = Py_None; | |
4074 | return resultobj; | |
4075 | fail: | |
4076 | return NULL; | |
4077 | } | |
4078 | ||
4079 | ||
4080 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4081 | PyObject *resultobj; | |
4082 | wxWindow *result; | |
4083 | char *kwnames[] = { | |
4084 | NULL | |
4085 | }; | |
4086 | ||
4087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
4088 | { | |
4089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4090 | result = (wxWindow *)wxGetActiveWindow(); | |
4091 | ||
4092 | wxPyEndAllowThreads(__tstate); | |
4093 | if (PyErr_Occurred()) SWIG_fail; | |
4094 | } | |
4095 | { | |
4096 | resultobj = wxPyMake_wxObject(result); | |
4097 | } | |
4098 | return resultobj; | |
4099 | fail: | |
4100 | return NULL; | |
4101 | } | |
4102 | ||
4103 | ||
4104 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4105 | PyObject *resultobj; | |
4106 | wxPoint *arg1 = 0 ; | |
4107 | wxWindow *result; | |
4108 | wxPoint temp1 ; | |
4109 | PyObject * obj0 = 0 ; | |
4110 | char *kwnames[] = { | |
4111 | (char *) "pt", NULL | |
4112 | }; | |
4113 | ||
4114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4115 | { | |
4116 | arg1 = &temp1; | |
4117 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4118 | } | |
4119 | { | |
4120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4121 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
4122 | ||
4123 | wxPyEndAllowThreads(__tstate); | |
4124 | if (PyErr_Occurred()) SWIG_fail; | |
4125 | } | |
4126 | { | |
4127 | resultobj = wxPyMake_wxObject(result); | |
4128 | } | |
4129 | return resultobj; | |
4130 | fail: | |
4131 | return NULL; | |
4132 | } | |
4133 | ||
4134 | ||
4135 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4136 | PyObject *resultobj; | |
4137 | wxPoint *arg1 = 0 ; | |
4138 | wxWindow *result; | |
4139 | wxPoint temp1 ; | |
4140 | PyObject * obj0 = 0 ; | |
4141 | char *kwnames[] = { | |
4142 | (char *) "pt", NULL | |
4143 | }; | |
4144 | ||
4145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4146 | { | |
4147 | arg1 = &temp1; | |
4148 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4149 | } | |
4150 | { | |
4151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4152 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
4153 | ||
4154 | wxPyEndAllowThreads(__tstate); | |
4155 | if (PyErr_Occurred()) SWIG_fail; | |
4156 | } | |
4157 | { | |
4158 | resultobj = wxPyMake_wxObject(result); | |
4159 | } | |
4160 | return resultobj; | |
4161 | fail: | |
4162 | return NULL; | |
4163 | } | |
4164 | ||
4165 | ||
4166 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4167 | PyObject *resultobj; | |
4168 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4169 | wxWindow *result; | |
4170 | PyObject * obj0 = 0 ; | |
4171 | char *kwnames[] = { | |
4172 | (char *) "win", NULL | |
4173 | }; | |
4174 | ||
4175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4178 | { |
4179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4180 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
4181 | ||
4182 | wxPyEndAllowThreads(__tstate); | |
4183 | if (PyErr_Occurred()) SWIG_fail; | |
4184 | } | |
4185 | { | |
4186 | resultobj = wxPyMake_wxObject(result); | |
4187 | } | |
4188 | return resultobj; | |
4189 | fail: | |
4190 | return NULL; | |
4191 | } | |
4192 | ||
4193 | ||
39f61e25 RD |
4194 | static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) { |
4195 | PyObject *resultobj; | |
4196 | int arg1 ; | |
4197 | bool result; | |
994141e6 | 4198 | PyObject * obj0 = 0 ; |
39f61e25 RD |
4199 | char *kwnames[] = { |
4200 | (char *) "key", NULL | |
4201 | }; | |
4202 | ||
994141e6 | 4203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4204 | arg1 = (wxKeyCode) SWIG_AsInt(obj0); |
4205 | if (PyErr_Occurred()) SWIG_fail; | |
39f61e25 RD |
4206 | { |
4207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4208 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
4209 | ||
4210 | wxPyEndAllowThreads(__tstate); | |
4211 | if (PyErr_Occurred()) SWIG_fail; | |
4212 | } | |
4f89f6a3 RD |
4213 | { |
4214 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4215 | } | |
39f61e25 RD |
4216 | return resultobj; |
4217 | fail: | |
4218 | return NULL; | |
4219 | } | |
4220 | ||
4221 | ||
d14a1e28 RD |
4222 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
4223 | PyObject *resultobj; | |
4224 | char *kwnames[] = { | |
4225 | NULL | |
4226 | }; | |
4227 | ||
4228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4229 | { | |
4230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4231 | wxWakeUpMainThread(); | |
4232 | ||
4233 | wxPyEndAllowThreads(__tstate); | |
4234 | if (PyErr_Occurred()) SWIG_fail; | |
4235 | } | |
4236 | Py_INCREF(Py_None); resultobj = Py_None; | |
4237 | return resultobj; | |
4238 | fail: | |
4239 | return NULL; | |
4240 | } | |
4241 | ||
4242 | ||
4243 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4244 | PyObject *resultobj; | |
4245 | char *kwnames[] = { | |
4246 | NULL | |
4247 | }; | |
4248 | ||
4249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4250 | { | |
4251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4252 | wxMutexGuiEnter(); | |
4253 | ||
4254 | wxPyEndAllowThreads(__tstate); | |
4255 | if (PyErr_Occurred()) SWIG_fail; | |
4256 | } | |
4257 | Py_INCREF(Py_None); resultobj = Py_None; | |
4258 | return resultobj; | |
4259 | fail: | |
4260 | return NULL; | |
4261 | } | |
4262 | ||
4263 | ||
4264 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4265 | PyObject *resultobj; | |
4266 | char *kwnames[] = { | |
4267 | NULL | |
4268 | }; | |
4269 | ||
4270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4271 | { | |
4272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4273 | wxMutexGuiLeave(); | |
4274 | ||
4275 | wxPyEndAllowThreads(__tstate); | |
4276 | if (PyErr_Occurred()) SWIG_fail; | |
4277 | } | |
4278 | Py_INCREF(Py_None); resultobj = Py_None; | |
4279 | return resultobj; | |
4280 | fail: | |
4281 | return NULL; | |
4282 | } | |
4283 | ||
4284 | ||
4285 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4286 | PyObject *resultobj; | |
4287 | wxMutexGuiLocker *result; | |
4288 | char *kwnames[] = { | |
4289 | NULL | |
4290 | }; | |
4291 | ||
4292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4293 | { | |
4294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4295 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4296 | ||
4297 | wxPyEndAllowThreads(__tstate); | |
4298 | if (PyErr_Occurred()) SWIG_fail; | |
4299 | } | |
15afbcd0 | 4300 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); |
d14a1e28 RD |
4301 | return resultobj; |
4302 | fail: | |
4303 | return NULL; | |
4304 | } | |
4305 | ||
4306 | ||
4307 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4308 | PyObject *resultobj; | |
4309 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4310 | PyObject * obj0 = 0 ; | |
4311 | char *kwnames[] = { | |
4312 | (char *) "self", NULL | |
4313 | }; | |
4314 | ||
4315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker, |
4317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4318 | { |
4319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4320 | delete arg1; | |
4321 | ||
4322 | wxPyEndAllowThreads(__tstate); | |
4323 | if (PyErr_Occurred()) SWIG_fail; | |
4324 | } | |
4325 | Py_INCREF(Py_None); resultobj = Py_None; | |
4326 | return resultobj; | |
4327 | fail: | |
4328 | return NULL; | |
4329 | } | |
4330 | ||
4331 | ||
4332 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
4333 | PyObject *obj; | |
4334 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4335 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4336 | Py_INCREF(obj); | |
4337 | return Py_BuildValue((char *)""); | |
4338 | } | |
4339 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4340 | PyObject *resultobj; | |
4341 | bool result; | |
4342 | char *kwnames[] = { | |
4343 | NULL | |
4344 | }; | |
4345 | ||
4346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4347 | { | |
4348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4349 | result = (bool)wxThread_IsMain(); | |
4350 | ||
4351 | wxPyEndAllowThreads(__tstate); | |
4352 | if (PyErr_Occurred()) SWIG_fail; | |
4353 | } | |
4f89f6a3 RD |
4354 | { |
4355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4356 | } | |
d14a1e28 RD |
4357 | return resultobj; |
4358 | fail: | |
4359 | return NULL; | |
4360 | } | |
4361 | ||
4362 | ||
4363 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4364 | PyObject *resultobj; | |
4365 | wxString *arg1 = 0 ; | |
4366 | wxToolTip *result; | |
e811c8ce | 4367 | bool temp1 = False ; |
d14a1e28 RD |
4368 | PyObject * obj0 = 0 ; |
4369 | char *kwnames[] = { | |
4370 | (char *) "tip", NULL | |
4371 | }; | |
4372 | ||
4373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4374 | { | |
4375 | arg1 = wxString_in_helper(obj0); | |
4376 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 4377 | temp1 = True; |
d14a1e28 RD |
4378 | } |
4379 | { | |
4380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4381 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4382 | ||
4383 | wxPyEndAllowThreads(__tstate); | |
4384 | if (PyErr_Occurred()) SWIG_fail; | |
4385 | } | |
4386 | { | |
4387 | resultobj = wxPyMake_wxObject(result); | |
4388 | } | |
4389 | { | |
4390 | if (temp1) | |
4391 | delete arg1; | |
4392 | } | |
4393 | return resultobj; | |
4394 | fail: | |
4395 | { | |
4396 | if (temp1) | |
4397 | delete arg1; | |
4398 | } | |
4399 | return NULL; | |
4400 | } | |
4401 | ||
4402 | ||
4403 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4404 | PyObject *resultobj; | |
4405 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4406 | wxString *arg2 = 0 ; | |
e811c8ce | 4407 | bool temp2 = False ; |
d14a1e28 RD |
4408 | PyObject * obj0 = 0 ; |
4409 | PyObject * obj1 = 0 ; | |
4410 | char *kwnames[] = { | |
4411 | (char *) "self",(char *) "tip", NULL | |
4412 | }; | |
4413 | ||
4414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4417 | { |
4418 | arg2 = wxString_in_helper(obj1); | |
4419 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4420 | temp2 = True; |
d14a1e28 RD |
4421 | } |
4422 | { | |
4423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4424 | (arg1)->SetTip((wxString const &)*arg2); | |
4425 | ||
4426 | wxPyEndAllowThreads(__tstate); | |
4427 | if (PyErr_Occurred()) SWIG_fail; | |
4428 | } | |
4429 | Py_INCREF(Py_None); resultobj = Py_None; | |
4430 | { | |
4431 | if (temp2) | |
4432 | delete arg2; | |
4433 | } | |
4434 | return resultobj; | |
4435 | fail: | |
4436 | { | |
4437 | if (temp2) | |
4438 | delete arg2; | |
4439 | } | |
4440 | return NULL; | |
4441 | } | |
4442 | ||
4443 | ||
4444 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4445 | PyObject *resultobj; | |
4446 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4447 | wxString result; | |
4448 | PyObject * obj0 = 0 ; | |
4449 | char *kwnames[] = { | |
4450 | (char *) "self", NULL | |
4451 | }; | |
4452 | ||
4453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4456 | { |
4457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4458 | result = (arg1)->GetTip(); | |
4459 | ||
4460 | wxPyEndAllowThreads(__tstate); | |
4461 | if (PyErr_Occurred()) SWIG_fail; | |
4462 | } | |
4463 | { | |
4464 | #if wxUSE_UNICODE | |
4465 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4466 | #else | |
4467 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4468 | #endif | |
4469 | } | |
4470 | return resultobj; | |
4471 | fail: | |
4472 | return NULL; | |
4473 | } | |
4474 | ||
4475 | ||
4476 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4477 | PyObject *resultobj; | |
4478 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4479 | wxWindow *result; | |
4480 | PyObject * obj0 = 0 ; | |
4481 | char *kwnames[] = { | |
4482 | (char *) "self", NULL | |
4483 | }; | |
4484 | ||
4485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4488 | { |
4489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4490 | result = (wxWindow *)(arg1)->GetWindow(); | |
4491 | ||
4492 | wxPyEndAllowThreads(__tstate); | |
4493 | if (PyErr_Occurred()) SWIG_fail; | |
4494 | } | |
4495 | { | |
4496 | resultobj = wxPyMake_wxObject(result); | |
4497 | } | |
4498 | return resultobj; | |
4499 | fail: | |
4500 | return NULL; | |
4501 | } | |
4502 | ||
4503 | ||
4504 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4505 | PyObject *resultobj; | |
4506 | bool arg1 ; | |
4507 | PyObject * obj0 = 0 ; | |
4508 | char *kwnames[] = { | |
4509 | (char *) "flag", NULL | |
4510 | }; | |
4511 | ||
4512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4513 | arg1 = (bool) SWIG_AsBool(obj0); |
4514 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4515 | { |
4516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4517 | wxToolTip::Enable(arg1); | |
4518 | ||
4519 | wxPyEndAllowThreads(__tstate); | |
4520 | if (PyErr_Occurred()) SWIG_fail; | |
4521 | } | |
4522 | Py_INCREF(Py_None); resultobj = Py_None; | |
4523 | return resultobj; | |
4524 | fail: | |
4525 | return NULL; | |
4526 | } | |
4527 | ||
4528 | ||
4529 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4530 | PyObject *resultobj; | |
4531 | long arg1 ; | |
994141e6 | 4532 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4533 | char *kwnames[] = { |
4534 | (char *) "milliseconds", NULL | |
4535 | }; | |
4536 | ||
994141e6 | 4537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4538 | arg1 = (long) SWIG_AsLong(obj0); |
4539 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4540 | { |
4541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4542 | wxToolTip::SetDelay(arg1); | |
4543 | ||
4544 | wxPyEndAllowThreads(__tstate); | |
4545 | if (PyErr_Occurred()) SWIG_fail; | |
4546 | } | |
4547 | Py_INCREF(Py_None); resultobj = Py_None; | |
4548 | return resultobj; | |
4549 | fail: | |
4550 | return NULL; | |
4551 | } | |
4552 | ||
4553 | ||
4554 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
4555 | PyObject *obj; | |
4556 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4557 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
4558 | Py_INCREF(obj); | |
4559 | return Py_BuildValue((char *)""); | |
4560 | } | |
4561 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4562 | PyObject *resultobj; | |
4563 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4564 | wxSize *arg2 = 0 ; | |
4565 | wxCaret *result; | |
4566 | wxSize temp2 ; | |
4567 | PyObject * obj0 = 0 ; | |
4568 | PyObject * obj1 = 0 ; | |
4569 | char *kwnames[] = { | |
4570 | (char *) "window",(char *) "size", NULL | |
4571 | }; | |
4572 | ||
4573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4576 | { |
4577 | arg2 = &temp2; | |
4578 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4579 | } | |
4580 | { | |
4581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4582 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
4583 | ||
4584 | wxPyEndAllowThreads(__tstate); | |
4585 | if (PyErr_Occurred()) SWIG_fail; | |
4586 | } | |
15afbcd0 | 4587 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); |
d14a1e28 RD |
4588 | return resultobj; |
4589 | fail: | |
4590 | return NULL; | |
4591 | } | |
4592 | ||
4593 | ||
4594 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4595 | PyObject *resultobj; | |
4596 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4597 | PyObject * obj0 = 0 ; | |
4598 | char *kwnames[] = { | |
4599 | (char *) "self", NULL | |
4600 | }; | |
4601 | ||
4602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4605 | { |
4606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4607 | delete arg1; | |
4608 | ||
4609 | wxPyEndAllowThreads(__tstate); | |
4610 | if (PyErr_Occurred()) SWIG_fail; | |
4611 | } | |
4612 | Py_INCREF(Py_None); resultobj = Py_None; | |
4613 | return resultobj; | |
4614 | fail: | |
4615 | return NULL; | |
4616 | } | |
4617 | ||
4618 | ||
4619 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4620 | PyObject *resultobj; | |
4621 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4622 | bool result; | |
4623 | PyObject * obj0 = 0 ; | |
4624 | char *kwnames[] = { | |
4625 | (char *) "self", NULL | |
4626 | }; | |
4627 | ||
4628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4631 | { |
4632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4633 | result = (bool)(arg1)->IsOk(); | |
4634 | ||
4635 | wxPyEndAllowThreads(__tstate); | |
4636 | if (PyErr_Occurred()) SWIG_fail; | |
4637 | } | |
4f89f6a3 RD |
4638 | { |
4639 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4640 | } | |
d14a1e28 RD |
4641 | return resultobj; |
4642 | fail: | |
4643 | return NULL; | |
4644 | } | |
4645 | ||
4646 | ||
4647 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4648 | PyObject *resultobj; | |
4649 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4650 | bool result; | |
4651 | PyObject * obj0 = 0 ; | |
4652 | char *kwnames[] = { | |
4653 | (char *) "self", NULL | |
4654 | }; | |
4655 | ||
4656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4659 | { |
4660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4661 | result = (bool)(arg1)->IsVisible(); | |
4662 | ||
4663 | wxPyEndAllowThreads(__tstate); | |
4664 | if (PyErr_Occurred()) SWIG_fail; | |
4665 | } | |
4f89f6a3 RD |
4666 | { |
4667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4668 | } | |
d14a1e28 RD |
4669 | return resultobj; |
4670 | fail: | |
4671 | return NULL; | |
4672 | } | |
4673 | ||
4674 | ||
322913ce RD |
4675 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
4676 | PyObject *resultobj; | |
4677 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4678 | wxPoint result; | |
4679 | PyObject * obj0 = 0 ; | |
4680 | char *kwnames[] = { | |
4681 | (char *) "self", NULL | |
4682 | }; | |
4683 | ||
4684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
322913ce RD |
4687 | { |
4688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4689 | result = (arg1)->GetPosition(); | |
4690 | ||
4691 | wxPyEndAllowThreads(__tstate); | |
4692 | if (PyErr_Occurred()) SWIG_fail; | |
4693 | } | |
4694 | { | |
4695 | wxPoint * resultptr; | |
4696 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 4697 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
322913ce RD |
4698 | } |
4699 | return resultobj; | |
4700 | fail: | |
4701 | return NULL; | |
4702 | } | |
4703 | ||
4704 | ||
d14a1e28 RD |
4705 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
4706 | PyObject *resultobj; | |
4707 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4708 | int *arg2 = (int *) 0 ; | |
4709 | int *arg3 = (int *) 0 ; | |
4710 | int temp2 ; | |
4711 | int temp3 ; | |
4712 | PyObject * obj0 = 0 ; | |
4713 | char *kwnames[] = { | |
4714 | (char *) "self", NULL | |
4715 | }; | |
4716 | ||
4717 | arg2 = &temp2; | |
4718 | arg3 = &temp3; | |
4719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4722 | { |
4723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4724 | (arg1)->GetPosition(arg2,arg3); | |
4725 | ||
4726 | wxPyEndAllowThreads(__tstate); | |
4727 | if (PyErr_Occurred()) SWIG_fail; | |
4728 | } | |
4729 | Py_INCREF(Py_None); resultobj = Py_None; | |
4730 | { | |
4731 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4732 | resultobj = t_output_helper(resultobj,o); | |
4733 | } | |
4734 | { | |
4735 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4736 | resultobj = t_output_helper(resultobj,o); | |
4737 | } | |
4738 | return resultobj; | |
4739 | fail: | |
4740 | return NULL; | |
4741 | } | |
4742 | ||
4743 | ||
322913ce | 4744 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4745 | PyObject *resultobj; |
4746 | wxCaret *arg1 = (wxCaret *) 0 ; | |
322913ce | 4747 | wxSize result; |
d14a1e28 RD |
4748 | PyObject * obj0 = 0 ; |
4749 | char *kwnames[] = { | |
4750 | (char *) "self", NULL | |
4751 | }; | |
4752 | ||
322913ce | 4753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4756 | { |
4757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 4758 | result = (arg1)->GetSize(); |
d14a1e28 RD |
4759 | |
4760 | wxPyEndAllowThreads(__tstate); | |
4761 | if (PyErr_Occurred()) SWIG_fail; | |
4762 | } | |
4763 | { | |
322913ce RD |
4764 | wxSize * resultptr; |
4765 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 4766 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
4767 | } |
4768 | return resultobj; | |
4769 | fail: | |
4770 | return NULL; | |
4771 | } | |
4772 | ||
4773 | ||
4774 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4775 | PyObject *resultobj; | |
4776 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4777 | int *arg2 = (int *) 0 ; | |
4778 | int *arg3 = (int *) 0 ; | |
4779 | int temp2 ; | |
4780 | int temp3 ; | |
4781 | PyObject * obj0 = 0 ; | |
4782 | char *kwnames[] = { | |
4783 | (char *) "self", NULL | |
4784 | }; | |
4785 | ||
4786 | arg2 = &temp2; | |
4787 | arg3 = &temp3; | |
4788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4791 | { |
4792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4793 | (arg1)->GetSize(arg2,arg3); | |
4794 | ||
4795 | wxPyEndAllowThreads(__tstate); | |
4796 | if (PyErr_Occurred()) SWIG_fail; | |
4797 | } | |
4798 | Py_INCREF(Py_None); resultobj = Py_None; | |
4799 | { | |
4800 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4801 | resultobj = t_output_helper(resultobj,o); | |
4802 | } | |
4803 | { | |
4804 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4805 | resultobj = t_output_helper(resultobj,o); | |
4806 | } | |
4807 | return resultobj; | |
4808 | fail: | |
4809 | return NULL; | |
4810 | } | |
4811 | ||
4812 | ||
d14a1e28 RD |
4813 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
4814 | PyObject *resultobj; | |
4815 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4816 | wxWindow *result; | |
4817 | PyObject * obj0 = 0 ; | |
4818 | char *kwnames[] = { | |
4819 | (char *) "self", NULL | |
4820 | }; | |
4821 | ||
4822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4825 | { |
4826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4827 | result = (wxWindow *)(arg1)->GetWindow(); | |
4828 | ||
4829 | wxPyEndAllowThreads(__tstate); | |
4830 | if (PyErr_Occurred()) SWIG_fail; | |
4831 | } | |
4832 | { | |
4833 | resultobj = wxPyMake_wxObject(result); | |
4834 | } | |
4835 | return resultobj; | |
4836 | fail: | |
4837 | return NULL; | |
4838 | } | |
4839 | ||
4840 | ||
4841 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4842 | PyObject *resultobj; | |
4843 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4844 | int arg2 ; | |
4845 | int arg3 ; | |
4846 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4847 | PyObject * obj1 = 0 ; |
4848 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4849 | char *kwnames[] = { |
4850 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4851 | }; | |
4852 | ||
994141e6 | 4853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4856 | arg2 = (int) SWIG_AsInt(obj1); | |
4857 | if (PyErr_Occurred()) SWIG_fail; | |
4858 | arg3 = (int) SWIG_AsInt(obj2); | |
4859 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4860 | { |
4861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4862 | (arg1)->Move(arg2,arg3); | |
4863 | ||
4864 | wxPyEndAllowThreads(__tstate); | |
4865 | if (PyErr_Occurred()) SWIG_fail; | |
4866 | } | |
4867 | Py_INCREF(Py_None); resultobj = Py_None; | |
4868 | return resultobj; | |
4869 | fail: | |
4870 | return NULL; | |
4871 | } | |
4872 | ||
4873 | ||
4874 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4875 | PyObject *resultobj; | |
4876 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4877 | wxPoint *arg2 = 0 ; | |
4878 | wxPoint temp2 ; | |
4879 | PyObject * obj0 = 0 ; | |
4880 | PyObject * obj1 = 0 ; | |
4881 | char *kwnames[] = { | |
4882 | (char *) "self",(char *) "pt", NULL | |
4883 | }; | |
4884 | ||
4885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4888 | { |
4889 | arg2 = &temp2; | |
4890 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4891 | } | |
4892 | { | |
4893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4894 | (arg1)->Move((wxPoint const &)*arg2); | |
4895 | ||
4896 | wxPyEndAllowThreads(__tstate); | |
4897 | if (PyErr_Occurred()) SWIG_fail; | |
4898 | } | |
4899 | Py_INCREF(Py_None); resultobj = Py_None; | |
4900 | return resultobj; | |
4901 | fail: | |
4902 | return NULL; | |
4903 | } | |
4904 | ||
4905 | ||
4906 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4907 | PyObject *resultobj; | |
4908 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4909 | int arg2 ; | |
4910 | int arg3 ; | |
4911 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4912 | PyObject * obj1 = 0 ; |
4913 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4914 | char *kwnames[] = { |
4915 | (char *) "self",(char *) "width",(char *) "height", NULL | |
4916 | }; | |
4917 | ||
994141e6 | 4918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4921 | arg2 = (int) SWIG_AsInt(obj1); | |
4922 | if (PyErr_Occurred()) SWIG_fail; | |
4923 | arg3 = (int) SWIG_AsInt(obj2); | |
4924 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4925 | { |
4926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4927 | (arg1)->SetSize(arg2,arg3); | |
4928 | ||
4929 | wxPyEndAllowThreads(__tstate); | |
4930 | if (PyErr_Occurred()) SWIG_fail; | |
4931 | } | |
4932 | Py_INCREF(Py_None); resultobj = Py_None; | |
4933 | return resultobj; | |
4934 | fail: | |
4935 | return NULL; | |
4936 | } | |
4937 | ||
4938 | ||
4939 | static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4940 | PyObject *resultobj; | |
4941 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4942 | wxSize *arg2 = 0 ; | |
4943 | wxSize temp2 ; | |
4944 | PyObject * obj0 = 0 ; | |
4945 | PyObject * obj1 = 0 ; | |
4946 | char *kwnames[] = { | |
4947 | (char *) "self",(char *) "size", NULL | |
4948 | }; | |
4949 | ||
4950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4953 | { |
4954 | arg2 = &temp2; | |
4955 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4956 | } | |
4957 | { | |
4958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4959 | (arg1)->SetSize((wxSize const &)*arg2); | |
4960 | ||
4961 | wxPyEndAllowThreads(__tstate); | |
4962 | if (PyErr_Occurred()) SWIG_fail; | |
4963 | } | |
4964 | Py_INCREF(Py_None); resultobj = Py_None; | |
4965 | return resultobj; | |
4966 | fail: | |
4967 | return NULL; | |
4968 | } | |
4969 | ||
4970 | ||
4971 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4972 | PyObject *resultobj; | |
4973 | wxCaret *arg1 = (wxCaret *) 0 ; | |
e811c8ce | 4974 | int arg2 = (int) True ; |
d14a1e28 | 4975 | PyObject * obj0 = 0 ; |
994141e6 | 4976 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4977 | char *kwnames[] = { |
4978 | (char *) "self",(char *) "show", NULL | |
4979 | }; | |
4980 | ||
994141e6 | 4981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 4984 | if (obj1) { |
15afbcd0 RD |
4985 | arg2 = (int) SWIG_AsInt(obj1); |
4986 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4987 | } |
d14a1e28 RD |
4988 | { |
4989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4990 | (arg1)->Show(arg2); | |
4991 | ||
4992 | wxPyEndAllowThreads(__tstate); | |
4993 | if (PyErr_Occurred()) SWIG_fail; | |
4994 | } | |
4995 | Py_INCREF(Py_None); resultobj = Py_None; | |
4996 | return resultobj; | |
4997 | fail: | |
4998 | return NULL; | |
4999 | } | |
5000 | ||
5001 | ||
5002 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5003 | PyObject *resultobj; | |
5004 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5005 | PyObject * obj0 = 0 ; | |
5006 | char *kwnames[] = { | |
5007 | (char *) "self", NULL | |
5008 | }; | |
5009 | ||
5010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5013 | { |
5014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5015 | (arg1)->Hide(); | |
5016 | ||
5017 | wxPyEndAllowThreads(__tstate); | |
5018 | if (PyErr_Occurred()) SWIG_fail; | |
5019 | } | |
5020 | Py_INCREF(Py_None); resultobj = Py_None; | |
5021 | return resultobj; | |
5022 | fail: | |
5023 | return NULL; | |
5024 | } | |
5025 | ||
5026 | ||
5027 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
5028 | PyObject *obj; | |
5029 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5030 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
5031 | Py_INCREF(obj); | |
5032 | return Py_BuildValue((char *)""); | |
5033 | } | |
5034 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5035 | PyObject *resultobj; | |
5036 | int result; | |
5037 | char *kwnames[] = { | |
5038 | NULL | |
5039 | }; | |
5040 | ||
5041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
5042 | { | |
5043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5044 | result = (int)wxCaret_GetBlinkTime(); | |
5045 | ||
5046 | wxPyEndAllowThreads(__tstate); | |
5047 | if (PyErr_Occurred()) SWIG_fail; | |
5048 | } | |
15afbcd0 | 5049 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5050 | return resultobj; |
5051 | fail: | |
5052 | return NULL; | |
5053 | } | |
5054 | ||
5055 | ||
5056 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5057 | PyObject *resultobj; | |
5058 | int arg1 ; | |
994141e6 | 5059 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
5060 | char *kwnames[] = { |
5061 | (char *) "milliseconds", NULL | |
5062 | }; | |
5063 | ||
994141e6 | 5064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
5065 | arg1 = (int) SWIG_AsInt(obj0); |
5066 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5067 | { |
5068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5069 | wxCaret_SetBlinkTime(arg1); | |
5070 | ||
5071 | wxPyEndAllowThreads(__tstate); | |
5072 | if (PyErr_Occurred()) SWIG_fail; | |
5073 | } | |
5074 | Py_INCREF(Py_None); resultobj = Py_None; | |
5075 | return resultobj; | |
5076 | fail: | |
5077 | return NULL; | |
5078 | } | |
5079 | ||
5080 | ||
5081 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5082 | PyObject *resultobj; | |
5083 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
5084 | wxBusyCursor *result; | |
5085 | PyObject * obj0 = 0 ; | |
5086 | char *kwnames[] = { | |
5087 | (char *) "cursor", NULL | |
5088 | }; | |
5089 | ||
5090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
5091 | if (obj0) { | |
15afbcd0 RD |
5092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
5093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5094 | } |
5095 | { | |
5096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5097 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
5098 | ||
5099 | wxPyEndAllowThreads(__tstate); | |
5100 | if (PyErr_Occurred()) SWIG_fail; | |
5101 | } | |
15afbcd0 | 5102 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); |
d14a1e28 RD |
5103 | return resultobj; |
5104 | fail: | |
5105 | return NULL; | |
5106 | } | |
5107 | ||
5108 | ||
5109 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5110 | PyObject *resultobj; | |
5111 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
5112 | PyObject * obj0 = 0 ; | |
5113 | char *kwnames[] = { | |
5114 | (char *) "self", NULL | |
5115 | }; | |
5116 | ||
5117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor, |
5119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5120 | { |
5121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5122 | delete arg1; | |
5123 | ||
5124 | wxPyEndAllowThreads(__tstate); | |
5125 | if (PyErr_Occurred()) SWIG_fail; | |
5126 | } | |
5127 | Py_INCREF(Py_None); resultobj = Py_None; | |
5128 | return resultobj; | |
5129 | fail: | |
5130 | return NULL; | |
5131 | } | |
5132 | ||
5133 | ||
5134 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
5135 | PyObject *obj; | |
5136 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5137 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
5138 | Py_INCREF(obj); | |
5139 | return Py_BuildValue((char *)""); | |
5140 | } | |
5141 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5142 | PyObject *resultobj; | |
5143 | wxWindow *arg1 = (wxWindow *) NULL ; | |
5144 | wxWindowDisabler *result; | |
5145 | PyObject * obj0 = 0 ; | |
5146 | char *kwnames[] = { | |
5147 | (char *) "winToSkip", NULL | |
5148 | }; | |
5149 | ||
5150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
5151 | if (obj0) { | |
15afbcd0 RD |
5152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5154 | } |
5155 | { | |
5156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5157 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
5158 | ||
5159 | wxPyEndAllowThreads(__tstate); | |
5160 | if (PyErr_Occurred()) SWIG_fail; | |
5161 | } | |
15afbcd0 | 5162 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); |
d14a1e28 RD |
5163 | return resultobj; |
5164 | fail: | |
5165 | return NULL; | |
5166 | } | |
5167 | ||
5168 | ||
5169 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5170 | PyObject *resultobj; | |
5171 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
5172 | PyObject * obj0 = 0 ; | |
5173 | char *kwnames[] = { | |
5174 | (char *) "self", NULL | |
5175 | }; | |
5176 | ||
5177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler, |
5179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5180 | { |
5181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5182 | delete arg1; | |
5183 | ||
5184 | wxPyEndAllowThreads(__tstate); | |
5185 | if (PyErr_Occurred()) SWIG_fail; | |
5186 | } | |
5187 | Py_INCREF(Py_None); resultobj = Py_None; | |
5188 | return resultobj; | |
5189 | fail: | |
5190 | return NULL; | |
5191 | } | |
5192 | ||
5193 | ||
5194 | static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
5195 | PyObject *obj; | |
5196 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5197 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
5198 | Py_INCREF(obj); | |
5199 | return Py_BuildValue((char *)""); | |
5200 | } | |
5201 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5202 | PyObject *resultobj; | |
5203 | wxString *arg1 = 0 ; | |
5204 | wxBusyInfo *result; | |
e811c8ce | 5205 | bool temp1 = False ; |
d14a1e28 RD |
5206 | PyObject * obj0 = 0 ; |
5207 | char *kwnames[] = { | |
5208 | (char *) "message", NULL | |
5209 | }; | |
5210 | ||
5211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
5212 | { | |
5213 | arg1 = wxString_in_helper(obj0); | |
5214 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 5215 | temp1 = True; |
d14a1e28 RD |
5216 | } |
5217 | { | |
5218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5219 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
5220 | ||
5221 | wxPyEndAllowThreads(__tstate); | |
5222 | if (PyErr_Occurred()) SWIG_fail; | |
5223 | } | |
15afbcd0 | 5224 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); |
d14a1e28 RD |
5225 | { |
5226 | if (temp1) | |
5227 | delete arg1; | |
5228 | } | |
5229 | return resultobj; | |
5230 | fail: | |
5231 | { | |
5232 | if (temp1) | |
5233 | delete arg1; | |
5234 | } | |
5235 | return NULL; | |
5236 | } | |
5237 | ||
5238 | ||
5239 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5240 | PyObject *resultobj; | |
5241 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5242 | PyObject * obj0 = 0 ; | |
5243 | char *kwnames[] = { | |
5244 | (char *) "self", NULL | |
5245 | }; | |
5246 | ||
5247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo, |
5249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5250 | { |
5251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5252 | delete arg1; | |
5253 | ||
5254 | wxPyEndAllowThreads(__tstate); | |
5255 | if (PyErr_Occurred()) SWIG_fail; | |
5256 | } | |
5257 | Py_INCREF(Py_None); resultobj = Py_None; | |
5258 | return resultobj; | |
5259 | fail: | |
5260 | return NULL; | |
5261 | } | |
5262 | ||
5263 | ||
5264 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
5265 | PyObject *obj; | |
5266 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5267 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5268 | Py_INCREF(obj); | |
5269 | return Py_BuildValue((char *)""); | |
5270 | } | |
5271 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5272 | PyObject *resultobj; | |
5273 | wxStopWatch *result; | |
5274 | char *kwnames[] = { | |
5275 | NULL | |
5276 | }; | |
5277 | ||
5278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5279 | { | |
5280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5281 | result = (wxStopWatch *)new wxStopWatch(); | |
5282 | ||
5283 | wxPyEndAllowThreads(__tstate); | |
5284 | if (PyErr_Occurred()) SWIG_fail; | |
5285 | } | |
15afbcd0 | 5286 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); |
d14a1e28 RD |
5287 | return resultobj; |
5288 | fail: | |
5289 | return NULL; | |
5290 | } | |
5291 | ||
5292 | ||
5293 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5294 | PyObject *resultobj; | |
5295 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5296 | long arg2 = (long) 0 ; | |
5297 | PyObject * obj0 = 0 ; | |
994141e6 | 5298 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5299 | char *kwnames[] = { |
5300 | (char *) "self",(char *) "t0", NULL | |
5301 | }; | |
5302 | ||
994141e6 | 5303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5306 | if (obj1) { |
15afbcd0 RD |
5307 | arg2 = (long) SWIG_AsLong(obj1); |
5308 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5309 | } |
d14a1e28 RD |
5310 | { |
5311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5312 | (arg1)->Start(arg2); | |
5313 | ||
5314 | wxPyEndAllowThreads(__tstate); | |
5315 | if (PyErr_Occurred()) SWIG_fail; | |
5316 | } | |
5317 | Py_INCREF(Py_None); resultobj = Py_None; | |
5318 | return resultobj; | |
5319 | fail: | |
5320 | return NULL; | |
5321 | } | |
5322 | ||
5323 | ||
5324 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5325 | PyObject *resultobj; | |
5326 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5327 | PyObject * obj0 = 0 ; | |
5328 | char *kwnames[] = { | |
5329 | (char *) "self", NULL | |
5330 | }; | |
5331 | ||
5332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5335 | { |
5336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5337 | (arg1)->Pause(); | |
5338 | ||
5339 | wxPyEndAllowThreads(__tstate); | |
5340 | if (PyErr_Occurred()) SWIG_fail; | |
5341 | } | |
5342 | Py_INCREF(Py_None); resultobj = Py_None; | |
5343 | return resultobj; | |
5344 | fail: | |
5345 | return NULL; | |
5346 | } | |
5347 | ||
5348 | ||
5349 | static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5350 | PyObject *resultobj; | |
5351 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5352 | PyObject * obj0 = 0 ; | |
5353 | char *kwnames[] = { | |
5354 | (char *) "self", NULL | |
5355 | }; | |
5356 | ||
5357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5360 | { |
5361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5362 | (arg1)->Resume(); | |
5363 | ||
5364 | wxPyEndAllowThreads(__tstate); | |
5365 | if (PyErr_Occurred()) SWIG_fail; | |
5366 | } | |
5367 | Py_INCREF(Py_None); resultobj = Py_None; | |
5368 | return resultobj; | |
5369 | fail: | |
5370 | return NULL; | |
5371 | } | |
5372 | ||
5373 | ||
5374 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5375 | PyObject *resultobj; | |
5376 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5377 | long result; | |
5378 | PyObject * obj0 = 0 ; | |
5379 | char *kwnames[] = { | |
5380 | (char *) "self", NULL | |
5381 | }; | |
5382 | ||
5383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5386 | { |
5387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5388 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5389 | ||
5390 | wxPyEndAllowThreads(__tstate); | |
5391 | if (PyErr_Occurred()) SWIG_fail; | |
5392 | } | |
15afbcd0 | 5393 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
5394 | return resultobj; |
5395 | fail: | |
5396 | return NULL; | |
5397 | } | |
5398 | ||
5399 | ||
5400 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
5401 | PyObject *obj; | |
5402 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5403 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5404 | Py_INCREF(obj); | |
5405 | return Py_BuildValue((char *)""); | |
5406 | } | |
5407 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5408 | PyObject *resultobj; | |
5409 | int arg1 = (int) 9 ; | |
5410 | wxFileHistory *result; | |
994141e6 | 5411 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
5412 | char *kwnames[] = { |
5413 | (char *) "maxFiles", NULL | |
5414 | }; | |
5415 | ||
994141e6 RD |
5416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail; |
5417 | if (obj0) { | |
15afbcd0 RD |
5418 | arg1 = (int) SWIG_AsInt(obj0); |
5419 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5420 | } |
d14a1e28 RD |
5421 | { |
5422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5423 | result = (wxFileHistory *)new wxFileHistory(arg1); | |
5424 | ||
5425 | wxPyEndAllowThreads(__tstate); | |
5426 | if (PyErr_Occurred()) SWIG_fail; | |
5427 | } | |
15afbcd0 | 5428 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); |
d14a1e28 RD |
5429 | return resultobj; |
5430 | fail: | |
5431 | return NULL; | |
5432 | } | |
5433 | ||
5434 | ||
5435 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5436 | PyObject *resultobj; | |
5437 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5438 | PyObject * obj0 = 0 ; | |
5439 | char *kwnames[] = { | |
5440 | (char *) "self", NULL | |
5441 | }; | |
5442 | ||
5443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5446 | { |
5447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5448 | delete arg1; | |
5449 | ||
5450 | wxPyEndAllowThreads(__tstate); | |
5451 | if (PyErr_Occurred()) SWIG_fail; | |
5452 | } | |
5453 | Py_INCREF(Py_None); resultobj = Py_None; | |
5454 | return resultobj; | |
5455 | fail: | |
5456 | return NULL; | |
5457 | } | |
5458 | ||
5459 | ||
5460 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5461 | PyObject *resultobj; | |
5462 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5463 | wxString *arg2 = 0 ; | |
e811c8ce | 5464 | bool temp2 = False ; |
d14a1e28 RD |
5465 | PyObject * obj0 = 0 ; |
5466 | PyObject * obj1 = 0 ; | |
5467 | char *kwnames[] = { | |
5468 | (char *) "self",(char *) "file", NULL | |
5469 | }; | |
5470 | ||
5471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5474 | { |
5475 | arg2 = wxString_in_helper(obj1); | |
5476 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5477 | temp2 = True; |
d14a1e28 RD |
5478 | } |
5479 | { | |
5480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5481 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
5482 | ||
5483 | wxPyEndAllowThreads(__tstate); | |
5484 | if (PyErr_Occurred()) SWIG_fail; | |
5485 | } | |
5486 | Py_INCREF(Py_None); resultobj = Py_None; | |
5487 | { | |
5488 | if (temp2) | |
5489 | delete arg2; | |
5490 | } | |
5491 | return resultobj; | |
5492 | fail: | |
5493 | { | |
5494 | if (temp2) | |
5495 | delete arg2; | |
5496 | } | |
5497 | return NULL; | |
5498 | } | |
5499 | ||
5500 | ||
5501 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5502 | PyObject *resultobj; | |
5503 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5504 | int arg2 ; | |
5505 | PyObject * obj0 = 0 ; | |
994141e6 | 5506 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5507 | char *kwnames[] = { |
5508 | (char *) "self",(char *) "i", NULL | |
5509 | }; | |
5510 | ||
994141e6 | 5511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5514 | arg2 = (int) SWIG_AsInt(obj1); | |
5515 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5516 | { |
5517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5518 | (arg1)->RemoveFileFromHistory(arg2); | |
5519 | ||
5520 | wxPyEndAllowThreads(__tstate); | |
5521 | if (PyErr_Occurred()) SWIG_fail; | |
5522 | } | |
5523 | Py_INCREF(Py_None); resultobj = Py_None; | |
5524 | return resultobj; | |
5525 | fail: | |
5526 | return NULL; | |
5527 | } | |
5528 | ||
5529 | ||
5530 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5531 | PyObject *resultobj; | |
5532 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5533 | int result; | |
5534 | PyObject * obj0 = 0 ; | |
5535 | char *kwnames[] = { | |
5536 | (char *) "self", NULL | |
5537 | }; | |
5538 | ||
5539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5542 | { |
5543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5544 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
5545 | ||
5546 | wxPyEndAllowThreads(__tstate); | |
5547 | if (PyErr_Occurred()) SWIG_fail; | |
5548 | } | |
15afbcd0 | 5549 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5550 | return resultobj; |
5551 | fail: | |
5552 | return NULL; | |
5553 | } | |
5554 | ||
5555 | ||
5556 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5557 | PyObject *resultobj; | |
5558 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5559 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5560 | PyObject * obj0 = 0 ; | |
5561 | PyObject * obj1 = 0 ; | |
5562 | char *kwnames[] = { | |
5563 | (char *) "self",(char *) "menu", NULL | |
5564 | }; | |
5565 | ||
5566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5569 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5571 | { |
5572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5573 | (arg1)->UseMenu(arg2); | |
5574 | ||
5575 | wxPyEndAllowThreads(__tstate); | |
5576 | if (PyErr_Occurred()) SWIG_fail; | |
5577 | } | |
5578 | Py_INCREF(Py_None); resultobj = Py_None; | |
5579 | return resultobj; | |
5580 | fail: | |
5581 | return NULL; | |
5582 | } | |
5583 | ||
5584 | ||
5585 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5586 | PyObject *resultobj; | |
5587 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5588 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5589 | PyObject * obj0 = 0 ; | |
5590 | PyObject * obj1 = 0 ; | |
5591 | char *kwnames[] = { | |
5592 | (char *) "self",(char *) "menu", NULL | |
5593 | }; | |
5594 | ||
5595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5598 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5600 | { |
5601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5602 | (arg1)->RemoveMenu(arg2); | |
5603 | ||
5604 | wxPyEndAllowThreads(__tstate); | |
5605 | if (PyErr_Occurred()) SWIG_fail; | |
5606 | } | |
5607 | Py_INCREF(Py_None); resultobj = Py_None; | |
5608 | return resultobj; | |
5609 | fail: | |
5610 | return NULL; | |
5611 | } | |
5612 | ||
5613 | ||
5614 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5615 | PyObject *resultobj; | |
5616 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5617 | wxConfigBase *arg2 = 0 ; | |
5618 | PyObject * obj0 = 0 ; | |
5619 | PyObject * obj1 = 0 ; | |
5620 | char *kwnames[] = { | |
5621 | (char *) "self",(char *) "config", NULL | |
5622 | }; | |
5623 | ||
5624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5627 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5628 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5629 | SWIG_fail; | |
d14a1e28 | 5630 | if (arg2 == NULL) { |
15afbcd0 RD |
5631 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5632 | SWIG_fail; | |
d14a1e28 RD |
5633 | } |
5634 | { | |
5635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5636 | (arg1)->Load(*arg2); | |
5637 | ||
5638 | wxPyEndAllowThreads(__tstate); | |
5639 | if (PyErr_Occurred()) SWIG_fail; | |
5640 | } | |
5641 | Py_INCREF(Py_None); resultobj = Py_None; | |
5642 | return resultobj; | |
5643 | fail: | |
5644 | return NULL; | |
5645 | } | |
5646 | ||
5647 | ||
5648 | static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5649 | PyObject *resultobj; | |
5650 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5651 | wxConfigBase *arg2 = 0 ; | |
5652 | PyObject * obj0 = 0 ; | |
5653 | PyObject * obj1 = 0 ; | |
5654 | char *kwnames[] = { | |
5655 | (char *) "self",(char *) "config", NULL | |
5656 | }; | |
5657 | ||
5658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5661 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5662 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5663 | SWIG_fail; | |
d14a1e28 | 5664 | if (arg2 == NULL) { |
15afbcd0 RD |
5665 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5666 | SWIG_fail; | |
d14a1e28 RD |
5667 | } |
5668 | { | |
5669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5670 | (arg1)->Save(*arg2); | |
5671 | ||
5672 | wxPyEndAllowThreads(__tstate); | |
5673 | if (PyErr_Occurred()) SWIG_fail; | |
5674 | } | |
5675 | Py_INCREF(Py_None); resultobj = Py_None; | |
5676 | return resultobj; | |
5677 | fail: | |
5678 | return NULL; | |
5679 | } | |
5680 | ||
5681 | ||
5682 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5683 | PyObject *resultobj; | |
5684 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5685 | PyObject * obj0 = 0 ; | |
5686 | char *kwnames[] = { | |
5687 | (char *) "self", NULL | |
5688 | }; | |
5689 | ||
5690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5693 | { |
5694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5695 | (arg1)->AddFilesToMenu(); | |
5696 | ||
5697 | wxPyEndAllowThreads(__tstate); | |
5698 | if (PyErr_Occurred()) SWIG_fail; | |
5699 | } | |
5700 | Py_INCREF(Py_None); resultobj = Py_None; | |
5701 | return resultobj; | |
5702 | fail: | |
5703 | return NULL; | |
5704 | } | |
5705 | ||
5706 | ||
5707 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5708 | PyObject *resultobj; | |
5709 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5710 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5711 | PyObject * obj0 = 0 ; | |
5712 | PyObject * obj1 = 0 ; | |
5713 | char *kwnames[] = { | |
5714 | (char *) "self",(char *) "menu", NULL | |
5715 | }; | |
5716 | ||
5717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5720 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5722 | { |
5723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5724 | (arg1)->AddFilesToMenu(arg2); | |
5725 | ||
5726 | wxPyEndAllowThreads(__tstate); | |
5727 | if (PyErr_Occurred()) SWIG_fail; | |
5728 | } | |
5729 | Py_INCREF(Py_None); resultobj = Py_None; | |
5730 | return resultobj; | |
5731 | fail: | |
5732 | return NULL; | |
5733 | } | |
5734 | ||
5735 | ||
5736 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5737 | PyObject *resultobj; | |
5738 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5739 | int arg2 ; | |
5740 | wxString result; | |
5741 | PyObject * obj0 = 0 ; | |
994141e6 | 5742 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5743 | char *kwnames[] = { |
5744 | (char *) "self",(char *) "i", NULL | |
5745 | }; | |
5746 | ||
994141e6 | 5747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5750 | arg2 = (int) SWIG_AsInt(obj1); | |
5751 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5752 | { |
5753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5754 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
5755 | ||
5756 | wxPyEndAllowThreads(__tstate); | |
5757 | if (PyErr_Occurred()) SWIG_fail; | |
5758 | } | |
5759 | { | |
5760 | #if wxUSE_UNICODE | |
5761 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5762 | #else | |
5763 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5764 | #endif | |
5765 | } | |
5766 | return resultobj; | |
5767 | fail: | |
5768 | return NULL; | |
5769 | } | |
5770 | ||
5771 | ||
5772 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5773 | PyObject *resultobj; | |
5774 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5775 | int result; | |
5776 | PyObject * obj0 = 0 ; | |
5777 | char *kwnames[] = { | |
5778 | (char *) "self", NULL | |
5779 | }; | |
5780 | ||
5781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5784 | { |
5785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5786 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
5787 | ||
5788 | wxPyEndAllowThreads(__tstate); | |
5789 | if (PyErr_Occurred()) SWIG_fail; | |
5790 | } | |
15afbcd0 | 5791 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5792 | return resultobj; |
5793 | fail: | |
5794 | return NULL; | |
5795 | } | |
5796 | ||
5797 | ||
5798 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
5799 | PyObject *obj; | |
5800 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5801 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
5802 | Py_INCREF(obj); | |
5803 | return Py_BuildValue((char *)""); | |
5804 | } | |
5805 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5806 | PyObject *resultobj; | |
5807 | wxString *arg1 = 0 ; | |
5808 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5809 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5810 | wxSingleInstanceChecker *result; | |
e811c8ce RD |
5811 | bool temp1 = False ; |
5812 | bool temp2 = False ; | |
d14a1e28 RD |
5813 | PyObject * obj0 = 0 ; |
5814 | PyObject * obj1 = 0 ; | |
5815 | char *kwnames[] = { | |
5816 | (char *) "name",(char *) "path", NULL | |
5817 | }; | |
5818 | ||
5819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
5820 | { | |
5821 | arg1 = wxString_in_helper(obj0); | |
5822 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 5823 | temp1 = True; |
d14a1e28 RD |
5824 | } |
5825 | if (obj1) { | |
5826 | { | |
5827 | arg2 = wxString_in_helper(obj1); | |
5828 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5829 | temp2 = True; |
d14a1e28 RD |
5830 | } |
5831 | } | |
5832 | { | |
5833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5834 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
5835 | ||
5836 | wxPyEndAllowThreads(__tstate); | |
5837 | if (PyErr_Occurred()) SWIG_fail; | |
5838 | } | |
15afbcd0 | 5839 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); |
d14a1e28 RD |
5840 | { |
5841 | if (temp1) | |
5842 | delete arg1; | |
5843 | } | |
5844 | { | |
5845 | if (temp2) | |
5846 | delete arg2; | |
5847 | } | |
5848 | return resultobj; | |
5849 | fail: | |
5850 | { | |
5851 | if (temp1) | |
5852 | delete arg1; | |
5853 | } | |
5854 | { | |
5855 | if (temp2) | |
5856 | delete arg2; | |
5857 | } | |
5858 | return NULL; | |
5859 | } | |
5860 | ||
5861 | ||
5862 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5863 | PyObject *resultobj; | |
5864 | wxSingleInstanceChecker *result; | |
5865 | char *kwnames[] = { | |
5866 | NULL | |
5867 | }; | |
5868 | ||
5869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
5870 | { | |
5871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5872 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
5873 | ||
5874 | wxPyEndAllowThreads(__tstate); | |
5875 | if (PyErr_Occurred()) SWIG_fail; | |
5876 | } | |
15afbcd0 | 5877 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); |
d14a1e28 RD |
5878 | return resultobj; |
5879 | fail: | |
5880 | return NULL; | |
5881 | } | |
5882 | ||
5883 | ||
5884 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5885 | PyObject *resultobj; | |
5886 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5887 | PyObject * obj0 = 0 ; | |
5888 | char *kwnames[] = { | |
5889 | (char *) "self", NULL | |
5890 | }; | |
5891 | ||
5892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
5894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5895 | { |
5896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5897 | delete arg1; | |
5898 | ||
5899 | wxPyEndAllowThreads(__tstate); | |
5900 | if (PyErr_Occurred()) SWIG_fail; | |
5901 | } | |
5902 | Py_INCREF(Py_None); resultobj = Py_None; | |
5903 | return resultobj; | |
5904 | fail: | |
5905 | return NULL; | |
5906 | } | |
5907 | ||
5908 | ||
5909 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5910 | PyObject *resultobj; | |
5911 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5912 | wxString *arg2 = 0 ; | |
5913 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5914 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5915 | bool result; | |
e811c8ce RD |
5916 | bool temp2 = False ; |
5917 | bool temp3 = False ; | |
d14a1e28 RD |
5918 | PyObject * obj0 = 0 ; |
5919 | PyObject * obj1 = 0 ; | |
5920 | PyObject * obj2 = 0 ; | |
5921 | char *kwnames[] = { | |
5922 | (char *) "self",(char *) "name",(char *) "path", NULL | |
5923 | }; | |
5924 | ||
5925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
5926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
5927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5928 | { |
5929 | arg2 = wxString_in_helper(obj1); | |
5930 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5931 | temp2 = True; |
d14a1e28 RD |
5932 | } |
5933 | if (obj2) { | |
5934 | { | |
5935 | arg3 = wxString_in_helper(obj2); | |
5936 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 5937 | temp3 = True; |
d14a1e28 RD |
5938 | } |
5939 | } | |
5940 | { | |
5941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5942 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
5943 | ||
5944 | wxPyEndAllowThreads(__tstate); | |
5945 | if (PyErr_Occurred()) SWIG_fail; | |
5946 | } | |
4f89f6a3 RD |
5947 | { |
5948 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5949 | } | |
d14a1e28 RD |
5950 | { |
5951 | if (temp2) | |
5952 | delete arg2; | |
5953 | } | |
5954 | { | |
5955 | if (temp3) | |
5956 | delete arg3; | |
5957 | } | |
5958 | return resultobj; | |
5959 | fail: | |
5960 | { | |
5961 | if (temp2) | |
5962 | delete arg2; | |
5963 | } | |
5964 | { | |
5965 | if (temp3) | |
5966 | delete arg3; | |
5967 | } | |
5968 | return NULL; | |
5969 | } | |
5970 | ||
5971 | ||
5972 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5973 | PyObject *resultobj; | |
5974 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5975 | bool result; | |
5976 | PyObject * obj0 = 0 ; | |
5977 | char *kwnames[] = { | |
5978 | (char *) "self", NULL | |
5979 | }; | |
5980 | ||
5981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
5983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5984 | { |
5985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5986 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
5987 | ||
5988 | wxPyEndAllowThreads(__tstate); | |
5989 | if (PyErr_Occurred()) SWIG_fail; | |
5990 | } | |
4f89f6a3 RD |
5991 | { |
5992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5993 | } | |
d14a1e28 RD |
5994 | return resultobj; |
5995 | fail: | |
5996 | return NULL; | |
5997 | } | |
5998 | ||
5999 | ||
6000 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
6001 | PyObject *obj; | |
6002 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6003 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
6004 | Py_INCREF(obj); | |
6005 | return Py_BuildValue((char *)""); | |
6006 | } | |
6007 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6008 | PyObject *resultobj; | |
6009 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6010 | wxDC *arg2 = 0 ; | |
6011 | int arg3 ; | |
6012 | PyObject * obj0 = 0 ; | |
6013 | PyObject * obj1 = 0 ; | |
994141e6 | 6014 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6015 | char *kwnames[] = { |
6016 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
6017 | }; | |
6018 | ||
994141e6 | 6019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6022 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
6023 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6024 | SWIG_fail; | |
d14a1e28 | 6025 | if (arg2 == NULL) { |
15afbcd0 RD |
6026 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6027 | SWIG_fail; | |
994141e6 | 6028 | } |
15afbcd0 RD |
6029 | arg3 = (int) SWIG_AsInt(obj2); |
6030 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6031 | { |
6032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6033 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
6034 | ||
6035 | wxPyEndAllowThreads(__tstate); | |
6036 | if (PyErr_Occurred()) SWIG_fail; | |
6037 | } | |
6038 | Py_INCREF(Py_None); resultobj = Py_None; | |
6039 | return resultobj; | |
6040 | fail: | |
6041 | return NULL; | |
6042 | } | |
6043 | ||
6044 | ||
6045 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6046 | PyObject *resultobj; | |
6047 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6048 | PyObject * obj0 = 0 ; | |
6049 | char *kwnames[] = { | |
6050 | (char *) "self", NULL | |
6051 | }; | |
6052 | ||
6053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6056 | { |
6057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6058 | delete arg1; | |
6059 | ||
6060 | wxPyEndAllowThreads(__tstate); | |
6061 | if (PyErr_Occurred()) SWIG_fail; | |
6062 | } | |
6063 | Py_INCREF(Py_None); resultobj = Py_None; | |
6064 | return resultobj; | |
6065 | fail: | |
6066 | return NULL; | |
6067 | } | |
6068 | ||
6069 | ||
6070 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6071 | PyObject *resultobj; | |
6072 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6073 | wxString result; | |
6074 | PyObject * obj0 = 0 ; | |
6075 | char *kwnames[] = { | |
6076 | (char *) "self", NULL | |
6077 | }; | |
6078 | ||
6079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6082 | { |
6083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6084 | result = (arg1)->GetTip(); | |
6085 | ||
6086 | wxPyEndAllowThreads(__tstate); | |
6087 | if (PyErr_Occurred()) SWIG_fail; | |
6088 | } | |
6089 | { | |
6090 | #if wxUSE_UNICODE | |
6091 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6092 | #else | |
6093 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6094 | #endif | |
6095 | } | |
6096 | return resultobj; | |
6097 | fail: | |
6098 | return NULL; | |
6099 | } | |
6100 | ||
6101 | ||
6102 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6103 | PyObject *resultobj; | |
6104 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6105 | size_t result; | |
6106 | PyObject * obj0 = 0 ; | |
6107 | char *kwnames[] = { | |
6108 | (char *) "self", NULL | |
6109 | }; | |
6110 | ||
6111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6114 | { |
6115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6116 | result = (size_t)(arg1)->GetCurrentTip(); | |
6117 | ||
6118 | wxPyEndAllowThreads(__tstate); | |
6119 | if (PyErr_Occurred()) SWIG_fail; | |
6120 | } | |
15afbcd0 | 6121 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
6122 | return resultobj; |
6123 | fail: | |
6124 | return NULL; | |
6125 | } | |
6126 | ||
6127 | ||
6128 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6129 | PyObject *resultobj; | |
6130 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6131 | wxString *arg2 = 0 ; | |
6132 | wxString result; | |
e811c8ce | 6133 | bool temp2 = False ; |
d14a1e28 RD |
6134 | PyObject * obj0 = 0 ; |
6135 | PyObject * obj1 = 0 ; | |
6136 | char *kwnames[] = { | |
6137 | (char *) "self",(char *) "tip", NULL | |
6138 | }; | |
6139 | ||
6140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6143 | { |
6144 | arg2 = wxString_in_helper(obj1); | |
6145 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6146 | temp2 = True; |
d14a1e28 RD |
6147 | } |
6148 | { | |
6149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6150 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
6151 | ||
6152 | wxPyEndAllowThreads(__tstate); | |
6153 | if (PyErr_Occurred()) SWIG_fail; | |
6154 | } | |
6155 | { | |
6156 | #if wxUSE_UNICODE | |
6157 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6158 | #else | |
6159 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6160 | #endif | |
6161 | } | |
6162 | { | |
6163 | if (temp2) | |
6164 | delete arg2; | |
6165 | } | |
6166 | return resultobj; | |
6167 | fail: | |
6168 | { | |
6169 | if (temp2) | |
6170 | delete arg2; | |
6171 | } | |
6172 | return NULL; | |
6173 | } | |
6174 | ||
6175 | ||
6176 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
6177 | PyObject *obj; | |
6178 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6179 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
6180 | Py_INCREF(obj); | |
6181 | return Py_BuildValue((char *)""); | |
6182 | } | |
6183 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6184 | PyObject *resultobj; | |
6185 | size_t arg1 ; | |
6186 | wxPyTipProvider *result; | |
6187 | PyObject * obj0 = 0 ; | |
6188 | char *kwnames[] = { | |
6189 | (char *) "currentTip", NULL | |
6190 | }; | |
6191 | ||
6192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6193 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); |
6194 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6195 | { |
6196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6197 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
6198 | ||
6199 | wxPyEndAllowThreads(__tstate); | |
6200 | if (PyErr_Occurred()) SWIG_fail; | |
6201 | } | |
15afbcd0 | 6202 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); |
d14a1e28 RD |
6203 | return resultobj; |
6204 | fail: | |
6205 | return NULL; | |
6206 | } | |
6207 | ||
6208 | ||
6209 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6210 | PyObject *resultobj; | |
6211 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
6212 | PyObject *arg2 = (PyObject *) 0 ; | |
6213 | PyObject *arg3 = (PyObject *) 0 ; | |
6214 | PyObject * obj0 = 0 ; | |
6215 | PyObject * obj1 = 0 ; | |
6216 | PyObject * obj2 = 0 ; | |
6217 | char *kwnames[] = { | |
6218 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6219 | }; | |
6220 | ||
6221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider, |
6223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6224 | arg2 = obj1; |
6225 | arg3 = obj2; | |
6226 | { | |
6227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6228 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6229 | ||
6230 | wxPyEndAllowThreads(__tstate); | |
6231 | if (PyErr_Occurred()) SWIG_fail; | |
6232 | } | |
6233 | Py_INCREF(Py_None); resultobj = Py_None; | |
6234 | return resultobj; | |
6235 | fail: | |
6236 | return NULL; | |
6237 | } | |
6238 | ||
6239 | ||
6240 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
6241 | PyObject *obj; | |
6242 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6243 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
6244 | Py_INCREF(obj); | |
6245 | return Py_BuildValue((char *)""); | |
6246 | } | |
6247 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6248 | PyObject *resultobj; | |
6249 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6250 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
e811c8ce | 6251 | bool arg3 = (bool) True ; |
d14a1e28 RD |
6252 | bool result; |
6253 | PyObject * obj0 = 0 ; | |
6254 | PyObject * obj1 = 0 ; | |
6255 | PyObject * obj2 = 0 ; | |
6256 | char *kwnames[] = { | |
6257 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
6258 | }; | |
6259 | ||
6260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6263 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider, | |
6264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6265 | if (obj2) { |
15afbcd0 RD |
6266 | arg3 = (bool) SWIG_AsBool(obj2); |
6267 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6268 | } |
6269 | { | |
6270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6271 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6272 | ||
6273 | wxPyEndAllowThreads(__tstate); | |
6274 | if (PyErr_Occurred()) SWIG_fail; | |
6275 | } | |
4f89f6a3 RD |
6276 | { |
6277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6278 | } | |
d14a1e28 RD |
6279 | return resultobj; |
6280 | fail: | |
6281 | return NULL; | |
6282 | } | |
6283 | ||
6284 | ||
6285 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6286 | PyObject *resultobj; | |
6287 | wxString *arg1 = 0 ; | |
6288 | size_t arg2 ; | |
6289 | wxTipProvider *result; | |
e811c8ce | 6290 | bool temp1 = False ; |
d14a1e28 RD |
6291 | PyObject * obj0 = 0 ; |
6292 | PyObject * obj1 = 0 ; | |
6293 | char *kwnames[] = { | |
6294 | (char *) "filename",(char *) "currentTip", NULL | |
6295 | }; | |
6296 | ||
6297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6298 | { | |
6299 | arg1 = wxString_in_helper(obj0); | |
6300 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 6301 | temp1 = True; |
d14a1e28 | 6302 | } |
15afbcd0 RD |
6303 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); |
6304 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6305 | { |
6306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6307 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6308 | ||
6309 | wxPyEndAllowThreads(__tstate); | |
6310 | if (PyErr_Occurred()) SWIG_fail; | |
6311 | } | |
15afbcd0 | 6312 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); |
d14a1e28 RD |
6313 | { |
6314 | if (temp1) | |
6315 | delete arg1; | |
6316 | } | |
6317 | return resultobj; | |
6318 | fail: | |
6319 | { | |
6320 | if (temp1) | |
6321 | delete arg1; | |
6322 | } | |
6323 | return NULL; | |
6324 | } | |
6325 | ||
6326 | ||
6327 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6328 | PyObject *resultobj; | |
6329 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6330 | int arg2 = (int) -1 ; | |
6331 | wxPyTimer *result; | |
6332 | PyObject * obj0 = 0 ; | |
994141e6 | 6333 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6334 | char *kwnames[] = { |
6335 | (char *) "owner",(char *) "id", NULL | |
6336 | }; | |
6337 | ||
994141e6 | 6338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6339 | if (obj0) { |
15afbcd0 RD |
6340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
6341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6342 | } |
994141e6 | 6343 | if (obj1) { |
15afbcd0 RD |
6344 | arg2 = (int) SWIG_AsInt(obj1); |
6345 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6346 | } |
d14a1e28 RD |
6347 | { |
6348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6349 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6350 | ||
6351 | wxPyEndAllowThreads(__tstate); | |
6352 | if (PyErr_Occurred()) SWIG_fail; | |
6353 | } | |
15afbcd0 | 6354 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); |
d14a1e28 RD |
6355 | return resultobj; |
6356 | fail: | |
6357 | return NULL; | |
6358 | } | |
6359 | ||
6360 | ||
6361 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6362 | PyObject *resultobj; | |
6363 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6364 | PyObject * obj0 = 0 ; | |
6365 | char *kwnames[] = { | |
6366 | (char *) "self", NULL | |
6367 | }; | |
6368 | ||
6369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6372 | { |
6373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6374 | delete arg1; | |
6375 | ||
6376 | wxPyEndAllowThreads(__tstate); | |
6377 | if (PyErr_Occurred()) SWIG_fail; | |
6378 | } | |
6379 | Py_INCREF(Py_None); resultobj = Py_None; | |
6380 | return resultobj; | |
6381 | fail: | |
6382 | return NULL; | |
6383 | } | |
6384 | ||
6385 | ||
7722248d RD |
6386 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
6387 | PyObject *resultobj; | |
6388 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6389 | PyObject *arg2 = (PyObject *) 0 ; | |
6390 | PyObject *arg3 = (PyObject *) 0 ; | |
4276dc52 | 6391 | int arg4 = (int) 1 ; |
7722248d RD |
6392 | PyObject * obj0 = 0 ; |
6393 | PyObject * obj1 = 0 ; | |
6394 | PyObject * obj2 = 0 ; | |
4276dc52 | 6395 | PyObject * obj3 = 0 ; |
7722248d | 6396 | char *kwnames[] = { |
4276dc52 | 6397 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL |
7722248d RD |
6398 | }; |
6399 | ||
4276dc52 | 6400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
6401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7722248d RD |
6403 | arg2 = obj1; |
6404 | arg3 = obj2; | |
4276dc52 RD |
6405 | if (obj3) { |
6406 | arg4 = (int) SWIG_AsInt(obj3); | |
6407 | if (PyErr_Occurred()) SWIG_fail; | |
6408 | } | |
7722248d RD |
6409 | { |
6410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4276dc52 | 6411 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); |
7722248d RD |
6412 | |
6413 | wxPyEndAllowThreads(__tstate); | |
6414 | if (PyErr_Occurred()) SWIG_fail; | |
6415 | } | |
6416 | Py_INCREF(Py_None); resultobj = Py_None; | |
6417 | return resultobj; | |
6418 | fail: | |
6419 | return NULL; | |
6420 | } | |
6421 | ||
6422 | ||
d14a1e28 RD |
6423 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
6424 | PyObject *resultobj; | |
6425 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6426 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6427 | int arg3 = (int) -1 ; | |
6428 | PyObject * obj0 = 0 ; | |
6429 | PyObject * obj1 = 0 ; | |
994141e6 | 6430 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6431 | char *kwnames[] = { |
6432 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6433 | }; | |
6434 | ||
994141e6 | 6435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",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; | |
6438 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
6439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6440 | if (obj2) { |
15afbcd0 RD |
6441 | arg3 = (int) SWIG_AsInt(obj2); |
6442 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6443 | } |
d14a1e28 RD |
6444 | { |
6445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6446 | (arg1)->SetOwner(arg2,arg3); | |
6447 | ||
6448 | wxPyEndAllowThreads(__tstate); | |
6449 | if (PyErr_Occurred()) SWIG_fail; | |
6450 | } | |
6451 | Py_INCREF(Py_None); resultobj = Py_None; | |
6452 | return resultobj; | |
6453 | fail: | |
6454 | return NULL; | |
6455 | } | |
6456 | ||
6457 | ||
1c0f361b RD |
6458 | static PyObject *_wrap_Timer_GetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
6459 | PyObject *resultobj; | |
6460 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6461 | wxEvtHandler *result; | |
6462 | PyObject * obj0 = 0 ; | |
6463 | char *kwnames[] = { | |
6464 | (char *) "self", NULL | |
6465 | }; | |
6466 | ||
6467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail; | |
6468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6470 | { | |
6471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6472 | result = (wxEvtHandler *)(arg1)->GetOwner(); | |
6473 | ||
6474 | wxPyEndAllowThreads(__tstate); | |
6475 | if (PyErr_Occurred()) SWIG_fail; | |
6476 | } | |
6477 | { | |
6478 | resultobj = wxPyMake_wxObject(result); | |
6479 | } | |
6480 | return resultobj; | |
6481 | fail: | |
6482 | return NULL; | |
6483 | } | |
6484 | ||
6485 | ||
d14a1e28 RD |
6486 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { |
6487 | PyObject *resultobj; | |
6488 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6489 | int arg2 = (int) -1 ; | |
e811c8ce | 6490 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6491 | bool result; |
6492 | PyObject * obj0 = 0 ; | |
994141e6 | 6493 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6494 | PyObject * obj2 = 0 ; |
6495 | char *kwnames[] = { | |
6496 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
6497 | }; | |
6498 | ||
994141e6 | 6499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6502 | if (obj1) { |
15afbcd0 RD |
6503 | arg2 = (int) SWIG_AsInt(obj1); |
6504 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6505 | } |
d14a1e28 | 6506 | if (obj2) { |
15afbcd0 RD |
6507 | arg3 = (bool) SWIG_AsBool(obj2); |
6508 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6509 | } |
6510 | { | |
6511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6512 | result = (bool)(arg1)->Start(arg2,arg3); | |
6513 | ||
6514 | wxPyEndAllowThreads(__tstate); | |
6515 | if (PyErr_Occurred()) SWIG_fail; | |
6516 | } | |
4f89f6a3 RD |
6517 | { |
6518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6519 | } | |
d14a1e28 RD |
6520 | return resultobj; |
6521 | fail: | |
6522 | return NULL; | |
6523 | } | |
6524 | ||
6525 | ||
6526 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6527 | PyObject *resultobj; | |
6528 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6529 | PyObject * obj0 = 0 ; | |
6530 | char *kwnames[] = { | |
6531 | (char *) "self", NULL | |
6532 | }; | |
6533 | ||
6534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6537 | { |
6538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6539 | (arg1)->Stop(); | |
6540 | ||
6541 | wxPyEndAllowThreads(__tstate); | |
6542 | if (PyErr_Occurred()) SWIG_fail; | |
6543 | } | |
6544 | Py_INCREF(Py_None); resultobj = Py_None; | |
6545 | return resultobj; | |
6546 | fail: | |
6547 | return NULL; | |
6548 | } | |
6549 | ||
6550 | ||
d14a1e28 RD |
6551 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { |
6552 | PyObject *resultobj; | |
6553 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6554 | bool result; | |
6555 | PyObject * obj0 = 0 ; | |
6556 | char *kwnames[] = { | |
6557 | (char *) "self", NULL | |
6558 | }; | |
6559 | ||
6560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6563 | { |
6564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6565 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
6566 | ||
6567 | wxPyEndAllowThreads(__tstate); | |
6568 | if (PyErr_Occurred()) SWIG_fail; | |
6569 | } | |
4f89f6a3 RD |
6570 | { |
6571 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6572 | } | |
d14a1e28 RD |
6573 | return resultobj; |
6574 | fail: | |
6575 | return NULL; | |
6576 | } | |
6577 | ||
6578 | ||
6579 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6580 | PyObject *resultobj; | |
6581 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6582 | int result; | |
6583 | PyObject * obj0 = 0 ; | |
6584 | char *kwnames[] = { | |
6585 | (char *) "self", NULL | |
6586 | }; | |
6587 | ||
6588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6591 | { |
6592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6593 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
6594 | ||
6595 | wxPyEndAllowThreads(__tstate); | |
6596 | if (PyErr_Occurred()) SWIG_fail; | |
6597 | } | |
15afbcd0 | 6598 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6599 | return resultobj; |
6600 | fail: | |
6601 | return NULL; | |
6602 | } | |
6603 | ||
6604 | ||
6605 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6606 | PyObject *resultobj; | |
6607 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6608 | bool result; | |
6609 | PyObject * obj0 = 0 ; | |
6610 | char *kwnames[] = { | |
6611 | (char *) "self", NULL | |
6612 | }; | |
6613 | ||
6614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6617 | { |
6618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6619 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
6620 | ||
6621 | wxPyEndAllowThreads(__tstate); | |
6622 | if (PyErr_Occurred()) SWIG_fail; | |
6623 | } | |
4f89f6a3 RD |
6624 | { |
6625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6626 | } | |
d14a1e28 RD |
6627 | return resultobj; |
6628 | fail: | |
6629 | return NULL; | |
6630 | } | |
6631 | ||
6632 | ||
cc6dd355 RD |
6633 | static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
6634 | PyObject *resultobj; | |
6635 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6636 | int result; | |
6637 | PyObject * obj0 = 0 ; | |
6638 | char *kwnames[] = { | |
6639 | (char *) "self", NULL | |
6640 | }; | |
6641 | ||
6642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
cc6dd355 RD |
6645 | { |
6646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6647 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
6648 | ||
6649 | wxPyEndAllowThreads(__tstate); | |
6650 | if (PyErr_Occurred()) SWIG_fail; | |
6651 | } | |
15afbcd0 | 6652 | resultobj = SWIG_FromInt((int)result); |
cc6dd355 RD |
6653 | return resultobj; |
6654 | fail: | |
6655 | return NULL; | |
6656 | } | |
6657 | ||
6658 | ||
d14a1e28 RD |
6659 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { |
6660 | PyObject *obj; | |
6661 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6662 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
6663 | Py_INCREF(obj); | |
6664 | return Py_BuildValue((char *)""); | |
6665 | } | |
6666 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6667 | PyObject *resultobj; | |
6668 | int arg1 = (int) 0 ; | |
6669 | int arg2 = (int) 0 ; | |
6670 | wxTimerEvent *result; | |
994141e6 RD |
6671 | PyObject * obj0 = 0 ; |
6672 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
6673 | char *kwnames[] = { |
6674 | (char *) "timerid",(char *) "interval", NULL | |
6675 | }; | |
6676 | ||
994141e6 RD |
6677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; |
6678 | if (obj0) { | |
15afbcd0 RD |
6679 | arg1 = (int) SWIG_AsInt(obj0); |
6680 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
6681 | } |
6682 | if (obj1) { | |
15afbcd0 RD |
6683 | arg2 = (int) SWIG_AsInt(obj1); |
6684 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6685 | } |
d14a1e28 RD |
6686 | { |
6687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6688 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
6689 | ||
6690 | wxPyEndAllowThreads(__tstate); | |
6691 | if (PyErr_Occurred()) SWIG_fail; | |
6692 | } | |
15afbcd0 | 6693 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); |
d14a1e28 RD |
6694 | return resultobj; |
6695 | fail: | |
6696 | return NULL; | |
6697 | } | |
6698 | ||
6699 | ||
6700 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6701 | PyObject *resultobj; | |
6702 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
6703 | int result; | |
6704 | PyObject * obj0 = 0 ; | |
6705 | char *kwnames[] = { | |
6706 | (char *) "self", NULL | |
6707 | }; | |
6708 | ||
6709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent, |
6711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6712 | { |
6713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6714 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
6715 | ||
6716 | wxPyEndAllowThreads(__tstate); | |
6717 | if (PyErr_Occurred()) SWIG_fail; | |
6718 | } | |
15afbcd0 | 6719 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6720 | return resultobj; |
6721 | fail: | |
6722 | return NULL; | |
6723 | } | |
6724 | ||
6725 | ||
6726 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
6727 | PyObject *obj; | |
6728 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6729 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
6730 | Py_INCREF(obj); | |
6731 | return Py_BuildValue((char *)""); | |
6732 | } | |
6733 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
6734 | PyObject *resultobj; | |
6735 | wxTimer *arg1 = 0 ; | |
6736 | wxTimerRunner *result; | |
6737 | PyObject * obj0 = 0 ; | |
6738 | ||
6739 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
15afbcd0 RD |
6740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, |
6741 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6742 | SWIG_fail; | |
d14a1e28 | 6743 | if (arg1 == NULL) { |
15afbcd0 RD |
6744 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6745 | SWIG_fail; | |
d14a1e28 RD |
6746 | } |
6747 | { | |
6748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6749 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
6750 | ||
6751 | wxPyEndAllowThreads(__tstate); | |
6752 | if (PyErr_Occurred()) SWIG_fail; | |
6753 | } | |
15afbcd0 | 6754 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); |
d14a1e28 RD |
6755 | return resultobj; |
6756 | fail: | |
6757 | return NULL; | |
6758 | } | |
6759 | ||
6760 | ||
6761 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { | |
6762 | PyObject *resultobj; | |
6763 | wxTimer *arg1 = 0 ; | |
6764 | int arg2 ; | |
e811c8ce | 6765 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6766 | wxTimerRunner *result; |
6767 | PyObject * obj0 = 0 ; | |
994141e6 | 6768 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6769 | PyObject * obj2 = 0 ; |
6770 | ||
994141e6 | 6771 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, |
6773 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6774 | SWIG_fail; | |
d14a1e28 | 6775 | if (arg1 == NULL) { |
15afbcd0 RD |
6776 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6777 | SWIG_fail; | |
994141e6 | 6778 | } |
15afbcd0 RD |
6779 | arg2 = (int) SWIG_AsInt(obj1); |
6780 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 6781 | if (obj2) { |
15afbcd0 RD |
6782 | arg3 = (bool) SWIG_AsBool(obj2); |
6783 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6784 | } |
6785 | { | |
6786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6787 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
6788 | ||
6789 | wxPyEndAllowThreads(__tstate); | |
6790 | if (PyErr_Occurred()) SWIG_fail; | |
6791 | } | |
15afbcd0 | 6792 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); |
d14a1e28 RD |
6793 | return resultobj; |
6794 | fail: | |
6795 | return NULL; | |
6796 | } | |
6797 | ||
6798 | ||
6799 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
6800 | int argc; | |
6801 | PyObject *argv[4]; | |
6802 | int ii; | |
6803 | ||
6804 | argc = PyObject_Length(args); | |
6805 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
6806 | argv[ii] = PyTuple_GetItem(args,ii); | |
6807 | } | |
6808 | if (argc == 1) { | |
6809 | int _v; | |
6810 | { | |
6811 | void *ptr; | |
15afbcd0 | 6812 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
d14a1e28 RD |
6813 | _v = 0; |
6814 | PyErr_Clear(); | |
6815 | } else { | |
6816 | _v = 1; | |
6817 | } | |
6818 | } | |
6819 | if (_v) { | |
6820 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
6821 | } | |
6822 | } | |
6823 | if ((argc >= 2) && (argc <= 3)) { | |
6824 | int _v; | |
6825 | { | |
6826 | void *ptr; | |
15afbcd0 | 6827 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
d14a1e28 RD |
6828 | _v = 0; |
6829 | PyErr_Clear(); | |
6830 | } else { | |
6831 | _v = 1; | |
6832 | } | |
6833 | } | |
6834 | if (_v) { | |
15afbcd0 | 6835 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
6836 | if (_v) { |
6837 | if (argc <= 2) { | |
6838 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6839 | } | |
15afbcd0 | 6840 | _v = SWIG_CheckBool(argv[2]); |
d14a1e28 RD |
6841 | if (_v) { |
6842 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6843 | } | |
6844 | } | |
6845 | } | |
6846 | } | |
6847 | ||
6848 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
6849 | return NULL; | |
6850 | } | |
6851 | ||
6852 | ||
6853 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6854 | PyObject *resultobj; | |
6855 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6856 | PyObject * obj0 = 0 ; | |
6857 | char *kwnames[] = { | |
6858 | (char *) "self", NULL | |
6859 | }; | |
6860 | ||
6861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, |
6863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6864 | { |
6865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6866 | delete arg1; | |
6867 | ||
6868 | wxPyEndAllowThreads(__tstate); | |
6869 | if (PyErr_Occurred()) SWIG_fail; | |
6870 | } | |
6871 | Py_INCREF(Py_None); resultobj = Py_None; | |
6872 | return resultobj; | |
6873 | fail: | |
6874 | return NULL; | |
6875 | } | |
6876 | ||
6877 | ||
6878 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6879 | PyObject *resultobj; | |
6880 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6881 | int arg2 ; | |
e811c8ce | 6882 | bool arg3 = (bool) False ; |
d14a1e28 | 6883 | PyObject * obj0 = 0 ; |
994141e6 | 6884 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6885 | PyObject * obj2 = 0 ; |
6886 | char *kwnames[] = { | |
6887 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
6888 | }; | |
6889 | ||
994141e6 | 6890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, |
6892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6893 | arg2 = (int) SWIG_AsInt(obj1); | |
6894 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 6895 | if (obj2) { |
15afbcd0 RD |
6896 | arg3 = (bool) SWIG_AsBool(obj2); |
6897 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6898 | } |
6899 | { | |
6900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6901 | (arg1)->Start(arg2,arg3); | |
6902 | ||
6903 | wxPyEndAllowThreads(__tstate); | |
6904 | if (PyErr_Occurred()) SWIG_fail; | |
6905 | } | |
6906 | Py_INCREF(Py_None); resultobj = Py_None; | |
6907 | return resultobj; | |
6908 | fail: | |
6909 | return NULL; | |
6910 | } | |
6911 | ||
6912 | ||
6913 | static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
6914 | PyObject *obj; | |
6915 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6916 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
6917 | Py_INCREF(obj); | |
6918 | return Py_BuildValue((char *)""); | |
6919 | } | |
6920 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6921 | PyObject *resultobj; | |
6922 | wxLog *result; | |
6923 | char *kwnames[] = { | |
6924 | NULL | |
6925 | }; | |
6926 | ||
6927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
6928 | { | |
6929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6930 | result = (wxLog *)new wxLog(); | |
6931 | ||
6932 | wxPyEndAllowThreads(__tstate); | |
6933 | if (PyErr_Occurred()) SWIG_fail; | |
6934 | } | |
15afbcd0 | 6935 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); |
d14a1e28 RD |
6936 | return resultobj; |
6937 | fail: | |
6938 | return NULL; | |
6939 | } | |
6940 | ||
6941 | ||
6942 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6943 | PyObject *resultobj; | |
6944 | bool result; | |
6945 | char *kwnames[] = { | |
6946 | NULL | |
6947 | }; | |
6948 | ||
6949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
6950 | { | |
6951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6952 | result = (bool)wxLog::IsEnabled(); | |
6953 | ||
6954 | wxPyEndAllowThreads(__tstate); | |
6955 | if (PyErr_Occurred()) SWIG_fail; | |
6956 | } | |
4f89f6a3 RD |
6957 | { |
6958 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6959 | } | |
d14a1e28 RD |
6960 | return resultobj; |
6961 | fail: | |
6962 | return NULL; | |
6963 | } | |
6964 | ||
6965 | ||
6966 | static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6967 | PyObject *resultobj; | |
e811c8ce | 6968 | bool arg1 = (bool) True ; |
d14a1e28 RD |
6969 | bool result; |
6970 | PyObject * obj0 = 0 ; | |
6971 | char *kwnames[] = { | |
6972 | (char *) "doIt", NULL | |
6973 | }; | |
6974 | ||
6975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
6976 | if (obj0) { | |
15afbcd0 RD |
6977 | arg1 = (bool) SWIG_AsBool(obj0); |
6978 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6979 | } |
6980 | { | |
6981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6982 | result = (bool)wxLog::EnableLogging(arg1); | |
6983 | ||
6984 | wxPyEndAllowThreads(__tstate); | |
6985 | if (PyErr_Occurred()) SWIG_fail; | |
6986 | } | |
4f89f6a3 RD |
6987 | { |
6988 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6989 | } | |
d14a1e28 RD |
6990 | return resultobj; |
6991 | fail: | |
6992 | return NULL; | |
6993 | } | |
6994 | ||
6995 | ||
6996 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6997 | PyObject *resultobj; | |
6998 | wxLogLevel arg1 ; | |
6999 | wxChar *arg2 = (wxChar *) 0 ; | |
7000 | time_t arg3 ; | |
7001 | PyObject * obj0 = 0 ; | |
7002 | PyObject * obj1 = 0 ; | |
7003 | PyObject * obj2 = 0 ; | |
7004 | char *kwnames[] = { | |
7005 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
7006 | }; | |
7007 | ||
7008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7009 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); |
7010 | if (PyErr_Occurred()) SWIG_fail; | |
7011 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar, | |
7012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7013 | arg3 = (time_t) SWIG_AsUnsignedInt(obj2); | |
7014 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7015 | { |
7016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7017 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
7018 | ||
7019 | wxPyEndAllowThreads(__tstate); | |
7020 | if (PyErr_Occurred()) SWIG_fail; | |
7021 | } | |
7022 | Py_INCREF(Py_None); resultobj = Py_None; | |
7023 | return resultobj; | |
7024 | fail: | |
7025 | return NULL; | |
7026 | } | |
7027 | ||
7028 | ||
7029 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7030 | PyObject *resultobj; | |
7031 | wxLog *arg1 = (wxLog *) 0 ; | |
7032 | PyObject * obj0 = 0 ; | |
7033 | char *kwnames[] = { | |
7034 | (char *) "self", NULL | |
7035 | }; | |
7036 | ||
7037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7040 | { |
7041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7042 | (arg1)->Flush(); | |
7043 | ||
7044 | wxPyEndAllowThreads(__tstate); | |
7045 | if (PyErr_Occurred()) SWIG_fail; | |
7046 | } | |
7047 | Py_INCREF(Py_None); resultobj = Py_None; | |
7048 | return resultobj; | |
7049 | fail: | |
7050 | return NULL; | |
7051 | } | |
7052 | ||
7053 | ||
7054 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7055 | PyObject *resultobj; | |
7056 | char *kwnames[] = { | |
7057 | NULL | |
7058 | }; | |
7059 | ||
7060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
7061 | { | |
7062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7063 | wxLog::FlushActive(); | |
7064 | ||
7065 | wxPyEndAllowThreads(__tstate); | |
7066 | if (PyErr_Occurred()) SWIG_fail; | |
7067 | } | |
7068 | Py_INCREF(Py_None); resultobj = Py_None; | |
7069 | return resultobj; | |
7070 | fail: | |
7071 | return NULL; | |
7072 | } | |
7073 | ||
7074 | ||
7075 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7076 | PyObject *resultobj; | |
7077 | wxLog *result; | |
7078 | char *kwnames[] = { | |
7079 | NULL | |
7080 | }; | |
7081 | ||
7082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
7083 | { | |
7084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7085 | result = (wxLog *)wxLog::GetActiveTarget(); | |
7086 | ||
7087 | wxPyEndAllowThreads(__tstate); | |
7088 | if (PyErr_Occurred()) SWIG_fail; | |
7089 | } | |
15afbcd0 | 7090 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
7091 | return resultobj; |
7092 | fail: | |
7093 | return NULL; | |
7094 | } | |
7095 | ||
7096 | ||
7097 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7098 | PyObject *resultobj; | |
7099 | wxLog *arg1 = (wxLog *) 0 ; | |
7100 | wxLog *result; | |
7101 | PyObject * obj0 = 0 ; | |
7102 | char *kwnames[] = { | |
7103 | (char *) "pLogger", NULL | |
7104 | }; | |
7105 | ||
7106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7109 | { |
7110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7111 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
7112 | ||
7113 | wxPyEndAllowThreads(__tstate); | |
7114 | if (PyErr_Occurred()) SWIG_fail; | |
7115 | } | |
15afbcd0 | 7116 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
7117 | return resultobj; |
7118 | fail: | |
7119 | return NULL; | |
7120 | } | |
7121 | ||
7122 | ||
7123 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7124 | PyObject *resultobj; | |
7125 | char *kwnames[] = { | |
7126 | NULL | |
7127 | }; | |
7128 | ||
7129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
7130 | { | |
7131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7132 | wxLog::Suspend(); | |
7133 | ||
7134 | wxPyEndAllowThreads(__tstate); | |
7135 | if (PyErr_Occurred()) SWIG_fail; | |
7136 | } | |
7137 | Py_INCREF(Py_None); resultobj = Py_None; | |
7138 | return resultobj; | |
7139 | fail: | |
7140 | return NULL; | |
7141 | } | |
7142 | ||
7143 | ||
7144 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7145 | PyObject *resultobj; | |
7146 | char *kwnames[] = { | |
7147 | NULL | |
7148 | }; | |
7149 | ||
7150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
7151 | { | |
7152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7153 | wxLog::Resume(); | |
7154 | ||
7155 | wxPyEndAllowThreads(__tstate); | |
7156 | if (PyErr_Occurred()) SWIG_fail; | |
7157 | } | |
7158 | Py_INCREF(Py_None); resultobj = Py_None; | |
7159 | return resultobj; | |
7160 | fail: | |
7161 | return NULL; | |
7162 | } | |
7163 | ||
7164 | ||
7165 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7166 | PyObject *resultobj; | |
e811c8ce | 7167 | bool arg1 = (bool) True ; |
d14a1e28 RD |
7168 | PyObject * obj0 = 0 ; |
7169 | char *kwnames[] = { | |
7170 | (char *) "bVerbose", NULL | |
7171 | }; | |
7172 | ||
7173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
7174 | if (obj0) { | |
15afbcd0 RD |
7175 | arg1 = (bool) SWIG_AsBool(obj0); |
7176 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7177 | } |
7178 | { | |
7179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7180 | wxLog::SetVerbose(arg1); | |
7181 | ||
7182 | wxPyEndAllowThreads(__tstate); | |
7183 | if (PyErr_Occurred()) SWIG_fail; | |
7184 | } | |
7185 | Py_INCREF(Py_None); resultobj = Py_None; | |
7186 | return resultobj; | |
7187 | fail: | |
7188 | return NULL; | |
7189 | } | |
7190 | ||
7191 | ||
7192 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7193 | PyObject *resultobj; | |
7194 | wxLogLevel arg1 ; | |
7195 | PyObject * obj0 = 0 ; | |
7196 | char *kwnames[] = { | |
7197 | (char *) "logLevel", NULL | |
7198 | }; | |
7199 | ||
7200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7201 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); |
7202 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7203 | { |
7204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7205 | wxLog::SetLogLevel(arg1); | |
7206 | ||
7207 | wxPyEndAllowThreads(__tstate); | |
7208 | if (PyErr_Occurred()) SWIG_fail; | |
7209 | } | |
7210 | Py_INCREF(Py_None); resultobj = Py_None; | |
7211 | return resultobj; | |
7212 | fail: | |
7213 | return NULL; | |
7214 | } | |
7215 | ||
7216 | ||
7217 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7218 | PyObject *resultobj; | |
7219 | char *kwnames[] = { | |
7220 | NULL | |
7221 | }; | |
7222 | ||
7223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
7224 | { | |
7225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7226 | wxLog::DontCreateOnDemand(); | |
7227 | ||
7228 | wxPyEndAllowThreads(__tstate); | |
7229 | if (PyErr_Occurred()) SWIG_fail; | |
7230 | } | |
7231 | Py_INCREF(Py_None); resultobj = Py_None; | |
7232 | return resultobj; | |
7233 | fail: | |
7234 | return NULL; | |
7235 | } | |
7236 | ||
7237 | ||
7238 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7239 | PyObject *resultobj; | |
7240 | wxTraceMask arg1 ; | |
7241 | PyObject * obj0 = 0 ; | |
7242 | char *kwnames[] = { | |
7243 | (char *) "ulMask", NULL | |
7244 | }; | |
7245 | ||
7246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7247 | arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0); |
7248 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7249 | { |
7250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7251 | wxLog::SetTraceMask(arg1); | |
7252 | ||
7253 | wxPyEndAllowThreads(__tstate); | |
7254 | if (PyErr_Occurred()) SWIG_fail; | |
7255 | } | |
7256 | Py_INCREF(Py_None); resultobj = Py_None; | |
7257 | return resultobj; | |
7258 | fail: | |
7259 | return NULL; | |
7260 | } | |
7261 | ||
7262 | ||
7263 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7264 | PyObject *resultobj; | |
7265 | wxString *arg1 = 0 ; | |
e811c8ce | 7266 | bool temp1 = False ; |
d14a1e28 RD |
7267 | PyObject * obj0 = 0 ; |
7268 | char *kwnames[] = { | |
7269 | (char *) "str", NULL | |
7270 | }; | |
7271 | ||
7272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
7273 | { | |
7274 | arg1 = wxString_in_helper(obj0); | |
7275 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7276 | temp1 = True; |
d14a1e28 RD |
7277 | } |
7278 | { | |
7279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7280 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7281 | ||
7282 | wxPyEndAllowThreads(__tstate); | |
7283 | if (PyErr_Occurred()) SWIG_fail; | |
7284 | } | |
7285 | Py_INCREF(Py_None); resultobj = Py_None; | |
7286 | { | |
7287 | if (temp1) | |
7288 | delete arg1; | |
7289 | } | |
7290 | return resultobj; | |
7291 | fail: | |
7292 | { | |
7293 | if (temp1) | |
7294 | delete arg1; | |
7295 | } | |
7296 | return NULL; | |
7297 | } | |
7298 | ||
7299 | ||
7300 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7301 | PyObject *resultobj; | |
7302 | wxString *arg1 = 0 ; | |
e811c8ce | 7303 | bool temp1 = False ; |
d14a1e28 RD |
7304 | PyObject * obj0 = 0 ; |
7305 | char *kwnames[] = { | |
7306 | (char *) "str", NULL | |
7307 | }; | |
7308 | ||
7309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7310 | { | |
7311 | arg1 = wxString_in_helper(obj0); | |
7312 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7313 | temp1 = True; |
d14a1e28 RD |
7314 | } |
7315 | { | |
7316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7317 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7318 | ||
7319 | wxPyEndAllowThreads(__tstate); | |
7320 | if (PyErr_Occurred()) SWIG_fail; | |
7321 | } | |
7322 | Py_INCREF(Py_None); resultobj = Py_None; | |
7323 | { | |
7324 | if (temp1) | |
7325 | delete arg1; | |
7326 | } | |
7327 | return resultobj; | |
7328 | fail: | |
7329 | { | |
7330 | if (temp1) | |
7331 | delete arg1; | |
7332 | } | |
7333 | return NULL; | |
7334 | } | |
7335 | ||
7336 | ||
7337 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7338 | PyObject *resultobj; | |
7339 | char *kwnames[] = { | |
7340 | NULL | |
7341 | }; | |
7342 | ||
7343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7344 | { | |
7345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7346 | wxLog::ClearTraceMasks(); | |
7347 | ||
7348 | wxPyEndAllowThreads(__tstate); | |
7349 | if (PyErr_Occurred()) SWIG_fail; | |
7350 | } | |
7351 | Py_INCREF(Py_None); resultobj = Py_None; | |
7352 | return resultobj; | |
7353 | fail: | |
7354 | return NULL; | |
7355 | } | |
7356 | ||
7357 | ||
7358 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7359 | PyObject *resultobj; | |
7360 | wxArrayString *result; | |
7361 | char *kwnames[] = { | |
7362 | NULL | |
7363 | }; | |
7364 | ||
7365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7366 | { | |
7367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7368 | { | |
7369 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7370 | result = (wxArrayString *) &_result_ref; | |
7371 | } | |
7372 | ||
7373 | wxPyEndAllowThreads(__tstate); | |
7374 | if (PyErr_Occurred()) SWIG_fail; | |
7375 | } | |
7376 | { | |
7377 | resultobj = wxArrayString2PyList_helper(*result); | |
7378 | } | |
7379 | return resultobj; | |
7380 | fail: | |
7381 | return NULL; | |
7382 | } | |
7383 | ||
7384 | ||
7385 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7386 | PyObject *resultobj; | |
7387 | wxChar *arg1 = (wxChar *) 0 ; | |
7388 | PyObject * obj0 = 0 ; | |
7389 | char *kwnames[] = { | |
7390 | (char *) "ts", NULL | |
7391 | }; | |
7392 | ||
7393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, |
7395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7396 | { |
7397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7398 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7399 | ||
7400 | wxPyEndAllowThreads(__tstate); | |
7401 | if (PyErr_Occurred()) SWIG_fail; | |
7402 | } | |
7403 | Py_INCREF(Py_None); resultobj = Py_None; | |
7404 | return resultobj; | |
7405 | fail: | |
7406 | return NULL; | |
7407 | } | |
7408 | ||
7409 | ||
7410 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7411 | PyObject *resultobj; | |
7412 | bool result; | |
7413 | char *kwnames[] = { | |
7414 | NULL | |
7415 | }; | |
7416 | ||
7417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7418 | { | |
7419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7420 | result = (bool)wxLog::GetVerbose(); | |
7421 | ||
7422 | wxPyEndAllowThreads(__tstate); | |
7423 | if (PyErr_Occurred()) SWIG_fail; | |
7424 | } | |
4f89f6a3 RD |
7425 | { |
7426 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7427 | } | |
d14a1e28 RD |
7428 | return resultobj; |
7429 | fail: | |
7430 | return NULL; | |
7431 | } | |
7432 | ||
7433 | ||
7434 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7435 | PyObject *resultobj; | |
7436 | wxTraceMask result; | |
7437 | char *kwnames[] = { | |
7438 | NULL | |
7439 | }; | |
7440 | ||
7441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7442 | { | |
7443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7444 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7445 | ||
7446 | wxPyEndAllowThreads(__tstate); | |
7447 | if (PyErr_Occurred()) SWIG_fail; | |
7448 | } | |
15afbcd0 | 7449 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7450 | return resultobj; |
7451 | fail: | |
7452 | return NULL; | |
7453 | } | |
7454 | ||
7455 | ||
7456 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7457 | PyObject *resultobj; | |
7458 | wxChar *arg1 = (wxChar *) 0 ; | |
7459 | bool result; | |
7460 | PyObject * obj0 = 0 ; | |
7461 | char *kwnames[] = { | |
7462 | (char *) "mask", NULL | |
7463 | }; | |
7464 | ||
7465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, |
7467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7468 | { |
7469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7470 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
7471 | ||
7472 | wxPyEndAllowThreads(__tstate); | |
7473 | if (PyErr_Occurred()) SWIG_fail; | |
7474 | } | |
4f89f6a3 RD |
7475 | { |
7476 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7477 | } | |
d14a1e28 RD |
7478 | return resultobj; |
7479 | fail: | |
7480 | return NULL; | |
7481 | } | |
7482 | ||
7483 | ||
7484 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7485 | PyObject *resultobj; | |
7486 | wxLogLevel result; | |
7487 | char *kwnames[] = { | |
7488 | NULL | |
7489 | }; | |
7490 | ||
7491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
7492 | { | |
7493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7494 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
7495 | ||
7496 | wxPyEndAllowThreads(__tstate); | |
7497 | if (PyErr_Occurred()) SWIG_fail; | |
7498 | } | |
15afbcd0 | 7499 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7500 | return resultobj; |
7501 | fail: | |
7502 | return NULL; | |
7503 | } | |
7504 | ||
7505 | ||
7506 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7507 | PyObject *resultobj; | |
7508 | wxChar *result; | |
7509 | char *kwnames[] = { | |
7510 | NULL | |
7511 | }; | |
7512 | ||
7513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
7514 | { | |
7515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7516 | result = (wxChar *)wxLog::GetTimestamp(); | |
7517 | ||
7518 | wxPyEndAllowThreads(__tstate); | |
7519 | if (PyErr_Occurred()) SWIG_fail; | |
7520 | } | |
15afbcd0 | 7521 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); |
d14a1e28 RD |
7522 | return resultobj; |
7523 | fail: | |
7524 | return NULL; | |
7525 | } | |
7526 | ||
7527 | ||
7528 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7529 | PyObject *resultobj; | |
7530 | wxString result; | |
7531 | char *kwnames[] = { | |
7532 | NULL | |
7533 | }; | |
7534 | ||
7535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
7536 | { | |
7537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7538 | result = Log_TimeStamp(); | |
7539 | ||
7540 | wxPyEndAllowThreads(__tstate); | |
7541 | if (PyErr_Occurred()) SWIG_fail; | |
7542 | } | |
7543 | { | |
7544 | #if wxUSE_UNICODE | |
7545 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7546 | #else | |
7547 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7548 | #endif | |
7549 | } | |
7550 | return resultobj; | |
7551 | fail: | |
7552 | return NULL; | |
7553 | } | |
7554 | ||
7555 | ||
7556 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7557 | PyObject *resultobj; | |
7558 | wxLog *arg1 = (wxLog *) 0 ; | |
7559 | PyObject * obj0 = 0 ; | |
7560 | char *kwnames[] = { | |
7561 | (char *) "self", NULL | |
7562 | }; | |
7563 | ||
7564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7567 | { |
7568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7569 | wxLog_Destroy(arg1); | |
7570 | ||
7571 | wxPyEndAllowThreads(__tstate); | |
7572 | if (PyErr_Occurred()) SWIG_fail; | |
7573 | } | |
7574 | Py_INCREF(Py_None); resultobj = Py_None; | |
7575 | return resultobj; | |
7576 | fail: | |
7577 | return NULL; | |
7578 | } | |
7579 | ||
7580 | ||
7581 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
7582 | PyObject *obj; | |
7583 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7584 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
7585 | Py_INCREF(obj); | |
7586 | return Py_BuildValue((char *)""); | |
7587 | } | |
7588 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7589 | PyObject *resultobj; | |
7590 | wxLogStderr *result; | |
7591 | char *kwnames[] = { | |
7592 | NULL | |
7593 | }; | |
7594 | ||
7595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
7596 | { | |
7597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7598 | result = (wxLogStderr *)new wxLogStderr(); | |
7599 | ||
7600 | wxPyEndAllowThreads(__tstate); | |
7601 | if (PyErr_Occurred()) SWIG_fail; | |
7602 | } | |
15afbcd0 | 7603 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); |
d14a1e28 RD |
7604 | return resultobj; |
7605 | fail: | |
7606 | return NULL; | |
7607 | } | |
7608 | ||
7609 | ||
7610 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
7611 | PyObject *obj; | |
7612 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7613 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
7614 | Py_INCREF(obj); | |
7615 | return Py_BuildValue((char *)""); | |
7616 | } | |
7617 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7618 | PyObject *resultobj; | |
7619 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7620 | wxLogTextCtrl *result; | |
7621 | PyObject * obj0 = 0 ; | |
7622 | char *kwnames[] = { | |
7623 | (char *) "pTextCtrl", NULL | |
7624 | }; | |
7625 | ||
7626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7629 | { |
7630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7631 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
7632 | ||
7633 | wxPyEndAllowThreads(__tstate); | |
7634 | if (PyErr_Occurred()) SWIG_fail; | |
7635 | } | |
15afbcd0 | 7636 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); |
d14a1e28 RD |
7637 | return resultobj; |
7638 | fail: | |
7639 | return NULL; | |
7640 | } | |
7641 | ||
7642 | ||
7643 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
7644 | PyObject *obj; | |
7645 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7646 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
7647 | Py_INCREF(obj); | |
7648 | return Py_BuildValue((char *)""); | |
7649 | } | |
7650 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7651 | PyObject *resultobj; | |
7652 | wxLogGui *result; | |
7653 | char *kwnames[] = { | |
7654 | NULL | |
7655 | }; | |
7656 | ||
7657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
7658 | { | |
7659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7660 | result = (wxLogGui *)new wxLogGui(); | |
7661 | ||
7662 | wxPyEndAllowThreads(__tstate); | |
7663 | if (PyErr_Occurred()) SWIG_fail; | |
7664 | } | |
15afbcd0 | 7665 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); |
d14a1e28 RD |
7666 | return resultobj; |
7667 | fail: | |
7668 | return NULL; | |
7669 | } | |
7670 | ||
7671 | ||
7672 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
7673 | PyObject *obj; | |
7674 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7675 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
7676 | Py_INCREF(obj); | |
7677 | return Py_BuildValue((char *)""); | |
7678 | } | |
7679 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7680 | PyObject *resultobj; | |
7681 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7682 | wxString *arg2 = 0 ; | |
e811c8ce RD |
7683 | bool arg3 = (bool) True ; |
7684 | bool arg4 = (bool) True ; | |
d14a1e28 | 7685 | wxLogWindow *result; |
e811c8ce | 7686 | bool temp2 = False ; |
d14a1e28 RD |
7687 | PyObject * obj0 = 0 ; |
7688 | PyObject * obj1 = 0 ; | |
7689 | PyObject * obj2 = 0 ; | |
7690 | PyObject * obj3 = 0 ; | |
7691 | char *kwnames[] = { | |
7692 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
7693 | }; | |
7694 | ||
7695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
7696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, |
7697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7698 | { |
7699 | arg2 = wxString_in_helper(obj1); | |
7700 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7701 | temp2 = True; |
d14a1e28 RD |
7702 | } |
7703 | if (obj2) { | |
15afbcd0 RD |
7704 | arg3 = (bool) SWIG_AsBool(obj2); |
7705 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7706 | } |
7707 | if (obj3) { | |
15afbcd0 RD |
7708 | arg4 = (bool) SWIG_AsBool(obj3); |
7709 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7710 | } |
7711 | { | |
7712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7713 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
7714 | ||
7715 | wxPyEndAllowThreads(__tstate); | |
7716 | if (PyErr_Occurred()) SWIG_fail; | |
7717 | } | |
15afbcd0 | 7718 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); |
d14a1e28 RD |
7719 | { |
7720 | if (temp2) | |
7721 | delete arg2; | |
7722 | } | |
7723 | return resultobj; | |
7724 | fail: | |
7725 | { | |
7726 | if (temp2) | |
7727 | delete arg2; | |
7728 | } | |
7729 | return NULL; | |
7730 | } | |
7731 | ||
7732 | ||
7733 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7734 | PyObject *resultobj; | |
7735 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
e811c8ce | 7736 | bool arg2 = (bool) True ; |
d14a1e28 RD |
7737 | PyObject * obj0 = 0 ; |
7738 | PyObject * obj1 = 0 ; | |
7739 | char *kwnames[] = { | |
7740 | (char *) "self",(char *) "bShow", NULL | |
7741 | }; | |
7742 | ||
7743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 7746 | if (obj1) { |
15afbcd0 RD |
7747 | arg2 = (bool) SWIG_AsBool(obj1); |
7748 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7749 | } |
7750 | { | |
7751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7752 | (arg1)->Show(arg2); | |
7753 | ||
7754 | wxPyEndAllowThreads(__tstate); | |
7755 | if (PyErr_Occurred()) SWIG_fail; | |
7756 | } | |
7757 | Py_INCREF(Py_None); resultobj = Py_None; | |
7758 | return resultobj; | |
7759 | fail: | |
7760 | return NULL; | |
7761 | } | |
7762 | ||
7763 | ||
7764 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7765 | PyObject *resultobj; | |
7766 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7767 | wxFrame *result; | |
7768 | PyObject * obj0 = 0 ; | |
7769 | char *kwnames[] = { | |
7770 | (char *) "self", NULL | |
7771 | }; | |
7772 | ||
7773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7776 | { |
7777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7778 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
7779 | ||
7780 | wxPyEndAllowThreads(__tstate); | |
7781 | if (PyErr_Occurred()) SWIG_fail; | |
7782 | } | |
7783 | { | |
7784 | resultobj = wxPyMake_wxObject(result); | |
7785 | } | |
7786 | return resultobj; | |
7787 | fail: | |
7788 | return NULL; | |
7789 | } | |
7790 | ||
7791 | ||
7792 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7793 | PyObject *resultobj; | |
7794 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7795 | wxLog *result; | |
7796 | PyObject * obj0 = 0 ; | |
7797 | char *kwnames[] = { | |
7798 | (char *) "self", NULL | |
7799 | }; | |
7800 | ||
7801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7804 | { |
7805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7806 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
7807 | ||
7808 | wxPyEndAllowThreads(__tstate); | |
7809 | if (PyErr_Occurred()) SWIG_fail; | |
7810 | } | |
15afbcd0 | 7811 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
7812 | return resultobj; |
7813 | fail: | |
7814 | return NULL; | |
7815 | } | |
7816 | ||
7817 | ||
7818 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7819 | PyObject *resultobj; | |
7820 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7821 | bool result; | |
7822 | PyObject * obj0 = 0 ; | |
7823 | char *kwnames[] = { | |
7824 | (char *) "self", NULL | |
7825 | }; | |
7826 | ||
7827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7830 | { |
7831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7832 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
7833 | ||
7834 | wxPyEndAllowThreads(__tstate); | |
7835 | if (PyErr_Occurred()) SWIG_fail; | |
7836 | } | |
4f89f6a3 RD |
7837 | { |
7838 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7839 | } | |
d14a1e28 RD |
7840 | return resultobj; |
7841 | fail: | |
7842 | return NULL; | |
7843 | } | |
7844 | ||
7845 | ||
7846 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7847 | PyObject *resultobj; | |
7848 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7849 | bool arg2 ; | |
7850 | PyObject * obj0 = 0 ; | |
7851 | PyObject * obj1 = 0 ; | |
7852 | char *kwnames[] = { | |
7853 | (char *) "self",(char *) "bDoPass", NULL | |
7854 | }; | |
7855 | ||
7856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7859 | arg2 = (bool) SWIG_AsBool(obj1); | |
7860 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7861 | { |
7862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7863 | (arg1)->PassMessages(arg2); | |
7864 | ||
7865 | wxPyEndAllowThreads(__tstate); | |
7866 | if (PyErr_Occurred()) SWIG_fail; | |
7867 | } | |
7868 | Py_INCREF(Py_None); resultobj = Py_None; | |
7869 | return resultobj; | |
7870 | fail: | |
7871 | return NULL; | |
7872 | } | |
7873 | ||
7874 | ||
7875 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
7876 | PyObject *obj; | |
7877 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7878 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
7879 | Py_INCREF(obj); | |
7880 | return Py_BuildValue((char *)""); | |
7881 | } | |
7882 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7883 | PyObject *resultobj; | |
7884 | wxLog *arg1 = (wxLog *) 0 ; | |
7885 | wxLogChain *result; | |
7886 | PyObject * obj0 = 0 ; | |
7887 | char *kwnames[] = { | |
7888 | (char *) "logger", NULL | |
7889 | }; | |
7890 | ||
7891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7894 | { |
7895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7896 | result = (wxLogChain *)new wxLogChain(arg1); | |
7897 | ||
7898 | wxPyEndAllowThreads(__tstate); | |
7899 | if (PyErr_Occurred()) SWIG_fail; | |
7900 | } | |
15afbcd0 | 7901 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); |
d14a1e28 RD |
7902 | return resultobj; |
7903 | fail: | |
7904 | return NULL; | |
7905 | } | |
7906 | ||
7907 | ||
7908 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7909 | PyObject *resultobj; | |
7910 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7911 | wxLog *arg2 = (wxLog *) 0 ; | |
7912 | PyObject * obj0 = 0 ; | |
7913 | PyObject * obj1 = 0 ; | |
7914 | char *kwnames[] = { | |
7915 | (char *) "self",(char *) "logger", NULL | |
7916 | }; | |
7917 | ||
7918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
7920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7921 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog, | |
7922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7923 | { |
7924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7925 | (arg1)->SetLog(arg2); | |
7926 | ||
7927 | wxPyEndAllowThreads(__tstate); | |
7928 | if (PyErr_Occurred()) SWIG_fail; | |
7929 | } | |
7930 | Py_INCREF(Py_None); resultobj = Py_None; | |
7931 | return resultobj; | |
7932 | fail: | |
7933 | return NULL; | |
7934 | } | |
7935 | ||
7936 | ||
7937 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7938 | PyObject *resultobj; | |
7939 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7940 | bool arg2 ; | |
7941 | PyObject * obj0 = 0 ; | |
7942 | PyObject * obj1 = 0 ; | |
7943 | char *kwnames[] = { | |
7944 | (char *) "self",(char *) "bDoPass", NULL | |
7945 | }; | |
7946 | ||
7947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
7949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7950 | arg2 = (bool) SWIG_AsBool(obj1); | |
7951 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7952 | { |
7953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7954 | (arg1)->PassMessages(arg2); | |
7955 | ||
7956 | wxPyEndAllowThreads(__tstate); | |
7957 | if (PyErr_Occurred()) SWIG_fail; | |
7958 | } | |
7959 | Py_INCREF(Py_None); resultobj = Py_None; | |
7960 | return resultobj; | |
7961 | fail: | |
7962 | return NULL; | |
7963 | } | |
7964 | ||
7965 | ||
7966 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7967 | PyObject *resultobj; | |
7968 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7969 | bool result; | |
7970 | PyObject * obj0 = 0 ; | |
7971 | char *kwnames[] = { | |
7972 | (char *) "self", NULL | |
7973 | }; | |
7974 | ||
7975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
7977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7978 | { |
7979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7980 | result = (bool)(arg1)->IsPassingMessages(); | |
7981 | ||
7982 | wxPyEndAllowThreads(__tstate); | |
7983 | if (PyErr_Occurred()) SWIG_fail; | |
7984 | } | |
4f89f6a3 RD |
7985 | { |
7986 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7987 | } | |
d14a1e28 RD |
7988 | return resultobj; |
7989 | fail: | |
7990 | return NULL; | |
7991 | } | |
7992 | ||
7993 | ||
7994 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7995 | PyObject *resultobj; | |
7996 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7997 | wxLog *result; | |
7998 | PyObject * obj0 = 0 ; | |
7999 | char *kwnames[] = { | |
8000 | (char *) "self", NULL | |
8001 | }; | |
8002 | ||
8003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
8005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8006 | { |
8007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8008 | result = (wxLog *)(arg1)->GetOldLog(); | |
8009 | ||
8010 | wxPyEndAllowThreads(__tstate); | |
8011 | if (PyErr_Occurred()) SWIG_fail; | |
8012 | } | |
15afbcd0 | 8013 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
8014 | return resultobj; |
8015 | fail: | |
8016 | return NULL; | |
8017 | } | |
8018 | ||
8019 | ||
8020 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
8021 | PyObject *obj; | |
8022 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8023 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
8024 | Py_INCREF(obj); | |
8025 | return Py_BuildValue((char *)""); | |
8026 | } | |
8027 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8028 | PyObject *resultobj; | |
8029 | unsigned long result; | |
8030 | char *kwnames[] = { | |
8031 | NULL | |
8032 | }; | |
8033 | ||
8034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
8035 | { | |
8036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8037 | result = (unsigned long)wxSysErrorCode(); | |
8038 | ||
8039 | wxPyEndAllowThreads(__tstate); | |
8040 | if (PyErr_Occurred()) SWIG_fail; | |
8041 | } | |
15afbcd0 | 8042 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
8043 | return resultobj; |
8044 | fail: | |
8045 | return NULL; | |
8046 | } | |
8047 | ||
8048 | ||
8049 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8050 | PyObject *resultobj; | |
8051 | unsigned long arg1 = (unsigned long) 0 ; | |
8052 | wxString result; | |
8053 | PyObject * obj0 = 0 ; | |
8054 | char *kwnames[] = { | |
8055 | (char *) "nErrCode", NULL | |
8056 | }; | |
8057 | ||
8058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
8059 | if (obj0) { | |
15afbcd0 RD |
8060 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
8061 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8062 | } |
8063 | { | |
8064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8065 | result = wxSysErrorMsg(arg1); | |
8066 | ||
8067 | wxPyEndAllowThreads(__tstate); | |
8068 | if (PyErr_Occurred()) SWIG_fail; | |
8069 | } | |
8070 | { | |
8071 | #if wxUSE_UNICODE | |
8072 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8073 | #else | |
8074 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8075 | #endif | |
8076 | } | |
8077 | return resultobj; | |
8078 | fail: | |
8079 | return NULL; | |
8080 | } | |
8081 | ||
8082 | ||
8083 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8084 | PyObject *resultobj; | |
8085 | wxString *arg1 = 0 ; | |
e811c8ce | 8086 | bool temp1 = False ; |
d14a1e28 RD |
8087 | PyObject * obj0 = 0 ; |
8088 | char *kwnames[] = { | |
8089 | (char *) "msg", NULL | |
8090 | }; | |
8091 | ||
8092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
8093 | { | |
8094 | arg1 = wxString_in_helper(obj0); | |
8095 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8096 | temp1 = True; |
d14a1e28 RD |
8097 | } |
8098 | { | |
8099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8100 | wxLogFatalError((wxString const &)*arg1); | |
8101 | ||
8102 | wxPyEndAllowThreads(__tstate); | |
8103 | if (PyErr_Occurred()) SWIG_fail; | |
8104 | } | |
8105 | Py_INCREF(Py_None); resultobj = Py_None; | |
8106 | { | |
8107 | if (temp1) | |
8108 | delete arg1; | |
8109 | } | |
8110 | return resultobj; | |
8111 | fail: | |
8112 | { | |
8113 | if (temp1) | |
8114 | delete arg1; | |
8115 | } | |
8116 | return NULL; | |
8117 | } | |
8118 | ||
8119 | ||
8120 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8121 | PyObject *resultobj; | |
8122 | wxString *arg1 = 0 ; | |
e811c8ce | 8123 | bool temp1 = False ; |
d14a1e28 RD |
8124 | PyObject * obj0 = 0 ; |
8125 | char *kwnames[] = { | |
8126 | (char *) "msg", NULL | |
8127 | }; | |
8128 | ||
8129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
8130 | { | |
8131 | arg1 = wxString_in_helper(obj0); | |
8132 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8133 | temp1 = True; |
d14a1e28 RD |
8134 | } |
8135 | { | |
8136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8137 | wxLogError((wxString const &)*arg1); | |
8138 | ||
8139 | wxPyEndAllowThreads(__tstate); | |
8140 | if (PyErr_Occurred()) SWIG_fail; | |
8141 | } | |
8142 | Py_INCREF(Py_None); resultobj = Py_None; | |
8143 | { | |
8144 | if (temp1) | |
8145 | delete arg1; | |
8146 | } | |
8147 | return resultobj; | |
8148 | fail: | |
8149 | { | |
8150 | if (temp1) | |
8151 | delete arg1; | |
8152 | } | |
8153 | return NULL; | |
8154 | } | |
8155 | ||
8156 | ||
8157 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8158 | PyObject *resultobj; | |
8159 | wxString *arg1 = 0 ; | |
e811c8ce | 8160 | bool temp1 = False ; |
d14a1e28 RD |
8161 | PyObject * obj0 = 0 ; |
8162 | char *kwnames[] = { | |
8163 | (char *) "msg", NULL | |
8164 | }; | |
8165 | ||
8166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
8167 | { | |
8168 | arg1 = wxString_in_helper(obj0); | |
8169 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8170 | temp1 = True; |
d14a1e28 RD |
8171 | } |
8172 | { | |
8173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8174 | wxLogWarning((wxString const &)*arg1); | |
8175 | ||
8176 | wxPyEndAllowThreads(__tstate); | |
8177 | if (PyErr_Occurred()) SWIG_fail; | |
8178 | } | |
8179 | Py_INCREF(Py_None); resultobj = Py_None; | |
8180 | { | |
8181 | if (temp1) | |
8182 | delete arg1; | |
8183 | } | |
8184 | return resultobj; | |
8185 | fail: | |
8186 | { | |
8187 | if (temp1) | |
8188 | delete arg1; | |
8189 | } | |
8190 | return NULL; | |
8191 | } | |
8192 | ||
8193 | ||
8194 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8195 | PyObject *resultobj; | |
8196 | wxString *arg1 = 0 ; | |
e811c8ce | 8197 | bool temp1 = False ; |
d14a1e28 RD |
8198 | PyObject * obj0 = 0 ; |
8199 | char *kwnames[] = { | |
8200 | (char *) "msg", NULL | |
8201 | }; | |
8202 | ||
8203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
8204 | { | |
8205 | arg1 = wxString_in_helper(obj0); | |
8206 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8207 | temp1 = True; |
d14a1e28 RD |
8208 | } |
8209 | { | |
8210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8211 | wxLogMessage((wxString const &)*arg1); | |
8212 | ||
8213 | wxPyEndAllowThreads(__tstate); | |
8214 | if (PyErr_Occurred()) SWIG_fail; | |
8215 | } | |
8216 | Py_INCREF(Py_None); resultobj = Py_None; | |
8217 | { | |
8218 | if (temp1) | |
8219 | delete arg1; | |
8220 | } | |
8221 | return resultobj; | |
8222 | fail: | |
8223 | { | |
8224 | if (temp1) | |
8225 | delete arg1; | |
8226 | } | |
8227 | return NULL; | |
8228 | } | |
8229 | ||
8230 | ||
8231 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8232 | PyObject *resultobj; | |
8233 | wxString *arg1 = 0 ; | |
e811c8ce | 8234 | bool temp1 = False ; |
d14a1e28 RD |
8235 | PyObject * obj0 = 0 ; |
8236 | char *kwnames[] = { | |
8237 | (char *) "msg", NULL | |
8238 | }; | |
8239 | ||
8240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
8241 | { | |
8242 | arg1 = wxString_in_helper(obj0); | |
8243 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8244 | temp1 = True; |
d14a1e28 RD |
8245 | } |
8246 | { | |
8247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8248 | wxLogInfo((wxString const &)*arg1); | |
8249 | ||
8250 | wxPyEndAllowThreads(__tstate); | |
8251 | if (PyErr_Occurred()) SWIG_fail; | |
8252 | } | |
8253 | Py_INCREF(Py_None); resultobj = Py_None; | |
8254 | { | |
8255 | if (temp1) | |
8256 | delete arg1; | |
8257 | } | |
8258 | return resultobj; | |
8259 | fail: | |
8260 | { | |
8261 | if (temp1) | |
8262 | delete arg1; | |
8263 | } | |
8264 | return NULL; | |
8265 | } | |
8266 | ||
8267 | ||
8268 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8269 | PyObject *resultobj; | |
8270 | wxString *arg1 = 0 ; | |
e811c8ce | 8271 | bool temp1 = False ; |
d14a1e28 RD |
8272 | PyObject * obj0 = 0 ; |
8273 | char *kwnames[] = { | |
8274 | (char *) "msg", NULL | |
8275 | }; | |
8276 | ||
8277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
8278 | { | |
8279 | arg1 = wxString_in_helper(obj0); | |
8280 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8281 | temp1 = True; |
d14a1e28 RD |
8282 | } |
8283 | { | |
8284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8285 | wxLogDebug((wxString const &)*arg1); | |
8286 | ||
8287 | wxPyEndAllowThreads(__tstate); | |
8288 | if (PyErr_Occurred()) SWIG_fail; | |
8289 | } | |
8290 | Py_INCREF(Py_None); resultobj = Py_None; | |
8291 | { | |
8292 | if (temp1) | |
8293 | delete arg1; | |
8294 | } | |
8295 | return resultobj; | |
8296 | fail: | |
8297 | { | |
8298 | if (temp1) | |
8299 | delete arg1; | |
8300 | } | |
8301 | return NULL; | |
8302 | } | |
8303 | ||
8304 | ||
8305 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8306 | PyObject *resultobj; | |
8307 | wxString *arg1 = 0 ; | |
e811c8ce | 8308 | bool temp1 = False ; |
d14a1e28 RD |
8309 | PyObject * obj0 = 0 ; |
8310 | char *kwnames[] = { | |
8311 | (char *) "msg", NULL | |
8312 | }; | |
8313 | ||
8314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8315 | { | |
8316 | arg1 = wxString_in_helper(obj0); | |
8317 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8318 | temp1 = True; |
d14a1e28 RD |
8319 | } |
8320 | { | |
8321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8322 | wxLogVerbose((wxString const &)*arg1); | |
8323 | ||
8324 | wxPyEndAllowThreads(__tstate); | |
8325 | if (PyErr_Occurred()) SWIG_fail; | |
8326 | } | |
8327 | Py_INCREF(Py_None); resultobj = Py_None; | |
8328 | { | |
8329 | if (temp1) | |
8330 | delete arg1; | |
8331 | } | |
8332 | return resultobj; | |
8333 | fail: | |
8334 | { | |
8335 | if (temp1) | |
8336 | delete arg1; | |
8337 | } | |
8338 | return NULL; | |
8339 | } | |
8340 | ||
8341 | ||
8342 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8343 | PyObject *resultobj; | |
8344 | wxString *arg1 = 0 ; | |
e811c8ce | 8345 | bool temp1 = False ; |
d14a1e28 RD |
8346 | PyObject * obj0 = 0 ; |
8347 | char *kwnames[] = { | |
8348 | (char *) "msg", NULL | |
8349 | }; | |
8350 | ||
8351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8352 | { | |
8353 | arg1 = wxString_in_helper(obj0); | |
8354 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8355 | temp1 = True; |
d14a1e28 RD |
8356 | } |
8357 | { | |
8358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8359 | wxLogStatus((wxString const &)*arg1); | |
8360 | ||
8361 | wxPyEndAllowThreads(__tstate); | |
8362 | if (PyErr_Occurred()) SWIG_fail; | |
8363 | } | |
8364 | Py_INCREF(Py_None); resultobj = Py_None; | |
8365 | { | |
8366 | if (temp1) | |
8367 | delete arg1; | |
8368 | } | |
8369 | return resultobj; | |
8370 | fail: | |
8371 | { | |
8372 | if (temp1) | |
8373 | delete arg1; | |
8374 | } | |
8375 | return NULL; | |
8376 | } | |
8377 | ||
8378 | ||
8379 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8380 | PyObject *resultobj; | |
8381 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8382 | wxString *arg2 = 0 ; | |
e811c8ce | 8383 | bool temp2 = False ; |
d14a1e28 RD |
8384 | PyObject * obj0 = 0 ; |
8385 | PyObject * obj1 = 0 ; | |
8386 | char *kwnames[] = { | |
8387 | (char *) "pFrame",(char *) "msg", NULL | |
8388 | }; | |
8389 | ||
8390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, |
8392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8393 | { |
8394 | arg2 = wxString_in_helper(obj1); | |
8395 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8396 | temp2 = True; |
d14a1e28 RD |
8397 | } |
8398 | { | |
8399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8400 | wxLogStatus(arg1,(wxString const &)*arg2); | |
8401 | ||
8402 | wxPyEndAllowThreads(__tstate); | |
8403 | if (PyErr_Occurred()) SWIG_fail; | |
8404 | } | |
8405 | Py_INCREF(Py_None); resultobj = Py_None; | |
8406 | { | |
8407 | if (temp2) | |
8408 | delete arg2; | |
8409 | } | |
8410 | return resultobj; | |
8411 | fail: | |
8412 | { | |
8413 | if (temp2) | |
8414 | delete arg2; | |
8415 | } | |
8416 | return NULL; | |
8417 | } | |
8418 | ||
8419 | ||
8420 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8421 | PyObject *resultobj; | |
8422 | wxString *arg1 = 0 ; | |
e811c8ce | 8423 | bool temp1 = False ; |
d14a1e28 RD |
8424 | PyObject * obj0 = 0 ; |
8425 | char *kwnames[] = { | |
8426 | (char *) "msg", NULL | |
8427 | }; | |
8428 | ||
8429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8430 | { | |
8431 | arg1 = wxString_in_helper(obj0); | |
8432 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8433 | temp1 = True; |
d14a1e28 RD |
8434 | } |
8435 | { | |
8436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8437 | wxLogSysError((wxString const &)*arg1); | |
8438 | ||
8439 | wxPyEndAllowThreads(__tstate); | |
8440 | if (PyErr_Occurred()) SWIG_fail; | |
8441 | } | |
8442 | Py_INCREF(Py_None); resultobj = Py_None; | |
8443 | { | |
8444 | if (temp1) | |
8445 | delete arg1; | |
8446 | } | |
8447 | return resultobj; | |
8448 | fail: | |
8449 | { | |
8450 | if (temp1) | |
8451 | delete arg1; | |
8452 | } | |
8453 | return NULL; | |
8454 | } | |
8455 | ||
8456 | ||
cc6dd355 | 8457 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 | 8458 | PyObject *resultobj; |
cc6dd355 RD |
8459 | unsigned long arg1 ; |
8460 | wxString *arg2 = 0 ; | |
8461 | bool temp2 = False ; | |
d14a1e28 | 8462 | PyObject * obj0 = 0 ; |
cc6dd355 | 8463 | PyObject * obj1 = 0 ; |
d14a1e28 | 8464 | |
cc6dd355 | 8465 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8466 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
8467 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 8468 | { |
cc6dd355 RD |
8469 | arg2 = wxString_in_helper(obj1); |
8470 | if (arg2 == NULL) SWIG_fail; | |
8471 | temp2 = True; | |
d14a1e28 RD |
8472 | } |
8473 | { | |
8474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
cc6dd355 | 8475 | wxLogTrace(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
8476 | |
8477 | wxPyEndAllowThreads(__tstate); | |
8478 | if (PyErr_Occurred()) SWIG_fail; | |
8479 | } | |
8480 | Py_INCREF(Py_None); resultobj = Py_None; | |
8481 | { | |
cc6dd355 RD |
8482 | if (temp2) |
8483 | delete arg2; | |
d14a1e28 RD |
8484 | } |
8485 | return resultobj; | |
8486 | fail: | |
8487 | { | |
cc6dd355 RD |
8488 | if (temp2) |
8489 | delete arg2; | |
d14a1e28 RD |
8490 | } |
8491 | return NULL; | |
8492 | } | |
8493 | ||
8494 | ||
cc6dd355 | 8495 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
8496 | PyObject *resultobj; |
8497 | wxString *arg1 = 0 ; | |
8498 | wxString *arg2 = 0 ; | |
e811c8ce RD |
8499 | bool temp1 = False ; |
8500 | bool temp2 = False ; | |
d14a1e28 RD |
8501 | PyObject * obj0 = 0 ; |
8502 | PyObject * obj1 = 0 ; | |
d14a1e28 | 8503 | |
cc6dd355 | 8504 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
8505 | { |
8506 | arg1 = wxString_in_helper(obj0); | |
8507 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8508 | temp1 = True; |
d14a1e28 RD |
8509 | } |
8510 | { | |
8511 | arg2 = wxString_in_helper(obj1); | |
8512 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8513 | temp2 = True; |
d14a1e28 RD |
8514 | } |
8515 | { | |
8516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8517 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
8518 | ||
8519 | wxPyEndAllowThreads(__tstate); | |
8520 | if (PyErr_Occurred()) SWIG_fail; | |
8521 | } | |
8522 | Py_INCREF(Py_None); resultobj = Py_None; | |
8523 | { | |
8524 | if (temp1) | |
8525 | delete arg1; | |
8526 | } | |
8527 | { | |
8528 | if (temp2) | |
8529 | delete arg2; | |
8530 | } | |
8531 | return resultobj; | |
8532 | fail: | |
8533 | { | |
8534 | if (temp1) | |
8535 | delete arg1; | |
8536 | } | |
8537 | { | |
8538 | if (temp2) | |
8539 | delete arg2; | |
8540 | } | |
8541 | return NULL; | |
8542 | } | |
8543 | ||
8544 | ||
cc6dd355 RD |
8545 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { |
8546 | int argc; | |
8547 | PyObject *argv[3]; | |
8548 | int ii; | |
8549 | ||
8550 | argc = PyObject_Length(args); | |
8551 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
8552 | argv[ii] = PyTuple_GetItem(args,ii); | |
8553 | } | |
8554 | if (argc == 2) { | |
8555 | int _v; | |
8556 | { | |
4d5c3d91 | 8557 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
cc6dd355 RD |
8558 | } |
8559 | if (_v) { | |
8560 | { | |
4d5c3d91 | 8561 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
cc6dd355 RD |
8562 | } |
8563 | if (_v) { | |
8564 | return _wrap_LogTrace__SWIG_1(self,args); | |
8565 | } | |
8566 | } | |
8567 | } | |
8568 | if (argc == 2) { | |
8569 | int _v; | |
15afbcd0 | 8570 | _v = SWIG_CheckUnsignedLong(argv[0]); |
cc6dd355 RD |
8571 | if (_v) { |
8572 | { | |
4d5c3d91 | 8573 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
cc6dd355 RD |
8574 | } |
8575 | if (_v) { | |
8576 | return _wrap_LogTrace__SWIG_0(self,args); | |
8577 | } | |
8578 | } | |
8579 | } | |
8580 | ||
8581 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
8582 | return NULL; | |
8583 | } | |
8584 | ||
8585 | ||
d14a1e28 RD |
8586 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { |
8587 | PyObject *resultobj; | |
8588 | unsigned long arg1 ; | |
8589 | wxString *arg2 = 0 ; | |
e811c8ce | 8590 | bool temp2 = False ; |
d14a1e28 RD |
8591 | PyObject * obj0 = 0 ; |
8592 | PyObject * obj1 = 0 ; | |
8593 | char *kwnames[] = { | |
8594 | (char *) "level",(char *) "msg", NULL | |
8595 | }; | |
8596 | ||
8597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8598 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
8599 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8600 | { |
8601 | arg2 = wxString_in_helper(obj1); | |
8602 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8603 | temp2 = True; |
d14a1e28 RD |
8604 | } |
8605 | { | |
8606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8607 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
8608 | ||
8609 | wxPyEndAllowThreads(__tstate); | |
8610 | if (PyErr_Occurred()) SWIG_fail; | |
8611 | } | |
8612 | Py_INCREF(Py_None); resultobj = Py_None; | |
8613 | { | |
8614 | if (temp2) | |
8615 | delete arg2; | |
8616 | } | |
8617 | return resultobj; | |
8618 | fail: | |
8619 | { | |
8620 | if (temp2) | |
8621 | delete arg2; | |
8622 | } | |
8623 | return NULL; | |
8624 | } | |
8625 | ||
8626 | ||
8627 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8628 | PyObject *resultobj; | |
8629 | wxString *arg1 = 0 ; | |
8630 | wxString *arg2 = 0 ; | |
e811c8ce RD |
8631 | bool temp1 = False ; |
8632 | bool temp2 = False ; | |
d14a1e28 RD |
8633 | PyObject * obj0 = 0 ; |
8634 | PyObject * obj1 = 0 ; | |
8635 | char *kwnames[] = { | |
8636 | (char *) "title",(char *) "text", NULL | |
8637 | }; | |
8638 | ||
8639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
8640 | { | |
8641 | arg1 = wxString_in_helper(obj0); | |
8642 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8643 | temp1 = True; |
d14a1e28 RD |
8644 | } |
8645 | { | |
8646 | arg2 = wxString_in_helper(obj1); | |
8647 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8648 | temp2 = True; |
d14a1e28 RD |
8649 | } |
8650 | { | |
8651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8652 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
8653 | ||
8654 | wxPyEndAllowThreads(__tstate); | |
8655 | if (PyErr_Occurred()) SWIG_fail; | |
8656 | } | |
8657 | Py_INCREF(Py_None); resultobj = Py_None; | |
8658 | { | |
8659 | if (temp1) | |
8660 | delete arg1; | |
8661 | } | |
8662 | { | |
8663 | if (temp2) | |
8664 | delete arg2; | |
8665 | } | |
8666 | return resultobj; | |
8667 | fail: | |
8668 | { | |
8669 | if (temp1) | |
8670 | delete arg1; | |
8671 | } | |
8672 | { | |
8673 | if (temp2) | |
8674 | delete arg2; | |
8675 | } | |
8676 | return NULL; | |
8677 | } | |
8678 | ||
8679 | ||
8680 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8681 | PyObject *resultobj; | |
8682 | wxLogNull *result; | |
8683 | char *kwnames[] = { | |
8684 | NULL | |
8685 | }; | |
8686 | ||
8687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
8688 | { | |
8689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8690 | result = (wxLogNull *)new wxLogNull(); | |
8691 | ||
8692 | wxPyEndAllowThreads(__tstate); | |
8693 | if (PyErr_Occurred()) SWIG_fail; | |
8694 | } | |
15afbcd0 | 8695 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); |
d14a1e28 RD |
8696 | return resultobj; |
8697 | fail: | |
8698 | return NULL; | |
8699 | } | |
8700 | ||
8701 | ||
8702 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8703 | PyObject *resultobj; | |
8704 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
8705 | PyObject * obj0 = 0 ; | |
8706 | char *kwnames[] = { | |
8707 | (char *) "self", NULL | |
8708 | }; | |
8709 | ||
8710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull, |
8712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8713 | { |
8714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8715 | delete arg1; | |
8716 | ||
8717 | wxPyEndAllowThreads(__tstate); | |
8718 | if (PyErr_Occurred()) SWIG_fail; | |
8719 | } | |
8720 | Py_INCREF(Py_None); resultobj = Py_None; | |
8721 | return resultobj; | |
8722 | fail: | |
8723 | return NULL; | |
8724 | } | |
8725 | ||
8726 | ||
8727 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
8728 | PyObject *obj; | |
8729 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8730 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
8731 | Py_INCREF(obj); | |
8732 | return Py_BuildValue((char *)""); | |
8733 | } | |
8734 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8735 | PyObject *resultobj; | |
8736 | wxPyLog *result; | |
8737 | char *kwnames[] = { | |
8738 | NULL | |
8739 | }; | |
8740 | ||
8741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
8742 | { | |
8743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8744 | result = (wxPyLog *)new wxPyLog(); | |
8745 | ||
8746 | wxPyEndAllowThreads(__tstate); | |
8747 | if (PyErr_Occurred()) SWIG_fail; | |
8748 | } | |
15afbcd0 | 8749 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); |
d14a1e28 RD |
8750 | return resultobj; |
8751 | fail: | |
8752 | return NULL; | |
8753 | } | |
8754 | ||
8755 | ||
8756 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8757 | PyObject *resultobj; | |
8758 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
8759 | PyObject *arg2 = (PyObject *) 0 ; | |
8760 | PyObject *arg3 = (PyObject *) 0 ; | |
8761 | PyObject * obj0 = 0 ; | |
8762 | PyObject * obj1 = 0 ; | |
8763 | PyObject * obj2 = 0 ; | |
8764 | char *kwnames[] = { | |
8765 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8766 | }; | |
8767 | ||
8768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
8769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog, |
8770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8771 | arg2 = obj1; |
8772 | arg3 = obj2; | |
8773 | { | |
8774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8775 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8776 | ||
8777 | wxPyEndAllowThreads(__tstate); | |
8778 | if (PyErr_Occurred()) SWIG_fail; | |
8779 | } | |
8780 | Py_INCREF(Py_None); resultobj = Py_None; | |
8781 | return resultobj; | |
8782 | fail: | |
8783 | return NULL; | |
8784 | } | |
8785 | ||
8786 | ||
8787 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
8788 | PyObject *obj; | |
8789 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8790 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
8791 | Py_INCREF(obj); | |
8792 | return Py_BuildValue((char *)""); | |
8793 | } | |
8794 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8795 | PyObject *resultobj; | |
8796 | int arg1 ; | |
8797 | int arg2 = (int) wxSIGTERM ; | |
8798 | int result; | |
994141e6 RD |
8799 | PyObject * obj0 = 0 ; |
8800 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8801 | char *kwnames[] = { |
8802 | (char *) "pid",(char *) "sig", NULL | |
8803 | }; | |
8804 | ||
994141e6 | 8805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8806 | arg1 = (int) SWIG_AsInt(obj0); |
8807 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8808 | if (obj1) { |
15afbcd0 RD |
8809 | arg2 = (wxSignal) SWIG_AsInt(obj1); |
8810 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8811 | } |
d14a1e28 RD |
8812 | { |
8813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8814 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
8815 | ||
8816 | wxPyEndAllowThreads(__tstate); | |
8817 | if (PyErr_Occurred()) SWIG_fail; | |
8818 | } | |
15afbcd0 | 8819 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8820 | return resultobj; |
8821 | fail: | |
8822 | return NULL; | |
8823 | } | |
8824 | ||
8825 | ||
8826 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8827 | PyObject *resultobj; | |
8828 | int arg1 ; | |
8829 | bool result; | |
994141e6 | 8830 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
8831 | char *kwnames[] = { |
8832 | (char *) "pid", NULL | |
8833 | }; | |
8834 | ||
994141e6 | 8835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
8836 | arg1 = (int) SWIG_AsInt(obj0); |
8837 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8838 | { |
8839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8840 | result = (bool)wxPyProcess::Exists(arg1); | |
8841 | ||
8842 | wxPyEndAllowThreads(__tstate); | |
8843 | if (PyErr_Occurred()) SWIG_fail; | |
8844 | } | |
4f89f6a3 RD |
8845 | { |
8846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8847 | } | |
d14a1e28 RD |
8848 | return resultobj; |
8849 | fail: | |
8850 | return NULL; | |
8851 | } | |
8852 | ||
8853 | ||
8854 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8855 | PyObject *resultobj; | |
8856 | wxString *arg1 = 0 ; | |
8857 | int arg2 = (int) wxEXEC_ASYNC ; | |
8858 | wxPyProcess *result; | |
e811c8ce | 8859 | bool temp1 = False ; |
d14a1e28 | 8860 | PyObject * obj0 = 0 ; |
994141e6 | 8861 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8862 | char *kwnames[] = { |
8863 | (char *) "cmd",(char *) "flags", NULL | |
8864 | }; | |
8865 | ||
994141e6 | 8866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
8867 | { |
8868 | arg1 = wxString_in_helper(obj0); | |
8869 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8870 | temp1 = True; |
d14a1e28 | 8871 | } |
994141e6 | 8872 | if (obj1) { |
15afbcd0 RD |
8873 | arg2 = (int) SWIG_AsInt(obj1); |
8874 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8875 | } |
d14a1e28 RD |
8876 | { |
8877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8878 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
8879 | ||
8880 | wxPyEndAllowThreads(__tstate); | |
8881 | if (PyErr_Occurred()) SWIG_fail; | |
8882 | } | |
15afbcd0 | 8883 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); |
d14a1e28 RD |
8884 | { |
8885 | if (temp1) | |
8886 | delete arg1; | |
8887 | } | |
8888 | return resultobj; | |
8889 | fail: | |
8890 | { | |
8891 | if (temp1) | |
8892 | delete arg1; | |
8893 | } | |
8894 | return NULL; | |
8895 | } | |
8896 | ||
8897 | ||
8898 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8899 | PyObject *resultobj; | |
8900 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
8901 | int arg2 = (int) -1 ; | |
8902 | wxPyProcess *result; | |
8903 | PyObject * obj0 = 0 ; | |
994141e6 | 8904 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8905 | char *kwnames[] = { |
8906 | (char *) "parent",(char *) "id", NULL | |
8907 | }; | |
8908 | ||
994141e6 | 8909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8910 | if (obj0) { |
15afbcd0 RD |
8911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
8912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8913 | } |
994141e6 | 8914 | if (obj1) { |
15afbcd0 RD |
8915 | arg2 = (int) SWIG_AsInt(obj1); |
8916 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8917 | } |
d14a1e28 RD |
8918 | { |
8919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8920 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
8921 | ||
8922 | wxPyEndAllowThreads(__tstate); | |
8923 | if (PyErr_Occurred()) SWIG_fail; | |
8924 | } | |
15afbcd0 | 8925 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); |
d14a1e28 RD |
8926 | return resultobj; |
8927 | fail: | |
8928 | return NULL; | |
8929 | } | |
8930 | ||
8931 | ||
8932 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8933 | PyObject *resultobj; | |
8934 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8935 | PyObject *arg2 = (PyObject *) 0 ; | |
8936 | PyObject *arg3 = (PyObject *) 0 ; | |
8937 | PyObject * obj0 = 0 ; | |
8938 | PyObject * obj1 = 0 ; | |
8939 | PyObject * obj2 = 0 ; | |
8940 | char *kwnames[] = { | |
8941 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8942 | }; | |
8943 | ||
8944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
8945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
8946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8947 | arg2 = obj1; |
8948 | arg3 = obj2; | |
8949 | { | |
8950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8951 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8952 | ||
8953 | wxPyEndAllowThreads(__tstate); | |
8954 | if (PyErr_Occurred()) SWIG_fail; | |
8955 | } | |
8956 | Py_INCREF(Py_None); resultobj = Py_None; | |
8957 | return resultobj; | |
8958 | fail: | |
8959 | return NULL; | |
8960 | } | |
8961 | ||
8962 | ||
8963 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8964 | PyObject *resultobj; | |
8965 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8966 | int arg2 ; | |
8967 | int arg3 ; | |
8968 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8969 | PyObject * obj1 = 0 ; |
8970 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8971 | char *kwnames[] = { |
8972 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
8973 | }; | |
8974 | ||
994141e6 | 8975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
8977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8978 | arg2 = (int) SWIG_AsInt(obj1); | |
8979 | if (PyErr_Occurred()) SWIG_fail; | |
8980 | arg3 = (int) SWIG_AsInt(obj2); | |
8981 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8982 | { |
8983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8984 | (arg1)->base_OnTerminate(arg2,arg3); | |
8985 | ||
8986 | wxPyEndAllowThreads(__tstate); | |
8987 | if (PyErr_Occurred()) SWIG_fail; | |
8988 | } | |
8989 | Py_INCREF(Py_None); resultobj = Py_None; | |
8990 | return resultobj; | |
8991 | fail: | |
8992 | return NULL; | |
8993 | } | |
8994 | ||
8995 | ||
8996 | static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8997 | PyObject *resultobj; | |
8998 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8999 | PyObject * obj0 = 0 ; | |
9000 | char *kwnames[] = { | |
9001 | (char *) "self", NULL | |
9002 | }; | |
9003 | ||
9004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9007 | { |
9008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9009 | (arg1)->Redirect(); | |
9010 | ||
9011 | wxPyEndAllowThreads(__tstate); | |
9012 | if (PyErr_Occurred()) SWIG_fail; | |
9013 | } | |
9014 | Py_INCREF(Py_None); resultobj = Py_None; | |
9015 | return resultobj; | |
9016 | fail: | |
9017 | return NULL; | |
9018 | } | |
9019 | ||
9020 | ||
9021 | static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9022 | PyObject *resultobj; | |
9023 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9024 | bool result; | |
9025 | PyObject * obj0 = 0 ; | |
9026 | char *kwnames[] = { | |
9027 | (char *) "self", NULL | |
9028 | }; | |
9029 | ||
9030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9033 | { |
9034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9035 | result = (bool)(arg1)->IsRedirected(); | |
9036 | ||
9037 | wxPyEndAllowThreads(__tstate); | |
9038 | if (PyErr_Occurred()) SWIG_fail; | |
9039 | } | |
4f89f6a3 RD |
9040 | { |
9041 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9042 | } | |
d14a1e28 RD |
9043 | return resultobj; |
9044 | fail: | |
9045 | return NULL; | |
9046 | } | |
9047 | ||
9048 | ||
9049 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9050 | PyObject *resultobj; | |
9051 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9052 | PyObject * obj0 = 0 ; | |
9053 | char *kwnames[] = { | |
9054 | (char *) "self", NULL | |
9055 | }; | |
9056 | ||
9057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9060 | { |
9061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9062 | (arg1)->Detach(); | |
9063 | ||
9064 | wxPyEndAllowThreads(__tstate); | |
9065 | if (PyErr_Occurred()) SWIG_fail; | |
9066 | } | |
9067 | Py_INCREF(Py_None); resultobj = Py_None; | |
9068 | return resultobj; | |
9069 | fail: | |
9070 | return NULL; | |
9071 | } | |
9072 | ||
9073 | ||
9074 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9075 | PyObject *resultobj; | |
9076 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9077 | wxInputStream *result; | |
9078 | PyObject * obj0 = 0 ; | |
9079 | char *kwnames[] = { | |
9080 | (char *) "self", NULL | |
9081 | }; | |
9082 | ||
9083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9086 | { |
9087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9088 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
9089 | ||
9090 | wxPyEndAllowThreads(__tstate); | |
9091 | if (PyErr_Occurred()) SWIG_fail; | |
9092 | } | |
9093 | { | |
9094 | wxPyInputStream * _ptr = NULL; | |
9095 | ||
9096 | if (result) { | |
9097 | _ptr = new wxPyInputStream(result); | |
9098 | } | |
e811c8ce | 9099 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
9100 | } |
9101 | return resultobj; | |
9102 | fail: | |
9103 | return NULL; | |
9104 | } | |
9105 | ||
9106 | ||
9107 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9108 | PyObject *resultobj; | |
9109 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9110 | wxInputStream *result; | |
9111 | PyObject * obj0 = 0 ; | |
9112 | char *kwnames[] = { | |
9113 | (char *) "self", NULL | |
9114 | }; | |
9115 | ||
9116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9119 | { |
9120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9121 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
9122 | ||
9123 | wxPyEndAllowThreads(__tstate); | |
9124 | if (PyErr_Occurred()) SWIG_fail; | |
9125 | } | |
9126 | { | |
9127 | wxPyInputStream * _ptr = NULL; | |
9128 | ||
9129 | if (result) { | |
9130 | _ptr = new wxPyInputStream(result); | |
9131 | } | |
e811c8ce | 9132 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
9133 | } |
9134 | return resultobj; | |
9135 | fail: | |
9136 | return NULL; | |
9137 | } | |
9138 | ||
9139 | ||
9140 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9141 | PyObject *resultobj; | |
9142 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9143 | wxOutputStream *result; | |
9144 | PyObject * obj0 = 0 ; | |
9145 | char *kwnames[] = { | |
9146 | (char *) "self", NULL | |
9147 | }; | |
9148 | ||
9149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9152 | { |
9153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9154 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
9155 | ||
9156 | wxPyEndAllowThreads(__tstate); | |
9157 | if (PyErr_Occurred()) SWIG_fail; | |
9158 | } | |
15afbcd0 | 9159 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); |
d14a1e28 RD |
9160 | return resultobj; |
9161 | fail: | |
9162 | return NULL; | |
9163 | } | |
9164 | ||
9165 | ||
9166 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9167 | PyObject *resultobj; | |
9168 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9169 | PyObject * obj0 = 0 ; | |
9170 | char *kwnames[] = { | |
9171 | (char *) "self", NULL | |
9172 | }; | |
9173 | ||
9174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9177 | { |
9178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9179 | (arg1)->CloseOutput(); | |
9180 | ||
9181 | wxPyEndAllowThreads(__tstate); | |
9182 | if (PyErr_Occurred()) SWIG_fail; | |
9183 | } | |
9184 | Py_INCREF(Py_None); resultobj = Py_None; | |
9185 | return resultobj; | |
9186 | fail: | |
9187 | return NULL; | |
9188 | } | |
9189 | ||
9190 | ||
9191 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9192 | PyObject *resultobj; | |
9193 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9194 | bool result; | |
9195 | PyObject * obj0 = 0 ; | |
9196 | char *kwnames[] = { | |
9197 | (char *) "self", NULL | |
9198 | }; | |
9199 | ||
9200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9203 | { |
9204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9205 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
9206 | ||
9207 | wxPyEndAllowThreads(__tstate); | |
9208 | if (PyErr_Occurred()) SWIG_fail; | |
9209 | } | |
4f89f6a3 RD |
9210 | { |
9211 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9212 | } | |
d14a1e28 RD |
9213 | return resultobj; |
9214 | fail: | |
9215 | return NULL; | |
9216 | } | |
9217 | ||
9218 | ||
9219 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9220 | PyObject *resultobj; | |
9221 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9222 | bool result; | |
9223 | PyObject * obj0 = 0 ; | |
9224 | char *kwnames[] = { | |
9225 | (char *) "self", NULL | |
9226 | }; | |
9227 | ||
9228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9231 | { |
9232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9233 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
9234 | ||
9235 | wxPyEndAllowThreads(__tstate); | |
9236 | if (PyErr_Occurred()) SWIG_fail; | |
9237 | } | |
4f89f6a3 RD |
9238 | { |
9239 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9240 | } | |
d14a1e28 RD |
9241 | return resultobj; |
9242 | fail: | |
9243 | return NULL; | |
9244 | } | |
9245 | ||
9246 | ||
9247 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9248 | PyObject *resultobj; | |
9249 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9250 | bool result; | |
9251 | PyObject * obj0 = 0 ; | |
9252 | char *kwnames[] = { | |
9253 | (char *) "self", NULL | |
9254 | }; | |
9255 | ||
9256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9259 | { |
9260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9261 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
9262 | ||
9263 | wxPyEndAllowThreads(__tstate); | |
9264 | if (PyErr_Occurred()) SWIG_fail; | |
9265 | } | |
4f89f6a3 RD |
9266 | { |
9267 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9268 | } | |
d14a1e28 RD |
9269 | return resultobj; |
9270 | fail: | |
9271 | return NULL; | |
9272 | } | |
9273 | ||
9274 | ||
9275 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
9276 | PyObject *obj; | |
9277 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9278 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
9279 | Py_INCREF(obj); | |
9280 | return Py_BuildValue((char *)""); | |
9281 | } | |
9282 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9283 | PyObject *resultobj; | |
9284 | int arg1 = (int) 0 ; | |
9285 | int arg2 = (int) 0 ; | |
9286 | int arg3 = (int) 0 ; | |
9287 | wxProcessEvent *result; | |
994141e6 RD |
9288 | PyObject * obj0 = 0 ; |
9289 | PyObject * obj1 = 0 ; | |
9290 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9291 | char *kwnames[] = { |
9292 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9293 | }; | |
9294 | ||
994141e6 RD |
9295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
9296 | if (obj0) { | |
15afbcd0 RD |
9297 | arg1 = (int) SWIG_AsInt(obj0); |
9298 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9299 | } |
9300 | if (obj1) { | |
15afbcd0 RD |
9301 | arg2 = (int) SWIG_AsInt(obj1); |
9302 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9303 | } |
9304 | if (obj2) { | |
15afbcd0 RD |
9305 | arg3 = (int) SWIG_AsInt(obj2); |
9306 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9307 | } |
d14a1e28 RD |
9308 | { |
9309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9310 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9311 | ||
9312 | wxPyEndAllowThreads(__tstate); | |
9313 | if (PyErr_Occurred()) SWIG_fail; | |
9314 | } | |
15afbcd0 | 9315 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); |
d14a1e28 RD |
9316 | return resultobj; |
9317 | fail: | |
9318 | return NULL; | |
9319 | } | |
9320 | ||
9321 | ||
9322 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9323 | PyObject *resultobj; | |
9324 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9325 | int result; | |
9326 | PyObject * obj0 = 0 ; | |
9327 | char *kwnames[] = { | |
9328 | (char *) "self", NULL | |
9329 | }; | |
9330 | ||
9331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9334 | { |
9335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9336 | result = (int)(arg1)->GetPid(); | |
9337 | ||
9338 | wxPyEndAllowThreads(__tstate); | |
9339 | if (PyErr_Occurred()) SWIG_fail; | |
9340 | } | |
15afbcd0 | 9341 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9342 | return resultobj; |
9343 | fail: | |
9344 | return NULL; | |
9345 | } | |
9346 | ||
9347 | ||
9348 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9349 | PyObject *resultobj; | |
9350 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9351 | int result; | |
9352 | PyObject * obj0 = 0 ; | |
9353 | char *kwnames[] = { | |
9354 | (char *) "self", NULL | |
9355 | }; | |
9356 | ||
9357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9360 | { |
9361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9362 | result = (int)(arg1)->GetExitCode(); | |
9363 | ||
9364 | wxPyEndAllowThreads(__tstate); | |
9365 | if (PyErr_Occurred()) SWIG_fail; | |
9366 | } | |
15afbcd0 | 9367 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9368 | return resultobj; |
9369 | fail: | |
9370 | return NULL; | |
9371 | } | |
9372 | ||
9373 | ||
9374 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9375 | PyObject *resultobj; | |
9376 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9377 | int arg2 ; | |
9378 | PyObject * obj0 = 0 ; | |
994141e6 | 9379 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9380 | char *kwnames[] = { |
9381 | (char *) "self",(char *) "m_pid", NULL | |
9382 | }; | |
9383 | ||
994141e6 | 9384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9387 | arg2 = (int) SWIG_AsInt(obj1); | |
9388 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9389 | if (arg1) (arg1)->m_pid = arg2; |
9390 | ||
9391 | Py_INCREF(Py_None); resultobj = Py_None; | |
9392 | return resultobj; | |
9393 | fail: | |
9394 | return NULL; | |
9395 | } | |
9396 | ||
9397 | ||
9398 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9399 | PyObject *resultobj; | |
9400 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9401 | int result; | |
9402 | PyObject * obj0 = 0 ; | |
9403 | char *kwnames[] = { | |
9404 | (char *) "self", NULL | |
9405 | }; | |
9406 | ||
9407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9410 | result = (int) ((arg1)->m_pid); |
9411 | ||
15afbcd0 | 9412 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9413 | return resultobj; |
9414 | fail: | |
9415 | return NULL; | |
9416 | } | |
9417 | ||
9418 | ||
9419 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9420 | PyObject *resultobj; | |
9421 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9422 | int arg2 ; | |
9423 | PyObject * obj0 = 0 ; | |
994141e6 | 9424 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9425 | char *kwnames[] = { |
9426 | (char *) "self",(char *) "m_exitcode", NULL | |
9427 | }; | |
9428 | ||
994141e6 | 9429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9432 | arg2 = (int) SWIG_AsInt(obj1); | |
9433 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9434 | if (arg1) (arg1)->m_exitcode = arg2; |
9435 | ||
9436 | Py_INCREF(Py_None); resultobj = Py_None; | |
9437 | return resultobj; | |
9438 | fail: | |
9439 | return NULL; | |
9440 | } | |
9441 | ||
9442 | ||
9443 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9444 | PyObject *resultobj; | |
9445 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9446 | int result; | |
9447 | PyObject * obj0 = 0 ; | |
9448 | char *kwnames[] = { | |
9449 | (char *) "self", NULL | |
9450 | }; | |
9451 | ||
9452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9455 | result = (int) ((arg1)->m_exitcode); |
9456 | ||
15afbcd0 | 9457 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9458 | return resultobj; |
9459 | fail: | |
9460 | return NULL; | |
9461 | } | |
9462 | ||
9463 | ||
9464 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
9465 | PyObject *obj; | |
9466 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9467 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
9468 | Py_INCREF(obj); | |
9469 | return Py_BuildValue((char *)""); | |
9470 | } | |
9471 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9472 | PyObject *resultobj; | |
9473 | wxString *arg1 = 0 ; | |
9474 | int arg2 = (int) wxEXEC_ASYNC ; | |
9475 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
9476 | long result; | |
e811c8ce | 9477 | bool temp1 = False ; |
d14a1e28 | 9478 | PyObject * obj0 = 0 ; |
994141e6 | 9479 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9480 | PyObject * obj2 = 0 ; |
9481 | char *kwnames[] = { | |
9482 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
9483 | }; | |
9484 | ||
994141e6 | 9485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
9486 | { |
9487 | arg1 = wxString_in_helper(obj0); | |
9488 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9489 | temp1 = True; |
d14a1e28 | 9490 | } |
994141e6 | 9491 | if (obj1) { |
15afbcd0 RD |
9492 | arg2 = (int) SWIG_AsInt(obj1); |
9493 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9494 | } |
d14a1e28 | 9495 | if (obj2) { |
15afbcd0 RD |
9496 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess, |
9497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9498 | } |
9499 | { | |
9500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9501 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
9502 | ||
9503 | wxPyEndAllowThreads(__tstate); | |
9504 | if (PyErr_Occurred()) SWIG_fail; | |
9505 | } | |
15afbcd0 | 9506 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9507 | { |
9508 | if (temp1) | |
9509 | delete arg1; | |
9510 | } | |
9511 | return resultobj; | |
9512 | fail: | |
9513 | { | |
9514 | if (temp1) | |
9515 | delete arg1; | |
9516 | } | |
9517 | return NULL; | |
9518 | } | |
9519 | ||
9520 | ||
9521 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9522 | PyObject *resultobj; | |
9523 | int arg1 = (int) wxJOYSTICK1 ; | |
9524 | wxJoystick *result; | |
994141e6 | 9525 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9526 | char *kwnames[] = { |
9527 | (char *) "joystick", NULL | |
9528 | }; | |
9529 | ||
994141e6 RD |
9530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; |
9531 | if (obj0) { | |
15afbcd0 RD |
9532 | arg1 = (int) SWIG_AsInt(obj0); |
9533 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9534 | } |
d14a1e28 RD |
9535 | { |
9536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9537 | result = (wxJoystick *)new wxJoystick(arg1); | |
9538 | ||
9539 | wxPyEndAllowThreads(__tstate); | |
9540 | if (PyErr_Occurred()) SWIG_fail; | |
9541 | } | |
15afbcd0 | 9542 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); |
d14a1e28 RD |
9543 | return resultobj; |
9544 | fail: | |
9545 | return NULL; | |
9546 | } | |
9547 | ||
9548 | ||
9549 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9550 | PyObject *resultobj; | |
9551 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9552 | PyObject * obj0 = 0 ; | |
9553 | char *kwnames[] = { | |
9554 | (char *) "self", NULL | |
9555 | }; | |
9556 | ||
9557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9560 | { |
9561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9562 | delete arg1; | |
9563 | ||
9564 | wxPyEndAllowThreads(__tstate); | |
9565 | if (PyErr_Occurred()) SWIG_fail; | |
9566 | } | |
9567 | Py_INCREF(Py_None); resultobj = Py_None; | |
9568 | return resultobj; | |
9569 | fail: | |
9570 | return NULL; | |
9571 | } | |
9572 | ||
9573 | ||
9574 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9575 | PyObject *resultobj; | |
9576 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9577 | wxPoint result; | |
9578 | PyObject * obj0 = 0 ; | |
9579 | char *kwnames[] = { | |
9580 | (char *) "self", NULL | |
9581 | }; | |
9582 | ||
9583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9586 | { |
9587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9588 | result = (arg1)->GetPosition(); | |
9589 | ||
9590 | wxPyEndAllowThreads(__tstate); | |
9591 | if (PyErr_Occurred()) SWIG_fail; | |
9592 | } | |
9593 | { | |
9594 | wxPoint * resultptr; | |
9595 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 9596 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
9597 | } |
9598 | return resultobj; | |
9599 | fail: | |
9600 | return NULL; | |
9601 | } | |
9602 | ||
9603 | ||
9604 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9605 | PyObject *resultobj; | |
9606 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9607 | int result; | |
9608 | PyObject * obj0 = 0 ; | |
9609 | char *kwnames[] = { | |
9610 | (char *) "self", NULL | |
9611 | }; | |
9612 | ||
9613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9616 | { |
9617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9618 | result = (int)(arg1)->GetZPosition(); | |
9619 | ||
9620 | wxPyEndAllowThreads(__tstate); | |
9621 | if (PyErr_Occurred()) SWIG_fail; | |
9622 | } | |
15afbcd0 | 9623 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9624 | return resultobj; |
9625 | fail: | |
9626 | return NULL; | |
9627 | } | |
9628 | ||
9629 | ||
9630 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9631 | PyObject *resultobj; | |
9632 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9633 | int result; | |
9634 | PyObject * obj0 = 0 ; | |
9635 | char *kwnames[] = { | |
9636 | (char *) "self", NULL | |
9637 | }; | |
9638 | ||
9639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9642 | { |
9643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9644 | result = (int)(arg1)->GetButtonState(); | |
9645 | ||
9646 | wxPyEndAllowThreads(__tstate); | |
9647 | if (PyErr_Occurred()) SWIG_fail; | |
9648 | } | |
15afbcd0 | 9649 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9650 | return resultobj; |
9651 | fail: | |
9652 | return NULL; | |
9653 | } | |
9654 | ||
9655 | ||
9656 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9657 | PyObject *resultobj; | |
9658 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9659 | int result; | |
9660 | PyObject * obj0 = 0 ; | |
9661 | char *kwnames[] = { | |
9662 | (char *) "self", NULL | |
9663 | }; | |
9664 | ||
9665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9668 | { |
9669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9670 | result = (int)(arg1)->GetPOVPosition(); | |
9671 | ||
9672 | wxPyEndAllowThreads(__tstate); | |
9673 | if (PyErr_Occurred()) SWIG_fail; | |
9674 | } | |
15afbcd0 | 9675 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9676 | return resultobj; |
9677 | fail: | |
9678 | return NULL; | |
9679 | } | |
9680 | ||
9681 | ||
9682 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9683 | PyObject *resultobj; | |
9684 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9685 | int result; | |
9686 | PyObject * obj0 = 0 ; | |
9687 | char *kwnames[] = { | |
9688 | (char *) "self", NULL | |
9689 | }; | |
9690 | ||
9691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9694 | { |
9695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9696 | result = (int)(arg1)->GetPOVCTSPosition(); | |
9697 | ||
9698 | wxPyEndAllowThreads(__tstate); | |
9699 | if (PyErr_Occurred()) SWIG_fail; | |
9700 | } | |
15afbcd0 | 9701 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9702 | return resultobj; |
9703 | fail: | |
9704 | return NULL; | |
9705 | } | |
9706 | ||
9707 | ||
9708 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9709 | PyObject *resultobj; | |
9710 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9711 | int result; | |
9712 | PyObject * obj0 = 0 ; | |
9713 | char *kwnames[] = { | |
9714 | (char *) "self", NULL | |
9715 | }; | |
9716 | ||
9717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9720 | { |
9721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9722 | result = (int)(arg1)->GetRudderPosition(); | |
9723 | ||
9724 | wxPyEndAllowThreads(__tstate); | |
9725 | if (PyErr_Occurred()) SWIG_fail; | |
9726 | } | |
15afbcd0 | 9727 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9728 | return resultobj; |
9729 | fail: | |
9730 | return NULL; | |
9731 | } | |
9732 | ||
9733 | ||
9734 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9735 | PyObject *resultobj; | |
9736 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9737 | int result; | |
9738 | PyObject * obj0 = 0 ; | |
9739 | char *kwnames[] = { | |
9740 | (char *) "self", NULL | |
9741 | }; | |
9742 | ||
9743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9746 | { |
9747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9748 | result = (int)(arg1)->GetUPosition(); | |
9749 | ||
9750 | wxPyEndAllowThreads(__tstate); | |
9751 | if (PyErr_Occurred()) SWIG_fail; | |
9752 | } | |
15afbcd0 | 9753 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9754 | return resultobj; |
9755 | fail: | |
9756 | return NULL; | |
9757 | } | |
9758 | ||
9759 | ||
9760 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9761 | PyObject *resultobj; | |
9762 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9763 | int result; | |
9764 | PyObject * obj0 = 0 ; | |
9765 | char *kwnames[] = { | |
9766 | (char *) "self", NULL | |
9767 | }; | |
9768 | ||
9769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9772 | { |
9773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9774 | result = (int)(arg1)->GetVPosition(); | |
9775 | ||
9776 | wxPyEndAllowThreads(__tstate); | |
9777 | if (PyErr_Occurred()) SWIG_fail; | |
9778 | } | |
15afbcd0 | 9779 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9780 | return resultobj; |
9781 | fail: | |
9782 | return NULL; | |
9783 | } | |
9784 | ||
9785 | ||
9786 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9787 | PyObject *resultobj; | |
9788 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9789 | int result; | |
9790 | PyObject * obj0 = 0 ; | |
9791 | char *kwnames[] = { | |
9792 | (char *) "self", NULL | |
9793 | }; | |
9794 | ||
9795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9798 | { |
9799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9800 | result = (int)(arg1)->GetMovementThreshold(); | |
9801 | ||
9802 | wxPyEndAllowThreads(__tstate); | |
9803 | if (PyErr_Occurred()) SWIG_fail; | |
9804 | } | |
15afbcd0 | 9805 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9806 | return resultobj; |
9807 | fail: | |
9808 | return NULL; | |
9809 | } | |
9810 | ||
9811 | ||
9812 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9813 | PyObject *resultobj; | |
9814 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9815 | int arg2 ; | |
9816 | PyObject * obj0 = 0 ; | |
994141e6 | 9817 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9818 | char *kwnames[] = { |
9819 | (char *) "self",(char *) "threshold", NULL | |
9820 | }; | |
9821 | ||
994141e6 | 9822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9825 | arg2 = (int) SWIG_AsInt(obj1); | |
9826 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9827 | { |
9828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9829 | (arg1)->SetMovementThreshold(arg2); | |
9830 | ||
9831 | wxPyEndAllowThreads(__tstate); | |
9832 | if (PyErr_Occurred()) SWIG_fail; | |
9833 | } | |
9834 | Py_INCREF(Py_None); resultobj = Py_None; | |
9835 | return resultobj; | |
9836 | fail: | |
9837 | return NULL; | |
9838 | } | |
9839 | ||
9840 | ||
9841 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9842 | PyObject *resultobj; | |
9843 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9844 | bool result; | |
9845 | PyObject * obj0 = 0 ; | |
9846 | char *kwnames[] = { | |
9847 | (char *) "self", NULL | |
9848 | }; | |
9849 | ||
9850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9853 | { |
9854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9855 | result = (bool)(arg1)->IsOk(); | |
9856 | ||
9857 | wxPyEndAllowThreads(__tstate); | |
9858 | if (PyErr_Occurred()) SWIG_fail; | |
9859 | } | |
4f89f6a3 RD |
9860 | { |
9861 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9862 | } | |
d14a1e28 RD |
9863 | return resultobj; |
9864 | fail: | |
9865 | return NULL; | |
9866 | } | |
9867 | ||
9868 | ||
9869 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9870 | PyObject *resultobj; | |
9871 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9872 | int result; | |
9873 | PyObject * obj0 = 0 ; | |
9874 | char *kwnames[] = { | |
9875 | (char *) "self", NULL | |
9876 | }; | |
9877 | ||
9878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9881 | { |
9882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9883 | result = (int)(arg1)->GetNumberJoysticks(); | |
9884 | ||
9885 | wxPyEndAllowThreads(__tstate); | |
9886 | if (PyErr_Occurred()) SWIG_fail; | |
9887 | } | |
15afbcd0 | 9888 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9889 | return resultobj; |
9890 | fail: | |
9891 | return NULL; | |
9892 | } | |
9893 | ||
9894 | ||
9895 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9896 | PyObject *resultobj; | |
9897 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9898 | int result; | |
9899 | PyObject * obj0 = 0 ; | |
9900 | char *kwnames[] = { | |
9901 | (char *) "self", NULL | |
9902 | }; | |
9903 | ||
9904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9907 | { |
9908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9909 | result = (int)(arg1)->GetManufacturerId(); | |
9910 | ||
9911 | wxPyEndAllowThreads(__tstate); | |
9912 | if (PyErr_Occurred()) SWIG_fail; | |
9913 | } | |
15afbcd0 | 9914 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9915 | return resultobj; |
9916 | fail: | |
9917 | return NULL; | |
9918 | } | |
9919 | ||
9920 | ||
9921 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9922 | PyObject *resultobj; | |
9923 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9924 | int result; | |
9925 | PyObject * obj0 = 0 ; | |
9926 | char *kwnames[] = { | |
9927 | (char *) "self", NULL | |
9928 | }; | |
9929 | ||
9930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9933 | { |
9934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9935 | result = (int)(arg1)->GetProductId(); | |
9936 | ||
9937 | wxPyEndAllowThreads(__tstate); | |
9938 | if (PyErr_Occurred()) SWIG_fail; | |
9939 | } | |
15afbcd0 | 9940 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9941 | return resultobj; |
9942 | fail: | |
9943 | return NULL; | |
9944 | } | |
9945 | ||
9946 | ||
9947 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9948 | PyObject *resultobj; | |
9949 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9950 | wxString result; | |
9951 | PyObject * obj0 = 0 ; | |
9952 | char *kwnames[] = { | |
9953 | (char *) "self", NULL | |
9954 | }; | |
9955 | ||
9956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9959 | { |
9960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9961 | result = (arg1)->GetProductName(); | |
9962 | ||
9963 | wxPyEndAllowThreads(__tstate); | |
9964 | if (PyErr_Occurred()) SWIG_fail; | |
9965 | } | |
9966 | { | |
9967 | #if wxUSE_UNICODE | |
9968 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9969 | #else | |
9970 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9971 | #endif | |
9972 | } | |
9973 | return resultobj; | |
9974 | fail: | |
9975 | return NULL; | |
9976 | } | |
9977 | ||
9978 | ||
9979 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9980 | PyObject *resultobj; | |
9981 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9982 | int result; | |
9983 | PyObject * obj0 = 0 ; | |
9984 | char *kwnames[] = { | |
9985 | (char *) "self", NULL | |
9986 | }; | |
9987 | ||
9988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9991 | { |
9992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9993 | result = (int)(arg1)->GetXMin(); | |
9994 | ||
9995 | wxPyEndAllowThreads(__tstate); | |
9996 | if (PyErr_Occurred()) SWIG_fail; | |
9997 | } | |
15afbcd0 | 9998 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9999 | return resultobj; |
10000 | fail: | |
10001 | return NULL; | |
10002 | } | |
10003 | ||
10004 | ||
10005 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10006 | PyObject *resultobj; | |
10007 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10008 | int result; | |
10009 | PyObject * obj0 = 0 ; | |
10010 | char *kwnames[] = { | |
10011 | (char *) "self", NULL | |
10012 | }; | |
10013 | ||
10014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10017 | { |
10018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10019 | result = (int)(arg1)->GetYMin(); | |
10020 | ||
10021 | wxPyEndAllowThreads(__tstate); | |
10022 | if (PyErr_Occurred()) SWIG_fail; | |
10023 | } | |
15afbcd0 | 10024 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10025 | return resultobj; |
10026 | fail: | |
10027 | return NULL; | |
10028 | } | |
10029 | ||
10030 | ||
10031 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10032 | PyObject *resultobj; | |
10033 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10034 | int result; | |
10035 | PyObject * obj0 = 0 ; | |
10036 | char *kwnames[] = { | |
10037 | (char *) "self", NULL | |
10038 | }; | |
10039 | ||
10040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10043 | { |
10044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10045 | result = (int)(arg1)->GetZMin(); | |
10046 | ||
10047 | wxPyEndAllowThreads(__tstate); | |
10048 | if (PyErr_Occurred()) SWIG_fail; | |
10049 | } | |
15afbcd0 | 10050 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10051 | return resultobj; |
10052 | fail: | |
10053 | return NULL; | |
10054 | } | |
10055 | ||
10056 | ||
10057 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10058 | PyObject *resultobj; | |
10059 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10060 | int result; | |
10061 | PyObject * obj0 = 0 ; | |
10062 | char *kwnames[] = { | |
10063 | (char *) "self", NULL | |
10064 | }; | |
10065 | ||
10066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10069 | { |
10070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10071 | result = (int)(arg1)->GetXMax(); | |
10072 | ||
10073 | wxPyEndAllowThreads(__tstate); | |
10074 | if (PyErr_Occurred()) SWIG_fail; | |
10075 | } | |
15afbcd0 | 10076 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10077 | return resultobj; |
10078 | fail: | |
10079 | return NULL; | |
10080 | } | |
10081 | ||
10082 | ||
10083 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10084 | PyObject *resultobj; | |
10085 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10086 | int result; | |
10087 | PyObject * obj0 = 0 ; | |
10088 | char *kwnames[] = { | |
10089 | (char *) "self", NULL | |
10090 | }; | |
10091 | ||
10092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10095 | { |
10096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10097 | result = (int)(arg1)->GetYMax(); | |
10098 | ||
10099 | wxPyEndAllowThreads(__tstate); | |
10100 | if (PyErr_Occurred()) SWIG_fail; | |
10101 | } | |
15afbcd0 | 10102 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10103 | return resultobj; |
10104 | fail: | |
10105 | return NULL; | |
10106 | } | |
10107 | ||
10108 | ||
10109 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10110 | PyObject *resultobj; | |
10111 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10112 | int result; | |
10113 | PyObject * obj0 = 0 ; | |
10114 | char *kwnames[] = { | |
10115 | (char *) "self", NULL | |
10116 | }; | |
10117 | ||
10118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10121 | { |
10122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10123 | result = (int)(arg1)->GetZMax(); | |
10124 | ||
10125 | wxPyEndAllowThreads(__tstate); | |
10126 | if (PyErr_Occurred()) SWIG_fail; | |
10127 | } | |
15afbcd0 | 10128 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10129 | return resultobj; |
10130 | fail: | |
10131 | return NULL; | |
10132 | } | |
10133 | ||
10134 | ||
10135 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10136 | PyObject *resultobj; | |
10137 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10138 | int result; | |
10139 | PyObject * obj0 = 0 ; | |
10140 | char *kwnames[] = { | |
10141 | (char *) "self", NULL | |
10142 | }; | |
10143 | ||
10144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10147 | { |
10148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10149 | result = (int)(arg1)->GetNumberButtons(); | |
10150 | ||
10151 | wxPyEndAllowThreads(__tstate); | |
10152 | if (PyErr_Occurred()) SWIG_fail; | |
10153 | } | |
15afbcd0 | 10154 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10155 | return resultobj; |
10156 | fail: | |
10157 | return NULL; | |
10158 | } | |
10159 | ||
10160 | ||
10161 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10162 | PyObject *resultobj; | |
10163 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10164 | int result; | |
10165 | PyObject * obj0 = 0 ; | |
10166 | char *kwnames[] = { | |
10167 | (char *) "self", NULL | |
10168 | }; | |
10169 | ||
10170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10173 | { |
10174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10175 | result = (int)(arg1)->GetNumberAxes(); | |
10176 | ||
10177 | wxPyEndAllowThreads(__tstate); | |
10178 | if (PyErr_Occurred()) SWIG_fail; | |
10179 | } | |
15afbcd0 | 10180 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10181 | return resultobj; |
10182 | fail: | |
10183 | return NULL; | |
10184 | } | |
10185 | ||
10186 | ||
10187 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10188 | PyObject *resultobj; | |
10189 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10190 | int result; | |
10191 | PyObject * obj0 = 0 ; | |
10192 | char *kwnames[] = { | |
10193 | (char *) "self", NULL | |
10194 | }; | |
10195 | ||
10196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10199 | { |
10200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10201 | result = (int)(arg1)->GetMaxButtons(); | |
10202 | ||
10203 | wxPyEndAllowThreads(__tstate); | |
10204 | if (PyErr_Occurred()) SWIG_fail; | |
10205 | } | |
15afbcd0 | 10206 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10207 | return resultobj; |
10208 | fail: | |
10209 | return NULL; | |
10210 | } | |
10211 | ||
10212 | ||
10213 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10214 | PyObject *resultobj; | |
10215 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10216 | int result; | |
10217 | PyObject * obj0 = 0 ; | |
10218 | char *kwnames[] = { | |
10219 | (char *) "self", NULL | |
10220 | }; | |
10221 | ||
10222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10225 | { |
10226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10227 | result = (int)(arg1)->GetMaxAxes(); | |
10228 | ||
10229 | wxPyEndAllowThreads(__tstate); | |
10230 | if (PyErr_Occurred()) SWIG_fail; | |
10231 | } | |
15afbcd0 | 10232 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10233 | return resultobj; |
10234 | fail: | |
10235 | return NULL; | |
10236 | } | |
10237 | ||
10238 | ||
10239 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10240 | PyObject *resultobj; | |
10241 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10242 | int result; | |
10243 | PyObject * obj0 = 0 ; | |
10244 | char *kwnames[] = { | |
10245 | (char *) "self", NULL | |
10246 | }; | |
10247 | ||
10248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10251 | { |
10252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10253 | result = (int)(arg1)->GetPollingMin(); | |
10254 | ||
10255 | wxPyEndAllowThreads(__tstate); | |
10256 | if (PyErr_Occurred()) SWIG_fail; | |
10257 | } | |
15afbcd0 | 10258 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10259 | return resultobj; |
10260 | fail: | |
10261 | return NULL; | |
10262 | } | |
10263 | ||
10264 | ||
10265 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10266 | PyObject *resultobj; | |
10267 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10268 | int result; | |
10269 | PyObject * obj0 = 0 ; | |
10270 | char *kwnames[] = { | |
10271 | (char *) "self", NULL | |
10272 | }; | |
10273 | ||
10274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10277 | { |
10278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10279 | result = (int)(arg1)->GetPollingMax(); | |
10280 | ||
10281 | wxPyEndAllowThreads(__tstate); | |
10282 | if (PyErr_Occurred()) SWIG_fail; | |
10283 | } | |
15afbcd0 | 10284 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10285 | return resultobj; |
10286 | fail: | |
10287 | return NULL; | |
10288 | } | |
10289 | ||
10290 | ||
10291 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10292 | PyObject *resultobj; | |
10293 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10294 | int result; | |
10295 | PyObject * obj0 = 0 ; | |
10296 | char *kwnames[] = { | |
10297 | (char *) "self", NULL | |
10298 | }; | |
10299 | ||
10300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10303 | { |
10304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10305 | result = (int)(arg1)->GetRudderMin(); | |
10306 | ||
10307 | wxPyEndAllowThreads(__tstate); | |
10308 | if (PyErr_Occurred()) SWIG_fail; | |
10309 | } | |
15afbcd0 | 10310 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10311 | return resultobj; |
10312 | fail: | |
10313 | return NULL; | |
10314 | } | |
10315 | ||
10316 | ||
10317 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10318 | PyObject *resultobj; | |
10319 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10320 | int result; | |
10321 | PyObject * obj0 = 0 ; | |
10322 | char *kwnames[] = { | |
10323 | (char *) "self", NULL | |
10324 | }; | |
10325 | ||
10326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10329 | { |
10330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10331 | result = (int)(arg1)->GetRudderMax(); | |
10332 | ||
10333 | wxPyEndAllowThreads(__tstate); | |
10334 | if (PyErr_Occurred()) SWIG_fail; | |
10335 | } | |
15afbcd0 | 10336 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10337 | return resultobj; |
10338 | fail: | |
10339 | return NULL; | |
10340 | } | |
10341 | ||
10342 | ||
10343 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10344 | PyObject *resultobj; | |
10345 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10346 | int result; | |
10347 | PyObject * obj0 = 0 ; | |
10348 | char *kwnames[] = { | |
10349 | (char *) "self", NULL | |
10350 | }; | |
10351 | ||
10352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10355 | { |
10356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10357 | result = (int)(arg1)->GetUMin(); | |
10358 | ||
10359 | wxPyEndAllowThreads(__tstate); | |
10360 | if (PyErr_Occurred()) SWIG_fail; | |
10361 | } | |
15afbcd0 | 10362 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10363 | return resultobj; |
10364 | fail: | |
10365 | return NULL; | |
10366 | } | |
10367 | ||
10368 | ||
10369 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10370 | PyObject *resultobj; | |
10371 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10372 | int result; | |
10373 | PyObject * obj0 = 0 ; | |
10374 | char *kwnames[] = { | |
10375 | (char *) "self", NULL | |
10376 | }; | |
10377 | ||
10378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10381 | { |
10382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10383 | result = (int)(arg1)->GetUMax(); | |
10384 | ||
10385 | wxPyEndAllowThreads(__tstate); | |
10386 | if (PyErr_Occurred()) SWIG_fail; | |
10387 | } | |
15afbcd0 | 10388 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10389 | return resultobj; |
10390 | fail: | |
10391 | return NULL; | |
10392 | } | |
10393 | ||
10394 | ||
10395 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10396 | PyObject *resultobj; | |
10397 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10398 | int result; | |
10399 | PyObject * obj0 = 0 ; | |
10400 | char *kwnames[] = { | |
10401 | (char *) "self", NULL | |
10402 | }; | |
10403 | ||
10404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10407 | { |
10408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10409 | result = (int)(arg1)->GetVMin(); | |
10410 | ||
10411 | wxPyEndAllowThreads(__tstate); | |
10412 | if (PyErr_Occurred()) SWIG_fail; | |
10413 | } | |
15afbcd0 | 10414 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10415 | return resultobj; |
10416 | fail: | |
10417 | return NULL; | |
10418 | } | |
10419 | ||
10420 | ||
10421 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10422 | PyObject *resultobj; | |
10423 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10424 | int result; | |
10425 | PyObject * obj0 = 0 ; | |
10426 | char *kwnames[] = { | |
10427 | (char *) "self", NULL | |
10428 | }; | |
10429 | ||
10430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10433 | { |
10434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10435 | result = (int)(arg1)->GetVMax(); | |
10436 | ||
10437 | wxPyEndAllowThreads(__tstate); | |
10438 | if (PyErr_Occurred()) SWIG_fail; | |
10439 | } | |
15afbcd0 | 10440 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10441 | return resultobj; |
10442 | fail: | |
10443 | return NULL; | |
10444 | } | |
10445 | ||
10446 | ||
10447 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10448 | PyObject *resultobj; | |
10449 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10450 | bool result; | |
10451 | PyObject * obj0 = 0 ; | |
10452 | char *kwnames[] = { | |
10453 | (char *) "self", NULL | |
10454 | }; | |
10455 | ||
10456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10459 | { |
10460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10461 | result = (bool)(arg1)->HasRudder(); | |
10462 | ||
10463 | wxPyEndAllowThreads(__tstate); | |
10464 | if (PyErr_Occurred()) SWIG_fail; | |
10465 | } | |
4f89f6a3 RD |
10466 | { |
10467 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10468 | } | |
d14a1e28 RD |
10469 | return resultobj; |
10470 | fail: | |
10471 | return NULL; | |
10472 | } | |
10473 | ||
10474 | ||
10475 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10476 | PyObject *resultobj; | |
10477 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10478 | bool result; | |
10479 | PyObject * obj0 = 0 ; | |
10480 | char *kwnames[] = { | |
10481 | (char *) "self", NULL | |
10482 | }; | |
10483 | ||
10484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10487 | { |
10488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10489 | result = (bool)(arg1)->HasZ(); | |
10490 | ||
10491 | wxPyEndAllowThreads(__tstate); | |
10492 | if (PyErr_Occurred()) SWIG_fail; | |
10493 | } | |
4f89f6a3 RD |
10494 | { |
10495 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10496 | } | |
d14a1e28 RD |
10497 | return resultobj; |
10498 | fail: | |
10499 | return NULL; | |
10500 | } | |
10501 | ||
10502 | ||
10503 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10504 | PyObject *resultobj; | |
10505 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10506 | bool result; | |
10507 | PyObject * obj0 = 0 ; | |
10508 | char *kwnames[] = { | |
10509 | (char *) "self", NULL | |
10510 | }; | |
10511 | ||
10512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10515 | { |
10516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10517 | result = (bool)(arg1)->HasU(); | |
10518 | ||
10519 | wxPyEndAllowThreads(__tstate); | |
10520 | if (PyErr_Occurred()) SWIG_fail; | |
10521 | } | |
4f89f6a3 RD |
10522 | { |
10523 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10524 | } | |
d14a1e28 RD |
10525 | return resultobj; |
10526 | fail: | |
10527 | return NULL; | |
10528 | } | |
10529 | ||
10530 | ||
10531 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10532 | PyObject *resultobj; | |
10533 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10534 | bool result; | |
10535 | PyObject * obj0 = 0 ; | |
10536 | char *kwnames[] = { | |
10537 | (char *) "self", NULL | |
10538 | }; | |
10539 | ||
10540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10543 | { |
10544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10545 | result = (bool)(arg1)->HasV(); | |
10546 | ||
10547 | wxPyEndAllowThreads(__tstate); | |
10548 | if (PyErr_Occurred()) SWIG_fail; | |
10549 | } | |
4f89f6a3 RD |
10550 | { |
10551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10552 | } | |
d14a1e28 RD |
10553 | return resultobj; |
10554 | fail: | |
10555 | return NULL; | |
10556 | } | |
10557 | ||
10558 | ||
10559 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10560 | PyObject *resultobj; | |
10561 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10562 | bool result; | |
10563 | PyObject * obj0 = 0 ; | |
10564 | char *kwnames[] = { | |
10565 | (char *) "self", NULL | |
10566 | }; | |
10567 | ||
10568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10571 | { |
10572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10573 | result = (bool)(arg1)->HasPOV(); | |
10574 | ||
10575 | wxPyEndAllowThreads(__tstate); | |
10576 | if (PyErr_Occurred()) SWIG_fail; | |
10577 | } | |
4f89f6a3 RD |
10578 | { |
10579 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10580 | } | |
d14a1e28 RD |
10581 | return resultobj; |
10582 | fail: | |
10583 | return NULL; | |
10584 | } | |
10585 | ||
10586 | ||
10587 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10588 | PyObject *resultobj; | |
10589 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10590 | bool result; | |
10591 | PyObject * obj0 = 0 ; | |
10592 | char *kwnames[] = { | |
10593 | (char *) "self", NULL | |
10594 | }; | |
10595 | ||
10596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10599 | { |
10600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10601 | result = (bool)(arg1)->HasPOV4Dir(); | |
10602 | ||
10603 | wxPyEndAllowThreads(__tstate); | |
10604 | if (PyErr_Occurred()) SWIG_fail; | |
10605 | } | |
4f89f6a3 RD |
10606 | { |
10607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10608 | } | |
d14a1e28 RD |
10609 | return resultobj; |
10610 | fail: | |
10611 | return NULL; | |
10612 | } | |
10613 | ||
10614 | ||
10615 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10616 | PyObject *resultobj; | |
10617 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10618 | bool result; | |
10619 | PyObject * obj0 = 0 ; | |
10620 | char *kwnames[] = { | |
10621 | (char *) "self", NULL | |
10622 | }; | |
10623 | ||
10624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10627 | { |
10628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10629 | result = (bool)(arg1)->HasPOVCTS(); | |
10630 | ||
10631 | wxPyEndAllowThreads(__tstate); | |
10632 | if (PyErr_Occurred()) SWIG_fail; | |
10633 | } | |
4f89f6a3 RD |
10634 | { |
10635 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10636 | } | |
d14a1e28 RD |
10637 | return resultobj; |
10638 | fail: | |
10639 | return NULL; | |
10640 | } | |
10641 | ||
10642 | ||
10643 | static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10644 | PyObject *resultobj; | |
10645 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10646 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10647 | int arg3 = (int) 0 ; | |
10648 | bool result; | |
10649 | PyObject * obj0 = 0 ; | |
10650 | PyObject * obj1 = 0 ; | |
994141e6 | 10651 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10652 | char *kwnames[] = { |
10653 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
10654 | }; | |
10655 | ||
994141e6 | 10656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10659 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10661 | if (obj2) { |
15afbcd0 RD |
10662 | arg3 = (int) SWIG_AsInt(obj2); |
10663 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10664 | } |
d14a1e28 RD |
10665 | { |
10666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10667 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
10668 | ||
10669 | wxPyEndAllowThreads(__tstate); | |
10670 | if (PyErr_Occurred()) SWIG_fail; | |
10671 | } | |
4f89f6a3 RD |
10672 | { |
10673 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10674 | } | |
d14a1e28 RD |
10675 | return resultobj; |
10676 | fail: | |
10677 | return NULL; | |
10678 | } | |
10679 | ||
10680 | ||
10681 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10682 | PyObject *resultobj; | |
10683 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10684 | bool result; | |
10685 | PyObject * obj0 = 0 ; | |
10686 | char *kwnames[] = { | |
10687 | (char *) "self", NULL | |
10688 | }; | |
10689 | ||
10690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10693 | { |
10694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10695 | result = (bool)(arg1)->ReleaseCapture(); | |
10696 | ||
10697 | wxPyEndAllowThreads(__tstate); | |
10698 | if (PyErr_Occurred()) SWIG_fail; | |
10699 | } | |
4f89f6a3 RD |
10700 | { |
10701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10702 | } | |
d14a1e28 RD |
10703 | return resultobj; |
10704 | fail: | |
10705 | return NULL; | |
10706 | } | |
10707 | ||
10708 | ||
10709 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
10710 | PyObject *obj; | |
10711 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10712 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
10713 | Py_INCREF(obj); | |
10714 | return Py_BuildValue((char *)""); | |
10715 | } | |
10716 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10717 | PyObject *resultobj; | |
10718 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10719 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10720 | PyObject * obj0 = 0 ; | |
10721 | PyObject * obj1 = 0 ; | |
10722 | char *kwnames[] = { | |
10723 | (char *) "self",(char *) "m_pos", NULL | |
10724 | }; | |
10725 | ||
10726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10729 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
10730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10731 | if (arg1) (arg1)->m_pos = *arg2; |
10732 | ||
10733 | Py_INCREF(Py_None); resultobj = Py_None; | |
10734 | return resultobj; | |
10735 | fail: | |
10736 | return NULL; | |
10737 | } | |
10738 | ||
10739 | ||
10740 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10741 | PyObject *resultobj; | |
10742 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10743 | wxPoint *result; | |
10744 | PyObject * obj0 = 0 ; | |
10745 | char *kwnames[] = { | |
10746 | (char *) "self", NULL | |
10747 | }; | |
10748 | ||
10749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10752 | result = (wxPoint *)& ((arg1)->m_pos); |
10753 | ||
15afbcd0 | 10754 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
10755 | return resultobj; |
10756 | fail: | |
10757 | return NULL; | |
10758 | } | |
10759 | ||
10760 | ||
10761 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10762 | PyObject *resultobj; | |
10763 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10764 | int arg2 ; | |
10765 | PyObject * obj0 = 0 ; | |
994141e6 | 10766 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10767 | char *kwnames[] = { |
10768 | (char *) "self",(char *) "m_zPosition", NULL | |
10769 | }; | |
10770 | ||
994141e6 | 10771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10774 | arg2 = (int) SWIG_AsInt(obj1); | |
10775 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10776 | if (arg1) (arg1)->m_zPosition = arg2; |
10777 | ||
10778 | Py_INCREF(Py_None); resultobj = Py_None; | |
10779 | return resultobj; | |
10780 | fail: | |
10781 | return NULL; | |
10782 | } | |
10783 | ||
10784 | ||
10785 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10786 | PyObject *resultobj; | |
10787 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10788 | int result; | |
10789 | PyObject * obj0 = 0 ; | |
10790 | char *kwnames[] = { | |
10791 | (char *) "self", NULL | |
10792 | }; | |
10793 | ||
10794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10797 | result = (int) ((arg1)->m_zPosition); |
10798 | ||
15afbcd0 | 10799 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10800 | return resultobj; |
10801 | fail: | |
10802 | return NULL; | |
10803 | } | |
10804 | ||
10805 | ||
10806 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10807 | PyObject *resultobj; | |
10808 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10809 | int arg2 ; | |
10810 | PyObject * obj0 = 0 ; | |
994141e6 | 10811 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10812 | char *kwnames[] = { |
10813 | (char *) "self",(char *) "m_buttonChange", NULL | |
10814 | }; | |
10815 | ||
994141e6 | 10816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10819 | arg2 = (int) SWIG_AsInt(obj1); | |
10820 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10821 | if (arg1) (arg1)->m_buttonChange = arg2; |
10822 | ||
10823 | Py_INCREF(Py_None); resultobj = Py_None; | |
10824 | return resultobj; | |
10825 | fail: | |
10826 | return NULL; | |
10827 | } | |
10828 | ||
10829 | ||
10830 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10831 | PyObject *resultobj; | |
10832 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10833 | int result; | |
10834 | PyObject * obj0 = 0 ; | |
10835 | char *kwnames[] = { | |
10836 | (char *) "self", NULL | |
10837 | }; | |
10838 | ||
10839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10842 | result = (int) ((arg1)->m_buttonChange); |
10843 | ||
15afbcd0 | 10844 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10845 | return resultobj; |
10846 | fail: | |
10847 | return NULL; | |
10848 | } | |
10849 | ||
10850 | ||
10851 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10852 | PyObject *resultobj; | |
10853 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10854 | int arg2 ; | |
10855 | PyObject * obj0 = 0 ; | |
994141e6 | 10856 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10857 | char *kwnames[] = { |
10858 | (char *) "self",(char *) "m_buttonState", NULL | |
10859 | }; | |
10860 | ||
994141e6 | 10861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10864 | arg2 = (int) SWIG_AsInt(obj1); | |
10865 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10866 | if (arg1) (arg1)->m_buttonState = arg2; |
10867 | ||
10868 | Py_INCREF(Py_None); resultobj = Py_None; | |
10869 | return resultobj; | |
10870 | fail: | |
10871 | return NULL; | |
10872 | } | |
10873 | ||
10874 | ||
10875 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10876 | PyObject *resultobj; | |
10877 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10878 | int result; | |
10879 | PyObject * obj0 = 0 ; | |
10880 | char *kwnames[] = { | |
10881 | (char *) "self", NULL | |
10882 | }; | |
10883 | ||
10884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10887 | result = (int) ((arg1)->m_buttonState); |
10888 | ||
15afbcd0 | 10889 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10890 | return resultobj; |
10891 | fail: | |
10892 | return NULL; | |
10893 | } | |
10894 | ||
10895 | ||
10896 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10897 | PyObject *resultobj; | |
10898 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10899 | int arg2 ; | |
10900 | PyObject * obj0 = 0 ; | |
994141e6 | 10901 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10902 | char *kwnames[] = { |
10903 | (char *) "self",(char *) "m_joyStick", NULL | |
10904 | }; | |
10905 | ||
994141e6 | 10906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10909 | arg2 = (int) SWIG_AsInt(obj1); | |
10910 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10911 | if (arg1) (arg1)->m_joyStick = arg2; |
10912 | ||
10913 | Py_INCREF(Py_None); resultobj = Py_None; | |
10914 | return resultobj; | |
10915 | fail: | |
10916 | return NULL; | |
10917 | } | |
10918 | ||
10919 | ||
10920 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10921 | PyObject *resultobj; | |
10922 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10923 | int result; | |
10924 | PyObject * obj0 = 0 ; | |
10925 | char *kwnames[] = { | |
10926 | (char *) "self", NULL | |
10927 | }; | |
10928 | ||
10929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10932 | result = (int) ((arg1)->m_joyStick); |
10933 | ||
15afbcd0 | 10934 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10935 | return resultobj; |
10936 | fail: | |
10937 | return NULL; | |
10938 | } | |
10939 | ||
10940 | ||
10941 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10942 | PyObject *resultobj; | |
10943 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10944 | int arg2 = (int) 0 ; | |
10945 | int arg3 = (int) wxJOYSTICK1 ; | |
10946 | int arg4 = (int) 0 ; | |
10947 | wxJoystickEvent *result; | |
994141e6 RD |
10948 | PyObject * obj0 = 0 ; |
10949 | PyObject * obj1 = 0 ; | |
10950 | PyObject * obj2 = 0 ; | |
10951 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10952 | char *kwnames[] = { |
10953 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
10954 | }; | |
10955 | ||
994141e6 RD |
10956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
10957 | if (obj0) { | |
15afbcd0 RD |
10958 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
10959 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
10960 | } |
10961 | if (obj1) { | |
15afbcd0 RD |
10962 | arg2 = (int) SWIG_AsInt(obj1); |
10963 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
10964 | } |
10965 | if (obj2) { | |
15afbcd0 RD |
10966 | arg3 = (int) SWIG_AsInt(obj2); |
10967 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
10968 | } |
10969 | if (obj3) { | |
15afbcd0 RD |
10970 | arg4 = (int) SWIG_AsInt(obj3); |
10971 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10972 | } |
d14a1e28 RD |
10973 | { |
10974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10975 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
10976 | ||
10977 | wxPyEndAllowThreads(__tstate); | |
10978 | if (PyErr_Occurred()) SWIG_fail; | |
10979 | } | |
15afbcd0 | 10980 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); |
d14a1e28 RD |
10981 | return resultobj; |
10982 | fail: | |
10983 | return NULL; | |
10984 | } | |
10985 | ||
10986 | ||
10987 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10988 | PyObject *resultobj; | |
10989 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10990 | wxPoint result; | |
10991 | PyObject * obj0 = 0 ; | |
10992 | char *kwnames[] = { | |
10993 | (char *) "self", NULL | |
10994 | }; | |
10995 | ||
10996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10999 | { |
11000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11001 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
11002 | ||
11003 | wxPyEndAllowThreads(__tstate); | |
11004 | if (PyErr_Occurred()) SWIG_fail; | |
11005 | } | |
11006 | { | |
11007 | wxPoint * resultptr; | |
11008 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 11009 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
11010 | } |
11011 | return resultobj; | |
11012 | fail: | |
11013 | return NULL; | |
11014 | } | |
11015 | ||
11016 | ||
11017 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11018 | PyObject *resultobj; | |
11019 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11020 | int result; | |
11021 | PyObject * obj0 = 0 ; | |
11022 | char *kwnames[] = { | |
11023 | (char *) "self", NULL | |
11024 | }; | |
11025 | ||
11026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11029 | { |
11030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11031 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
11032 | ||
11033 | wxPyEndAllowThreads(__tstate); | |
11034 | if (PyErr_Occurred()) SWIG_fail; | |
11035 | } | |
15afbcd0 | 11036 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11037 | return resultobj; |
11038 | fail: | |
11039 | return NULL; | |
11040 | } | |
11041 | ||
11042 | ||
11043 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11044 | PyObject *resultobj; | |
11045 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11046 | int result; | |
11047 | PyObject * obj0 = 0 ; | |
11048 | char *kwnames[] = { | |
11049 | (char *) "self", NULL | |
11050 | }; | |
11051 | ||
11052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11055 | { |
11056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11057 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
11058 | ||
11059 | wxPyEndAllowThreads(__tstate); | |
11060 | if (PyErr_Occurred()) SWIG_fail; | |
11061 | } | |
15afbcd0 | 11062 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11063 | return resultobj; |
11064 | fail: | |
11065 | return NULL; | |
11066 | } | |
11067 | ||
11068 | ||
11069 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11070 | PyObject *resultobj; | |
11071 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11072 | int result; | |
11073 | PyObject * obj0 = 0 ; | |
11074 | char *kwnames[] = { | |
11075 | (char *) "self", NULL | |
11076 | }; | |
11077 | ||
11078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11081 | { |
11082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11083 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
11084 | ||
11085 | wxPyEndAllowThreads(__tstate); | |
11086 | if (PyErr_Occurred()) SWIG_fail; | |
11087 | } | |
15afbcd0 | 11088 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11089 | return resultobj; |
11090 | fail: | |
11091 | return NULL; | |
11092 | } | |
11093 | ||
11094 | ||
11095 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11096 | PyObject *resultobj; | |
11097 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11098 | int result; | |
11099 | PyObject * obj0 = 0 ; | |
11100 | char *kwnames[] = { | |
11101 | (char *) "self", NULL | |
11102 | }; | |
11103 | ||
11104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11107 | { |
11108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11109 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
11110 | ||
11111 | wxPyEndAllowThreads(__tstate); | |
11112 | if (PyErr_Occurred()) SWIG_fail; | |
11113 | } | |
15afbcd0 | 11114 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11115 | return resultobj; |
11116 | fail: | |
11117 | return NULL; | |
11118 | } | |
11119 | ||
11120 | ||
11121 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11122 | PyObject *resultobj; | |
11123 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11124 | int arg2 ; | |
11125 | PyObject * obj0 = 0 ; | |
994141e6 | 11126 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11127 | char *kwnames[] = { |
11128 | (char *) "self",(char *) "stick", NULL | |
11129 | }; | |
11130 | ||
994141e6 | 11131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11134 | arg2 = (int) SWIG_AsInt(obj1); | |
11135 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11136 | { |
11137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11138 | (arg1)->SetJoystick(arg2); | |
11139 | ||
11140 | wxPyEndAllowThreads(__tstate); | |
11141 | if (PyErr_Occurred()) SWIG_fail; | |
11142 | } | |
11143 | Py_INCREF(Py_None); resultobj = Py_None; | |
11144 | return resultobj; | |
11145 | fail: | |
11146 | return NULL; | |
11147 | } | |
11148 | ||
11149 | ||
11150 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11151 | PyObject *resultobj; | |
11152 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11153 | int arg2 ; | |
11154 | PyObject * obj0 = 0 ; | |
994141e6 | 11155 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11156 | char *kwnames[] = { |
11157 | (char *) "self",(char *) "state", NULL | |
11158 | }; | |
11159 | ||
994141e6 | 11160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11163 | arg2 = (int) SWIG_AsInt(obj1); | |
11164 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11165 | { |
11166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11167 | (arg1)->SetButtonState(arg2); | |
11168 | ||
11169 | wxPyEndAllowThreads(__tstate); | |
11170 | if (PyErr_Occurred()) SWIG_fail; | |
11171 | } | |
11172 | Py_INCREF(Py_None); resultobj = Py_None; | |
11173 | return resultobj; | |
11174 | fail: | |
11175 | return NULL; | |
11176 | } | |
11177 | ||
11178 | ||
11179 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11180 | PyObject *resultobj; | |
11181 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11182 | int arg2 ; | |
11183 | PyObject * obj0 = 0 ; | |
994141e6 | 11184 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11185 | char *kwnames[] = { |
11186 | (char *) "self",(char *) "change", NULL | |
11187 | }; | |
11188 | ||
994141e6 | 11189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11192 | arg2 = (int) SWIG_AsInt(obj1); | |
11193 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11194 | { |
11195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11196 | (arg1)->SetButtonChange(arg2); | |
11197 | ||
11198 | wxPyEndAllowThreads(__tstate); | |
11199 | if (PyErr_Occurred()) SWIG_fail; | |
11200 | } | |
11201 | Py_INCREF(Py_None); resultobj = Py_None; | |
11202 | return resultobj; | |
11203 | fail: | |
11204 | return NULL; | |
11205 | } | |
11206 | ||
11207 | ||
11208 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11209 | PyObject *resultobj; | |
11210 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11211 | wxPoint *arg2 = 0 ; | |
11212 | wxPoint temp2 ; | |
11213 | PyObject * obj0 = 0 ; | |
11214 | PyObject * obj1 = 0 ; | |
11215 | char *kwnames[] = { | |
11216 | (char *) "self",(char *) "pos", NULL | |
11217 | }; | |
11218 | ||
11219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11222 | { |
11223 | arg2 = &temp2; | |
11224 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11225 | } | |
11226 | { | |
11227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11228 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
11229 | ||
11230 | wxPyEndAllowThreads(__tstate); | |
11231 | if (PyErr_Occurred()) SWIG_fail; | |
11232 | } | |
11233 | Py_INCREF(Py_None); resultobj = Py_None; | |
11234 | return resultobj; | |
11235 | fail: | |
11236 | return NULL; | |
11237 | } | |
11238 | ||
11239 | ||
11240 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11241 | PyObject *resultobj; | |
11242 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11243 | int arg2 ; | |
11244 | PyObject * obj0 = 0 ; | |
994141e6 | 11245 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11246 | char *kwnames[] = { |
11247 | (char *) "self",(char *) "zPos", NULL | |
11248 | }; | |
11249 | ||
994141e6 | 11250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11253 | arg2 = (int) SWIG_AsInt(obj1); | |
11254 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11255 | { |
11256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11257 | (arg1)->SetZPosition(arg2); | |
11258 | ||
11259 | wxPyEndAllowThreads(__tstate); | |
11260 | if (PyErr_Occurred()) SWIG_fail; | |
11261 | } | |
11262 | Py_INCREF(Py_None); resultobj = Py_None; | |
11263 | return resultobj; | |
11264 | fail: | |
11265 | return NULL; | |
11266 | } | |
11267 | ||
11268 | ||
11269 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11270 | PyObject *resultobj; | |
11271 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11272 | bool result; | |
11273 | PyObject * obj0 = 0 ; | |
11274 | char *kwnames[] = { | |
11275 | (char *) "self", NULL | |
11276 | }; | |
11277 | ||
11278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11281 | { |
11282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11283 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
11284 | ||
11285 | wxPyEndAllowThreads(__tstate); | |
11286 | if (PyErr_Occurred()) SWIG_fail; | |
11287 | } | |
4f89f6a3 RD |
11288 | { |
11289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11290 | } | |
d14a1e28 RD |
11291 | return resultobj; |
11292 | fail: | |
11293 | return NULL; | |
11294 | } | |
11295 | ||
11296 | ||
11297 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11298 | PyObject *resultobj; | |
11299 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11300 | bool result; | |
11301 | PyObject * obj0 = 0 ; | |
11302 | char *kwnames[] = { | |
11303 | (char *) "self", NULL | |
11304 | }; | |
11305 | ||
11306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11309 | { |
11310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11311 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
11312 | ||
11313 | wxPyEndAllowThreads(__tstate); | |
11314 | if (PyErr_Occurred()) SWIG_fail; | |
11315 | } | |
4f89f6a3 RD |
11316 | { |
11317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11318 | } | |
d14a1e28 RD |
11319 | return resultobj; |
11320 | fail: | |
11321 | return NULL; | |
11322 | } | |
11323 | ||
11324 | ||
11325 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11326 | PyObject *resultobj; | |
11327 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11328 | bool result; | |
11329 | PyObject * obj0 = 0 ; | |
11330 | char *kwnames[] = { | |
11331 | (char *) "self", NULL | |
11332 | }; | |
11333 | ||
11334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11337 | { |
11338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11339 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
11340 | ||
11341 | wxPyEndAllowThreads(__tstate); | |
11342 | if (PyErr_Occurred()) SWIG_fail; | |
11343 | } | |
4f89f6a3 RD |
11344 | { |
11345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11346 | } | |
d14a1e28 RD |
11347 | return resultobj; |
11348 | fail: | |
11349 | return NULL; | |
11350 | } | |
11351 | ||
11352 | ||
11353 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11354 | PyObject *resultobj; | |
11355 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11356 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11357 | bool result; | |
11358 | PyObject * obj0 = 0 ; | |
994141e6 | 11359 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11360 | char *kwnames[] = { |
11361 | (char *) "self",(char *) "but", NULL | |
11362 | }; | |
11363 | ||
994141e6 | 11364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11367 | if (obj1) { |
15afbcd0 RD |
11368 | arg2 = (int) SWIG_AsInt(obj1); |
11369 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11370 | } |
d14a1e28 RD |
11371 | { |
11372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11373 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11374 | ||
11375 | wxPyEndAllowThreads(__tstate); | |
11376 | if (PyErr_Occurred()) SWIG_fail; | |
11377 | } | |
4f89f6a3 RD |
11378 | { |
11379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11380 | } | |
d14a1e28 RD |
11381 | return resultobj; |
11382 | fail: | |
11383 | return NULL; | |
11384 | } | |
11385 | ||
11386 | ||
11387 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11388 | PyObject *resultobj; | |
11389 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11390 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11391 | bool result; | |
11392 | PyObject * obj0 = 0 ; | |
994141e6 | 11393 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11394 | char *kwnames[] = { |
11395 | (char *) "self",(char *) "but", NULL | |
11396 | }; | |
11397 | ||
994141e6 | 11398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11401 | if (obj1) { |
15afbcd0 RD |
11402 | arg2 = (int) SWIG_AsInt(obj1); |
11403 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11404 | } |
d14a1e28 RD |
11405 | { |
11406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11407 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
11408 | ||
11409 | wxPyEndAllowThreads(__tstate); | |
11410 | if (PyErr_Occurred()) SWIG_fail; | |
11411 | } | |
4f89f6a3 RD |
11412 | { |
11413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11414 | } | |
d14a1e28 RD |
11415 | return resultobj; |
11416 | fail: | |
11417 | return NULL; | |
11418 | } | |
11419 | ||
11420 | ||
11421 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11422 | PyObject *resultobj; | |
11423 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11424 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11425 | bool result; | |
11426 | PyObject * obj0 = 0 ; | |
994141e6 | 11427 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11428 | char *kwnames[] = { |
11429 | (char *) "self",(char *) "but", NULL | |
11430 | }; | |
11431 | ||
994141e6 | 11432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11435 | if (obj1) { |
15afbcd0 RD |
11436 | arg2 = (int) SWIG_AsInt(obj1); |
11437 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11438 | } |
d14a1e28 RD |
11439 | { |
11440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11441 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
11442 | ||
11443 | wxPyEndAllowThreads(__tstate); | |
11444 | if (PyErr_Occurred()) SWIG_fail; | |
11445 | } | |
4f89f6a3 RD |
11446 | { |
11447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11448 | } | |
d14a1e28 RD |
11449 | return resultobj; |
11450 | fail: | |
11451 | return NULL; | |
11452 | } | |
11453 | ||
11454 | ||
11455 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
11456 | PyObject *obj; | |
11457 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11458 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
11459 | Py_INCREF(obj); | |
11460 | return Py_BuildValue((char *)""); | |
11461 | } | |
36cadbf7 | 11462 | static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11463 | PyObject *resultobj; |
36cadbf7 RD |
11464 | wxString const &arg1_defvalue = wxPyEmptyString ; |
11465 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
4d5c3d91 | 11466 | wxSound *result; |
e811c8ce | 11467 | bool temp1 = False ; |
d14a1e28 | 11468 | PyObject * obj0 = 0 ; |
36cadbf7 RD |
11469 | char *kwnames[] = { |
11470 | (char *) "fileName", NULL | |
11471 | }; | |
d14a1e28 | 11472 | |
36cadbf7 RD |
11473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail; |
11474 | if (obj0) { | |
11475 | { | |
11476 | arg1 = wxString_in_helper(obj0); | |
11477 | if (arg1 == NULL) SWIG_fail; | |
11478 | temp1 = True; | |
11479 | } | |
d14a1e28 RD |
11480 | } |
11481 | { | |
11482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36cadbf7 | 11483 | result = (wxSound *)new_wxSound((wxString const &)*arg1); |
d14a1e28 RD |
11484 | |
11485 | wxPyEndAllowThreads(__tstate); | |
11486 | if (PyErr_Occurred()) SWIG_fail; | |
11487 | } | |
15afbcd0 | 11488 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
11489 | { |
11490 | if (temp1) | |
11491 | delete arg1; | |
11492 | } | |
11493 | return resultobj; | |
11494 | fail: | |
11495 | { | |
11496 | if (temp1) | |
11497 | delete arg1; | |
11498 | } | |
11499 | return NULL; | |
11500 | } | |
11501 | ||
11502 | ||
36cadbf7 | 11503 | static PyObject *_wrap_new_SoundFromData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11504 | PyObject *resultobj; |
36cadbf7 | 11505 | PyObject *arg1 = (PyObject *) 0 ; |
4d5c3d91 | 11506 | wxSound *result; |
d14a1e28 | 11507 | PyObject * obj0 = 0 ; |
36cadbf7 RD |
11508 | char *kwnames[] = { |
11509 | (char *) "data", NULL | |
11510 | }; | |
d14a1e28 | 11511 | |
36cadbf7 RD |
11512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail; |
11513 | arg1 = obj0; | |
d14a1e28 RD |
11514 | { |
11515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36cadbf7 | 11516 | result = (wxSound *)new_wxSound(arg1); |
d14a1e28 RD |
11517 | |
11518 | wxPyEndAllowThreads(__tstate); | |
11519 | if (PyErr_Occurred()) SWIG_fail; | |
11520 | } | |
15afbcd0 | 11521 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
11522 | return resultobj; |
11523 | fail: | |
4d5c3d91 RD |
11524 | return NULL; |
11525 | } | |
11526 | ||
11527 | ||
4d5c3d91 | 11528 | static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11529 | PyObject *resultobj; |
4d5c3d91 | 11530 | wxSound *arg1 = (wxSound *) 0 ; |
d14a1e28 RD |
11531 | PyObject * obj0 = 0 ; |
11532 | char *kwnames[] = { | |
11533 | (char *) "self", NULL | |
11534 | }; | |
11535 | ||
4d5c3d91 | 11536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
11537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11539 | { |
11540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11541 | delete arg1; | |
11542 | ||
11543 | wxPyEndAllowThreads(__tstate); | |
11544 | if (PyErr_Occurred()) SWIG_fail; | |
11545 | } | |
11546 | Py_INCREF(Py_None); resultobj = Py_None; | |
11547 | return resultobj; | |
11548 | fail: | |
11549 | return NULL; | |
11550 | } | |
11551 | ||
11552 | ||
36cadbf7 | 11553 | static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11554 | PyObject *resultobj; |
4d5c3d91 RD |
11555 | wxSound *arg1 = (wxSound *) 0 ; |
11556 | wxString *arg2 = 0 ; | |
d14a1e28 | 11557 | bool result; |
4d5c3d91 | 11558 | bool temp2 = False ; |
d14a1e28 | 11559 | PyObject * obj0 = 0 ; |
4d5c3d91 | 11560 | PyObject * obj1 = 0 ; |
36cadbf7 RD |
11561 | char *kwnames[] = { |
11562 | (char *) "self",(char *) "fileName", NULL | |
11563 | }; | |
d14a1e28 | 11564 | |
36cadbf7 | 11565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4d5c3d91 RD |
11568 | { |
11569 | arg2 = wxString_in_helper(obj1); | |
11570 | if (arg2 == NULL) SWIG_fail; | |
11571 | temp2 = True; | |
11572 | } | |
d14a1e28 RD |
11573 | { |
11574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36cadbf7 | 11575 | result = (bool)(arg1)->Create((wxString const &)*arg2); |
d14a1e28 RD |
11576 | |
11577 | wxPyEndAllowThreads(__tstate); | |
11578 | if (PyErr_Occurred()) SWIG_fail; | |
11579 | } | |
4f89f6a3 RD |
11580 | { |
11581 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11582 | } | |
4d5c3d91 RD |
11583 | { |
11584 | if (temp2) | |
11585 | delete arg2; | |
11586 | } | |
d14a1e28 RD |
11587 | return resultobj; |
11588 | fail: | |
4d5c3d91 RD |
11589 | { |
11590 | if (temp2) | |
11591 | delete arg2; | |
11592 | } | |
d14a1e28 RD |
11593 | return NULL; |
11594 | } | |
11595 | ||
11596 | ||
36cadbf7 | 11597 | static PyObject *_wrap_Sound_CreateFromData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11598 | PyObject *resultobj; |
4d5c3d91 | 11599 | wxSound *arg1 = (wxSound *) 0 ; |
36cadbf7 | 11600 | PyObject *arg2 = (PyObject *) 0 ; |
d14a1e28 RD |
11601 | bool result; |
11602 | PyObject * obj0 = 0 ; | |
11603 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
11604 | char *kwnames[] = { |
11605 | (char *) "self",(char *) "data", NULL | |
11606 | }; | |
4d5c3d91 | 11607 | |
36cadbf7 | 11608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36cadbf7 | 11611 | arg2 = obj1; |
4d5c3d91 RD |
11612 | { |
11613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36cadbf7 | 11614 | result = (bool)wxSound_CreateFromData(arg1,arg2); |
4d5c3d91 RD |
11615 | |
11616 | wxPyEndAllowThreads(__tstate); | |
11617 | if (PyErr_Occurred()) SWIG_fail; | |
11618 | } | |
4f89f6a3 RD |
11619 | { |
11620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11621 | } | |
4d5c3d91 RD |
11622 | return resultobj; |
11623 | fail: | |
11624 | return NULL; | |
11625 | } | |
11626 | ||
11627 | ||
4d5c3d91 RD |
11628 | static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
11629 | PyObject *resultobj; | |
11630 | wxSound *arg1 = (wxSound *) 0 ; | |
11631 | bool result; | |
11632 | PyObject * obj0 = 0 ; | |
d14a1e28 | 11633 | char *kwnames[] = { |
4d5c3d91 | 11634 | (char *) "self", NULL |
d14a1e28 RD |
11635 | }; |
11636 | ||
4d5c3d91 | 11637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
11638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4d5c3d91 RD |
11640 | { |
11641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11642 | result = (bool)(arg1)->IsOk(); | |
11643 | ||
11644 | wxPyEndAllowThreads(__tstate); | |
11645 | if (PyErr_Occurred()) SWIG_fail; | |
11646 | } | |
4f89f6a3 RD |
11647 | { |
11648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11649 | } | |
4d5c3d91 RD |
11650 | return resultobj; |
11651 | fail: | |
11652 | return NULL; | |
11653 | } | |
11654 | ||
11655 | ||
36cadbf7 | 11656 | static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args, PyObject *kwargs) { |
4d5c3d91 RD |
11657 | PyObject *resultobj; |
11658 | wxSound *arg1 = (wxSound *) 0 ; | |
11659 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11660 | bool result; | |
11661 | PyObject * obj0 = 0 ; | |
11662 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
11663 | char *kwnames[] = { |
11664 | (char *) "self",(char *) "flags", NULL | |
11665 | }; | |
4d5c3d91 | 11666 | |
36cadbf7 | 11667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11670 | if (obj1) { |
15afbcd0 RD |
11671 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); |
11672 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11673 | } |
4d5c3d91 RD |
11674 | { |
11675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11676 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
11677 | ||
11678 | wxPyEndAllowThreads(__tstate); | |
11679 | if (PyErr_Occurred()) SWIG_fail; | |
11680 | } | |
4f89f6a3 RD |
11681 | { |
11682 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11683 | } | |
4d5c3d91 RD |
11684 | return resultobj; |
11685 | fail: | |
11686 | return NULL; | |
11687 | } | |
11688 | ||
11689 | ||
36cadbf7 | 11690 | static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args, PyObject *kwargs) { |
4d5c3d91 RD |
11691 | PyObject *resultobj; |
11692 | wxString *arg1 = 0 ; | |
11693 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11694 | bool result; | |
11695 | bool temp1 = False ; | |
11696 | PyObject * obj0 = 0 ; | |
11697 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
11698 | char *kwnames[] = { |
11699 | (char *) "filename",(char *) "flags", NULL | |
11700 | }; | |
4d5c3d91 | 11701 | |
36cadbf7 | 11702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail; |
4d5c3d91 RD |
11703 | { |
11704 | arg1 = wxString_in_helper(obj0); | |
11705 | if (arg1 == NULL) SWIG_fail; | |
11706 | temp1 = True; | |
11707 | } | |
11708 | if (obj1) { | |
15afbcd0 RD |
11709 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); |
11710 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11711 | } |
11712 | { | |
11713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 11714 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); |
d14a1e28 RD |
11715 | |
11716 | wxPyEndAllowThreads(__tstate); | |
11717 | if (PyErr_Occurred()) SWIG_fail; | |
11718 | } | |
4f89f6a3 RD |
11719 | { |
11720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11721 | } | |
4d5c3d91 RD |
11722 | { |
11723 | if (temp1) | |
11724 | delete arg1; | |
11725 | } | |
d14a1e28 RD |
11726 | return resultobj; |
11727 | fail: | |
4d5c3d91 RD |
11728 | { |
11729 | if (temp1) | |
11730 | delete arg1; | |
11731 | } | |
d14a1e28 RD |
11732 | return NULL; |
11733 | } | |
11734 | ||
11735 | ||
4d5c3d91 RD |
11736 | static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { |
11737 | PyObject *resultobj; | |
11738 | char *kwnames[] = { | |
11739 | NULL | |
11740 | }; | |
11741 | ||
11742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
11743 | { | |
11744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11745 | wxSound::Stop(); | |
11746 | ||
11747 | wxPyEndAllowThreads(__tstate); | |
11748 | if (PyErr_Occurred()) SWIG_fail; | |
11749 | } | |
11750 | Py_INCREF(Py_None); resultobj = Py_None; | |
11751 | return resultobj; | |
11752 | fail: | |
11753 | return NULL; | |
11754 | } | |
11755 | ||
11756 | ||
11757 | static PyObject * Sound_swigregister(PyObject *self, PyObject *args) { | |
d14a1e28 RD |
11758 | PyObject *obj; |
11759 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4d5c3d91 | 11760 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); |
d14a1e28 RD |
11761 | Py_INCREF(obj); |
11762 | return Py_BuildValue((char *)""); | |
11763 | } | |
11764 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11765 | PyObject *resultobj; | |
11766 | wxString *arg1 = 0 ; | |
11767 | wxString *arg2 = 0 ; | |
11768 | wxString *arg3 = 0 ; | |
11769 | wxString *arg4 = 0 ; | |
11770 | wxFileTypeInfo *result; | |
e811c8ce RD |
11771 | bool temp1 = False ; |
11772 | bool temp2 = False ; | |
11773 | bool temp3 = False ; | |
11774 | bool temp4 = False ; | |
d14a1e28 RD |
11775 | PyObject * obj0 = 0 ; |
11776 | PyObject * obj1 = 0 ; | |
11777 | PyObject * obj2 = 0 ; | |
11778 | PyObject * obj3 = 0 ; | |
11779 | char *kwnames[] = { | |
11780 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
11781 | }; | |
11782 | ||
11783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11784 | { | |
11785 | arg1 = wxString_in_helper(obj0); | |
11786 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 11787 | temp1 = True; |
d14a1e28 RD |
11788 | } |
11789 | { | |
11790 | arg2 = wxString_in_helper(obj1); | |
11791 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11792 | temp2 = True; |
d14a1e28 RD |
11793 | } |
11794 | { | |
11795 | arg3 = wxString_in_helper(obj2); | |
11796 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11797 | temp3 = True; |
d14a1e28 RD |
11798 | } |
11799 | { | |
11800 | arg4 = wxString_in_helper(obj3); | |
11801 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 11802 | temp4 = True; |
d14a1e28 RD |
11803 | } |
11804 | { | |
11805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11806 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
11807 | ||
11808 | wxPyEndAllowThreads(__tstate); | |
11809 | if (PyErr_Occurred()) SWIG_fail; | |
11810 | } | |
15afbcd0 | 11811 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 RD |
11812 | { |
11813 | if (temp1) | |
11814 | delete arg1; | |
11815 | } | |
11816 | { | |
11817 | if (temp2) | |
11818 | delete arg2; | |
11819 | } | |
11820 | { | |
11821 | if (temp3) | |
11822 | delete arg3; | |
11823 | } | |
11824 | { | |
11825 | if (temp4) | |
11826 | delete arg4; | |
11827 | } | |
11828 | return resultobj; | |
11829 | fail: | |
11830 | { | |
11831 | if (temp1) | |
11832 | delete arg1; | |
11833 | } | |
11834 | { | |
11835 | if (temp2) | |
11836 | delete arg2; | |
11837 | } | |
11838 | { | |
11839 | if (temp3) | |
11840 | delete arg3; | |
11841 | } | |
11842 | { | |
11843 | if (temp4) | |
11844 | delete arg4; | |
11845 | } | |
11846 | return NULL; | |
11847 | } | |
11848 | ||
11849 | ||
11850 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11851 | PyObject *resultobj; | |
11852 | wxArrayString *arg1 = 0 ; | |
11853 | wxFileTypeInfo *result; | |
3adfb63b | 11854 | bool temp1 = False ; |
d14a1e28 RD |
11855 | PyObject * obj0 = 0 ; |
11856 | char *kwnames[] = { | |
11857 | (char *) "sArray", NULL | |
11858 | }; | |
11859 | ||
11860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
11861 | { | |
11862 | if (! PySequence_Check(obj0)) { | |
11863 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11864 | SWIG_fail; | |
11865 | } | |
11866 | arg1 = new wxArrayString; | |
3adfb63b | 11867 | temp1 = True; |
d14a1e28 RD |
11868 | int i, len=PySequence_Length(obj0); |
11869 | for (i=0; i<len; i++) { | |
11870 | PyObject* item = PySequence_GetItem(obj0, i); | |
11871 | #if wxUSE_UNICODE | |
11872 | PyObject* str = PyObject_Unicode(item); | |
11873 | #else | |
11874 | PyObject* str = PyObject_Str(item); | |
11875 | #endif | |
74a57fcd | 11876 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11877 | arg1->Add(Py2wxString(str)); |
11878 | Py_DECREF(item); | |
11879 | Py_DECREF(str); | |
11880 | } | |
11881 | } | |
11882 | { | |
11883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11884 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
11885 | ||
11886 | wxPyEndAllowThreads(__tstate); | |
11887 | if (PyErr_Occurred()) SWIG_fail; | |
11888 | } | |
15afbcd0 | 11889 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 | 11890 | { |
3adfb63b | 11891 | if (temp1) delete arg1; |
d14a1e28 RD |
11892 | } |
11893 | return resultobj; | |
11894 | fail: | |
11895 | { | |
3adfb63b | 11896 | if (temp1) delete arg1; |
d14a1e28 RD |
11897 | } |
11898 | return NULL; | |
11899 | } | |
11900 | ||
11901 | ||
11902 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11903 | PyObject *resultobj; | |
11904 | wxFileTypeInfo *result; | |
11905 | char *kwnames[] = { | |
11906 | NULL | |
11907 | }; | |
11908 | ||
11909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
11910 | { | |
11911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11912 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
11913 | ||
11914 | wxPyEndAllowThreads(__tstate); | |
11915 | if (PyErr_Occurred()) SWIG_fail; | |
11916 | } | |
15afbcd0 | 11917 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 RD |
11918 | return resultobj; |
11919 | fail: | |
11920 | return NULL; | |
11921 | } | |
11922 | ||
11923 | ||
11924 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11925 | PyObject *resultobj; | |
11926 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11927 | bool result; | |
11928 | PyObject * obj0 = 0 ; | |
11929 | char *kwnames[] = { | |
11930 | (char *) "self", NULL | |
11931 | }; | |
11932 | ||
11933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
11935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11936 | { |
11937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11938 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
11939 | ||
11940 | wxPyEndAllowThreads(__tstate); | |
11941 | if (PyErr_Occurred()) SWIG_fail; | |
11942 | } | |
4f89f6a3 RD |
11943 | { |
11944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11945 | } | |
d14a1e28 RD |
11946 | return resultobj; |
11947 | fail: | |
11948 | return NULL; | |
11949 | } | |
11950 | ||
11951 | ||
11952 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11953 | PyObject *resultobj; | |
11954 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11955 | wxString *arg2 = 0 ; | |
11956 | int arg3 = (int) 0 ; | |
e811c8ce | 11957 | bool temp2 = False ; |
d14a1e28 RD |
11958 | PyObject * obj0 = 0 ; |
11959 | PyObject * obj1 = 0 ; | |
994141e6 | 11960 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11961 | char *kwnames[] = { |
11962 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
11963 | }; | |
11964 | ||
994141e6 | 11965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
11967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11968 | { |
11969 | arg2 = wxString_in_helper(obj1); | |
11970 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11971 | temp2 = True; |
d14a1e28 | 11972 | } |
994141e6 | 11973 | if (obj2) { |
15afbcd0 RD |
11974 | arg3 = (int) SWIG_AsInt(obj2); |
11975 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11976 | } |
d14a1e28 RD |
11977 | { |
11978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11979 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
11980 | ||
11981 | wxPyEndAllowThreads(__tstate); | |
11982 | if (PyErr_Occurred()) SWIG_fail; | |
11983 | } | |
11984 | Py_INCREF(Py_None); resultobj = Py_None; | |
11985 | { | |
11986 | if (temp2) | |
11987 | delete arg2; | |
11988 | } | |
11989 | return resultobj; | |
11990 | fail: | |
11991 | { | |
11992 | if (temp2) | |
11993 | delete arg2; | |
11994 | } | |
11995 | return NULL; | |
11996 | } | |
11997 | ||
11998 | ||
11999 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12000 | PyObject *resultobj; | |
12001 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12002 | wxString *arg2 = 0 ; | |
e811c8ce | 12003 | bool temp2 = False ; |
d14a1e28 RD |
12004 | PyObject * obj0 = 0 ; |
12005 | PyObject * obj1 = 0 ; | |
12006 | char *kwnames[] = { | |
12007 | (char *) "self",(char *) "shortDesc", NULL | |
12008 | }; | |
12009 | ||
12010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) 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 | arg2 = wxString_in_helper(obj1); | |
12015 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12016 | temp2 = True; |
d14a1e28 RD |
12017 | } |
12018 | { | |
12019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12020 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
12021 | ||
12022 | wxPyEndAllowThreads(__tstate); | |
12023 | if (PyErr_Occurred()) SWIG_fail; | |
12024 | } | |
12025 | Py_INCREF(Py_None); resultobj = Py_None; | |
12026 | { | |
12027 | if (temp2) | |
12028 | delete arg2; | |
12029 | } | |
12030 | return resultobj; | |
12031 | fail: | |
12032 | { | |
12033 | if (temp2) | |
12034 | delete arg2; | |
12035 | } | |
12036 | return NULL; | |
12037 | } | |
12038 | ||
12039 | ||
12040 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12041 | PyObject *resultobj; | |
12042 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12043 | wxString *result; | |
12044 | PyObject * obj0 = 0 ; | |
12045 | char *kwnames[] = { | |
12046 | (char *) "self", NULL | |
12047 | }; | |
12048 | ||
12049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12052 | { |
12053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12054 | { | |
12055 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
12056 | result = (wxString *) &_result_ref; | |
12057 | } | |
12058 | ||
12059 | wxPyEndAllowThreads(__tstate); | |
12060 | if (PyErr_Occurred()) SWIG_fail; | |
12061 | } | |
cc6dd355 RD |
12062 | { |
12063 | #if wxUSE_UNICODE | |
12064 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12065 | #else | |
12066 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12067 | #endif | |
12068 | } | |
d14a1e28 RD |
12069 | return resultobj; |
12070 | fail: | |
12071 | return NULL; | |
12072 | } | |
12073 | ||
12074 | ||
12075 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12076 | PyObject *resultobj; | |
12077 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12078 | wxString *result; | |
12079 | PyObject * obj0 = 0 ; | |
12080 | char *kwnames[] = { | |
12081 | (char *) "self", NULL | |
12082 | }; | |
12083 | ||
12084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12087 | { |
12088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12089 | { | |
12090 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
12091 | result = (wxString *) &_result_ref; | |
12092 | } | |
12093 | ||
12094 | wxPyEndAllowThreads(__tstate); | |
12095 | if (PyErr_Occurred()) SWIG_fail; | |
12096 | } | |
cc6dd355 RD |
12097 | { |
12098 | #if wxUSE_UNICODE | |
12099 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12100 | #else | |
12101 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12102 | #endif | |
12103 | } | |
d14a1e28 RD |
12104 | return resultobj; |
12105 | fail: | |
12106 | return NULL; | |
12107 | } | |
12108 | ||
12109 | ||
12110 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12111 | PyObject *resultobj; | |
12112 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12113 | wxString *result; | |
12114 | PyObject * obj0 = 0 ; | |
12115 | char *kwnames[] = { | |
12116 | (char *) "self", NULL | |
12117 | }; | |
12118 | ||
12119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12122 | { |
12123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12124 | { | |
12125 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
12126 | result = (wxString *) &_result_ref; | |
12127 | } | |
12128 | ||
12129 | wxPyEndAllowThreads(__tstate); | |
12130 | if (PyErr_Occurred()) SWIG_fail; | |
12131 | } | |
cc6dd355 RD |
12132 | { |
12133 | #if wxUSE_UNICODE | |
12134 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12135 | #else | |
12136 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12137 | #endif | |
12138 | } | |
d14a1e28 RD |
12139 | return resultobj; |
12140 | fail: | |
12141 | return NULL; | |
12142 | } | |
12143 | ||
12144 | ||
12145 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12146 | PyObject *resultobj; | |
12147 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12148 | wxString *result; | |
12149 | PyObject * obj0 = 0 ; | |
12150 | char *kwnames[] = { | |
12151 | (char *) "self", NULL | |
12152 | }; | |
12153 | ||
12154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12157 | { |
12158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12159 | { | |
12160 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
12161 | result = (wxString *) &_result_ref; | |
12162 | } | |
12163 | ||
12164 | wxPyEndAllowThreads(__tstate); | |
12165 | if (PyErr_Occurred()) SWIG_fail; | |
12166 | } | |
cc6dd355 RD |
12167 | { |
12168 | #if wxUSE_UNICODE | |
12169 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12170 | #else | |
12171 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12172 | #endif | |
12173 | } | |
d14a1e28 RD |
12174 | return resultobj; |
12175 | fail: | |
12176 | return NULL; | |
12177 | } | |
12178 | ||
12179 | ||
12180 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12181 | PyObject *resultobj; | |
12182 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12183 | wxString *result; | |
12184 | PyObject * obj0 = 0 ; | |
12185 | char *kwnames[] = { | |
12186 | (char *) "self", NULL | |
12187 | }; | |
12188 | ||
12189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12192 | { |
12193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12194 | { | |
12195 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
12196 | result = (wxString *) &_result_ref; | |
12197 | } | |
12198 | ||
12199 | wxPyEndAllowThreads(__tstate); | |
12200 | if (PyErr_Occurred()) SWIG_fail; | |
12201 | } | |
cc6dd355 RD |
12202 | { |
12203 | #if wxUSE_UNICODE | |
12204 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12205 | #else | |
12206 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12207 | #endif | |
12208 | } | |
d14a1e28 RD |
12209 | return resultobj; |
12210 | fail: | |
12211 | return NULL; | |
12212 | } | |
12213 | ||
12214 | ||
12215 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12216 | PyObject *resultobj; | |
12217 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12218 | wxArrayString *result; | |
12219 | PyObject * obj0 = 0 ; | |
12220 | char *kwnames[] = { | |
12221 | (char *) "self", NULL | |
12222 | }; | |
12223 | ||
12224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12227 | { |
12228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12229 | { | |
12230 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
12231 | result = (wxArrayString *) &_result_ref; | |
12232 | } | |
12233 | ||
12234 | wxPyEndAllowThreads(__tstate); | |
12235 | if (PyErr_Occurred()) SWIG_fail; | |
12236 | } | |
12237 | { | |
12238 | resultobj = wxArrayString2PyList_helper(*result); | |
12239 | } | |
12240 | return resultobj; | |
12241 | fail: | |
12242 | return NULL; | |
12243 | } | |
12244 | ||
12245 | ||
12246 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12247 | PyObject *resultobj; | |
12248 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12249 | int result; | |
12250 | PyObject * obj0 = 0 ; | |
12251 | char *kwnames[] = { | |
12252 | (char *) "self", NULL | |
12253 | }; | |
12254 | ||
12255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12258 | { |
12259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12260 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
12261 | ||
12262 | wxPyEndAllowThreads(__tstate); | |
12263 | if (PyErr_Occurred()) SWIG_fail; | |
12264 | } | |
15afbcd0 | 12265 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12266 | return resultobj; |
12267 | fail: | |
12268 | return NULL; | |
12269 | } | |
12270 | ||
12271 | ||
12272 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12273 | PyObject *resultobj; | |
12274 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12275 | wxString *result; | |
12276 | PyObject * obj0 = 0 ; | |
12277 | char *kwnames[] = { | |
12278 | (char *) "self", NULL | |
12279 | }; | |
12280 | ||
12281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12284 | { |
12285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12286 | { | |
12287 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
12288 | result = (wxString *) &_result_ref; | |
12289 | } | |
12290 | ||
12291 | wxPyEndAllowThreads(__tstate); | |
12292 | if (PyErr_Occurred()) SWIG_fail; | |
12293 | } | |
cc6dd355 RD |
12294 | { |
12295 | #if wxUSE_UNICODE | |
12296 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12297 | #else | |
12298 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12299 | #endif | |
12300 | } | |
d14a1e28 RD |
12301 | return resultobj; |
12302 | fail: | |
12303 | return NULL; | |
12304 | } | |
12305 | ||
12306 | ||
12307 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12308 | PyObject *resultobj; | |
12309 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12310 | int result; | |
12311 | PyObject * obj0 = 0 ; | |
12312 | char *kwnames[] = { | |
12313 | (char *) "self", NULL | |
12314 | }; | |
12315 | ||
12316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12319 | { |
12320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12321 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
12322 | ||
12323 | wxPyEndAllowThreads(__tstate); | |
12324 | if (PyErr_Occurred()) SWIG_fail; | |
12325 | } | |
15afbcd0 | 12326 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12327 | return resultobj; |
12328 | fail: | |
12329 | return NULL; | |
12330 | } | |
12331 | ||
12332 | ||
12333 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
12334 | PyObject *obj; | |
12335 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12336 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
12337 | Py_INCREF(obj); | |
12338 | return Py_BuildValue((char *)""); | |
12339 | } | |
12340 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12341 | PyObject *resultobj; | |
12342 | wxFileTypeInfo *arg1 = 0 ; | |
12343 | wxFileType *result; | |
12344 | PyObject * obj0 = 0 ; | |
12345 | char *kwnames[] = { | |
12346 | (char *) "ftInfo", NULL | |
12347 | }; | |
12348 | ||
12349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12351 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12352 | SWIG_fail; | |
d14a1e28 | 12353 | if (arg1 == NULL) { |
15afbcd0 RD |
12354 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12355 | SWIG_fail; | |
d14a1e28 RD |
12356 | } |
12357 | { | |
12358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12359 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
12360 | ||
12361 | wxPyEndAllowThreads(__tstate); | |
12362 | if (PyErr_Occurred()) SWIG_fail; | |
12363 | } | |
15afbcd0 | 12364 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
12365 | return resultobj; |
12366 | fail: | |
12367 | return NULL; | |
12368 | } | |
12369 | ||
12370 | ||
12371 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12372 | PyObject *resultobj; | |
12373 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12374 | PyObject * obj0 = 0 ; | |
12375 | char *kwnames[] = { | |
12376 | (char *) "self", NULL | |
12377 | }; | |
12378 | ||
12379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12382 | { |
12383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12384 | delete arg1; | |
12385 | ||
12386 | wxPyEndAllowThreads(__tstate); | |
12387 | if (PyErr_Occurred()) SWIG_fail; | |
12388 | } | |
12389 | Py_INCREF(Py_None); resultobj = Py_None; | |
12390 | return resultobj; | |
12391 | fail: | |
12392 | return NULL; | |
12393 | } | |
12394 | ||
12395 | ||
12396 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12397 | PyObject *resultobj; | |
12398 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12399 | PyObject *result; | |
12400 | PyObject * obj0 = 0 ; | |
12401 | char *kwnames[] = { | |
12402 | (char *) "self", NULL | |
12403 | }; | |
12404 | ||
12405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12408 | { |
12409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12410 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
12411 | ||
12412 | wxPyEndAllowThreads(__tstate); | |
12413 | if (PyErr_Occurred()) SWIG_fail; | |
12414 | } | |
12415 | resultobj = result; | |
12416 | return resultobj; | |
12417 | fail: | |
12418 | return NULL; | |
12419 | } | |
12420 | ||
12421 | ||
12422 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12423 | PyObject *resultobj; | |
12424 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12425 | PyObject *result; | |
12426 | PyObject * obj0 = 0 ; | |
12427 | char *kwnames[] = { | |
12428 | (char *) "self", NULL | |
12429 | }; | |
12430 | ||
12431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12434 | { |
12435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12436 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
12437 | ||
12438 | wxPyEndAllowThreads(__tstate); | |
12439 | if (PyErr_Occurred()) SWIG_fail; | |
12440 | } | |
12441 | resultobj = result; | |
12442 | return resultobj; | |
12443 | fail: | |
12444 | return NULL; | |
12445 | } | |
12446 | ||
12447 | ||
12448 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12449 | PyObject *resultobj; | |
12450 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12451 | PyObject *result; | |
12452 | PyObject * obj0 = 0 ; | |
12453 | char *kwnames[] = { | |
12454 | (char *) "self", NULL | |
12455 | }; | |
12456 | ||
12457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12460 | { |
12461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12462 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
12463 | ||
12464 | wxPyEndAllowThreads(__tstate); | |
12465 | if (PyErr_Occurred()) SWIG_fail; | |
12466 | } | |
12467 | resultobj = result; | |
12468 | return resultobj; | |
12469 | fail: | |
12470 | return NULL; | |
12471 | } | |
12472 | ||
12473 | ||
12474 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12475 | PyObject *resultobj; | |
12476 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12477 | wxIcon *result; | |
12478 | PyObject * obj0 = 0 ; | |
12479 | char *kwnames[] = { | |
12480 | (char *) "self", NULL | |
12481 | }; | |
12482 | ||
12483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12486 | { |
12487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12488 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
12489 | ||
12490 | wxPyEndAllowThreads(__tstate); | |
12491 | if (PyErr_Occurred()) SWIG_fail; | |
12492 | } | |
15afbcd0 | 12493 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
12494 | return resultobj; |
12495 | fail: | |
12496 | return NULL; | |
12497 | } | |
12498 | ||
12499 | ||
12500 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12501 | PyObject *resultobj; | |
12502 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12503 | PyObject *result; | |
12504 | PyObject * obj0 = 0 ; | |
12505 | char *kwnames[] = { | |
12506 | (char *) "self", NULL | |
12507 | }; | |
12508 | ||
12509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12512 | { |
12513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12514 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
12515 | ||
12516 | wxPyEndAllowThreads(__tstate); | |
12517 | if (PyErr_Occurred()) SWIG_fail; | |
12518 | } | |
12519 | resultobj = result; | |
12520 | return resultobj; | |
12521 | fail: | |
12522 | return NULL; | |
12523 | } | |
12524 | ||
12525 | ||
12526 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12527 | PyObject *resultobj; | |
12528 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12529 | PyObject *result; | |
12530 | PyObject * obj0 = 0 ; | |
12531 | char *kwnames[] = { | |
12532 | (char *) "self", NULL | |
12533 | }; | |
12534 | ||
12535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12538 | { |
12539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12540 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
12541 | ||
12542 | wxPyEndAllowThreads(__tstate); | |
12543 | if (PyErr_Occurred()) SWIG_fail; | |
12544 | } | |
12545 | resultobj = result; | |
12546 | return resultobj; | |
12547 | fail: | |
12548 | return NULL; | |
12549 | } | |
12550 | ||
12551 | ||
12552 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12553 | PyObject *resultobj; | |
12554 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12555 | wxString *arg2 = 0 ; | |
12556 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12557 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12558 | PyObject *result; | |
e811c8ce RD |
12559 | bool temp2 = False ; |
12560 | bool temp3 = False ; | |
d14a1e28 RD |
12561 | PyObject * obj0 = 0 ; |
12562 | PyObject * obj1 = 0 ; | |
12563 | PyObject * obj2 = 0 ; | |
12564 | char *kwnames[] = { | |
12565 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12566 | }; | |
12567 | ||
12568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12571 | { |
12572 | arg2 = wxString_in_helper(obj1); | |
12573 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12574 | temp2 = True; |
d14a1e28 RD |
12575 | } |
12576 | if (obj2) { | |
12577 | { | |
12578 | arg3 = wxString_in_helper(obj2); | |
12579 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12580 | temp3 = True; |
d14a1e28 RD |
12581 | } |
12582 | } | |
12583 | { | |
12584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12585 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12586 | ||
12587 | wxPyEndAllowThreads(__tstate); | |
12588 | if (PyErr_Occurred()) SWIG_fail; | |
12589 | } | |
12590 | resultobj = result; | |
12591 | { | |
12592 | if (temp2) | |
12593 | delete arg2; | |
12594 | } | |
12595 | { | |
12596 | if (temp3) | |
12597 | delete arg3; | |
12598 | } | |
12599 | return resultobj; | |
12600 | fail: | |
12601 | { | |
12602 | if (temp2) | |
12603 | delete arg2; | |
12604 | } | |
12605 | { | |
12606 | if (temp3) | |
12607 | delete arg3; | |
12608 | } | |
12609 | return NULL; | |
12610 | } | |
12611 | ||
12612 | ||
12613 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12614 | PyObject *resultobj; | |
12615 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12616 | wxString *arg2 = 0 ; | |
12617 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12618 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12619 | PyObject *result; | |
e811c8ce RD |
12620 | bool temp2 = False ; |
12621 | bool temp3 = False ; | |
d14a1e28 RD |
12622 | PyObject * obj0 = 0 ; |
12623 | PyObject * obj1 = 0 ; | |
12624 | PyObject * obj2 = 0 ; | |
12625 | char *kwnames[] = { | |
12626 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12627 | }; | |
12628 | ||
12629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12632 | { |
12633 | arg2 = wxString_in_helper(obj1); | |
12634 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12635 | temp2 = True; |
d14a1e28 RD |
12636 | } |
12637 | if (obj2) { | |
12638 | { | |
12639 | arg3 = wxString_in_helper(obj2); | |
12640 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12641 | temp3 = True; |
d14a1e28 RD |
12642 | } |
12643 | } | |
12644 | { | |
12645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12646 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12647 | ||
12648 | wxPyEndAllowThreads(__tstate); | |
12649 | if (PyErr_Occurred()) SWIG_fail; | |
12650 | } | |
12651 | resultobj = result; | |
12652 | { | |
12653 | if (temp2) | |
12654 | delete arg2; | |
12655 | } | |
12656 | { | |
12657 | if (temp3) | |
12658 | delete arg3; | |
12659 | } | |
12660 | return resultobj; | |
12661 | fail: | |
12662 | { | |
12663 | if (temp2) | |
12664 | delete arg2; | |
12665 | } | |
12666 | { | |
12667 | if (temp3) | |
12668 | delete arg3; | |
12669 | } | |
12670 | return NULL; | |
12671 | } | |
12672 | ||
12673 | ||
12674 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12675 | PyObject *resultobj; | |
12676 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12677 | wxString *arg2 = 0 ; | |
12678 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12679 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12680 | PyObject *result; | |
e811c8ce RD |
12681 | bool temp2 = False ; |
12682 | bool temp3 = False ; | |
d14a1e28 RD |
12683 | PyObject * obj0 = 0 ; |
12684 | PyObject * obj1 = 0 ; | |
12685 | PyObject * obj2 = 0 ; | |
12686 | char *kwnames[] = { | |
12687 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12688 | }; | |
12689 | ||
12690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12693 | { |
12694 | arg2 = wxString_in_helper(obj1); | |
12695 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12696 | temp2 = True; |
d14a1e28 RD |
12697 | } |
12698 | if (obj2) { | |
12699 | { | |
12700 | arg3 = wxString_in_helper(obj2); | |
12701 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12702 | temp3 = True; |
d14a1e28 RD |
12703 | } |
12704 | } | |
12705 | { | |
12706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12707 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12708 | ||
12709 | wxPyEndAllowThreads(__tstate); | |
12710 | if (PyErr_Occurred()) SWIG_fail; | |
12711 | } | |
12712 | resultobj = result; | |
12713 | { | |
12714 | if (temp2) | |
12715 | delete arg2; | |
12716 | } | |
12717 | { | |
12718 | if (temp3) | |
12719 | delete arg3; | |
12720 | } | |
12721 | return resultobj; | |
12722 | fail: | |
12723 | { | |
12724 | if (temp2) | |
12725 | delete arg2; | |
12726 | } | |
12727 | { | |
12728 | if (temp3) | |
12729 | delete arg3; | |
12730 | } | |
12731 | return NULL; | |
12732 | } | |
12733 | ||
12734 | ||
12735 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12736 | PyObject *resultobj; | |
12737 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12738 | wxString *arg2 = 0 ; | |
12739 | wxString *arg3 = 0 ; | |
e811c8ce | 12740 | bool arg4 = (bool) True ; |
d14a1e28 | 12741 | bool result; |
e811c8ce RD |
12742 | bool temp2 = False ; |
12743 | bool temp3 = False ; | |
d14a1e28 RD |
12744 | PyObject * obj0 = 0 ; |
12745 | PyObject * obj1 = 0 ; | |
12746 | PyObject * obj2 = 0 ; | |
12747 | PyObject * obj3 = 0 ; | |
12748 | char *kwnames[] = { | |
12749 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
12750 | }; | |
12751 | ||
12752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
12753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12755 | { |
12756 | arg2 = wxString_in_helper(obj1); | |
12757 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12758 | temp2 = True; |
d14a1e28 RD |
12759 | } |
12760 | { | |
12761 | arg3 = wxString_in_helper(obj2); | |
12762 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12763 | temp3 = True; |
d14a1e28 RD |
12764 | } |
12765 | if (obj3) { | |
15afbcd0 RD |
12766 | arg4 = (bool) SWIG_AsBool(obj3); |
12767 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12768 | } |
12769 | { | |
12770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12771 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
12772 | ||
12773 | wxPyEndAllowThreads(__tstate); | |
12774 | if (PyErr_Occurred()) SWIG_fail; | |
12775 | } | |
4f89f6a3 RD |
12776 | { |
12777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12778 | } | |
d14a1e28 RD |
12779 | { |
12780 | if (temp2) | |
12781 | delete arg2; | |
12782 | } | |
12783 | { | |
12784 | if (temp3) | |
12785 | delete arg3; | |
12786 | } | |
12787 | return resultobj; | |
12788 | fail: | |
12789 | { | |
12790 | if (temp2) | |
12791 | delete arg2; | |
12792 | } | |
12793 | { | |
12794 | if (temp3) | |
12795 | delete arg3; | |
12796 | } | |
12797 | return NULL; | |
12798 | } | |
12799 | ||
12800 | ||
12801 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12802 | PyObject *resultobj; | |
12803 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12804 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12805 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
12806 | int arg3 = (int) 0 ; | |
12807 | bool result; | |
e811c8ce | 12808 | bool temp2 = False ; |
d14a1e28 RD |
12809 | PyObject * obj0 = 0 ; |
12810 | PyObject * obj1 = 0 ; | |
994141e6 | 12811 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12812 | char *kwnames[] = { |
12813 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
12814 | }; | |
12815 | ||
994141e6 | 12816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12819 | if (obj1) { |
12820 | { | |
12821 | arg2 = wxString_in_helper(obj1); | |
12822 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12823 | temp2 = True; |
d14a1e28 RD |
12824 | } |
12825 | } | |
994141e6 | 12826 | if (obj2) { |
15afbcd0 RD |
12827 | arg3 = (int) SWIG_AsInt(obj2); |
12828 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12829 | } |
d14a1e28 RD |
12830 | { |
12831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12832 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
12833 | ||
12834 | wxPyEndAllowThreads(__tstate); | |
12835 | if (PyErr_Occurred()) SWIG_fail; | |
12836 | } | |
4f89f6a3 RD |
12837 | { |
12838 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12839 | } | |
d14a1e28 RD |
12840 | { |
12841 | if (temp2) | |
12842 | delete arg2; | |
12843 | } | |
12844 | return resultobj; | |
12845 | fail: | |
12846 | { | |
12847 | if (temp2) | |
12848 | delete arg2; | |
12849 | } | |
12850 | return NULL; | |
12851 | } | |
12852 | ||
12853 | ||
12854 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12855 | PyObject *resultobj; | |
12856 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12857 | bool result; | |
12858 | PyObject * obj0 = 0 ; | |
12859 | char *kwnames[] = { | |
12860 | (char *) "self", NULL | |
12861 | }; | |
12862 | ||
12863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12866 | { |
12867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12868 | result = (bool)(arg1)->Unassociate(); | |
12869 | ||
12870 | wxPyEndAllowThreads(__tstate); | |
12871 | if (PyErr_Occurred()) SWIG_fail; | |
12872 | } | |
4f89f6a3 RD |
12873 | { |
12874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12875 | } | |
d14a1e28 RD |
12876 | return resultobj; |
12877 | fail: | |
12878 | return NULL; | |
12879 | } | |
12880 | ||
12881 | ||
12882 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12883 | PyObject *resultobj; | |
12884 | wxString *arg1 = 0 ; | |
12885 | wxString *arg2 = 0 ; | |
12886 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12887 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12888 | wxString result; | |
e811c8ce RD |
12889 | bool temp1 = False ; |
12890 | bool temp2 = False ; | |
12891 | bool temp3 = False ; | |
d14a1e28 RD |
12892 | PyObject * obj0 = 0 ; |
12893 | PyObject * obj1 = 0 ; | |
12894 | PyObject * obj2 = 0 ; | |
12895 | char *kwnames[] = { | |
12896 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
12897 | }; | |
12898 | ||
12899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12900 | { | |
12901 | arg1 = wxString_in_helper(obj0); | |
12902 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 12903 | temp1 = True; |
d14a1e28 RD |
12904 | } |
12905 | { | |
12906 | arg2 = wxString_in_helper(obj1); | |
12907 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12908 | temp2 = True; |
d14a1e28 RD |
12909 | } |
12910 | if (obj2) { | |
12911 | { | |
12912 | arg3 = wxString_in_helper(obj2); | |
12913 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12914 | temp3 = True; |
d14a1e28 RD |
12915 | } |
12916 | } | |
12917 | { | |
12918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12919 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12920 | ||
12921 | wxPyEndAllowThreads(__tstate); | |
12922 | if (PyErr_Occurred()) SWIG_fail; | |
12923 | } | |
12924 | { | |
12925 | #if wxUSE_UNICODE | |
12926 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12927 | #else | |
12928 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12929 | #endif | |
12930 | } | |
12931 | { | |
12932 | if (temp1) | |
12933 | delete arg1; | |
12934 | } | |
12935 | { | |
12936 | if (temp2) | |
12937 | delete arg2; | |
12938 | } | |
12939 | { | |
12940 | if (temp3) | |
12941 | delete arg3; | |
12942 | } | |
12943 | return resultobj; | |
12944 | fail: | |
12945 | { | |
12946 | if (temp1) | |
12947 | delete arg1; | |
12948 | } | |
12949 | { | |
12950 | if (temp2) | |
12951 | delete arg2; | |
12952 | } | |
12953 | { | |
12954 | if (temp3) | |
12955 | delete arg3; | |
12956 | } | |
12957 | return NULL; | |
12958 | } | |
12959 | ||
12960 | ||
12961 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
12962 | PyObject *obj; | |
12963 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12964 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
12965 | Py_INCREF(obj); | |
12966 | return Py_BuildValue((char *)""); | |
12967 | } | |
12968 | static int _wrap_TheMimeTypesManager_set(PyObject *_val) { | |
12969 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); | |
12970 | return 1; | |
12971 | } | |
12972 | ||
12973 | ||
12974 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
12975 | PyObject *pyobj; | |
12976 | ||
15afbcd0 | 12977 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); |
d14a1e28 RD |
12978 | return pyobj; |
12979 | } | |
12980 | ||
12981 | ||
12982 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12983 | PyObject *resultobj; | |
12984 | wxString *arg1 = 0 ; | |
12985 | wxString *arg2 = 0 ; | |
12986 | bool result; | |
e811c8ce RD |
12987 | bool temp1 = False ; |
12988 | bool temp2 = False ; | |
d14a1e28 RD |
12989 | PyObject * obj0 = 0 ; |
12990 | PyObject * obj1 = 0 ; | |
12991 | char *kwnames[] = { | |
12992 | (char *) "mimeType",(char *) "wildcard", NULL | |
12993 | }; | |
12994 | ||
12995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
12996 | { | |
12997 | arg1 = wxString_in_helper(obj0); | |
12998 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 12999 | temp1 = True; |
d14a1e28 RD |
13000 | } |
13001 | { | |
13002 | arg2 = wxString_in_helper(obj1); | |
13003 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13004 | temp2 = True; |
d14a1e28 RD |
13005 | } |
13006 | { | |
13007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13008 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
13009 | ||
13010 | wxPyEndAllowThreads(__tstate); | |
13011 | if (PyErr_Occurred()) SWIG_fail; | |
13012 | } | |
4f89f6a3 RD |
13013 | { |
13014 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13015 | } | |
d14a1e28 RD |
13016 | { |
13017 | if (temp1) | |
13018 | delete arg1; | |
13019 | } | |
13020 | { | |
13021 | if (temp2) | |
13022 | delete arg2; | |
13023 | } | |
13024 | return resultobj; | |
13025 | fail: | |
13026 | { | |
13027 | if (temp1) | |
13028 | delete arg1; | |
13029 | } | |
13030 | { | |
13031 | if (temp2) | |
13032 | delete arg2; | |
13033 | } | |
13034 | return NULL; | |
13035 | } | |
13036 | ||
13037 | ||
13038 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13039 | PyObject *resultobj; | |
13040 | wxMimeTypesManager *result; | |
13041 | char *kwnames[] = { | |
13042 | NULL | |
13043 | }; | |
13044 | ||
13045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
13046 | { | |
13047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13048 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
13049 | ||
13050 | wxPyEndAllowThreads(__tstate); | |
13051 | if (PyErr_Occurred()) SWIG_fail; | |
13052 | } | |
15afbcd0 | 13053 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); |
d14a1e28 RD |
13054 | return resultobj; |
13055 | fail: | |
13056 | return NULL; | |
13057 | } | |
13058 | ||
13059 | ||
13060 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13061 | PyObject *resultobj; | |
13062 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13063 | int arg2 = (int) wxMAILCAP_ALL ; | |
13064 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13065 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
e811c8ce | 13066 | bool temp3 = False ; |
d14a1e28 | 13067 | PyObject * obj0 = 0 ; |
994141e6 | 13068 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13069 | PyObject * obj2 = 0 ; |
13070 | char *kwnames[] = { | |
13071 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
13072 | }; | |
13073 | ||
994141e6 | 13074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 13077 | if (obj1) { |
15afbcd0 RD |
13078 | arg2 = (int) SWIG_AsInt(obj1); |
13079 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13080 | } |
d14a1e28 RD |
13081 | if (obj2) { |
13082 | { | |
13083 | arg3 = wxString_in_helper(obj2); | |
13084 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 13085 | temp3 = True; |
d14a1e28 RD |
13086 | } |
13087 | } | |
13088 | { | |
13089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13090 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
13091 | ||
13092 | wxPyEndAllowThreads(__tstate); | |
13093 | if (PyErr_Occurred()) SWIG_fail; | |
13094 | } | |
13095 | Py_INCREF(Py_None); resultobj = Py_None; | |
13096 | { | |
13097 | if (temp3) | |
13098 | delete arg3; | |
13099 | } | |
13100 | return resultobj; | |
13101 | fail: | |
13102 | { | |
13103 | if (temp3) | |
13104 | delete arg3; | |
13105 | } | |
13106 | return NULL; | |
13107 | } | |
13108 | ||
13109 | ||
13110 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13111 | PyObject *resultobj; | |
13112 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13113 | PyObject * obj0 = 0 ; | |
13114 | char *kwnames[] = { | |
13115 | (char *) "self", NULL | |
13116 | }; | |
13117 | ||
13118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13121 | { |
13122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13123 | (arg1)->ClearData(); | |
13124 | ||
13125 | wxPyEndAllowThreads(__tstate); | |
13126 | if (PyErr_Occurred()) SWIG_fail; | |
13127 | } | |
13128 | Py_INCREF(Py_None); resultobj = Py_None; | |
13129 | return resultobj; | |
13130 | fail: | |
13131 | return NULL; | |
13132 | } | |
13133 | ||
13134 | ||
13135 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13136 | PyObject *resultobj; | |
13137 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13138 | wxString *arg2 = 0 ; | |
13139 | wxFileType *result; | |
e811c8ce | 13140 | bool temp2 = False ; |
d14a1e28 RD |
13141 | PyObject * obj0 = 0 ; |
13142 | PyObject * obj1 = 0 ; | |
13143 | char *kwnames[] = { | |
13144 | (char *) "self",(char *) "ext", NULL | |
13145 | }; | |
13146 | ||
13147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13150 | { |
13151 | arg2 = wxString_in_helper(obj1); | |
13152 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13153 | temp2 = True; |
d14a1e28 RD |
13154 | } |
13155 | { | |
13156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13157 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
13158 | ||
13159 | wxPyEndAllowThreads(__tstate); | |
13160 | if (PyErr_Occurred()) SWIG_fail; | |
13161 | } | |
15afbcd0 | 13162 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13163 | { |
13164 | if (temp2) | |
13165 | delete arg2; | |
13166 | } | |
13167 | return resultobj; | |
13168 | fail: | |
13169 | { | |
13170 | if (temp2) | |
13171 | delete arg2; | |
13172 | } | |
13173 | return NULL; | |
13174 | } | |
13175 | ||
13176 | ||
13177 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13178 | PyObject *resultobj; | |
13179 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13180 | wxString *arg2 = 0 ; | |
13181 | wxFileType *result; | |
e811c8ce | 13182 | bool temp2 = False ; |
d14a1e28 RD |
13183 | PyObject * obj0 = 0 ; |
13184 | PyObject * obj1 = 0 ; | |
13185 | char *kwnames[] = { | |
13186 | (char *) "self",(char *) "mimeType", NULL | |
13187 | }; | |
13188 | ||
13189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13192 | { |
13193 | arg2 = wxString_in_helper(obj1); | |
13194 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13195 | temp2 = True; |
d14a1e28 RD |
13196 | } |
13197 | { | |
13198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13199 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
13200 | ||
13201 | wxPyEndAllowThreads(__tstate); | |
13202 | if (PyErr_Occurred()) SWIG_fail; | |
13203 | } | |
15afbcd0 | 13204 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13205 | { |
13206 | if (temp2) | |
13207 | delete arg2; | |
13208 | } | |
13209 | return resultobj; | |
13210 | fail: | |
13211 | { | |
13212 | if (temp2) | |
13213 | delete arg2; | |
13214 | } | |
13215 | return NULL; | |
13216 | } | |
13217 | ||
13218 | ||
13219 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13220 | PyObject *resultobj; | |
13221 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13222 | wxString *arg2 = 0 ; | |
e811c8ce | 13223 | bool arg3 = (bool) False ; |
d14a1e28 | 13224 | bool result; |
e811c8ce | 13225 | bool temp2 = False ; |
d14a1e28 RD |
13226 | PyObject * obj0 = 0 ; |
13227 | PyObject * obj1 = 0 ; | |
13228 | PyObject * obj2 = 0 ; | |
13229 | char *kwnames[] = { | |
13230 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
13231 | }; | |
13232 | ||
13233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
13234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13236 | { |
13237 | arg2 = wxString_in_helper(obj1); | |
13238 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13239 | temp2 = True; |
d14a1e28 RD |
13240 | } |
13241 | if (obj2) { | |
15afbcd0 RD |
13242 | arg3 = (bool) SWIG_AsBool(obj2); |
13243 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13244 | } |
13245 | { | |
13246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13247 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
13248 | ||
13249 | wxPyEndAllowThreads(__tstate); | |
13250 | if (PyErr_Occurred()) SWIG_fail; | |
13251 | } | |
4f89f6a3 RD |
13252 | { |
13253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13254 | } | |
d14a1e28 RD |
13255 | { |
13256 | if (temp2) | |
13257 | delete arg2; | |
13258 | } | |
13259 | return resultobj; | |
13260 | fail: | |
13261 | { | |
13262 | if (temp2) | |
13263 | delete arg2; | |
13264 | } | |
13265 | return NULL; | |
13266 | } | |
13267 | ||
13268 | ||
13269 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13270 | PyObject *resultobj; | |
13271 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13272 | wxString *arg2 = 0 ; | |
13273 | bool result; | |
e811c8ce | 13274 | bool temp2 = False ; |
d14a1e28 RD |
13275 | PyObject * obj0 = 0 ; |
13276 | PyObject * obj1 = 0 ; | |
13277 | char *kwnames[] = { | |
13278 | (char *) "self",(char *) "filename", NULL | |
13279 | }; | |
13280 | ||
13281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13284 | { |
13285 | arg2 = wxString_in_helper(obj1); | |
13286 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13287 | temp2 = True; |
d14a1e28 RD |
13288 | } |
13289 | { | |
13290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13291 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
13292 | ||
13293 | wxPyEndAllowThreads(__tstate); | |
13294 | if (PyErr_Occurred()) SWIG_fail; | |
13295 | } | |
4f89f6a3 RD |
13296 | { |
13297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13298 | } | |
d14a1e28 RD |
13299 | { |
13300 | if (temp2) | |
13301 | delete arg2; | |
13302 | } | |
13303 | return resultobj; | |
13304 | fail: | |
13305 | { | |
13306 | if (temp2) | |
13307 | delete arg2; | |
13308 | } | |
13309 | return NULL; | |
13310 | } | |
13311 | ||
13312 | ||
13313 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13314 | PyObject *resultobj; | |
13315 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13316 | PyObject *result; | |
13317 | PyObject * obj0 = 0 ; | |
13318 | char *kwnames[] = { | |
13319 | (char *) "self", NULL | |
13320 | }; | |
13321 | ||
13322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13325 | { |
13326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13327 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
13328 | ||
13329 | wxPyEndAllowThreads(__tstate); | |
13330 | if (PyErr_Occurred()) SWIG_fail; | |
13331 | } | |
13332 | resultobj = result; | |
13333 | return resultobj; | |
13334 | fail: | |
13335 | return NULL; | |
13336 | } | |
13337 | ||
13338 | ||
13339 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13340 | PyObject *resultobj; | |
13341 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13342 | wxFileTypeInfo *arg2 = 0 ; | |
13343 | PyObject * obj0 = 0 ; | |
13344 | PyObject * obj1 = 0 ; | |
13345 | char *kwnames[] = { | |
13346 | (char *) "self",(char *) "ft", NULL | |
13347 | }; | |
13348 | ||
13349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13352 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13353 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13354 | SWIG_fail; | |
d14a1e28 | 13355 | if (arg2 == NULL) { |
15afbcd0 RD |
13356 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13357 | SWIG_fail; | |
d14a1e28 RD |
13358 | } |
13359 | { | |
13360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13361 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
13362 | ||
13363 | wxPyEndAllowThreads(__tstate); | |
13364 | if (PyErr_Occurred()) SWIG_fail; | |
13365 | } | |
13366 | Py_INCREF(Py_None); resultobj = Py_None; | |
13367 | return resultobj; | |
13368 | fail: | |
13369 | return NULL; | |
13370 | } | |
13371 | ||
13372 | ||
13373 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13374 | PyObject *resultobj; | |
13375 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13376 | wxFileTypeInfo *arg2 = 0 ; | |
13377 | wxFileType *result; | |
13378 | PyObject * obj0 = 0 ; | |
13379 | PyObject * obj1 = 0 ; | |
13380 | char *kwnames[] = { | |
13381 | (char *) "self",(char *) "ftInfo", NULL | |
13382 | }; | |
13383 | ||
13384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13387 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13388 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13389 | SWIG_fail; | |
d14a1e28 | 13390 | if (arg2 == NULL) { |
15afbcd0 RD |
13391 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13392 | SWIG_fail; | |
d14a1e28 RD |
13393 | } |
13394 | { | |
13395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13396 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
13397 | ||
13398 | wxPyEndAllowThreads(__tstate); | |
13399 | if (PyErr_Occurred()) SWIG_fail; | |
13400 | } | |
15afbcd0 | 13401 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13402 | return resultobj; |
13403 | fail: | |
13404 | return NULL; | |
13405 | } | |
13406 | ||
13407 | ||
13408 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13409 | PyObject *resultobj; | |
13410 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13411 | wxFileType *arg2 = (wxFileType *) 0 ; | |
13412 | bool result; | |
13413 | PyObject * obj0 = 0 ; | |
13414 | PyObject * obj1 = 0 ; | |
13415 | char *kwnames[] = { | |
13416 | (char *) "self",(char *) "ft", NULL | |
13417 | }; | |
13418 | ||
13419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13422 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType, | |
13423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13424 | { |
13425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13426 | result = (bool)(arg1)->Unassociate(arg2); | |
13427 | ||
13428 | wxPyEndAllowThreads(__tstate); | |
13429 | if (PyErr_Occurred()) SWIG_fail; | |
13430 | } | |
4f89f6a3 RD |
13431 | { |
13432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13433 | } | |
d14a1e28 RD |
13434 | return resultobj; |
13435 | fail: | |
13436 | return NULL; | |
13437 | } | |
13438 | ||
13439 | ||
13440 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13441 | PyObject *resultobj; | |
13442 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13443 | PyObject * obj0 = 0 ; | |
13444 | char *kwnames[] = { | |
13445 | (char *) "self", NULL | |
13446 | }; | |
13447 | ||
13448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13451 | { |
13452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13453 | delete arg1; | |
13454 | ||
13455 | wxPyEndAllowThreads(__tstate); | |
13456 | if (PyErr_Occurred()) SWIG_fail; | |
13457 | } | |
13458 | Py_INCREF(Py_None); resultobj = Py_None; | |
13459 | return resultobj; | |
13460 | fail: | |
13461 | return NULL; | |
13462 | } | |
13463 | ||
13464 | ||
13465 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
13466 | PyObject *obj; | |
13467 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13468 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
13469 | Py_INCREF(obj); | |
13470 | return Py_BuildValue((char *)""); | |
13471 | } | |
13472 | static int _wrap_ART_TOOLBAR_set(PyObject *_val) { | |
13473 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); | |
13474 | return 1; | |
13475 | } | |
13476 | ||
13477 | ||
13478 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
13479 | PyObject *pyobj; | |
13480 | ||
13481 | { | |
13482 | #if wxUSE_UNICODE | |
13483 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13484 | #else | |
13485 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13486 | #endif | |
13487 | } | |
13488 | return pyobj; | |
13489 | } | |
13490 | ||
13491 | ||
13492 | static int _wrap_ART_MENU_set(PyObject *_val) { | |
13493 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); | |
13494 | return 1; | |
13495 | } | |
13496 | ||
13497 | ||
13498 | static PyObject *_wrap_ART_MENU_get() { | |
13499 | PyObject *pyobj; | |
13500 | ||
13501 | { | |
13502 | #if wxUSE_UNICODE | |
13503 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13504 | #else | |
13505 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13506 | #endif | |
13507 | } | |
13508 | return pyobj; | |
13509 | } | |
13510 | ||
13511 | ||
13512 | static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { | |
13513 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); | |
13514 | return 1; | |
13515 | } | |
13516 | ||
13517 | ||
13518 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
13519 | PyObject *pyobj; | |
13520 | ||
13521 | { | |
13522 | #if wxUSE_UNICODE | |
13523 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13524 | #else | |
13525 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13526 | #endif | |
13527 | } | |
13528 | return pyobj; | |
13529 | } | |
13530 | ||
13531 | ||
13532 | static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { | |
13533 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); | |
13534 | return 1; | |
13535 | } | |
13536 | ||
13537 | ||
13538 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
13539 | PyObject *pyobj; | |
13540 | ||
13541 | { | |
13542 | #if wxUSE_UNICODE | |
13543 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13544 | #else | |
13545 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13546 | #endif | |
13547 | } | |
13548 | return pyobj; | |
13549 | } | |
13550 | ||
13551 | ||
13552 | static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { | |
13553 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); | |
13554 | return 1; | |
13555 | } | |
13556 | ||
13557 | ||
13558 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
13559 | PyObject *pyobj; | |
13560 | ||
13561 | { | |
13562 | #if wxUSE_UNICODE | |
13563 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13564 | #else | |
13565 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13566 | #endif | |
13567 | } | |
13568 | return pyobj; | |
13569 | } | |
13570 | ||
13571 | ||
13572 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { | |
13573 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); | |
13574 | return 1; | |
13575 | } | |
13576 | ||
13577 | ||
13578 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
13579 | PyObject *pyobj; | |
13580 | ||
13581 | { | |
13582 | #if wxUSE_UNICODE | |
13583 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13584 | #else | |
13585 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13586 | #endif | |
13587 | } | |
13588 | return pyobj; | |
13589 | } | |
13590 | ||
13591 | ||
13592 | static int _wrap_ART_OTHER_set(PyObject *_val) { | |
13593 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); | |
13594 | return 1; | |
13595 | } | |
13596 | ||
13597 | ||
13598 | static PyObject *_wrap_ART_OTHER_get() { | |
13599 | PyObject *pyobj; | |
13600 | ||
13601 | { | |
13602 | #if wxUSE_UNICODE | |
13603 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13604 | #else | |
13605 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13606 | #endif | |
13607 | } | |
13608 | return pyobj; | |
13609 | } | |
13610 | ||
13611 | ||
13612 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { | |
13613 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); | |
13614 | return 1; | |
13615 | } | |
13616 | ||
13617 | ||
13618 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
13619 | PyObject *pyobj; | |
13620 | ||
13621 | { | |
13622 | #if wxUSE_UNICODE | |
13623 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13624 | #else | |
13625 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13626 | #endif | |
13627 | } | |
13628 | return pyobj; | |
13629 | } | |
13630 | ||
13631 | ||
13632 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { | |
13633 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); | |
13634 | return 1; | |
13635 | } | |
13636 | ||
13637 | ||
13638 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
13639 | PyObject *pyobj; | |
13640 | ||
13641 | { | |
13642 | #if wxUSE_UNICODE | |
13643 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13644 | #else | |
13645 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13646 | #endif | |
13647 | } | |
13648 | return pyobj; | |
13649 | } | |
13650 | ||
13651 | ||
13652 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { | |
13653 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); | |
13654 | return 1; | |
13655 | } | |
13656 | ||
13657 | ||
13658 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
13659 | PyObject *pyobj; | |
13660 | ||
13661 | { | |
13662 | #if wxUSE_UNICODE | |
13663 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13664 | #else | |
13665 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13666 | #endif | |
13667 | } | |
13668 | return pyobj; | |
13669 | } | |
13670 | ||
13671 | ||
13672 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { | |
13673 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); | |
13674 | return 1; | |
13675 | } | |
13676 | ||
13677 | ||
13678 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
13679 | PyObject *pyobj; | |
13680 | ||
13681 | { | |
13682 | #if wxUSE_UNICODE | |
13683 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13684 | #else | |
13685 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13686 | #endif | |
13687 | } | |
13688 | return pyobj; | |
13689 | } | |
13690 | ||
13691 | ||
13692 | static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { | |
13693 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); | |
13694 | return 1; | |
13695 | } | |
13696 | ||
13697 | ||
13698 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
13699 | PyObject *pyobj; | |
13700 | ||
13701 | { | |
13702 | #if wxUSE_UNICODE | |
13703 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13704 | #else | |
13705 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13706 | #endif | |
13707 | } | |
13708 | return pyobj; | |
13709 | } | |
13710 | ||
13711 | ||
13712 | static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { | |
13713 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); | |
13714 | return 1; | |
13715 | } | |
13716 | ||
13717 | ||
13718 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
13719 | PyObject *pyobj; | |
13720 | ||
13721 | { | |
13722 | #if wxUSE_UNICODE | |
13723 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13724 | #else | |
13725 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13726 | #endif | |
13727 | } | |
13728 | return pyobj; | |
13729 | } | |
13730 | ||
13731 | ||
13732 | static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { | |
13733 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); | |
13734 | return 1; | |
13735 | } | |
13736 | ||
13737 | ||
13738 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
13739 | PyObject *pyobj; | |
13740 | ||
13741 | { | |
13742 | #if wxUSE_UNICODE | |
13743 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13744 | #else | |
13745 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13746 | #endif | |
13747 | } | |
13748 | return pyobj; | |
13749 | } | |
13750 | ||
13751 | ||
13752 | static int _wrap_ART_GO_BACK_set(PyObject *_val) { | |
13753 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); | |
13754 | return 1; | |
13755 | } | |
13756 | ||
13757 | ||
13758 | static PyObject *_wrap_ART_GO_BACK_get() { | |
13759 | PyObject *pyobj; | |
13760 | ||
13761 | { | |
13762 | #if wxUSE_UNICODE | |
13763 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13764 | #else | |
13765 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13766 | #endif | |
13767 | } | |
13768 | return pyobj; | |
13769 | } | |
13770 | ||
13771 | ||
13772 | static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { | |
13773 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); | |
13774 | return 1; | |
13775 | } | |
13776 | ||
13777 | ||
13778 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
13779 | PyObject *pyobj; | |
13780 | ||
13781 | { | |
13782 | #if wxUSE_UNICODE | |
13783 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13784 | #else | |
13785 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13786 | #endif | |
13787 | } | |
13788 | return pyobj; | |
13789 | } | |
13790 | ||
13791 | ||
13792 | static int _wrap_ART_GO_UP_set(PyObject *_val) { | |
13793 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); | |
13794 | return 1; | |
13795 | } | |
13796 | ||
13797 | ||
13798 | static PyObject *_wrap_ART_GO_UP_get() { | |
13799 | PyObject *pyobj; | |
13800 | ||
13801 | { | |
13802 | #if wxUSE_UNICODE | |
13803 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13804 | #else | |
13805 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13806 | #endif | |
13807 | } | |
13808 | return pyobj; | |
13809 | } | |
13810 | ||
13811 | ||
13812 | static int _wrap_ART_GO_DOWN_set(PyObject *_val) { | |
13813 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); | |
13814 | return 1; | |
13815 | } | |
13816 | ||
13817 | ||
13818 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
13819 | PyObject *pyobj; | |
13820 | ||
13821 | { | |
13822 | #if wxUSE_UNICODE | |
13823 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13824 | #else | |
13825 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13826 | #endif | |
13827 | } | |
13828 | return pyobj; | |
13829 | } | |
13830 | ||
13831 | ||
13832 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { | |
13833 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); | |
13834 | return 1; | |
13835 | } | |
13836 | ||
13837 | ||
13838 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
13839 | PyObject *pyobj; | |
13840 | ||
13841 | { | |
13842 | #if wxUSE_UNICODE | |
13843 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13844 | #else | |
13845 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13846 | #endif | |
13847 | } | |
13848 | return pyobj; | |
13849 | } | |
13850 | ||
13851 | ||
13852 | static int _wrap_ART_GO_HOME_set(PyObject *_val) { | |
13853 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); | |
13854 | return 1; | |
13855 | } | |
13856 | ||
13857 | ||
13858 | static PyObject *_wrap_ART_GO_HOME_get() { | |
13859 | PyObject *pyobj; | |
13860 | ||
13861 | { | |
13862 | #if wxUSE_UNICODE | |
13863 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13864 | #else | |
13865 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13866 | #endif | |
13867 | } | |
13868 | return pyobj; | |
13869 | } | |
13870 | ||
13871 | ||
13872 | static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { | |
13873 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); | |
13874 | return 1; | |
13875 | } | |
13876 | ||
13877 | ||
13878 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
13879 | PyObject *pyobj; | |
13880 | ||
13881 | { | |
13882 | #if wxUSE_UNICODE | |
13883 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13884 | #else | |
13885 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13886 | #endif | |
13887 | } | |
13888 | return pyobj; | |
13889 | } | |
13890 | ||
13891 | ||
13892 | static int _wrap_ART_PRINT_set(PyObject *_val) { | |
13893 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); | |
13894 | return 1; | |
13895 | } | |
13896 | ||
13897 | ||
13898 | static PyObject *_wrap_ART_PRINT_get() { | |
13899 | PyObject *pyobj; | |
13900 | ||
13901 | { | |
13902 | #if wxUSE_UNICODE | |
13903 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13904 | #else | |
13905 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13906 | #endif | |
13907 | } | |
13908 | return pyobj; | |
13909 | } | |
13910 | ||
13911 | ||
13912 | static int _wrap_ART_HELP_set(PyObject *_val) { | |
13913 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); | |
13914 | return 1; | |
13915 | } | |
13916 | ||
13917 | ||
13918 | static PyObject *_wrap_ART_HELP_get() { | |
13919 | PyObject *pyobj; | |
13920 | ||
13921 | { | |
13922 | #if wxUSE_UNICODE | |
13923 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
13924 | #else | |
13925 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
13926 | #endif | |
13927 | } | |
13928 | return pyobj; | |
13929 | } | |
13930 | ||
13931 | ||
13932 | static int _wrap_ART_TIP_set(PyObject *_val) { | |
13933 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); | |
13934 | return 1; | |
13935 | } | |
13936 | ||
13937 | ||
13938 | static PyObject *_wrap_ART_TIP_get() { | |
13939 | PyObject *pyobj; | |
13940 | ||
13941 | { | |
13942 | #if wxUSE_UNICODE | |
13943 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
13944 | #else | |
13945 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
13946 | #endif | |
13947 | } | |
13948 | return pyobj; | |
13949 | } | |
13950 | ||
13951 | ||
13952 | static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { | |
13953 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); | |
13954 | return 1; | |
13955 | } | |
13956 | ||
13957 | ||
13958 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
13959 | PyObject *pyobj; | |
13960 | ||
13961 | { | |
13962 | #if wxUSE_UNICODE | |
13963 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
13964 | #else | |
13965 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
13966 | #endif | |
13967 | } | |
13968 | return pyobj; | |
13969 | } | |
13970 | ||
13971 | ||
13972 | static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { | |
13973 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); | |
13974 | return 1; | |
13975 | } | |
13976 | ||
13977 | ||
13978 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
13979 | PyObject *pyobj; | |
13980 | ||
13981 | { | |
13982 | #if wxUSE_UNICODE | |
13983 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
13984 | #else | |
13985 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
13986 | #endif | |
13987 | } | |
13988 | return pyobj; | |
13989 | } | |
13990 | ||
13991 | ||
13992 | static int _wrap_ART_NEW_DIR_set(PyObject *_val) { | |
13993 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); | |
13994 | return 1; | |
13995 | } | |
13996 | ||
13997 | ||
13998 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
13999 | PyObject *pyobj; | |
14000 | ||
14001 | { | |
14002 | #if wxUSE_UNICODE | |
14003 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14004 | #else | |
14005 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14006 | #endif | |
14007 | } | |
14008 | return pyobj; | |
14009 | } | |
14010 | ||
14011 | ||
14012 | static int _wrap_ART_FOLDER_set(PyObject *_val) { | |
14013 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); | |
14014 | return 1; | |
14015 | } | |
14016 | ||
14017 | ||
14018 | static PyObject *_wrap_ART_FOLDER_get() { | |
14019 | PyObject *pyobj; | |
14020 | ||
14021 | { | |
14022 | #if wxUSE_UNICODE | |
14023 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14024 | #else | |
14025 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14026 | #endif | |
14027 | } | |
14028 | return pyobj; | |
14029 | } | |
14030 | ||
14031 | ||
14032 | static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { | |
14033 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); | |
14034 | return 1; | |
14035 | } | |
14036 | ||
14037 | ||
14038 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
14039 | PyObject *pyobj; | |
14040 | ||
14041 | { | |
14042 | #if wxUSE_UNICODE | |
14043 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14044 | #else | |
14045 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14046 | #endif | |
14047 | } | |
14048 | return pyobj; | |
14049 | } | |
14050 | ||
14051 | ||
14052 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { | |
14053 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); | |
14054 | return 1; | |
14055 | } | |
14056 | ||
14057 | ||
14058 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
14059 | PyObject *pyobj; | |
14060 | ||
14061 | { | |
14062 | #if wxUSE_UNICODE | |
14063 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14064 | #else | |
14065 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14066 | #endif | |
14067 | } | |
14068 | return pyobj; | |
14069 | } | |
14070 | ||
14071 | ||
14072 | static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { | |
14073 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); | |
14074 | return 1; | |
14075 | } | |
14076 | ||
14077 | ||
14078 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
14079 | PyObject *pyobj; | |
14080 | ||
14081 | { | |
14082 | #if wxUSE_UNICODE | |
14083 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14084 | #else | |
14085 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14086 | #endif | |
14087 | } | |
14088 | return pyobj; | |
14089 | } | |
14090 | ||
14091 | ||
14092 | static int _wrap_ART_TICK_MARK_set(PyObject *_val) { | |
14093 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); | |
14094 | return 1; | |
14095 | } | |
14096 | ||
14097 | ||
14098 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
14099 | PyObject *pyobj; | |
14100 | ||
14101 | { | |
14102 | #if wxUSE_UNICODE | |
14103 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14104 | #else | |
14105 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14106 | #endif | |
14107 | } | |
14108 | return pyobj; | |
14109 | } | |
14110 | ||
14111 | ||
14112 | static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { | |
14113 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); | |
14114 | return 1; | |
14115 | } | |
14116 | ||
14117 | ||
14118 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
14119 | PyObject *pyobj; | |
14120 | ||
14121 | { | |
14122 | #if wxUSE_UNICODE | |
14123 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14124 | #else | |
14125 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14126 | #endif | |
14127 | } | |
14128 | return pyobj; | |
14129 | } | |
14130 | ||
14131 | ||
14132 | static int _wrap_ART_ERROR_set(PyObject *_val) { | |
14133 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); | |
14134 | return 1; | |
14135 | } | |
14136 | ||
14137 | ||
14138 | static PyObject *_wrap_ART_ERROR_get() { | |
14139 | PyObject *pyobj; | |
14140 | ||
14141 | { | |
14142 | #if wxUSE_UNICODE | |
14143 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14144 | #else | |
14145 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14146 | #endif | |
14147 | } | |
14148 | return pyobj; | |
14149 | } | |
14150 | ||
14151 | ||
14152 | static int _wrap_ART_QUESTION_set(PyObject *_val) { | |
14153 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); | |
14154 | return 1; | |
14155 | } | |
14156 | ||
14157 | ||
14158 | static PyObject *_wrap_ART_QUESTION_get() { | |
14159 | PyObject *pyobj; | |
14160 | ||
14161 | { | |
14162 | #if wxUSE_UNICODE | |
14163 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14164 | #else | |
14165 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14166 | #endif | |
14167 | } | |
14168 | return pyobj; | |
14169 | } | |
14170 | ||
14171 | ||
14172 | static int _wrap_ART_WARNING_set(PyObject *_val) { | |
14173 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); | |
14174 | return 1; | |
14175 | } | |
14176 | ||
14177 | ||
14178 | static PyObject *_wrap_ART_WARNING_get() { | |
14179 | PyObject *pyobj; | |
14180 | ||
14181 | { | |
14182 | #if wxUSE_UNICODE | |
14183 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14184 | #else | |
14185 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14186 | #endif | |
14187 | } | |
14188 | return pyobj; | |
14189 | } | |
14190 | ||
14191 | ||
14192 | static int _wrap_ART_INFORMATION_set(PyObject *_val) { | |
14193 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); | |
14194 | return 1; | |
14195 | } | |
14196 | ||
14197 | ||
14198 | static PyObject *_wrap_ART_INFORMATION_get() { | |
14199 | PyObject *pyobj; | |
14200 | ||
14201 | { | |
14202 | #if wxUSE_UNICODE | |
14203 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14204 | #else | |
14205 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14206 | #endif | |
14207 | } | |
14208 | return pyobj; | |
14209 | } | |
14210 | ||
14211 | ||
14212 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { | |
14213 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); | |
14214 | return 1; | |
14215 | } | |
14216 | ||
14217 | ||
14218 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
14219 | PyObject *pyobj; | |
14220 | ||
14221 | { | |
14222 | #if wxUSE_UNICODE | |
14223 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14224 | #else | |
14225 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14226 | #endif | |
14227 | } | |
14228 | return pyobj; | |
14229 | } | |
14230 | ||
14231 | ||
14232 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14233 | PyObject *resultobj; | |
14234 | wxPyArtProvider *result; | |
14235 | char *kwnames[] = { | |
14236 | NULL | |
14237 | }; | |
14238 | ||
14239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
14240 | { | |
14241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14242 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
14243 | ||
14244 | wxPyEndAllowThreads(__tstate); | |
14245 | if (PyErr_Occurred()) SWIG_fail; | |
14246 | } | |
15afbcd0 | 14247 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); |
d14a1e28 RD |
14248 | return resultobj; |
14249 | fail: | |
14250 | return NULL; | |
14251 | } | |
14252 | ||
14253 | ||
d14a1e28 RD |
14254 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
14255 | PyObject *resultobj; | |
14256 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14257 | PyObject *arg2 = (PyObject *) 0 ; | |
14258 | PyObject *arg3 = (PyObject *) 0 ; | |
14259 | PyObject * obj0 = 0 ; | |
14260 | PyObject * obj1 = 0 ; | |
14261 | PyObject * obj2 = 0 ; | |
14262 | char *kwnames[] = { | |
14263 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14264 | }; | |
14265 | ||
14266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
14267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14269 | arg2 = obj1; |
14270 | arg3 = obj2; | |
14271 | { | |
14272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14273 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14274 | ||
14275 | wxPyEndAllowThreads(__tstate); | |
14276 | if (PyErr_Occurred()) SWIG_fail; | |
14277 | } | |
14278 | Py_INCREF(Py_None); resultobj = Py_None; | |
14279 | return resultobj; | |
14280 | fail: | |
14281 | return NULL; | |
14282 | } | |
14283 | ||
14284 | ||
14285 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14286 | PyObject *resultobj; | |
14287 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14288 | PyObject * obj0 = 0 ; | |
14289 | char *kwnames[] = { | |
14290 | (char *) "provider", NULL | |
14291 | }; | |
14292 | ||
14293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14296 | { |
14297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14298 | wxPyArtProvider::PushProvider(arg1); | |
14299 | ||
14300 | wxPyEndAllowThreads(__tstate); | |
14301 | if (PyErr_Occurred()) SWIG_fail; | |
14302 | } | |
14303 | Py_INCREF(Py_None); resultobj = Py_None; | |
14304 | return resultobj; | |
14305 | fail: | |
14306 | return NULL; | |
14307 | } | |
14308 | ||
14309 | ||
14310 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14311 | PyObject *resultobj; | |
14312 | bool result; | |
14313 | char *kwnames[] = { | |
14314 | NULL | |
14315 | }; | |
14316 | ||
14317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
14318 | { | |
14319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14320 | result = (bool)wxPyArtProvider::PopProvider(); | |
14321 | ||
14322 | wxPyEndAllowThreads(__tstate); | |
14323 | if (PyErr_Occurred()) SWIG_fail; | |
14324 | } | |
4f89f6a3 RD |
14325 | { |
14326 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14327 | } | |
d14a1e28 RD |
14328 | return resultobj; |
14329 | fail: | |
14330 | return NULL; | |
14331 | } | |
14332 | ||
14333 | ||
14334 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14335 | PyObject *resultobj; | |
14336 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14337 | bool result; | |
14338 | PyObject * obj0 = 0 ; | |
14339 | char *kwnames[] = { | |
14340 | (char *) "provider", NULL | |
14341 | }; | |
14342 | ||
14343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) 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 | { |
14347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14348 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
14349 | ||
14350 | wxPyEndAllowThreads(__tstate); | |
14351 | if (PyErr_Occurred()) SWIG_fail; | |
14352 | } | |
4f89f6a3 RD |
14353 | { |
14354 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14355 | } | |
d14a1e28 RD |
14356 | return resultobj; |
14357 | fail: | |
14358 | return NULL; | |
14359 | } | |
14360 | ||
14361 | ||
14362 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14363 | PyObject *resultobj; | |
14364 | wxString *arg1 = 0 ; | |
14365 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14366 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14367 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14368 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14369 | wxBitmap result; | |
e811c8ce RD |
14370 | bool temp1 = False ; |
14371 | bool temp2 = False ; | |
d14a1e28 RD |
14372 | wxSize temp3 ; |
14373 | PyObject * obj0 = 0 ; | |
14374 | PyObject * obj1 = 0 ; | |
14375 | PyObject * obj2 = 0 ; | |
14376 | char *kwnames[] = { | |
14377 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14378 | }; | |
14379 | ||
14380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14381 | { | |
14382 | arg1 = wxString_in_helper(obj0); | |
14383 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 14384 | temp1 = True; |
d14a1e28 RD |
14385 | } |
14386 | if (obj1) { | |
14387 | { | |
14388 | arg2 = wxString_in_helper(obj1); | |
14389 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14390 | temp2 = True; |
d14a1e28 RD |
14391 | } |
14392 | } | |
14393 | if (obj2) { | |
14394 | { | |
14395 | arg3 = &temp3; | |
14396 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14397 | } | |
14398 | } | |
14399 | { | |
14400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14401 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14402 | ||
14403 | wxPyEndAllowThreads(__tstate); | |
14404 | if (PyErr_Occurred()) SWIG_fail; | |
14405 | } | |
14406 | { | |
14407 | wxBitmap * resultptr; | |
14408 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 14409 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
14410 | } |
14411 | { | |
14412 | if (temp1) | |
14413 | delete arg1; | |
14414 | } | |
14415 | { | |
14416 | if (temp2) | |
14417 | delete arg2; | |
14418 | } | |
14419 | return resultobj; | |
14420 | fail: | |
14421 | { | |
14422 | if (temp1) | |
14423 | delete arg1; | |
14424 | } | |
14425 | { | |
14426 | if (temp2) | |
14427 | delete arg2; | |
14428 | } | |
14429 | return NULL; | |
14430 | } | |
14431 | ||
14432 | ||
14433 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14434 | PyObject *resultobj; | |
14435 | wxString *arg1 = 0 ; | |
14436 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14437 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14438 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14439 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14440 | wxIcon result; | |
e811c8ce RD |
14441 | bool temp1 = False ; |
14442 | bool temp2 = False ; | |
d14a1e28 RD |
14443 | wxSize temp3 ; |
14444 | PyObject * obj0 = 0 ; | |
14445 | PyObject * obj1 = 0 ; | |
14446 | PyObject * obj2 = 0 ; | |
14447 | char *kwnames[] = { | |
14448 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14449 | }; | |
14450 | ||
14451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14452 | { | |
14453 | arg1 = wxString_in_helper(obj0); | |
14454 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 14455 | temp1 = True; |
d14a1e28 RD |
14456 | } |
14457 | if (obj1) { | |
14458 | { | |
14459 | arg2 = wxString_in_helper(obj1); | |
14460 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14461 | temp2 = True; |
d14a1e28 RD |
14462 | } |
14463 | } | |
14464 | if (obj2) { | |
14465 | { | |
14466 | arg3 = &temp3; | |
14467 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14468 | } | |
14469 | } | |
14470 | { | |
14471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14472 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14473 | ||
14474 | wxPyEndAllowThreads(__tstate); | |
14475 | if (PyErr_Occurred()) SWIG_fail; | |
14476 | } | |
14477 | { | |
14478 | wxIcon * resultptr; | |
14479 | resultptr = new wxIcon((wxIcon &) result); | |
15afbcd0 | 14480 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
14481 | } |
14482 | { | |
14483 | if (temp1) | |
14484 | delete arg1; | |
14485 | } | |
14486 | { | |
14487 | if (temp2) | |
14488 | delete arg2; | |
14489 | } | |
14490 | return resultobj; | |
14491 | fail: | |
14492 | { | |
14493 | if (temp1) | |
14494 | delete arg1; | |
14495 | } | |
14496 | { | |
14497 | if (temp2) | |
14498 | delete arg2; | |
14499 | } | |
14500 | return NULL; | |
14501 | } | |
14502 | ||
14503 | ||
1e0c8722 RD |
14504 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
14505 | PyObject *resultobj; | |
14506 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14507 | PyObject * obj0 = 0 ; | |
14508 | char *kwnames[] = { | |
14509 | (char *) "self", NULL | |
14510 | }; | |
14511 | ||
14512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
14515 | { |
14516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14517 | wxPyArtProvider_Destroy(arg1); | |
14518 | ||
14519 | wxPyEndAllowThreads(__tstate); | |
14520 | if (PyErr_Occurred()) SWIG_fail; | |
14521 | } | |
14522 | Py_INCREF(Py_None); resultobj = Py_None; | |
14523 | return resultobj; | |
14524 | fail: | |
14525 | return NULL; | |
14526 | } | |
14527 | ||
14528 | ||
d14a1e28 RD |
14529 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { |
14530 | PyObject *obj; | |
14531 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14532 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
14533 | Py_INCREF(obj); | |
14534 | return Py_BuildValue((char *)""); | |
14535 | } | |
14536 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14537 | PyObject *resultobj; | |
14538 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14539 | PyObject * obj0 = 0 ; | |
14540 | char *kwnames[] = { | |
14541 | (char *) "self", NULL | |
14542 | }; | |
14543 | ||
14544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14547 | { |
14548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14549 | delete arg1; | |
14550 | ||
14551 | wxPyEndAllowThreads(__tstate); | |
14552 | if (PyErr_Occurred()) SWIG_fail; | |
14553 | } | |
14554 | Py_INCREF(Py_None); resultobj = Py_None; | |
14555 | return resultobj; | |
14556 | fail: | |
14557 | return NULL; | |
14558 | } | |
14559 | ||
14560 | ||
14561 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14562 | PyObject *resultobj; | |
14563 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14564 | wxConfigBase *result; | |
14565 | PyObject * obj0 = 0 ; | |
14566 | char *kwnames[] = { | |
b88bce5f | 14567 | (char *) "config", NULL |
d14a1e28 RD |
14568 | }; |
14569 | ||
14570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14573 | { |
14574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14575 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
14576 | ||
14577 | wxPyEndAllowThreads(__tstate); | |
14578 | if (PyErr_Occurred()) SWIG_fail; | |
14579 | } | |
15afbcd0 | 14580 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14581 | return resultobj; |
14582 | fail: | |
14583 | return NULL; | |
14584 | } | |
14585 | ||
14586 | ||
14587 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14588 | PyObject *resultobj; | |
e811c8ce | 14589 | bool arg1 = (bool) True ; |
d14a1e28 RD |
14590 | wxConfigBase *result; |
14591 | PyObject * obj0 = 0 ; | |
14592 | char *kwnames[] = { | |
14593 | (char *) "createOnDemand", NULL | |
14594 | }; | |
14595 | ||
14596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
14597 | if (obj0) { | |
15afbcd0 RD |
14598 | arg1 = (bool) SWIG_AsBool(obj0); |
14599 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14600 | } |
14601 | { | |
14602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14603 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
14604 | ||
14605 | wxPyEndAllowThreads(__tstate); | |
14606 | if (PyErr_Occurred()) SWIG_fail; | |
14607 | } | |
15afbcd0 | 14608 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14609 | return resultobj; |
14610 | fail: | |
14611 | return NULL; | |
14612 | } | |
14613 | ||
14614 | ||
14615 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14616 | PyObject *resultobj; | |
14617 | wxConfigBase *result; | |
14618 | char *kwnames[] = { | |
14619 | NULL | |
14620 | }; | |
14621 | ||
14622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
14623 | { | |
14624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14625 | result = (wxConfigBase *)wxConfigBase::Create(); | |
14626 | ||
14627 | wxPyEndAllowThreads(__tstate); | |
14628 | if (PyErr_Occurred()) SWIG_fail; | |
14629 | } | |
15afbcd0 | 14630 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14631 | return resultobj; |
14632 | fail: | |
14633 | return NULL; | |
14634 | } | |
14635 | ||
14636 | ||
14637 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14638 | PyObject *resultobj; | |
14639 | char *kwnames[] = { | |
14640 | NULL | |
14641 | }; | |
14642 | ||
14643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
14644 | { | |
14645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14646 | wxConfigBase::DontCreateOnDemand(); | |
14647 | ||
14648 | wxPyEndAllowThreads(__tstate); | |
14649 | if (PyErr_Occurred()) SWIG_fail; | |
14650 | } | |
14651 | Py_INCREF(Py_None); resultobj = Py_None; | |
14652 | return resultobj; | |
14653 | fail: | |
14654 | return NULL; | |
14655 | } | |
14656 | ||
14657 | ||
14658 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14659 | PyObject *resultobj; | |
14660 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14661 | wxString *arg2 = 0 ; | |
e811c8ce | 14662 | bool temp2 = False ; |
d14a1e28 RD |
14663 | PyObject * obj0 = 0 ; |
14664 | PyObject * obj1 = 0 ; | |
14665 | char *kwnames[] = { | |
b88bce5f | 14666 | (char *) "self",(char *) "path", NULL |
d14a1e28 RD |
14667 | }; |
14668 | ||
14669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14672 | { |
14673 | arg2 = wxString_in_helper(obj1); | |
14674 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14675 | temp2 = True; |
d14a1e28 RD |
14676 | } |
14677 | { | |
14678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14679 | (arg1)->SetPath((wxString const &)*arg2); | |
14680 | ||
14681 | wxPyEndAllowThreads(__tstate); | |
14682 | if (PyErr_Occurred()) SWIG_fail; | |
14683 | } | |
14684 | Py_INCREF(Py_None); resultobj = Py_None; | |
14685 | { | |
14686 | if (temp2) | |
14687 | delete arg2; | |
14688 | } | |
14689 | return resultobj; | |
14690 | fail: | |
14691 | { | |
14692 | if (temp2) | |
14693 | delete arg2; | |
14694 | } | |
14695 | return NULL; | |
14696 | } | |
14697 | ||
14698 | ||
14699 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14700 | PyObject *resultobj; | |
14701 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14702 | wxString *result; | |
14703 | PyObject * obj0 = 0 ; | |
14704 | char *kwnames[] = { | |
14705 | (char *) "self", NULL | |
14706 | }; | |
14707 | ||
14708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14711 | { |
14712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14713 | { | |
14714 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
14715 | result = (wxString *) &_result_ref; | |
14716 | } | |
14717 | ||
14718 | wxPyEndAllowThreads(__tstate); | |
14719 | if (PyErr_Occurred()) SWIG_fail; | |
14720 | } | |
cc6dd355 RD |
14721 | { |
14722 | #if wxUSE_UNICODE | |
14723 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14724 | #else | |
14725 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14726 | #endif | |
14727 | } | |
d14a1e28 RD |
14728 | return resultobj; |
14729 | fail: | |
14730 | return NULL; | |
14731 | } | |
14732 | ||
14733 | ||
14734 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14735 | PyObject *resultobj; | |
14736 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14737 | PyObject *result; | |
14738 | PyObject * obj0 = 0 ; | |
14739 | char *kwnames[] = { | |
14740 | (char *) "self", NULL | |
14741 | }; | |
14742 | ||
14743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14746 | { |
14747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14748 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
14749 | ||
14750 | wxPyEndAllowThreads(__tstate); | |
14751 | if (PyErr_Occurred()) SWIG_fail; | |
14752 | } | |
14753 | resultobj = result; | |
14754 | return resultobj; | |
14755 | fail: | |
14756 | return NULL; | |
14757 | } | |
14758 | ||
14759 | ||
14760 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14761 | PyObject *resultobj; | |
14762 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14763 | long arg2 ; | |
14764 | PyObject *result; | |
14765 | PyObject * obj0 = 0 ; | |
994141e6 | 14766 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14767 | char *kwnames[] = { |
14768 | (char *) "self",(char *) "index", NULL | |
14769 | }; | |
14770 | ||
994141e6 | 14771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14774 | arg2 = (long) SWIG_AsLong(obj1); | |
14775 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14776 | { |
14777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14778 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
14779 | ||
14780 | wxPyEndAllowThreads(__tstate); | |
14781 | if (PyErr_Occurred()) SWIG_fail; | |
14782 | } | |
14783 | resultobj = result; | |
14784 | return resultobj; | |
14785 | fail: | |
14786 | return NULL; | |
14787 | } | |
14788 | ||
14789 | ||
14790 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14791 | PyObject *resultobj; | |
14792 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14793 | PyObject *result; | |
14794 | PyObject * obj0 = 0 ; | |
14795 | char *kwnames[] = { | |
14796 | (char *) "self", NULL | |
14797 | }; | |
14798 | ||
14799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14802 | { |
14803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14804 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
14805 | ||
14806 | wxPyEndAllowThreads(__tstate); | |
14807 | if (PyErr_Occurred()) SWIG_fail; | |
14808 | } | |
14809 | resultobj = result; | |
14810 | return resultobj; | |
14811 | fail: | |
14812 | return NULL; | |
14813 | } | |
14814 | ||
14815 | ||
14816 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14817 | PyObject *resultobj; | |
14818 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14819 | long arg2 ; | |
14820 | PyObject *result; | |
14821 | PyObject * obj0 = 0 ; | |
994141e6 | 14822 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14823 | char *kwnames[] = { |
14824 | (char *) "self",(char *) "index", NULL | |
14825 | }; | |
14826 | ||
994141e6 | 14827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14830 | arg2 = (long) SWIG_AsLong(obj1); | |
14831 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14832 | { |
14833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14834 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
14835 | ||
14836 | wxPyEndAllowThreads(__tstate); | |
14837 | if (PyErr_Occurred()) SWIG_fail; | |
14838 | } | |
14839 | resultobj = result; | |
14840 | return resultobj; | |
14841 | fail: | |
14842 | return NULL; | |
14843 | } | |
14844 | ||
14845 | ||
14846 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14847 | PyObject *resultobj; | |
14848 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 14849 | bool arg2 = (bool) False ; |
d14a1e28 RD |
14850 | size_t result; |
14851 | PyObject * obj0 = 0 ; | |
14852 | PyObject * obj1 = 0 ; | |
14853 | char *kwnames[] = { | |
b88bce5f | 14854 | (char *) "self",(char *) "recursive", NULL |
d14a1e28 RD |
14855 | }; |
14856 | ||
14857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 14860 | if (obj1) { |
15afbcd0 RD |
14861 | arg2 = (bool) SWIG_AsBool(obj1); |
14862 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14863 | } |
14864 | { | |
14865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14866 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
14867 | ||
14868 | wxPyEndAllowThreads(__tstate); | |
14869 | if (PyErr_Occurred()) SWIG_fail; | |
14870 | } | |
15afbcd0 | 14871 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
14872 | return resultobj; |
14873 | fail: | |
14874 | return NULL; | |
14875 | } | |
14876 | ||
14877 | ||
14878 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14879 | PyObject *resultobj; | |
14880 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 14881 | bool arg2 = (bool) False ; |
d14a1e28 RD |
14882 | size_t result; |
14883 | PyObject * obj0 = 0 ; | |
14884 | PyObject * obj1 = 0 ; | |
14885 | char *kwnames[] = { | |
b88bce5f | 14886 | (char *) "self",(char *) "recursive", NULL |
d14a1e28 RD |
14887 | }; |
14888 | ||
14889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 14892 | if (obj1) { |
15afbcd0 RD |
14893 | arg2 = (bool) SWIG_AsBool(obj1); |
14894 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14895 | } |
14896 | { | |
14897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14898 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
14899 | ||
14900 | wxPyEndAllowThreads(__tstate); | |
14901 | if (PyErr_Occurred()) SWIG_fail; | |
14902 | } | |
15afbcd0 | 14903 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
14904 | return resultobj; |
14905 | fail: | |
14906 | return NULL; | |
14907 | } | |
14908 | ||
14909 | ||
14910 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14911 | PyObject *resultobj; | |
14912 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14913 | wxString *arg2 = 0 ; | |
14914 | bool result; | |
e811c8ce | 14915 | bool temp2 = False ; |
d14a1e28 RD |
14916 | PyObject * obj0 = 0 ; |
14917 | PyObject * obj1 = 0 ; | |
14918 | char *kwnames[] = { | |
b88bce5f | 14919 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
14920 | }; |
14921 | ||
14922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14925 | { |
14926 | arg2 = wxString_in_helper(obj1); | |
14927 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14928 | temp2 = True; |
d14a1e28 RD |
14929 | } |
14930 | { | |
14931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14932 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
14933 | ||
14934 | wxPyEndAllowThreads(__tstate); | |
14935 | if (PyErr_Occurred()) SWIG_fail; | |
14936 | } | |
4f89f6a3 RD |
14937 | { |
14938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14939 | } | |
d14a1e28 RD |
14940 | { |
14941 | if (temp2) | |
14942 | delete arg2; | |
14943 | } | |
14944 | return resultobj; | |
14945 | fail: | |
14946 | { | |
14947 | if (temp2) | |
14948 | delete arg2; | |
14949 | } | |
14950 | return NULL; | |
14951 | } | |
14952 | ||
14953 | ||
14954 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14955 | PyObject *resultobj; | |
14956 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14957 | wxString *arg2 = 0 ; | |
14958 | bool result; | |
e811c8ce | 14959 | bool temp2 = False ; |
d14a1e28 RD |
14960 | PyObject * obj0 = 0 ; |
14961 | PyObject * obj1 = 0 ; | |
14962 | char *kwnames[] = { | |
b88bce5f | 14963 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
14964 | }; |
14965 | ||
14966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",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 RD |
14969 | { |
14970 | arg2 = wxString_in_helper(obj1); | |
14971 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14972 | temp2 = True; |
d14a1e28 RD |
14973 | } |
14974 | { | |
14975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14976 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
14977 | ||
14978 | wxPyEndAllowThreads(__tstate); | |
14979 | if (PyErr_Occurred()) SWIG_fail; | |
14980 | } | |
4f89f6a3 RD |
14981 | { |
14982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14983 | } | |
d14a1e28 RD |
14984 | { |
14985 | if (temp2) | |
14986 | delete arg2; | |
14987 | } | |
14988 | return resultobj; | |
14989 | fail: | |
14990 | { | |
14991 | if (temp2) | |
14992 | delete arg2; | |
14993 | } | |
14994 | return NULL; | |
14995 | } | |
14996 | ||
14997 | ||
14998 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14999 | PyObject *resultobj; | |
15000 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15001 | wxString *arg2 = 0 ; | |
15002 | bool result; | |
e811c8ce | 15003 | bool temp2 = False ; |
d14a1e28 RD |
15004 | PyObject * obj0 = 0 ; |
15005 | PyObject * obj1 = 0 ; | |
15006 | char *kwnames[] = { | |
b88bce5f | 15007 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
15008 | }; |
15009 | ||
15010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15013 | { |
15014 | arg2 = wxString_in_helper(obj1); | |
15015 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15016 | temp2 = True; |
d14a1e28 RD |
15017 | } |
15018 | { | |
15019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15020 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
15021 | ||
15022 | wxPyEndAllowThreads(__tstate); | |
15023 | if (PyErr_Occurred()) SWIG_fail; | |
15024 | } | |
4f89f6a3 RD |
15025 | { |
15026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15027 | } | |
d14a1e28 RD |
15028 | { |
15029 | if (temp2) | |
15030 | delete arg2; | |
15031 | } | |
15032 | return resultobj; | |
15033 | fail: | |
15034 | { | |
15035 | if (temp2) | |
15036 | delete arg2; | |
15037 | } | |
15038 | return NULL; | |
15039 | } | |
15040 | ||
15041 | ||
15042 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15043 | PyObject *resultobj; | |
15044 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15045 | wxString *arg2 = 0 ; | |
15046 | int result; | |
e811c8ce | 15047 | bool temp2 = False ; |
d14a1e28 RD |
15048 | PyObject * obj0 = 0 ; |
15049 | PyObject * obj1 = 0 ; | |
15050 | char *kwnames[] = { | |
15051 | (char *) "self",(char *) "name", NULL | |
15052 | }; | |
15053 | ||
15054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15057 | { |
15058 | arg2 = wxString_in_helper(obj1); | |
15059 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15060 | temp2 = True; |
d14a1e28 RD |
15061 | } |
15062 | { | |
15063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15064 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
15065 | ||
15066 | wxPyEndAllowThreads(__tstate); | |
15067 | if (PyErr_Occurred()) SWIG_fail; | |
15068 | } | |
15afbcd0 | 15069 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15070 | { |
15071 | if (temp2) | |
15072 | delete arg2; | |
15073 | } | |
15074 | return resultobj; | |
15075 | fail: | |
15076 | { | |
15077 | if (temp2) | |
15078 | delete arg2; | |
15079 | } | |
15080 | return NULL; | |
15081 | } | |
15082 | ||
15083 | ||
15084 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15085 | PyObject *resultobj; | |
15086 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15087 | wxString *arg2 = 0 ; | |
15088 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15089 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15090 | wxString result; | |
e811c8ce RD |
15091 | bool temp2 = False ; |
15092 | bool temp3 = False ; | |
d14a1e28 RD |
15093 | PyObject * obj0 = 0 ; |
15094 | PyObject * obj1 = 0 ; | |
15095 | PyObject * obj2 = 0 ; | |
15096 | char *kwnames[] = { | |
15097 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15098 | }; | |
15099 | ||
15100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15103 | { |
15104 | arg2 = wxString_in_helper(obj1); | |
15105 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15106 | temp2 = True; |
d14a1e28 RD |
15107 | } |
15108 | if (obj2) { | |
15109 | { | |
15110 | arg3 = wxString_in_helper(obj2); | |
15111 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15112 | temp3 = True; |
d14a1e28 RD |
15113 | } |
15114 | } | |
15115 | { | |
15116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15117 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
15118 | ||
15119 | wxPyEndAllowThreads(__tstate); | |
15120 | if (PyErr_Occurred()) SWIG_fail; | |
15121 | } | |
15122 | { | |
15123 | #if wxUSE_UNICODE | |
15124 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15125 | #else | |
15126 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15127 | #endif | |
15128 | } | |
15129 | { | |
15130 | if (temp2) | |
15131 | delete arg2; | |
15132 | } | |
15133 | { | |
15134 | if (temp3) | |
15135 | delete arg3; | |
15136 | } | |
15137 | return resultobj; | |
15138 | fail: | |
15139 | { | |
15140 | if (temp2) | |
15141 | delete arg2; | |
15142 | } | |
15143 | { | |
15144 | if (temp3) | |
15145 | delete arg3; | |
15146 | } | |
15147 | return NULL; | |
15148 | } | |
15149 | ||
15150 | ||
15151 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15152 | PyObject *resultobj; | |
15153 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15154 | wxString *arg2 = 0 ; | |
15155 | long arg3 = (long) 0 ; | |
15156 | long result; | |
e811c8ce | 15157 | bool temp2 = False ; |
d14a1e28 RD |
15158 | PyObject * obj0 = 0 ; |
15159 | PyObject * obj1 = 0 ; | |
994141e6 | 15160 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15161 | char *kwnames[] = { |
15162 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15163 | }; | |
15164 | ||
994141e6 | 15165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15168 | { |
15169 | arg2 = wxString_in_helper(obj1); | |
15170 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15171 | temp2 = True; |
d14a1e28 | 15172 | } |
994141e6 | 15173 | if (obj2) { |
15afbcd0 RD |
15174 | arg3 = (long) SWIG_AsLong(obj2); |
15175 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15176 | } |
d14a1e28 RD |
15177 | { |
15178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15179 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
15180 | ||
15181 | wxPyEndAllowThreads(__tstate); | |
15182 | if (PyErr_Occurred()) SWIG_fail; | |
15183 | } | |
15afbcd0 | 15184 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
15185 | { |
15186 | if (temp2) | |
15187 | delete arg2; | |
15188 | } | |
15189 | return resultobj; | |
15190 | fail: | |
15191 | { | |
15192 | if (temp2) | |
15193 | delete arg2; | |
15194 | } | |
15195 | return NULL; | |
15196 | } | |
15197 | ||
15198 | ||
15199 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15200 | PyObject *resultobj; | |
15201 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15202 | wxString *arg2 = 0 ; | |
15203 | double arg3 = (double) 0.0 ; | |
15204 | double result; | |
e811c8ce | 15205 | bool temp2 = False ; |
d14a1e28 RD |
15206 | PyObject * obj0 = 0 ; |
15207 | PyObject * obj1 = 0 ; | |
994141e6 | 15208 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15209 | char *kwnames[] = { |
15210 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15211 | }; | |
15212 | ||
994141e6 | 15213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15216 | { |
15217 | arg2 = wxString_in_helper(obj1); | |
15218 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15219 | temp2 = True; |
d14a1e28 | 15220 | } |
994141e6 | 15221 | if (obj2) { |
15afbcd0 RD |
15222 | arg3 = (double) SWIG_AsDouble(obj2); |
15223 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15224 | } |
d14a1e28 RD |
15225 | { |
15226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15227 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
15228 | ||
15229 | wxPyEndAllowThreads(__tstate); | |
15230 | if (PyErr_Occurred()) SWIG_fail; | |
15231 | } | |
15afbcd0 | 15232 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
15233 | { |
15234 | if (temp2) | |
15235 | delete arg2; | |
15236 | } | |
15237 | return resultobj; | |
15238 | fail: | |
15239 | { | |
15240 | if (temp2) | |
15241 | delete arg2; | |
15242 | } | |
15243 | return NULL; | |
15244 | } | |
15245 | ||
15246 | ||
15247 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15248 | PyObject *resultobj; | |
15249 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15250 | wxString *arg2 = 0 ; | |
e811c8ce | 15251 | bool arg3 = (bool) False ; |
d14a1e28 | 15252 | bool result; |
e811c8ce | 15253 | bool temp2 = False ; |
d14a1e28 RD |
15254 | PyObject * obj0 = 0 ; |
15255 | PyObject * obj1 = 0 ; | |
15256 | PyObject * obj2 = 0 ; | |
15257 | char *kwnames[] = { | |
15258 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15259 | }; | |
15260 | ||
15261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15264 | { |
15265 | arg2 = wxString_in_helper(obj1); | |
15266 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15267 | temp2 = True; |
d14a1e28 RD |
15268 | } |
15269 | if (obj2) { | |
15afbcd0 RD |
15270 | arg3 = (bool) SWIG_AsBool(obj2); |
15271 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15272 | } |
15273 | { | |
15274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15275 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
15276 | ||
15277 | wxPyEndAllowThreads(__tstate); | |
15278 | if (PyErr_Occurred()) SWIG_fail; | |
15279 | } | |
4f89f6a3 RD |
15280 | { |
15281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15282 | } | |
d14a1e28 RD |
15283 | { |
15284 | if (temp2) | |
15285 | delete arg2; | |
15286 | } | |
15287 | return resultobj; | |
15288 | fail: | |
15289 | { | |
15290 | if (temp2) | |
15291 | delete arg2; | |
15292 | } | |
15293 | return NULL; | |
15294 | } | |
15295 | ||
15296 | ||
15297 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15298 | PyObject *resultobj; | |
15299 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15300 | wxString *arg2 = 0 ; | |
15301 | wxString *arg3 = 0 ; | |
15302 | bool result; | |
e811c8ce RD |
15303 | bool temp2 = False ; |
15304 | bool temp3 = False ; | |
d14a1e28 RD |
15305 | PyObject * obj0 = 0 ; |
15306 | PyObject * obj1 = 0 ; | |
15307 | PyObject * obj2 = 0 ; | |
15308 | char *kwnames[] = { | |
15309 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15310 | }; | |
15311 | ||
15312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15315 | { |
15316 | arg2 = wxString_in_helper(obj1); | |
15317 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15318 | temp2 = True; |
d14a1e28 RD |
15319 | } |
15320 | { | |
15321 | arg3 = wxString_in_helper(obj2); | |
15322 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15323 | temp3 = True; |
d14a1e28 RD |
15324 | } |
15325 | { | |
15326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15327 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
15328 | ||
15329 | wxPyEndAllowThreads(__tstate); | |
15330 | if (PyErr_Occurred()) SWIG_fail; | |
15331 | } | |
4f89f6a3 RD |
15332 | { |
15333 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15334 | } | |
d14a1e28 RD |
15335 | { |
15336 | if (temp2) | |
15337 | delete arg2; | |
15338 | } | |
15339 | { | |
15340 | if (temp3) | |
15341 | delete arg3; | |
15342 | } | |
15343 | return resultobj; | |
15344 | fail: | |
15345 | { | |
15346 | if (temp2) | |
15347 | delete arg2; | |
15348 | } | |
15349 | { | |
15350 | if (temp3) | |
15351 | delete arg3; | |
15352 | } | |
15353 | return NULL; | |
15354 | } | |
15355 | ||
15356 | ||
15357 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15358 | PyObject *resultobj; | |
15359 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15360 | wxString *arg2 = 0 ; | |
15361 | long arg3 ; | |
15362 | bool result; | |
e811c8ce | 15363 | bool temp2 = False ; |
d14a1e28 RD |
15364 | PyObject * obj0 = 0 ; |
15365 | PyObject * obj1 = 0 ; | |
994141e6 | 15366 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15367 | char *kwnames[] = { |
15368 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15369 | }; | |
15370 | ||
994141e6 | 15371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15374 | { |
15375 | arg2 = wxString_in_helper(obj1); | |
15376 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15377 | temp2 = True; |
d14a1e28 | 15378 | } |
15afbcd0 RD |
15379 | arg3 = (long) SWIG_AsLong(obj2); |
15380 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15381 | { |
15382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15383 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15384 | ||
15385 | wxPyEndAllowThreads(__tstate); | |
15386 | if (PyErr_Occurred()) SWIG_fail; | |
15387 | } | |
4f89f6a3 RD |
15388 | { |
15389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15390 | } | |
d14a1e28 RD |
15391 | { |
15392 | if (temp2) | |
15393 | delete arg2; | |
15394 | } | |
15395 | return resultobj; | |
15396 | fail: | |
15397 | { | |
15398 | if (temp2) | |
15399 | delete arg2; | |
15400 | } | |
15401 | return NULL; | |
15402 | } | |
15403 | ||
15404 | ||
15405 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15406 | PyObject *resultobj; | |
15407 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15408 | wxString *arg2 = 0 ; | |
15409 | double arg3 ; | |
15410 | bool result; | |
e811c8ce | 15411 | bool temp2 = False ; |
d14a1e28 RD |
15412 | PyObject * obj0 = 0 ; |
15413 | PyObject * obj1 = 0 ; | |
994141e6 | 15414 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15415 | char *kwnames[] = { |
15416 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15417 | }; | |
15418 | ||
994141e6 | 15419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15422 | { |
15423 | arg2 = wxString_in_helper(obj1); | |
15424 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15425 | temp2 = True; |
d14a1e28 | 15426 | } |
15afbcd0 RD |
15427 | arg3 = (double) SWIG_AsDouble(obj2); |
15428 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15429 | { |
15430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15431 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15432 | ||
15433 | wxPyEndAllowThreads(__tstate); | |
15434 | if (PyErr_Occurred()) SWIG_fail; | |
15435 | } | |
4f89f6a3 RD |
15436 | { |
15437 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15438 | } | |
d14a1e28 RD |
15439 | { |
15440 | if (temp2) | |
15441 | delete arg2; | |
15442 | } | |
15443 | return resultobj; | |
15444 | fail: | |
15445 | { | |
15446 | if (temp2) | |
15447 | delete arg2; | |
15448 | } | |
15449 | return NULL; | |
15450 | } | |
15451 | ||
15452 | ||
15453 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15454 | PyObject *resultobj; | |
15455 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15456 | wxString *arg2 = 0 ; | |
15457 | bool arg3 ; | |
15458 | bool result; | |
e811c8ce | 15459 | bool temp2 = False ; |
d14a1e28 RD |
15460 | PyObject * obj0 = 0 ; |
15461 | PyObject * obj1 = 0 ; | |
15462 | PyObject * obj2 = 0 ; | |
15463 | char *kwnames[] = { | |
15464 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15465 | }; | |
15466 | ||
15467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15470 | { |
15471 | arg2 = wxString_in_helper(obj1); | |
15472 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15473 | temp2 = True; |
d14a1e28 | 15474 | } |
15afbcd0 RD |
15475 | arg3 = (bool) SWIG_AsBool(obj2); |
15476 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15477 | { |
15478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15479 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15480 | ||
15481 | wxPyEndAllowThreads(__tstate); | |
15482 | if (PyErr_Occurred()) SWIG_fail; | |
15483 | } | |
4f89f6a3 RD |
15484 | { |
15485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15486 | } | |
d14a1e28 RD |
15487 | { |
15488 | if (temp2) | |
15489 | delete arg2; | |
15490 | } | |
15491 | return resultobj; | |
15492 | fail: | |
15493 | { | |
15494 | if (temp2) | |
15495 | delete arg2; | |
15496 | } | |
15497 | return NULL; | |
15498 | } | |
15499 | ||
15500 | ||
15501 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15502 | PyObject *resultobj; | |
15503 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 15504 | bool arg2 = (bool) False ; |
d14a1e28 RD |
15505 | bool result; |
15506 | PyObject * obj0 = 0 ; | |
15507 | PyObject * obj1 = 0 ; | |
15508 | char *kwnames[] = { | |
b88bce5f | 15509 | (char *) "self",(char *) "currentOnly", NULL |
d14a1e28 RD |
15510 | }; |
15511 | ||
15512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15515 | if (obj1) { |
15afbcd0 RD |
15516 | arg2 = (bool) SWIG_AsBool(obj1); |
15517 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15518 | } |
15519 | { | |
15520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15521 | result = (bool)(arg1)->Flush(arg2); | |
15522 | ||
15523 | wxPyEndAllowThreads(__tstate); | |
15524 | if (PyErr_Occurred()) SWIG_fail; | |
15525 | } | |
4f89f6a3 RD |
15526 | { |
15527 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15528 | } | |
d14a1e28 RD |
15529 | return resultobj; |
15530 | fail: | |
15531 | return NULL; | |
15532 | } | |
15533 | ||
15534 | ||
15535 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15536 | PyObject *resultobj; | |
15537 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15538 | wxString *arg2 = 0 ; | |
15539 | wxString *arg3 = 0 ; | |
15540 | bool result; | |
e811c8ce RD |
15541 | bool temp2 = False ; |
15542 | bool temp3 = False ; | |
d14a1e28 RD |
15543 | PyObject * obj0 = 0 ; |
15544 | PyObject * obj1 = 0 ; | |
15545 | PyObject * obj2 = 0 ; | |
15546 | char *kwnames[] = { | |
15547 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15548 | }; | |
15549 | ||
15550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15553 | { |
15554 | arg2 = wxString_in_helper(obj1); | |
15555 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15556 | temp2 = True; |
d14a1e28 RD |
15557 | } |
15558 | { | |
15559 | arg3 = wxString_in_helper(obj2); | |
15560 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15561 | temp3 = True; |
d14a1e28 RD |
15562 | } |
15563 | { | |
15564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15565 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
15566 | ||
15567 | wxPyEndAllowThreads(__tstate); | |
15568 | if (PyErr_Occurred()) SWIG_fail; | |
15569 | } | |
4f89f6a3 RD |
15570 | { |
15571 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15572 | } | |
d14a1e28 RD |
15573 | { |
15574 | if (temp2) | |
15575 | delete arg2; | |
15576 | } | |
15577 | { | |
15578 | if (temp3) | |
15579 | delete arg3; | |
15580 | } | |
15581 | return resultobj; | |
15582 | fail: | |
15583 | { | |
15584 | if (temp2) | |
15585 | delete arg2; | |
15586 | } | |
15587 | { | |
15588 | if (temp3) | |
15589 | delete arg3; | |
15590 | } | |
15591 | return NULL; | |
15592 | } | |
15593 | ||
15594 | ||
15595 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15596 | PyObject *resultobj; | |
15597 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15598 | wxString *arg2 = 0 ; | |
15599 | wxString *arg3 = 0 ; | |
15600 | bool result; | |
e811c8ce RD |
15601 | bool temp2 = False ; |
15602 | bool temp3 = False ; | |
d14a1e28 RD |
15603 | PyObject * obj0 = 0 ; |
15604 | PyObject * obj1 = 0 ; | |
15605 | PyObject * obj2 = 0 ; | |
15606 | char *kwnames[] = { | |
15607 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15608 | }; | |
15609 | ||
15610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15613 | { |
15614 | arg2 = wxString_in_helper(obj1); | |
15615 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15616 | temp2 = True; |
d14a1e28 RD |
15617 | } |
15618 | { | |
15619 | arg3 = wxString_in_helper(obj2); | |
15620 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15621 | temp3 = True; |
d14a1e28 RD |
15622 | } |
15623 | { | |
15624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15625 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
15626 | ||
15627 | wxPyEndAllowThreads(__tstate); | |
15628 | if (PyErr_Occurred()) SWIG_fail; | |
15629 | } | |
4f89f6a3 RD |
15630 | { |
15631 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15632 | } | |
d14a1e28 RD |
15633 | { |
15634 | if (temp2) | |
15635 | delete arg2; | |
15636 | } | |
15637 | { | |
15638 | if (temp3) | |
15639 | delete arg3; | |
15640 | } | |
15641 | return resultobj; | |
15642 | fail: | |
15643 | { | |
15644 | if (temp2) | |
15645 | delete arg2; | |
15646 | } | |
15647 | { | |
15648 | if (temp3) | |
15649 | delete arg3; | |
15650 | } | |
15651 | return NULL; | |
15652 | } | |
15653 | ||
15654 | ||
15655 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15656 | PyObject *resultobj; | |
15657 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15658 | wxString *arg2 = 0 ; | |
e811c8ce | 15659 | bool arg3 = (bool) True ; |
d14a1e28 | 15660 | bool result; |
e811c8ce | 15661 | bool temp2 = False ; |
d14a1e28 RD |
15662 | PyObject * obj0 = 0 ; |
15663 | PyObject * obj1 = 0 ; | |
15664 | PyObject * obj2 = 0 ; | |
15665 | char *kwnames[] = { | |
b88bce5f | 15666 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL |
d14a1e28 RD |
15667 | }; |
15668 | ||
15669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15672 | { |
15673 | arg2 = wxString_in_helper(obj1); | |
15674 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15675 | temp2 = True; |
d14a1e28 RD |
15676 | } |
15677 | if (obj2) { | |
15afbcd0 RD |
15678 | arg3 = (bool) SWIG_AsBool(obj2); |
15679 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15680 | } |
15681 | { | |
15682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15683 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
15684 | ||
15685 | wxPyEndAllowThreads(__tstate); | |
15686 | if (PyErr_Occurred()) SWIG_fail; | |
15687 | } | |
4f89f6a3 RD |
15688 | { |
15689 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15690 | } | |
d14a1e28 RD |
15691 | { |
15692 | if (temp2) | |
15693 | delete arg2; | |
15694 | } | |
15695 | return resultobj; | |
15696 | fail: | |
15697 | { | |
15698 | if (temp2) | |
15699 | delete arg2; | |
15700 | } | |
15701 | return NULL; | |
15702 | } | |
15703 | ||
15704 | ||
15705 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15706 | PyObject *resultobj; | |
15707 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15708 | wxString *arg2 = 0 ; | |
15709 | bool result; | |
e811c8ce | 15710 | bool temp2 = False ; |
d14a1e28 RD |
15711 | PyObject * obj0 = 0 ; |
15712 | PyObject * obj1 = 0 ; | |
15713 | char *kwnames[] = { | |
15714 | (char *) "self",(char *) "key", NULL | |
15715 | }; | |
15716 | ||
15717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15720 | { |
15721 | arg2 = wxString_in_helper(obj1); | |
15722 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15723 | temp2 = True; |
d14a1e28 RD |
15724 | } |
15725 | { | |
15726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15727 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
15728 | ||
15729 | wxPyEndAllowThreads(__tstate); | |
15730 | if (PyErr_Occurred()) SWIG_fail; | |
15731 | } | |
4f89f6a3 RD |
15732 | { |
15733 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15734 | } | |
d14a1e28 RD |
15735 | { |
15736 | if (temp2) | |
15737 | delete arg2; | |
15738 | } | |
15739 | return resultobj; | |
15740 | fail: | |
15741 | { | |
15742 | if (temp2) | |
15743 | delete arg2; | |
15744 | } | |
15745 | return NULL; | |
15746 | } | |
15747 | ||
15748 | ||
15749 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15750 | PyObject *resultobj; | |
15751 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15752 | bool result; | |
15753 | PyObject * obj0 = 0 ; | |
15754 | char *kwnames[] = { | |
15755 | (char *) "self", NULL | |
15756 | }; | |
15757 | ||
15758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15761 | { |
15762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15763 | result = (bool)(arg1)->DeleteAll(); | |
15764 | ||
15765 | wxPyEndAllowThreads(__tstate); | |
15766 | if (PyErr_Occurred()) SWIG_fail; | |
15767 | } | |
4f89f6a3 RD |
15768 | { |
15769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15770 | } | |
d14a1e28 RD |
15771 | return resultobj; |
15772 | fail: | |
15773 | return NULL; | |
15774 | } | |
15775 | ||
15776 | ||
b88bce5f | 15777 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15778 | PyObject *resultobj; |
15779 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b88bce5f | 15780 | bool arg2 = (bool) True ; |
d14a1e28 | 15781 | PyObject * obj0 = 0 ; |
b88bce5f | 15782 | PyObject * obj1 = 0 ; |
d14a1e28 | 15783 | char *kwnames[] = { |
b88bce5f | 15784 | (char *) "self",(char *) "doIt", NULL |
d14a1e28 RD |
15785 | }; |
15786 | ||
b88bce5f | 15787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f | 15790 | if (obj1) { |
15afbcd0 RD |
15791 | arg2 = (bool) SWIG_AsBool(obj1); |
15792 | if (PyErr_Occurred()) SWIG_fail; | |
b88bce5f | 15793 | } |
d14a1e28 RD |
15794 | { |
15795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 15796 | (arg1)->SetExpandEnvVars(arg2); |
d14a1e28 RD |
15797 | |
15798 | wxPyEndAllowThreads(__tstate); | |
15799 | if (PyErr_Occurred()) SWIG_fail; | |
15800 | } | |
b88bce5f | 15801 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
15802 | return resultobj; |
15803 | fail: | |
15804 | return NULL; | |
15805 | } | |
15806 | ||
15807 | ||
b88bce5f | 15808 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15809 | PyObject *resultobj; |
15810 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b88bce5f | 15811 | bool result; |
d14a1e28 | 15812 | PyObject * obj0 = 0 ; |
d14a1e28 | 15813 | char *kwnames[] = { |
b88bce5f | 15814 | (char *) "self", NULL |
d14a1e28 RD |
15815 | }; |
15816 | ||
b88bce5f | 15817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
15818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15820 | { |
15821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 15822 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); |
d14a1e28 RD |
15823 | |
15824 | wxPyEndAllowThreads(__tstate); | |
15825 | if (PyErr_Occurred()) SWIG_fail; | |
15826 | } | |
4f89f6a3 RD |
15827 | { |
15828 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15829 | } | |
d14a1e28 RD |
15830 | return resultobj; |
15831 | fail: | |
15832 | return NULL; | |
15833 | } | |
15834 | ||
15835 | ||
15836 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15837 | PyObject *resultobj; | |
15838 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 15839 | bool arg2 = (bool) True ; |
d14a1e28 RD |
15840 | PyObject * obj0 = 0 ; |
15841 | PyObject * obj1 = 0 ; | |
15842 | char *kwnames[] = { | |
b88bce5f | 15843 | (char *) "self",(char *) "doIt", NULL |
d14a1e28 RD |
15844 | }; |
15845 | ||
15846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15849 | if (obj1) { |
15afbcd0 RD |
15850 | arg2 = (bool) SWIG_AsBool(obj1); |
15851 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15852 | } |
15853 | { | |
15854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15855 | (arg1)->SetRecordDefaults(arg2); | |
15856 | ||
15857 | wxPyEndAllowThreads(__tstate); | |
15858 | if (PyErr_Occurred()) SWIG_fail; | |
15859 | } | |
15860 | Py_INCREF(Py_None); resultobj = Py_None; | |
15861 | return resultobj; | |
15862 | fail: | |
15863 | return NULL; | |
15864 | } | |
15865 | ||
15866 | ||
15867 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15868 | PyObject *resultobj; | |
15869 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15870 | bool result; | |
15871 | PyObject * obj0 = 0 ; | |
15872 | char *kwnames[] = { | |
15873 | (char *) "self", NULL | |
15874 | }; | |
15875 | ||
15876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15879 | { |
15880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15881 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
15882 | ||
15883 | wxPyEndAllowThreads(__tstate); | |
15884 | if (PyErr_Occurred()) SWIG_fail; | |
15885 | } | |
4f89f6a3 RD |
15886 | { |
15887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15888 | } | |
d14a1e28 RD |
15889 | return resultobj; |
15890 | fail: | |
15891 | return NULL; | |
15892 | } | |
15893 | ||
15894 | ||
15895 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15896 | PyObject *resultobj; | |
15897 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15898 | wxString *arg2 = 0 ; | |
15899 | wxString result; | |
e811c8ce | 15900 | bool temp2 = False ; |
d14a1e28 RD |
15901 | PyObject * obj0 = 0 ; |
15902 | PyObject * obj1 = 0 ; | |
15903 | char *kwnames[] = { | |
15904 | (char *) "self",(char *) "str", NULL | |
15905 | }; | |
15906 | ||
15907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15910 | { |
15911 | arg2 = wxString_in_helper(obj1); | |
15912 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15913 | temp2 = True; |
d14a1e28 RD |
15914 | } |
15915 | { | |
15916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15917 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
15918 | ||
15919 | wxPyEndAllowThreads(__tstate); | |
15920 | if (PyErr_Occurred()) SWIG_fail; | |
15921 | } | |
15922 | { | |
15923 | #if wxUSE_UNICODE | |
15924 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15925 | #else | |
15926 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15927 | #endif | |
15928 | } | |
15929 | { | |
15930 | if (temp2) | |
15931 | delete arg2; | |
15932 | } | |
15933 | return resultobj; | |
15934 | fail: | |
15935 | { | |
15936 | if (temp2) | |
15937 | delete arg2; | |
15938 | } | |
15939 | return NULL; | |
15940 | } | |
15941 | ||
15942 | ||
15943 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15944 | PyObject *resultobj; | |
15945 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15946 | wxString result; | |
15947 | PyObject * obj0 = 0 ; | |
15948 | char *kwnames[] = { | |
15949 | (char *) "self", NULL | |
15950 | }; | |
15951 | ||
15952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15955 | { |
15956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15957 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
15958 | ||
15959 | wxPyEndAllowThreads(__tstate); | |
15960 | if (PyErr_Occurred()) SWIG_fail; | |
15961 | } | |
15962 | { | |
15963 | #if wxUSE_UNICODE | |
15964 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15965 | #else | |
15966 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15967 | #endif | |
15968 | } | |
15969 | return resultobj; | |
15970 | fail: | |
15971 | return NULL; | |
15972 | } | |
15973 | ||
15974 | ||
15975 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15976 | PyObject *resultobj; | |
15977 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15978 | wxString result; | |
15979 | PyObject * obj0 = 0 ; | |
15980 | char *kwnames[] = { | |
15981 | (char *) "self", NULL | |
15982 | }; | |
15983 | ||
15984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) 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 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15989 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
15990 | ||
15991 | wxPyEndAllowThreads(__tstate); | |
15992 | if (PyErr_Occurred()) SWIG_fail; | |
15993 | } | |
15994 | { | |
15995 | #if wxUSE_UNICODE | |
15996 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15997 | #else | |
15998 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15999 | #endif | |
16000 | } | |
16001 | return resultobj; | |
16002 | fail: | |
16003 | return NULL; | |
16004 | } | |
16005 | ||
16006 | ||
16007 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16008 | PyObject *resultobj; | |
16009 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16010 | wxString *arg2 = 0 ; | |
e811c8ce | 16011 | bool temp2 = False ; |
d14a1e28 RD |
16012 | PyObject * obj0 = 0 ; |
16013 | PyObject * obj1 = 0 ; | |
16014 | char *kwnames[] = { | |
16015 | (char *) "self",(char *) "appName", NULL | |
16016 | }; | |
16017 | ||
16018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16021 | { |
16022 | arg2 = wxString_in_helper(obj1); | |
16023 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16024 | temp2 = True; |
d14a1e28 RD |
16025 | } |
16026 | { | |
16027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16028 | (arg1)->SetAppName((wxString const &)*arg2); | |
16029 | ||
16030 | wxPyEndAllowThreads(__tstate); | |
16031 | if (PyErr_Occurred()) SWIG_fail; | |
16032 | } | |
16033 | Py_INCREF(Py_None); resultobj = Py_None; | |
16034 | { | |
16035 | if (temp2) | |
16036 | delete arg2; | |
16037 | } | |
16038 | return resultobj; | |
16039 | fail: | |
16040 | { | |
16041 | if (temp2) | |
16042 | delete arg2; | |
16043 | } | |
16044 | return NULL; | |
16045 | } | |
16046 | ||
16047 | ||
16048 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16049 | PyObject *resultobj; | |
16050 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16051 | wxString *arg2 = 0 ; | |
e811c8ce | 16052 | bool temp2 = False ; |
d14a1e28 RD |
16053 | PyObject * obj0 = 0 ; |
16054 | PyObject * obj1 = 0 ; | |
16055 | char *kwnames[] = { | |
16056 | (char *) "self",(char *) "vendorName", NULL | |
16057 | }; | |
16058 | ||
16059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16062 | { |
16063 | arg2 = wxString_in_helper(obj1); | |
16064 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16065 | temp2 = True; |
d14a1e28 RD |
16066 | } |
16067 | { | |
16068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16069 | (arg1)->SetVendorName((wxString const &)*arg2); | |
16070 | ||
16071 | wxPyEndAllowThreads(__tstate); | |
16072 | if (PyErr_Occurred()) SWIG_fail; | |
16073 | } | |
16074 | Py_INCREF(Py_None); resultobj = Py_None; | |
16075 | { | |
16076 | if (temp2) | |
16077 | delete arg2; | |
16078 | } | |
16079 | return resultobj; | |
16080 | fail: | |
16081 | { | |
16082 | if (temp2) | |
16083 | delete arg2; | |
16084 | } | |
16085 | return NULL; | |
16086 | } | |
16087 | ||
16088 | ||
16089 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16090 | PyObject *resultobj; | |
16091 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16092 | long arg2 ; | |
16093 | PyObject * obj0 = 0 ; | |
994141e6 | 16094 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16095 | char *kwnames[] = { |
16096 | (char *) "self",(char *) "style", NULL | |
16097 | }; | |
16098 | ||
994141e6 | 16099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16102 | arg2 = (long) SWIG_AsLong(obj1); | |
16103 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16104 | { |
16105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16106 | (arg1)->SetStyle(arg2); | |
16107 | ||
16108 | wxPyEndAllowThreads(__tstate); | |
16109 | if (PyErr_Occurred()) SWIG_fail; | |
16110 | } | |
16111 | Py_INCREF(Py_None); resultobj = Py_None; | |
16112 | return resultobj; | |
16113 | fail: | |
16114 | return NULL; | |
16115 | } | |
16116 | ||
16117 | ||
16118 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16119 | PyObject *resultobj; | |
16120 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16121 | long result; | |
16122 | PyObject * obj0 = 0 ; | |
16123 | char *kwnames[] = { | |
16124 | (char *) "self", NULL | |
16125 | }; | |
16126 | ||
16127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16130 | { |
16131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16132 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
16133 | ||
16134 | wxPyEndAllowThreads(__tstate); | |
16135 | if (PyErr_Occurred()) SWIG_fail; | |
16136 | } | |
15afbcd0 | 16137 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
16138 | return resultobj; |
16139 | fail: | |
16140 | return NULL; | |
16141 | } | |
16142 | ||
16143 | ||
16144 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
16145 | PyObject *obj; | |
16146 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16147 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
16148 | Py_INCREF(obj); | |
16149 | return Py_BuildValue((char *)""); | |
16150 | } | |
d14a1e28 RD |
16151 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { |
16152 | PyObject *resultobj; | |
16153 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16154 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16155 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16156 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16157 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16158 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16159 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16160 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4f89f6a3 | 16161 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; |
d14a1e28 | 16162 | wxConfig *result; |
e811c8ce RD |
16163 | bool temp1 = False ; |
16164 | bool temp2 = False ; | |
16165 | bool temp3 = False ; | |
16166 | bool temp4 = False ; | |
d14a1e28 RD |
16167 | PyObject * obj0 = 0 ; |
16168 | PyObject * obj1 = 0 ; | |
16169 | PyObject * obj2 = 0 ; | |
16170 | PyObject * obj3 = 0 ; | |
994141e6 | 16171 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16172 | char *kwnames[] = { |
16173 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16174 | }; | |
16175 | ||
994141e6 | 16176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
16177 | if (obj0) { |
16178 | { | |
16179 | arg1 = wxString_in_helper(obj0); | |
16180 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16181 | temp1 = True; |
d14a1e28 RD |
16182 | } |
16183 | } | |
16184 | if (obj1) { | |
16185 | { | |
16186 | arg2 = wxString_in_helper(obj1); | |
16187 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16188 | temp2 = True; |
d14a1e28 RD |
16189 | } |
16190 | } | |
16191 | if (obj2) { | |
16192 | { | |
16193 | arg3 = wxString_in_helper(obj2); | |
16194 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16195 | temp3 = True; |
d14a1e28 RD |
16196 | } |
16197 | } | |
16198 | if (obj3) { | |
16199 | { | |
16200 | arg4 = wxString_in_helper(obj3); | |
16201 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 16202 | temp4 = True; |
d14a1e28 RD |
16203 | } |
16204 | } | |
994141e6 | 16205 | if (obj4) { |
15afbcd0 RD |
16206 | arg5 = (long) SWIG_AsLong(obj4); |
16207 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16208 | } |
d14a1e28 RD |
16209 | { |
16210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16211 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16212 | ||
16213 | wxPyEndAllowThreads(__tstate); | |
16214 | if (PyErr_Occurred()) SWIG_fail; | |
16215 | } | |
15afbcd0 | 16216 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); |
d14a1e28 RD |
16217 | { |
16218 | if (temp1) | |
16219 | delete arg1; | |
16220 | } | |
16221 | { | |
16222 | if (temp2) | |
16223 | delete arg2; | |
16224 | } | |
16225 | { | |
16226 | if (temp3) | |
16227 | delete arg3; | |
16228 | } | |
16229 | { | |
16230 | if (temp4) | |
16231 | delete arg4; | |
16232 | } | |
16233 | return resultobj; | |
16234 | fail: | |
16235 | { | |
16236 | if (temp1) | |
16237 | delete arg1; | |
16238 | } | |
16239 | { | |
16240 | if (temp2) | |
16241 | delete arg2; | |
16242 | } | |
16243 | { | |
16244 | if (temp3) | |
16245 | delete arg3; | |
16246 | } | |
16247 | { | |
16248 | if (temp4) | |
16249 | delete arg4; | |
16250 | } | |
16251 | return NULL; | |
16252 | } | |
16253 | ||
16254 | ||
16255 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16256 | PyObject *resultobj; | |
16257 | wxConfig *arg1 = (wxConfig *) 0 ; | |
16258 | PyObject * obj0 = 0 ; | |
16259 | char *kwnames[] = { | |
16260 | (char *) "self", NULL | |
16261 | }; | |
16262 | ||
16263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig, |
16265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16266 | { |
16267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16268 | delete arg1; | |
16269 | ||
16270 | wxPyEndAllowThreads(__tstate); | |
16271 | if (PyErr_Occurred()) SWIG_fail; | |
16272 | } | |
16273 | Py_INCREF(Py_None); resultobj = Py_None; | |
16274 | return resultobj; | |
16275 | fail: | |
16276 | return NULL; | |
16277 | } | |
16278 | ||
16279 | ||
16280 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
16281 | PyObject *obj; | |
16282 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16283 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
16284 | Py_INCREF(obj); | |
16285 | return Py_BuildValue((char *)""); | |
16286 | } | |
16287 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16288 | PyObject *resultobj; | |
16289 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16290 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16291 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16292 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16293 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16294 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16295 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16296 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4276dc52 | 16297 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; |
d14a1e28 | 16298 | wxFileConfig *result; |
e811c8ce RD |
16299 | bool temp1 = False ; |
16300 | bool temp2 = False ; | |
16301 | bool temp3 = False ; | |
16302 | bool temp4 = False ; | |
d14a1e28 RD |
16303 | PyObject * obj0 = 0 ; |
16304 | PyObject * obj1 = 0 ; | |
16305 | PyObject * obj2 = 0 ; | |
16306 | PyObject * obj3 = 0 ; | |
994141e6 | 16307 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16308 | char *kwnames[] = { |
16309 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16310 | }; | |
16311 | ||
994141e6 | 16312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
16313 | if (obj0) { |
16314 | { | |
16315 | arg1 = wxString_in_helper(obj0); | |
16316 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16317 | temp1 = True; |
d14a1e28 RD |
16318 | } |
16319 | } | |
16320 | if (obj1) { | |
16321 | { | |
16322 | arg2 = wxString_in_helper(obj1); | |
16323 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16324 | temp2 = True; |
d14a1e28 RD |
16325 | } |
16326 | } | |
16327 | if (obj2) { | |
16328 | { | |
16329 | arg3 = wxString_in_helper(obj2); | |
16330 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16331 | temp3 = True; |
d14a1e28 RD |
16332 | } |
16333 | } | |
16334 | if (obj3) { | |
16335 | { | |
16336 | arg4 = wxString_in_helper(obj3); | |
16337 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 16338 | temp4 = True; |
d14a1e28 RD |
16339 | } |
16340 | } | |
994141e6 | 16341 | if (obj4) { |
15afbcd0 RD |
16342 | arg5 = (long) SWIG_AsLong(obj4); |
16343 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16344 | } |
d14a1e28 RD |
16345 | { |
16346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16347 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16348 | ||
16349 | wxPyEndAllowThreads(__tstate); | |
16350 | if (PyErr_Occurred()) SWIG_fail; | |
16351 | } | |
15afbcd0 | 16352 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); |
d14a1e28 RD |
16353 | { |
16354 | if (temp1) | |
16355 | delete arg1; | |
16356 | } | |
16357 | { | |
16358 | if (temp2) | |
16359 | delete arg2; | |
16360 | } | |
16361 | { | |
16362 | if (temp3) | |
16363 | delete arg3; | |
16364 | } | |
16365 | { | |
16366 | if (temp4) | |
16367 | delete arg4; | |
16368 | } | |
16369 | return resultobj; | |
16370 | fail: | |
16371 | { | |
16372 | if (temp1) | |
16373 | delete arg1; | |
16374 | } | |
16375 | { | |
16376 | if (temp2) | |
16377 | delete arg2; | |
16378 | } | |
16379 | { | |
16380 | if (temp3) | |
16381 | delete arg3; | |
16382 | } | |
16383 | { | |
16384 | if (temp4) | |
16385 | delete arg4; | |
16386 | } | |
16387 | return NULL; | |
16388 | } | |
16389 | ||
16390 | ||
16391 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16392 | PyObject *resultobj; | |
16393 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
16394 | PyObject * obj0 = 0 ; | |
16395 | char *kwnames[] = { | |
16396 | (char *) "self", NULL | |
16397 | }; | |
16398 | ||
16399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig, |
16401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16402 | { |
16403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16404 | delete arg1; | |
16405 | ||
16406 | wxPyEndAllowThreads(__tstate); | |
16407 | if (PyErr_Occurred()) SWIG_fail; | |
16408 | } | |
16409 | Py_INCREF(Py_None); resultobj = Py_None; | |
16410 | return resultobj; | |
16411 | fail: | |
16412 | return NULL; | |
16413 | } | |
16414 | ||
16415 | ||
16416 | static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
16417 | PyObject *obj; | |
16418 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16419 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
16420 | Py_INCREF(obj); | |
16421 | return Py_BuildValue((char *)""); | |
16422 | } | |
b88bce5f RD |
16423 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { |
16424 | PyObject *resultobj; | |
16425 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16426 | wxString *arg2 = 0 ; | |
16427 | wxConfigPathChanger *result; | |
16428 | bool temp2 = False ; | |
16429 | PyObject * obj0 = 0 ; | |
16430 | PyObject * obj1 = 0 ; | |
16431 | char *kwnames[] = { | |
16432 | (char *) "config",(char *) "entry", NULL | |
16433 | }; | |
16434 | ||
16435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
16438 | { |
16439 | arg2 = wxString_in_helper(obj1); | |
16440 | if (arg2 == NULL) SWIG_fail; | |
16441 | temp2 = True; | |
16442 | } | |
16443 | { | |
16444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16445 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
16446 | ||
16447 | wxPyEndAllowThreads(__tstate); | |
16448 | if (PyErr_Occurred()) SWIG_fail; | |
16449 | } | |
15afbcd0 | 16450 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); |
b88bce5f RD |
16451 | { |
16452 | if (temp2) | |
16453 | delete arg2; | |
16454 | } | |
16455 | return resultobj; | |
16456 | fail: | |
16457 | { | |
16458 | if (temp2) | |
16459 | delete arg2; | |
16460 | } | |
16461 | return NULL; | |
16462 | } | |
16463 | ||
16464 | ||
16465 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16466 | PyObject *resultobj; | |
16467 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16468 | PyObject * obj0 = 0 ; | |
16469 | char *kwnames[] = { | |
16470 | (char *) "self", NULL | |
16471 | }; | |
16472 | ||
16473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, |
16475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
16476 | { |
16477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16478 | delete arg1; | |
16479 | ||
16480 | wxPyEndAllowThreads(__tstate); | |
16481 | if (PyErr_Occurred()) SWIG_fail; | |
16482 | } | |
16483 | Py_INCREF(Py_None); resultobj = Py_None; | |
16484 | return resultobj; | |
16485 | fail: | |
16486 | return NULL; | |
16487 | } | |
16488 | ||
16489 | ||
16490 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16491 | PyObject *resultobj; | |
16492 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16493 | wxString *result; | |
16494 | PyObject * obj0 = 0 ; | |
16495 | char *kwnames[] = { | |
16496 | (char *) "self", NULL | |
16497 | }; | |
16498 | ||
16499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, |
16501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
16502 | { |
16503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16504 | { | |
16505 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
16506 | result = (wxString *) &_result_ref; | |
16507 | } | |
16508 | ||
16509 | wxPyEndAllowThreads(__tstate); | |
16510 | if (PyErr_Occurred()) SWIG_fail; | |
16511 | } | |
16512 | { | |
16513 | #if wxUSE_UNICODE | |
16514 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16515 | #else | |
16516 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16517 | #endif | |
16518 | } | |
16519 | return resultobj; | |
16520 | fail: | |
16521 | return NULL; | |
16522 | } | |
16523 | ||
16524 | ||
16525 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
16526 | PyObject *obj; | |
16527 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16528 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
16529 | Py_INCREF(obj); | |
16530 | return Py_BuildValue((char *)""); | |
16531 | } | |
d14a1e28 RD |
16532 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
16533 | PyObject *resultobj; | |
16534 | wxString *arg1 = 0 ; | |
16535 | wxString result; | |
e811c8ce | 16536 | bool temp1 = False ; |
d14a1e28 RD |
16537 | PyObject * obj0 = 0 ; |
16538 | char *kwnames[] = { | |
16539 | (char *) "sz", NULL | |
16540 | }; | |
16541 | ||
16542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
16543 | { | |
16544 | arg1 = wxString_in_helper(obj0); | |
16545 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16546 | temp1 = True; |
d14a1e28 RD |
16547 | } |
16548 | { | |
16549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16550 | result = wxExpandEnvVars((wxString const &)*arg1); | |
16551 | ||
16552 | wxPyEndAllowThreads(__tstate); | |
16553 | if (PyErr_Occurred()) SWIG_fail; | |
16554 | } | |
16555 | { | |
16556 | #if wxUSE_UNICODE | |
16557 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16558 | #else | |
16559 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16560 | #endif | |
16561 | } | |
16562 | { | |
16563 | if (temp1) | |
16564 | delete arg1; | |
16565 | } | |
16566 | return resultobj; | |
16567 | fail: | |
16568 | { | |
16569 | if (temp1) | |
16570 | delete arg1; | |
16571 | } | |
16572 | return NULL; | |
16573 | } | |
16574 | ||
16575 | ||
b2dc1044 RD |
16576 | static int _wrap_DateFormatStr_set(PyObject *_val) { |
16577 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); | |
16578 | return 1; | |
16579 | } | |
16580 | ||
16581 | ||
16582 | static PyObject *_wrap_DateFormatStr_get() { | |
16583 | PyObject *pyobj; | |
16584 | ||
16585 | { | |
16586 | #if wxUSE_UNICODE | |
16587 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16588 | #else | |
16589 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16590 | #endif | |
16591 | } | |
16592 | return pyobj; | |
16593 | } | |
16594 | ||
16595 | ||
16596 | static int _wrap_TimeSpanFormatStr_set(PyObject *_val) { | |
16597 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); | |
16598 | return 1; | |
16599 | } | |
16600 | ||
16601 | ||
16602 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
16603 | PyObject *pyobj; | |
16604 | ||
16605 | { | |
16606 | #if wxUSE_UNICODE | |
16607 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16608 | #else | |
16609 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16610 | #endif | |
16611 | } | |
16612 | return pyobj; | |
16613 | } | |
16614 | ||
16615 | ||
d14a1e28 RD |
16616 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { |
16617 | PyObject *resultobj; | |
16618 | int arg1 ; | |
994141e6 | 16619 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16620 | char *kwnames[] = { |
16621 | (char *) "country", NULL | |
16622 | }; | |
16623 | ||
994141e6 | 16624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
16625 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); |
16626 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16627 | { |
16628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16629 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
16630 | ||
16631 | wxPyEndAllowThreads(__tstate); | |
16632 | if (PyErr_Occurred()) SWIG_fail; | |
16633 | } | |
16634 | Py_INCREF(Py_None); resultobj = Py_None; | |
16635 | return resultobj; | |
16636 | fail: | |
16637 | return NULL; | |
16638 | } | |
16639 | ||
16640 | ||
16641 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16642 | PyObject *resultobj; | |
16643 | int result; | |
16644 | char *kwnames[] = { | |
16645 | NULL | |
16646 | }; | |
16647 | ||
16648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
16649 | { | |
16650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16651 | result = (int)wxDateTime::GetCountry(); | |
16652 | ||
16653 | wxPyEndAllowThreads(__tstate); | |
16654 | if (PyErr_Occurred()) SWIG_fail; | |
16655 | } | |
15afbcd0 | 16656 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16657 | return resultobj; |
16658 | fail: | |
16659 | return NULL; | |
16660 | } | |
16661 | ||
16662 | ||
16663 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16664 | PyObject *resultobj; | |
16665 | int arg1 = (int) wxDateTime::Country_Default ; | |
16666 | bool result; | |
994141e6 | 16667 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16668 | char *kwnames[] = { |
16669 | (char *) "country", NULL | |
16670 | }; | |
16671 | ||
994141e6 RD |
16672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; |
16673 | if (obj0) { | |
15afbcd0 RD |
16674 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); |
16675 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16676 | } |
d14a1e28 RD |
16677 | { |
16678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16679 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
16680 | ||
16681 | wxPyEndAllowThreads(__tstate); | |
16682 | if (PyErr_Occurred()) SWIG_fail; | |
16683 | } | |
4f89f6a3 RD |
16684 | { |
16685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16686 | } | |
d14a1e28 RD |
16687 | return resultobj; |
16688 | fail: | |
16689 | return NULL; | |
16690 | } | |
16691 | ||
16692 | ||
16693 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16694 | PyObject *resultobj; | |
16695 | int arg1 = (int) wxDateTime::Gregorian ; | |
16696 | int result; | |
994141e6 | 16697 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16698 | char *kwnames[] = { |
16699 | (char *) "cal", NULL | |
16700 | }; | |
16701 | ||
994141e6 RD |
16702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; |
16703 | if (obj0) { | |
15afbcd0 RD |
16704 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); |
16705 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16706 | } |
d14a1e28 RD |
16707 | { |
16708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16709 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
16710 | ||
16711 | wxPyEndAllowThreads(__tstate); | |
16712 | if (PyErr_Occurred()) SWIG_fail; | |
16713 | } | |
15afbcd0 | 16714 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16715 | return resultobj; |
16716 | fail: | |
16717 | return NULL; | |
16718 | } | |
16719 | ||
16720 | ||
16721 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16722 | PyObject *resultobj; | |
16723 | int arg1 ; | |
16724 | int result; | |
994141e6 | 16725 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16726 | char *kwnames[] = { |
16727 | (char *) "year", NULL | |
16728 | }; | |
16729 | ||
994141e6 | 16730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
16731 | arg1 = (int) SWIG_AsInt(obj0); |
16732 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16733 | { |
16734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16735 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
16736 | ||
16737 | wxPyEndAllowThreads(__tstate); | |
16738 | if (PyErr_Occurred()) SWIG_fail; | |
16739 | } | |
15afbcd0 | 16740 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16741 | return resultobj; |
16742 | fail: | |
16743 | return NULL; | |
16744 | } | |
16745 | ||
16746 | ||
16747 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16748 | PyObject *resultobj; | |
16749 | int arg1 = (int) wxDateTime::Gregorian ; | |
16750 | int result; | |
994141e6 | 16751 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16752 | char *kwnames[] = { |
16753 | (char *) "cal", NULL | |
16754 | }; | |
16755 | ||
994141e6 RD |
16756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; |
16757 | if (obj0) { | |
15afbcd0 RD |
16758 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); |
16759 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16760 | } |
d14a1e28 RD |
16761 | { |
16762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16763 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
16764 | ||
16765 | wxPyEndAllowThreads(__tstate); | |
16766 | if (PyErr_Occurred()) SWIG_fail; | |
16767 | } | |
15afbcd0 | 16768 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16769 | return resultobj; |
16770 | fail: | |
16771 | return NULL; | |
16772 | } | |
16773 | ||
16774 | ||
16775 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16776 | PyObject *resultobj; | |
16777 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16778 | int arg2 = (int) wxDateTime::Gregorian ; | |
16779 | bool result; | |
994141e6 RD |
16780 | PyObject * obj0 = 0 ; |
16781 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16782 | char *kwnames[] = { |
16783 | (char *) "year",(char *) "cal", NULL | |
16784 | }; | |
16785 | ||
994141e6 RD |
16786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; |
16787 | if (obj0) { | |
15afbcd0 RD |
16788 | arg1 = (int) SWIG_AsInt(obj0); |
16789 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
16790 | } |
16791 | if (obj1) { | |
15afbcd0 RD |
16792 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); |
16793 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16794 | } |
d14a1e28 RD |
16795 | { |
16796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16797 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
16798 | ||
16799 | wxPyEndAllowThreads(__tstate); | |
16800 | if (PyErr_Occurred()) SWIG_fail; | |
16801 | } | |
4f89f6a3 RD |
16802 | { |
16803 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16804 | } | |
d14a1e28 RD |
16805 | return resultobj; |
16806 | fail: | |
16807 | return NULL; | |
16808 | } | |
16809 | ||
16810 | ||
16811 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16812 | PyObject *resultobj; | |
16813 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16814 | int result; | |
994141e6 | 16815 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16816 | char *kwnames[] = { |
16817 | (char *) "year", NULL | |
16818 | }; | |
16819 | ||
994141e6 RD |
16820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; |
16821 | if (obj0) { | |
15afbcd0 RD |
16822 | arg1 = (int) SWIG_AsInt(obj0); |
16823 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16824 | } |
d14a1e28 RD |
16825 | { |
16826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16827 | result = (int)wxDateTime::GetCentury(arg1); | |
16828 | ||
16829 | wxPyEndAllowThreads(__tstate); | |
16830 | if (PyErr_Occurred()) SWIG_fail; | |
16831 | } | |
15afbcd0 | 16832 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16833 | return resultobj; |
16834 | fail: | |
16835 | return NULL; | |
16836 | } | |
16837 | ||
16838 | ||
16839 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16840 | PyObject *resultobj; | |
16841 | int arg1 ; | |
16842 | int arg2 = (int) wxDateTime::Gregorian ; | |
322913ce | 16843 | int result; |
994141e6 RD |
16844 | PyObject * obj0 = 0 ; |
16845 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16846 | char *kwnames[] = { |
16847 | (char *) "year",(char *) "cal", NULL | |
16848 | }; | |
16849 | ||
994141e6 | 16850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16851 | arg1 = (int) SWIG_AsInt(obj0); |
16852 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16853 | if (obj1) { |
15afbcd0 RD |
16854 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); |
16855 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16856 | } |
d14a1e28 RD |
16857 | { |
16858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 16859 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); |
d14a1e28 RD |
16860 | |
16861 | wxPyEndAllowThreads(__tstate); | |
16862 | if (PyErr_Occurred()) SWIG_fail; | |
16863 | } | |
15afbcd0 | 16864 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16865 | return resultobj; |
16866 | fail: | |
16867 | return NULL; | |
16868 | } | |
16869 | ||
16870 | ||
16871 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16872 | PyObject *resultobj; | |
16873 | int arg1 ; | |
16874 | int arg2 = (int) wxDateTime::Inv_Year ; | |
16875 | int arg3 = (int) wxDateTime::Gregorian ; | |
322913ce | 16876 | int result; |
994141e6 RD |
16877 | PyObject * obj0 = 0 ; |
16878 | PyObject * obj1 = 0 ; | |
16879 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16880 | char *kwnames[] = { |
16881 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
16882 | }; | |
16883 | ||
994141e6 | 16884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
16885 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); |
16886 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16887 | if (obj1) { |
15afbcd0 RD |
16888 | arg2 = (int) SWIG_AsInt(obj1); |
16889 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
16890 | } |
16891 | if (obj2) { | |
15afbcd0 RD |
16892 | arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2); |
16893 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16894 | } |
d14a1e28 RD |
16895 | { |
16896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 16897 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); |
d14a1e28 RD |
16898 | |
16899 | wxPyEndAllowThreads(__tstate); | |
16900 | if (PyErr_Occurred()) SWIG_fail; | |
16901 | } | |
15afbcd0 | 16902 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16903 | return resultobj; |
16904 | fail: | |
16905 | return NULL; | |
16906 | } | |
16907 | ||
16908 | ||
16909 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16910 | PyObject *resultobj; | |
16911 | int arg1 ; | |
16912 | int arg2 = (int) wxDateTime::Name_Full ; | |
16913 | wxString result; | |
994141e6 RD |
16914 | PyObject * obj0 = 0 ; |
16915 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16916 | char *kwnames[] = { |
16917 | (char *) "month",(char *) "flags", NULL | |
16918 | }; | |
16919 | ||
994141e6 | 16920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16921 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); |
16922 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16923 | if (obj1) { |
15afbcd0 RD |
16924 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); |
16925 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16926 | } |
d14a1e28 RD |
16927 | { |
16928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16929 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
16930 | ||
16931 | wxPyEndAllowThreads(__tstate); | |
16932 | if (PyErr_Occurred()) SWIG_fail; | |
16933 | } | |
16934 | { | |
16935 | #if wxUSE_UNICODE | |
16936 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16937 | #else | |
16938 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16939 | #endif | |
16940 | } | |
16941 | return resultobj; | |
16942 | fail: | |
16943 | return NULL; | |
16944 | } | |
16945 | ||
16946 | ||
16947 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16948 | PyObject *resultobj; | |
16949 | int arg1 ; | |
16950 | int arg2 = (int) wxDateTime::Name_Full ; | |
16951 | wxString result; | |
994141e6 RD |
16952 | PyObject * obj0 = 0 ; |
16953 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16954 | char *kwnames[] = { |
16955 | (char *) "weekday",(char *) "flags", NULL | |
16956 | }; | |
16957 | ||
994141e6 | 16958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16959 | arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0); |
16960 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16961 | if (obj1) { |
15afbcd0 RD |
16962 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); |
16963 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16964 | } |
d14a1e28 RD |
16965 | { |
16966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16967 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
16968 | ||
16969 | wxPyEndAllowThreads(__tstate); | |
16970 | if (PyErr_Occurred()) SWIG_fail; | |
16971 | } | |
16972 | { | |
16973 | #if wxUSE_UNICODE | |
16974 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16975 | #else | |
16976 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16977 | #endif | |
16978 | } | |
16979 | return resultobj; | |
16980 | fail: | |
16981 | return NULL; | |
16982 | } | |
16983 | ||
16984 | ||
16985 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16986 | PyObject *resultobj; | |
16987 | wxString *arg1 = (wxString *) 0 ; | |
16988 | wxString *arg2 = (wxString *) 0 ; | |
7eae615b RD |
16989 | bool temp1 = False ; |
16990 | bool temp2 = False ; | |
d14a1e28 RD |
16991 | PyObject * obj0 = 0 ; |
16992 | PyObject * obj1 = 0 ; | |
16993 | char *kwnames[] = { | |
16994 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
16995 | }; | |
16996 | ||
16997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
7eae615b RD |
16998 | { |
16999 | arg1 = wxString_in_helper(obj0); | |
17000 | if (arg1 == NULL) SWIG_fail; | |
17001 | temp1 = True; | |
17002 | } | |
17003 | { | |
17004 | arg2 = wxString_in_helper(obj1); | |
17005 | if (arg2 == NULL) SWIG_fail; | |
17006 | temp2 = True; | |
17007 | } | |
d14a1e28 RD |
17008 | { |
17009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17010 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
17011 | ||
17012 | wxPyEndAllowThreads(__tstate); | |
17013 | if (PyErr_Occurred()) SWIG_fail; | |
17014 | } | |
17015 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
17016 | { |
17017 | if (temp1) | |
17018 | delete arg1; | |
17019 | } | |
17020 | { | |
17021 | if (temp2) | |
17022 | delete arg2; | |
17023 | } | |
d14a1e28 RD |
17024 | return resultobj; |
17025 | fail: | |
7eae615b RD |
17026 | { |
17027 | if (temp1) | |
17028 | delete arg1; | |
17029 | } | |
17030 | { | |
17031 | if (temp2) | |
17032 | delete arg2; | |
17033 | } | |
d14a1e28 RD |
17034 | return NULL; |
17035 | } | |
17036 | ||
17037 | ||
17038 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17039 | PyObject *resultobj; | |
17040 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17041 | int arg2 = (int) wxDateTime::Country_Default ; | |
17042 | bool result; | |
994141e6 RD |
17043 | PyObject * obj0 = 0 ; |
17044 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17045 | char *kwnames[] = { |
17046 | (char *) "year",(char *) "country", NULL | |
17047 | }; | |
17048 | ||
994141e6 RD |
17049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; |
17050 | if (obj0) { | |
15afbcd0 RD |
17051 | arg1 = (int) SWIG_AsInt(obj0); |
17052 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17053 | } |
17054 | if (obj1) { | |
15afbcd0 RD |
17055 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
17056 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17057 | } |
d14a1e28 RD |
17058 | { |
17059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17060 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
17061 | ||
17062 | wxPyEndAllowThreads(__tstate); | |
17063 | if (PyErr_Occurred()) SWIG_fail; | |
17064 | } | |
4f89f6a3 RD |
17065 | { |
17066 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17067 | } | |
d14a1e28 RD |
17068 | return resultobj; |
17069 | fail: | |
17070 | return NULL; | |
17071 | } | |
17072 | ||
17073 | ||
17074 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17075 | PyObject *resultobj; | |
17076 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17077 | int arg2 = (int) wxDateTime::Country_Default ; | |
17078 | wxDateTime result; | |
994141e6 RD |
17079 | PyObject * obj0 = 0 ; |
17080 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17081 | char *kwnames[] = { |
17082 | (char *) "year",(char *) "country", NULL | |
17083 | }; | |
17084 | ||
994141e6 RD |
17085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; |
17086 | if (obj0) { | |
15afbcd0 RD |
17087 | arg1 = (int) SWIG_AsInt(obj0); |
17088 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17089 | } |
17090 | if (obj1) { | |
15afbcd0 RD |
17091 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
17092 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17093 | } |
d14a1e28 RD |
17094 | { |
17095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17096 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
17097 | ||
17098 | wxPyEndAllowThreads(__tstate); | |
17099 | if (PyErr_Occurred()) SWIG_fail; | |
17100 | } | |
17101 | { | |
17102 | wxDateTime * resultptr; | |
17103 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17104 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17105 | } |
17106 | return resultobj; | |
17107 | fail: | |
17108 | return NULL; | |
17109 | } | |
17110 | ||
17111 | ||
17112 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17113 | PyObject *resultobj; | |
17114 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17115 | int arg2 = (int) wxDateTime::Country_Default ; | |
17116 | wxDateTime result; | |
994141e6 RD |
17117 | PyObject * obj0 = 0 ; |
17118 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17119 | char *kwnames[] = { |
17120 | (char *) "year",(char *) "country", NULL | |
17121 | }; | |
17122 | ||
994141e6 RD |
17123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; |
17124 | if (obj0) { | |
15afbcd0 RD |
17125 | arg1 = (int) SWIG_AsInt(obj0); |
17126 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17127 | } |
17128 | if (obj1) { | |
15afbcd0 RD |
17129 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
17130 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17131 | } |
d14a1e28 RD |
17132 | { |
17133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17134 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
17135 | ||
17136 | wxPyEndAllowThreads(__tstate); | |
17137 | if (PyErr_Occurred()) SWIG_fail; | |
17138 | } | |
17139 | { | |
17140 | wxDateTime * resultptr; | |
17141 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17142 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17143 | } |
17144 | return resultobj; | |
17145 | fail: | |
17146 | return NULL; | |
17147 | } | |
17148 | ||
17149 | ||
17150 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17151 | PyObject *resultobj; | |
17152 | wxDateTime result; | |
17153 | char *kwnames[] = { | |
17154 | NULL | |
17155 | }; | |
17156 | ||
17157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
17158 | { | |
17159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17160 | result = wxDateTime::Now(); | |
17161 | ||
17162 | wxPyEndAllowThreads(__tstate); | |
17163 | if (PyErr_Occurred()) SWIG_fail; | |
17164 | } | |
17165 | { | |
17166 | wxDateTime * resultptr; | |
17167 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17168 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17169 | } |
17170 | return resultobj; | |
17171 | fail: | |
17172 | return NULL; | |
17173 | } | |
17174 | ||
17175 | ||
17176 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17177 | PyObject *resultobj; | |
17178 | wxDateTime result; | |
17179 | char *kwnames[] = { | |
17180 | NULL | |
17181 | }; | |
17182 | ||
17183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
17184 | { | |
17185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17186 | result = wxDateTime::UNow(); | |
17187 | ||
17188 | wxPyEndAllowThreads(__tstate); | |
17189 | if (PyErr_Occurred()) SWIG_fail; | |
17190 | } | |
17191 | { | |
17192 | wxDateTime * resultptr; | |
17193 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17194 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17195 | } |
17196 | return resultobj; | |
17197 | fail: | |
17198 | return NULL; | |
17199 | } | |
17200 | ||
17201 | ||
17202 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17203 | PyObject *resultobj; | |
17204 | wxDateTime result; | |
17205 | char *kwnames[] = { | |
17206 | NULL | |
17207 | }; | |
17208 | ||
17209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
17210 | { | |
17211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17212 | result = wxDateTime::Today(); | |
17213 | ||
17214 | wxPyEndAllowThreads(__tstate); | |
17215 | if (PyErr_Occurred()) SWIG_fail; | |
17216 | } | |
17217 | { | |
17218 | wxDateTime * resultptr; | |
17219 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17220 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17221 | } |
17222 | return resultobj; | |
17223 | fail: | |
17224 | return NULL; | |
17225 | } | |
17226 | ||
17227 | ||
17228 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17229 | PyObject *resultobj; | |
17230 | wxDateTime *result; | |
17231 | char *kwnames[] = { | |
17232 | NULL | |
17233 | }; | |
17234 | ||
17235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
17236 | { | |
17237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17238 | result = (wxDateTime *)new wxDateTime(); | |
17239 | ||
17240 | wxPyEndAllowThreads(__tstate); | |
17241 | if (PyErr_Occurred()) SWIG_fail; | |
17242 | } | |
15afbcd0 | 17243 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17244 | return resultobj; |
17245 | fail: | |
17246 | return NULL; | |
17247 | } | |
17248 | ||
17249 | ||
17250 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17251 | PyObject *resultobj; | |
17252 | time_t arg1 ; | |
17253 | wxDateTime *result; | |
17254 | PyObject * obj0 = 0 ; | |
17255 | char *kwnames[] = { | |
17256 | (char *) "timet", NULL | |
17257 | }; | |
17258 | ||
17259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17260 | arg1 = (time_t) SWIG_AsUnsignedInt(obj0); |
17261 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17262 | { |
17263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17264 | result = (wxDateTime *)new wxDateTime(arg1); | |
17265 | ||
17266 | wxPyEndAllowThreads(__tstate); | |
17267 | if (PyErr_Occurred()) SWIG_fail; | |
17268 | } | |
15afbcd0 | 17269 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17270 | return resultobj; |
17271 | fail: | |
17272 | return NULL; | |
17273 | } | |
17274 | ||
17275 | ||
17276 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17277 | PyObject *resultobj; | |
17278 | double arg1 ; | |
17279 | wxDateTime *result; | |
994141e6 | 17280 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17281 | char *kwnames[] = { |
17282 | (char *) "jdn", NULL | |
17283 | }; | |
17284 | ||
994141e6 | 17285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17286 | arg1 = (double) SWIG_AsDouble(obj0); |
17287 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17288 | { |
17289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17290 | result = (wxDateTime *)new wxDateTime(arg1); | |
17291 | ||
17292 | wxPyEndAllowThreads(__tstate); | |
17293 | if (PyErr_Occurred()) SWIG_fail; | |
17294 | } | |
15afbcd0 | 17295 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17296 | return resultobj; |
17297 | fail: | |
17298 | return NULL; | |
17299 | } | |
17300 | ||
17301 | ||
17302 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17303 | PyObject *resultobj; | |
322913ce RD |
17304 | int arg1 ; |
17305 | int arg2 = (int) 0 ; | |
17306 | int arg3 = (int) 0 ; | |
17307 | int arg4 = (int) 0 ; | |
d14a1e28 | 17308 | wxDateTime *result; |
994141e6 RD |
17309 | PyObject * obj0 = 0 ; |
17310 | PyObject * obj1 = 0 ; | |
17311 | PyObject * obj2 = 0 ; | |
17312 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
17313 | char *kwnames[] = { |
17314 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17315 | }; | |
17316 | ||
994141e6 | 17317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
17318 | arg1 = (int) SWIG_AsInt(obj0); |
17319 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17320 | if (obj1) { |
15afbcd0 RD |
17321 | arg2 = (int) SWIG_AsInt(obj1); |
17322 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17323 | } |
17324 | if (obj2) { | |
15afbcd0 RD |
17325 | arg3 = (int) SWIG_AsInt(obj2); |
17326 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17327 | } |
17328 | if (obj3) { | |
15afbcd0 RD |
17329 | arg4 = (int) SWIG_AsInt(obj3); |
17330 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17331 | } |
d14a1e28 RD |
17332 | { |
17333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17334 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
17335 | ||
17336 | wxPyEndAllowThreads(__tstate); | |
17337 | if (PyErr_Occurred()) SWIG_fail; | |
17338 | } | |
15afbcd0 | 17339 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17340 | return resultobj; |
17341 | fail: | |
17342 | return NULL; | |
17343 | } | |
17344 | ||
17345 | ||
17346 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17347 | PyObject *resultobj; | |
322913ce | 17348 | int arg1 ; |
d14a1e28 RD |
17349 | int arg2 = (int) wxDateTime::Inv_Month ; |
17350 | int arg3 = (int) wxDateTime::Inv_Year ; | |
322913ce RD |
17351 | int arg4 = (int) 0 ; |
17352 | int arg5 = (int) 0 ; | |
17353 | int arg6 = (int) 0 ; | |
17354 | int arg7 = (int) 0 ; | |
d14a1e28 | 17355 | wxDateTime *result; |
994141e6 RD |
17356 | PyObject * obj0 = 0 ; |
17357 | PyObject * obj1 = 0 ; | |
17358 | PyObject * obj2 = 0 ; | |
17359 | PyObject * obj3 = 0 ; | |
17360 | PyObject * obj4 = 0 ; | |
17361 | PyObject * obj5 = 0 ; | |
17362 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
17363 | char *kwnames[] = { |
17364 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17365 | }; | |
17366 | ||
994141e6 | 17367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
17368 | arg1 = (int) SWIG_AsInt(obj0); |
17369 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17370 | if (obj1) { |
15afbcd0 RD |
17371 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
17372 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17373 | } |
17374 | if (obj2) { | |
15afbcd0 RD |
17375 | arg3 = (int) SWIG_AsInt(obj2); |
17376 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17377 | } |
17378 | if (obj3) { | |
15afbcd0 RD |
17379 | arg4 = (int) SWIG_AsInt(obj3); |
17380 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17381 | } |
17382 | if (obj4) { | |
15afbcd0 RD |
17383 | arg5 = (int) SWIG_AsInt(obj4); |
17384 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17385 | } |
17386 | if (obj5) { | |
15afbcd0 RD |
17387 | arg6 = (int) SWIG_AsInt(obj5); |
17388 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17389 | } |
17390 | if (obj6) { | |
15afbcd0 RD |
17391 | arg7 = (int) SWIG_AsInt(obj6); |
17392 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17393 | } |
d14a1e28 RD |
17394 | { |
17395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17396 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
17397 | ||
17398 | wxPyEndAllowThreads(__tstate); | |
17399 | if (PyErr_Occurred()) SWIG_fail; | |
17400 | } | |
15afbcd0 | 17401 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17402 | return resultobj; |
17403 | fail: | |
17404 | return NULL; | |
17405 | } | |
17406 | ||
17407 | ||
17408 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17409 | PyObject *resultobj; | |
17410 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17411 | PyObject * obj0 = 0 ; | |
17412 | char *kwnames[] = { | |
17413 | (char *) "self", NULL | |
17414 | }; | |
17415 | ||
17416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17419 | { |
17420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17421 | delete arg1; | |
17422 | ||
17423 | wxPyEndAllowThreads(__tstate); | |
17424 | if (PyErr_Occurred()) SWIG_fail; | |
17425 | } | |
17426 | Py_INCREF(Py_None); resultobj = Py_None; | |
17427 | return resultobj; | |
17428 | fail: | |
17429 | return NULL; | |
17430 | } | |
17431 | ||
17432 | ||
17433 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17434 | PyObject *resultobj; | |
17435 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17436 | wxDateTime *result; | |
17437 | PyObject * obj0 = 0 ; | |
17438 | char *kwnames[] = { | |
17439 | (char *) "self", NULL | |
17440 | }; | |
17441 | ||
17442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17445 | { |
17446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17447 | { | |
17448 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
17449 | result = (wxDateTime *) &_result_ref; | |
17450 | } | |
17451 | ||
17452 | wxPyEndAllowThreads(__tstate); | |
17453 | if (PyErr_Occurred()) SWIG_fail; | |
17454 | } | |
15afbcd0 | 17455 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17456 | return resultobj; |
17457 | fail: | |
17458 | return NULL; | |
17459 | } | |
17460 | ||
17461 | ||
17462 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17463 | PyObject *resultobj; | |
17464 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17465 | time_t arg2 ; | |
17466 | wxDateTime *result; | |
17467 | PyObject * obj0 = 0 ; | |
17468 | PyObject * obj1 = 0 ; | |
17469 | char *kwnames[] = { | |
17470 | (char *) "self",(char *) "timet", NULL | |
17471 | }; | |
17472 | ||
17473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17476 | arg2 = (time_t) SWIG_AsUnsignedInt(obj1); | |
17477 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17478 | { |
17479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17480 | { | |
17481 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17482 | result = (wxDateTime *) &_result_ref; | |
17483 | } | |
17484 | ||
17485 | wxPyEndAllowThreads(__tstate); | |
17486 | if (PyErr_Occurred()) SWIG_fail; | |
17487 | } | |
15afbcd0 | 17488 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17489 | return resultobj; |
17490 | fail: | |
17491 | return NULL; | |
17492 | } | |
17493 | ||
17494 | ||
17495 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17496 | PyObject *resultobj; | |
17497 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17498 | double arg2 ; | |
17499 | wxDateTime *result; | |
17500 | PyObject * obj0 = 0 ; | |
994141e6 | 17501 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17502 | char *kwnames[] = { |
17503 | (char *) "self",(char *) "jdn", NULL | |
17504 | }; | |
17505 | ||
994141e6 | 17506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17509 | arg2 = (double) SWIG_AsDouble(obj1); | |
17510 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17511 | { |
17512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17513 | { | |
17514 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17515 | result = (wxDateTime *) &_result_ref; | |
17516 | } | |
17517 | ||
17518 | wxPyEndAllowThreads(__tstate); | |
17519 | if (PyErr_Occurred()) SWIG_fail; | |
17520 | } | |
15afbcd0 | 17521 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17522 | return resultobj; |
17523 | fail: | |
17524 | return NULL; | |
17525 | } | |
17526 | ||
17527 | ||
17528 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17529 | PyObject *resultobj; | |
17530 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce RD |
17531 | int arg2 ; |
17532 | int arg3 = (int) 0 ; | |
17533 | int arg4 = (int) 0 ; | |
17534 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
17535 | wxDateTime *result; |
17536 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17537 | PyObject * obj1 = 0 ; |
17538 | PyObject * obj2 = 0 ; | |
17539 | PyObject * obj3 = 0 ; | |
17540 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
17541 | char *kwnames[] = { |
17542 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17543 | }; | |
17544 | ||
994141e6 | 17545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
17546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17548 | arg2 = (int) SWIG_AsInt(obj1); | |
17549 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17550 | if (obj2) { |
15afbcd0 RD |
17551 | arg3 = (int) SWIG_AsInt(obj2); |
17552 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17553 | } |
17554 | if (obj3) { | |
15afbcd0 RD |
17555 | arg4 = (int) SWIG_AsInt(obj3); |
17556 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17557 | } |
17558 | if (obj4) { | |
15afbcd0 RD |
17559 | arg5 = (int) SWIG_AsInt(obj4); |
17560 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17561 | } |
d14a1e28 RD |
17562 | { |
17563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17564 | { | |
17565 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
17566 | result = (wxDateTime *) &_result_ref; | |
17567 | } | |
17568 | ||
17569 | wxPyEndAllowThreads(__tstate); | |
17570 | if (PyErr_Occurred()) SWIG_fail; | |
17571 | } | |
15afbcd0 | 17572 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17573 | return resultobj; |
17574 | fail: | |
17575 | return NULL; | |
17576 | } | |
17577 | ||
17578 | ||
17579 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17580 | PyObject *resultobj; | |
17581 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17582 | int arg2 ; |
d14a1e28 RD |
17583 | int arg3 = (int) wxDateTime::Inv_Month ; |
17584 | int arg4 = (int) wxDateTime::Inv_Year ; | |
322913ce RD |
17585 | int arg5 = (int) 0 ; |
17586 | int arg6 = (int) 0 ; | |
17587 | int arg7 = (int) 0 ; | |
17588 | int arg8 = (int) 0 ; | |
d14a1e28 RD |
17589 | wxDateTime *result; |
17590 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17591 | PyObject * obj1 = 0 ; |
17592 | PyObject * obj2 = 0 ; | |
17593 | PyObject * obj3 = 0 ; | |
17594 | PyObject * obj4 = 0 ; | |
17595 | PyObject * obj5 = 0 ; | |
17596 | PyObject * obj6 = 0 ; | |
17597 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
17598 | char *kwnames[] = { |
17599 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17600 | }; | |
17601 | ||
994141e6 | 17602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
17603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17605 | arg2 = (int) SWIG_AsInt(obj1); | |
17606 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17607 | if (obj2) { |
15afbcd0 RD |
17608 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
17609 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17610 | } |
17611 | if (obj3) { | |
15afbcd0 RD |
17612 | arg4 = (int) SWIG_AsInt(obj3); |
17613 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17614 | } |
17615 | if (obj4) { | |
15afbcd0 RD |
17616 | arg5 = (int) SWIG_AsInt(obj4); |
17617 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17618 | } |
17619 | if (obj5) { | |
15afbcd0 RD |
17620 | arg6 = (int) SWIG_AsInt(obj5); |
17621 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17622 | } |
17623 | if (obj6) { | |
15afbcd0 RD |
17624 | arg7 = (int) SWIG_AsInt(obj6); |
17625 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17626 | } |
17627 | if (obj7) { | |
15afbcd0 RD |
17628 | arg8 = (int) SWIG_AsInt(obj7); |
17629 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17630 | } |
d14a1e28 RD |
17631 | { |
17632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17633 | { | |
17634 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
17635 | result = (wxDateTime *) &_result_ref; | |
17636 | } | |
17637 | ||
17638 | wxPyEndAllowThreads(__tstate); | |
17639 | if (PyErr_Occurred()) SWIG_fail; | |
17640 | } | |
15afbcd0 | 17641 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17642 | return resultobj; |
17643 | fail: | |
17644 | return NULL; | |
17645 | } | |
17646 | ||
17647 | ||
17648 | static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17649 | PyObject *resultobj; | |
17650 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17651 | wxDateTime *result; | |
17652 | PyObject * obj0 = 0 ; | |
17653 | char *kwnames[] = { | |
17654 | (char *) "self", NULL | |
17655 | }; | |
17656 | ||
17657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17660 | { |
17661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17662 | { | |
17663 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
17664 | result = (wxDateTime *) &_result_ref; | |
17665 | } | |
17666 | ||
17667 | wxPyEndAllowThreads(__tstate); | |
17668 | if (PyErr_Occurred()) SWIG_fail; | |
17669 | } | |
15afbcd0 | 17670 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17671 | return resultobj; |
17672 | fail: | |
17673 | return NULL; | |
17674 | } | |
17675 | ||
17676 | ||
17677 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17678 | PyObject *resultobj; | |
17679 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17680 | int arg2 ; | |
17681 | wxDateTime *result; | |
17682 | PyObject * obj0 = 0 ; | |
994141e6 | 17683 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17684 | char *kwnames[] = { |
17685 | (char *) "self",(char *) "year", NULL | |
17686 | }; | |
17687 | ||
994141e6 | 17688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17691 | arg2 = (int) SWIG_AsInt(obj1); | |
17692 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17693 | { |
17694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17695 | { | |
17696 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
17697 | result = (wxDateTime *) &_result_ref; | |
17698 | } | |
17699 | ||
17700 | wxPyEndAllowThreads(__tstate); | |
17701 | if (PyErr_Occurred()) SWIG_fail; | |
17702 | } | |
15afbcd0 | 17703 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17704 | return resultobj; |
17705 | fail: | |
17706 | return NULL; | |
17707 | } | |
17708 | ||
17709 | ||
17710 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17711 | PyObject *resultobj; | |
17712 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17713 | int arg2 ; | |
17714 | wxDateTime *result; | |
17715 | PyObject * obj0 = 0 ; | |
994141e6 | 17716 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17717 | char *kwnames[] = { |
17718 | (char *) "self",(char *) "month", NULL | |
17719 | }; | |
17720 | ||
994141e6 | 17721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17724 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
17725 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17726 | { |
17727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17728 | { | |
17729 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
17730 | result = (wxDateTime *) &_result_ref; | |
17731 | } | |
17732 | ||
17733 | wxPyEndAllowThreads(__tstate); | |
17734 | if (PyErr_Occurred()) SWIG_fail; | |
17735 | } | |
15afbcd0 | 17736 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17737 | return resultobj; |
17738 | fail: | |
17739 | return NULL; | |
17740 | } | |
17741 | ||
17742 | ||
17743 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17744 | PyObject *resultobj; | |
17745 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17746 | int arg2 ; |
d14a1e28 RD |
17747 | wxDateTime *result; |
17748 | PyObject * obj0 = 0 ; | |
994141e6 | 17749 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17750 | char *kwnames[] = { |
17751 | (char *) "self",(char *) "day", NULL | |
17752 | }; | |
17753 | ||
994141e6 | 17754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17757 | arg2 = (int) SWIG_AsInt(obj1); | |
17758 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17759 | { |
17760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17761 | { | |
17762 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
17763 | result = (wxDateTime *) &_result_ref; | |
17764 | } | |
17765 | ||
17766 | wxPyEndAllowThreads(__tstate); | |
17767 | if (PyErr_Occurred()) SWIG_fail; | |
17768 | } | |
15afbcd0 | 17769 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17770 | return resultobj; |
17771 | fail: | |
17772 | return NULL; | |
17773 | } | |
17774 | ||
17775 | ||
17776 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17777 | PyObject *resultobj; | |
17778 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17779 | int arg2 ; |
d14a1e28 RD |
17780 | wxDateTime *result; |
17781 | PyObject * obj0 = 0 ; | |
994141e6 | 17782 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17783 | char *kwnames[] = { |
17784 | (char *) "self",(char *) "hour", NULL | |
17785 | }; | |
17786 | ||
994141e6 | 17787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17790 | arg2 = (int) SWIG_AsInt(obj1); | |
17791 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17792 | { |
17793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17794 | { | |
17795 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
17796 | result = (wxDateTime *) &_result_ref; | |
17797 | } | |
17798 | ||
17799 | wxPyEndAllowThreads(__tstate); | |
17800 | if (PyErr_Occurred()) SWIG_fail; | |
17801 | } | |
15afbcd0 | 17802 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17803 | return resultobj; |
17804 | fail: | |
17805 | return NULL; | |
17806 | } | |
17807 | ||
17808 | ||
17809 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17810 | PyObject *resultobj; | |
17811 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17812 | int arg2 ; |
d14a1e28 RD |
17813 | wxDateTime *result; |
17814 | PyObject * obj0 = 0 ; | |
994141e6 | 17815 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17816 | char *kwnames[] = { |
17817 | (char *) "self",(char *) "minute", NULL | |
17818 | }; | |
17819 | ||
994141e6 | 17820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17823 | arg2 = (int) SWIG_AsInt(obj1); | |
17824 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17825 | { |
17826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17827 | { | |
17828 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
17829 | result = (wxDateTime *) &_result_ref; | |
17830 | } | |
17831 | ||
17832 | wxPyEndAllowThreads(__tstate); | |
17833 | if (PyErr_Occurred()) SWIG_fail; | |
17834 | } | |
15afbcd0 | 17835 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17836 | return resultobj; |
17837 | fail: | |
17838 | return NULL; | |
17839 | } | |
17840 | ||
17841 | ||
17842 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17843 | PyObject *resultobj; | |
17844 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17845 | int arg2 ; |
d14a1e28 RD |
17846 | wxDateTime *result; |
17847 | PyObject * obj0 = 0 ; | |
994141e6 | 17848 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17849 | char *kwnames[] = { |
17850 | (char *) "self",(char *) "second", NULL | |
17851 | }; | |
17852 | ||
994141e6 | 17853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17856 | arg2 = (int) SWIG_AsInt(obj1); | |
17857 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17858 | { |
17859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17860 | { | |
17861 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
17862 | result = (wxDateTime *) &_result_ref; | |
17863 | } | |
17864 | ||
17865 | wxPyEndAllowThreads(__tstate); | |
17866 | if (PyErr_Occurred()) SWIG_fail; | |
17867 | } | |
15afbcd0 | 17868 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17869 | return resultobj; |
17870 | fail: | |
17871 | return NULL; | |
17872 | } | |
17873 | ||
17874 | ||
17875 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17876 | PyObject *resultobj; | |
17877 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17878 | int arg2 ; |
d14a1e28 RD |
17879 | wxDateTime *result; |
17880 | PyObject * obj0 = 0 ; | |
994141e6 | 17881 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17882 | char *kwnames[] = { |
17883 | (char *) "self",(char *) "millisecond", NULL | |
17884 | }; | |
17885 | ||
994141e6 | 17886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17889 | arg2 = (int) SWIG_AsInt(obj1); | |
17890 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17891 | { |
17892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17893 | { | |
17894 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
17895 | result = (wxDateTime *) &_result_ref; | |
17896 | } | |
17897 | ||
17898 | wxPyEndAllowThreads(__tstate); | |
17899 | if (PyErr_Occurred()) SWIG_fail; | |
17900 | } | |
15afbcd0 | 17901 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17902 | return resultobj; |
17903 | fail: | |
17904 | return NULL; | |
17905 | } | |
17906 | ||
17907 | ||
17908 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17909 | PyObject *resultobj; | |
17910 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17911 | int arg2 ; | |
17912 | int arg3 = (int) wxDateTime::Monday_First ; | |
17913 | wxDateTime *result; | |
17914 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17915 | PyObject * obj1 = 0 ; |
17916 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17917 | char *kwnames[] = { |
17918 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
17919 | }; | |
17920 | ||
994141e6 | 17921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17924 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
17925 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17926 | if (obj2) { |
15afbcd0 RD |
17927 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); |
17928 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17929 | } |
d14a1e28 RD |
17930 | { |
17931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17932 | { | |
17933 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
17934 | result = (wxDateTime *) &_result_ref; | |
17935 | } | |
17936 | ||
17937 | wxPyEndAllowThreads(__tstate); | |
17938 | if (PyErr_Occurred()) SWIG_fail; | |
17939 | } | |
15afbcd0 | 17940 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17941 | return resultobj; |
17942 | fail: | |
17943 | return NULL; | |
17944 | } | |
17945 | ||
17946 | ||
17947 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17948 | PyObject *resultobj; | |
17949 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17950 | int arg2 ; | |
17951 | int arg3 = (int) wxDateTime::Monday_First ; | |
17952 | wxDateTime result; | |
17953 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17954 | PyObject * obj1 = 0 ; |
17955 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17956 | char *kwnames[] = { |
17957 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
17958 | }; | |
17959 | ||
994141e6 | 17960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17963 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
17964 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17965 | if (obj2) { |
15afbcd0 RD |
17966 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); |
17967 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17968 | } |
d14a1e28 RD |
17969 | { |
17970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17971 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
17972 | ||
17973 | wxPyEndAllowThreads(__tstate); | |
17974 | if (PyErr_Occurred()) SWIG_fail; | |
17975 | } | |
17976 | { | |
17977 | wxDateTime * resultptr; | |
17978 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17979 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17980 | } |
17981 | return resultobj; | |
17982 | fail: | |
17983 | return NULL; | |
17984 | } | |
17985 | ||
17986 | ||
17987 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17988 | PyObject *resultobj; | |
17989 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17990 | int arg2 ; | |
17991 | wxDateTime *result; | |
17992 | PyObject * obj0 = 0 ; | |
994141e6 | 17993 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17994 | char *kwnames[] = { |
17995 | (char *) "self",(char *) "weekday", NULL | |
17996 | }; | |
17997 | ||
994141e6 | 17998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) 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; | |
d14a1e28 RD |
18003 | { |
18004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18005 | { | |
18006 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
18007 | result = (wxDateTime *) &_result_ref; | |
18008 | } | |
18009 | ||
18010 | wxPyEndAllowThreads(__tstate); | |
18011 | if (PyErr_Occurred()) SWIG_fail; | |
18012 | } | |
15afbcd0 | 18013 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18014 | return resultobj; |
18015 | fail: | |
18016 | return NULL; | |
18017 | } | |
18018 | ||
18019 | ||
18020 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18021 | PyObject *resultobj; | |
18022 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18023 | int arg2 ; | |
18024 | wxDateTime result; | |
18025 | PyObject * obj0 = 0 ; | |
994141e6 | 18026 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18027 | char *kwnames[] = { |
18028 | (char *) "self",(char *) "weekday", NULL | |
18029 | }; | |
18030 | ||
994141e6 | 18031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18034 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18035 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18036 | { |
18037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18038 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
18039 | ||
18040 | wxPyEndAllowThreads(__tstate); | |
18041 | if (PyErr_Occurred()) SWIG_fail; | |
18042 | } | |
18043 | { | |
18044 | wxDateTime * resultptr; | |
18045 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18046 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18047 | } |
18048 | return resultobj; | |
18049 | fail: | |
18050 | return NULL; | |
18051 | } | |
18052 | ||
18053 | ||
18054 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18055 | PyObject *resultobj; | |
18056 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18057 | int arg2 ; | |
18058 | wxDateTime *result; | |
18059 | PyObject * obj0 = 0 ; | |
994141e6 | 18060 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18061 | char *kwnames[] = { |
18062 | (char *) "self",(char *) "weekday", NULL | |
18063 | }; | |
18064 | ||
994141e6 | 18065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18068 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18069 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18070 | { |
18071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18072 | { | |
18073 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18074 | result = (wxDateTime *) &_result_ref; | |
18075 | } | |
18076 | ||
18077 | wxPyEndAllowThreads(__tstate); | |
18078 | if (PyErr_Occurred()) SWIG_fail; | |
18079 | } | |
15afbcd0 | 18080 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18081 | return resultobj; |
18082 | fail: | |
18083 | return NULL; | |
18084 | } | |
18085 | ||
18086 | ||
18087 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18088 | PyObject *resultobj; | |
18089 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18090 | int arg2 ; | |
18091 | wxDateTime result; | |
18092 | PyObject * obj0 = 0 ; | |
994141e6 | 18093 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18094 | char *kwnames[] = { |
18095 | (char *) "self",(char *) "weekday", NULL | |
18096 | }; | |
18097 | ||
994141e6 | 18098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18101 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18102 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18103 | { |
18104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18105 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18106 | ||
18107 | wxPyEndAllowThreads(__tstate); | |
18108 | if (PyErr_Occurred()) SWIG_fail; | |
18109 | } | |
18110 | { | |
18111 | wxDateTime * resultptr; | |
18112 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18113 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18114 | } |
18115 | return resultobj; | |
18116 | fail: | |
18117 | return NULL; | |
18118 | } | |
18119 | ||
18120 | ||
18121 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18122 | PyObject *resultobj; | |
18123 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18124 | int arg2 ; | |
18125 | int arg3 = (int) 1 ; | |
18126 | int arg4 = (int) wxDateTime::Inv_Month ; | |
18127 | int arg5 = (int) wxDateTime::Inv_Year ; | |
18128 | bool result; | |
18129 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18130 | PyObject * obj1 = 0 ; |
18131 | PyObject * obj2 = 0 ; | |
18132 | PyObject * obj3 = 0 ; | |
18133 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
18134 | char *kwnames[] = { |
18135 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
18136 | }; | |
18137 | ||
994141e6 | 18138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
18139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18141 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18142 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18143 | if (obj2) { |
15afbcd0 RD |
18144 | arg3 = (int) SWIG_AsInt(obj2); |
18145 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18146 | } |
18147 | if (obj3) { | |
15afbcd0 RD |
18148 | arg4 = (wxDateTime::Month) SWIG_AsInt(obj3); |
18149 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18150 | } |
18151 | if (obj4) { | |
15afbcd0 RD |
18152 | arg5 = (int) SWIG_AsInt(obj4); |
18153 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18154 | } |
d14a1e28 RD |
18155 | { |
18156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18157 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
18158 | ||
18159 | wxPyEndAllowThreads(__tstate); | |
18160 | if (PyErr_Occurred()) SWIG_fail; | |
18161 | } | |
4f89f6a3 RD |
18162 | { |
18163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18164 | } | |
d14a1e28 RD |
18165 | return resultobj; |
18166 | fail: | |
18167 | return NULL; | |
18168 | } | |
18169 | ||
18170 | ||
18171 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18172 | PyObject *resultobj; | |
18173 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18174 | int arg2 ; | |
18175 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18176 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18177 | bool result; | |
18178 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18179 | PyObject * obj1 = 0 ; |
18180 | PyObject * obj2 = 0 ; | |
18181 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18182 | char *kwnames[] = { |
18183 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18184 | }; | |
18185 | ||
994141e6 | 18186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18189 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18190 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18191 | if (obj2) { |
15afbcd0 RD |
18192 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
18193 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18194 | } |
18195 | if (obj3) { | |
15afbcd0 RD |
18196 | arg4 = (int) SWIG_AsInt(obj3); |
18197 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18198 | } |
d14a1e28 RD |
18199 | { |
18200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18201 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18202 | ||
18203 | wxPyEndAllowThreads(__tstate); | |
18204 | if (PyErr_Occurred()) SWIG_fail; | |
18205 | } | |
4f89f6a3 RD |
18206 | { |
18207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18208 | } | |
d14a1e28 RD |
18209 | return resultobj; |
18210 | fail: | |
18211 | return NULL; | |
18212 | } | |
18213 | ||
18214 | ||
18215 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18216 | PyObject *resultobj; | |
18217 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18218 | int arg2 ; | |
18219 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18220 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18221 | wxDateTime result; | |
18222 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18223 | PyObject * obj1 = 0 ; |
18224 | PyObject * obj2 = 0 ; | |
18225 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18226 | char *kwnames[] = { |
18227 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18228 | }; | |
18229 | ||
994141e6 | 18230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18233 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18234 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18235 | if (obj2) { |
15afbcd0 RD |
18236 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
18237 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18238 | } |
18239 | if (obj3) { | |
15afbcd0 RD |
18240 | arg4 = (int) SWIG_AsInt(obj3); |
18241 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18242 | } |
d14a1e28 RD |
18243 | { |
18244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18245 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18246 | ||
18247 | wxPyEndAllowThreads(__tstate); | |
18248 | if (PyErr_Occurred()) SWIG_fail; | |
18249 | } | |
18250 | { | |
18251 | wxDateTime * resultptr; | |
18252 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18253 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18254 | } |
18255 | return resultobj; | |
18256 | fail: | |
18257 | return NULL; | |
18258 | } | |
18259 | ||
18260 | ||
18261 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18262 | PyObject *resultobj; | |
18263 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18264 | int arg2 ; |
d14a1e28 RD |
18265 | int arg3 = (int) wxDateTime::Mon ; |
18266 | int arg4 = (int) wxDateTime::Monday_First ; | |
18267 | bool result; | |
18268 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18269 | PyObject * obj1 = 0 ; |
18270 | PyObject * obj2 = 0 ; | |
18271 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18272 | char *kwnames[] = { |
18273 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18274 | }; | |
18275 | ||
994141e6 | 18276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18279 | arg2 = (int) SWIG_AsInt(obj1); | |
18280 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18281 | if (obj2) { |
15afbcd0 RD |
18282 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); |
18283 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18284 | } |
18285 | if (obj3) { | |
15afbcd0 RD |
18286 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); |
18287 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18288 | } |
d14a1e28 RD |
18289 | { |
18290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18291 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18292 | ||
18293 | wxPyEndAllowThreads(__tstate); | |
18294 | if (PyErr_Occurred()) SWIG_fail; | |
18295 | } | |
4f89f6a3 RD |
18296 | { |
18297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18298 | } | |
d14a1e28 RD |
18299 | return resultobj; |
18300 | fail: | |
18301 | return NULL; | |
18302 | } | |
18303 | ||
18304 | ||
18305 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18306 | PyObject *resultobj; | |
18307 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18308 | int arg2 ; |
d14a1e28 RD |
18309 | int arg3 = (int) wxDateTime::Mon ; |
18310 | int arg4 = (int) wxDateTime::Monday_First ; | |
18311 | wxDateTime result; | |
18312 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18313 | PyObject * obj1 = 0 ; |
18314 | PyObject * obj2 = 0 ; | |
18315 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18316 | char *kwnames[] = { |
18317 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18318 | }; | |
18319 | ||
994141e6 | 18320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18323 | arg2 = (int) SWIG_AsInt(obj1); | |
18324 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18325 | if (obj2) { |
15afbcd0 RD |
18326 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); |
18327 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18328 | } |
18329 | if (obj3) { | |
15afbcd0 RD |
18330 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); |
18331 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18332 | } |
d14a1e28 RD |
18333 | { |
18334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18335 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18336 | ||
18337 | wxPyEndAllowThreads(__tstate); | |
18338 | if (PyErr_Occurred()) SWIG_fail; | |
18339 | } | |
18340 | { | |
18341 | wxDateTime * resultptr; | |
18342 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18343 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18344 | } |
18345 | return resultobj; | |
18346 | fail: | |
18347 | return NULL; | |
18348 | } | |
18349 | ||
18350 | ||
18351 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18352 | PyObject *resultobj; | |
18353 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18354 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18355 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18356 | wxDateTime *result; | |
18357 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18358 | PyObject * obj1 = 0 ; |
18359 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18360 | char *kwnames[] = { |
18361 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18362 | }; | |
18363 | ||
994141e6 | 18364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 18367 | if (obj1) { |
15afbcd0 RD |
18368 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
18369 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18370 | } |
18371 | if (obj2) { | |
15afbcd0 RD |
18372 | arg3 = (int) SWIG_AsInt(obj2); |
18373 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18374 | } |
d14a1e28 RD |
18375 | { |
18376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18377 | { | |
18378 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18379 | result = (wxDateTime *) &_result_ref; | |
18380 | } | |
18381 | ||
18382 | wxPyEndAllowThreads(__tstate); | |
18383 | if (PyErr_Occurred()) SWIG_fail; | |
18384 | } | |
15afbcd0 | 18385 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18386 | return resultobj; |
18387 | fail: | |
18388 | return NULL; | |
18389 | } | |
18390 | ||
18391 | ||
18392 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18393 | PyObject *resultobj; | |
18394 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18395 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18396 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18397 | wxDateTime result; | |
18398 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18399 | PyObject * obj1 = 0 ; |
18400 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18401 | char *kwnames[] = { |
18402 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18403 | }; | |
18404 | ||
994141e6 | 18405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 18408 | if (obj1) { |
15afbcd0 RD |
18409 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
18410 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18411 | } |
18412 | if (obj2) { | |
15afbcd0 RD |
18413 | arg3 = (int) SWIG_AsInt(obj2); |
18414 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18415 | } |
d14a1e28 RD |
18416 | { |
18417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18418 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18419 | ||
18420 | wxPyEndAllowThreads(__tstate); | |
18421 | if (PyErr_Occurred()) SWIG_fail; | |
18422 | } | |
18423 | { | |
18424 | wxDateTime * resultptr; | |
18425 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18426 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18427 | } |
18428 | return resultobj; | |
18429 | fail: | |
18430 | return NULL; | |
18431 | } | |
18432 | ||
18433 | ||
18434 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18435 | PyObject *resultobj; | |
18436 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18437 | int arg2 ; |
d14a1e28 RD |
18438 | wxDateTime *result; |
18439 | PyObject * obj0 = 0 ; | |
994141e6 | 18440 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18441 | char *kwnames[] = { |
18442 | (char *) "self",(char *) "yday", NULL | |
18443 | }; | |
18444 | ||
994141e6 | 18445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18448 | arg2 = (int) SWIG_AsInt(obj1); | |
18449 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18450 | { |
18451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18452 | { | |
18453 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
18454 | result = (wxDateTime *) &_result_ref; | |
18455 | } | |
18456 | ||
18457 | wxPyEndAllowThreads(__tstate); | |
18458 | if (PyErr_Occurred()) SWIG_fail; | |
18459 | } | |
15afbcd0 | 18460 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18461 | return resultobj; |
18462 | fail: | |
18463 | return NULL; | |
18464 | } | |
18465 | ||
18466 | ||
18467 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18468 | PyObject *resultobj; | |
18469 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18470 | int arg2 ; |
d14a1e28 RD |
18471 | wxDateTime result; |
18472 | PyObject * obj0 = 0 ; | |
994141e6 | 18473 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18474 | char *kwnames[] = { |
18475 | (char *) "self",(char *) "yday", NULL | |
18476 | }; | |
18477 | ||
994141e6 | 18478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18481 | arg2 = (int) SWIG_AsInt(obj1); | |
18482 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18483 | { |
18484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18485 | result = (arg1)->GetYearDay(arg2); | |
18486 | ||
18487 | wxPyEndAllowThreads(__tstate); | |
18488 | if (PyErr_Occurred()) SWIG_fail; | |
18489 | } | |
18490 | { | |
18491 | wxDateTime * resultptr; | |
18492 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18493 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18494 | } |
18495 | return resultobj; | |
18496 | fail: | |
18497 | return NULL; | |
18498 | } | |
18499 | ||
18500 | ||
18501 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18502 | PyObject *resultobj; | |
18503 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18504 | double result; | |
18505 | PyObject * obj0 = 0 ; | |
18506 | char *kwnames[] = { | |
18507 | (char *) "self", NULL | |
18508 | }; | |
18509 | ||
18510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18513 | { |
18514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18515 | result = (double)(arg1)->GetJulianDayNumber(); | |
18516 | ||
18517 | wxPyEndAllowThreads(__tstate); | |
18518 | if (PyErr_Occurred()) SWIG_fail; | |
18519 | } | |
15afbcd0 | 18520 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18521 | return resultobj; |
18522 | fail: | |
18523 | return NULL; | |
18524 | } | |
18525 | ||
18526 | ||
18527 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18528 | PyObject *resultobj; | |
18529 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18530 | double result; | |
18531 | PyObject * obj0 = 0 ; | |
18532 | char *kwnames[] = { | |
18533 | (char *) "self", NULL | |
18534 | }; | |
18535 | ||
18536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18539 | { |
18540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18541 | result = (double)(arg1)->GetJDN(); | |
18542 | ||
18543 | wxPyEndAllowThreads(__tstate); | |
18544 | if (PyErr_Occurred()) SWIG_fail; | |
18545 | } | |
15afbcd0 | 18546 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18547 | return resultobj; |
18548 | fail: | |
18549 | return NULL; | |
18550 | } | |
18551 | ||
18552 | ||
18553 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18554 | PyObject *resultobj; | |
18555 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18556 | double result; | |
18557 | PyObject * obj0 = 0 ; | |
18558 | char *kwnames[] = { | |
18559 | (char *) "self", NULL | |
18560 | }; | |
18561 | ||
18562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18565 | { |
18566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18567 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
18568 | ||
18569 | wxPyEndAllowThreads(__tstate); | |
18570 | if (PyErr_Occurred()) SWIG_fail; | |
18571 | } | |
15afbcd0 | 18572 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18573 | return resultobj; |
18574 | fail: | |
18575 | return NULL; | |
18576 | } | |
18577 | ||
18578 | ||
18579 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18580 | PyObject *resultobj; | |
18581 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18582 | double result; | |
18583 | PyObject * obj0 = 0 ; | |
18584 | char *kwnames[] = { | |
18585 | (char *) "self", NULL | |
18586 | }; | |
18587 | ||
18588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18591 | { |
18592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18593 | result = (double)(arg1)->GetMJD(); | |
18594 | ||
18595 | wxPyEndAllowThreads(__tstate); | |
18596 | if (PyErr_Occurred()) SWIG_fail; | |
18597 | } | |
15afbcd0 | 18598 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18599 | return resultobj; |
18600 | fail: | |
18601 | return NULL; | |
18602 | } | |
18603 | ||
18604 | ||
18605 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18606 | PyObject *resultobj; | |
18607 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18608 | double result; | |
18609 | PyObject * obj0 = 0 ; | |
18610 | char *kwnames[] = { | |
18611 | (char *) "self", NULL | |
18612 | }; | |
18613 | ||
18614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18617 | { |
18618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18619 | result = (double)(arg1)->GetRataDie(); | |
18620 | ||
18621 | wxPyEndAllowThreads(__tstate); | |
18622 | if (PyErr_Occurred()) SWIG_fail; | |
18623 | } | |
15afbcd0 | 18624 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18625 | return resultobj; |
18626 | fail: | |
18627 | return NULL; | |
18628 | } | |
18629 | ||
18630 | ||
18631 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18632 | PyObject *resultobj; | |
18633 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18634 | wxDateTime::TimeZone *arg2 = 0 ; | |
e811c8ce | 18635 | bool arg3 = (bool) False ; |
d14a1e28 | 18636 | wxDateTime result; |
7722248d | 18637 | bool temp2 = False ; |
d14a1e28 RD |
18638 | PyObject * obj0 = 0 ; |
18639 | PyObject * obj1 = 0 ; | |
18640 | PyObject * obj2 = 0 ; | |
18641 | char *kwnames[] = { | |
18642 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18643 | }; | |
18644 | ||
18645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
18646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18648 | { |
18649 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18650 | temp2 = True; |
d14a1e28 RD |
18651 | } |
18652 | if (obj2) { | |
15afbcd0 RD |
18653 | arg3 = (bool) SWIG_AsBool(obj2); |
18654 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18655 | } |
18656 | { | |
18657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18658 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18659 | ||
18660 | wxPyEndAllowThreads(__tstate); | |
18661 | if (PyErr_Occurred()) SWIG_fail; | |
18662 | } | |
18663 | { | |
18664 | wxDateTime * resultptr; | |
18665 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18666 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18667 | } |
18668 | { | |
7722248d | 18669 | if (temp2) delete arg2; |
d14a1e28 RD |
18670 | } |
18671 | return resultobj; | |
18672 | fail: | |
18673 | { | |
7722248d | 18674 | if (temp2) delete arg2; |
d14a1e28 RD |
18675 | } |
18676 | return NULL; | |
18677 | } | |
18678 | ||
18679 | ||
18680 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18681 | PyObject *resultobj; | |
18682 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18683 | wxDateTime::TimeZone *arg2 = 0 ; | |
e811c8ce | 18684 | bool arg3 = (bool) False ; |
d14a1e28 | 18685 | wxDateTime *result; |
7722248d | 18686 | bool temp2 = False ; |
d14a1e28 RD |
18687 | PyObject * obj0 = 0 ; |
18688 | PyObject * obj1 = 0 ; | |
18689 | PyObject * obj2 = 0 ; | |
18690 | char *kwnames[] = { | |
18691 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18692 | }; | |
18693 | ||
18694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
18695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18697 | { |
18698 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18699 | temp2 = True; |
d14a1e28 RD |
18700 | } |
18701 | if (obj2) { | |
15afbcd0 RD |
18702 | arg3 = (bool) SWIG_AsBool(obj2); |
18703 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18704 | } |
18705 | { | |
18706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18707 | { | |
18708 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18709 | result = (wxDateTime *) &_result_ref; | |
18710 | } | |
18711 | ||
18712 | wxPyEndAllowThreads(__tstate); | |
18713 | if (PyErr_Occurred()) SWIG_fail; | |
18714 | } | |
15afbcd0 | 18715 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 | 18716 | { |
7722248d | 18717 | if (temp2) delete arg2; |
d14a1e28 RD |
18718 | } |
18719 | return resultobj; | |
18720 | fail: | |
18721 | { | |
7722248d | 18722 | if (temp2) delete arg2; |
d14a1e28 RD |
18723 | } |
18724 | return NULL; | |
18725 | } | |
18726 | ||
18727 | ||
18728 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18729 | PyObject *resultobj; | |
18730 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
e811c8ce | 18731 | bool arg2 = (bool) False ; |
d14a1e28 RD |
18732 | wxDateTime result; |
18733 | PyObject * obj0 = 0 ; | |
18734 | PyObject * obj1 = 0 ; | |
18735 | char *kwnames[] = { | |
18736 | (char *) "self",(char *) "noDST", NULL | |
18737 | }; | |
18738 | ||
18739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 18742 | if (obj1) { |
15afbcd0 RD |
18743 | arg2 = (bool) SWIG_AsBool(obj1); |
18744 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18745 | } |
18746 | { | |
18747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18748 | result = (arg1)->ToGMT(arg2); | |
18749 | ||
18750 | wxPyEndAllowThreads(__tstate); | |
18751 | if (PyErr_Occurred()) SWIG_fail; | |
18752 | } | |
18753 | { | |
18754 | wxDateTime * resultptr; | |
18755 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18756 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18757 | } |
18758 | return resultobj; | |
18759 | fail: | |
18760 | return NULL; | |
18761 | } | |
18762 | ||
18763 | ||
18764 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18765 | PyObject *resultobj; | |
18766 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
e811c8ce | 18767 | bool arg2 = (bool) False ; |
d14a1e28 RD |
18768 | wxDateTime *result; |
18769 | PyObject * obj0 = 0 ; | |
18770 | PyObject * obj1 = 0 ; | |
18771 | char *kwnames[] = { | |
18772 | (char *) "self",(char *) "noDST", NULL | |
18773 | }; | |
18774 | ||
18775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 18778 | if (obj1) { |
15afbcd0 RD |
18779 | arg2 = (bool) SWIG_AsBool(obj1); |
18780 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18781 | } |
18782 | { | |
18783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18784 | { | |
18785 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
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 RD |
18793 | return resultobj; |
18794 | fail: | |
18795 | return NULL; | |
18796 | } | |
18797 | ||
18798 | ||
18799 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18800 | PyObject *resultobj; | |
18801 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18802 | int arg2 = (int) wxDateTime::Country_Default ; | |
18803 | int result; | |
18804 | PyObject * obj0 = 0 ; | |
994141e6 | 18805 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18806 | char *kwnames[] = { |
18807 | (char *) "self",(char *) "country", NULL | |
18808 | }; | |
18809 | ||
994141e6 | 18810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 18813 | if (obj1) { |
15afbcd0 RD |
18814 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
18815 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18816 | } |
d14a1e28 RD |
18817 | { |
18818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18819 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
18820 | ||
18821 | wxPyEndAllowThreads(__tstate); | |
18822 | if (PyErr_Occurred()) SWIG_fail; | |
18823 | } | |
15afbcd0 | 18824 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18825 | return resultobj; |
18826 | fail: | |
18827 | return NULL; | |
18828 | } | |
18829 | ||
18830 | ||
18831 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18832 | PyObject *resultobj; | |
18833 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18834 | bool result; | |
18835 | PyObject * obj0 = 0 ; | |
18836 | char *kwnames[] = { | |
18837 | (char *) "self", NULL | |
18838 | }; | |
18839 | ||
18840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18843 | { |
18844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18845 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
18846 | ||
18847 | wxPyEndAllowThreads(__tstate); | |
18848 | if (PyErr_Occurred()) SWIG_fail; | |
18849 | } | |
4f89f6a3 RD |
18850 | { |
18851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18852 | } | |
d14a1e28 RD |
18853 | return resultobj; |
18854 | fail: | |
18855 | return NULL; | |
18856 | } | |
18857 | ||
18858 | ||
18859 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18860 | PyObject *resultobj; | |
18861 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18862 | time_t result; | |
18863 | PyObject * obj0 = 0 ; | |
18864 | char *kwnames[] = { | |
18865 | (char *) "self", NULL | |
18866 | }; | |
18867 | ||
18868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18871 | { |
18872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18873 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
18874 | ||
18875 | wxPyEndAllowThreads(__tstate); | |
18876 | if (PyErr_Occurred()) SWIG_fail; | |
18877 | } | |
15afbcd0 | 18878 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
18879 | return resultobj; |
18880 | fail: | |
18881 | return NULL; | |
18882 | } | |
18883 | ||
18884 | ||
18885 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18886 | PyObject *resultobj; | |
18887 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18888 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18889 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18890 | int result; | |
7722248d | 18891 | bool temp2 = False ; |
d14a1e28 RD |
18892 | PyObject * obj0 = 0 ; |
18893 | PyObject * obj1 = 0 ; | |
18894 | char *kwnames[] = { | |
18895 | (char *) "self",(char *) "tz", NULL | |
18896 | }; | |
18897 | ||
18898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18901 | if (obj1) { |
18902 | { | |
18903 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18904 | temp2 = True; |
d14a1e28 RD |
18905 | } |
18906 | } | |
18907 | { | |
18908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18909 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
18910 | ||
18911 | wxPyEndAllowThreads(__tstate); | |
18912 | if (PyErr_Occurred()) SWIG_fail; | |
18913 | } | |
15afbcd0 | 18914 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 18915 | { |
7722248d | 18916 | if (temp2) delete arg2; |
d14a1e28 RD |
18917 | } |
18918 | return resultobj; | |
18919 | fail: | |
18920 | { | |
7722248d | 18921 | if (temp2) delete arg2; |
d14a1e28 RD |
18922 | } |
18923 | return NULL; | |
18924 | } | |
18925 | ||
18926 | ||
18927 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18928 | PyObject *resultobj; | |
18929 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18930 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18931 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18932 | int result; | |
7722248d | 18933 | bool temp2 = False ; |
d14a1e28 RD |
18934 | PyObject * obj0 = 0 ; |
18935 | PyObject * obj1 = 0 ; | |
18936 | char *kwnames[] = { | |
18937 | (char *) "self",(char *) "tz", NULL | |
18938 | }; | |
18939 | ||
18940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18943 | if (obj1) { |
18944 | { | |
18945 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18946 | temp2 = True; |
d14a1e28 RD |
18947 | } |
18948 | } | |
18949 | { | |
18950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18951 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
18952 | ||
18953 | wxPyEndAllowThreads(__tstate); | |
18954 | if (PyErr_Occurred()) SWIG_fail; | |
18955 | } | |
15afbcd0 | 18956 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 18957 | { |
7722248d | 18958 | if (temp2) delete arg2; |
d14a1e28 RD |
18959 | } |
18960 | return resultobj; | |
18961 | fail: | |
18962 | { | |
7722248d | 18963 | if (temp2) delete arg2; |
d14a1e28 RD |
18964 | } |
18965 | return NULL; | |
18966 | } | |
18967 | ||
18968 | ||
18969 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18970 | PyObject *resultobj; | |
18971 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18972 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18973 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 18974 | int result; |
7722248d | 18975 | bool temp2 = False ; |
d14a1e28 RD |
18976 | PyObject * obj0 = 0 ; |
18977 | PyObject * obj1 = 0 ; | |
18978 | char *kwnames[] = { | |
18979 | (char *) "self",(char *) "tz", NULL | |
18980 | }; | |
18981 | ||
18982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18985 | if (obj1) { |
18986 | { | |
18987 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18988 | temp2 = True; |
d14a1e28 RD |
18989 | } |
18990 | } | |
18991 | { | |
18992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 18993 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
18994 | |
18995 | wxPyEndAllowThreads(__tstate); | |
18996 | if (PyErr_Occurred()) SWIG_fail; | |
18997 | } | |
15afbcd0 | 18998 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 18999 | { |
7722248d | 19000 | if (temp2) delete arg2; |
d14a1e28 RD |
19001 | } |
19002 | return resultobj; | |
19003 | fail: | |
19004 | { | |
7722248d | 19005 | if (temp2) delete arg2; |
d14a1e28 RD |
19006 | } |
19007 | return NULL; | |
19008 | } | |
19009 | ||
19010 | ||
19011 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19012 | PyObject *resultobj; | |
19013 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19014 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19015 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19016 | int result; | |
7722248d | 19017 | bool temp2 = False ; |
d14a1e28 RD |
19018 | PyObject * obj0 = 0 ; |
19019 | PyObject * obj1 = 0 ; | |
19020 | char *kwnames[] = { | |
19021 | (char *) "self",(char *) "tz", NULL | |
19022 | }; | |
19023 | ||
19024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19027 | if (obj1) { |
19028 | { | |
19029 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19030 | temp2 = True; |
d14a1e28 RD |
19031 | } |
19032 | } | |
19033 | { | |
19034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19035 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
19036 | ||
19037 | wxPyEndAllowThreads(__tstate); | |
19038 | if (PyErr_Occurred()) SWIG_fail; | |
19039 | } | |
15afbcd0 | 19040 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19041 | { |
7722248d | 19042 | if (temp2) delete arg2; |
d14a1e28 RD |
19043 | } |
19044 | return resultobj; | |
19045 | fail: | |
19046 | { | |
7722248d | 19047 | if (temp2) delete arg2; |
d14a1e28 RD |
19048 | } |
19049 | return NULL; | |
19050 | } | |
19051 | ||
19052 | ||
19053 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19054 | PyObject *resultobj; | |
19055 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19056 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19057 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19058 | int result; |
7722248d | 19059 | bool temp2 = False ; |
d14a1e28 RD |
19060 | PyObject * obj0 = 0 ; |
19061 | PyObject * obj1 = 0 ; | |
19062 | char *kwnames[] = { | |
19063 | (char *) "self",(char *) "tz", NULL | |
19064 | }; | |
19065 | ||
19066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19069 | if (obj1) { |
19070 | { | |
19071 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19072 | temp2 = True; |
d14a1e28 RD |
19073 | } |
19074 | } | |
19075 | { | |
19076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19077 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19078 | |
19079 | wxPyEndAllowThreads(__tstate); | |
19080 | if (PyErr_Occurred()) SWIG_fail; | |
19081 | } | |
15afbcd0 | 19082 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19083 | { |
7722248d | 19084 | if (temp2) delete arg2; |
d14a1e28 RD |
19085 | } |
19086 | return resultobj; | |
19087 | fail: | |
19088 | { | |
7722248d | 19089 | if (temp2) delete arg2; |
d14a1e28 RD |
19090 | } |
19091 | return NULL; | |
19092 | } | |
19093 | ||
19094 | ||
19095 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19096 | PyObject *resultobj; | |
19097 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19098 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19099 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19100 | int result; |
7722248d | 19101 | bool temp2 = False ; |
d14a1e28 RD |
19102 | PyObject * obj0 = 0 ; |
19103 | PyObject * obj1 = 0 ; | |
19104 | char *kwnames[] = { | |
19105 | (char *) "self",(char *) "tz", NULL | |
19106 | }; | |
19107 | ||
19108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19111 | if (obj1) { |
19112 | { | |
19113 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19114 | temp2 = True; |
d14a1e28 RD |
19115 | } |
19116 | } | |
19117 | { | |
19118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19119 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19120 | |
19121 | wxPyEndAllowThreads(__tstate); | |
19122 | if (PyErr_Occurred()) SWIG_fail; | |
19123 | } | |
15afbcd0 | 19124 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19125 | { |
7722248d | 19126 | if (temp2) delete arg2; |
d14a1e28 RD |
19127 | } |
19128 | return resultobj; | |
19129 | fail: | |
19130 | { | |
7722248d | 19131 | if (temp2) delete arg2; |
d14a1e28 RD |
19132 | } |
19133 | return NULL; | |
19134 | } | |
19135 | ||
19136 | ||
19137 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19138 | PyObject *resultobj; | |
19139 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19140 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19141 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19142 | int result; |
7722248d | 19143 | bool temp2 = False ; |
d14a1e28 RD |
19144 | PyObject * obj0 = 0 ; |
19145 | PyObject * obj1 = 0 ; | |
19146 | char *kwnames[] = { | |
19147 | (char *) "self",(char *) "tz", NULL | |
19148 | }; | |
19149 | ||
19150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19153 | if (obj1) { |
19154 | { | |
19155 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19156 | temp2 = True; |
d14a1e28 RD |
19157 | } |
19158 | } | |
19159 | { | |
19160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19161 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19162 | |
19163 | wxPyEndAllowThreads(__tstate); | |
19164 | if (PyErr_Occurred()) SWIG_fail; | |
19165 | } | |
15afbcd0 | 19166 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19167 | { |
7722248d | 19168 | if (temp2) delete arg2; |
d14a1e28 RD |
19169 | } |
19170 | return resultobj; | |
19171 | fail: | |
19172 | { | |
7722248d | 19173 | if (temp2) delete arg2; |
d14a1e28 RD |
19174 | } |
19175 | return NULL; | |
19176 | } | |
19177 | ||
19178 | ||
19179 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19180 | PyObject *resultobj; | |
19181 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19182 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19183 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19184 | int result; |
7722248d | 19185 | bool temp2 = False ; |
d14a1e28 RD |
19186 | PyObject * obj0 = 0 ; |
19187 | PyObject * obj1 = 0 ; | |
19188 | char *kwnames[] = { | |
19189 | (char *) "self",(char *) "tz", NULL | |
19190 | }; | |
19191 | ||
19192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19195 | if (obj1) { |
19196 | { | |
19197 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19198 | temp2 = True; |
d14a1e28 RD |
19199 | } |
19200 | } | |
19201 | { | |
19202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19203 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19204 | |
19205 | wxPyEndAllowThreads(__tstate); | |
19206 | if (PyErr_Occurred()) SWIG_fail; | |
19207 | } | |
15afbcd0 | 19208 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19209 | { |
7722248d | 19210 | if (temp2) delete arg2; |
d14a1e28 RD |
19211 | } |
19212 | return resultobj; | |
19213 | fail: | |
19214 | { | |
7722248d | 19215 | if (temp2) delete arg2; |
d14a1e28 RD |
19216 | } |
19217 | return NULL; | |
19218 | } | |
19219 | ||
19220 | ||
19221 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19222 | PyObject *resultobj; | |
19223 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19224 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19225 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19226 | int result; |
7722248d | 19227 | bool temp2 = False ; |
d14a1e28 RD |
19228 | PyObject * obj0 = 0 ; |
19229 | PyObject * obj1 = 0 ; | |
19230 | char *kwnames[] = { | |
19231 | (char *) "self",(char *) "tz", NULL | |
19232 | }; | |
19233 | ||
19234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19237 | if (obj1) { |
19238 | { | |
19239 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19240 | temp2 = True; |
d14a1e28 RD |
19241 | } |
19242 | } | |
19243 | { | |
19244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19245 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19246 | |
19247 | wxPyEndAllowThreads(__tstate); | |
19248 | if (PyErr_Occurred()) SWIG_fail; | |
19249 | } | |
15afbcd0 | 19250 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19251 | { |
7722248d | 19252 | if (temp2) delete arg2; |
d14a1e28 RD |
19253 | } |
19254 | return resultobj; | |
19255 | fail: | |
19256 | { | |
7722248d | 19257 | if (temp2) delete arg2; |
d14a1e28 RD |
19258 | } |
19259 | return NULL; | |
19260 | } | |
19261 | ||
19262 | ||
19263 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19264 | PyObject *resultobj; | |
19265 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19266 | int arg2 = (int) wxDateTime::Monday_First ; | |
19267 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19268 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 19269 | int result; |
7722248d | 19270 | bool temp3 = False ; |
d14a1e28 | 19271 | PyObject * obj0 = 0 ; |
994141e6 | 19272 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19273 | PyObject * obj2 = 0 ; |
19274 | char *kwnames[] = { | |
19275 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19276 | }; | |
19277 | ||
994141e6 | 19278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
19279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 19281 | if (obj1) { |
15afbcd0 RD |
19282 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); |
19283 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19284 | } |
d14a1e28 RD |
19285 | if (obj2) { |
19286 | { | |
19287 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 19288 | temp3 = True; |
d14a1e28 RD |
19289 | } |
19290 | } | |
19291 | { | |
19292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19293 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
19294 | |
19295 | wxPyEndAllowThreads(__tstate); | |
19296 | if (PyErr_Occurred()) SWIG_fail; | |
19297 | } | |
15afbcd0 | 19298 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19299 | { |
7722248d | 19300 | if (temp3) delete arg3; |
d14a1e28 RD |
19301 | } |
19302 | return resultobj; | |
19303 | fail: | |
19304 | { | |
7722248d | 19305 | if (temp3) delete arg3; |
d14a1e28 RD |
19306 | } |
19307 | return NULL; | |
19308 | } | |
19309 | ||
19310 | ||
19311 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19312 | PyObject *resultobj; | |
19313 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19314 | int arg2 = (int) wxDateTime::Monday_First ; | |
19315 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19316 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 19317 | int result; |
7722248d | 19318 | bool temp3 = False ; |
d14a1e28 | 19319 | PyObject * obj0 = 0 ; |
994141e6 | 19320 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19321 | PyObject * obj2 = 0 ; |
19322 | char *kwnames[] = { | |
19323 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19324 | }; | |
19325 | ||
994141e6 | 19326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
19327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 19329 | if (obj1) { |
15afbcd0 RD |
19330 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); |
19331 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19332 | } |
d14a1e28 RD |
19333 | if (obj2) { |
19334 | { | |
19335 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 19336 | temp3 = True; |
d14a1e28 RD |
19337 | } |
19338 | } | |
19339 | { | |
19340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19341 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
19342 | |
19343 | wxPyEndAllowThreads(__tstate); | |
19344 | if (PyErr_Occurred()) SWIG_fail; | |
19345 | } | |
15afbcd0 | 19346 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19347 | { |
7722248d | 19348 | if (temp3) delete arg3; |
d14a1e28 RD |
19349 | } |
19350 | return resultobj; | |
19351 | fail: | |
19352 | { | |
7722248d | 19353 | if (temp3) delete arg3; |
d14a1e28 RD |
19354 | } |
19355 | return NULL; | |
19356 | } | |
19357 | ||
19358 | ||
19359 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19360 | PyObject *resultobj; | |
19361 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19362 | int arg2 = (int) wxDateTime::Country_Default ; | |
19363 | bool result; | |
19364 | PyObject * obj0 = 0 ; | |
994141e6 | 19365 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19366 | char *kwnames[] = { |
19367 | (char *) "self",(char *) "country", NULL | |
19368 | }; | |
19369 | ||
994141e6 | 19370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 19373 | if (obj1) { |
15afbcd0 RD |
19374 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
19375 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19376 | } |
d14a1e28 RD |
19377 | { |
19378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19379 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
19380 | ||
19381 | wxPyEndAllowThreads(__tstate); | |
19382 | if (PyErr_Occurred()) SWIG_fail; | |
19383 | } | |
4f89f6a3 RD |
19384 | { |
19385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19386 | } | |
d14a1e28 RD |
19387 | return resultobj; |
19388 | fail: | |
19389 | return NULL; | |
19390 | } | |
19391 | ||
19392 | ||
19393 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19394 | PyObject *resultobj; | |
19395 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19396 | wxDateTime *arg2 = 0 ; | |
19397 | bool result; | |
19398 | PyObject * obj0 = 0 ; | |
19399 | PyObject * obj1 = 0 ; | |
19400 | char *kwnames[] = { | |
19401 | (char *) "self",(char *) "datetime", NULL | |
19402 | }; | |
19403 | ||
19404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19407 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19408 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19409 | SWIG_fail; | |
d14a1e28 | 19410 | if (arg2 == NULL) { |
15afbcd0 RD |
19411 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19412 | SWIG_fail; | |
d14a1e28 RD |
19413 | } |
19414 | { | |
19415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19416 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
19417 | ||
19418 | wxPyEndAllowThreads(__tstate); | |
19419 | if (PyErr_Occurred()) SWIG_fail; | |
19420 | } | |
4f89f6a3 RD |
19421 | { |
19422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19423 | } | |
d14a1e28 RD |
19424 | return resultobj; |
19425 | fail: | |
19426 | return NULL; | |
19427 | } | |
19428 | ||
19429 | ||
19430 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19431 | PyObject *resultobj; | |
19432 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19433 | wxDateTime *arg2 = 0 ; | |
19434 | bool result; | |
19435 | PyObject * obj0 = 0 ; | |
19436 | PyObject * obj1 = 0 ; | |
19437 | char *kwnames[] = { | |
19438 | (char *) "self",(char *) "datetime", NULL | |
19439 | }; | |
19440 | ||
19441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19444 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19445 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19446 | SWIG_fail; | |
d14a1e28 | 19447 | if (arg2 == NULL) { |
15afbcd0 RD |
19448 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19449 | SWIG_fail; | |
d14a1e28 RD |
19450 | } |
19451 | { | |
19452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19453 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
19454 | ||
19455 | wxPyEndAllowThreads(__tstate); | |
19456 | if (PyErr_Occurred()) SWIG_fail; | |
19457 | } | |
4f89f6a3 RD |
19458 | { |
19459 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19460 | } | |
d14a1e28 RD |
19461 | return resultobj; |
19462 | fail: | |
19463 | return NULL; | |
19464 | } | |
19465 | ||
19466 | ||
19467 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19468 | PyObject *resultobj; | |
19469 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19470 | wxDateTime *arg2 = 0 ; | |
19471 | bool result; | |
19472 | PyObject * obj0 = 0 ; | |
19473 | PyObject * obj1 = 0 ; | |
19474 | char *kwnames[] = { | |
19475 | (char *) "self",(char *) "datetime", NULL | |
19476 | }; | |
19477 | ||
19478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19481 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19482 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19483 | SWIG_fail; | |
d14a1e28 | 19484 | if (arg2 == NULL) { |
15afbcd0 RD |
19485 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19486 | SWIG_fail; | |
d14a1e28 RD |
19487 | } |
19488 | { | |
19489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19490 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
19491 | ||
19492 | wxPyEndAllowThreads(__tstate); | |
19493 | if (PyErr_Occurred()) SWIG_fail; | |
19494 | } | |
4f89f6a3 RD |
19495 | { |
19496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19497 | } | |
d14a1e28 RD |
19498 | return resultobj; |
19499 | fail: | |
19500 | return NULL; | |
19501 | } | |
19502 | ||
19503 | ||
19504 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19505 | PyObject *resultobj; | |
19506 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19507 | wxDateTime *arg2 = 0 ; | |
19508 | wxDateTime *arg3 = 0 ; | |
19509 | bool result; | |
19510 | PyObject * obj0 = 0 ; | |
19511 | PyObject * obj1 = 0 ; | |
19512 | PyObject * obj2 = 0 ; | |
19513 | char *kwnames[] = { | |
19514 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19515 | }; | |
19516 | ||
19517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19520 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19521 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19522 | SWIG_fail; | |
d14a1e28 | 19523 | if (arg2 == NULL) { |
15afbcd0 RD |
19524 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19525 | SWIG_fail; | |
d14a1e28 | 19526 | } |
15afbcd0 RD |
19527 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, |
19528 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19529 | SWIG_fail; | |
d14a1e28 | 19530 | if (arg3 == NULL) { |
15afbcd0 RD |
19531 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19532 | SWIG_fail; | |
d14a1e28 RD |
19533 | } |
19534 | { | |
19535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19536 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19537 | ||
19538 | wxPyEndAllowThreads(__tstate); | |
19539 | if (PyErr_Occurred()) SWIG_fail; | |
19540 | } | |
4f89f6a3 RD |
19541 | { |
19542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19543 | } | |
d14a1e28 RD |
19544 | return resultobj; |
19545 | fail: | |
19546 | return NULL; | |
19547 | } | |
19548 | ||
19549 | ||
19550 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19551 | PyObject *resultobj; | |
19552 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19553 | wxDateTime *arg2 = 0 ; | |
19554 | wxDateTime *arg3 = 0 ; | |
19555 | bool result; | |
19556 | PyObject * obj0 = 0 ; | |
19557 | PyObject * obj1 = 0 ; | |
19558 | PyObject * obj2 = 0 ; | |
19559 | char *kwnames[] = { | |
19560 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19561 | }; | |
19562 | ||
19563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19566 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19567 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19568 | SWIG_fail; | |
d14a1e28 | 19569 | if (arg2 == NULL) { |
15afbcd0 RD |
19570 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19571 | SWIG_fail; | |
d14a1e28 | 19572 | } |
15afbcd0 RD |
19573 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, |
19574 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19575 | SWIG_fail; | |
d14a1e28 | 19576 | if (arg3 == NULL) { |
15afbcd0 RD |
19577 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19578 | SWIG_fail; | |
d14a1e28 RD |
19579 | } |
19580 | { | |
19581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19582 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19583 | ||
19584 | wxPyEndAllowThreads(__tstate); | |
19585 | if (PyErr_Occurred()) SWIG_fail; | |
19586 | } | |
4f89f6a3 RD |
19587 | { |
19588 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19589 | } | |
d14a1e28 RD |
19590 | return resultobj; |
19591 | fail: | |
19592 | return NULL; | |
19593 | } | |
19594 | ||
19595 | ||
19596 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19597 | PyObject *resultobj; | |
19598 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19599 | wxDateTime *arg2 = 0 ; | |
19600 | bool result; | |
19601 | PyObject * obj0 = 0 ; | |
19602 | PyObject * obj1 = 0 ; | |
19603 | char *kwnames[] = { | |
19604 | (char *) "self",(char *) "dt", NULL | |
19605 | }; | |
19606 | ||
19607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19610 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19611 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19612 | SWIG_fail; | |
d14a1e28 | 19613 | if (arg2 == NULL) { |
15afbcd0 RD |
19614 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19615 | SWIG_fail; | |
d14a1e28 RD |
19616 | } |
19617 | { | |
19618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19619 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
19620 | ||
19621 | wxPyEndAllowThreads(__tstate); | |
19622 | if (PyErr_Occurred()) SWIG_fail; | |
19623 | } | |
4f89f6a3 RD |
19624 | { |
19625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19626 | } | |
d14a1e28 RD |
19627 | return resultobj; |
19628 | fail: | |
19629 | return NULL; | |
19630 | } | |
19631 | ||
19632 | ||
19633 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19634 | PyObject *resultobj; | |
19635 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19636 | wxDateTime *arg2 = 0 ; | |
19637 | bool result; | |
19638 | PyObject * obj0 = 0 ; | |
19639 | PyObject * obj1 = 0 ; | |
19640 | char *kwnames[] = { | |
19641 | (char *) "self",(char *) "dt", NULL | |
19642 | }; | |
19643 | ||
19644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19647 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19648 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19649 | SWIG_fail; | |
d14a1e28 | 19650 | if (arg2 == NULL) { |
15afbcd0 RD |
19651 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19652 | SWIG_fail; | |
d14a1e28 RD |
19653 | } |
19654 | { | |
19655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19656 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
19657 | ||
19658 | wxPyEndAllowThreads(__tstate); | |
19659 | if (PyErr_Occurred()) SWIG_fail; | |
19660 | } | |
4f89f6a3 RD |
19661 | { |
19662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19663 | } | |
d14a1e28 RD |
19664 | return resultobj; |
19665 | fail: | |
19666 | return NULL; | |
19667 | } | |
19668 | ||
19669 | ||
19670 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19671 | PyObject *resultobj; | |
19672 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19673 | wxDateTime *arg2 = 0 ; | |
19674 | wxTimeSpan *arg3 = 0 ; | |
19675 | bool result; | |
19676 | PyObject * obj0 = 0 ; | |
19677 | PyObject * obj1 = 0 ; | |
19678 | PyObject * obj2 = 0 ; | |
19679 | char *kwnames[] = { | |
19680 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
19681 | }; | |
19682 | ||
19683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19686 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19687 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19688 | SWIG_fail; | |
d14a1e28 | 19689 | if (arg2 == NULL) { |
15afbcd0 RD |
19690 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19691 | SWIG_fail; | |
d14a1e28 | 19692 | } |
15afbcd0 RD |
19693 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan, |
19694 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19695 | SWIG_fail; | |
d14a1e28 | 19696 | if (arg3 == NULL) { |
15afbcd0 RD |
19697 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19698 | SWIG_fail; | |
d14a1e28 RD |
19699 | } |
19700 | { | |
19701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19702 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
19703 | ||
19704 | wxPyEndAllowThreads(__tstate); | |
19705 | if (PyErr_Occurred()) SWIG_fail; | |
19706 | } | |
4f89f6a3 RD |
19707 | { |
19708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19709 | } | |
d14a1e28 RD |
19710 | return resultobj; |
19711 | fail: | |
19712 | return NULL; | |
19713 | } | |
19714 | ||
19715 | ||
19716 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19717 | PyObject *resultobj; | |
19718 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19719 | wxTimeSpan *arg2 = 0 ; | |
19720 | wxDateTime *result; | |
19721 | PyObject * obj0 = 0 ; | |
19722 | PyObject * obj1 = 0 ; | |
19723 | char *kwnames[] = { | |
19724 | (char *) "self",(char *) "diff", NULL | |
19725 | }; | |
19726 | ||
19727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19730 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19731 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19732 | SWIG_fail; | |
d14a1e28 | 19733 | if (arg2 == NULL) { |
15afbcd0 RD |
19734 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19735 | SWIG_fail; | |
d14a1e28 RD |
19736 | } |
19737 | { | |
19738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19739 | { | |
19740 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
19741 | result = (wxDateTime *) &_result_ref; | |
19742 | } | |
19743 | ||
19744 | wxPyEndAllowThreads(__tstate); | |
19745 | if (PyErr_Occurred()) SWIG_fail; | |
19746 | } | |
15afbcd0 | 19747 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19748 | return resultobj; |
19749 | fail: | |
19750 | return NULL; | |
19751 | } | |
19752 | ||
19753 | ||
19754 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19755 | PyObject *resultobj; | |
19756 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19757 | wxDateSpan *arg2 = 0 ; | |
19758 | wxDateTime *result; | |
19759 | PyObject * obj0 = 0 ; | |
19760 | PyObject * obj1 = 0 ; | |
19761 | char *kwnames[] = { | |
19762 | (char *) "self",(char *) "diff", NULL | |
19763 | }; | |
19764 | ||
19765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19768 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19769 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19770 | SWIG_fail; | |
d14a1e28 | 19771 | if (arg2 == NULL) { |
15afbcd0 RD |
19772 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19773 | SWIG_fail; | |
d14a1e28 RD |
19774 | } |
19775 | { | |
19776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19777 | { | |
19778 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
19779 | result = (wxDateTime *) &_result_ref; | |
19780 | } | |
19781 | ||
19782 | wxPyEndAllowThreads(__tstate); | |
19783 | if (PyErr_Occurred()) SWIG_fail; | |
19784 | } | |
15afbcd0 | 19785 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19786 | return resultobj; |
19787 | fail: | |
19788 | return NULL; | |
19789 | } | |
19790 | ||
19791 | ||
19792 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19793 | PyObject *resultobj; | |
19794 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19795 | wxTimeSpan *arg2 = 0 ; | |
19796 | wxDateTime *result; | |
19797 | PyObject * obj0 = 0 ; | |
19798 | PyObject * obj1 = 0 ; | |
19799 | char *kwnames[] = { | |
19800 | (char *) "self",(char *) "diff", NULL | |
19801 | }; | |
19802 | ||
19803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19806 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19807 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19808 | SWIG_fail; | |
d14a1e28 | 19809 | if (arg2 == NULL) { |
15afbcd0 RD |
19810 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19811 | SWIG_fail; | |
d14a1e28 RD |
19812 | } |
19813 | { | |
19814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19815 | { | |
19816 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
19817 | result = (wxDateTime *) &_result_ref; | |
19818 | } | |
19819 | ||
19820 | wxPyEndAllowThreads(__tstate); | |
19821 | if (PyErr_Occurred()) SWIG_fail; | |
19822 | } | |
15afbcd0 | 19823 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19824 | return resultobj; |
19825 | fail: | |
19826 | return NULL; | |
19827 | } | |
19828 | ||
19829 | ||
19830 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19831 | PyObject *resultobj; | |
19832 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19833 | wxDateSpan *arg2 = 0 ; | |
19834 | wxDateTime *result; | |
19835 | PyObject * obj0 = 0 ; | |
19836 | PyObject * obj1 = 0 ; | |
19837 | char *kwnames[] = { | |
19838 | (char *) "self",(char *) "diff", NULL | |
19839 | }; | |
19840 | ||
19841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19844 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19845 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19846 | SWIG_fail; | |
d14a1e28 | 19847 | if (arg2 == NULL) { |
15afbcd0 RD |
19848 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19849 | SWIG_fail; | |
d14a1e28 RD |
19850 | } |
19851 | { | |
19852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19853 | { | |
19854 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
19855 | result = (wxDateTime *) &_result_ref; | |
19856 | } | |
19857 | ||
19858 | wxPyEndAllowThreads(__tstate); | |
19859 | if (PyErr_Occurred()) SWIG_fail; | |
19860 | } | |
15afbcd0 | 19861 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19862 | return resultobj; |
19863 | fail: | |
19864 | return NULL; | |
19865 | } | |
19866 | ||
19867 | ||
19868 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19869 | PyObject *resultobj; | |
19870 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19871 | wxDateTime *arg2 = 0 ; | |
19872 | wxTimeSpan result; | |
19873 | PyObject * obj0 = 0 ; | |
19874 | PyObject * obj1 = 0 ; | |
19875 | char *kwnames[] = { | |
19876 | (char *) "self",(char *) "dt", NULL | |
19877 | }; | |
19878 | ||
19879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19882 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19883 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19884 | SWIG_fail; | |
d14a1e28 | 19885 | if (arg2 == NULL) { |
15afbcd0 RD |
19886 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19887 | SWIG_fail; | |
d14a1e28 RD |
19888 | } |
19889 | { | |
19890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19891 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
19892 | ||
19893 | wxPyEndAllowThreads(__tstate); | |
19894 | if (PyErr_Occurred()) SWIG_fail; | |
19895 | } | |
19896 | { | |
19897 | wxTimeSpan * resultptr; | |
19898 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 19899 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
19900 | } |
19901 | return resultobj; | |
19902 | fail: | |
19903 | return NULL; | |
19904 | } | |
19905 | ||
19906 | ||
19907 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
19908 | PyObject *resultobj; | |
19909 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19910 | wxTimeSpan *arg2 = 0 ; | |
19911 | wxDateTime *result; | |
19912 | PyObject * obj0 = 0 ; | |
19913 | PyObject * obj1 = 0 ; | |
19914 | ||
19915 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19918 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19919 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19920 | SWIG_fail; | |
d14a1e28 | 19921 | if (arg2 == NULL) { |
15afbcd0 RD |
19922 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19923 | SWIG_fail; | |
d14a1e28 RD |
19924 | } |
19925 | { | |
19926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19927 | { | |
19928 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
19929 | result = (wxDateTime *) &_result_ref; | |
19930 | } | |
19931 | ||
19932 | wxPyEndAllowThreads(__tstate); | |
19933 | if (PyErr_Occurred()) SWIG_fail; | |
19934 | } | |
15afbcd0 | 19935 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19936 | return resultobj; |
19937 | fail: | |
19938 | return NULL; | |
19939 | } | |
19940 | ||
19941 | ||
19942 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
19943 | PyObject *resultobj; | |
19944 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19945 | wxDateSpan *arg2 = 0 ; | |
19946 | wxDateTime *result; | |
19947 | PyObject * obj0 = 0 ; | |
19948 | PyObject * obj1 = 0 ; | |
19949 | ||
19950 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19953 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19954 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19955 | SWIG_fail; | |
d14a1e28 | 19956 | if (arg2 == NULL) { |
15afbcd0 RD |
19957 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19958 | SWIG_fail; | |
d14a1e28 RD |
19959 | } |
19960 | { | |
19961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19962 | { | |
19963 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
19964 | result = (wxDateTime *) &_result_ref; | |
19965 | } | |
19966 | ||
19967 | wxPyEndAllowThreads(__tstate); | |
19968 | if (PyErr_Occurred()) SWIG_fail; | |
19969 | } | |
15afbcd0 | 19970 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19971 | return resultobj; |
19972 | fail: | |
19973 | return NULL; | |
19974 | } | |
19975 | ||
19976 | ||
19977 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
19978 | int argc; | |
19979 | PyObject *argv[3]; | |
19980 | int ii; | |
19981 | ||
19982 | argc = PyObject_Length(args); | |
19983 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
19984 | argv[ii] = PyTuple_GetItem(args,ii); | |
19985 | } | |
19986 | if (argc == 2) { | |
19987 | int _v; | |
19988 | { | |
19989 | void *ptr; | |
15afbcd0 | 19990 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
19991 | _v = 0; |
19992 | PyErr_Clear(); | |
19993 | } else { | |
19994 | _v = 1; | |
19995 | } | |
19996 | } | |
19997 | if (_v) { | |
19998 | { | |
19999 | void *ptr; | |
15afbcd0 | 20000 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20001 | _v = 0; |
20002 | PyErr_Clear(); | |
20003 | } else { | |
20004 | _v = 1; | |
20005 | } | |
20006 | } | |
20007 | if (_v) { | |
20008 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
20009 | } | |
20010 | } | |
20011 | } | |
20012 | if (argc == 2) { | |
20013 | int _v; | |
20014 | { | |
20015 | void *ptr; | |
15afbcd0 | 20016 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20017 | _v = 0; |
20018 | PyErr_Clear(); | |
20019 | } else { | |
20020 | _v = 1; | |
20021 | } | |
20022 | } | |
20023 | if (_v) { | |
20024 | { | |
20025 | void *ptr; | |
15afbcd0 | 20026 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20027 | _v = 0; |
20028 | PyErr_Clear(); | |
20029 | } else { | |
20030 | _v = 1; | |
20031 | } | |
20032 | } | |
20033 | if (_v) { | |
20034 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
20035 | } | |
20036 | } | |
20037 | } | |
20038 | ||
20039 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
20040 | return NULL; | |
20041 | } | |
20042 | ||
20043 | ||
20044 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
20045 | PyObject *resultobj; | |
20046 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20047 | wxTimeSpan *arg2 = 0 ; | |
20048 | wxDateTime *result; | |
20049 | PyObject * obj0 = 0 ; | |
20050 | PyObject * obj1 = 0 ; | |
20051 | ||
20052 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20055 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20056 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20057 | SWIG_fail; | |
d14a1e28 | 20058 | if (arg2 == NULL) { |
15afbcd0 RD |
20059 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20060 | SWIG_fail; | |
d14a1e28 RD |
20061 | } |
20062 | { | |
20063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20064 | { | |
20065 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
20066 | result = (wxDateTime *) &_result_ref; | |
20067 | } | |
20068 | ||
20069 | wxPyEndAllowThreads(__tstate); | |
20070 | if (PyErr_Occurred()) SWIG_fail; | |
20071 | } | |
15afbcd0 | 20072 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20073 | return resultobj; |
20074 | fail: | |
20075 | return NULL; | |
20076 | } | |
20077 | ||
20078 | ||
20079 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
20080 | PyObject *resultobj; | |
20081 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20082 | wxDateSpan *arg2 = 0 ; | |
20083 | wxDateTime *result; | |
20084 | PyObject * obj0 = 0 ; | |
20085 | PyObject * obj1 = 0 ; | |
20086 | ||
20087 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20090 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20091 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20092 | SWIG_fail; | |
d14a1e28 | 20093 | if (arg2 == NULL) { |
15afbcd0 RD |
20094 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20095 | SWIG_fail; | |
d14a1e28 RD |
20096 | } |
20097 | { | |
20098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20099 | { | |
20100 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
20101 | result = (wxDateTime *) &_result_ref; | |
20102 | } | |
20103 | ||
20104 | wxPyEndAllowThreads(__tstate); | |
20105 | if (PyErr_Occurred()) SWIG_fail; | |
20106 | } | |
15afbcd0 | 20107 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20108 | return resultobj; |
20109 | fail: | |
20110 | return NULL; | |
20111 | } | |
20112 | ||
20113 | ||
20114 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
20115 | int argc; | |
20116 | PyObject *argv[3]; | |
20117 | int ii; | |
20118 | ||
20119 | argc = PyObject_Length(args); | |
20120 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20121 | argv[ii] = PyTuple_GetItem(args,ii); | |
20122 | } | |
20123 | if (argc == 2) { | |
20124 | int _v; | |
20125 | { | |
20126 | void *ptr; | |
15afbcd0 | 20127 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20128 | _v = 0; |
20129 | PyErr_Clear(); | |
20130 | } else { | |
20131 | _v = 1; | |
20132 | } | |
20133 | } | |
20134 | if (_v) { | |
20135 | { | |
20136 | void *ptr; | |
15afbcd0 | 20137 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20138 | _v = 0; |
20139 | PyErr_Clear(); | |
20140 | } else { | |
20141 | _v = 1; | |
20142 | } | |
20143 | } | |
20144 | if (_v) { | |
20145 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
20146 | } | |
20147 | } | |
20148 | } | |
20149 | if (argc == 2) { | |
20150 | int _v; | |
20151 | { | |
20152 | void *ptr; | |
15afbcd0 | 20153 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20154 | _v = 0; |
20155 | PyErr_Clear(); | |
20156 | } else { | |
20157 | _v = 1; | |
20158 | } | |
20159 | } | |
20160 | if (_v) { | |
20161 | { | |
20162 | void *ptr; | |
15afbcd0 | 20163 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20164 | _v = 0; |
20165 | PyErr_Clear(); | |
20166 | } else { | |
20167 | _v = 1; | |
20168 | } | |
20169 | } | |
20170 | if (_v) { | |
20171 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
20172 | } | |
20173 | } | |
20174 | } | |
20175 | ||
20176 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
20177 | return NULL; | |
20178 | } | |
20179 | ||
20180 | ||
20181 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
20182 | PyObject *resultobj; | |
20183 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20184 | wxTimeSpan *arg2 = 0 ; | |
20185 | wxDateTime result; | |
20186 | PyObject * obj0 = 0 ; | |
20187 | PyObject * obj1 = 0 ; | |
20188 | ||
20189 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20192 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20193 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20194 | SWIG_fail; | |
d14a1e28 | 20195 | if (arg2 == NULL) { |
15afbcd0 RD |
20196 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20197 | SWIG_fail; | |
d14a1e28 RD |
20198 | } |
20199 | { | |
20200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20201 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
20202 | ||
20203 | wxPyEndAllowThreads(__tstate); | |
20204 | if (PyErr_Occurred()) SWIG_fail; | |
20205 | } | |
20206 | { | |
20207 | wxDateTime * resultptr; | |
20208 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20209 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20210 | } |
20211 | return resultobj; | |
20212 | fail: | |
20213 | return NULL; | |
20214 | } | |
20215 | ||
20216 | ||
20217 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
20218 | PyObject *resultobj; | |
20219 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20220 | wxDateSpan *arg2 = 0 ; | |
20221 | wxDateTime result; | |
20222 | PyObject * obj0 = 0 ; | |
20223 | PyObject * obj1 = 0 ; | |
20224 | ||
20225 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20228 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20229 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20230 | SWIG_fail; | |
d14a1e28 | 20231 | if (arg2 == NULL) { |
15afbcd0 RD |
20232 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20233 | SWIG_fail; | |
d14a1e28 RD |
20234 | } |
20235 | { | |
20236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20237 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
20238 | ||
20239 | wxPyEndAllowThreads(__tstate); | |
20240 | if (PyErr_Occurred()) SWIG_fail; | |
20241 | } | |
20242 | { | |
20243 | wxDateTime * resultptr; | |
20244 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20245 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20246 | } |
20247 | return resultobj; | |
20248 | fail: | |
20249 | return NULL; | |
20250 | } | |
20251 | ||
20252 | ||
20253 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
20254 | int argc; | |
20255 | PyObject *argv[3]; | |
20256 | int ii; | |
20257 | ||
20258 | argc = PyObject_Length(args); | |
20259 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20260 | argv[ii] = PyTuple_GetItem(args,ii); | |
20261 | } | |
20262 | if (argc == 2) { | |
20263 | int _v; | |
20264 | { | |
20265 | void *ptr; | |
15afbcd0 | 20266 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20267 | _v = 0; |
20268 | PyErr_Clear(); | |
20269 | } else { | |
20270 | _v = 1; | |
20271 | } | |
20272 | } | |
20273 | if (_v) { | |
20274 | { | |
20275 | void *ptr; | |
15afbcd0 | 20276 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20277 | _v = 0; |
20278 | PyErr_Clear(); | |
20279 | } else { | |
20280 | _v = 1; | |
20281 | } | |
20282 | } | |
20283 | if (_v) { | |
20284 | return _wrap_DateTime___add____SWIG_0(self,args); | |
20285 | } | |
20286 | } | |
20287 | } | |
20288 | if (argc == 2) { | |
20289 | int _v; | |
20290 | { | |
20291 | void *ptr; | |
15afbcd0 | 20292 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20293 | _v = 0; |
20294 | PyErr_Clear(); | |
20295 | } else { | |
20296 | _v = 1; | |
20297 | } | |
20298 | } | |
20299 | if (_v) { | |
20300 | { | |
20301 | void *ptr; | |
15afbcd0 | 20302 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20303 | _v = 0; |
20304 | PyErr_Clear(); | |
20305 | } else { | |
20306 | _v = 1; | |
20307 | } | |
20308 | } | |
20309 | if (_v) { | |
20310 | return _wrap_DateTime___add____SWIG_1(self,args); | |
20311 | } | |
20312 | } | |
20313 | } | |
20314 | ||
20315 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
20316 | return NULL; | |
20317 | } | |
20318 | ||
20319 | ||
20320 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
20321 | PyObject *resultobj; | |
20322 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20323 | wxDateTime *arg2 = 0 ; | |
20324 | wxTimeSpan result; | |
20325 | PyObject * obj0 = 0 ; | |
20326 | PyObject * obj1 = 0 ; | |
20327 | ||
20328 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20331 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20332 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20333 | SWIG_fail; | |
d14a1e28 | 20334 | if (arg2 == NULL) { |
15afbcd0 RD |
20335 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20336 | SWIG_fail; | |
d14a1e28 RD |
20337 | } |
20338 | { | |
20339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20340 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
20341 | ||
20342 | wxPyEndAllowThreads(__tstate); | |
20343 | if (PyErr_Occurred()) SWIG_fail; | |
20344 | } | |
20345 | { | |
20346 | wxTimeSpan * resultptr; | |
20347 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 20348 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
20349 | } |
20350 | return resultobj; | |
20351 | fail: | |
20352 | return NULL; | |
20353 | } | |
20354 | ||
20355 | ||
20356 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
20357 | PyObject *resultobj; | |
20358 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20359 | wxTimeSpan *arg2 = 0 ; | |
20360 | wxDateTime result; | |
20361 | PyObject * obj0 = 0 ; | |
20362 | PyObject * obj1 = 0 ; | |
20363 | ||
20364 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20367 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20368 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20369 | SWIG_fail; | |
d14a1e28 | 20370 | if (arg2 == NULL) { |
15afbcd0 RD |
20371 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20372 | SWIG_fail; | |
d14a1e28 RD |
20373 | } |
20374 | { | |
20375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20376 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
20377 | ||
20378 | wxPyEndAllowThreads(__tstate); | |
20379 | if (PyErr_Occurred()) SWIG_fail; | |
20380 | } | |
20381 | { | |
20382 | wxDateTime * resultptr; | |
20383 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20384 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20385 | } |
20386 | return resultobj; | |
20387 | fail: | |
20388 | return NULL; | |
20389 | } | |
20390 | ||
20391 | ||
20392 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
20393 | PyObject *resultobj; | |
20394 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20395 | wxDateSpan *arg2 = 0 ; | |
20396 | wxDateTime result; | |
20397 | PyObject * obj0 = 0 ; | |
20398 | PyObject * obj1 = 0 ; | |
20399 | ||
20400 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20403 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20404 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20405 | SWIG_fail; | |
d14a1e28 | 20406 | if (arg2 == NULL) { |
15afbcd0 RD |
20407 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20408 | SWIG_fail; | |
d14a1e28 RD |
20409 | } |
20410 | { | |
20411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20412 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
20413 | ||
20414 | wxPyEndAllowThreads(__tstate); | |
20415 | if (PyErr_Occurred()) SWIG_fail; | |
20416 | } | |
20417 | { | |
20418 | wxDateTime * resultptr; | |
20419 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20420 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20421 | } |
20422 | return resultobj; | |
20423 | fail: | |
20424 | return NULL; | |
20425 | } | |
20426 | ||
20427 | ||
20428 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
20429 | int argc; | |
20430 | PyObject *argv[3]; | |
20431 | int ii; | |
20432 | ||
20433 | argc = PyObject_Length(args); | |
20434 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20435 | argv[ii] = PyTuple_GetItem(args,ii); | |
20436 | } | |
20437 | if (argc == 2) { | |
20438 | int _v; | |
20439 | { | |
20440 | void *ptr; | |
15afbcd0 | 20441 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20442 | _v = 0; |
20443 | PyErr_Clear(); | |
20444 | } else { | |
20445 | _v = 1; | |
20446 | } | |
20447 | } | |
20448 | if (_v) { | |
20449 | { | |
20450 | void *ptr; | |
15afbcd0 | 20451 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20452 | _v = 0; |
20453 | PyErr_Clear(); | |
20454 | } else { | |
20455 | _v = 1; | |
20456 | } | |
20457 | } | |
20458 | if (_v) { | |
20459 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
20460 | } | |
20461 | } | |
20462 | } | |
20463 | if (argc == 2) { | |
20464 | int _v; | |
20465 | { | |
20466 | void *ptr; | |
15afbcd0 | 20467 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20468 | _v = 0; |
20469 | PyErr_Clear(); | |
20470 | } else { | |
20471 | _v = 1; | |
20472 | } | |
20473 | } | |
20474 | if (_v) { | |
20475 | { | |
20476 | void *ptr; | |
15afbcd0 | 20477 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20478 | _v = 0; |
20479 | PyErr_Clear(); | |
20480 | } else { | |
20481 | _v = 1; | |
20482 | } | |
20483 | } | |
20484 | if (_v) { | |
20485 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
20486 | } | |
20487 | } | |
20488 | } | |
20489 | if (argc == 2) { | |
20490 | int _v; | |
20491 | { | |
20492 | void *ptr; | |
15afbcd0 | 20493 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20494 | _v = 0; |
20495 | PyErr_Clear(); | |
20496 | } else { | |
20497 | _v = 1; | |
20498 | } | |
20499 | } | |
20500 | if (_v) { | |
20501 | { | |
20502 | void *ptr; | |
15afbcd0 | 20503 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20504 | _v = 0; |
20505 | PyErr_Clear(); | |
20506 | } else { | |
20507 | _v = 1; | |
20508 | } | |
20509 | } | |
20510 | if (_v) { | |
20511 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
20512 | } | |
20513 | } | |
20514 | } | |
20515 | ||
20516 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
20517 | return NULL; | |
20518 | } | |
20519 | ||
20520 | ||
20521 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
20522 | PyObject *resultobj; | |
20523 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20524 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20525 | bool result; |
20526 | PyObject * obj0 = 0 ; | |
20527 | PyObject * obj1 = 0 ; | |
20528 | ||
20529 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20532 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20534 | { |
20535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20536 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20537 | |
20538 | wxPyEndAllowThreads(__tstate); | |
20539 | if (PyErr_Occurred()) SWIG_fail; | |
20540 | } | |
4f89f6a3 RD |
20541 | { |
20542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20543 | } | |
d14a1e28 RD |
20544 | return resultobj; |
20545 | fail: | |
20546 | return NULL; | |
20547 | } | |
20548 | ||
20549 | ||
20550 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
20551 | PyObject *resultobj; | |
20552 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20553 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20554 | bool result; |
20555 | PyObject * obj0 = 0 ; | |
20556 | PyObject * obj1 = 0 ; | |
20557 | ||
20558 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20561 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20563 | { |
20564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20565 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20566 | |
20567 | wxPyEndAllowThreads(__tstate); | |
20568 | if (PyErr_Occurred()) SWIG_fail; | |
20569 | } | |
4f89f6a3 RD |
20570 | { |
20571 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20572 | } | |
d14a1e28 RD |
20573 | return resultobj; |
20574 | fail: | |
20575 | return NULL; | |
20576 | } | |
20577 | ||
20578 | ||
20579 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
20580 | PyObject *resultobj; | |
20581 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20582 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20583 | bool result; |
20584 | PyObject * obj0 = 0 ; | |
20585 | PyObject * obj1 = 0 ; | |
20586 | ||
20587 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20590 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20592 | { |
20593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20594 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20595 | |
20596 | wxPyEndAllowThreads(__tstate); | |
20597 | if (PyErr_Occurred()) SWIG_fail; | |
20598 | } | |
4f89f6a3 RD |
20599 | { |
20600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20601 | } | |
d14a1e28 RD |
20602 | return resultobj; |
20603 | fail: | |
20604 | return NULL; | |
20605 | } | |
20606 | ||
20607 | ||
20608 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
20609 | PyObject *resultobj; | |
20610 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20611 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20612 | bool result; |
20613 | PyObject * obj0 = 0 ; | |
20614 | PyObject * obj1 = 0 ; | |
20615 | ||
20616 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20619 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20621 | { |
20622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20623 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20624 | |
20625 | wxPyEndAllowThreads(__tstate); | |
20626 | if (PyErr_Occurred()) SWIG_fail; | |
20627 | } | |
4f89f6a3 RD |
20628 | { |
20629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20630 | } | |
d14a1e28 RD |
20631 | return resultobj; |
20632 | fail: | |
20633 | return NULL; | |
20634 | } | |
20635 | ||
20636 | ||
20637 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
20638 | PyObject *resultobj; | |
20639 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20640 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20641 | bool result; |
20642 | PyObject * obj0 = 0 ; | |
20643 | PyObject * obj1 = 0 ; | |
20644 | ||
20645 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20648 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20650 | { |
20651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20652 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20653 | |
20654 | wxPyEndAllowThreads(__tstate); | |
20655 | if (PyErr_Occurred()) SWIG_fail; | |
20656 | } | |
4f89f6a3 RD |
20657 | { |
20658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20659 | } | |
d14a1e28 RD |
20660 | return resultobj; |
20661 | fail: | |
20662 | return NULL; | |
20663 | } | |
20664 | ||
20665 | ||
20666 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
20667 | PyObject *resultobj; | |
20668 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20669 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20670 | bool result; |
20671 | PyObject * obj0 = 0 ; | |
20672 | PyObject * obj1 = 0 ; | |
20673 | ||
20674 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20677 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20679 | { |
20680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20681 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20682 | |
20683 | wxPyEndAllowThreads(__tstate); | |
20684 | if (PyErr_Occurred()) SWIG_fail; | |
20685 | } | |
4f89f6a3 RD |
20686 | { |
20687 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20688 | } | |
d14a1e28 RD |
20689 | return resultobj; |
20690 | fail: | |
20691 | return NULL; | |
20692 | } | |
20693 | ||
20694 | ||
20695 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20696 | PyObject *resultobj; | |
20697 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20698 | wxString *arg2 = 0 ; | |
20699 | int result; | |
e811c8ce | 20700 | bool temp2 = False ; |
d14a1e28 RD |
20701 | PyObject * obj0 = 0 ; |
20702 | PyObject * obj1 = 0 ; | |
20703 | char *kwnames[] = { | |
20704 | (char *) "self",(char *) "date", NULL | |
20705 | }; | |
20706 | ||
20707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20710 | { |
20711 | arg2 = wxString_in_helper(obj1); | |
20712 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20713 | temp2 = True; |
d14a1e28 RD |
20714 | } |
20715 | { | |
20716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20717 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
20718 | ||
20719 | wxPyEndAllowThreads(__tstate); | |
20720 | if (PyErr_Occurred()) SWIG_fail; | |
20721 | } | |
15afbcd0 | 20722 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20723 | { |
20724 | if (temp2) | |
20725 | delete arg2; | |
20726 | } | |
20727 | return resultobj; | |
20728 | fail: | |
20729 | { | |
20730 | if (temp2) | |
20731 | delete arg2; | |
20732 | } | |
20733 | return NULL; | |
20734 | } | |
20735 | ||
20736 | ||
20737 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20738 | PyObject *resultobj; | |
20739 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20740 | wxString *arg2 = 0 ; | |
20741 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
20742 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20743 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
20744 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
20745 | int result; | |
e811c8ce RD |
20746 | bool temp2 = False ; |
20747 | bool temp3 = False ; | |
d14a1e28 RD |
20748 | PyObject * obj0 = 0 ; |
20749 | PyObject * obj1 = 0 ; | |
20750 | PyObject * obj2 = 0 ; | |
20751 | PyObject * obj3 = 0 ; | |
20752 | char *kwnames[] = { | |
20753 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
20754 | }; | |
20755 | ||
20756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
20757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20759 | { |
20760 | arg2 = wxString_in_helper(obj1); | |
20761 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20762 | temp2 = True; |
d14a1e28 RD |
20763 | } |
20764 | if (obj2) { | |
20765 | { | |
20766 | arg3 = wxString_in_helper(obj2); | |
20767 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 20768 | temp3 = True; |
d14a1e28 RD |
20769 | } |
20770 | } | |
20771 | if (obj3) { | |
15afbcd0 RD |
20772 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime, |
20773 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20774 | SWIG_fail; | |
d14a1e28 | 20775 | if (arg4 == NULL) { |
15afbcd0 RD |
20776 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20777 | SWIG_fail; | |
d14a1e28 RD |
20778 | } |
20779 | } | |
20780 | { | |
20781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20782 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
20783 | ||
20784 | wxPyEndAllowThreads(__tstate); | |
20785 | if (PyErr_Occurred()) SWIG_fail; | |
20786 | } | |
15afbcd0 | 20787 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20788 | { |
20789 | if (temp2) | |
20790 | delete arg2; | |
20791 | } | |
20792 | { | |
20793 | if (temp3) | |
20794 | delete arg3; | |
20795 | } | |
20796 | return resultobj; | |
20797 | fail: | |
20798 | { | |
20799 | if (temp2) | |
20800 | delete arg2; | |
20801 | } | |
20802 | { | |
20803 | if (temp3) | |
20804 | delete arg3; | |
20805 | } | |
20806 | return NULL; | |
20807 | } | |
20808 | ||
20809 | ||
20810 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20811 | PyObject *resultobj; | |
20812 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20813 | wxString *arg2 = 0 ; | |
20814 | int result; | |
e811c8ce | 20815 | bool temp2 = False ; |
d14a1e28 RD |
20816 | PyObject * obj0 = 0 ; |
20817 | PyObject * obj1 = 0 ; | |
20818 | char *kwnames[] = { | |
20819 | (char *) "self",(char *) "datetime", NULL | |
20820 | }; | |
20821 | ||
20822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20825 | { |
20826 | arg2 = wxString_in_helper(obj1); | |
20827 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20828 | temp2 = True; |
d14a1e28 RD |
20829 | } |
20830 | { | |
20831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20832 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
20833 | ||
20834 | wxPyEndAllowThreads(__tstate); | |
20835 | if (PyErr_Occurred()) SWIG_fail; | |
20836 | } | |
15afbcd0 | 20837 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20838 | { |
20839 | if (temp2) | |
20840 | delete arg2; | |
20841 | } | |
20842 | return resultobj; | |
20843 | fail: | |
20844 | { | |
20845 | if (temp2) | |
20846 | delete arg2; | |
20847 | } | |
20848 | return NULL; | |
20849 | } | |
20850 | ||
20851 | ||
20852 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20853 | PyObject *resultobj; | |
20854 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20855 | wxString *arg2 = 0 ; | |
20856 | int result; | |
e811c8ce | 20857 | bool temp2 = False ; |
d14a1e28 RD |
20858 | PyObject * obj0 = 0 ; |
20859 | PyObject * obj1 = 0 ; | |
20860 | char *kwnames[] = { | |
20861 | (char *) "self",(char *) "date", NULL | |
20862 | }; | |
20863 | ||
20864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20867 | { |
20868 | arg2 = wxString_in_helper(obj1); | |
20869 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20870 | temp2 = True; |
d14a1e28 RD |
20871 | } |
20872 | { | |
20873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20874 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
20875 | ||
20876 | wxPyEndAllowThreads(__tstate); | |
20877 | if (PyErr_Occurred()) SWIG_fail; | |
20878 | } | |
15afbcd0 | 20879 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20880 | { |
20881 | if (temp2) | |
20882 | delete arg2; | |
20883 | } | |
20884 | return resultobj; | |
20885 | fail: | |
20886 | { | |
20887 | if (temp2) | |
20888 | delete arg2; | |
20889 | } | |
20890 | return NULL; | |
20891 | } | |
20892 | ||
20893 | ||
20894 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20895 | PyObject *resultobj; | |
20896 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20897 | wxString *arg2 = 0 ; | |
20898 | int result; | |
e811c8ce | 20899 | bool temp2 = False ; |
d14a1e28 RD |
20900 | PyObject * obj0 = 0 ; |
20901 | PyObject * obj1 = 0 ; | |
20902 | char *kwnames[] = { | |
20903 | (char *) "self",(char *) "time", NULL | |
20904 | }; | |
20905 | ||
20906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20909 | { |
20910 | arg2 = wxString_in_helper(obj1); | |
20911 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20912 | temp2 = True; |
d14a1e28 RD |
20913 | } |
20914 | { | |
20915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20916 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
20917 | ||
20918 | wxPyEndAllowThreads(__tstate); | |
20919 | if (PyErr_Occurred()) SWIG_fail; | |
20920 | } | |
15afbcd0 | 20921 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20922 | { |
20923 | if (temp2) | |
20924 | delete arg2; | |
20925 | } | |
20926 | return resultobj; | |
20927 | fail: | |
20928 | { | |
20929 | if (temp2) | |
20930 | delete arg2; | |
20931 | } | |
20932 | return NULL; | |
20933 | } | |
20934 | ||
20935 | ||
20936 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20937 | PyObject *resultobj; | |
20938 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20939 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
20940 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
20941 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
20942 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
20943 | wxString result; | |
e811c8ce | 20944 | bool temp2 = False ; |
7722248d | 20945 | bool temp3 = False ; |
d14a1e28 RD |
20946 | PyObject * obj0 = 0 ; |
20947 | PyObject * obj1 = 0 ; | |
20948 | PyObject * obj2 = 0 ; | |
20949 | char *kwnames[] = { | |
20950 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
20951 | }; | |
20952 | ||
20953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
20954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20956 | if (obj1) { |
20957 | { | |
20958 | arg2 = wxString_in_helper(obj1); | |
20959 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20960 | temp2 = True; |
d14a1e28 RD |
20961 | } |
20962 | } | |
20963 | if (obj2) { | |
20964 | { | |
20965 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 20966 | temp3 = True; |
d14a1e28 RD |
20967 | } |
20968 | } | |
20969 | { | |
20970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20971 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
20972 | ||
20973 | wxPyEndAllowThreads(__tstate); | |
20974 | if (PyErr_Occurred()) SWIG_fail; | |
20975 | } | |
20976 | { | |
20977 | #if wxUSE_UNICODE | |
20978 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20979 | #else | |
20980 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20981 | #endif | |
20982 | } | |
20983 | { | |
20984 | if (temp2) | |
20985 | delete arg2; | |
20986 | } | |
20987 | { | |
7722248d | 20988 | if (temp3) delete arg3; |
d14a1e28 RD |
20989 | } |
20990 | return resultobj; | |
20991 | fail: | |
20992 | { | |
20993 | if (temp2) | |
20994 | delete arg2; | |
20995 | } | |
20996 | { | |
7722248d | 20997 | if (temp3) delete arg3; |
d14a1e28 RD |
20998 | } |
20999 | return NULL; | |
21000 | } | |
21001 | ||
21002 | ||
21003 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21004 | PyObject *resultobj; | |
21005 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21006 | wxString result; | |
21007 | PyObject * obj0 = 0 ; | |
21008 | char *kwnames[] = { | |
21009 | (char *) "self", NULL | |
21010 | }; | |
21011 | ||
21012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21015 | { |
21016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21017 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
21018 | ||
21019 | wxPyEndAllowThreads(__tstate); | |
21020 | if (PyErr_Occurred()) SWIG_fail; | |
21021 | } | |
21022 | { | |
21023 | #if wxUSE_UNICODE | |
21024 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21025 | #else | |
21026 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21027 | #endif | |
21028 | } | |
21029 | return resultobj; | |
21030 | fail: | |
21031 | return NULL; | |
21032 | } | |
21033 | ||
21034 | ||
21035 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21036 | PyObject *resultobj; | |
21037 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21038 | wxString result; | |
21039 | PyObject * obj0 = 0 ; | |
21040 | char *kwnames[] = { | |
21041 | (char *) "self", NULL | |
21042 | }; | |
21043 | ||
21044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21047 | { |
21048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21049 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
21050 | ||
21051 | wxPyEndAllowThreads(__tstate); | |
21052 | if (PyErr_Occurred()) SWIG_fail; | |
21053 | } | |
21054 | { | |
21055 | #if wxUSE_UNICODE | |
21056 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21057 | #else | |
21058 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21059 | #endif | |
21060 | } | |
21061 | return resultobj; | |
21062 | fail: | |
21063 | return NULL; | |
21064 | } | |
21065 | ||
21066 | ||
21067 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21068 | PyObject *resultobj; | |
21069 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21070 | wxString result; | |
21071 | PyObject * obj0 = 0 ; | |
21072 | char *kwnames[] = { | |
21073 | (char *) "self", NULL | |
21074 | }; | |
21075 | ||
21076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21079 | { |
21080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21081 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
21082 | ||
21083 | wxPyEndAllowThreads(__tstate); | |
21084 | if (PyErr_Occurred()) SWIG_fail; | |
21085 | } | |
21086 | { | |
21087 | #if wxUSE_UNICODE | |
21088 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21089 | #else | |
21090 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21091 | #endif | |
21092 | } | |
21093 | return resultobj; | |
21094 | fail: | |
21095 | return NULL; | |
21096 | } | |
21097 | ||
21098 | ||
21099 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21100 | PyObject *resultobj; | |
21101 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21102 | wxString result; | |
21103 | PyObject * obj0 = 0 ; | |
21104 | char *kwnames[] = { | |
21105 | (char *) "self", NULL | |
21106 | }; | |
21107 | ||
21108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21111 | { |
21112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21113 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
21114 | ||
21115 | wxPyEndAllowThreads(__tstate); | |
21116 | if (PyErr_Occurred()) SWIG_fail; | |
21117 | } | |
21118 | { | |
21119 | #if wxUSE_UNICODE | |
21120 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21121 | #else | |
21122 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21123 | #endif | |
21124 | } | |
21125 | return resultobj; | |
21126 | fail: | |
21127 | return NULL; | |
21128 | } | |
21129 | ||
21130 | ||
21131 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
21132 | PyObject *obj; | |
21133 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21134 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
21135 | Py_INCREF(obj); | |
21136 | return Py_BuildValue((char *)""); | |
21137 | } | |
21138 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21139 | PyObject *resultobj; | |
21140 | long arg1 ; | |
21141 | wxTimeSpan result; | |
994141e6 | 21142 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21143 | char *kwnames[] = { |
21144 | (char *) "sec", NULL | |
21145 | }; | |
21146 | ||
994141e6 | 21147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21148 | arg1 = (long) SWIG_AsLong(obj0); |
21149 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21150 | { |
21151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21152 | result = wxTimeSpan::Seconds(arg1); | |
21153 | ||
21154 | wxPyEndAllowThreads(__tstate); | |
21155 | if (PyErr_Occurred()) SWIG_fail; | |
21156 | } | |
21157 | { | |
21158 | wxTimeSpan * resultptr; | |
21159 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21160 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21161 | } |
21162 | return resultobj; | |
21163 | fail: | |
21164 | return NULL; | |
21165 | } | |
21166 | ||
21167 | ||
21168 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21169 | PyObject *resultobj; | |
21170 | wxTimeSpan result; | |
21171 | char *kwnames[] = { | |
21172 | NULL | |
21173 | }; | |
21174 | ||
21175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
21176 | { | |
21177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21178 | result = wxTimeSpan::Second(); | |
21179 | ||
21180 | wxPyEndAllowThreads(__tstate); | |
21181 | if (PyErr_Occurred()) SWIG_fail; | |
21182 | } | |
21183 | { | |
21184 | wxTimeSpan * resultptr; | |
21185 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21186 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21187 | } |
21188 | return resultobj; | |
21189 | fail: | |
21190 | return NULL; | |
21191 | } | |
21192 | ||
21193 | ||
21194 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21195 | PyObject *resultobj; | |
21196 | long arg1 ; | |
21197 | wxTimeSpan result; | |
994141e6 | 21198 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21199 | char *kwnames[] = { |
21200 | (char *) "min", NULL | |
21201 | }; | |
21202 | ||
994141e6 | 21203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21204 | arg1 = (long) SWIG_AsLong(obj0); |
21205 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21206 | { |
21207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21208 | result = wxTimeSpan::Minutes(arg1); | |
21209 | ||
21210 | wxPyEndAllowThreads(__tstate); | |
21211 | if (PyErr_Occurred()) SWIG_fail; | |
21212 | } | |
21213 | { | |
21214 | wxTimeSpan * resultptr; | |
21215 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21216 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21217 | } |
21218 | return resultobj; | |
21219 | fail: | |
21220 | return NULL; | |
21221 | } | |
21222 | ||
21223 | ||
21224 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21225 | PyObject *resultobj; | |
21226 | wxTimeSpan result; | |
21227 | char *kwnames[] = { | |
21228 | NULL | |
21229 | }; | |
21230 | ||
21231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
21232 | { | |
21233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21234 | result = wxTimeSpan::Minute(); | |
21235 | ||
21236 | wxPyEndAllowThreads(__tstate); | |
21237 | if (PyErr_Occurred()) SWIG_fail; | |
21238 | } | |
21239 | { | |
21240 | wxTimeSpan * resultptr; | |
21241 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21242 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21243 | } |
21244 | return resultobj; | |
21245 | fail: | |
21246 | return NULL; | |
21247 | } | |
21248 | ||
21249 | ||
21250 | static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21251 | PyObject *resultobj; | |
21252 | long arg1 ; | |
21253 | wxTimeSpan result; | |
994141e6 | 21254 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21255 | char *kwnames[] = { |
21256 | (char *) "hours", NULL | |
21257 | }; | |
21258 | ||
994141e6 | 21259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21260 | arg1 = (long) SWIG_AsLong(obj0); |
21261 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21262 | { |
21263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21264 | result = wxTimeSpan::Hours(arg1); | |
21265 | ||
21266 | wxPyEndAllowThreads(__tstate); | |
21267 | if (PyErr_Occurred()) SWIG_fail; | |
21268 | } | |
21269 | { | |
21270 | wxTimeSpan * resultptr; | |
21271 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21272 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21273 | } |
21274 | return resultobj; | |
21275 | fail: | |
21276 | return NULL; | |
21277 | } | |
21278 | ||
21279 | ||
21280 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21281 | PyObject *resultobj; | |
21282 | wxTimeSpan result; | |
21283 | char *kwnames[] = { | |
21284 | NULL | |
21285 | }; | |
21286 | ||
21287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
21288 | { | |
21289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21290 | result = wxTimeSpan::Hour(); | |
21291 | ||
21292 | wxPyEndAllowThreads(__tstate); | |
21293 | if (PyErr_Occurred()) SWIG_fail; | |
21294 | } | |
21295 | { | |
21296 | wxTimeSpan * resultptr; | |
21297 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21298 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21299 | } |
21300 | return resultobj; | |
21301 | fail: | |
21302 | return NULL; | |
21303 | } | |
21304 | ||
21305 | ||
21306 | static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21307 | PyObject *resultobj; | |
21308 | long arg1 ; | |
21309 | wxTimeSpan result; | |
994141e6 | 21310 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21311 | char *kwnames[] = { |
21312 | (char *) "days", NULL | |
21313 | }; | |
21314 | ||
994141e6 | 21315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21316 | arg1 = (long) SWIG_AsLong(obj0); |
21317 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21318 | { |
21319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21320 | result = wxTimeSpan::Days(arg1); | |
21321 | ||
21322 | wxPyEndAllowThreads(__tstate); | |
21323 | if (PyErr_Occurred()) SWIG_fail; | |
21324 | } | |
21325 | { | |
21326 | wxTimeSpan * resultptr; | |
21327 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21328 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21329 | } |
21330 | return resultobj; | |
21331 | fail: | |
21332 | return NULL; | |
21333 | } | |
21334 | ||
21335 | ||
21336 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21337 | PyObject *resultobj; | |
21338 | wxTimeSpan result; | |
21339 | char *kwnames[] = { | |
21340 | NULL | |
21341 | }; | |
21342 | ||
21343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
21344 | { | |
21345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21346 | result = wxTimeSpan::Day(); | |
21347 | ||
21348 | wxPyEndAllowThreads(__tstate); | |
21349 | if (PyErr_Occurred()) SWIG_fail; | |
21350 | } | |
21351 | { | |
21352 | wxTimeSpan * resultptr; | |
21353 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21354 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21355 | } |
21356 | return resultobj; | |
21357 | fail: | |
21358 | return NULL; | |
21359 | } | |
21360 | ||
21361 | ||
21362 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21363 | PyObject *resultobj; | |
21364 | long arg1 ; | |
21365 | wxTimeSpan result; | |
994141e6 | 21366 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21367 | char *kwnames[] = { |
21368 | (char *) "days", NULL | |
21369 | }; | |
21370 | ||
994141e6 | 21371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21372 | arg1 = (long) SWIG_AsLong(obj0); |
21373 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21374 | { |
21375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21376 | result = wxTimeSpan::Weeks(arg1); | |
21377 | ||
21378 | wxPyEndAllowThreads(__tstate); | |
21379 | if (PyErr_Occurred()) SWIG_fail; | |
21380 | } | |
21381 | { | |
21382 | wxTimeSpan * resultptr; | |
21383 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21384 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21385 | } |
21386 | return resultobj; | |
21387 | fail: | |
21388 | return NULL; | |
21389 | } | |
21390 | ||
21391 | ||
21392 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21393 | PyObject *resultobj; | |
21394 | wxTimeSpan result; | |
21395 | char *kwnames[] = { | |
21396 | NULL | |
21397 | }; | |
21398 | ||
21399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
21400 | { | |
21401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21402 | result = wxTimeSpan::Week(); | |
21403 | ||
21404 | wxPyEndAllowThreads(__tstate); | |
21405 | if (PyErr_Occurred()) SWIG_fail; | |
21406 | } | |
21407 | { | |
21408 | wxTimeSpan * resultptr; | |
21409 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21410 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21411 | } |
21412 | return resultobj; | |
21413 | fail: | |
21414 | return NULL; | |
21415 | } | |
21416 | ||
21417 | ||
21418 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21419 | PyObject *resultobj; | |
21420 | long arg1 = (long) 0 ; | |
21421 | long arg2 = (long) 0 ; | |
21422 | long arg3 = (long) 0 ; | |
21423 | long arg4 = (long) 0 ; | |
21424 | wxTimeSpan *result; | |
994141e6 RD |
21425 | PyObject * obj0 = 0 ; |
21426 | PyObject * obj1 = 0 ; | |
21427 | PyObject * obj2 = 0 ; | |
21428 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21429 | char *kwnames[] = { |
21430 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
21431 | }; | |
21432 | ||
994141e6 RD |
21433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
21434 | if (obj0) { | |
15afbcd0 RD |
21435 | arg1 = (long) SWIG_AsLong(obj0); |
21436 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
21437 | } |
21438 | if (obj1) { | |
15afbcd0 RD |
21439 | arg2 = (long) SWIG_AsLong(obj1); |
21440 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
21441 | } |
21442 | if (obj2) { | |
15afbcd0 RD |
21443 | arg3 = (long) SWIG_AsLong(obj2); |
21444 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
21445 | } |
21446 | if (obj3) { | |
15afbcd0 RD |
21447 | arg4 = (long) SWIG_AsLong(obj3); |
21448 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21449 | } |
d14a1e28 RD |
21450 | { |
21451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21452 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
21453 | ||
21454 | wxPyEndAllowThreads(__tstate); | |
21455 | if (PyErr_Occurred()) SWIG_fail; | |
21456 | } | |
15afbcd0 | 21457 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21458 | return resultobj; |
21459 | fail: | |
21460 | return NULL; | |
21461 | } | |
21462 | ||
21463 | ||
21464 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21465 | PyObject *resultobj; | |
21466 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21467 | PyObject * obj0 = 0 ; | |
21468 | char *kwnames[] = { | |
21469 | (char *) "self", NULL | |
21470 | }; | |
21471 | ||
21472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21475 | { |
21476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21477 | delete arg1; | |
21478 | ||
21479 | wxPyEndAllowThreads(__tstate); | |
21480 | if (PyErr_Occurred()) SWIG_fail; | |
21481 | } | |
21482 | Py_INCREF(Py_None); resultobj = Py_None; | |
21483 | return resultobj; | |
21484 | fail: | |
21485 | return NULL; | |
21486 | } | |
21487 | ||
21488 | ||
21489 | static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21490 | PyObject *resultobj; | |
21491 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21492 | wxTimeSpan *arg2 = 0 ; | |
21493 | wxTimeSpan *result; | |
21494 | PyObject * obj0 = 0 ; | |
21495 | PyObject * obj1 = 0 ; | |
21496 | char *kwnames[] = { | |
21497 | (char *) "self",(char *) "diff", NULL | |
21498 | }; | |
21499 | ||
21500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21503 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21504 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21505 | SWIG_fail; | |
d14a1e28 | 21506 | if (arg2 == NULL) { |
15afbcd0 RD |
21507 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21508 | SWIG_fail; | |
d14a1e28 RD |
21509 | } |
21510 | { | |
21511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21512 | { | |
21513 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
21514 | result = (wxTimeSpan *) &_result_ref; | |
21515 | } | |
21516 | ||
21517 | wxPyEndAllowThreads(__tstate); | |
21518 | if (PyErr_Occurred()) SWIG_fail; | |
21519 | } | |
15afbcd0 | 21520 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21521 | return resultobj; |
21522 | fail: | |
21523 | return NULL; | |
21524 | } | |
21525 | ||
21526 | ||
21527 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21528 | PyObject *resultobj; | |
21529 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21530 | wxTimeSpan *arg2 = 0 ; | |
21531 | wxTimeSpan *result; | |
21532 | PyObject * obj0 = 0 ; | |
21533 | PyObject * obj1 = 0 ; | |
21534 | char *kwnames[] = { | |
21535 | (char *) "self",(char *) "diff", NULL | |
21536 | }; | |
21537 | ||
21538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21541 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21542 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21543 | SWIG_fail; | |
d14a1e28 | 21544 | if (arg2 == NULL) { |
15afbcd0 RD |
21545 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21546 | SWIG_fail; | |
d14a1e28 RD |
21547 | } |
21548 | { | |
21549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21550 | { | |
21551 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
21552 | result = (wxTimeSpan *) &_result_ref; | |
21553 | } | |
21554 | ||
21555 | wxPyEndAllowThreads(__tstate); | |
21556 | if (PyErr_Occurred()) SWIG_fail; | |
21557 | } | |
15afbcd0 | 21558 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21559 | return resultobj; |
21560 | fail: | |
21561 | return NULL; | |
21562 | } | |
21563 | ||
21564 | ||
21565 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21566 | PyObject *resultobj; | |
21567 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21568 | int arg2 ; | |
21569 | wxTimeSpan *result; | |
21570 | PyObject * obj0 = 0 ; | |
994141e6 | 21571 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21572 | char *kwnames[] = { |
21573 | (char *) "self",(char *) "n", NULL | |
21574 | }; | |
21575 | ||
994141e6 | 21576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21579 | arg2 = (int) SWIG_AsInt(obj1); | |
21580 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21581 | { |
21582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21583 | { | |
21584 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
21585 | result = (wxTimeSpan *) &_result_ref; | |
21586 | } | |
21587 | ||
21588 | wxPyEndAllowThreads(__tstate); | |
21589 | if (PyErr_Occurred()) SWIG_fail; | |
21590 | } | |
15afbcd0 | 21591 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21592 | return resultobj; |
21593 | fail: | |
21594 | return NULL; | |
21595 | } | |
21596 | ||
21597 | ||
21598 | static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21599 | PyObject *resultobj; | |
21600 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21601 | wxTimeSpan *result; | |
21602 | PyObject * obj0 = 0 ; | |
21603 | char *kwnames[] = { | |
21604 | (char *) "self", NULL | |
21605 | }; | |
21606 | ||
21607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21610 | { |
21611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21612 | { | |
21613 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
21614 | result = (wxTimeSpan *) &_result_ref; | |
21615 | } | |
21616 | ||
21617 | wxPyEndAllowThreads(__tstate); | |
21618 | if (PyErr_Occurred()) SWIG_fail; | |
21619 | } | |
15afbcd0 | 21620 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21621 | return resultobj; |
21622 | fail: | |
21623 | return NULL; | |
21624 | } | |
21625 | ||
21626 | ||
21627 | static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21628 | PyObject *resultobj; | |
21629 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21630 | wxTimeSpan result; | |
21631 | PyObject * obj0 = 0 ; | |
21632 | char *kwnames[] = { | |
21633 | (char *) "self", NULL | |
21634 | }; | |
21635 | ||
21636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21639 | { |
21640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21641 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
21642 | ||
21643 | wxPyEndAllowThreads(__tstate); | |
21644 | if (PyErr_Occurred()) SWIG_fail; | |
21645 | } | |
21646 | { | |
21647 | wxTimeSpan * resultptr; | |
21648 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21649 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21650 | } |
21651 | return resultobj; | |
21652 | fail: | |
21653 | return NULL; | |
21654 | } | |
21655 | ||
21656 | ||
21657 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21658 | PyObject *resultobj; | |
21659 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21660 | wxTimeSpan *arg2 = 0 ; | |
21661 | wxTimeSpan *result; | |
21662 | PyObject * obj0 = 0 ; | |
21663 | PyObject * obj1 = 0 ; | |
21664 | char *kwnames[] = { | |
21665 | (char *) "self",(char *) "diff", NULL | |
21666 | }; | |
21667 | ||
21668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21671 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21672 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21673 | SWIG_fail; | |
d14a1e28 | 21674 | if (arg2 == NULL) { |
15afbcd0 RD |
21675 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21676 | SWIG_fail; | |
d14a1e28 RD |
21677 | } |
21678 | { | |
21679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21680 | { | |
21681 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
21682 | result = (wxTimeSpan *) &_result_ref; | |
21683 | } | |
21684 | ||
21685 | wxPyEndAllowThreads(__tstate); | |
21686 | if (PyErr_Occurred()) SWIG_fail; | |
21687 | } | |
15afbcd0 | 21688 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21689 | return resultobj; |
21690 | fail: | |
21691 | return NULL; | |
21692 | } | |
21693 | ||
21694 | ||
21695 | static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21696 | PyObject *resultobj; | |
21697 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21698 | wxTimeSpan *arg2 = 0 ; | |
21699 | wxTimeSpan *result; | |
21700 | PyObject * obj0 = 0 ; | |
21701 | PyObject * obj1 = 0 ; | |
21702 | char *kwnames[] = { | |
21703 | (char *) "self",(char *) "diff", NULL | |
21704 | }; | |
21705 | ||
21706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21709 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21710 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21711 | SWIG_fail; | |
d14a1e28 | 21712 | if (arg2 == NULL) { |
15afbcd0 RD |
21713 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21714 | SWIG_fail; | |
d14a1e28 RD |
21715 | } |
21716 | { | |
21717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21718 | { | |
21719 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
21720 | result = (wxTimeSpan *) &_result_ref; | |
21721 | } | |
21722 | ||
21723 | wxPyEndAllowThreads(__tstate); | |
21724 | if (PyErr_Occurred()) SWIG_fail; | |
21725 | } | |
15afbcd0 | 21726 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21727 | return resultobj; |
21728 | fail: | |
21729 | return NULL; | |
21730 | } | |
21731 | ||
21732 | ||
21733 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21734 | PyObject *resultobj; | |
21735 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21736 | int arg2 ; | |
21737 | wxTimeSpan *result; | |
21738 | PyObject * obj0 = 0 ; | |
994141e6 | 21739 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21740 | char *kwnames[] = { |
21741 | (char *) "self",(char *) "n", NULL | |
21742 | }; | |
21743 | ||
994141e6 | 21744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21747 | arg2 = (int) SWIG_AsInt(obj1); | |
21748 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21749 | { |
21750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21751 | { | |
21752 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
21753 | result = (wxTimeSpan *) &_result_ref; | |
21754 | } | |
21755 | ||
21756 | wxPyEndAllowThreads(__tstate); | |
21757 | if (PyErr_Occurred()) SWIG_fail; | |
21758 | } | |
15afbcd0 | 21759 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21760 | return resultobj; |
21761 | fail: | |
21762 | return NULL; | |
21763 | } | |
21764 | ||
21765 | ||
21766 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21767 | PyObject *resultobj; | |
21768 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21769 | wxTimeSpan *result; | |
21770 | PyObject * obj0 = 0 ; | |
21771 | char *kwnames[] = { | |
21772 | (char *) "self", NULL | |
21773 | }; | |
21774 | ||
21775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21778 | { |
21779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21780 | { | |
21781 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
21782 | result = (wxTimeSpan *) &_result_ref; | |
21783 | } | |
21784 | ||
21785 | wxPyEndAllowThreads(__tstate); | |
21786 | if (PyErr_Occurred()) SWIG_fail; | |
21787 | } | |
15afbcd0 | 21788 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21789 | return resultobj; |
21790 | fail: | |
21791 | return NULL; | |
21792 | } | |
21793 | ||
21794 | ||
21795 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21796 | PyObject *resultobj; | |
21797 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21798 | wxTimeSpan *arg2 = 0 ; | |
21799 | wxTimeSpan result; | |
21800 | PyObject * obj0 = 0 ; | |
21801 | PyObject * obj1 = 0 ; | |
21802 | char *kwnames[] = { | |
21803 | (char *) "self",(char *) "other", NULL | |
21804 | }; | |
21805 | ||
21806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21809 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21810 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21811 | SWIG_fail; | |
d14a1e28 | 21812 | if (arg2 == NULL) { |
15afbcd0 RD |
21813 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21814 | SWIG_fail; | |
d14a1e28 RD |
21815 | } |
21816 | { | |
21817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21818 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
21819 | ||
21820 | wxPyEndAllowThreads(__tstate); | |
21821 | if (PyErr_Occurred()) SWIG_fail; | |
21822 | } | |
21823 | { | |
21824 | wxTimeSpan * resultptr; | |
21825 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21826 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21827 | } |
21828 | return resultobj; | |
21829 | fail: | |
21830 | return NULL; | |
21831 | } | |
21832 | ||
21833 | ||
21834 | static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21835 | PyObject *resultobj; | |
21836 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21837 | wxTimeSpan *arg2 = 0 ; | |
21838 | wxTimeSpan result; | |
21839 | PyObject * obj0 = 0 ; | |
21840 | PyObject * obj1 = 0 ; | |
21841 | char *kwnames[] = { | |
21842 | (char *) "self",(char *) "other", NULL | |
21843 | }; | |
21844 | ||
21845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21848 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21849 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21850 | SWIG_fail; | |
d14a1e28 | 21851 | if (arg2 == NULL) { |
15afbcd0 RD |
21852 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21853 | SWIG_fail; | |
d14a1e28 RD |
21854 | } |
21855 | { | |
21856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21857 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
21858 | ||
21859 | wxPyEndAllowThreads(__tstate); | |
21860 | if (PyErr_Occurred()) SWIG_fail; | |
21861 | } | |
21862 | { | |
21863 | wxTimeSpan * resultptr; | |
21864 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21865 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21866 | } |
21867 | return resultobj; | |
21868 | fail: | |
21869 | return NULL; | |
21870 | } | |
21871 | ||
21872 | ||
21873 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21874 | PyObject *resultobj; | |
21875 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21876 | int arg2 ; | |
21877 | wxTimeSpan result; | |
21878 | PyObject * obj0 = 0 ; | |
994141e6 | 21879 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21880 | char *kwnames[] = { |
21881 | (char *) "self",(char *) "n", NULL | |
21882 | }; | |
21883 | ||
994141e6 | 21884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21887 | arg2 = (int) SWIG_AsInt(obj1); | |
21888 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21889 | { |
21890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21891 | result = wxTimeSpan___mul__(arg1,arg2); | |
21892 | ||
21893 | wxPyEndAllowThreads(__tstate); | |
21894 | if (PyErr_Occurred()) SWIG_fail; | |
21895 | } | |
21896 | { | |
21897 | wxTimeSpan * resultptr; | |
21898 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21899 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21900 | } |
21901 | return resultobj; | |
21902 | fail: | |
21903 | return NULL; | |
21904 | } | |
21905 | ||
21906 | ||
21907 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21908 | PyObject *resultobj; | |
21909 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21910 | int arg2 ; | |
21911 | wxTimeSpan result; | |
21912 | PyObject * obj0 = 0 ; | |
994141e6 | 21913 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21914 | char *kwnames[] = { |
21915 | (char *) "self",(char *) "n", NULL | |
21916 | }; | |
21917 | ||
994141e6 | 21918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21921 | arg2 = (int) SWIG_AsInt(obj1); | |
21922 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21923 | { |
21924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21925 | result = wxTimeSpan___rmul__(arg1,arg2); | |
21926 | ||
21927 | wxPyEndAllowThreads(__tstate); | |
21928 | if (PyErr_Occurred()) SWIG_fail; | |
21929 | } | |
21930 | { | |
21931 | wxTimeSpan * resultptr; | |
21932 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21933 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21934 | } |
21935 | return resultobj; | |
21936 | fail: | |
21937 | return NULL; | |
21938 | } | |
21939 | ||
21940 | ||
21941 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21942 | PyObject *resultobj; | |
21943 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 21944 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
21945 | bool result; |
21946 | PyObject * obj0 = 0 ; | |
21947 | PyObject * obj1 = 0 ; | |
21948 | char *kwnames[] = { | |
21949 | (char *) "self",(char *) "other", NULL | |
21950 | }; | |
21951 | ||
21952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21955 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21957 | { |
21958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 21959 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
21960 | |
21961 | wxPyEndAllowThreads(__tstate); | |
21962 | if (PyErr_Occurred()) SWIG_fail; | |
21963 | } | |
4f89f6a3 RD |
21964 | { |
21965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21966 | } | |
d14a1e28 RD |
21967 | return resultobj; |
21968 | fail: | |
21969 | return NULL; | |
21970 | } | |
21971 | ||
21972 | ||
21973 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21974 | PyObject *resultobj; | |
21975 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 21976 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
21977 | bool result; |
21978 | PyObject * obj0 = 0 ; | |
21979 | PyObject * obj1 = 0 ; | |
21980 | char *kwnames[] = { | |
21981 | (char *) "self",(char *) "other", NULL | |
21982 | }; | |
21983 | ||
21984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21987 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21989 | { |
21990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 21991 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
21992 | |
21993 | wxPyEndAllowThreads(__tstate); | |
21994 | if (PyErr_Occurred()) SWIG_fail; | |
21995 | } | |
4f89f6a3 RD |
21996 | { |
21997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21998 | } | |
d14a1e28 RD |
21999 | return resultobj; |
22000 | fail: | |
22001 | return NULL; | |
22002 | } | |
22003 | ||
22004 | ||
22005 | static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22006 | PyObject *resultobj; | |
22007 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22008 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22009 | bool result; |
22010 | PyObject * obj0 = 0 ; | |
22011 | PyObject * obj1 = 0 ; | |
22012 | char *kwnames[] = { | |
22013 | (char *) "self",(char *) "other", NULL | |
22014 | }; | |
22015 | ||
22016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22019 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22021 | { |
22022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22023 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22024 | |
22025 | wxPyEndAllowThreads(__tstate); | |
22026 | if (PyErr_Occurred()) SWIG_fail; | |
22027 | } | |
4f89f6a3 RD |
22028 | { |
22029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22030 | } | |
d14a1e28 RD |
22031 | return resultobj; |
22032 | fail: | |
22033 | return NULL; | |
22034 | } | |
22035 | ||
22036 | ||
22037 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22038 | PyObject *resultobj; | |
22039 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22040 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22041 | bool result; |
22042 | PyObject * obj0 = 0 ; | |
22043 | PyObject * obj1 = 0 ; | |
22044 | char *kwnames[] = { | |
22045 | (char *) "self",(char *) "other", NULL | |
22046 | }; | |
22047 | ||
22048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22051 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22053 | { |
22054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22055 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22056 | |
22057 | wxPyEndAllowThreads(__tstate); | |
22058 | if (PyErr_Occurred()) SWIG_fail; | |
22059 | } | |
4f89f6a3 RD |
22060 | { |
22061 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22062 | } | |
d14a1e28 RD |
22063 | return resultobj; |
22064 | fail: | |
22065 | return NULL; | |
22066 | } | |
22067 | ||
22068 | ||
22069 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22070 | PyObject *resultobj; | |
22071 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22072 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22073 | bool result; |
22074 | PyObject * obj0 = 0 ; | |
22075 | PyObject * obj1 = 0 ; | |
22076 | char *kwnames[] = { | |
22077 | (char *) "self",(char *) "other", NULL | |
22078 | }; | |
22079 | ||
22080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22083 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22085 | { |
22086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22087 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22088 | |
22089 | wxPyEndAllowThreads(__tstate); | |
22090 | if (PyErr_Occurred()) SWIG_fail; | |
22091 | } | |
4f89f6a3 RD |
22092 | { |
22093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22094 | } | |
d14a1e28 RD |
22095 | return resultobj; |
22096 | fail: | |
22097 | return NULL; | |
22098 | } | |
22099 | ||
22100 | ||
22101 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22102 | PyObject *resultobj; | |
22103 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22104 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22105 | bool result; |
22106 | PyObject * obj0 = 0 ; | |
22107 | PyObject * obj1 = 0 ; | |
22108 | char *kwnames[] = { | |
22109 | (char *) "self",(char *) "other", NULL | |
22110 | }; | |
22111 | ||
22112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22115 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22117 | { |
22118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22119 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22120 | |
22121 | wxPyEndAllowThreads(__tstate); | |
22122 | if (PyErr_Occurred()) SWIG_fail; | |
22123 | } | |
4f89f6a3 RD |
22124 | { |
22125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22126 | } | |
d14a1e28 RD |
22127 | return resultobj; |
22128 | fail: | |
22129 | return NULL; | |
22130 | } | |
22131 | ||
22132 | ||
22133 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22134 | PyObject *resultobj; | |
22135 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22136 | bool result; | |
22137 | PyObject * obj0 = 0 ; | |
22138 | char *kwnames[] = { | |
22139 | (char *) "self", NULL | |
22140 | }; | |
22141 | ||
22142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22145 | { |
22146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22147 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
22148 | ||
22149 | wxPyEndAllowThreads(__tstate); | |
22150 | if (PyErr_Occurred()) SWIG_fail; | |
22151 | } | |
4f89f6a3 RD |
22152 | { |
22153 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22154 | } | |
d14a1e28 RD |
22155 | return resultobj; |
22156 | fail: | |
22157 | return NULL; | |
22158 | } | |
22159 | ||
22160 | ||
22161 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22162 | PyObject *resultobj; | |
22163 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22164 | bool result; | |
22165 | PyObject * obj0 = 0 ; | |
22166 | char *kwnames[] = { | |
22167 | (char *) "self", NULL | |
22168 | }; | |
22169 | ||
22170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22173 | { |
22174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22175 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
22176 | ||
22177 | wxPyEndAllowThreads(__tstate); | |
22178 | if (PyErr_Occurred()) SWIG_fail; | |
22179 | } | |
4f89f6a3 RD |
22180 | { |
22181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22182 | } | |
d14a1e28 RD |
22183 | return resultobj; |
22184 | fail: | |
22185 | return NULL; | |
22186 | } | |
22187 | ||
22188 | ||
22189 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22190 | PyObject *resultobj; | |
22191 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22192 | bool result; | |
22193 | PyObject * obj0 = 0 ; | |
22194 | char *kwnames[] = { | |
22195 | (char *) "self", NULL | |
22196 | }; | |
22197 | ||
22198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22201 | { |
22202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22203 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
22204 | ||
22205 | wxPyEndAllowThreads(__tstate); | |
22206 | if (PyErr_Occurred()) SWIG_fail; | |
22207 | } | |
4f89f6a3 RD |
22208 | { |
22209 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22210 | } | |
d14a1e28 RD |
22211 | return resultobj; |
22212 | fail: | |
22213 | return NULL; | |
22214 | } | |
22215 | ||
22216 | ||
22217 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22218 | PyObject *resultobj; | |
22219 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22220 | wxTimeSpan *arg2 = 0 ; | |
22221 | bool result; | |
22222 | PyObject * obj0 = 0 ; | |
22223 | PyObject * obj1 = 0 ; | |
22224 | char *kwnames[] = { | |
22225 | (char *) "self",(char *) "ts", NULL | |
22226 | }; | |
22227 | ||
22228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22231 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22232 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22233 | SWIG_fail; | |
d14a1e28 | 22234 | if (arg2 == NULL) { |
15afbcd0 RD |
22235 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22236 | SWIG_fail; | |
d14a1e28 RD |
22237 | } |
22238 | { | |
22239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22240 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
22241 | ||
22242 | wxPyEndAllowThreads(__tstate); | |
22243 | if (PyErr_Occurred()) SWIG_fail; | |
22244 | } | |
4f89f6a3 RD |
22245 | { |
22246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22247 | } | |
d14a1e28 RD |
22248 | return resultobj; |
22249 | fail: | |
22250 | return NULL; | |
22251 | } | |
22252 | ||
22253 | ||
22254 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22255 | PyObject *resultobj; | |
22256 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22257 | wxTimeSpan *arg2 = 0 ; | |
22258 | bool result; | |
22259 | PyObject * obj0 = 0 ; | |
22260 | PyObject * obj1 = 0 ; | |
22261 | char *kwnames[] = { | |
22262 | (char *) "self",(char *) "ts", NULL | |
22263 | }; | |
22264 | ||
22265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22268 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22269 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22270 | SWIG_fail; | |
d14a1e28 | 22271 | if (arg2 == NULL) { |
15afbcd0 RD |
22272 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22273 | SWIG_fail; | |
d14a1e28 RD |
22274 | } |
22275 | { | |
22276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22277 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
22278 | ||
22279 | wxPyEndAllowThreads(__tstate); | |
22280 | if (PyErr_Occurred()) SWIG_fail; | |
22281 | } | |
4f89f6a3 RD |
22282 | { |
22283 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22284 | } | |
d14a1e28 RD |
22285 | return resultobj; |
22286 | fail: | |
22287 | return NULL; | |
22288 | } | |
22289 | ||
22290 | ||
22291 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22292 | PyObject *resultobj; | |
22293 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22294 | wxTimeSpan *arg2 = 0 ; | |
22295 | bool result; | |
22296 | PyObject * obj0 = 0 ; | |
22297 | PyObject * obj1 = 0 ; | |
22298 | char *kwnames[] = { | |
22299 | (char *) "self",(char *) "t", NULL | |
22300 | }; | |
22301 | ||
22302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22305 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22306 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22307 | SWIG_fail; | |
d14a1e28 | 22308 | if (arg2 == NULL) { |
15afbcd0 RD |
22309 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22310 | SWIG_fail; | |
d14a1e28 RD |
22311 | } |
22312 | { | |
22313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22314 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
22315 | ||
22316 | wxPyEndAllowThreads(__tstate); | |
22317 | if (PyErr_Occurred()) SWIG_fail; | |
22318 | } | |
4f89f6a3 RD |
22319 | { |
22320 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22321 | } | |
d14a1e28 RD |
22322 | return resultobj; |
22323 | fail: | |
22324 | return NULL; | |
22325 | } | |
22326 | ||
22327 | ||
22328 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22329 | PyObject *resultobj; | |
22330 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22331 | int result; | |
22332 | PyObject * obj0 = 0 ; | |
22333 | char *kwnames[] = { | |
22334 | (char *) "self", NULL | |
22335 | }; | |
22336 | ||
22337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22340 | { |
22341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22342 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
22343 | ||
22344 | wxPyEndAllowThreads(__tstate); | |
22345 | if (PyErr_Occurred()) SWIG_fail; | |
22346 | } | |
15afbcd0 | 22347 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22348 | return resultobj; |
22349 | fail: | |
22350 | return NULL; | |
22351 | } | |
22352 | ||
22353 | ||
22354 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22355 | PyObject *resultobj; | |
22356 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22357 | int result; | |
22358 | PyObject * obj0 = 0 ; | |
22359 | char *kwnames[] = { | |
22360 | (char *) "self", NULL | |
22361 | }; | |
22362 | ||
22363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22366 | { |
22367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22368 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
22369 | ||
22370 | wxPyEndAllowThreads(__tstate); | |
22371 | if (PyErr_Occurred()) SWIG_fail; | |
22372 | } | |
15afbcd0 | 22373 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22374 | return resultobj; |
22375 | fail: | |
22376 | return NULL; | |
22377 | } | |
22378 | ||
22379 | ||
22380 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22381 | PyObject *resultobj; | |
22382 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22383 | int result; | |
22384 | PyObject * obj0 = 0 ; | |
22385 | char *kwnames[] = { | |
22386 | (char *) "self", NULL | |
22387 | }; | |
22388 | ||
22389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22392 | { |
22393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22394 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
22395 | ||
22396 | wxPyEndAllowThreads(__tstate); | |
22397 | if (PyErr_Occurred()) SWIG_fail; | |
22398 | } | |
15afbcd0 | 22399 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22400 | return resultobj; |
22401 | fail: | |
22402 | return NULL; | |
22403 | } | |
22404 | ||
22405 | ||
22406 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22407 | PyObject *resultobj; | |
22408 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22409 | int result; | |
22410 | PyObject * obj0 = 0 ; | |
22411 | char *kwnames[] = { | |
22412 | (char *) "self", NULL | |
22413 | }; | |
22414 | ||
22415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22418 | { |
22419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22420 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
22421 | ||
22422 | wxPyEndAllowThreads(__tstate); | |
22423 | if (PyErr_Occurred()) SWIG_fail; | |
22424 | } | |
15afbcd0 | 22425 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22426 | return resultobj; |
22427 | fail: | |
22428 | return NULL; | |
22429 | } | |
22430 | ||
22431 | ||
22432 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22433 | PyObject *resultobj; | |
22434 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22435 | wxLongLong result; | |
22436 | PyObject * obj0 = 0 ; | |
22437 | char *kwnames[] = { | |
22438 | (char *) "self", NULL | |
22439 | }; | |
22440 | ||
22441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22444 | { |
22445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22446 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
22447 | ||
22448 | wxPyEndAllowThreads(__tstate); | |
22449 | if (PyErr_Occurred()) SWIG_fail; | |
22450 | } | |
22451 | { | |
22452 | PyObject *hi, *lo, *shifter, *shifted; | |
22453 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22454 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22455 | shifter = PyLong_FromLong(32); | |
22456 | shifted = PyNumber_Lshift(hi, shifter); | |
22457 | resultobj = PyNumber_Or(shifted, lo); | |
22458 | Py_DECREF(hi); | |
22459 | Py_DECREF(lo); | |
22460 | Py_DECREF(shifter); | |
22461 | Py_DECREF(shifted); | |
22462 | } | |
22463 | return resultobj; | |
22464 | fail: | |
22465 | return NULL; | |
22466 | } | |
22467 | ||
22468 | ||
22469 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22470 | PyObject *resultobj; | |
22471 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22472 | wxLongLong result; | |
22473 | PyObject * obj0 = 0 ; | |
22474 | char *kwnames[] = { | |
22475 | (char *) "self", NULL | |
22476 | }; | |
22477 | ||
22478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22481 | { |
22482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22483 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
22484 | ||
22485 | wxPyEndAllowThreads(__tstate); | |
22486 | if (PyErr_Occurred()) SWIG_fail; | |
22487 | } | |
22488 | { | |
22489 | PyObject *hi, *lo, *shifter, *shifted; | |
22490 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22491 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22492 | shifter = PyLong_FromLong(32); | |
22493 | shifted = PyNumber_Lshift(hi, shifter); | |
22494 | resultobj = PyNumber_Or(shifted, lo); | |
22495 | Py_DECREF(hi); | |
22496 | Py_DECREF(lo); | |
22497 | Py_DECREF(shifter); | |
22498 | Py_DECREF(shifted); | |
22499 | } | |
22500 | return resultobj; | |
22501 | fail: | |
22502 | return NULL; | |
22503 | } | |
22504 | ||
22505 | ||
22506 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22507 | PyObject *resultobj; | |
22508 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22509 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
22510 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
22511 | wxString result; | |
e811c8ce | 22512 | bool temp2 = False ; |
d14a1e28 RD |
22513 | PyObject * obj0 = 0 ; |
22514 | PyObject * obj1 = 0 ; | |
22515 | char *kwnames[] = { | |
22516 | (char *) "self",(char *) "format", NULL | |
22517 | }; | |
22518 | ||
22519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22522 | if (obj1) { |
22523 | { | |
22524 | arg2 = wxString_in_helper(obj1); | |
22525 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 22526 | temp2 = True; |
d14a1e28 RD |
22527 | } |
22528 | } | |
22529 | { | |
22530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22531 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
22532 | ||
22533 | wxPyEndAllowThreads(__tstate); | |
22534 | if (PyErr_Occurred()) SWIG_fail; | |
22535 | } | |
22536 | { | |
22537 | #if wxUSE_UNICODE | |
22538 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22539 | #else | |
22540 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22541 | #endif | |
22542 | } | |
22543 | { | |
22544 | if (temp2) | |
22545 | delete arg2; | |
22546 | } | |
22547 | return resultobj; | |
22548 | fail: | |
22549 | { | |
22550 | if (temp2) | |
22551 | delete arg2; | |
22552 | } | |
22553 | return NULL; | |
22554 | } | |
22555 | ||
22556 | ||
22557 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
22558 | PyObject *obj; | |
22559 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22560 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
22561 | Py_INCREF(obj); | |
22562 | return Py_BuildValue((char *)""); | |
22563 | } | |
22564 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22565 | PyObject *resultobj; | |
22566 | int arg1 = (int) 0 ; | |
22567 | int arg2 = (int) 0 ; | |
22568 | int arg3 = (int) 0 ; | |
22569 | int arg4 = (int) 0 ; | |
22570 | wxDateSpan *result; | |
994141e6 RD |
22571 | PyObject * obj0 = 0 ; |
22572 | PyObject * obj1 = 0 ; | |
22573 | PyObject * obj2 = 0 ; | |
22574 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22575 | char *kwnames[] = { |
22576 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
22577 | }; | |
22578 | ||
994141e6 RD |
22579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
22580 | if (obj0) { | |
15afbcd0 RD |
22581 | arg1 = (int) SWIG_AsInt(obj0); |
22582 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22583 | } |
22584 | if (obj1) { | |
15afbcd0 RD |
22585 | arg2 = (int) SWIG_AsInt(obj1); |
22586 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22587 | } |
22588 | if (obj2) { | |
15afbcd0 RD |
22589 | arg3 = (int) SWIG_AsInt(obj2); |
22590 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22591 | } |
22592 | if (obj3) { | |
15afbcd0 RD |
22593 | arg4 = (int) SWIG_AsInt(obj3); |
22594 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22595 | } |
d14a1e28 RD |
22596 | { |
22597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22598 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
22599 | ||
22600 | wxPyEndAllowThreads(__tstate); | |
22601 | if (PyErr_Occurred()) SWIG_fail; | |
22602 | } | |
15afbcd0 | 22603 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22604 | return resultobj; |
22605 | fail: | |
22606 | return NULL; | |
22607 | } | |
22608 | ||
22609 | ||
22610 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22611 | PyObject *resultobj; | |
22612 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22613 | PyObject * obj0 = 0 ; | |
22614 | char *kwnames[] = { | |
22615 | (char *) "self", NULL | |
22616 | }; | |
22617 | ||
22618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22621 | { |
22622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22623 | delete arg1; | |
22624 | ||
22625 | wxPyEndAllowThreads(__tstate); | |
22626 | if (PyErr_Occurred()) SWIG_fail; | |
22627 | } | |
22628 | Py_INCREF(Py_None); resultobj = Py_None; | |
22629 | return resultobj; | |
22630 | fail: | |
22631 | return NULL; | |
22632 | } | |
22633 | ||
22634 | ||
22635 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22636 | PyObject *resultobj; | |
22637 | int arg1 ; | |
22638 | wxDateSpan result; | |
994141e6 | 22639 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22640 | char *kwnames[] = { |
22641 | (char *) "days", NULL | |
22642 | }; | |
22643 | ||
994141e6 | 22644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22645 | arg1 = (int) SWIG_AsInt(obj0); |
22646 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22647 | { |
22648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22649 | result = wxDateSpan::Days(arg1); | |
22650 | ||
22651 | wxPyEndAllowThreads(__tstate); | |
22652 | if (PyErr_Occurred()) SWIG_fail; | |
22653 | } | |
22654 | { | |
22655 | wxDateSpan * resultptr; | |
22656 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22657 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22658 | } |
22659 | return resultobj; | |
22660 | fail: | |
22661 | return NULL; | |
22662 | } | |
22663 | ||
22664 | ||
22665 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22666 | PyObject *resultobj; | |
22667 | wxDateSpan result; | |
22668 | char *kwnames[] = { | |
22669 | NULL | |
22670 | }; | |
22671 | ||
22672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
22673 | { | |
22674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22675 | result = wxDateSpan::Day(); | |
22676 | ||
22677 | wxPyEndAllowThreads(__tstate); | |
22678 | if (PyErr_Occurred()) SWIG_fail; | |
22679 | } | |
22680 | { | |
22681 | wxDateSpan * resultptr; | |
22682 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22683 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22684 | } |
22685 | return resultobj; | |
22686 | fail: | |
22687 | return NULL; | |
22688 | } | |
22689 | ||
22690 | ||
22691 | static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22692 | PyObject *resultobj; | |
22693 | int arg1 ; | |
22694 | wxDateSpan result; | |
994141e6 | 22695 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22696 | char *kwnames[] = { |
22697 | (char *) "weeks", NULL | |
22698 | }; | |
22699 | ||
994141e6 | 22700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22701 | arg1 = (int) SWIG_AsInt(obj0); |
22702 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22703 | { |
22704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22705 | result = wxDateSpan::Weeks(arg1); | |
22706 | ||
22707 | wxPyEndAllowThreads(__tstate); | |
22708 | if (PyErr_Occurred()) SWIG_fail; | |
22709 | } | |
22710 | { | |
22711 | wxDateSpan * resultptr; | |
22712 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22713 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22714 | } |
22715 | return resultobj; | |
22716 | fail: | |
22717 | return NULL; | |
22718 | } | |
22719 | ||
22720 | ||
22721 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22722 | PyObject *resultobj; | |
22723 | wxDateSpan result; | |
22724 | char *kwnames[] = { | |
22725 | NULL | |
22726 | }; | |
22727 | ||
22728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
22729 | { | |
22730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22731 | result = wxDateSpan::Week(); | |
22732 | ||
22733 | wxPyEndAllowThreads(__tstate); | |
22734 | if (PyErr_Occurred()) SWIG_fail; | |
22735 | } | |
22736 | { | |
22737 | wxDateSpan * resultptr; | |
22738 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22739 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22740 | } |
22741 | return resultobj; | |
22742 | fail: | |
22743 | return NULL; | |
22744 | } | |
22745 | ||
22746 | ||
22747 | static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22748 | PyObject *resultobj; | |
22749 | int arg1 ; | |
22750 | wxDateSpan result; | |
994141e6 | 22751 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22752 | char *kwnames[] = { |
22753 | (char *) "mon", NULL | |
22754 | }; | |
22755 | ||
994141e6 | 22756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22757 | arg1 = (int) SWIG_AsInt(obj0); |
22758 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22759 | { |
22760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22761 | result = wxDateSpan::Months(arg1); | |
22762 | ||
22763 | wxPyEndAllowThreads(__tstate); | |
22764 | if (PyErr_Occurred()) SWIG_fail; | |
22765 | } | |
22766 | { | |
22767 | wxDateSpan * resultptr; | |
22768 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22769 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22770 | } |
22771 | return resultobj; | |
22772 | fail: | |
22773 | return NULL; | |
22774 | } | |
22775 | ||
22776 | ||
22777 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22778 | PyObject *resultobj; | |
22779 | wxDateSpan result; | |
22780 | char *kwnames[] = { | |
22781 | NULL | |
22782 | }; | |
22783 | ||
22784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
22785 | { | |
22786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22787 | result = wxDateSpan::Month(); | |
22788 | ||
22789 | wxPyEndAllowThreads(__tstate); | |
22790 | if (PyErr_Occurred()) SWIG_fail; | |
22791 | } | |
22792 | { | |
22793 | wxDateSpan * resultptr; | |
22794 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22795 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22796 | } |
22797 | return resultobj; | |
22798 | fail: | |
22799 | return NULL; | |
22800 | } | |
22801 | ||
22802 | ||
22803 | static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22804 | PyObject *resultobj; | |
22805 | int arg1 ; | |
22806 | wxDateSpan result; | |
994141e6 | 22807 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22808 | char *kwnames[] = { |
22809 | (char *) "years", NULL | |
22810 | }; | |
22811 | ||
994141e6 | 22812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22813 | arg1 = (int) SWIG_AsInt(obj0); |
22814 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22815 | { |
22816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22817 | result = wxDateSpan::Years(arg1); | |
22818 | ||
22819 | wxPyEndAllowThreads(__tstate); | |
22820 | if (PyErr_Occurred()) SWIG_fail; | |
22821 | } | |
22822 | { | |
22823 | wxDateSpan * resultptr; | |
22824 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22825 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22826 | } |
22827 | return resultobj; | |
22828 | fail: | |
22829 | return NULL; | |
22830 | } | |
22831 | ||
22832 | ||
22833 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22834 | PyObject *resultobj; | |
22835 | wxDateSpan result; | |
22836 | char *kwnames[] = { | |
22837 | NULL | |
22838 | }; | |
22839 | ||
22840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
22841 | { | |
22842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22843 | result = wxDateSpan::Year(); | |
22844 | ||
22845 | wxPyEndAllowThreads(__tstate); | |
22846 | if (PyErr_Occurred()) SWIG_fail; | |
22847 | } | |
22848 | { | |
22849 | wxDateSpan * resultptr; | |
22850 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22851 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22852 | } |
22853 | return resultobj; | |
22854 | fail: | |
22855 | return NULL; | |
22856 | } | |
22857 | ||
22858 | ||
22859 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22860 | PyObject *resultobj; | |
22861 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22862 | int arg2 ; | |
22863 | wxDateSpan *result; | |
22864 | PyObject * obj0 = 0 ; | |
994141e6 | 22865 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22866 | char *kwnames[] = { |
22867 | (char *) "self",(char *) "n", NULL | |
22868 | }; | |
22869 | ||
994141e6 | 22870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22873 | arg2 = (int) SWIG_AsInt(obj1); | |
22874 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22875 | { |
22876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22877 | { | |
22878 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
22879 | result = (wxDateSpan *) &_result_ref; | |
22880 | } | |
22881 | ||
22882 | wxPyEndAllowThreads(__tstate); | |
22883 | if (PyErr_Occurred()) SWIG_fail; | |
22884 | } | |
15afbcd0 | 22885 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
22886 | return resultobj; |
22887 | fail: | |
22888 | return NULL; | |
22889 | } | |
22890 | ||
22891 | ||
22892 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22893 | PyObject *resultobj; | |
22894 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22895 | int arg2 ; | |
22896 | wxDateSpan *result; | |
22897 | PyObject * obj0 = 0 ; | |
994141e6 | 22898 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22899 | char *kwnames[] = { |
22900 | (char *) "self",(char *) "n", NULL | |
22901 | }; | |
22902 | ||
994141e6 | 22903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22906 | arg2 = (int) SWIG_AsInt(obj1); | |
22907 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22908 | { |
22909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22910 | { | |
22911 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
22912 | result = (wxDateSpan *) &_result_ref; | |
22913 | } | |
22914 | ||
22915 | wxPyEndAllowThreads(__tstate); | |
22916 | if (PyErr_Occurred()) SWIG_fail; | |
22917 | } | |
15afbcd0 | 22918 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
22919 | return resultobj; |
22920 | fail: | |
22921 | return NULL; | |
22922 | } | |
22923 | ||
22924 | ||
22925 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22926 | PyObject *resultobj; | |
22927 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22928 | int arg2 ; | |
22929 | wxDateSpan *result; | |
22930 | PyObject * obj0 = 0 ; | |
994141e6 | 22931 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22932 | char *kwnames[] = { |
22933 | (char *) "self",(char *) "n", NULL | |
22934 | }; | |
22935 | ||
994141e6 | 22936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22939 | arg2 = (int) SWIG_AsInt(obj1); | |
22940 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22941 | { |
22942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22943 | { | |
22944 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
22945 | result = (wxDateSpan *) &_result_ref; | |
22946 | } | |
22947 | ||
22948 | wxPyEndAllowThreads(__tstate); | |
22949 | if (PyErr_Occurred()) SWIG_fail; | |
22950 | } | |
15afbcd0 | 22951 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
22952 | return resultobj; |
22953 | fail: | |
22954 | return NULL; | |
22955 | } | |
22956 | ||
22957 | ||
22958 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22959 | PyObject *resultobj; | |
22960 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22961 | int arg2 ; | |
22962 | wxDateSpan *result; | |
22963 | PyObject * obj0 = 0 ; | |
994141e6 | 22964 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22965 | char *kwnames[] = { |
22966 | (char *) "self",(char *) "n", NULL | |
22967 | }; | |
22968 | ||
994141e6 | 22969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22972 | arg2 = (int) SWIG_AsInt(obj1); | |
22973 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22974 | { |
22975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22976 | { | |
22977 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
22978 | result = (wxDateSpan *) &_result_ref; | |
22979 | } | |
22980 | ||
22981 | wxPyEndAllowThreads(__tstate); | |
22982 | if (PyErr_Occurred()) SWIG_fail; | |
22983 | } | |
15afbcd0 | 22984 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
22985 | return resultobj; |
22986 | fail: | |
22987 | return NULL; | |
22988 | } | |
22989 | ||
22990 | ||
22991 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22992 | PyObject *resultobj; | |
22993 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22994 | int result; | |
22995 | PyObject * obj0 = 0 ; | |
22996 | char *kwnames[] = { | |
22997 | (char *) "self", NULL | |
22998 | }; | |
22999 | ||
23000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23003 | { |
23004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23005 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
23006 | ||
23007 | wxPyEndAllowThreads(__tstate); | |
23008 | if (PyErr_Occurred()) SWIG_fail; | |
23009 | } | |
15afbcd0 | 23010 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23011 | return resultobj; |
23012 | fail: | |
23013 | return NULL; | |
23014 | } | |
23015 | ||
23016 | ||
23017 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23018 | PyObject *resultobj; | |
23019 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23020 | int result; | |
23021 | PyObject * obj0 = 0 ; | |
23022 | char *kwnames[] = { | |
23023 | (char *) "self", NULL | |
23024 | }; | |
23025 | ||
23026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23029 | { |
23030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23031 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
23032 | ||
23033 | wxPyEndAllowThreads(__tstate); | |
23034 | if (PyErr_Occurred()) SWIG_fail; | |
23035 | } | |
15afbcd0 | 23036 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23037 | return resultobj; |
23038 | fail: | |
23039 | return NULL; | |
23040 | } | |
23041 | ||
23042 | ||
23043 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23044 | PyObject *resultobj; | |
23045 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23046 | int result; | |
23047 | PyObject * obj0 = 0 ; | |
23048 | char *kwnames[] = { | |
23049 | (char *) "self", NULL | |
23050 | }; | |
23051 | ||
23052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23055 | { |
23056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23057 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
23058 | ||
23059 | wxPyEndAllowThreads(__tstate); | |
23060 | if (PyErr_Occurred()) SWIG_fail; | |
23061 | } | |
15afbcd0 | 23062 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23063 | return resultobj; |
23064 | fail: | |
23065 | return NULL; | |
23066 | } | |
23067 | ||
23068 | ||
23069 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23070 | PyObject *resultobj; | |
23071 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23072 | int result; | |
23073 | PyObject * obj0 = 0 ; | |
23074 | char *kwnames[] = { | |
23075 | (char *) "self", NULL | |
23076 | }; | |
23077 | ||
23078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23081 | { |
23082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23083 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
23084 | ||
23085 | wxPyEndAllowThreads(__tstate); | |
23086 | if (PyErr_Occurred()) SWIG_fail; | |
23087 | } | |
15afbcd0 | 23088 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23089 | return resultobj; |
23090 | fail: | |
23091 | return NULL; | |
23092 | } | |
23093 | ||
23094 | ||
23095 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23096 | PyObject *resultobj; | |
23097 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23098 | int result; | |
23099 | PyObject * obj0 = 0 ; | |
23100 | char *kwnames[] = { | |
23101 | (char *) "self", NULL | |
23102 | }; | |
23103 | ||
23104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23107 | { |
23108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23109 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
23110 | ||
23111 | wxPyEndAllowThreads(__tstate); | |
23112 | if (PyErr_Occurred()) SWIG_fail; | |
23113 | } | |
15afbcd0 | 23114 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23115 | return resultobj; |
23116 | fail: | |
23117 | return NULL; | |
23118 | } | |
23119 | ||
23120 | ||
23121 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23122 | PyObject *resultobj; | |
23123 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23124 | wxDateSpan *arg2 = 0 ; | |
23125 | wxDateSpan *result; | |
23126 | PyObject * obj0 = 0 ; | |
23127 | PyObject * obj1 = 0 ; | |
23128 | char *kwnames[] = { | |
23129 | (char *) "self",(char *) "other", NULL | |
23130 | }; | |
23131 | ||
23132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23135 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23136 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23137 | SWIG_fail; | |
d14a1e28 | 23138 | if (arg2 == NULL) { |
15afbcd0 RD |
23139 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23140 | SWIG_fail; | |
d14a1e28 RD |
23141 | } |
23142 | { | |
23143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23144 | { | |
23145 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
23146 | result = (wxDateSpan *) &_result_ref; | |
23147 | } | |
23148 | ||
23149 | wxPyEndAllowThreads(__tstate); | |
23150 | if (PyErr_Occurred()) SWIG_fail; | |
23151 | } | |
15afbcd0 | 23152 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23153 | return resultobj; |
23154 | fail: | |
23155 | return NULL; | |
23156 | } | |
23157 | ||
23158 | ||
23159 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23160 | PyObject *resultobj; | |
23161 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23162 | wxDateSpan *arg2 = 0 ; | |
23163 | wxDateSpan *result; | |
23164 | PyObject * obj0 = 0 ; | |
23165 | PyObject * obj1 = 0 ; | |
23166 | char *kwnames[] = { | |
23167 | (char *) "self",(char *) "other", NULL | |
23168 | }; | |
23169 | ||
23170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23173 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23174 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23175 | SWIG_fail; | |
d14a1e28 | 23176 | if (arg2 == NULL) { |
15afbcd0 RD |
23177 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23178 | SWIG_fail; | |
d14a1e28 RD |
23179 | } |
23180 | { | |
23181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23182 | { | |
23183 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
23184 | result = (wxDateSpan *) &_result_ref; | |
23185 | } | |
23186 | ||
23187 | wxPyEndAllowThreads(__tstate); | |
23188 | if (PyErr_Occurred()) SWIG_fail; | |
23189 | } | |
15afbcd0 | 23190 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23191 | return resultobj; |
23192 | fail: | |
23193 | return NULL; | |
23194 | } | |
23195 | ||
23196 | ||
23197 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23198 | PyObject *resultobj; | |
23199 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23200 | wxDateSpan *result; | |
23201 | PyObject * obj0 = 0 ; | |
23202 | char *kwnames[] = { | |
23203 | (char *) "self", NULL | |
23204 | }; | |
23205 | ||
23206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23209 | { |
23210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23211 | { | |
23212 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
23213 | result = (wxDateSpan *) &_result_ref; | |
23214 | } | |
23215 | ||
23216 | wxPyEndAllowThreads(__tstate); | |
23217 | if (PyErr_Occurred()) SWIG_fail; | |
23218 | } | |
15afbcd0 | 23219 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23220 | return resultobj; |
23221 | fail: | |
23222 | return NULL; | |
23223 | } | |
23224 | ||
23225 | ||
23226 | static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23227 | PyObject *resultobj; | |
23228 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23229 | int arg2 ; | |
23230 | wxDateSpan *result; | |
23231 | PyObject * obj0 = 0 ; | |
994141e6 | 23232 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23233 | char *kwnames[] = { |
23234 | (char *) "self",(char *) "factor", NULL | |
23235 | }; | |
23236 | ||
994141e6 | 23237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23240 | arg2 = (int) SWIG_AsInt(obj1); | |
23241 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23242 | { |
23243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23244 | { | |
23245 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
23246 | result = (wxDateSpan *) &_result_ref; | |
23247 | } | |
23248 | ||
23249 | wxPyEndAllowThreads(__tstate); | |
23250 | if (PyErr_Occurred()) SWIG_fail; | |
23251 | } | |
15afbcd0 | 23252 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23253 | return resultobj; |
23254 | fail: | |
23255 | return NULL; | |
23256 | } | |
23257 | ||
23258 | ||
23259 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23260 | PyObject *resultobj; | |
23261 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23262 | wxDateSpan *arg2 = 0 ; | |
23263 | wxDateSpan *result; | |
23264 | PyObject * obj0 = 0 ; | |
23265 | PyObject * obj1 = 0 ; | |
23266 | char *kwnames[] = { | |
23267 | (char *) "self",(char *) "other", NULL | |
23268 | }; | |
23269 | ||
23270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23273 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23274 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23275 | SWIG_fail; | |
d14a1e28 | 23276 | if (arg2 == NULL) { |
15afbcd0 RD |
23277 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23278 | SWIG_fail; | |
d14a1e28 RD |
23279 | } |
23280 | { | |
23281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23282 | { | |
23283 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
23284 | result = (wxDateSpan *) &_result_ref; | |
23285 | } | |
23286 | ||
23287 | wxPyEndAllowThreads(__tstate); | |
23288 | if (PyErr_Occurred()) SWIG_fail; | |
23289 | } | |
15afbcd0 | 23290 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23291 | return resultobj; |
23292 | fail: | |
23293 | return NULL; | |
23294 | } | |
23295 | ||
23296 | ||
23297 | static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23298 | PyObject *resultobj; | |
23299 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23300 | wxDateSpan *arg2 = 0 ; | |
23301 | wxDateSpan *result; | |
23302 | PyObject * obj0 = 0 ; | |
23303 | PyObject * obj1 = 0 ; | |
23304 | char *kwnames[] = { | |
23305 | (char *) "self",(char *) "other", NULL | |
23306 | }; | |
23307 | ||
23308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23311 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23312 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23313 | SWIG_fail; | |
d14a1e28 | 23314 | if (arg2 == NULL) { |
15afbcd0 RD |
23315 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23316 | SWIG_fail; | |
d14a1e28 RD |
23317 | } |
23318 | { | |
23319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23320 | { | |
23321 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
23322 | result = (wxDateSpan *) &_result_ref; | |
23323 | } | |
23324 | ||
23325 | wxPyEndAllowThreads(__tstate); | |
23326 | if (PyErr_Occurred()) SWIG_fail; | |
23327 | } | |
15afbcd0 | 23328 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23329 | return resultobj; |
23330 | fail: | |
23331 | return NULL; | |
23332 | } | |
23333 | ||
23334 | ||
23335 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23336 | PyObject *resultobj; | |
23337 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23338 | wxDateSpan *result; | |
23339 | PyObject * obj0 = 0 ; | |
23340 | char *kwnames[] = { | |
23341 | (char *) "self", NULL | |
23342 | }; | |
23343 | ||
23344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23347 | { |
23348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23349 | { | |
23350 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
23351 | result = (wxDateSpan *) &_result_ref; | |
23352 | } | |
23353 | ||
23354 | wxPyEndAllowThreads(__tstate); | |
23355 | if (PyErr_Occurred()) SWIG_fail; | |
23356 | } | |
15afbcd0 | 23357 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23358 | return resultobj; |
23359 | fail: | |
23360 | return NULL; | |
23361 | } | |
23362 | ||
23363 | ||
23364 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23365 | PyObject *resultobj; | |
23366 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23367 | int arg2 ; | |
23368 | wxDateSpan *result; | |
23369 | PyObject * obj0 = 0 ; | |
994141e6 | 23370 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23371 | char *kwnames[] = { |
23372 | (char *) "self",(char *) "factor", NULL | |
23373 | }; | |
23374 | ||
994141e6 | 23375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23378 | arg2 = (int) SWIG_AsInt(obj1); | |
23379 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23380 | { |
23381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23382 | { | |
23383 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
23384 | result = (wxDateSpan *) &_result_ref; | |
23385 | } | |
23386 | ||
23387 | wxPyEndAllowThreads(__tstate); | |
23388 | if (PyErr_Occurred()) SWIG_fail; | |
23389 | } | |
15afbcd0 | 23390 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23391 | return resultobj; |
23392 | fail: | |
23393 | return NULL; | |
23394 | } | |
23395 | ||
23396 | ||
23397 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23398 | PyObject *resultobj; | |
23399 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23400 | wxDateSpan *arg2 = 0 ; | |
23401 | wxDateSpan result; | |
23402 | PyObject * obj0 = 0 ; | |
23403 | PyObject * obj1 = 0 ; | |
23404 | char *kwnames[] = { | |
23405 | (char *) "self",(char *) "other", NULL | |
23406 | }; | |
23407 | ||
23408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23411 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23412 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23413 | SWIG_fail; | |
d14a1e28 | 23414 | if (arg2 == NULL) { |
15afbcd0 RD |
23415 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23416 | SWIG_fail; | |
d14a1e28 RD |
23417 | } |
23418 | { | |
23419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23420 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
23421 | ||
23422 | wxPyEndAllowThreads(__tstate); | |
23423 | if (PyErr_Occurred()) SWIG_fail; | |
23424 | } | |
23425 | { | |
23426 | wxDateSpan * resultptr; | |
23427 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23428 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23429 | } |
23430 | return resultobj; | |
23431 | fail: | |
23432 | return NULL; | |
23433 | } | |
23434 | ||
23435 | ||
23436 | static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23437 | PyObject *resultobj; | |
23438 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23439 | wxDateSpan *arg2 = 0 ; | |
23440 | wxDateSpan result; | |
23441 | PyObject * obj0 = 0 ; | |
23442 | PyObject * obj1 = 0 ; | |
23443 | char *kwnames[] = { | |
23444 | (char *) "self",(char *) "other", NULL | |
23445 | }; | |
23446 | ||
23447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23450 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23451 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23452 | SWIG_fail; | |
d14a1e28 | 23453 | if (arg2 == NULL) { |
15afbcd0 RD |
23454 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23455 | SWIG_fail; | |
d14a1e28 RD |
23456 | } |
23457 | { | |
23458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23459 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
23460 | ||
23461 | wxPyEndAllowThreads(__tstate); | |
23462 | if (PyErr_Occurred()) SWIG_fail; | |
23463 | } | |
23464 | { | |
23465 | wxDateSpan * resultptr; | |
23466 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23467 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23468 | } |
23469 | return resultobj; | |
23470 | fail: | |
23471 | return NULL; | |
23472 | } | |
23473 | ||
23474 | ||
23475 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23476 | PyObject *resultobj; | |
23477 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23478 | int arg2 ; | |
23479 | wxDateSpan result; | |
23480 | PyObject * obj0 = 0 ; | |
994141e6 | 23481 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23482 | char *kwnames[] = { |
23483 | (char *) "self",(char *) "n", NULL | |
23484 | }; | |
23485 | ||
994141e6 | 23486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23489 | arg2 = (int) SWIG_AsInt(obj1); | |
23490 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23491 | { |
23492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23493 | result = wxDateSpan___mul__(arg1,arg2); | |
23494 | ||
23495 | wxPyEndAllowThreads(__tstate); | |
23496 | if (PyErr_Occurred()) SWIG_fail; | |
23497 | } | |
23498 | { | |
23499 | wxDateSpan * resultptr; | |
23500 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23501 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23502 | } |
23503 | return resultobj; | |
23504 | fail: | |
23505 | return NULL; | |
23506 | } | |
23507 | ||
23508 | ||
23509 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23510 | PyObject *resultobj; | |
23511 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23512 | int arg2 ; | |
23513 | wxDateSpan result; | |
23514 | PyObject * obj0 = 0 ; | |
994141e6 | 23515 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23516 | char *kwnames[] = { |
23517 | (char *) "self",(char *) "n", NULL | |
23518 | }; | |
23519 | ||
994141e6 | 23520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23523 | arg2 = (int) SWIG_AsInt(obj1); | |
23524 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23525 | { |
23526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23527 | result = wxDateSpan___rmul__(arg1,arg2); | |
23528 | ||
23529 | wxPyEndAllowThreads(__tstate); | |
23530 | if (PyErr_Occurred()) SWIG_fail; | |
23531 | } | |
23532 | { | |
23533 | wxDateSpan * resultptr; | |
23534 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23535 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23536 | } |
23537 | return resultobj; | |
23538 | fail: | |
23539 | return NULL; | |
23540 | } | |
23541 | ||
23542 | ||
23543 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23544 | PyObject *resultobj; | |
23545 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22faec7d | 23546 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; |
d14a1e28 RD |
23547 | bool result; |
23548 | PyObject * obj0 = 0 ; | |
23549 | PyObject * obj1 = 0 ; | |
23550 | char *kwnames[] = { | |
23551 | (char *) "self",(char *) "other", NULL | |
23552 | }; | |
23553 | ||
23554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23557 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23559 | { |
23560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 23561 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); |
d14a1e28 RD |
23562 | |
23563 | wxPyEndAllowThreads(__tstate); | |
23564 | if (PyErr_Occurred()) SWIG_fail; | |
23565 | } | |
4f89f6a3 RD |
23566 | { |
23567 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23568 | } | |
d14a1e28 RD |
23569 | return resultobj; |
23570 | fail: | |
23571 | return NULL; | |
23572 | } | |
23573 | ||
23574 | ||
23575 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23576 | PyObject *resultobj; | |
23577 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22faec7d | 23578 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; |
d14a1e28 RD |
23579 | bool result; |
23580 | PyObject * obj0 = 0 ; | |
23581 | PyObject * obj1 = 0 ; | |
23582 | char *kwnames[] = { | |
23583 | (char *) "self",(char *) "other", NULL | |
23584 | }; | |
23585 | ||
23586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23589 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23591 | { |
23592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 23593 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); |
d14a1e28 RD |
23594 | |
23595 | wxPyEndAllowThreads(__tstate); | |
23596 | if (PyErr_Occurred()) SWIG_fail; | |
23597 | } | |
4f89f6a3 RD |
23598 | { |
23599 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23600 | } | |
d14a1e28 RD |
23601 | return resultobj; |
23602 | fail: | |
23603 | return NULL; | |
23604 | } | |
23605 | ||
23606 | ||
23607 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
23608 | PyObject *obj; | |
23609 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23610 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
23611 | Py_INCREF(obj); | |
23612 | return Py_BuildValue((char *)""); | |
23613 | } | |
23614 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23615 | PyObject *resultobj; | |
23616 | long result; | |
23617 | char *kwnames[] = { | |
23618 | NULL | |
23619 | }; | |
23620 | ||
23621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
23622 | { | |
23623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23624 | result = (long)wxGetLocalTime(); | |
23625 | ||
23626 | wxPyEndAllowThreads(__tstate); | |
23627 | if (PyErr_Occurred()) SWIG_fail; | |
23628 | } | |
15afbcd0 | 23629 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23630 | return resultobj; |
23631 | fail: | |
23632 | return NULL; | |
23633 | } | |
23634 | ||
23635 | ||
23636 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23637 | PyObject *resultobj; | |
23638 | long result; | |
23639 | char *kwnames[] = { | |
23640 | NULL | |
23641 | }; | |
23642 | ||
23643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
23644 | { | |
23645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23646 | result = (long)wxGetUTCTime(); | |
23647 | ||
23648 | wxPyEndAllowThreads(__tstate); | |
23649 | if (PyErr_Occurred()) SWIG_fail; | |
23650 | } | |
15afbcd0 | 23651 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23652 | return resultobj; |
23653 | fail: | |
23654 | return NULL; | |
23655 | } | |
23656 | ||
23657 | ||
23658 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23659 | PyObject *resultobj; | |
23660 | long result; | |
23661 | char *kwnames[] = { | |
23662 | NULL | |
23663 | }; | |
23664 | ||
23665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
23666 | { | |
23667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23668 | result = (long)wxGetCurrentTime(); | |
23669 | ||
23670 | wxPyEndAllowThreads(__tstate); | |
23671 | if (PyErr_Occurred()) SWIG_fail; | |
23672 | } | |
15afbcd0 | 23673 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23674 | return resultobj; |
23675 | fail: | |
23676 | return NULL; | |
23677 | } | |
23678 | ||
23679 | ||
23680 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23681 | PyObject *resultobj; | |
23682 | wxLongLong result; | |
23683 | char *kwnames[] = { | |
23684 | NULL | |
23685 | }; | |
23686 | ||
23687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
23688 | { | |
23689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23690 | result = wxGetLocalTimeMillis(); | |
23691 | ||
23692 | wxPyEndAllowThreads(__tstate); | |
23693 | if (PyErr_Occurred()) SWIG_fail; | |
23694 | } | |
23695 | { | |
23696 | PyObject *hi, *lo, *shifter, *shifted; | |
23697 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23698 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23699 | shifter = PyLong_FromLong(32); | |
23700 | shifted = PyNumber_Lshift(hi, shifter); | |
23701 | resultobj = PyNumber_Or(shifted, lo); | |
23702 | Py_DECREF(hi); | |
23703 | Py_DECREF(lo); | |
23704 | Py_DECREF(shifter); | |
23705 | Py_DECREF(shifted); | |
23706 | } | |
23707 | return resultobj; | |
23708 | fail: | |
23709 | return NULL; | |
23710 | } | |
23711 | ||
23712 | ||
98e665d3 RD |
23713 | static int _wrap_DefaultDateTime_set(PyObject *_val) { |
23714 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); | |
23715 | return 1; | |
23716 | } | |
23717 | ||
23718 | ||
23719 | static PyObject *_wrap_DefaultDateTime_get() { | |
23720 | PyObject *pyobj; | |
23721 | ||
15afbcd0 | 23722 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); |
98e665d3 RD |
23723 | return pyobj; |
23724 | } | |
23725 | ||
23726 | ||
d14a1e28 RD |
23727 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { |
23728 | PyObject *resultobj; | |
23729 | int arg1 ; | |
23730 | wxDataFormat *result; | |
994141e6 | 23731 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
23732 | char *kwnames[] = { |
23733 | (char *) "type", NULL | |
23734 | }; | |
23735 | ||
994141e6 | 23736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
23737 | arg1 = (wxDataFormatId) SWIG_AsInt(obj0); |
23738 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23739 | { |
23740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23741 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
23742 | ||
23743 | wxPyEndAllowThreads(__tstate); | |
23744 | if (PyErr_Occurred()) SWIG_fail; | |
23745 | } | |
15afbcd0 | 23746 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
23747 | return resultobj; |
23748 | fail: | |
23749 | return NULL; | |
23750 | } | |
23751 | ||
23752 | ||
23753 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23754 | PyObject *resultobj; | |
23755 | wxString *arg1 = 0 ; | |
23756 | wxDataFormat *result; | |
e811c8ce | 23757 | bool temp1 = False ; |
d14a1e28 RD |
23758 | PyObject * obj0 = 0 ; |
23759 | char *kwnames[] = { | |
23760 | (char *) "format", NULL | |
23761 | }; | |
23762 | ||
23763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
23764 | { | |
23765 | arg1 = wxString_in_helper(obj0); | |
23766 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 23767 | temp1 = True; |
d14a1e28 RD |
23768 | } |
23769 | { | |
23770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23771 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
23772 | ||
23773 | wxPyEndAllowThreads(__tstate); | |
23774 | if (PyErr_Occurred()) SWIG_fail; | |
23775 | } | |
15afbcd0 | 23776 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
23777 | { |
23778 | if (temp1) | |
23779 | delete arg1; | |
23780 | } | |
23781 | return resultobj; | |
23782 | fail: | |
23783 | { | |
23784 | if (temp1) | |
23785 | delete arg1; | |
23786 | } | |
23787 | return NULL; | |
23788 | } | |
23789 | ||
23790 | ||
23791 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23792 | PyObject *resultobj; | |
23793 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23794 | PyObject * obj0 = 0 ; | |
23795 | char *kwnames[] = { | |
23796 | (char *) "self", NULL | |
23797 | }; | |
23798 | ||
23799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23802 | { |
23803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23804 | delete arg1; | |
23805 | ||
23806 | wxPyEndAllowThreads(__tstate); | |
23807 | if (PyErr_Occurred()) SWIG_fail; | |
23808 | } | |
23809 | Py_INCREF(Py_None); resultobj = Py_None; | |
23810 | return resultobj; | |
23811 | fail: | |
23812 | return NULL; | |
23813 | } | |
23814 | ||
23815 | ||
23816 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
23817 | PyObject *resultobj; | |
23818 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23819 | int arg2 ; | |
23820 | bool result; | |
23821 | PyObject * obj0 = 0 ; | |
994141e6 | 23822 | PyObject * obj1 = 0 ; |
d14a1e28 | 23823 | |
994141e6 | 23824 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23827 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23828 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23829 | { |
23830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 23831 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); |
d14a1e28 RD |
23832 | |
23833 | wxPyEndAllowThreads(__tstate); | |
23834 | if (PyErr_Occurred()) SWIG_fail; | |
23835 | } | |
4f89f6a3 RD |
23836 | { |
23837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23838 | } | |
d14a1e28 RD |
23839 | return resultobj; |
23840 | fail: | |
23841 | return NULL; | |
23842 | } | |
23843 | ||
23844 | ||
23845 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
23846 | PyObject *resultobj; | |
23847 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23848 | int arg2 ; | |
23849 | bool result; | |
23850 | PyObject * obj0 = 0 ; | |
994141e6 | 23851 | PyObject * obj1 = 0 ; |
d14a1e28 | 23852 | |
994141e6 | 23853 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23856 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23857 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23858 | { |
23859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 23860 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); |
d14a1e28 RD |
23861 | |
23862 | wxPyEndAllowThreads(__tstate); | |
23863 | if (PyErr_Occurred()) SWIG_fail; | |
23864 | } | |
4f89f6a3 RD |
23865 | { |
23866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23867 | } | |
d14a1e28 RD |
23868 | return resultobj; |
23869 | fail: | |
23870 | return NULL; | |
23871 | } | |
23872 | ||
23873 | ||
23874 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
23875 | PyObject *resultobj; | |
23876 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23877 | wxDataFormat *arg2 = 0 ; | |
23878 | bool result; | |
23879 | PyObject * obj0 = 0 ; | |
23880 | PyObject * obj1 = 0 ; | |
23881 | ||
23882 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23885 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
23886 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23887 | SWIG_fail; | |
d14a1e28 | 23888 | if (arg2 == NULL) { |
15afbcd0 RD |
23889 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23890 | SWIG_fail; | |
d14a1e28 RD |
23891 | } |
23892 | { | |
23893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23894 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
23895 | ||
23896 | wxPyEndAllowThreads(__tstate); | |
23897 | if (PyErr_Occurred()) SWIG_fail; | |
23898 | } | |
4f89f6a3 RD |
23899 | { |
23900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23901 | } | |
d14a1e28 RD |
23902 | return resultobj; |
23903 | fail: | |
23904 | return NULL; | |
23905 | } | |
23906 | ||
23907 | ||
23908 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
23909 | int argc; | |
23910 | PyObject *argv[3]; | |
23911 | int ii; | |
23912 | ||
23913 | argc = PyObject_Length(args); | |
23914 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23915 | argv[ii] = PyTuple_GetItem(args,ii); | |
23916 | } | |
23917 | if (argc == 2) { | |
23918 | int _v; | |
23919 | { | |
23920 | void *ptr; | |
15afbcd0 | 23921 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
23922 | _v = 0; |
23923 | PyErr_Clear(); | |
23924 | } else { | |
23925 | _v = 1; | |
23926 | } | |
23927 | } | |
23928 | if (_v) { | |
23929 | { | |
23930 | void *ptr; | |
15afbcd0 | 23931 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
23932 | _v = 0; |
23933 | PyErr_Clear(); | |
23934 | } else { | |
23935 | _v = 1; | |
23936 | } | |
23937 | } | |
23938 | if (_v) { | |
23939 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
23940 | } | |
23941 | } | |
23942 | } | |
23943 | if (argc == 2) { | |
23944 | int _v; | |
23945 | { | |
23946 | void *ptr; | |
15afbcd0 | 23947 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
23948 | _v = 0; |
23949 | PyErr_Clear(); | |
23950 | } else { | |
23951 | _v = 1; | |
23952 | } | |
23953 | } | |
23954 | if (_v) { | |
15afbcd0 | 23955 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
23956 | if (_v) { |
23957 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
23958 | } | |
23959 | } | |
23960 | } | |
23961 | ||
23962 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
23963 | return NULL; | |
23964 | } | |
23965 | ||
23966 | ||
23967 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
23968 | PyObject *resultobj; | |
23969 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23970 | wxDataFormat *arg2 = 0 ; | |
23971 | bool result; | |
23972 | PyObject * obj0 = 0 ; | |
23973 | PyObject * obj1 = 0 ; | |
23974 | ||
23975 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23978 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
23979 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23980 | SWIG_fail; | |
d14a1e28 | 23981 | if (arg2 == NULL) { |
15afbcd0 RD |
23982 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23983 | SWIG_fail; | |
d14a1e28 RD |
23984 | } |
23985 | { | |
23986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23987 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
23988 | ||
23989 | wxPyEndAllowThreads(__tstate); | |
23990 | if (PyErr_Occurred()) SWIG_fail; | |
23991 | } | |
4f89f6a3 RD |
23992 | { |
23993 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23994 | } | |
d14a1e28 RD |
23995 | return resultobj; |
23996 | fail: | |
23997 | return NULL; | |
23998 | } | |
23999 | ||
24000 | ||
24001 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
24002 | int argc; | |
24003 | PyObject *argv[3]; | |
24004 | int ii; | |
24005 | ||
24006 | argc = PyObject_Length(args); | |
24007 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24008 | argv[ii] = PyTuple_GetItem(args,ii); | |
24009 | } | |
24010 | if (argc == 2) { | |
24011 | int _v; | |
24012 | { | |
24013 | void *ptr; | |
15afbcd0 | 24014 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24015 | _v = 0; |
24016 | PyErr_Clear(); | |
24017 | } else { | |
24018 | _v = 1; | |
24019 | } | |
24020 | } | |
24021 | if (_v) { | |
24022 | { | |
24023 | void *ptr; | |
15afbcd0 | 24024 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24025 | _v = 0; |
24026 | PyErr_Clear(); | |
24027 | } else { | |
24028 | _v = 1; | |
24029 | } | |
24030 | } | |
24031 | if (_v) { | |
24032 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
24033 | } | |
24034 | } | |
24035 | } | |
24036 | if (argc == 2) { | |
24037 | int _v; | |
24038 | { | |
24039 | void *ptr; | |
15afbcd0 | 24040 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24041 | _v = 0; |
24042 | PyErr_Clear(); | |
24043 | } else { | |
24044 | _v = 1; | |
24045 | } | |
24046 | } | |
24047 | if (_v) { | |
15afbcd0 | 24048 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
24049 | if (_v) { |
24050 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
24051 | } | |
24052 | } | |
24053 | } | |
24054 | ||
24055 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
24056 | return NULL; | |
24057 | } | |
24058 | ||
24059 | ||
24060 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24061 | PyObject *resultobj; | |
24062 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24063 | int arg2 ; | |
24064 | PyObject * obj0 = 0 ; | |
994141e6 | 24065 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24066 | char *kwnames[] = { |
24067 | (char *) "self",(char *) "format", NULL | |
24068 | }; | |
24069 | ||
994141e6 | 24070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24073 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
24074 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24075 | { |
24076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24077 | (arg1)->SetType((wxDataFormatId )arg2); | |
24078 | ||
24079 | wxPyEndAllowThreads(__tstate); | |
24080 | if (PyErr_Occurred()) SWIG_fail; | |
24081 | } | |
24082 | Py_INCREF(Py_None); resultobj = Py_None; | |
24083 | return resultobj; | |
24084 | fail: | |
24085 | return NULL; | |
24086 | } | |
24087 | ||
24088 | ||
24089 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24090 | PyObject *resultobj; | |
24091 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24092 | int result; | |
24093 | PyObject * obj0 = 0 ; | |
24094 | char *kwnames[] = { | |
24095 | (char *) "self", NULL | |
24096 | }; | |
24097 | ||
24098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24101 | { |
24102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24103 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
24104 | ||
24105 | wxPyEndAllowThreads(__tstate); | |
24106 | if (PyErr_Occurred()) SWIG_fail; | |
24107 | } | |
15afbcd0 | 24108 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
24109 | return resultobj; |
24110 | fail: | |
24111 | return NULL; | |
24112 | } | |
24113 | ||
24114 | ||
24115 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24116 | PyObject *resultobj; | |
24117 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24118 | wxString result; | |
24119 | PyObject * obj0 = 0 ; | |
24120 | char *kwnames[] = { | |
24121 | (char *) "self", NULL | |
24122 | }; | |
24123 | ||
24124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24127 | { |
24128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24129 | result = ((wxDataFormat const *)arg1)->GetId(); | |
24130 | ||
24131 | wxPyEndAllowThreads(__tstate); | |
24132 | if (PyErr_Occurred()) SWIG_fail; | |
24133 | } | |
24134 | { | |
24135 | #if wxUSE_UNICODE | |
24136 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24137 | #else | |
24138 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24139 | #endif | |
24140 | } | |
24141 | return resultobj; | |
24142 | fail: | |
24143 | return NULL; | |
24144 | } | |
24145 | ||
24146 | ||
24147 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24148 | PyObject *resultobj; | |
24149 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24150 | wxString *arg2 = 0 ; | |
e811c8ce | 24151 | bool temp2 = False ; |
d14a1e28 RD |
24152 | PyObject * obj0 = 0 ; |
24153 | PyObject * obj1 = 0 ; | |
24154 | char *kwnames[] = { | |
24155 | (char *) "self",(char *) "format", NULL | |
24156 | }; | |
24157 | ||
24158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24161 | { |
24162 | arg2 = wxString_in_helper(obj1); | |
24163 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24164 | temp2 = True; |
d14a1e28 RD |
24165 | } |
24166 | { | |
24167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24168 | (arg1)->SetId((wxString const &)*arg2); | |
24169 | ||
24170 | wxPyEndAllowThreads(__tstate); | |
24171 | if (PyErr_Occurred()) SWIG_fail; | |
24172 | } | |
24173 | Py_INCREF(Py_None); resultobj = Py_None; | |
24174 | { | |
24175 | if (temp2) | |
24176 | delete arg2; | |
24177 | } | |
24178 | return resultobj; | |
24179 | fail: | |
24180 | { | |
24181 | if (temp2) | |
24182 | delete arg2; | |
24183 | } | |
24184 | return NULL; | |
24185 | } | |
24186 | ||
24187 | ||
24188 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
24189 | PyObject *obj; | |
24190 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24191 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
24192 | Py_INCREF(obj); | |
24193 | return Py_BuildValue((char *)""); | |
24194 | } | |
24195 | static int _wrap_FormatInvalid_set(PyObject *_val) { | |
24196 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); | |
24197 | return 1; | |
24198 | } | |
24199 | ||
24200 | ||
24201 | static PyObject *_wrap_FormatInvalid_get() { | |
24202 | PyObject *pyobj; | |
24203 | ||
15afbcd0 | 24204 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); |
d14a1e28 RD |
24205 | return pyobj; |
24206 | } | |
24207 | ||
24208 | ||
24209 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24210 | PyObject *resultobj; | |
24211 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24212 | PyObject * obj0 = 0 ; | |
24213 | char *kwnames[] = { | |
24214 | (char *) "self", NULL | |
24215 | }; | |
24216 | ||
24217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24220 | { |
24221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24222 | delete arg1; | |
24223 | ||
24224 | wxPyEndAllowThreads(__tstate); | |
24225 | if (PyErr_Occurred()) SWIG_fail; | |
24226 | } | |
24227 | Py_INCREF(Py_None); resultobj = Py_None; | |
24228 | return resultobj; | |
24229 | fail: | |
24230 | return NULL; | |
24231 | } | |
24232 | ||
24233 | ||
24234 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24235 | PyObject *resultobj; | |
24236 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24237 | int arg2 = (int) wxDataObject::Get ; | |
24238 | SwigValueWrapper< wxDataFormat > result; | |
24239 | PyObject * obj0 = 0 ; | |
994141e6 | 24240 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24241 | char *kwnames[] = { |
24242 | (char *) "self",(char *) "dir", NULL | |
24243 | }; | |
24244 | ||
994141e6 | 24245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24248 | if (obj1) { |
15afbcd0 RD |
24249 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); |
24250 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24251 | } |
d14a1e28 RD |
24252 | { |
24253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24254 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
24255 | ||
24256 | wxPyEndAllowThreads(__tstate); | |
24257 | if (PyErr_Occurred()) SWIG_fail; | |
24258 | } | |
24259 | { | |
24260 | wxDataFormat * resultptr; | |
24261 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
15afbcd0 | 24262 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
24263 | } |
24264 | return resultobj; | |
24265 | fail: | |
24266 | return NULL; | |
24267 | } | |
24268 | ||
24269 | ||
24270 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24271 | PyObject *resultobj; | |
24272 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24273 | int arg2 = (int) wxDataObject::Get ; | |
24274 | size_t result; | |
24275 | PyObject * obj0 = 0 ; | |
994141e6 | 24276 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24277 | char *kwnames[] = { |
24278 | (char *) "self",(char *) "dir", NULL | |
24279 | }; | |
24280 | ||
994141e6 | 24281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24284 | if (obj1) { |
15afbcd0 RD |
24285 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); |
24286 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24287 | } |
d14a1e28 RD |
24288 | { |
24289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24290 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
24291 | ||
24292 | wxPyEndAllowThreads(__tstate); | |
24293 | if (PyErr_Occurred()) SWIG_fail; | |
24294 | } | |
15afbcd0 | 24295 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24296 | return resultobj; |
24297 | fail: | |
24298 | return NULL; | |
24299 | } | |
24300 | ||
24301 | ||
24302 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24303 | PyObject *resultobj; | |
24304 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24305 | wxDataFormat *arg2 = 0 ; | |
24306 | int arg3 = (int) wxDataObject::Get ; | |
24307 | bool result; | |
24308 | PyObject * obj0 = 0 ; | |
24309 | PyObject * obj1 = 0 ; | |
994141e6 | 24310 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24311 | char *kwnames[] = { |
24312 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
24313 | }; | |
24314 | ||
994141e6 | 24315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24318 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24319 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24320 | SWIG_fail; | |
d14a1e28 | 24321 | if (arg2 == NULL) { |
15afbcd0 RD |
24322 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24323 | SWIG_fail; | |
d14a1e28 | 24324 | } |
994141e6 | 24325 | if (obj2) { |
15afbcd0 RD |
24326 | arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); |
24327 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24328 | } |
d14a1e28 RD |
24329 | { |
24330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24331 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
24332 | ||
24333 | wxPyEndAllowThreads(__tstate); | |
24334 | if (PyErr_Occurred()) SWIG_fail; | |
24335 | } | |
4f89f6a3 RD |
24336 | { |
24337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24338 | } | |
d14a1e28 RD |
24339 | return resultobj; |
24340 | fail: | |
24341 | return NULL; | |
24342 | } | |
24343 | ||
24344 | ||
24345 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24346 | PyObject *resultobj; | |
24347 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24348 | wxDataFormat *arg2 = 0 ; | |
24349 | size_t result; | |
24350 | PyObject * obj0 = 0 ; | |
24351 | PyObject * obj1 = 0 ; | |
24352 | char *kwnames[] = { | |
24353 | (char *) "self",(char *) "format", NULL | |
24354 | }; | |
24355 | ||
24356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24359 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24360 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24361 | SWIG_fail; | |
d14a1e28 | 24362 | if (arg2 == NULL) { |
15afbcd0 RD |
24363 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24364 | SWIG_fail; | |
d14a1e28 RD |
24365 | } |
24366 | { | |
24367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24368 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
24369 | ||
24370 | wxPyEndAllowThreads(__tstate); | |
24371 | if (PyErr_Occurred()) SWIG_fail; | |
24372 | } | |
15afbcd0 | 24373 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24374 | return resultobj; |
24375 | fail: | |
24376 | return NULL; | |
24377 | } | |
24378 | ||
24379 | ||
24380 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24381 | PyObject *resultobj; | |
24382 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24383 | wxDataFormat *arg2 = (wxDataFormat *) 0 ; | |
24384 | int arg3 = (int) wxDataObject::Get ; | |
24385 | PyObject * obj0 = 0 ; | |
24386 | PyObject * obj1 = 0 ; | |
994141e6 | 24387 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24388 | char *kwnames[] = { |
24389 | (char *) "self",(char *) "formats",(char *) "dir", NULL | |
24390 | }; | |
24391 | ||
994141e6 | 24392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",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) SWIG_fail; | |
994141e6 | 24397 | if (obj2) { |
15afbcd0 RD |
24398 | arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); |
24399 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24400 | } |
d14a1e28 RD |
24401 | { |
24402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24403 | ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3); | |
24404 | ||
24405 | wxPyEndAllowThreads(__tstate); | |
24406 | if (PyErr_Occurred()) SWIG_fail; | |
24407 | } | |
24408 | Py_INCREF(Py_None); resultobj = Py_None; | |
24409 | return resultobj; | |
24410 | fail: | |
24411 | return NULL; | |
24412 | } | |
24413 | ||
24414 | ||
24415 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24416 | PyObject *resultobj; | |
24417 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24418 | wxDataFormat *arg2 = 0 ; | |
24419 | void *arg3 = (void *) 0 ; | |
24420 | bool result; | |
24421 | PyObject * obj0 = 0 ; | |
24422 | PyObject * obj1 = 0 ; | |
24423 | PyObject * obj2 = 0 ; | |
24424 | char *kwnames[] = { | |
24425 | (char *) "self",(char *) "format",(char *) "buf", NULL | |
24426 | }; | |
24427 | ||
24428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
24429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24431 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24432 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24433 | SWIG_fail; | |
d14a1e28 | 24434 | if (arg2 == NULL) { |
15afbcd0 RD |
24435 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24436 | SWIG_fail; | |
d14a1e28 | 24437 | } |
15afbcd0 | 24438 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
24439 | { |
24440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24441 | result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3); | |
24442 | ||
24443 | wxPyEndAllowThreads(__tstate); | |
24444 | if (PyErr_Occurred()) SWIG_fail; | |
24445 | } | |
4f89f6a3 RD |
24446 | { |
24447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24448 | } | |
d14a1e28 RD |
24449 | return resultobj; |
24450 | fail: | |
24451 | return NULL; | |
24452 | } | |
24453 | ||
24454 | ||
24455 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24456 | PyObject *resultobj; | |
24457 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24458 | wxDataFormat *arg2 = 0 ; | |
24459 | size_t arg3 ; | |
24460 | void *arg4 = (void *) 0 ; | |
24461 | bool result; | |
24462 | PyObject * obj0 = 0 ; | |
24463 | PyObject * obj1 = 0 ; | |
24464 | PyObject * obj2 = 0 ; | |
24465 | PyObject * obj3 = 0 ; | |
24466 | char *kwnames[] = { | |
24467 | (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL | |
24468 | }; | |
24469 | ||
24470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
24471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24473 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24474 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24475 | SWIG_fail; | |
d14a1e28 | 24476 | if (arg2 == NULL) { |
15afbcd0 RD |
24477 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24478 | SWIG_fail; | |
a41e16b6 | 24479 | } |
15afbcd0 RD |
24480 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
24481 | if (PyErr_Occurred()) SWIG_fail; | |
24482 | if ((SWIG_ConvertPtr(obj3,&arg4,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24483 | { |
24484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24485 | result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4); | |
24486 | ||
24487 | wxPyEndAllowThreads(__tstate); | |
24488 | if (PyErr_Occurred()) SWIG_fail; | |
24489 | } | |
4f89f6a3 RD |
24490 | { |
24491 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24492 | } | |
d14a1e28 RD |
24493 | return resultobj; |
24494 | fail: | |
24495 | return NULL; | |
24496 | } | |
24497 | ||
24498 | ||
24499 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
24500 | PyObject *obj; | |
24501 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24502 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
24503 | Py_INCREF(obj); | |
24504 | return Py_BuildValue((char *)""); | |
24505 | } | |
24506 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24507 | PyObject *resultobj; | |
24508 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24509 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24510 | wxDataObjectSimple *result; | |
24511 | PyObject * obj0 = 0 ; | |
24512 | char *kwnames[] = { | |
24513 | (char *) "format", NULL | |
24514 | }; | |
24515 | ||
24516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
24517 | if (obj0) { | |
15afbcd0 RD |
24518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24519 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24520 | SWIG_fail; | |
d14a1e28 | 24521 | if (arg1 == NULL) { |
15afbcd0 RD |
24522 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24523 | SWIG_fail; | |
d14a1e28 RD |
24524 | } |
24525 | } | |
24526 | { | |
24527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24528 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
24529 | ||
24530 | wxPyEndAllowThreads(__tstate); | |
24531 | if (PyErr_Occurred()) SWIG_fail; | |
24532 | } | |
15afbcd0 | 24533 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); |
d14a1e28 RD |
24534 | return resultobj; |
24535 | fail: | |
24536 | return NULL; | |
24537 | } | |
24538 | ||
24539 | ||
24540 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24541 | PyObject *resultobj; | |
24542 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24543 | wxDataFormat *result; | |
24544 | PyObject * obj0 = 0 ; | |
24545 | char *kwnames[] = { | |
24546 | (char *) "self", NULL | |
24547 | }; | |
24548 | ||
24549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, |
24551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24552 | { |
24553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24554 | { | |
24555 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
24556 | result = (wxDataFormat *) &_result_ref; | |
24557 | } | |
24558 | ||
24559 | wxPyEndAllowThreads(__tstate); | |
24560 | if (PyErr_Occurred()) SWIG_fail; | |
24561 | } | |
15afbcd0 | 24562 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); |
d14a1e28 RD |
24563 | return resultobj; |
24564 | fail: | |
24565 | return NULL; | |
24566 | } | |
24567 | ||
24568 | ||
24569 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24570 | PyObject *resultobj; | |
24571 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24572 | wxDataFormat *arg2 = 0 ; | |
24573 | PyObject * obj0 = 0 ; | |
24574 | PyObject * obj1 = 0 ; | |
24575 | char *kwnames[] = { | |
24576 | (char *) "self",(char *) "format", NULL | |
24577 | }; | |
24578 | ||
24579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, |
24581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24582 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24583 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24584 | SWIG_fail; | |
d14a1e28 | 24585 | if (arg2 == NULL) { |
15afbcd0 RD |
24586 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24587 | SWIG_fail; | |
d14a1e28 RD |
24588 | } |
24589 | { | |
24590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24591 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
24592 | ||
24593 | wxPyEndAllowThreads(__tstate); | |
24594 | if (PyErr_Occurred()) SWIG_fail; | |
24595 | } | |
24596 | Py_INCREF(Py_None); resultobj = Py_None; | |
24597 | return resultobj; | |
24598 | fail: | |
24599 | return NULL; | |
24600 | } | |
24601 | ||
24602 | ||
24603 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24604 | PyObject *obj; | |
24605 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24606 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
24607 | Py_INCREF(obj); | |
24608 | return Py_BuildValue((char *)""); | |
24609 | } | |
24610 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24611 | PyObject *resultobj; | |
24612 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24613 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24614 | wxPyDataObjectSimple *result; | |
24615 | PyObject * obj0 = 0 ; | |
24616 | char *kwnames[] = { | |
24617 | (char *) "format", NULL | |
24618 | }; | |
24619 | ||
24620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
24621 | if (obj0) { | |
15afbcd0 RD |
24622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24623 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24624 | SWIG_fail; | |
d14a1e28 | 24625 | if (arg1 == NULL) { |
15afbcd0 RD |
24626 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24627 | SWIG_fail; | |
d14a1e28 RD |
24628 | } |
24629 | } | |
24630 | { | |
24631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24632 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
24633 | ||
24634 | wxPyEndAllowThreads(__tstate); | |
24635 | if (PyErr_Occurred()) SWIG_fail; | |
24636 | } | |
15afbcd0 | 24637 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); |
d14a1e28 RD |
24638 | return resultobj; |
24639 | fail: | |
24640 | return NULL; | |
24641 | } | |
24642 | ||
24643 | ||
24644 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24645 | PyObject *resultobj; | |
24646 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
24647 | PyObject *arg2 = (PyObject *) 0 ; | |
24648 | PyObject *arg3 = (PyObject *) 0 ; | |
24649 | PyObject * obj0 = 0 ; | |
24650 | PyObject * obj1 = 0 ; | |
24651 | PyObject * obj2 = 0 ; | |
24652 | char *kwnames[] = { | |
24653 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24654 | }; | |
24655 | ||
24656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
24657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple, |
24658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24659 | arg2 = obj1; |
24660 | arg3 = obj2; | |
24661 | { | |
24662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24663 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24664 | ||
24665 | wxPyEndAllowThreads(__tstate); | |
24666 | if (PyErr_Occurred()) SWIG_fail; | |
24667 | } | |
24668 | Py_INCREF(Py_None); resultobj = Py_None; | |
24669 | return resultobj; | |
24670 | fail: | |
24671 | return NULL; | |
24672 | } | |
24673 | ||
24674 | ||
24675 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24676 | PyObject *obj; | |
24677 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24678 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
24679 | Py_INCREF(obj); | |
24680 | return Py_BuildValue((char *)""); | |
24681 | } | |
24682 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24683 | PyObject *resultobj; | |
24684 | wxDataObjectComposite *result; | |
24685 | char *kwnames[] = { | |
24686 | NULL | |
24687 | }; | |
24688 | ||
24689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
24690 | { | |
24691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24692 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
24693 | ||
24694 | wxPyEndAllowThreads(__tstate); | |
24695 | if (PyErr_Occurred()) SWIG_fail; | |
24696 | } | |
15afbcd0 | 24697 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); |
d14a1e28 RD |
24698 | return resultobj; |
24699 | fail: | |
24700 | return NULL; | |
24701 | } | |
24702 | ||
24703 | ||
24704 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24705 | PyObject *resultobj; | |
24706 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
24707 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
e811c8ce | 24708 | int arg3 = (int) False ; |
d14a1e28 RD |
24709 | PyObject * obj0 = 0 ; |
24710 | PyObject * obj1 = 0 ; | |
994141e6 | 24711 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24712 | char *kwnames[] = { |
24713 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
24714 | }; | |
24715 | ||
994141e6 | 24716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite, |
24718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24719 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple, | |
24720 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
994141e6 | 24721 | if (obj2) { |
15afbcd0 RD |
24722 | arg3 = (int) SWIG_AsInt(obj2); |
24723 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24724 | } |
d14a1e28 RD |
24725 | { |
24726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24727 | (arg1)->Add(arg2,arg3); | |
24728 | ||
24729 | wxPyEndAllowThreads(__tstate); | |
24730 | if (PyErr_Occurred()) SWIG_fail; | |
24731 | } | |
24732 | Py_INCREF(Py_None); resultobj = Py_None; | |
24733 | return resultobj; | |
24734 | fail: | |
24735 | return NULL; | |
24736 | } | |
24737 | ||
24738 | ||
24739 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
24740 | PyObject *obj; | |
24741 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24742 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
24743 | Py_INCREF(obj); | |
24744 | return Py_BuildValue((char *)""); | |
24745 | } | |
24746 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24747 | PyObject *resultobj; | |
24748 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24749 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24750 | wxTextDataObject *result; | |
e811c8ce | 24751 | bool temp1 = False ; |
d14a1e28 RD |
24752 | PyObject * obj0 = 0 ; |
24753 | char *kwnames[] = { | |
24754 | (char *) "text", NULL | |
24755 | }; | |
24756 | ||
24757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
24758 | if (obj0) { | |
24759 | { | |
24760 | arg1 = wxString_in_helper(obj0); | |
24761 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 24762 | temp1 = True; |
d14a1e28 RD |
24763 | } |
24764 | } | |
24765 | { | |
24766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24767 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
24768 | ||
24769 | wxPyEndAllowThreads(__tstate); | |
24770 | if (PyErr_Occurred()) SWIG_fail; | |
24771 | } | |
15afbcd0 | 24772 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); |
d14a1e28 RD |
24773 | { |
24774 | if (temp1) | |
24775 | delete arg1; | |
24776 | } | |
24777 | return resultobj; | |
24778 | fail: | |
24779 | { | |
24780 | if (temp1) | |
24781 | delete arg1; | |
24782 | } | |
24783 | return NULL; | |
24784 | } | |
24785 | ||
24786 | ||
24787 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24788 | PyObject *resultobj; | |
24789 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24790 | size_t result; | |
24791 | PyObject * obj0 = 0 ; | |
24792 | char *kwnames[] = { | |
24793 | (char *) "self", NULL | |
24794 | }; | |
24795 | ||
24796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
24798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24799 | { |
24800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24801 | result = (size_t)(arg1)->GetTextLength(); | |
24802 | ||
24803 | wxPyEndAllowThreads(__tstate); | |
24804 | if (PyErr_Occurred()) SWIG_fail; | |
24805 | } | |
15afbcd0 | 24806 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24807 | return resultobj; |
24808 | fail: | |
24809 | return NULL; | |
24810 | } | |
24811 | ||
24812 | ||
24813 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24814 | PyObject *resultobj; | |
24815 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24816 | wxString result; | |
24817 | PyObject * obj0 = 0 ; | |
24818 | char *kwnames[] = { | |
24819 | (char *) "self", NULL | |
24820 | }; | |
24821 | ||
24822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
24824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24825 | { |
24826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24827 | result = (arg1)->GetText(); | |
24828 | ||
24829 | wxPyEndAllowThreads(__tstate); | |
24830 | if (PyErr_Occurred()) SWIG_fail; | |
24831 | } | |
24832 | { | |
24833 | #if wxUSE_UNICODE | |
24834 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24835 | #else | |
24836 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24837 | #endif | |
24838 | } | |
24839 | return resultobj; | |
24840 | fail: | |
24841 | return NULL; | |
24842 | } | |
24843 | ||
24844 | ||
24845 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24846 | PyObject *resultobj; | |
24847 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24848 | wxString *arg2 = 0 ; | |
e811c8ce | 24849 | bool temp2 = False ; |
d14a1e28 RD |
24850 | PyObject * obj0 = 0 ; |
24851 | PyObject * obj1 = 0 ; | |
24852 | char *kwnames[] = { | |
24853 | (char *) "self",(char *) "text", NULL | |
24854 | }; | |
24855 | ||
24856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
24858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24859 | { |
24860 | arg2 = wxString_in_helper(obj1); | |
24861 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24862 | temp2 = True; |
d14a1e28 RD |
24863 | } |
24864 | { | |
24865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24866 | (arg1)->SetText((wxString const &)*arg2); | |
24867 | ||
24868 | wxPyEndAllowThreads(__tstate); | |
24869 | if (PyErr_Occurred()) SWIG_fail; | |
24870 | } | |
24871 | Py_INCREF(Py_None); resultobj = Py_None; | |
24872 | { | |
24873 | if (temp2) | |
24874 | delete arg2; | |
24875 | } | |
24876 | return resultobj; | |
24877 | fail: | |
24878 | { | |
24879 | if (temp2) | |
24880 | delete arg2; | |
24881 | } | |
24882 | return NULL; | |
24883 | } | |
24884 | ||
24885 | ||
24886 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
24887 | PyObject *obj; | |
24888 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24889 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
24890 | Py_INCREF(obj); | |
24891 | return Py_BuildValue((char *)""); | |
24892 | } | |
24893 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24894 | PyObject *resultobj; | |
24895 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24896 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24897 | wxPyTextDataObject *result; | |
e811c8ce | 24898 | bool temp1 = False ; |
d14a1e28 RD |
24899 | PyObject * obj0 = 0 ; |
24900 | char *kwnames[] = { | |
24901 | (char *) "text", NULL | |
24902 | }; | |
24903 | ||
24904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
24905 | if (obj0) { | |
24906 | { | |
24907 | arg1 = wxString_in_helper(obj0); | |
24908 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 24909 | temp1 = True; |
d14a1e28 RD |
24910 | } |
24911 | } | |
24912 | { | |
24913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24914 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
24915 | ||
24916 | wxPyEndAllowThreads(__tstate); | |
24917 | if (PyErr_Occurred()) SWIG_fail; | |
24918 | } | |
15afbcd0 | 24919 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); |
d14a1e28 RD |
24920 | { |
24921 | if (temp1) | |
24922 | delete arg1; | |
24923 | } | |
24924 | return resultobj; | |
24925 | fail: | |
24926 | { | |
24927 | if (temp1) | |
24928 | delete arg1; | |
24929 | } | |
24930 | return NULL; | |
24931 | } | |
24932 | ||
24933 | ||
24934 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24935 | PyObject *resultobj; | |
24936 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
24937 | PyObject *arg2 = (PyObject *) 0 ; | |
24938 | PyObject *arg3 = (PyObject *) 0 ; | |
24939 | PyObject * obj0 = 0 ; | |
24940 | PyObject * obj1 = 0 ; | |
24941 | PyObject * obj2 = 0 ; | |
24942 | char *kwnames[] = { | |
24943 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24944 | }; | |
24945 | ||
24946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
24947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject, |
24948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24949 | arg2 = obj1; |
24950 | arg3 = obj2; | |
24951 | { | |
24952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24953 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24954 | ||
24955 | wxPyEndAllowThreads(__tstate); | |
24956 | if (PyErr_Occurred()) SWIG_fail; | |
24957 | } | |
24958 | Py_INCREF(Py_None); resultobj = Py_None; | |
24959 | return resultobj; | |
24960 | fail: | |
24961 | return NULL; | |
24962 | } | |
24963 | ||
24964 | ||
24965 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
24966 | PyObject *obj; | |
24967 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24968 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
24969 | Py_INCREF(obj); | |
24970 | return Py_BuildValue((char *)""); | |
24971 | } | |
24972 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24973 | PyObject *resultobj; | |
24974 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
24975 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
24976 | wxBitmapDataObject *result; | |
24977 | PyObject * obj0 = 0 ; | |
24978 | char *kwnames[] = { | |
24979 | (char *) "bitmap", NULL | |
24980 | }; | |
24981 | ||
24982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
24983 | if (obj0) { | |
15afbcd0 RD |
24984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
24985 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24986 | SWIG_fail; | |
d14a1e28 | 24987 | if (arg1 == NULL) { |
15afbcd0 RD |
24988 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24989 | SWIG_fail; | |
d14a1e28 RD |
24990 | } |
24991 | } | |
24992 | { | |
24993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24994 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
24995 | ||
24996 | wxPyEndAllowThreads(__tstate); | |
24997 | if (PyErr_Occurred()) SWIG_fail; | |
24998 | } | |
15afbcd0 | 24999 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); |
d14a1e28 RD |
25000 | return resultobj; |
25001 | fail: | |
25002 | return NULL; | |
25003 | } | |
25004 | ||
25005 | ||
25006 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25007 | PyObject *resultobj; | |
25008 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25009 | wxBitmap result; | |
25010 | PyObject * obj0 = 0 ; | |
25011 | char *kwnames[] = { | |
25012 | (char *) "self", NULL | |
25013 | }; | |
25014 | ||
25015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, |
25017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25018 | { |
25019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25020 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
25021 | ||
25022 | wxPyEndAllowThreads(__tstate); | |
25023 | if (PyErr_Occurred()) SWIG_fail; | |
25024 | } | |
25025 | { | |
25026 | wxBitmap * resultptr; | |
25027 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 25028 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
25029 | } |
25030 | return resultobj; | |
25031 | fail: | |
25032 | return NULL; | |
25033 | } | |
25034 | ||
25035 | ||
25036 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25037 | PyObject *resultobj; | |
25038 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25039 | wxBitmap *arg2 = 0 ; | |
25040 | PyObject * obj0 = 0 ; | |
25041 | PyObject * obj1 = 0 ; | |
25042 | char *kwnames[] = { | |
25043 | (char *) "self",(char *) "bitmap", NULL | |
25044 | }; | |
25045 | ||
25046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, |
25048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25049 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
25050 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25051 | SWIG_fail; | |
d14a1e28 | 25052 | if (arg2 == NULL) { |
15afbcd0 RD |
25053 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25054 | SWIG_fail; | |
d14a1e28 RD |
25055 | } |
25056 | { | |
25057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25058 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
25059 | ||
25060 | wxPyEndAllowThreads(__tstate); | |
25061 | if (PyErr_Occurred()) SWIG_fail; | |
25062 | } | |
25063 | Py_INCREF(Py_None); resultobj = Py_None; | |
25064 | return resultobj; | |
25065 | fail: | |
25066 | return NULL; | |
25067 | } | |
25068 | ||
25069 | ||
25070 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25071 | PyObject *obj; | |
25072 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25073 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
25074 | Py_INCREF(obj); | |
25075 | return Py_BuildValue((char *)""); | |
25076 | } | |
25077 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25078 | PyObject *resultobj; | |
25079 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25080 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25081 | wxPyBitmapDataObject *result; | |
25082 | PyObject * obj0 = 0 ; | |
25083 | char *kwnames[] = { | |
25084 | (char *) "bitmap", NULL | |
25085 | }; | |
25086 | ||
25087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
25088 | if (obj0) { | |
15afbcd0 RD |
25089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
25090 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25091 | SWIG_fail; | |
d14a1e28 | 25092 | if (arg1 == NULL) { |
15afbcd0 RD |
25093 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25094 | SWIG_fail; | |
d14a1e28 RD |
25095 | } |
25096 | } | |
25097 | { | |
25098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25099 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
25100 | ||
25101 | wxPyEndAllowThreads(__tstate); | |
25102 | if (PyErr_Occurred()) SWIG_fail; | |
25103 | } | |
15afbcd0 | 25104 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); |
d14a1e28 RD |
25105 | return resultobj; |
25106 | fail: | |
25107 | return NULL; | |
25108 | } | |
25109 | ||
25110 | ||
25111 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25112 | PyObject *resultobj; | |
25113 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
25114 | PyObject *arg2 = (PyObject *) 0 ; | |
25115 | PyObject *arg3 = (PyObject *) 0 ; | |
25116 | PyObject * obj0 = 0 ; | |
25117 | PyObject * obj1 = 0 ; | |
25118 | PyObject * obj2 = 0 ; | |
25119 | char *kwnames[] = { | |
25120 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25121 | }; | |
25122 | ||
25123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject, |
25125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25126 | arg2 = obj1; |
25127 | arg3 = obj2; | |
25128 | { | |
25129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25130 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25131 | ||
25132 | wxPyEndAllowThreads(__tstate); | |
25133 | if (PyErr_Occurred()) SWIG_fail; | |
25134 | } | |
25135 | Py_INCREF(Py_None); resultobj = Py_None; | |
25136 | return resultobj; | |
25137 | fail: | |
25138 | return NULL; | |
25139 | } | |
25140 | ||
25141 | ||
25142 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25143 | PyObject *obj; | |
25144 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25145 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
25146 | Py_INCREF(obj); | |
25147 | return Py_BuildValue((char *)""); | |
25148 | } | |
25149 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25150 | PyObject *resultobj; | |
25151 | wxFileDataObject *result; | |
25152 | char *kwnames[] = { | |
25153 | NULL | |
25154 | }; | |
25155 | ||
25156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
25157 | { | |
25158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25159 | result = (wxFileDataObject *)new wxFileDataObject(); | |
25160 | ||
25161 | wxPyEndAllowThreads(__tstate); | |
25162 | if (PyErr_Occurred()) SWIG_fail; | |
25163 | } | |
15afbcd0 | 25164 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); |
d14a1e28 RD |
25165 | return resultobj; |
25166 | fail: | |
25167 | return NULL; | |
25168 | } | |
25169 | ||
25170 | ||
25171 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25172 | PyObject *resultobj; | |
25173 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25174 | wxArrayString *result; | |
25175 | PyObject * obj0 = 0 ; | |
25176 | char *kwnames[] = { | |
25177 | (char *) "self", NULL | |
25178 | }; | |
25179 | ||
25180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, |
25182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25183 | { |
25184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25185 | { | |
25186 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
25187 | result = (wxArrayString *) &_result_ref; | |
25188 | } | |
25189 | ||
25190 | wxPyEndAllowThreads(__tstate); | |
25191 | if (PyErr_Occurred()) SWIG_fail; | |
25192 | } | |
25193 | { | |
25194 | resultobj = wxArrayString2PyList_helper(*result); | |
25195 | } | |
25196 | return resultobj; | |
25197 | fail: | |
25198 | return NULL; | |
25199 | } | |
25200 | ||
25201 | ||
15afbcd0 RD |
25202 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
25203 | PyObject *resultobj; | |
25204 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25205 | wxString *arg2 = 0 ; | |
25206 | bool temp2 = False ; | |
25207 | PyObject * obj0 = 0 ; | |
25208 | PyObject * obj1 = 0 ; | |
25209 | char *kwnames[] = { | |
25210 | (char *) "self",(char *) "filename", NULL | |
25211 | }; | |
25212 | ||
25213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
25214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25216 | { | |
25217 | arg2 = wxString_in_helper(obj1); | |
25218 | if (arg2 == NULL) SWIG_fail; | |
25219 | temp2 = True; | |
25220 | } | |
25221 | { | |
25222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25223 | (arg1)->AddFile((wxString const &)*arg2); | |
25224 | ||
25225 | wxPyEndAllowThreads(__tstate); | |
25226 | if (PyErr_Occurred()) SWIG_fail; | |
25227 | } | |
25228 | Py_INCREF(Py_None); resultobj = Py_None; | |
25229 | { | |
25230 | if (temp2) | |
25231 | delete arg2; | |
25232 | } | |
25233 | return resultobj; | |
25234 | fail: | |
25235 | { | |
25236 | if (temp2) | |
25237 | delete arg2; | |
25238 | } | |
25239 | return NULL; | |
25240 | } | |
25241 | ||
25242 | ||
d14a1e28 RD |
25243 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { |
25244 | PyObject *obj; | |
25245 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25246 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
25247 | Py_INCREF(obj); | |
25248 | return Py_BuildValue((char *)""); | |
25249 | } | |
25250 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25251 | PyObject *resultobj; | |
25252 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25253 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25254 | wxCustomDataObject *result; | |
25255 | PyObject * obj0 = 0 ; | |
25256 | char *kwnames[] = { | |
25257 | (char *) "format", NULL | |
25258 | }; | |
25259 | ||
25260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
25261 | if (obj0) { | |
15afbcd0 RD |
25262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
25263 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25264 | SWIG_fail; | |
d14a1e28 | 25265 | if (arg1 == NULL) { |
15afbcd0 RD |
25266 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25267 | SWIG_fail; | |
d14a1e28 RD |
25268 | } |
25269 | } | |
25270 | { | |
25271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25272 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
25273 | ||
25274 | wxPyEndAllowThreads(__tstate); | |
25275 | if (PyErr_Occurred()) SWIG_fail; | |
25276 | } | |
15afbcd0 | 25277 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); |
d14a1e28 RD |
25278 | return resultobj; |
25279 | fail: | |
25280 | return NULL; | |
25281 | } | |
25282 | ||
25283 | ||
25284 | static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25285 | PyObject *resultobj; | |
25286 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25287 | PyObject *arg2 = (PyObject *) 0 ; | |
25288 | PyObject * obj0 = 0 ; | |
25289 | PyObject * obj1 = 0 ; | |
25290 | char *kwnames[] = { | |
25291 | (char *) "self",(char *) "data", NULL | |
25292 | }; | |
25293 | ||
25294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25297 | arg2 = obj1; |
25298 | { | |
25299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25300 | wxCustomDataObject_TakeData(arg1,arg2); | |
25301 | ||
25302 | wxPyEndAllowThreads(__tstate); | |
25303 | if (PyErr_Occurred()) SWIG_fail; | |
25304 | } | |
25305 | Py_INCREF(Py_None); resultobj = Py_None; | |
25306 | return resultobj; | |
25307 | fail: | |
25308 | return NULL; | |
25309 | } | |
25310 | ||
25311 | ||
25312 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25313 | PyObject *resultobj; | |
25314 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25315 | PyObject *arg2 = (PyObject *) 0 ; | |
25316 | bool result; | |
25317 | PyObject * obj0 = 0 ; | |
25318 | PyObject * obj1 = 0 ; | |
25319 | char *kwnames[] = { | |
25320 | (char *) "self",(char *) "data", NULL | |
25321 | }; | |
25322 | ||
25323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25326 | arg2 = obj1; |
25327 | { | |
25328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25329 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
25330 | ||
25331 | wxPyEndAllowThreads(__tstate); | |
25332 | if (PyErr_Occurred()) SWIG_fail; | |
25333 | } | |
4f89f6a3 RD |
25334 | { |
25335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25336 | } | |
d14a1e28 RD |
25337 | return resultobj; |
25338 | fail: | |
25339 | return NULL; | |
25340 | } | |
25341 | ||
25342 | ||
25343 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25344 | PyObject *resultobj; | |
25345 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25346 | size_t result; | |
25347 | PyObject * obj0 = 0 ; | |
25348 | char *kwnames[] = { | |
25349 | (char *) "self", NULL | |
25350 | }; | |
25351 | ||
25352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25355 | { |
25356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25357 | result = (size_t)(arg1)->GetSize(); | |
25358 | ||
25359 | wxPyEndAllowThreads(__tstate); | |
25360 | if (PyErr_Occurred()) SWIG_fail; | |
25361 | } | |
15afbcd0 | 25362 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
25363 | return resultobj; |
25364 | fail: | |
25365 | return NULL; | |
25366 | } | |
25367 | ||
25368 | ||
25369 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25370 | PyObject *resultobj; | |
25371 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25372 | PyObject *result; | |
25373 | PyObject * obj0 = 0 ; | |
25374 | char *kwnames[] = { | |
25375 | (char *) "self", NULL | |
25376 | }; | |
25377 | ||
25378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25381 | { |
25382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25383 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
25384 | ||
25385 | wxPyEndAllowThreads(__tstate); | |
25386 | if (PyErr_Occurred()) SWIG_fail; | |
25387 | } | |
25388 | resultobj = result; | |
25389 | return resultobj; | |
25390 | fail: | |
25391 | return NULL; | |
25392 | } | |
25393 | ||
25394 | ||
25395 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
25396 | PyObject *obj; | |
25397 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25398 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
25399 | Py_INCREF(obj); | |
25400 | return Py_BuildValue((char *)""); | |
25401 | } | |
25402 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25403 | PyObject *resultobj; | |
25404 | wxURLDataObject *result; | |
25405 | char *kwnames[] = { | |
25406 | NULL | |
25407 | }; | |
25408 | ||
25409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
25410 | { | |
25411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25412 | result = (wxURLDataObject *)new wxURLDataObject(); | |
25413 | ||
25414 | wxPyEndAllowThreads(__tstate); | |
25415 | if (PyErr_Occurred()) SWIG_fail; | |
25416 | } | |
15afbcd0 | 25417 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); |
d14a1e28 RD |
25418 | return resultobj; |
25419 | fail: | |
25420 | return NULL; | |
25421 | } | |
25422 | ||
25423 | ||
25424 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25425 | PyObject *resultobj; | |
25426 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25427 | wxString result; | |
25428 | PyObject * obj0 = 0 ; | |
25429 | char *kwnames[] = { | |
25430 | (char *) "self", NULL | |
25431 | }; | |
25432 | ||
25433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, |
25435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25436 | { |
25437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25438 | result = (arg1)->GetURL(); | |
25439 | ||
25440 | wxPyEndAllowThreads(__tstate); | |
25441 | if (PyErr_Occurred()) SWIG_fail; | |
25442 | } | |
25443 | { | |
25444 | #if wxUSE_UNICODE | |
25445 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25446 | #else | |
25447 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25448 | #endif | |
25449 | } | |
25450 | return resultobj; | |
25451 | fail: | |
25452 | return NULL; | |
25453 | } | |
25454 | ||
25455 | ||
25456 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25457 | PyObject *resultobj; | |
25458 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25459 | wxString *arg2 = 0 ; | |
e811c8ce | 25460 | bool temp2 = False ; |
d14a1e28 RD |
25461 | PyObject * obj0 = 0 ; |
25462 | PyObject * obj1 = 0 ; | |
25463 | char *kwnames[] = { | |
25464 | (char *) "self",(char *) "url", NULL | |
25465 | }; | |
25466 | ||
25467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, |
25469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25470 | { |
25471 | arg2 = wxString_in_helper(obj1); | |
25472 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 25473 | temp2 = True; |
d14a1e28 RD |
25474 | } |
25475 | { | |
25476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25477 | (arg1)->SetURL((wxString const &)*arg2); | |
25478 | ||
25479 | wxPyEndAllowThreads(__tstate); | |
25480 | if (PyErr_Occurred()) SWIG_fail; | |
25481 | } | |
25482 | Py_INCREF(Py_None); resultobj = Py_None; | |
25483 | { | |
25484 | if (temp2) | |
25485 | delete arg2; | |
25486 | } | |
25487 | return resultobj; | |
25488 | fail: | |
25489 | { | |
25490 | if (temp2) | |
25491 | delete arg2; | |
25492 | } | |
25493 | return NULL; | |
25494 | } | |
25495 | ||
25496 | ||
25497 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
25498 | PyObject *obj; | |
25499 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25500 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
25501 | Py_INCREF(obj); | |
25502 | return Py_BuildValue((char *)""); | |
25503 | } | |
25504 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25505 | PyObject *resultobj; | |
25506 | wxMetafileDataObject *result; | |
25507 | char *kwnames[] = { | |
25508 | NULL | |
25509 | }; | |
25510 | ||
25511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
25512 | { | |
25513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25514 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
25515 | ||
25516 | wxPyEndAllowThreads(__tstate); | |
25517 | if (PyErr_Occurred()) SWIG_fail; | |
25518 | } | |
15afbcd0 | 25519 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); |
d14a1e28 RD |
25520 | return resultobj; |
25521 | fail: | |
25522 | return NULL; | |
25523 | } | |
25524 | ||
25525 | ||
25526 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { | |
25527 | PyObject *obj; | |
25528 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25529 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
25530 | Py_INCREF(obj); | |
25531 | return Py_BuildValue((char *)""); | |
25532 | } | |
25533 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25534 | PyObject *resultobj; | |
25535 | int arg1 ; | |
25536 | bool result; | |
994141e6 | 25537 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
25538 | char *kwnames[] = { |
25539 | (char *) "res", NULL | |
25540 | }; | |
25541 | ||
994141e6 | 25542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
25543 | arg1 = (wxDragResult) SWIG_AsInt(obj0); |
25544 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25545 | { |
25546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25547 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
25548 | ||
25549 | wxPyEndAllowThreads(__tstate); | |
25550 | if (PyErr_Occurred()) SWIG_fail; | |
25551 | } | |
4f89f6a3 RD |
25552 | { |
25553 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25554 | } | |
d14a1e28 RD |
25555 | return resultobj; |
25556 | fail: | |
25557 | return NULL; | |
25558 | } | |
25559 | ||
25560 | ||
25561 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25562 | PyObject *resultobj; | |
d1e20054 | 25563 | wxWindow *arg1 = (wxWindow *) 0 ; |
d14a1e28 RD |
25564 | wxIcon const &arg2_defvalue = wxNullIcon ; |
25565 | wxIcon *arg2 = (wxIcon *) &arg2_defvalue ; | |
25566 | wxIcon const &arg3_defvalue = wxNullIcon ; | |
25567 | wxIcon *arg3 = (wxIcon *) &arg3_defvalue ; | |
25568 | wxIcon const &arg4_defvalue = wxNullIcon ; | |
25569 | wxIcon *arg4 = (wxIcon *) &arg4_defvalue ; | |
25570 | wxPyDropSource *result; | |
25571 | PyObject * obj0 = 0 ; | |
25572 | PyObject * obj1 = 0 ; | |
25573 | PyObject * obj2 = 0 ; | |
25574 | PyObject * obj3 = 0 ; | |
25575 | char *kwnames[] = { | |
25576 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
25577 | }; | |
25578 | ||
d1e20054 | 25579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
25580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 25582 | if (obj1) { |
15afbcd0 RD |
25583 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, |
25584 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25585 | SWIG_fail; | |
d14a1e28 | 25586 | if (arg2 == NULL) { |
15afbcd0 RD |
25587 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25588 | SWIG_fail; | |
d14a1e28 RD |
25589 | } |
25590 | } | |
25591 | if (obj2) { | |
15afbcd0 RD |
25592 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIcon, |
25593 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25594 | SWIG_fail; | |
d14a1e28 | 25595 | if (arg3 == NULL) { |
15afbcd0 RD |
25596 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25597 | SWIG_fail; | |
d14a1e28 RD |
25598 | } |
25599 | } | |
25600 | if (obj3) { | |
15afbcd0 RD |
25601 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxIcon, |
25602 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25603 | SWIG_fail; | |
d14a1e28 | 25604 | if (arg4 == NULL) { |
15afbcd0 RD |
25605 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25606 | SWIG_fail; | |
d14a1e28 RD |
25607 | } |
25608 | } | |
25609 | { | |
25610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25611 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4); | |
25612 | ||
25613 | wxPyEndAllowThreads(__tstate); | |
25614 | if (PyErr_Occurred()) SWIG_fail; | |
25615 | } | |
15afbcd0 | 25616 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); |
d14a1e28 RD |
25617 | return resultobj; |
25618 | fail: | |
25619 | return NULL; | |
25620 | } | |
25621 | ||
25622 | ||
25623 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25624 | PyObject *resultobj; | |
25625 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25626 | PyObject *arg2 = (PyObject *) 0 ; | |
25627 | PyObject *arg3 = (PyObject *) 0 ; | |
25628 | int arg4 ; | |
25629 | PyObject * obj0 = 0 ; | |
25630 | PyObject * obj1 = 0 ; | |
25631 | PyObject * obj2 = 0 ; | |
994141e6 | 25632 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
25633 | char *kwnames[] = { |
25634 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
25635 | }; | |
25636 | ||
994141e6 | 25637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
25638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25640 | arg2 = obj1; |
25641 | arg3 = obj2; | |
15afbcd0 RD |
25642 | arg4 = (int) SWIG_AsInt(obj3); |
25643 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25644 | { |
25645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25646 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
25647 | ||
25648 | wxPyEndAllowThreads(__tstate); | |
25649 | if (PyErr_Occurred()) SWIG_fail; | |
25650 | } | |
25651 | Py_INCREF(Py_None); resultobj = Py_None; | |
25652 | return resultobj; | |
25653 | fail: | |
25654 | return NULL; | |
25655 | } | |
25656 | ||
25657 | ||
25658 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25659 | PyObject *resultobj; | |
25660 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25661 | PyObject * obj0 = 0 ; | |
25662 | char *kwnames[] = { | |
25663 | (char *) "self", NULL | |
25664 | }; | |
25665 | ||
25666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25669 | { |
25670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25671 | delete arg1; | |
25672 | ||
25673 | wxPyEndAllowThreads(__tstate); | |
25674 | if (PyErr_Occurred()) SWIG_fail; | |
25675 | } | |
25676 | Py_INCREF(Py_None); resultobj = Py_None; | |
25677 | return resultobj; | |
25678 | fail: | |
25679 | return NULL; | |
25680 | } | |
25681 | ||
25682 | ||
25683 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25684 | PyObject *resultobj; | |
25685 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25686 | wxDataObject *arg2 = 0 ; | |
25687 | PyObject * obj0 = 0 ; | |
25688 | PyObject * obj1 = 0 ; | |
25689 | char *kwnames[] = { | |
25690 | (char *) "self",(char *) "data", NULL | |
25691 | }; | |
25692 | ||
25693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25696 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
25697 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25698 | SWIG_fail; | |
d14a1e28 | 25699 | if (arg2 == NULL) { |
15afbcd0 RD |
25700 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25701 | SWIG_fail; | |
d14a1e28 RD |
25702 | } |
25703 | { | |
25704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25705 | (arg1)->SetData(*arg2); | |
25706 | ||
25707 | wxPyEndAllowThreads(__tstate); | |
25708 | if (PyErr_Occurred()) SWIG_fail; | |
25709 | } | |
25710 | Py_INCREF(Py_None); resultobj = Py_None; | |
25711 | return resultobj; | |
25712 | fail: | |
25713 | return NULL; | |
25714 | } | |
25715 | ||
25716 | ||
25717 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25718 | PyObject *resultobj; | |
25719 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25720 | wxDataObject *result; | |
25721 | PyObject * obj0 = 0 ; | |
25722 | char *kwnames[] = { | |
25723 | (char *) "self", NULL | |
25724 | }; | |
25725 | ||
25726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25729 | { |
25730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25731 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
25732 | ||
25733 | wxPyEndAllowThreads(__tstate); | |
25734 | if (PyErr_Occurred()) SWIG_fail; | |
25735 | } | |
15afbcd0 | 25736 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); |
d14a1e28 RD |
25737 | return resultobj; |
25738 | fail: | |
25739 | return NULL; | |
25740 | } | |
25741 | ||
25742 | ||
25743 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25744 | PyObject *resultobj; | |
25745 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25746 | int arg2 ; | |
25747 | wxCursor *arg3 = 0 ; | |
25748 | PyObject * obj0 = 0 ; | |
994141e6 | 25749 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25750 | PyObject * obj2 = 0 ; |
25751 | char *kwnames[] = { | |
25752 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
25753 | }; | |
25754 | ||
994141e6 | 25755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
25756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25758 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
25759 | if (PyErr_Occurred()) SWIG_fail; | |
25760 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
25761 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25762 | SWIG_fail; | |
d14a1e28 | 25763 | if (arg3 == NULL) { |
15afbcd0 RD |
25764 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25765 | SWIG_fail; | |
d14a1e28 RD |
25766 | } |
25767 | { | |
25768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25769 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
25770 | ||
25771 | wxPyEndAllowThreads(__tstate); | |
25772 | if (PyErr_Occurred()) SWIG_fail; | |
25773 | } | |
25774 | Py_INCREF(Py_None); resultobj = Py_None; | |
25775 | return resultobj; | |
25776 | fail: | |
25777 | return NULL; | |
25778 | } | |
25779 | ||
25780 | ||
25781 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25782 | PyObject *resultobj; | |
25783 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25784 | int arg2 = (int) wxDrag_CopyOnly ; | |
25785 | int result; | |
25786 | PyObject * obj0 = 0 ; | |
994141e6 | 25787 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25788 | char *kwnames[] = { |
25789 | (char *) "self",(char *) "flags", NULL | |
25790 | }; | |
25791 | ||
994141e6 | 25792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
25793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 25795 | if (obj1) { |
15afbcd0 RD |
25796 | arg2 = (int) SWIG_AsInt(obj1); |
25797 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25798 | } |
d14a1e28 RD |
25799 | { |
25800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25801 | result = (int)(arg1)->DoDragDrop(arg2); | |
25802 | ||
25803 | wxPyEndAllowThreads(__tstate); | |
25804 | if (PyErr_Occurred()) SWIG_fail; | |
25805 | } | |
15afbcd0 | 25806 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25807 | return resultobj; |
25808 | fail: | |
25809 | return NULL; | |
25810 | } | |
25811 | ||
25812 | ||
25813 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25814 | PyObject *resultobj; | |
25815 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25816 | int arg2 ; | |
25817 | bool result; | |
25818 | PyObject * obj0 = 0 ; | |
994141e6 | 25819 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25820 | char *kwnames[] = { |
25821 | (char *) "self",(char *) "effect", NULL | |
25822 | }; | |
25823 | ||
994141e6 | 25824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
25825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25827 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
25828 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25829 | { |
25830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25831 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
25832 | ||
25833 | wxPyEndAllowThreads(__tstate); | |
25834 | if (PyErr_Occurred()) SWIG_fail; | |
25835 | } | |
4f89f6a3 RD |
25836 | { |
25837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25838 | } | |
d14a1e28 RD |
25839 | return resultobj; |
25840 | fail: | |
25841 | return NULL; | |
25842 | } | |
25843 | ||
25844 | ||
25845 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
25846 | PyObject *obj; | |
25847 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25848 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
25849 | Py_INCREF(obj); | |
25850 | return Py_BuildValue((char *)""); | |
25851 | } | |
15afbcd0 | 25852 | static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25853 | PyObject *resultobj; |
25854 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
25855 | wxPyDropTarget *result; | |
25856 | PyObject * obj0 = 0 ; | |
25857 | char *kwnames[] = { | |
25858 | (char *) "dataObject", NULL | |
25859 | }; | |
25860 | ||
15afbcd0 | 25861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; |
d14a1e28 | 25862 | if (obj0) { |
15afbcd0 RD |
25863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
25864 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
25865 | } |
25866 | { | |
25867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25868 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
25869 | ||
25870 | wxPyEndAllowThreads(__tstate); | |
25871 | if (PyErr_Occurred()) SWIG_fail; | |
25872 | } | |
15afbcd0 | 25873 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); |
d14a1e28 RD |
25874 | return resultobj; |
25875 | fail: | |
25876 | return NULL; | |
25877 | } | |
25878 | ||
25879 | ||
25880 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25881 | PyObject *resultobj; | |
25882 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25883 | PyObject *arg2 = (PyObject *) 0 ; | |
25884 | PyObject *arg3 = (PyObject *) 0 ; | |
25885 | PyObject * obj0 = 0 ; | |
25886 | PyObject * obj1 = 0 ; | |
25887 | PyObject * obj2 = 0 ; | |
25888 | char *kwnames[] = { | |
25889 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25890 | }; | |
25891 | ||
25892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
25894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25895 | arg2 = obj1; |
25896 | arg3 = obj2; | |
25897 | { | |
25898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25899 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25900 | ||
25901 | wxPyEndAllowThreads(__tstate); | |
25902 | if (PyErr_Occurred()) SWIG_fail; | |
25903 | } | |
25904 | Py_INCREF(Py_None); resultobj = Py_None; | |
25905 | return resultobj; | |
25906 | fail: | |
25907 | return NULL; | |
25908 | } | |
25909 | ||
25910 | ||
25911 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25912 | PyObject *resultobj; | |
25913 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25914 | PyObject * obj0 = 0 ; | |
25915 | char *kwnames[] = { | |
25916 | (char *) "self", NULL | |
25917 | }; | |
25918 | ||
25919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
25921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25922 | { |
25923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25924 | delete arg1; | |
25925 | ||
25926 | wxPyEndAllowThreads(__tstate); | |
25927 | if (PyErr_Occurred()) SWIG_fail; | |
25928 | } | |
25929 | Py_INCREF(Py_None); resultobj = Py_None; | |
25930 | return resultobj; | |
25931 | fail: | |
25932 | return NULL; | |
25933 | } | |
25934 | ||
25935 | ||
25936 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25937 | PyObject *resultobj; | |
25938 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25939 | wxDataObject *result; | |
25940 | PyObject * obj0 = 0 ; | |
25941 | char *kwnames[] = { | |
25942 | (char *) "self", NULL | |
25943 | }; | |
25944 | ||
25945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
25947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25948 | { |
25949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25950 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
25951 | ||
25952 | wxPyEndAllowThreads(__tstate); | |
25953 | if (PyErr_Occurred()) SWIG_fail; | |
25954 | } | |
15afbcd0 | 25955 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); |
d14a1e28 RD |
25956 | return resultobj; |
25957 | fail: | |
25958 | return NULL; | |
25959 | } | |
25960 | ||
25961 | ||
25962 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25963 | PyObject *resultobj; | |
25964 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25965 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
25966 | PyObject * obj0 = 0 ; | |
25967 | PyObject * obj1 = 0 ; | |
25968 | char *kwnames[] = { | |
25969 | (char *) "self",(char *) "dataObject", NULL | |
25970 | }; | |
25971 | ||
25972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
25974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25975 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
25976 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
25977 | { |
25978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25979 | (arg1)->SetDataObject(arg2); | |
25980 | ||
25981 | wxPyEndAllowThreads(__tstate); | |
25982 | if (PyErr_Occurred()) SWIG_fail; | |
25983 | } | |
25984 | Py_INCREF(Py_None); resultobj = Py_None; | |
25985 | return resultobj; | |
25986 | fail: | |
25987 | return NULL; | |
25988 | } | |
25989 | ||
25990 | ||
25991 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25992 | PyObject *resultobj; | |
25993 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
25994 | int arg2 ; |
25995 | int arg3 ; | |
d14a1e28 RD |
25996 | int arg4 ; |
25997 | int result; | |
25998 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25999 | PyObject * obj1 = 0 ; |
26000 | PyObject * obj2 = 0 ; | |
26001 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26002 | char *kwnames[] = { |
26003 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26004 | }; | |
26005 | ||
994141e6 | 26006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26009 | arg2 = (int) SWIG_AsInt(obj1); | |
26010 | if (PyErr_Occurred()) SWIG_fail; | |
26011 | arg3 = (int) SWIG_AsInt(obj2); | |
26012 | if (PyErr_Occurred()) SWIG_fail; | |
26013 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26014 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26015 | { |
26016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26017 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26018 | ||
26019 | wxPyEndAllowThreads(__tstate); | |
26020 | if (PyErr_Occurred()) SWIG_fail; | |
26021 | } | |
15afbcd0 | 26022 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26023 | return resultobj; |
26024 | fail: | |
26025 | return NULL; | |
26026 | } | |
26027 | ||
26028 | ||
26029 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26030 | PyObject *resultobj; | |
26031 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
26032 | int arg2 ; |
26033 | int arg3 ; | |
d14a1e28 RD |
26034 | int arg4 ; |
26035 | int result; | |
26036 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26037 | PyObject * obj1 = 0 ; |
26038 | PyObject * obj2 = 0 ; | |
26039 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26040 | char *kwnames[] = { |
26041 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26042 | }; | |
26043 | ||
994141e6 | 26044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26047 | arg2 = (int) SWIG_AsInt(obj1); | |
26048 | if (PyErr_Occurred()) SWIG_fail; | |
26049 | arg3 = (int) SWIG_AsInt(obj2); | |
26050 | if (PyErr_Occurred()) SWIG_fail; | |
26051 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26052 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26053 | { |
26054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26055 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26056 | ||
26057 | wxPyEndAllowThreads(__tstate); | |
26058 | if (PyErr_Occurred()) SWIG_fail; | |
26059 | } | |
15afbcd0 | 26060 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26061 | return resultobj; |
26062 | fail: | |
26063 | return NULL; | |
26064 | } | |
26065 | ||
26066 | ||
26067 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26068 | PyObject *resultobj; | |
26069 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26070 | PyObject * obj0 = 0 ; | |
26071 | char *kwnames[] = { | |
26072 | (char *) "self", NULL | |
26073 | }; | |
26074 | ||
26075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26078 | { |
26079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26080 | (arg1)->base_OnLeave(); | |
26081 | ||
26082 | wxPyEndAllowThreads(__tstate); | |
26083 | if (PyErr_Occurred()) SWIG_fail; | |
26084 | } | |
26085 | Py_INCREF(Py_None); resultobj = Py_None; | |
26086 | return resultobj; | |
26087 | fail: | |
26088 | return NULL; | |
26089 | } | |
26090 | ||
26091 | ||
26092 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26093 | PyObject *resultobj; | |
26094 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
26095 | int arg2 ; |
26096 | int arg3 ; | |
d14a1e28 RD |
26097 | bool result; |
26098 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26099 | PyObject * obj1 = 0 ; |
26100 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26101 | char *kwnames[] = { |
26102 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26103 | }; | |
26104 | ||
994141e6 | 26105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26108 | arg2 = (int) SWIG_AsInt(obj1); | |
26109 | if (PyErr_Occurred()) SWIG_fail; | |
26110 | arg3 = (int) SWIG_AsInt(obj2); | |
26111 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26112 | { |
26113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26114 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26115 | ||
26116 | wxPyEndAllowThreads(__tstate); | |
26117 | if (PyErr_Occurred()) SWIG_fail; | |
26118 | } | |
4f89f6a3 RD |
26119 | { |
26120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26121 | } | |
d14a1e28 RD |
26122 | return resultobj; |
26123 | fail: | |
26124 | return NULL; | |
26125 | } | |
26126 | ||
26127 | ||
26128 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26129 | PyObject *resultobj; | |
26130 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26131 | bool result; | |
26132 | PyObject * obj0 = 0 ; | |
26133 | char *kwnames[] = { | |
26134 | (char *) "self", NULL | |
26135 | }; | |
26136 | ||
26137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26140 | { |
26141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26142 | result = (bool)(arg1)->GetData(); | |
26143 | ||
26144 | wxPyEndAllowThreads(__tstate); | |
26145 | if (PyErr_Occurred()) SWIG_fail; | |
26146 | } | |
4f89f6a3 RD |
26147 | { |
26148 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26149 | } | |
d14a1e28 RD |
26150 | return resultobj; |
26151 | fail: | |
26152 | return NULL; | |
26153 | } | |
26154 | ||
26155 | ||
26156 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
26157 | PyObject *obj; | |
26158 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26159 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
26160 | Py_INCREF(obj); | |
26161 | return Py_BuildValue((char *)""); | |
26162 | } | |
26163 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26164 | PyObject *resultobj; | |
26165 | wxPyTextDropTarget *result; | |
26166 | char *kwnames[] = { | |
26167 | NULL | |
26168 | }; | |
26169 | ||
26170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
26171 | { | |
26172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26173 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
26174 | ||
26175 | wxPyEndAllowThreads(__tstate); | |
26176 | if (PyErr_Occurred()) SWIG_fail; | |
26177 | } | |
15afbcd0 | 26178 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); |
d14a1e28 RD |
26179 | return resultobj; |
26180 | fail: | |
26181 | return NULL; | |
26182 | } | |
26183 | ||
26184 | ||
26185 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26186 | PyObject *resultobj; | |
26187 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26188 | PyObject *arg2 = (PyObject *) 0 ; | |
26189 | PyObject *arg3 = (PyObject *) 0 ; | |
26190 | PyObject * obj0 = 0 ; | |
26191 | PyObject * obj1 = 0 ; | |
26192 | PyObject * obj2 = 0 ; | |
26193 | char *kwnames[] = { | |
26194 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26195 | }; | |
26196 | ||
26197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26200 | arg2 = obj1; |
26201 | arg3 = obj2; | |
26202 | { | |
26203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26204 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26205 | ||
26206 | wxPyEndAllowThreads(__tstate); | |
26207 | if (PyErr_Occurred()) SWIG_fail; | |
26208 | } | |
26209 | Py_INCREF(Py_None); resultobj = Py_None; | |
26210 | return resultobj; | |
26211 | fail: | |
26212 | return NULL; | |
26213 | } | |
26214 | ||
26215 | ||
26216 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26217 | PyObject *resultobj; | |
26218 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26219 | int arg2 ; |
26220 | int arg3 ; | |
d14a1e28 RD |
26221 | int arg4 ; |
26222 | int result; | |
26223 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26224 | PyObject * obj1 = 0 ; |
26225 | PyObject * obj2 = 0 ; | |
26226 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26227 | char *kwnames[] = { |
26228 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26229 | }; | |
26230 | ||
994141e6 | 26231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26234 | arg2 = (int) SWIG_AsInt(obj1); | |
26235 | if (PyErr_Occurred()) SWIG_fail; | |
26236 | arg3 = (int) SWIG_AsInt(obj2); | |
26237 | if (PyErr_Occurred()) SWIG_fail; | |
26238 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26239 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26240 | { |
26241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26242 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26243 | ||
26244 | wxPyEndAllowThreads(__tstate); | |
26245 | if (PyErr_Occurred()) SWIG_fail; | |
26246 | } | |
15afbcd0 | 26247 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26248 | return resultobj; |
26249 | fail: | |
26250 | return NULL; | |
26251 | } | |
26252 | ||
26253 | ||
26254 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26255 | PyObject *resultobj; | |
26256 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26257 | int arg2 ; |
26258 | int arg3 ; | |
d14a1e28 RD |
26259 | int arg4 ; |
26260 | int result; | |
26261 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26262 | PyObject * obj1 = 0 ; |
26263 | PyObject * obj2 = 0 ; | |
26264 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26265 | char *kwnames[] = { |
26266 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26267 | }; | |
26268 | ||
994141e6 | 26269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26272 | arg2 = (int) SWIG_AsInt(obj1); | |
26273 | if (PyErr_Occurred()) SWIG_fail; | |
26274 | arg3 = (int) SWIG_AsInt(obj2); | |
26275 | if (PyErr_Occurred()) SWIG_fail; | |
26276 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26277 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26278 | { |
26279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26280 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26281 | ||
26282 | wxPyEndAllowThreads(__tstate); | |
26283 | if (PyErr_Occurred()) SWIG_fail; | |
26284 | } | |
15afbcd0 | 26285 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26286 | return resultobj; |
26287 | fail: | |
26288 | return NULL; | |
26289 | } | |
26290 | ||
26291 | ||
26292 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26293 | PyObject *resultobj; | |
26294 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26295 | PyObject * obj0 = 0 ; | |
26296 | char *kwnames[] = { | |
26297 | (char *) "self", NULL | |
26298 | }; | |
26299 | ||
26300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26303 | { |
26304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26305 | (arg1)->base_OnLeave(); | |
26306 | ||
26307 | wxPyEndAllowThreads(__tstate); | |
26308 | if (PyErr_Occurred()) SWIG_fail; | |
26309 | } | |
26310 | Py_INCREF(Py_None); resultobj = Py_None; | |
26311 | return resultobj; | |
26312 | fail: | |
26313 | return NULL; | |
26314 | } | |
26315 | ||
26316 | ||
26317 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26318 | PyObject *resultobj; | |
26319 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26320 | int arg2 ; |
26321 | int arg3 ; | |
d14a1e28 RD |
26322 | bool result; |
26323 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26324 | PyObject * obj1 = 0 ; |
26325 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26326 | char *kwnames[] = { |
26327 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26328 | }; | |
26329 | ||
994141e6 | 26330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26333 | arg2 = (int) SWIG_AsInt(obj1); | |
26334 | if (PyErr_Occurred()) SWIG_fail; | |
26335 | arg3 = (int) SWIG_AsInt(obj2); | |
26336 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26337 | { |
26338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26339 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26340 | ||
26341 | wxPyEndAllowThreads(__tstate); | |
26342 | if (PyErr_Occurred()) SWIG_fail; | |
26343 | } | |
4f89f6a3 RD |
26344 | { |
26345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26346 | } | |
d14a1e28 RD |
26347 | return resultobj; |
26348 | fail: | |
26349 | return NULL; | |
26350 | } | |
26351 | ||
26352 | ||
26353 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26354 | PyObject *resultobj; | |
26355 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26356 | int arg2 ; |
26357 | int arg3 ; | |
d14a1e28 RD |
26358 | int arg4 ; |
26359 | int result; | |
26360 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26361 | PyObject * obj1 = 0 ; |
26362 | PyObject * obj2 = 0 ; | |
26363 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26364 | char *kwnames[] = { |
26365 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26366 | }; | |
26367 | ||
994141e6 | 26368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26371 | arg2 = (int) SWIG_AsInt(obj1); | |
26372 | if (PyErr_Occurred()) SWIG_fail; | |
26373 | arg3 = (int) SWIG_AsInt(obj2); | |
26374 | if (PyErr_Occurred()) SWIG_fail; | |
26375 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26376 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26377 | { |
26378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26379 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26380 | ||
26381 | wxPyEndAllowThreads(__tstate); | |
26382 | if (PyErr_Occurred()) SWIG_fail; | |
26383 | } | |
15afbcd0 | 26384 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26385 | return resultobj; |
26386 | fail: | |
26387 | return NULL; | |
26388 | } | |
26389 | ||
26390 | ||
26391 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26392 | PyObject *obj; | |
26393 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26394 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
26395 | Py_INCREF(obj); | |
26396 | return Py_BuildValue((char *)""); | |
26397 | } | |
26398 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26399 | PyObject *resultobj; | |
26400 | wxPyFileDropTarget *result; | |
26401 | char *kwnames[] = { | |
26402 | NULL | |
26403 | }; | |
26404 | ||
26405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
26406 | { | |
26407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26408 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
26409 | ||
26410 | wxPyEndAllowThreads(__tstate); | |
26411 | if (PyErr_Occurred()) SWIG_fail; | |
26412 | } | |
15afbcd0 | 26413 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); |
d14a1e28 RD |
26414 | return resultobj; |
26415 | fail: | |
26416 | return NULL; | |
26417 | } | |
26418 | ||
26419 | ||
26420 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26421 | PyObject *resultobj; | |
26422 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26423 | PyObject *arg2 = (PyObject *) 0 ; | |
26424 | PyObject *arg3 = (PyObject *) 0 ; | |
26425 | PyObject * obj0 = 0 ; | |
26426 | PyObject * obj1 = 0 ; | |
26427 | PyObject * obj2 = 0 ; | |
26428 | char *kwnames[] = { | |
26429 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26430 | }; | |
26431 | ||
26432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26435 | arg2 = obj1; |
26436 | arg3 = obj2; | |
26437 | { | |
26438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26439 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26440 | ||
26441 | wxPyEndAllowThreads(__tstate); | |
26442 | if (PyErr_Occurred()) SWIG_fail; | |
26443 | } | |
26444 | Py_INCREF(Py_None); resultobj = Py_None; | |
26445 | return resultobj; | |
26446 | fail: | |
26447 | return NULL; | |
26448 | } | |
26449 | ||
26450 | ||
26451 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26452 | PyObject *resultobj; | |
26453 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26454 | int arg2 ; |
26455 | int arg3 ; | |
d14a1e28 RD |
26456 | int arg4 ; |
26457 | int result; | |
26458 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26459 | PyObject * obj1 = 0 ; |
26460 | PyObject * obj2 = 0 ; | |
26461 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26462 | char *kwnames[] = { |
26463 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26464 | }; | |
26465 | ||
994141e6 | 26466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26469 | arg2 = (int) SWIG_AsInt(obj1); | |
26470 | if (PyErr_Occurred()) SWIG_fail; | |
26471 | arg3 = (int) SWIG_AsInt(obj2); | |
26472 | if (PyErr_Occurred()) SWIG_fail; | |
26473 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26474 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26475 | { |
26476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26477 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26478 | ||
26479 | wxPyEndAllowThreads(__tstate); | |
26480 | if (PyErr_Occurred()) SWIG_fail; | |
26481 | } | |
15afbcd0 | 26482 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26483 | return resultobj; |
26484 | fail: | |
26485 | return NULL; | |
26486 | } | |
26487 | ||
26488 | ||
26489 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26490 | PyObject *resultobj; | |
26491 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26492 | int arg2 ; |
26493 | int arg3 ; | |
d14a1e28 RD |
26494 | int arg4 ; |
26495 | int result; | |
26496 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26497 | PyObject * obj1 = 0 ; |
26498 | PyObject * obj2 = 0 ; | |
26499 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26500 | char *kwnames[] = { |
26501 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26502 | }; | |
26503 | ||
994141e6 | 26504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26507 | arg2 = (int) SWIG_AsInt(obj1); | |
26508 | if (PyErr_Occurred()) SWIG_fail; | |
26509 | arg3 = (int) SWIG_AsInt(obj2); | |
26510 | if (PyErr_Occurred()) SWIG_fail; | |
26511 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26512 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26513 | { |
26514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26515 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26516 | ||
26517 | wxPyEndAllowThreads(__tstate); | |
26518 | if (PyErr_Occurred()) SWIG_fail; | |
26519 | } | |
15afbcd0 | 26520 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26521 | return resultobj; |
26522 | fail: | |
26523 | return NULL; | |
26524 | } | |
26525 | ||
26526 | ||
26527 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26528 | PyObject *resultobj; | |
26529 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26530 | PyObject * obj0 = 0 ; | |
26531 | char *kwnames[] = { | |
26532 | (char *) "self", NULL | |
26533 | }; | |
26534 | ||
26535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26538 | { |
26539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26540 | (arg1)->base_OnLeave(); | |
26541 | ||
26542 | wxPyEndAllowThreads(__tstate); | |
26543 | if (PyErr_Occurred()) SWIG_fail; | |
26544 | } | |
26545 | Py_INCREF(Py_None); resultobj = Py_None; | |
26546 | return resultobj; | |
26547 | fail: | |
26548 | return NULL; | |
26549 | } | |
26550 | ||
26551 | ||
26552 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26553 | PyObject *resultobj; | |
26554 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26555 | int arg2 ; |
26556 | int arg3 ; | |
d14a1e28 RD |
26557 | bool result; |
26558 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26559 | PyObject * obj1 = 0 ; |
26560 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26561 | char *kwnames[] = { |
26562 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26563 | }; | |
26564 | ||
994141e6 | 26565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26568 | arg2 = (int) SWIG_AsInt(obj1); | |
26569 | if (PyErr_Occurred()) SWIG_fail; | |
26570 | arg3 = (int) SWIG_AsInt(obj2); | |
26571 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26572 | { |
26573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26574 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26575 | ||
26576 | wxPyEndAllowThreads(__tstate); | |
26577 | if (PyErr_Occurred()) SWIG_fail; | |
26578 | } | |
4f89f6a3 RD |
26579 | { |
26580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26581 | } | |
d14a1e28 RD |
26582 | return resultobj; |
26583 | fail: | |
26584 | return NULL; | |
26585 | } | |
26586 | ||
26587 | ||
26588 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26589 | PyObject *resultobj; | |
26590 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26591 | int arg2 ; |
26592 | int arg3 ; | |
d14a1e28 RD |
26593 | int arg4 ; |
26594 | int result; | |
26595 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26596 | PyObject * obj1 = 0 ; |
26597 | PyObject * obj2 = 0 ; | |
26598 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26599 | char *kwnames[] = { |
26600 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26601 | }; | |
26602 | ||
994141e6 | 26603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26606 | arg2 = (int) SWIG_AsInt(obj1); | |
26607 | if (PyErr_Occurred()) SWIG_fail; | |
26608 | arg3 = (int) SWIG_AsInt(obj2); | |
26609 | if (PyErr_Occurred()) SWIG_fail; | |
26610 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26611 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26612 | { |
26613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26614 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26615 | ||
26616 | wxPyEndAllowThreads(__tstate); | |
26617 | if (PyErr_Occurred()) SWIG_fail; | |
26618 | } | |
15afbcd0 | 26619 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26620 | return resultobj; |
26621 | fail: | |
26622 | return NULL; | |
26623 | } | |
26624 | ||
26625 | ||
26626 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26627 | PyObject *obj; | |
26628 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26629 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
26630 | Py_INCREF(obj); | |
26631 | return Py_BuildValue((char *)""); | |
26632 | } | |
26633 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26634 | PyObject *resultobj; | |
26635 | wxClipboard *result; | |
26636 | char *kwnames[] = { | |
26637 | NULL | |
26638 | }; | |
26639 | ||
26640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
26641 | { | |
26642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26643 | result = (wxClipboard *)new wxClipboard(); | |
26644 | ||
26645 | wxPyEndAllowThreads(__tstate); | |
26646 | if (PyErr_Occurred()) SWIG_fail; | |
26647 | } | |
15afbcd0 | 26648 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); |
d14a1e28 RD |
26649 | return resultobj; |
26650 | fail: | |
26651 | return NULL; | |
26652 | } | |
26653 | ||
26654 | ||
26655 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26656 | PyObject *resultobj; | |
26657 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26658 | PyObject * obj0 = 0 ; | |
26659 | char *kwnames[] = { | |
26660 | (char *) "self", NULL | |
26661 | }; | |
26662 | ||
26663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26666 | { |
26667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26668 | delete arg1; | |
26669 | ||
26670 | wxPyEndAllowThreads(__tstate); | |
26671 | if (PyErr_Occurred()) SWIG_fail; | |
26672 | } | |
26673 | Py_INCREF(Py_None); resultobj = Py_None; | |
26674 | return resultobj; | |
26675 | fail: | |
26676 | return NULL; | |
26677 | } | |
26678 | ||
26679 | ||
26680 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26681 | PyObject *resultobj; | |
26682 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26683 | bool result; | |
26684 | PyObject * obj0 = 0 ; | |
26685 | char *kwnames[] = { | |
26686 | (char *) "self", NULL | |
26687 | }; | |
26688 | ||
26689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26692 | { |
26693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26694 | result = (bool)(arg1)->Open(); | |
26695 | ||
26696 | wxPyEndAllowThreads(__tstate); | |
26697 | if (PyErr_Occurred()) SWIG_fail; | |
26698 | } | |
4f89f6a3 RD |
26699 | { |
26700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26701 | } | |
d14a1e28 RD |
26702 | return resultobj; |
26703 | fail: | |
26704 | return NULL; | |
26705 | } | |
26706 | ||
26707 | ||
26708 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26709 | PyObject *resultobj; | |
26710 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26711 | PyObject * obj0 = 0 ; | |
26712 | char *kwnames[] = { | |
26713 | (char *) "self", NULL | |
26714 | }; | |
26715 | ||
26716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26719 | { |
26720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26721 | (arg1)->Close(); | |
26722 | ||
26723 | wxPyEndAllowThreads(__tstate); | |
26724 | if (PyErr_Occurred()) SWIG_fail; | |
26725 | } | |
26726 | Py_INCREF(Py_None); resultobj = Py_None; | |
26727 | return resultobj; | |
26728 | fail: | |
26729 | return NULL; | |
26730 | } | |
26731 | ||
26732 | ||
26733 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26734 | PyObject *resultobj; | |
26735 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26736 | bool result; | |
26737 | PyObject * obj0 = 0 ; | |
26738 | char *kwnames[] = { | |
26739 | (char *) "self", NULL | |
26740 | }; | |
26741 | ||
26742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26745 | { |
26746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26747 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
26748 | ||
26749 | wxPyEndAllowThreads(__tstate); | |
26750 | if (PyErr_Occurred()) SWIG_fail; | |
26751 | } | |
4f89f6a3 RD |
26752 | { |
26753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26754 | } | |
d14a1e28 RD |
26755 | return resultobj; |
26756 | fail: | |
26757 | return NULL; | |
26758 | } | |
26759 | ||
26760 | ||
26761 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26762 | PyObject *resultobj; | |
26763 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26764 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26765 | bool result; | |
26766 | PyObject * obj0 = 0 ; | |
26767 | PyObject * obj1 = 0 ; | |
26768 | char *kwnames[] = { | |
26769 | (char *) "self",(char *) "data", NULL | |
26770 | }; | |
26771 | ||
26772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26775 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26776 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26777 | { |
26778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26779 | result = (bool)(arg1)->AddData(arg2); | |
26780 | ||
26781 | wxPyEndAllowThreads(__tstate); | |
26782 | if (PyErr_Occurred()) SWIG_fail; | |
26783 | } | |
4f89f6a3 RD |
26784 | { |
26785 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26786 | } | |
d14a1e28 RD |
26787 | return resultobj; |
26788 | fail: | |
26789 | return NULL; | |
26790 | } | |
26791 | ||
26792 | ||
26793 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26794 | PyObject *resultobj; | |
26795 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26796 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26797 | bool result; | |
26798 | PyObject * obj0 = 0 ; | |
26799 | PyObject * obj1 = 0 ; | |
26800 | char *kwnames[] = { | |
26801 | (char *) "self",(char *) "data", NULL | |
26802 | }; | |
26803 | ||
26804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26807 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26808 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26809 | { |
26810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26811 | result = (bool)(arg1)->SetData(arg2); | |
26812 | ||
26813 | wxPyEndAllowThreads(__tstate); | |
26814 | if (PyErr_Occurred()) SWIG_fail; | |
26815 | } | |
4f89f6a3 RD |
26816 | { |
26817 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26818 | } | |
d14a1e28 RD |
26819 | return resultobj; |
26820 | fail: | |
26821 | return NULL; | |
26822 | } | |
26823 | ||
26824 | ||
26825 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26826 | PyObject *resultobj; | |
26827 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26828 | wxDataFormat *arg2 = 0 ; | |
26829 | bool result; | |
26830 | PyObject * obj0 = 0 ; | |
26831 | PyObject * obj1 = 0 ; | |
26832 | char *kwnames[] = { | |
26833 | (char *) "self",(char *) "format", NULL | |
26834 | }; | |
26835 | ||
26836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26839 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
26840 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26841 | SWIG_fail; | |
d14a1e28 | 26842 | if (arg2 == NULL) { |
15afbcd0 RD |
26843 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26844 | SWIG_fail; | |
d14a1e28 RD |
26845 | } |
26846 | { | |
26847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26848 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
26849 | ||
26850 | wxPyEndAllowThreads(__tstate); | |
26851 | if (PyErr_Occurred()) SWIG_fail; | |
26852 | } | |
4f89f6a3 RD |
26853 | { |
26854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26855 | } | |
d14a1e28 RD |
26856 | return resultobj; |
26857 | fail: | |
26858 | return NULL; | |
26859 | } | |
26860 | ||
26861 | ||
26862 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26863 | PyObject *resultobj; | |
26864 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26865 | wxDataObject *arg2 = 0 ; | |
26866 | bool result; | |
26867 | PyObject * obj0 = 0 ; | |
26868 | PyObject * obj1 = 0 ; | |
26869 | char *kwnames[] = { | |
26870 | (char *) "self",(char *) "data", NULL | |
26871 | }; | |
26872 | ||
26873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26876 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26877 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26878 | SWIG_fail; | |
d14a1e28 | 26879 | if (arg2 == NULL) { |
15afbcd0 RD |
26880 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26881 | SWIG_fail; | |
d14a1e28 RD |
26882 | } |
26883 | { | |
26884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26885 | result = (bool)(arg1)->GetData(*arg2); | |
26886 | ||
26887 | wxPyEndAllowThreads(__tstate); | |
26888 | if (PyErr_Occurred()) SWIG_fail; | |
26889 | } | |
4f89f6a3 RD |
26890 | { |
26891 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26892 | } | |
d14a1e28 RD |
26893 | return resultobj; |
26894 | fail: | |
26895 | return NULL; | |
26896 | } | |
26897 | ||
26898 | ||
26899 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26900 | PyObject *resultobj; | |
26901 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26902 | PyObject * obj0 = 0 ; | |
26903 | char *kwnames[] = { | |
26904 | (char *) "self", NULL | |
26905 | }; | |
26906 | ||
26907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26910 | { |
26911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26912 | (arg1)->Clear(); | |
26913 | ||
26914 | wxPyEndAllowThreads(__tstate); | |
26915 | if (PyErr_Occurred()) SWIG_fail; | |
26916 | } | |
26917 | Py_INCREF(Py_None); resultobj = Py_None; | |
26918 | return resultobj; | |
26919 | fail: | |
26920 | return NULL; | |
26921 | } | |
26922 | ||
26923 | ||
26924 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26925 | PyObject *resultobj; | |
26926 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26927 | bool result; | |
26928 | PyObject * obj0 = 0 ; | |
26929 | char *kwnames[] = { | |
26930 | (char *) "self", NULL | |
26931 | }; | |
26932 | ||
26933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26936 | { |
26937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26938 | result = (bool)(arg1)->Flush(); | |
26939 | ||
26940 | wxPyEndAllowThreads(__tstate); | |
26941 | if (PyErr_Occurred()) SWIG_fail; | |
26942 | } | |
4f89f6a3 RD |
26943 | { |
26944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26945 | } | |
d14a1e28 RD |
26946 | return resultobj; |
26947 | fail: | |
26948 | return NULL; | |
26949 | } | |
26950 | ||
26951 | ||
26952 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26953 | PyObject *resultobj; | |
26954 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
fcafa8a9 | 26955 | bool arg2 = (bool) True ; |
d14a1e28 RD |
26956 | PyObject * obj0 = 0 ; |
26957 | PyObject * obj1 = 0 ; | |
26958 | char *kwnames[] = { | |
26959 | (char *) "self",(char *) "primary", NULL | |
26960 | }; | |
26961 | ||
26962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 26965 | if (obj1) { |
15afbcd0 RD |
26966 | arg2 = (bool) SWIG_AsBool(obj1); |
26967 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26968 | } |
26969 | { | |
26970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26971 | (arg1)->UsePrimarySelection(arg2); | |
26972 | ||
26973 | wxPyEndAllowThreads(__tstate); | |
26974 | if (PyErr_Occurred()) SWIG_fail; | |
26975 | } | |
26976 | Py_INCREF(Py_None); resultobj = Py_None; | |
26977 | return resultobj; | |
26978 | fail: | |
26979 | return NULL; | |
26980 | } | |
26981 | ||
26982 | ||
26983 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { | |
26984 | PyObject *obj; | |
26985 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26986 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
26987 | Py_INCREF(obj); | |
26988 | return Py_BuildValue((char *)""); | |
26989 | } | |
26990 | static int _wrap_TheClipboard_set(PyObject *_val) { | |
26991 | PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); | |
26992 | return 1; | |
26993 | } | |
26994 | ||
26995 | ||
26996 | static PyObject *_wrap_TheClipboard_get() { | |
26997 | PyObject *pyobj; | |
26998 | ||
15afbcd0 | 26999 | pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0); |
d14a1e28 RD |
27000 | return pyobj; |
27001 | } | |
27002 | ||
27003 | ||
27004 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27005 | PyObject *resultobj; | |
27006 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
27007 | wxClipboardLocker *result; | |
27008 | PyObject * obj0 = 0 ; | |
27009 | char *kwnames[] = { | |
27010 | (char *) "clipboard", NULL | |
27011 | }; | |
27012 | ||
27013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27014 | if (obj0) { | |
15afbcd0 RD |
27015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27017 | } |
27018 | { | |
27019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27020 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
27021 | ||
27022 | wxPyEndAllowThreads(__tstate); | |
27023 | if (PyErr_Occurred()) SWIG_fail; | |
27024 | } | |
15afbcd0 | 27025 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); |
d14a1e28 RD |
27026 | return resultobj; |
27027 | fail: | |
27028 | return NULL; | |
27029 | } | |
27030 | ||
27031 | ||
27032 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27033 | PyObject *resultobj; | |
27034 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27035 | PyObject * obj0 = 0 ; | |
27036 | char *kwnames[] = { | |
27037 | (char *) "self", NULL | |
27038 | }; | |
27039 | ||
27040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, |
27042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27043 | { |
27044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27045 | delete arg1; | |
27046 | ||
27047 | wxPyEndAllowThreads(__tstate); | |
27048 | if (PyErr_Occurred()) SWIG_fail; | |
27049 | } | |
27050 | Py_INCREF(Py_None); resultobj = Py_None; | |
27051 | return resultobj; | |
27052 | fail: | |
27053 | return NULL; | |
27054 | } | |
27055 | ||
27056 | ||
27057 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27058 | PyObject *resultobj; | |
27059 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27060 | bool result; | |
27061 | PyObject * obj0 = 0 ; | |
27062 | char *kwnames[] = { | |
27063 | (char *) "self", NULL | |
27064 | }; | |
27065 | ||
27066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, |
27068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27069 | { |
27070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27071 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
27072 | ||
27073 | wxPyEndAllowThreads(__tstate); | |
27074 | if (PyErr_Occurred()) SWIG_fail; | |
27075 | } | |
4f89f6a3 RD |
27076 | { |
27077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27078 | } | |
d14a1e28 RD |
27079 | return resultobj; |
27080 | fail: | |
27081 | return NULL; | |
27082 | } | |
27083 | ||
27084 | ||
27085 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
27086 | PyObject *obj; | |
27087 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27088 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
27089 | Py_INCREF(obj); | |
27090 | return Py_BuildValue((char *)""); | |
27091 | } | |
4276dc52 RD |
27092 | static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
27093 | PyObject *resultobj; | |
27094 | int arg1 = (int) 0 ; | |
27095 | int arg2 = (int) 0 ; | |
27096 | int arg3 = (int) 0 ; | |
27097 | int arg4 = (int) 0 ; | |
27098 | wxVideoMode *result; | |
27099 | PyObject * obj0 = 0 ; | |
27100 | PyObject * obj1 = 0 ; | |
27101 | PyObject * obj2 = 0 ; | |
27102 | PyObject * obj3 = 0 ; | |
27103 | char *kwnames[] = { | |
27104 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
27105 | }; | |
27106 | ||
27107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27108 | if (obj0) { | |
27109 | arg1 = (int) SWIG_AsInt(obj0); | |
27110 | if (PyErr_Occurred()) SWIG_fail; | |
27111 | } | |
27112 | if (obj1) { | |
27113 | arg2 = (int) SWIG_AsInt(obj1); | |
27114 | if (PyErr_Occurred()) SWIG_fail; | |
27115 | } | |
27116 | if (obj2) { | |
27117 | arg3 = (int) SWIG_AsInt(obj2); | |
27118 | if (PyErr_Occurred()) SWIG_fail; | |
27119 | } | |
27120 | if (obj3) { | |
27121 | arg4 = (int) SWIG_AsInt(obj3); | |
27122 | if (PyErr_Occurred()) SWIG_fail; | |
27123 | } | |
27124 | { | |
27125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27126 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
27127 | ||
27128 | wxPyEndAllowThreads(__tstate); | |
27129 | if (PyErr_Occurred()) SWIG_fail; | |
27130 | } | |
27131 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
27132 | return resultobj; | |
27133 | fail: | |
27134 | return NULL; | |
27135 | } | |
27136 | ||
27137 | ||
27138 | static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27139 | PyObject *resultobj; | |
27140 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27141 | PyObject * obj0 = 0 ; | |
27142 | char *kwnames[] = { | |
27143 | (char *) "self", NULL | |
27144 | }; | |
27145 | ||
27146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
27147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27149 | { | |
27150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27151 | delete arg1; | |
27152 | ||
27153 | wxPyEndAllowThreads(__tstate); | |
27154 | if (PyErr_Occurred()) SWIG_fail; | |
27155 | } | |
27156 | Py_INCREF(Py_None); resultobj = Py_None; | |
27157 | return resultobj; | |
27158 | fail: | |
27159 | return NULL; | |
27160 | } | |
27161 | ||
27162 | ||
27163 | static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27164 | PyObject *resultobj; | |
27165 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27166 | wxVideoMode *arg2 = 0 ; | |
27167 | bool result; | |
27168 | PyObject * obj0 = 0 ; | |
27169 | PyObject * obj1 = 0 ; | |
27170 | char *kwnames[] = { | |
27171 | (char *) "self",(char *) "other", NULL | |
27172 | }; | |
27173 | ||
27174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
27175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27177 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27178 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27179 | SWIG_fail; | |
27180 | if (arg2 == NULL) { | |
27181 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27182 | SWIG_fail; | |
27183 | } | |
27184 | { | |
27185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27186 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
27187 | ||
27188 | wxPyEndAllowThreads(__tstate); | |
27189 | if (PyErr_Occurred()) SWIG_fail; | |
27190 | } | |
4f89f6a3 RD |
27191 | { |
27192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27193 | } | |
4276dc52 RD |
27194 | return resultobj; |
27195 | fail: | |
27196 | return NULL; | |
27197 | } | |
27198 | ||
27199 | ||
27200 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27201 | PyObject *resultobj; | |
27202 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27203 | int result; | |
27204 | PyObject * obj0 = 0 ; | |
27205 | char *kwnames[] = { | |
27206 | (char *) "self", NULL | |
27207 | }; | |
27208 | ||
27209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
27210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27212 | { | |
27213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27214 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
27215 | ||
27216 | wxPyEndAllowThreads(__tstate); | |
27217 | if (PyErr_Occurred()) SWIG_fail; | |
27218 | } | |
27219 | resultobj = SWIG_FromInt((int)result); | |
27220 | return resultobj; | |
27221 | fail: | |
27222 | return NULL; | |
27223 | } | |
27224 | ||
27225 | ||
27226 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27227 | PyObject *resultobj; | |
27228 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27229 | int result; | |
27230 | PyObject * obj0 = 0 ; | |
27231 | char *kwnames[] = { | |
27232 | (char *) "self", NULL | |
27233 | }; | |
27234 | ||
27235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
27236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27238 | { | |
27239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27240 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
27241 | ||
27242 | wxPyEndAllowThreads(__tstate); | |
27243 | if (PyErr_Occurred()) SWIG_fail; | |
27244 | } | |
27245 | resultobj = SWIG_FromInt((int)result); | |
27246 | return resultobj; | |
27247 | fail: | |
27248 | return NULL; | |
27249 | } | |
27250 | ||
27251 | ||
27252 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27253 | PyObject *resultobj; | |
27254 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27255 | int result; | |
27256 | PyObject * obj0 = 0 ; | |
27257 | char *kwnames[] = { | |
27258 | (char *) "self", NULL | |
27259 | }; | |
27260 | ||
27261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
27262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27264 | { | |
27265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27266 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
27267 | ||
27268 | wxPyEndAllowThreads(__tstate); | |
27269 | if (PyErr_Occurred()) SWIG_fail; | |
27270 | } | |
27271 | resultobj = SWIG_FromInt((int)result); | |
27272 | return resultobj; | |
27273 | fail: | |
27274 | return NULL; | |
27275 | } | |
27276 | ||
27277 | ||
27278 | static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27279 | PyObject *resultobj; | |
27280 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27281 | bool result; | |
27282 | PyObject * obj0 = 0 ; | |
27283 | char *kwnames[] = { | |
27284 | (char *) "self", NULL | |
27285 | }; | |
27286 | ||
27287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
27288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27290 | { | |
27291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27292 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
27293 | ||
27294 | wxPyEndAllowThreads(__tstate); | |
27295 | if (PyErr_Occurred()) SWIG_fail; | |
27296 | } | |
4f89f6a3 RD |
27297 | { |
27298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27299 | } | |
4276dc52 RD |
27300 | return resultobj; |
27301 | fail: | |
27302 | return NULL; | |
27303 | } | |
27304 | ||
27305 | ||
27306 | static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27307 | PyObject *resultobj; | |
27308 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27309 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27310 | bool result; | |
27311 | PyObject * obj0 = 0 ; | |
27312 | PyObject * obj1 = 0 ; | |
27313 | char *kwnames[] = { | |
27314 | (char *) "self",(char *) "other", NULL | |
27315 | }; | |
27316 | ||
27317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
27318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27320 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27322 | { | |
27323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27324 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
27325 | ||
27326 | wxPyEndAllowThreads(__tstate); | |
27327 | if (PyErr_Occurred()) SWIG_fail; | |
27328 | } | |
4f89f6a3 RD |
27329 | { |
27330 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27331 | } | |
4276dc52 RD |
27332 | return resultobj; |
27333 | fail: | |
27334 | return NULL; | |
27335 | } | |
27336 | ||
27337 | ||
27338 | static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27339 | PyObject *resultobj; | |
27340 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27341 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27342 | bool result; | |
27343 | PyObject * obj0 = 0 ; | |
27344 | PyObject * obj1 = 0 ; | |
27345 | char *kwnames[] = { | |
27346 | (char *) "self",(char *) "other", NULL | |
27347 | }; | |
27348 | ||
27349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
27350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27352 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27354 | { | |
27355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27356 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
27357 | ||
27358 | wxPyEndAllowThreads(__tstate); | |
27359 | if (PyErr_Occurred()) SWIG_fail; | |
27360 | } | |
4f89f6a3 RD |
27361 | { |
27362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27363 | } | |
4276dc52 RD |
27364 | return resultobj; |
27365 | fail: | |
27366 | return NULL; | |
27367 | } | |
27368 | ||
27369 | ||
27370 | static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27371 | PyObject *resultobj; | |
27372 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27373 | int arg2 ; | |
27374 | PyObject * obj0 = 0 ; | |
27375 | PyObject * obj1 = 0 ; | |
27376 | char *kwnames[] = { | |
27377 | (char *) "self",(char *) "w", NULL | |
27378 | }; | |
27379 | ||
27380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
27381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27383 | arg2 = (int) SWIG_AsInt(obj1); | |
27384 | if (PyErr_Occurred()) SWIG_fail; | |
27385 | if (arg1) (arg1)->w = arg2; | |
27386 | ||
27387 | Py_INCREF(Py_None); resultobj = Py_None; | |
27388 | return resultobj; | |
27389 | fail: | |
27390 | return NULL; | |
27391 | } | |
27392 | ||
27393 | ||
27394 | static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27395 | PyObject *resultobj; | |
27396 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27397 | int result; | |
27398 | PyObject * obj0 = 0 ; | |
27399 | char *kwnames[] = { | |
27400 | (char *) "self", NULL | |
27401 | }; | |
27402 | ||
27403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
27404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27406 | result = (int) ((arg1)->w); | |
27407 | ||
27408 | resultobj = SWIG_FromInt((int)result); | |
27409 | return resultobj; | |
27410 | fail: | |
27411 | return NULL; | |
27412 | } | |
27413 | ||
27414 | ||
27415 | static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27416 | PyObject *resultobj; | |
27417 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27418 | int arg2 ; | |
27419 | PyObject * obj0 = 0 ; | |
27420 | PyObject * obj1 = 0 ; | |
27421 | char *kwnames[] = { | |
27422 | (char *) "self",(char *) "h", NULL | |
27423 | }; | |
27424 | ||
27425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
27426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27428 | arg2 = (int) SWIG_AsInt(obj1); | |
27429 | if (PyErr_Occurred()) SWIG_fail; | |
27430 | if (arg1) (arg1)->h = arg2; | |
27431 | ||
27432 | Py_INCREF(Py_None); resultobj = Py_None; | |
27433 | return resultobj; | |
27434 | fail: | |
27435 | return NULL; | |
27436 | } | |
27437 | ||
27438 | ||
27439 | static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27440 | PyObject *resultobj; | |
27441 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27442 | int result; | |
27443 | PyObject * obj0 = 0 ; | |
27444 | char *kwnames[] = { | |
27445 | (char *) "self", NULL | |
27446 | }; | |
27447 | ||
27448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
27449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27451 | result = (int) ((arg1)->h); | |
27452 | ||
27453 | resultobj = SWIG_FromInt((int)result); | |
27454 | return resultobj; | |
27455 | fail: | |
27456 | return NULL; | |
27457 | } | |
27458 | ||
27459 | ||
27460 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27461 | PyObject *resultobj; | |
27462 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27463 | int arg2 ; | |
27464 | PyObject * obj0 = 0 ; | |
27465 | PyObject * obj1 = 0 ; | |
27466 | char *kwnames[] = { | |
27467 | (char *) "self",(char *) "bpp", NULL | |
27468 | }; | |
27469 | ||
27470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
27471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27473 | arg2 = (int) SWIG_AsInt(obj1); | |
27474 | if (PyErr_Occurred()) SWIG_fail; | |
27475 | if (arg1) (arg1)->bpp = arg2; | |
27476 | ||
27477 | Py_INCREF(Py_None); resultobj = Py_None; | |
27478 | return resultobj; | |
27479 | fail: | |
27480 | return NULL; | |
27481 | } | |
27482 | ||
27483 | ||
27484 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27485 | PyObject *resultobj; | |
27486 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27487 | int result; | |
27488 | PyObject * obj0 = 0 ; | |
27489 | char *kwnames[] = { | |
27490 | (char *) "self", NULL | |
27491 | }; | |
27492 | ||
27493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
27494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27496 | result = (int) ((arg1)->bpp); | |
27497 | ||
27498 | resultobj = SWIG_FromInt((int)result); | |
27499 | return resultobj; | |
27500 | fail: | |
27501 | return NULL; | |
27502 | } | |
27503 | ||
27504 | ||
27505 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27506 | PyObject *resultobj; | |
27507 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27508 | int arg2 ; | |
27509 | PyObject * obj0 = 0 ; | |
27510 | PyObject * obj1 = 0 ; | |
27511 | char *kwnames[] = { | |
27512 | (char *) "self",(char *) "refresh", NULL | |
27513 | }; | |
27514 | ||
27515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
27516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27518 | arg2 = (int) SWIG_AsInt(obj1); | |
27519 | if (PyErr_Occurred()) SWIG_fail; | |
27520 | if (arg1) (arg1)->refresh = arg2; | |
27521 | ||
27522 | Py_INCREF(Py_None); resultobj = Py_None; | |
27523 | return resultobj; | |
27524 | fail: | |
27525 | return NULL; | |
27526 | } | |
27527 | ||
27528 | ||
27529 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27530 | PyObject *resultobj; | |
27531 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27532 | int result; | |
27533 | PyObject * obj0 = 0 ; | |
27534 | char *kwnames[] = { | |
27535 | (char *) "self", NULL | |
27536 | }; | |
27537 | ||
27538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
27539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27541 | result = (int) ((arg1)->refresh); | |
27542 | ||
27543 | resultobj = SWIG_FromInt((int)result); | |
27544 | return resultobj; | |
27545 | fail: | |
27546 | return NULL; | |
27547 | } | |
27548 | ||
27549 | ||
27550 | static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) { | |
27551 | PyObject *obj; | |
27552 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27553 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
27554 | Py_INCREF(obj); | |
27555 | return Py_BuildValue((char *)""); | |
27556 | } | |
27557 | static int _wrap_DefaultVideoMode_set(PyObject *_val) { | |
27558 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); | |
27559 | return 1; | |
27560 | } | |
27561 | ||
27562 | ||
27563 | static PyObject *_wrap_DefaultVideoMode_get() { | |
27564 | PyObject *pyobj; | |
27565 | ||
27566 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
27567 | return pyobj; | |
27568 | } | |
27569 | ||
27570 | ||
27571 | static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27572 | PyObject *resultobj; | |
27573 | size_t arg1 = (size_t) 0 ; | |
27574 | wxDisplay *result; | |
27575 | PyObject * obj0 = 0 ; | |
27576 | char *kwnames[] = { | |
27577 | (char *) "index", NULL | |
27578 | }; | |
27579 | ||
27580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
27581 | if (obj0) { | |
27582 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); | |
27583 | if (PyErr_Occurred()) SWIG_fail; | |
27584 | } | |
27585 | { | |
27586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27587 | result = (wxDisplay *)new wxDisplay(arg1); | |
27588 | ||
27589 | wxPyEndAllowThreads(__tstate); | |
27590 | if (PyErr_Occurred()) SWIG_fail; | |
27591 | } | |
27592 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
27593 | return resultobj; | |
27594 | fail: | |
27595 | return NULL; | |
27596 | } | |
27597 | ||
27598 | ||
27599 | static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27600 | PyObject *resultobj; | |
27601 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27602 | PyObject * obj0 = 0 ; | |
27603 | char *kwnames[] = { | |
27604 | (char *) "self", NULL | |
27605 | }; | |
27606 | ||
27607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
27608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27610 | { | |
27611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27612 | delete arg1; | |
27613 | ||
27614 | wxPyEndAllowThreads(__tstate); | |
27615 | if (PyErr_Occurred()) SWIG_fail; | |
27616 | } | |
27617 | Py_INCREF(Py_None); resultobj = Py_None; | |
27618 | return resultobj; | |
27619 | fail: | |
27620 | return NULL; | |
27621 | } | |
27622 | ||
27623 | ||
27624 | static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27625 | PyObject *resultobj; | |
27626 | size_t result; | |
27627 | char *kwnames[] = { | |
27628 | NULL | |
27629 | }; | |
27630 | ||
27631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
27632 | { | |
27633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27634 | result = (size_t)wxDisplay::GetCount(); | |
27635 | ||
27636 | wxPyEndAllowThreads(__tstate); | |
27637 | if (PyErr_Occurred()) SWIG_fail; | |
27638 | } | |
27639 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
27640 | return resultobj; | |
27641 | fail: | |
27642 | return NULL; | |
27643 | } | |
27644 | ||
27645 | ||
27646 | static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27647 | PyObject *resultobj; | |
27648 | wxPoint *arg1 = 0 ; | |
27649 | int result; | |
27650 | wxPoint temp1 ; | |
27651 | PyObject * obj0 = 0 ; | |
27652 | char *kwnames[] = { | |
27653 | (char *) "pt", NULL | |
27654 | }; | |
27655 | ||
27656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
27657 | { | |
27658 | arg1 = &temp1; | |
27659 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
27660 | } | |
27661 | { | |
27662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27663 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
27664 | ||
27665 | wxPyEndAllowThreads(__tstate); | |
27666 | if (PyErr_Occurred()) SWIG_fail; | |
27667 | } | |
27668 | resultobj = SWIG_FromInt((int)result); | |
27669 | return resultobj; | |
27670 | fail: | |
27671 | return NULL; | |
27672 | } | |
27673 | ||
27674 | ||
27675 | static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27676 | PyObject *resultobj; | |
27677 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27678 | int result; | |
27679 | PyObject * obj0 = 0 ; | |
27680 | char *kwnames[] = { | |
27681 | (char *) "window", NULL | |
27682 | }; | |
27683 | ||
27684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
27685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27687 | { | |
27688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27689 | result = (int)Display_GetFromWindow(arg1); | |
27690 | ||
27691 | wxPyEndAllowThreads(__tstate); | |
27692 | if (PyErr_Occurred()) SWIG_fail; | |
27693 | } | |
27694 | resultobj = SWIG_FromInt((int)result); | |
27695 | return resultobj; | |
27696 | fail: | |
27697 | return NULL; | |
27698 | } | |
27699 | ||
27700 | ||
27701 | static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27702 | PyObject *resultobj; | |
27703 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27704 | bool result; | |
27705 | PyObject * obj0 = 0 ; | |
27706 | char *kwnames[] = { | |
27707 | (char *) "self", NULL | |
27708 | }; | |
27709 | ||
27710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
27711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27713 | { | |
27714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27715 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
27716 | ||
27717 | wxPyEndAllowThreads(__tstate); | |
27718 | if (PyErr_Occurred()) SWIG_fail; | |
27719 | } | |
4f89f6a3 RD |
27720 | { |
27721 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27722 | } | |
4276dc52 RD |
27723 | return resultobj; |
27724 | fail: | |
27725 | return NULL; | |
27726 | } | |
27727 | ||
27728 | ||
27729 | static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27730 | PyObject *resultobj; | |
27731 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27732 | wxRect result; | |
27733 | PyObject * obj0 = 0 ; | |
27734 | char *kwnames[] = { | |
27735 | (char *) "self", NULL | |
27736 | }; | |
27737 | ||
27738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
27739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27741 | { | |
27742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27743 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
27744 | ||
27745 | wxPyEndAllowThreads(__tstate); | |
27746 | if (PyErr_Occurred()) SWIG_fail; | |
27747 | } | |
27748 | { | |
27749 | wxRect * resultptr; | |
27750 | resultptr = new wxRect((wxRect &) result); | |
27751 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
27752 | } | |
27753 | return resultobj; | |
27754 | fail: | |
27755 | return NULL; | |
27756 | } | |
27757 | ||
27758 | ||
27759 | static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27760 | PyObject *resultobj; | |
27761 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27762 | wxString result; | |
27763 | PyObject * obj0 = 0 ; | |
27764 | char *kwnames[] = { | |
27765 | (char *) "self", NULL | |
27766 | }; | |
27767 | ||
27768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
27769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27771 | { | |
27772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27773 | result = ((wxDisplay const *)arg1)->GetName(); | |
27774 | ||
27775 | wxPyEndAllowThreads(__tstate); | |
27776 | if (PyErr_Occurred()) SWIG_fail; | |
27777 | } | |
27778 | { | |
27779 | #if wxUSE_UNICODE | |
27780 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27781 | #else | |
27782 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27783 | #endif | |
27784 | } | |
27785 | return resultobj; | |
27786 | fail: | |
27787 | return NULL; | |
27788 | } | |
27789 | ||
27790 | ||
27791 | static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27792 | PyObject *resultobj; | |
27793 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27794 | bool result; | |
27795 | PyObject * obj0 = 0 ; | |
27796 | char *kwnames[] = { | |
27797 | (char *) "self", NULL | |
27798 | }; | |
27799 | ||
27800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
27801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27803 | { | |
27804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27805 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
27806 | ||
27807 | wxPyEndAllowThreads(__tstate); | |
27808 | if (PyErr_Occurred()) SWIG_fail; | |
27809 | } | |
4f89f6a3 RD |
27810 | { |
27811 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27812 | } | |
4276dc52 RD |
27813 | return resultobj; |
27814 | fail: | |
27815 | return NULL; | |
27816 | } | |
27817 | ||
27818 | ||
27819 | static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27820 | PyObject *resultobj; | |
27821 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27822 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
27823 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
27824 | PyObject *result; | |
27825 | PyObject * obj0 = 0 ; | |
27826 | PyObject * obj1 = 0 ; | |
27827 | char *kwnames[] = { | |
27828 | (char *) "self",(char *) "mode", NULL | |
27829 | }; | |
27830 | ||
27831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
27832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27834 | if (obj1) { | |
27835 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27836 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27837 | SWIG_fail; | |
27838 | if (arg2 == NULL) { | |
27839 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27840 | SWIG_fail; | |
27841 | } | |
27842 | } | |
27843 | { | |
27844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27845 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
27846 | ||
27847 | wxPyEndAllowThreads(__tstate); | |
27848 | if (PyErr_Occurred()) SWIG_fail; | |
27849 | } | |
27850 | resultobj = result; | |
27851 | return resultobj; | |
27852 | fail: | |
27853 | return NULL; | |
27854 | } | |
27855 | ||
27856 | ||
27857 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27858 | PyObject *resultobj; | |
27859 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27860 | wxVideoMode result; | |
27861 | PyObject * obj0 = 0 ; | |
27862 | char *kwnames[] = { | |
27863 | (char *) "self", NULL | |
27864 | }; | |
27865 | ||
27866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
27867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27869 | { | |
27870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27871 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
27872 | ||
27873 | wxPyEndAllowThreads(__tstate); | |
27874 | if (PyErr_Occurred()) SWIG_fail; | |
27875 | } | |
27876 | { | |
27877 | wxVideoMode * resultptr; | |
27878 | resultptr = new wxVideoMode((wxVideoMode &) result); | |
27879 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); | |
27880 | } | |
27881 | return resultobj; | |
27882 | fail: | |
27883 | return NULL; | |
27884 | } | |
27885 | ||
27886 | ||
27887 | static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27888 | PyObject *resultobj; | |
27889 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27890 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
27891 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
27892 | bool result; | |
27893 | PyObject * obj0 = 0 ; | |
27894 | PyObject * obj1 = 0 ; | |
27895 | char *kwnames[] = { | |
27896 | (char *) "self",(char *) "mode", NULL | |
27897 | }; | |
27898 | ||
27899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
27900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27902 | if (obj1) { | |
27903 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27904 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27905 | SWIG_fail; | |
27906 | if (arg2 == NULL) { | |
27907 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27908 | SWIG_fail; | |
27909 | } | |
27910 | } | |
27911 | { | |
27912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27913 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
27914 | ||
27915 | wxPyEndAllowThreads(__tstate); | |
27916 | if (PyErr_Occurred()) SWIG_fail; | |
27917 | } | |
4f89f6a3 RD |
27918 | { |
27919 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27920 | } | |
4276dc52 RD |
27921 | return resultobj; |
27922 | fail: | |
27923 | return NULL; | |
27924 | } | |
27925 | ||
27926 | ||
27927 | static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27928 | PyObject *resultobj; | |
27929 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27930 | PyObject * obj0 = 0 ; | |
27931 | char *kwnames[] = { | |
27932 | (char *) "self", NULL | |
27933 | }; | |
27934 | ||
27935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
27936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27938 | { | |
27939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27940 | (arg1)->ResetMode(); | |
27941 | ||
27942 | wxPyEndAllowThreads(__tstate); | |
27943 | if (PyErr_Occurred()) SWIG_fail; | |
27944 | } | |
27945 | Py_INCREF(Py_None); resultobj = Py_None; | |
27946 | return resultobj; | |
27947 | fail: | |
27948 | return NULL; | |
27949 | } | |
27950 | ||
27951 | ||
27952 | static PyObject * Display_swigregister(PyObject *self, PyObject *args) { | |
27953 | PyObject *obj; | |
27954 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27955 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
27956 | Py_INCREF(obj); | |
27957 | return Py_BuildValue((char *)""); | |
27958 | } | |
d14a1e28 RD |
27959 | static PyMethodDef SwigMethods[] = { |
27960 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
27961 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
27962 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
27963 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
27964 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
27965 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
27966 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
27967 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
27968 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
27969 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
27970 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
27971 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
27972 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
27973 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
27974 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
27975 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
27976 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
27977 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, | |
27978 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
27979 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
27980 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
27981 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
27982 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
27983 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
27984 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
27985 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
27986 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
27987 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
27988 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
27989 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
27990 | { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, | |
27991 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
27992 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
27993 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
27994 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
27995 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
27996 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
27997 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
27998 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
27999 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
28000 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
28001 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
28002 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28003 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28004 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28005 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
28006 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28007 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28008 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
28009 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
28010 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
28011 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28012 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
28013 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28014 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28015 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28016 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28017 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28018 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28019 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28020 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28021 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28022 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28023 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
28024 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28025 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28026 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
39f61e25 | 28027 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28028 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, |
28029 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
28030 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
28031 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28032 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28033 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
28034 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
28035 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
28036 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
28037 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28038 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
28039 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
28040 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
28041 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
28042 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28043 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28044 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28045 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 28046 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 28047 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 28048 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 28049 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28050 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
28051 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
28052 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
28053 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
28054 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
28055 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
28056 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
28057 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
28058 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28059 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28060 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28061 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28062 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
28063 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28064 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28065 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
28066 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28067 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28068 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
28069 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
28070 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
28071 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
28072 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28073 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
28074 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
28075 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28076 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28077 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
28078 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
28079 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
28080 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
28081 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
28082 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
28083 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
28084 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
28085 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
28086 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
28087 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28088 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
28089 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28090 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28091 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28092 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
28093 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
28094 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
28095 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
28096 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28097 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28098 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
28099 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
28100 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
28101 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28102 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28103 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
28104 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
28105 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28106 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
28107 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
7722248d | 28108 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 28109 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, |
1c0f361b | 28110 | { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28111 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, |
28112 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28113 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, |
28114 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28115 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
cc6dd355 | 28116 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28117 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, |
28118 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
28119 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28120 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
28121 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
28122 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
28123 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
28124 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
28125 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
28126 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
28127 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
28128 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
28129 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28130 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
28131 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28132 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28133 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
28134 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28135 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28136 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28137 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28138 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28139 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28140 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28141 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28142 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28143 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28144 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28145 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28146 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28147 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28148 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28149 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
28150 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
28151 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
28152 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
28153 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
28154 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
28155 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
28156 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
28157 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
28158 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
28159 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
28160 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
28161 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28162 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28163 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28164 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
28165 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
28166 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
28167 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28168 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28169 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28170 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
28171 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
28172 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
28173 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
28174 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
28175 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
28176 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
28177 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
28178 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
28179 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28180 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
28181 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
28182 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
cc6dd355 | 28183 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, |
d14a1e28 RD |
28184 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, |
28185 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
28186 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28187 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28188 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
28189 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
28190 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28191 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
28192 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
28193 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28194 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
28195 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
28196 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28197 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
28198 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
28199 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
28200 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
28201 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
28202 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
28203 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
28204 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
28205 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
28206 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28207 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28208 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
28209 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
28210 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
28211 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
28212 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
28213 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
28214 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
28215 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
28216 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
28217 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
28218 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28219 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28220 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28221 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28222 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28223 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28224 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
28225 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
28226 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
28227 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28228 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28229 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28230 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28231 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
28232 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
28233 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
28234 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
28235 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
28236 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
28237 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
28238 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
28239 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
28240 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
28241 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
28242 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
28243 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
28244 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
28245 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
28246 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
28247 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
28248 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
28249 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
28250 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
28251 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
28252 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
28253 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
28254 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
28255 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
28256 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
28257 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
28258 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
28259 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
28260 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
28261 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
28262 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
28263 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
28264 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
28265 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
28266 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
28267 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
28268 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
28269 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
28270 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
28271 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
28272 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
28273 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
28274 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28275 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28276 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28277 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28278 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28279 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28280 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28281 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28282 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28283 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28284 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
28285 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
28286 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
28287 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
28288 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
28289 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
28290 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
36cadbf7 RD |
28291 | { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS }, |
28292 | { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS }, | |
4d5c3d91 | 28293 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS }, |
36cadbf7 RD |
28294 | { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS }, |
28295 | { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS }, | |
4d5c3d91 | 28296 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS }, |
36cadbf7 RD |
28297 | { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS }, |
28298 | { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS }, | |
4d5c3d91 RD |
28299 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS }, |
28300 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28301 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, |
28302 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
28303 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
28304 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28305 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28306 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28307 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28308 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28309 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28310 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28311 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28312 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28313 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
28314 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
28315 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
28316 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
28317 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28318 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28319 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28320 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28321 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28322 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28323 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
28324 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28325 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28326 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28327 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
28328 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
28329 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
28330 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28331 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
28332 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
28333 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
28334 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28335 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
28336 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
28337 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
28338 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28339 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
28340 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28341 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
28342 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
28343 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
28344 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28345 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28346 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
28347 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28348 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
28349 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
28350 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
28351 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
28352 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28353 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
1e0c8722 | 28354 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28355 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, |
28356 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
28357 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
28358 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
28359 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
28360 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28361 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
28362 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
28363 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
28364 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
28365 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
28366 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
28367 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
28368 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
28369 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
28370 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
28371 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28372 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
28373 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
28374 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
28375 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
28376 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
28377 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
28378 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
28379 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
28380 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
28381 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28382 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
28383 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
28384 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
28385 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
28386 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 28387 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, |
b88bce5f | 28388 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28389 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, |
28390 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
28391 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28392 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28393 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28394 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28395 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28396 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28397 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28398 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28399 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, |
28400 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
28401 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
28402 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28403 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28404 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
b88bce5f RD |
28405 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, |
28406 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
28407 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
28408 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28409 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, |
28410 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28411 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28412 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
28413 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
28414 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
28415 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
28416 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
28417 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
28418 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
28419 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
28420 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
28421 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
28422 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
28423 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
28424 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
28425 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
28426 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
28427 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
28428 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
28429 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28430 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28431 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
28432 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
28433 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
28434 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28435 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
28436 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28437 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28438 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
28439 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
28440 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
28441 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
28442 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28443 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
28444 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
28445 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28446 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28447 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28448 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28449 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28450 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28451 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28452 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28453 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28454 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28455 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28456 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28457 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
28458 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
28459 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28460 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28461 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28462 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28463 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28464 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28465 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28466 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
28467 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
28468 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28469 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28470 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
28471 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
28472 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
28473 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28474 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
28475 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
28476 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28477 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
28478 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28479 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
28480 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28481 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28482 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28483 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28484 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28485 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
28486 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
28487 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28488 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
28489 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
28490 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
28491 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
28492 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
28493 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
28494 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
28495 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
28496 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
28497 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
28498 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
28499 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28500 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
28501 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
28502 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
28503 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
28504 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
28505 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
28506 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
28507 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
28508 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
28509 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
28510 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
28511 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
28512 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
28513 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
28514 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
28515 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
28516 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
28517 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
28518 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
28519 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
28520 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
28521 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
28522 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
28523 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
28524 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
28525 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
28526 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
28527 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28528 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28529 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28530 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28531 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28532 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28533 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28534 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28535 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28536 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28537 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
28538 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28539 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28540 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28541 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28542 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28543 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28544 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28545 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28546 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
28547 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
28548 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
28549 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
28550 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28551 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28552 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
28553 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
28554 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
28555 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28556 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
28557 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
28558 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28559 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28560 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
28561 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
28562 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
28563 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
28564 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
28565 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
28566 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28567 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28568 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28569 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28570 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28571 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28572 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
28573 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
28574 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
28575 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
28576 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
28577 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28578 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28579 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
28580 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
28581 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28582 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28583 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28584 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
28585 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28586 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28587 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28588 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28589 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28590 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28591 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28592 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28593 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28594 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28595 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28596 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28597 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28598 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28599 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
28600 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
28601 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
28602 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
28603 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
28604 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28605 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28606 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28607 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
28608 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
28609 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
28610 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
28611 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
28612 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
28613 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
28614 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
28615 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
28616 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
28617 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28618 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
28619 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
28620 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
28621 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28622 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
28623 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28624 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
28625 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
28626 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, | |
28627 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28628 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28629 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
28630 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
28631 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
28632 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
28633 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28634 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
28635 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
28636 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
28637 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
28638 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28639 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28640 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
28641 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28642 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28643 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28644 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
28645 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28646 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28647 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
28648 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28649 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
15afbcd0 | 28650 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28651 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, |
28652 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28653 | { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS }, | |
28654 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28655 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
28656 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28657 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
28658 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28659 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
28660 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
28661 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
28662 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28663 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, | |
28664 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
28665 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28666 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28667 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28668 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28669 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28670 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28671 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
28672 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
28673 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
15afbcd0 | 28674 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28675 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
28676 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28677 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28678 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28679 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28680 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28681 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28682 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28683 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28684 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
28685 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28686 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28687 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28688 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28689 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28690 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28691 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28692 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
28693 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28694 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28695 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28696 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28697 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28698 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28699 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28700 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
28701 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28702 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28703 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
28704 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
28705 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
28706 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
28707 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28708 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28709 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28710 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
28711 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28712 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
28713 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, | |
28714 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28715 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28716 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
28717 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
4276dc52 RD |
28718 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS }, |
28719 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS }, | |
28720 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS }, | |
28721 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
28722 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
28723 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
28724 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28725 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28726 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28727 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS }, | |
28728 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS }, | |
28729 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS }, | |
28730 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS }, | |
28731 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS }, | |
28732 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS }, | |
28733 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS }, | |
28734 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS }, | |
28735 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS }, | |
28736 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS }, | |
28737 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS }, | |
28738 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28739 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
28740 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
28741 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28742 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS }, | |
28743 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS }, | |
28744 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS }, | |
28745 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS }, | |
28746 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS }, | |
28747 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS }, | |
28748 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS }, | |
28749 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28750 | { NULL, NULL } |
28751 | }; | |
28752 | ||
28753 | ||
28754 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
28755 | ||
28756 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
28757 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
28758 | } | |
28759 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
28760 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
28761 | } | |
28762 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
28763 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
28764 | } | |
28765 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
28766 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
28767 | } | |
28768 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
28769 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
28770 | } | |
28771 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
28772 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
28773 | } | |
28774 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
28775 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
28776 | } | |
28777 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
28778 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
28779 | } | |
28780 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
28781 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
28782 | } | |
28783 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
28784 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
28785 | } | |
28786 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
28787 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
28788 | } | |
28789 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
28790 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
28791 | } | |
28792 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
28793 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
28794 | } | |
28795 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
28796 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
28797 | } | |
28798 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
28799 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
28800 | } | |
28801 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
28802 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
28803 | } | |
28804 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
28805 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
28806 | } | |
28807 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
28808 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
28809 | } | |
28810 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
28811 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
28812 | } | |
28813 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
28814 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
28815 | } | |
28816 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
28817 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
28818 | } | |
28819 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
28820 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
28821 | } | |
28822 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
28823 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
28824 | } | |
28825 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
28826 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
28827 | } | |
28828 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
28829 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
28830 | } | |
28831 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
28832 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
28833 | } | |
28834 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
28835 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
28836 | } | |
28837 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
28838 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
28839 | } | |
28840 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
28841 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
28842 | } | |
28843 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
28844 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
28845 | } | |
28846 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
28847 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
28848 | } | |
28849 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
28850 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
28851 | } | |
28852 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
28853 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
28854 | } | |
28855 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
28856 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
28857 | } | |
28858 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
28859 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
28860 | } | |
28861 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
28862 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
28863 | } | |
28864 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
28865 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
28866 | } | |
28867 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
28868 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
28869 | } | |
28870 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
28871 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
28872 | } | |
28873 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
28874 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
28875 | } | |
28876 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
28877 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
28878 | } | |
28879 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
28880 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
28881 | } | |
28882 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
28883 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
28884 | } | |
28885 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
28886 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
28887 | } | |
28888 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
28889 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
28890 | } | |
28891 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
28892 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
28893 | } | |
28894 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
28895 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
28896 | } | |
28897 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
28898 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
28899 | } | |
28900 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
28901 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
28902 | } | |
28903 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
28904 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
28905 | } | |
28906 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
28907 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
28908 | } | |
28909 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
28910 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
28911 | } | |
28912 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
28913 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
28914 | } | |
28915 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
28916 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
28917 | } | |
28918 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
28919 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
28920 | } | |
28921 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28922 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
28923 | } | |
28924 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28925 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
28926 | } | |
28927 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28928 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
28929 | } | |
28930 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28931 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
28932 | } | |
28933 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28934 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
28935 | } | |
28936 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28937 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
28938 | } | |
28939 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28940 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
28941 | } | |
28942 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
28943 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
28944 | } | |
28945 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
28946 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
28947 | } | |
28948 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
28949 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
28950 | } | |
28951 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
28952 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
28953 | } | |
28954 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
28955 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
28956 | } | |
28957 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
28958 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
28959 | } | |
28960 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
28961 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
28962 | } | |
28963 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
28964 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
28965 | } | |
28966 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
28967 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
28968 | } | |
28969 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
28970 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
28971 | } | |
28972 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
28973 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
28974 | } | |
28975 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
28976 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
28977 | } | |
28978 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
28979 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
28980 | } | |
28981 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
28982 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
28983 | } | |
28984 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
28985 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
28986 | } | |
28987 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
28988 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
28989 | } | |
28990 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
28991 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
28992 | } | |
28993 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
28994 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
28995 | } | |
28996 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
28997 | return (void *)((wxObject *) ((wxSizer *) x)); | |
28998 | } | |
28999 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
29000 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
29001 | } | |
29002 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
29003 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
29004 | } | |
29005 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
29006 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29007 | } | |
29008 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
29009 | return (void *)((wxObject *) ((wxEvent *) x)); | |
29010 | } | |
29011 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
29012 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
29013 | } | |
29014 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
29015 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
29016 | } | |
29017 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
29018 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
29019 | } | |
29020 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
29021 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
29022 | } | |
29023 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
29024 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
29025 | } | |
29026 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
29027 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29028 | } | |
29029 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
29030 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29031 | } | |
29032 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
29033 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29034 | } | |
29035 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
29036 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29037 | } | |
29038 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
29039 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
29040 | } | |
29041 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
29042 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
29043 | } | |
29044 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
29045 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
29046 | } | |
29047 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
29048 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
29049 | } | |
29050 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
29051 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
29052 | } | |
29053 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
29054 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
29055 | } | |
29056 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
29057 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
29058 | } | |
29059 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
29060 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29061 | } | |
29062 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
29063 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
29064 | } | |
29065 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
29066 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
29067 | } | |
29068 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
29069 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
29070 | } | |
29071 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
29072 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
29073 | } | |
29074 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
29075 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29076 | } | |
29077 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
29078 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29079 | } | |
29080 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
29081 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
29082 | } | |
29083 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
29084 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
29085 | } | |
29086 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
29087 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
29088 | } | |
29089 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
29090 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
29091 | } | |
29092 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
29093 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
29094 | } | |
29095 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
29096 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
29097 | } | |
29098 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
29099 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
29100 | } | |
29101 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
29102 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
29103 | } | |
29104 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
29105 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
29106 | } | |
29107 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
29108 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
29109 | } | |
29110 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
29111 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
29112 | } | |
29113 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
29114 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
29115 | } | |
29116 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
29117 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
29118 | } | |
29119 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
29120 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
29121 | } | |
29122 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
29123 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
29124 | } | |
29125 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
29126 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
29127 | } | |
29128 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
29129 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
29130 | } | |
29131 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
29132 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
29133 | } | |
1e0c8722 RD |
29134 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
29135 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
29136 | } | |
d14a1e28 RD |
29137 | static void *_p_wxImageTo_p_wxObject(void *x) { |
29138 | return (void *)((wxObject *) ((wxImage *) x)); | |
29139 | } | |
29140 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
29141 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
29142 | } | |
29143 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
29144 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
29145 | } | |
29146 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
29147 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
29148 | } | |
29149 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
29150 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29151 | } | |
29152 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
29153 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29154 | } | |
29155 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
29156 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
29157 | } | |
29158 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
29159 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
29160 | } | |
29161 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
29162 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
29163 | } | |
29164 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
29165 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
29166 | } | |
29167 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
29168 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
29169 | } | |
29170 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
29171 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
29172 | } | |
29173 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
29174 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29175 | } | |
29176 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
29177 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
29178 | } | |
29179 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
29180 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
29181 | } | |
29182 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
29183 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
29184 | } | |
29185 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
29186 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
29187 | } | |
29188 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
29189 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
29190 | } | |
29191 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
29192 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
29193 | } | |
29194 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
29195 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29196 | } | |
29197 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
29198 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
29199 | } | |
29200 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
29201 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
29202 | } | |
29203 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
29204 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
29205 | } | |
29206 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
29207 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29208 | } | |
29209 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
29210 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
29211 | } | |
29212 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
29213 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29214 | } | |
29215 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
29216 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
29217 | } | |
29218 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
29219 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
29220 | } | |
29221 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
29222 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
29223 | } | |
29224 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
29225 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
29226 | } | |
29227 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
29228 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
29229 | } | |
29230 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
29231 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
29232 | } | |
29233 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
29234 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
29235 | } | |
29236 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
29237 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
29238 | } | |
29239 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
29240 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
29241 | } | |
29242 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
29243 | return (void *)((wxWindow *) ((wxControl *) x)); | |
29244 | } | |
29245 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
29246 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
29247 | } | |
29248 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
29249 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
29250 | } | |
29251 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
29252 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
29253 | } | |
29254 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
29255 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
29256 | } | |
15afbcd0 RD |
29257 | 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}}; |
29258 | 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}}; | |
29259 | 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}}; | |
29260 | 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}}; | |
29261 | 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}}; | |
29262 | 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}}; | |
29263 | 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}}; | |
29264 | 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 | 29265 | 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 |
29266 | 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}}; |
29267 | 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}}; | |
29268 | 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}}; | |
29269 | 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}}; | |
29270 | 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}}; | |
29271 | 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}}; | |
29272 | 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}}; | |
29273 | 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}}; | |
29274 | 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}}; | |
29275 | 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}}; | |
29276 | 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}}; | |
29277 | 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}}; | |
29278 | 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}}; | |
29279 | 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}}; | |
29280 | 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}}; | |
29281 | 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}}; | |
29282 | 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}}; | |
36cadbf7 | 29283 | 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}}; |
15afbcd0 RD |
29284 | 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}}; |
29285 | 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}}; | |
29286 | 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}}; | |
29287 | 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}}; | |
15afbcd0 RD |
29288 | 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}}; |
29289 | 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}}; | |
29290 | 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}}; | |
29291 | 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}}; | |
29292 | 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}}; | |
29293 | 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}}; | |
29294 | 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}}; | |
29295 | 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}}; | |
29296 | 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}}; | |
29297 | 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}}; | |
29298 | 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}}; | |
29299 | 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}}; | |
29300 | 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}}; | |
29301 | 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 | 29302 | 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 |
29303 | 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}}; |
29304 | 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}}; | |
29305 | 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}}; | |
29306 | 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}}; | |
29307 | 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}}; | |
29308 | 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}}; | |
29309 | 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}}; | |
29310 | 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}}; | |
29311 | 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}}; | |
29312 | 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}}; | |
29313 | 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}}; | |
29314 | 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}}; | |
29315 | 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}}; | |
29316 | 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}}; | |
29317 | 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}}; | |
29318 | 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}}; | |
29319 | 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}}; | |
29320 | 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}}; | |
29321 | 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}}; | |
29322 | 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}}; | |
29323 | 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}}; | |
29324 | 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}}; | |
29325 | 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}}; | |
29326 | 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}}; | |
29327 | 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}}; | |
29328 | 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}}; | |
29329 | 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}}; | |
29330 | 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}}; | |
29331 | 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}}; | |
29332 | 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}}; | |
29333 | 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}}; | |
29334 | 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}}; | |
29335 | 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}}; | |
29336 | 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}}; | |
29337 | 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}}; | |
29338 | 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}}; | |
15afbcd0 RD |
29339 | 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}}; |
29340 | 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}}; | |
29341 | 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 |
29342 | |
29343 | static swig_type_info *swig_types_initial[] = { | |
29344 | _swigt__p_wxLogChain, | |
29345 | _swigt__p_wxMutexGuiLocker, | |
29346 | _swigt__p_wxFileHistory, | |
29347 | _swigt__p_wxLog, | |
29348 | _swigt__p_wxDateTime__TimeZone, | |
29349 | _swigt__p_wxMenu, | |
29350 | _swigt__p_wxEvent, | |
29351 | _swigt__p_wxConfigBase, | |
4276dc52 | 29352 | _swigt__p_wxDisplay, |
d14a1e28 RD |
29353 | _swigt__p_wxFileType, |
29354 | _swigt__p_wxLogGui, | |
29355 | _swigt__p_wxFont, | |
29356 | _swigt__p_wxDataFormat, | |
29357 | _swigt__p_wxTimerEvent, | |
29358 | _swigt__p_wxCaret, | |
29359 | _swigt__p_int, | |
29360 | _swigt__p_wxSize, | |
29361 | _swigt__p_wxClipboard, | |
29362 | _swigt__p_wxStopWatch, | |
29363 | _swigt__p_wxDC, | |
29364 | _swigt__p_wxClipboardLocker, | |
29365 | _swigt__p_wxIcon, | |
29366 | _swigt__p_wxLogStderr, | |
29367 | _swigt__p_wxLogTextCtrl, | |
29368 | _swigt__p_wxTextCtrl, | |
29369 | _swigt__p_wxBusyCursor, | |
36cadbf7 | 29370 | _swigt__p_wxPyBitmapDataObject, |
d14a1e28 RD |
29371 | _swigt__p_wxPyTextDataObject, |
29372 | _swigt__p_wxBitmapDataObject, | |
29373 | _swigt__p_wxTextDataObject, | |
29374 | _swigt__p_wxDataObject, | |
994141e6 | 29375 | _swigt__p_wxFileDataObject, |
d14a1e28 RD |
29376 | _swigt__p_wxCustomDataObject, |
29377 | _swigt__p_wxURLDataObject, | |
29378 | _swigt__p_wxMetafileDataObject, | |
4d5c3d91 | 29379 | _swigt__p_wxSound, |
d14a1e28 RD |
29380 | _swigt__p_wxTimerRunner, |
29381 | _swigt__p_wxLogWindow, | |
29382 | _swigt__p_wxTimeSpan, | |
29383 | _swigt__p_wxArrayString, | |
29384 | _swigt__p_wxWindowDisabler, | |
29385 | _swigt__p_wxToolTip, | |
29386 | _swigt__p_wxDataObjectComposite, | |
29387 | _swigt__p_wxFileConfig, | |
29388 | _swigt__p_wxSystemSettings, | |
4276dc52 | 29389 | _swigt__p_wxVideoMode, |
d14a1e28 RD |
29390 | _swigt__p_wxPyDataObjectSimple, |
29391 | _swigt__p_wxDataObjectSimple, | |
29392 | _swigt__p_wxEvtHandler, | |
29393 | _swigt__p_wxRect, | |
994141e6 | 29394 | _swigt__p_char, |
d14a1e28 RD |
29395 | _swigt__p_wxSingleInstanceChecker, |
29396 | _swigt__p_wxFileTypeInfo, | |
29397 | _swigt__p_wxFrame, | |
29398 | _swigt__p_wxTimer, | |
29399 | _swigt__p_wxMimeTypesManager, | |
29400 | _swigt__p_wxPyArtProvider, | |
29401 | _swigt__p_wxPyTipProvider, | |
29402 | _swigt__p_wxTipProvider, | |
29403 | _swigt__p_wxJoystick, | |
29404 | _swigt__p_wxSystemOptions, | |
29405 | _swigt__p_wxPoint, | |
29406 | _swigt__p_wxJoystickEvent, | |
29407 | _swigt__p_wxCursor, | |
29408 | _swigt__p_wxObject, | |
29409 | _swigt__p_wxOutputStream, | |
29410 | _swigt__p_wxDateTime, | |
29411 | _swigt__p_wxPyDropSource, | |
29412 | _swigt__p_wxWindow, | |
29413 | _swigt__p_wxString, | |
29414 | _swigt__p_wxPyProcess, | |
29415 | _swigt__p_wxBitmap, | |
29416 | _swigt__p_wxConfig, | |
29417 | _swigt__p_wxChar, | |
29418 | _swigt__p_wxBusyInfo, | |
29419 | _swigt__p_wxPyDropTarget, | |
29420 | _swigt__p_wxPyTextDropTarget, | |
29421 | _swigt__p_wxPyFileDropTarget, | |
29422 | _swigt__p_wxProcessEvent, | |
29423 | _swigt__p_wxPyLog, | |
29424 | _swigt__p_wxLogNull, | |
29425 | _swigt__p_wxColour, | |
29426 | _swigt__p_wxConfigPathChanger, | |
29427 | _swigt__p_wxPyTimer, | |
29428 | _swigt__p_wxDateSpan, | |
29429 | 0 | |
29430 | }; | |
29431 | ||
29432 | ||
29433 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
29434 | ||
29435 | static swig_const_info swig_const_table[] = { | |
15afbcd0 RD |
29436 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, |
29437 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
29438 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
29439 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
29440 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
d14a1e28 RD |
29441 | {0}}; |
29442 | ||
29443 | #ifdef __cplusplus | |
29444 | } | |
29445 | #endif | |
29446 | ||
29447 | #ifdef __cplusplus | |
29448 | extern "C" | |
29449 | #endif | |
29450 | SWIGEXPORT(void) SWIG_init(void) { | |
29451 | static PyObject *SWIG_globals = 0; | |
29452 | static int typeinit = 0; | |
29453 | PyObject *m, *d; | |
29454 | int i; | |
29455 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
29456 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
29457 | d = PyModule_GetDict(m); | |
29458 | ||
29459 | if (!typeinit) { | |
29460 | for (i = 0; swig_types_initial[i]; i++) { | |
29461 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
29462 | } | |
29463 | typeinit = 1; | |
29464 | } | |
29465 | SWIG_InstallConstants(d,swig_const_table); | |
29466 | ||
15afbcd0 RD |
29467 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT)); |
29468 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT)); | |
29469 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT)); | |
29470 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT)); | |
29471 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
29472 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE)); | |
29473 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT)); | |
29474 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT)); | |
29475 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT)); | |
29476 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR)); | |
29477 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND)); | |
29478 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP)); | |
29479 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
29480 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
29481 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU)); | |
29482 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW)); | |
29483 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME)); | |
29484 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT)); | |
29485 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT)); | |
29486 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
29487 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
29488 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
29489 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE)); | |
29490 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT)); | |
29491 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
29492 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE)); | |
29493 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE)); | |
29494 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW)); | |
29495 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW)); | |
29496 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT)); | |
29497 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT)); | |
29498 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
29499 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
29500 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT)); | |
29501 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
29502 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT)); | |
29503 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW)); | |
29504 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT)); | |
29505 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT)); | |
29506 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK)); | |
29507 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX)); | |
29508 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT)); | |
29509 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
29510 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
29511 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT)); | |
29512 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR)); | |
29513 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX)); | |
29514 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS)); | |
29515 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X)); | |
29516 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y)); | |
29517 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X)); | |
29518 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y)); | |
29519 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X)); | |
29520 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y)); | |
29521 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X)); | |
29522 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y)); | |
29523 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X)); | |
29524 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y)); | |
29525 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X)); | |
29526 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y)); | |
29527 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X)); | |
29528 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X)); | |
29529 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y)); | |
29530 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X)); | |
29531 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y)); | |
29532 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X)); | |
29533 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y)); | |
29534 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X)); | |
29535 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y)); | |
29536 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X)); | |
29537 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y)); | |
29538 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X)); | |
29539 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y)); | |
29540 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y)); | |
29541 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X)); | |
29542 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X)); | |
29543 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y)); | |
29544 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y)); | |
29545 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y)); | |
29546 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y)); | |
29547 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT)); | |
29548 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT)); | |
29549 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS)); | |
29550 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS)); | |
29551 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
29552 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME)); | |
29553 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE)); | |
29554 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY)); | |
29555 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA)); | |
29556 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL)); | |
29557 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP)); | |
b2dc1044 RD |
29558 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
29559 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
29560 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
29561 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
15afbcd0 RD |
29562 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF)); |
29563 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT)); | |
29564 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS)); | |
29565 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT)); | |
d14a1e28 | 29566 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); |
1c0f361b RD |
29567 | |
29568 | wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer"); | |
29569 | ||
15afbcd0 RD |
29570 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError)); |
29571 | PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error)); | |
29572 | PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning)); | |
29573 | PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message)); | |
29574 | PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status)); | |
29575 | PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info)); | |
29576 | PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug)); | |
29577 | PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace)); | |
29578 | PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress)); | |
29579 | PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User)); | |
29580 | PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max)); | |
29581 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); | |
29582 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); | |
29583 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
29584 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
29585 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
29586 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001)); | |
29587 | PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002)); | |
29588 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004)); | |
29589 | PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008)); | |
29590 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100)); | |
29591 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT)); | |
29592 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT)); | |
29593 | PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK)); | |
29594 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL)); | |
29595 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED)); | |
29596 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS)); | |
29597 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR)); | |
29598 | PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE)); | |
29599 | PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP)); | |
29600 | PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT)); | |
29601 | PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT)); | |
29602 | PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL)); | |
29603 | PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP)); | |
29604 | PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT)); | |
29605 | PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT)); | |
29606 | PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT)); | |
29607 | PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE)); | |
29608 | PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL)); | |
29609 | PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS)); | |
29610 | PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV)); | |
29611 | PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS)); | |
29612 | PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE)); | |
29613 | PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM)); | |
29614 | PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM)); | |
d14a1e28 | 29615 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); |
15afbcd0 RD |
29616 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC)); |
29617 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC)); | |
29618 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE)); | |
29619 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER)); | |
d14a1e28 RD |
29620 | |
29621 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
29622 | ||
15afbcd0 RD |
29623 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1)); |
29624 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2)); | |
29625 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY)); | |
29626 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1)); | |
29627 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2)); | |
29628 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3)); | |
29629 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4)); | |
d14a1e28 RD |
29630 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); |
29631 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
29632 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
29633 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
15afbcd0 RD |
29634 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC)); |
29635 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC)); | |
29636 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP)); | |
29637 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD)); | |
29638 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE)); | |
29639 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE)); | |
29640 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME)); | |
29641 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL)); | |
d14a1e28 RD |
29642 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); |
29643 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
29644 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
29645 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
29646 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
29647 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
29648 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
29649 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
29650 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
29651 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
29652 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
29653 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
29654 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
29655 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
29656 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
29657 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
29658 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
29659 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
29660 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
29661 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
29662 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
29663 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
29664 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
29665 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
29666 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
29667 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
29668 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
29669 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
29670 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
29671 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
29672 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
29673 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
29674 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
29675 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
29676 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
29677 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
29678 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
29679 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
29680 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
29681 | ||
29682 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
29683 | ||
15afbcd0 RD |
29684 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE)); |
29685 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE)); | |
29686 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH)); | |
29687 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
29688 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown)); | |
29689 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String)); | |
29690 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean)); | |
29691 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer)); | |
29692 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float)); | |
b2dc1044 RD |
29693 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); |
29694 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
15afbcd0 RD |
29695 | PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local)); |
29696 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12)); | |
29697 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11)); | |
29698 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10)); | |
29699 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9)); | |
29700 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8)); | |
29701 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7)); | |
29702 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6)); | |
29703 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5)); | |
29704 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4)); | |
29705 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3)); | |
29706 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2)); | |
29707 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1)); | |
29708 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0)); | |
29709 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1)); | |
29710 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2)); | |
29711 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3)); | |
29712 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4)); | |
29713 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5)); | |
29714 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6)); | |
29715 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7)); | |
29716 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8)); | |
29717 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9)); | |
29718 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10)); | |
29719 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11)); | |
29720 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12)); | |
29721 | PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET)); | |
29722 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST)); | |
29723 | PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET)); | |
29724 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST)); | |
29725 | PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET)); | |
29726 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST)); | |
29727 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK)); | |
29728 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD)); | |
29729 | PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST)); | |
29730 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT)); | |
29731 | PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST)); | |
29732 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT)); | |
29733 | PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST)); | |
29734 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT)); | |
29735 | PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST)); | |
29736 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT)); | |
29737 | PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST)); | |
29738 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT)); | |
29739 | PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST)); | |
29740 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST)); | |
29741 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT)); | |
29742 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST)); | |
29743 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST)); | |
29744 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST)); | |
29745 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST)); | |
29746 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC)); | |
29747 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian)); | |
29748 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian)); | |
29749 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown)); | |
29750 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard)); | |
29751 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska)); | |
29752 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania)); | |
29753 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria)); | |
29754 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen)); | |
29755 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg)); | |
29756 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol)); | |
29757 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia)); | |
29758 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria)); | |
29759 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium)); | |
29760 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria)); | |
29761 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1)); | |
29762 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2)); | |
29763 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3)); | |
29764 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada)); | |
29765 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China)); | |
29766 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1)); | |
29767 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2)); | |
29768 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia)); | |
29769 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark)); | |
29770 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt)); | |
29771 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia)); | |
29772 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland)); | |
29773 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France)); | |
29774 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace)); | |
29775 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine)); | |
29776 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg)); | |
29777 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany)); | |
29778 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic)); | |
29779 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia)); | |
29780 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant)); | |
29781 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain)); | |
29782 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece)); | |
29783 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary)); | |
29784 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland)); | |
29785 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy)); | |
29786 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan)); | |
29787 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1)); | |
29788 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2)); | |
29789 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3)); | |
29790 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia)); | |
29791 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania)); | |
29792 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg)); | |
29793 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands)); | |
29794 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen)); | |
29795 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
29796 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
29797 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland)); | |
29798 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway)); | |
29799 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland)); | |
29800 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal)); | |
29801 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania)); | |
29802 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia)); | |
29803 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland)); | |
29804 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain)); | |
29805 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden)); | |
29806 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland)); | |
29807 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic)); | |
29808 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant)); | |
29809 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey)); | |
29810 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA)); | |
29811 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales)); | |
29812 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia)); | |
29813 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown)); | |
29814 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default)); | |
29815 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start)); | |
29816 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC)); | |
29817 | PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France)); | |
29818 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany)); | |
29819 | PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK)); | |
29820 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End)); | |
29821 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia)); | |
29822 | PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA)); | |
29823 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan)); | |
29824 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb)); | |
29825 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar)); | |
29826 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr)); | |
29827 | PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May)); | |
29828 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun)); | |
29829 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul)); | |
29830 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug)); | |
29831 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep)); | |
29832 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct)); | |
29833 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov)); | |
29834 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec)); | |
29835 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month)); | |
29836 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun)); | |
29837 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon)); | |
29838 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue)); | |
29839 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed)); | |
29840 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu)); | |
29841 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri)); | |
29842 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat)); | |
29843 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay)); | |
29844 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year)); | |
29845 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full)); | |
29846 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr)); | |
29847 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First)); | |
29848 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First)); | |
29849 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First)); | |
98e665d3 | 29850 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); |
15afbcd0 RD |
29851 | PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID)); |
29852 | PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT)); | |
29853 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP)); | |
29854 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE)); | |
29855 | PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK)); | |
29856 | PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF)); | |
29857 | PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF)); | |
29858 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT)); | |
29859 | PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB)); | |
29860 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE)); | |
29861 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA)); | |
29862 | PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF)); | |
29863 | PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE)); | |
29864 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT)); | |
29865 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE)); | |
29866 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME)); | |
29867 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE)); | |
29868 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE)); | |
29869 | PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML)); | |
29870 | PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX)); | |
d14a1e28 | 29871 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); |
15afbcd0 RD |
29872 | PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get)); |
29873 | PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set)); | |
29874 | PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both)); | |
29875 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly)); | |
29876 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove)); | |
29877 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove)); | |
29878 | PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError)); | |
29879 | PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone)); | |
29880 | PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy)); | |
29881 | PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove)); | |
29882 | PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink)); | |
29883 | PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel)); | |
d14a1e28 RD |
29884 | |
29885 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
29886 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
29887 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
29888 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
29889 | ||
29890 | SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); | |
4276dc52 | 29891 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); |
d14a1e28 RD |
29892 | } |
29893 |