]>
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 | ||
1a10c483 RD |
1276 | PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){ |
1277 | size_t count = self->GetFormatCount(dir); | |
1278 | wxDataFormat* formats = new wxDataFormat[count]; | |
1279 | self->GetAllFormats(formats, dir); | |
1280 | ||
1281 | bool blocked = wxPyBeginBlockThreads(); | |
1282 | PyObject* list = PyList_New(count); | |
1283 | for (size_t i=0; i<count; i++) { | |
1284 | wxDataFormat* format = new wxDataFormat(formats[i]); | |
1285 | PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), True); | |
1286 | PyList_Append(list, obj); | |
1287 | Py_DECREF(obj); | |
1288 | } | |
1289 | wxPyEndBlockThreads(blocked); | |
1290 | delete [] formats; | |
1291 | return list; | |
1292 | } | |
1293 | PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){ | |
1294 | PyObject* rval = NULL; | |
1295 | size_t size = self->GetDataSize(format); | |
1296 | bool blocked = wxPyBeginBlockThreads(); | |
1297 | if (size) { | |
1298 | char* buf = new char[size]; | |
1299 | if (self->GetDataHere(format, buf)) | |
1300 | rval = PyString_FromStringAndSize(buf, size); | |
1301 | delete [] buf; | |
1302 | } | |
1303 | if (! rval) { | |
1304 | rval = Py_None; | |
1305 | Py_INCREF(rval); | |
1306 | } | |
1307 | wxPyEndBlockThreads(blocked); | |
1308 | return rval; | |
1309 | } | |
1310 | bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){ | |
1311 | bool rval; | |
1312 | bool blocked = wxPyBeginBlockThreads(); | |
1313 | if (PyString_Check(data)) { | |
1314 | rval = self->SetData(format, PyString_Size(data), PyString_AsString(data)); | |
1315 | } | |
1316 | else { | |
1317 | // raise a TypeError if not a string | |
1318 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1319 | rval = False; | |
1320 | } | |
1321 | wxPyEndBlockThreads(blocked); | |
1322 | return rval; | |
1323 | } | |
1324 | PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){ | |
1325 | PyObject* rval = NULL; | |
1326 | size_t size = self->GetDataSize(); | |
1327 | bool blocked = wxPyBeginBlockThreads(); | |
1328 | if (size) { | |
1329 | char* buf = new char[size]; | |
1330 | if (self->GetDataHere(buf)) | |
1331 | rval = PyString_FromStringAndSize(buf, size); | |
1332 | delete [] buf; | |
1333 | } | |
1334 | if (! rval) { | |
1335 | rval = Py_None; | |
1336 | Py_INCREF(rval); | |
1337 | } | |
1338 | wxPyEndBlockThreads(blocked); | |
1339 | return rval; | |
1340 | } | |
1341 | bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){ | |
1342 | bool rval; | |
1343 | bool blocked = wxPyBeginBlockThreads(); | |
1344 | if (PyString_Check(data)) { | |
1345 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1346 | } | |
1347 | else { | |
1348 | // raise a TypeError if not a string | |
1349 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1350 | rval = False; | |
1351 | } | |
1352 | wxPyEndBlockThreads(blocked); | |
1353 | return rval; | |
1354 | } | |
d14a1e28 RD |
1355 | // Create a new class for wxPython to use |
1356 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1357 | public: | |
1358 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1359 | : wxDataObjectSimple(format) {} | |
1360 | ||
1361 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1362 | bool GetDataHere(void *buf) const; | |
1363 | bool SetData(size_t len, const void *buf) const; | |
1364 | PYPRIVATE; | |
1365 | }; | |
1366 | ||
1367 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1368 | ||
1369 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1370 | // We need to get the data for this object and write it to buf. I think | |
1371 | // the best way to do this for wxPython is to have the Python method | |
1372 | // return either a string or None and then act appropriately with the | |
1373 | // C++ version. | |
1374 | ||
e811c8ce | 1375 | bool rval = False; |
4f89f6a3 | 1376 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1377 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { |
1378 | PyObject* ro; | |
1379 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1380 | if (ro) { | |
1381 | rval = (ro != Py_None && PyString_Check(ro)); | |
1382 | if (rval) | |
1383 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1384 | Py_DECREF(ro); | |
1385 | } | |
1386 | } | |
4f89f6a3 | 1387 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1388 | return rval; |
1389 | } | |
1390 | ||
1391 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1392 | // For this one we simply need to make a string from buf and len | |
1393 | // and send it to the Python method. | |
e811c8ce | 1394 | bool rval = False; |
4f89f6a3 | 1395 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1396 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { |
1397 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1398 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1399 | Py_DECREF(data); | |
1400 | } | |
4f89f6a3 | 1401 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1402 | return rval; |
1403 | } | |
1404 | ||
1405 | // Create a new class for wxPython to use | |
1406 | class wxPyTextDataObject : public wxTextDataObject { | |
1407 | public: | |
1408 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1409 | : wxTextDataObject(text) {} | |
1410 | ||
1411 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1412 | DEC_PYCALLBACK_STRING__const(GetText); | |
1413 | DEC_PYCALLBACK__STRING(SetText); | |
1414 | PYPRIVATE; | |
1415 | }; | |
1416 | ||
1417 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1418 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1419 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1420 | ||
1421 | ||
1422 | // Create a new class for wxPython to use | |
1423 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1424 | public: | |
1425 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1426 | : wxBitmapDataObject(bitmap) {} | |
1427 | ||
1428 | wxBitmap GetBitmap() const; | |
1429 | void SetBitmap(const wxBitmap& bitmap); | |
1430 | PYPRIVATE; | |
1431 | }; | |
1432 | ||
1433 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1434 | wxBitmap* rval = &wxNullBitmap; | |
4f89f6a3 | 1435 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1436 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { |
1437 | PyObject* ro; | |
1438 | wxBitmap* ptr; | |
1439 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1440 | if (ro) { | |
1441 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1442 | rval = ptr; | |
1443 | Py_DECREF(ro); | |
1444 | } | |
1445 | } | |
4f89f6a3 | 1446 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1447 | return *rval; |
1448 | } | |
1a10c483 | 1449 | |
d14a1e28 | 1450 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { |
4f89f6a3 | 1451 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1452 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { |
e811c8ce | 1453 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False); |
d14a1e28 RD |
1454 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); |
1455 | Py_DECREF(bo); | |
1456 | } | |
4f89f6a3 | 1457 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1458 | } |
1459 | ||
d14a1e28 | 1460 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ |
1a10c483 RD |
1461 | bool rval; |
1462 | bool blocked = wxPyBeginBlockThreads(); | |
d14a1e28 | 1463 | if (PyString_Check(data)) { |
1a10c483 | 1464 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); |
d14a1e28 RD |
1465 | } |
1466 | else { | |
1467 | // raise a TypeError if not a string | |
1468 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1a10c483 | 1469 | rval = False; |
d14a1e28 | 1470 | } |
1a10c483 RD |
1471 | wxPyEndBlockThreads(blocked); |
1472 | return rval; | |
d14a1e28 RD |
1473 | } |
1474 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
1a10c483 RD |
1475 | PyObject* obj; |
1476 | bool blocked = wxPyBeginBlockThreads(); | |
1477 | obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
1478 | wxPyEndBlockThreads(blocked); | |
d14a1e28 RD |
1479 | } |
1480 | ||
1481 | class wxMetafileDataObject : public wxDataObjectSimple | |
1482 | { | |
1483 | public: | |
39f61e25 | 1484 | wxMetafileDataObject() { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1485 | }; |
1486 | ||
1487 | ||
d14a1e28 RD |
1488 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); |
1489 | ||
1490 | ||
d14a1e28 RD |
1491 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); |
1492 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1493 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1494 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1495 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1496 | ||
1497 | ||
d14a1e28 RD |
1498 | class wxPyTextDropTarget : public wxTextDropTarget { |
1499 | public: | |
1500 | wxPyTextDropTarget() {} | |
1501 | ||
1502 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1503 | ||
1504 | DEC_PYCALLBACK__(OnLeave); | |
1505 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1506 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1507 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1508 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1509 | ||
1510 | PYPRIVATE; | |
1511 | }; | |
1512 | ||
1513 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1514 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1515 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1516 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1517 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1518 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1519 | ||
1520 | ||
1521 | ||
1522 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1523 | public: | |
1524 | wxPyFileDropTarget() {} | |
1525 | ||
1526 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1527 | ||
1528 | DEC_PYCALLBACK__(OnLeave); | |
1529 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1530 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1531 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1532 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1533 | ||
1534 | PYPRIVATE; | |
1535 | }; | |
1536 | ||
1537 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1538 | const wxArrayString& filenames) { | |
e811c8ce | 1539 | bool rval = False; |
4f89f6a3 | 1540 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1541 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { |
1542 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1543 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1544 | Py_DECREF(list); | |
1545 | } | |
4f89f6a3 | 1546 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1547 | return rval; |
1548 | } | |
1549 | ||
1550 | ||
1551 | ||
1552 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1553 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1554 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1555 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1556 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1557 | ||
1558 | ||
1559 | ||
1560 | ||
1561 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
4276dc52 RD |
1562 | |
1563 | #include "wx/display.h" | |
1564 | ||
1565 | bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; } | |
1566 | bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; } | |
1567 | int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1568 | PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){ | |
1569 | PyObject* pyList = NULL; | |
1570 | wxArrayVideoModes arr = self->GetModes(mode); | |
4f89f6a3 | 1571 | bool blocked = wxPyBeginBlockThreads(); |
4276dc52 RD |
1572 | pyList = PyList_New(0); |
1573 | for (int i=0; i < arr.GetCount(); i++) { | |
1574 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
1575 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
1576 | PyList_Append(pyList, pyObj); | |
1a10c483 | 1577 | Py_DECREF(pyObj); |
4276dc52 | 1578 | } |
4f89f6a3 | 1579 | wxPyEndBlockThreads(blocked); |
4276dc52 RD |
1580 | return pyList; |
1581 | } | |
d14a1e28 RD |
1582 | #ifdef __cplusplus |
1583 | extern "C" { | |
1584 | #endif | |
1585 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1586 | PyObject *resultobj; | |
1587 | int arg1 ; | |
1588 | wxColour result; | |
994141e6 | 1589 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1590 | char *kwnames[] = { |
1591 | (char *) "index", NULL | |
1592 | }; | |
1593 | ||
994141e6 | 1594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1595 | arg1 = (wxSystemColour) SWIG_AsInt(obj0); |
1596 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1597 | { |
1598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1599 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1600 | ||
1601 | wxPyEndAllowThreads(__tstate); | |
1602 | if (PyErr_Occurred()) SWIG_fail; | |
1603 | } | |
1604 | { | |
1605 | wxColour * resultptr; | |
1606 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 1607 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1608 | } |
1609 | return resultobj; | |
1610 | fail: | |
1611 | return NULL; | |
1612 | } | |
1613 | ||
1614 | ||
1615 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1616 | PyObject *resultobj; | |
1617 | int arg1 ; | |
1618 | wxFont result; | |
994141e6 | 1619 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1620 | char *kwnames[] = { |
1621 | (char *) "index", NULL | |
1622 | }; | |
1623 | ||
994141e6 | 1624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1625 | arg1 = (wxSystemFont) SWIG_AsInt(obj0); |
1626 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1627 | { |
1628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1629 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1630 | ||
1631 | wxPyEndAllowThreads(__tstate); | |
1632 | if (PyErr_Occurred()) SWIG_fail; | |
1633 | } | |
1634 | { | |
1635 | wxFont * resultptr; | |
1636 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 1637 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
1638 | } |
1639 | return resultobj; | |
1640 | fail: | |
1641 | return NULL; | |
1642 | } | |
1643 | ||
1644 | ||
1645 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1646 | PyObject *resultobj; | |
1647 | int arg1 ; | |
1648 | int result; | |
994141e6 | 1649 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1650 | char *kwnames[] = { |
1651 | (char *) "index", NULL | |
1652 | }; | |
1653 | ||
994141e6 | 1654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1655 | arg1 = (wxSystemMetric) SWIG_AsInt(obj0); |
1656 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1657 | { |
1658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1659 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1660 | ||
1661 | wxPyEndAllowThreads(__tstate); | |
1662 | if (PyErr_Occurred()) SWIG_fail; | |
1663 | } | |
15afbcd0 | 1664 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1665 | return resultobj; |
1666 | fail: | |
1667 | return NULL; | |
1668 | } | |
1669 | ||
1670 | ||
1671 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1672 | PyObject *resultobj; | |
1673 | int arg1 ; | |
1674 | bool result; | |
994141e6 | 1675 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1676 | char *kwnames[] = { |
1677 | (char *) "index", NULL | |
1678 | }; | |
1679 | ||
994141e6 | 1680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1681 | arg1 = (wxSystemFeature) SWIG_AsInt(obj0); |
1682 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1683 | { |
1684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1685 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1686 | ||
1687 | wxPyEndAllowThreads(__tstate); | |
1688 | if (PyErr_Occurred()) SWIG_fail; | |
1689 | } | |
4f89f6a3 RD |
1690 | { |
1691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1692 | } | |
d14a1e28 RD |
1693 | return resultobj; |
1694 | fail: | |
1695 | return NULL; | |
1696 | } | |
1697 | ||
1698 | ||
1699 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1700 | PyObject *resultobj; | |
1701 | int result; | |
1702 | char *kwnames[] = { | |
1703 | NULL | |
1704 | }; | |
1705 | ||
1706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1707 | { | |
1708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1709 | result = (int)wxSystemSettings::GetScreenType(); | |
1710 | ||
1711 | wxPyEndAllowThreads(__tstate); | |
1712 | if (PyErr_Occurred()) SWIG_fail; | |
1713 | } | |
15afbcd0 | 1714 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1715 | return resultobj; |
1716 | fail: | |
1717 | return NULL; | |
1718 | } | |
1719 | ||
1720 | ||
1721 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1722 | PyObject *resultobj; | |
1723 | int arg1 ; | |
994141e6 | 1724 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1725 | char *kwnames[] = { |
1726 | (char *) "screen", NULL | |
1727 | }; | |
1728 | ||
994141e6 | 1729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1730 | arg1 = (wxSystemScreenType) SWIG_AsInt(obj0); |
1731 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1732 | { |
1733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1734 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1735 | ||
1736 | wxPyEndAllowThreads(__tstate); | |
1737 | if (PyErr_Occurred()) SWIG_fail; | |
1738 | } | |
1739 | Py_INCREF(Py_None); resultobj = Py_None; | |
1740 | return resultobj; | |
1741 | fail: | |
1742 | return NULL; | |
1743 | } | |
1744 | ||
1745 | ||
1746 | static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { | |
1747 | PyObject *obj; | |
1748 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1749 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1750 | Py_INCREF(obj); | |
1751 | return Py_BuildValue((char *)""); | |
1752 | } | |
1753 | static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1754 | PyObject *resultobj; | |
1755 | wxSystemOptions *result; | |
1756 | char *kwnames[] = { | |
1757 | NULL | |
1758 | }; | |
1759 | ||
1760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1761 | { | |
1762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1763 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1764 | ||
1765 | wxPyEndAllowThreads(__tstate); | |
1766 | if (PyErr_Occurred()) SWIG_fail; | |
1767 | } | |
15afbcd0 | 1768 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); |
d14a1e28 RD |
1769 | return resultobj; |
1770 | fail: | |
1771 | return NULL; | |
1772 | } | |
1773 | ||
1774 | ||
1775 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1776 | PyObject *resultobj; | |
1777 | wxString *arg1 = 0 ; | |
1778 | wxString *arg2 = 0 ; | |
e811c8ce RD |
1779 | bool temp1 = False ; |
1780 | bool temp2 = False ; | |
d14a1e28 RD |
1781 | PyObject * obj0 = 0 ; |
1782 | PyObject * obj1 = 0 ; | |
1783 | char *kwnames[] = { | |
1784 | (char *) "name",(char *) "value", NULL | |
1785 | }; | |
1786 | ||
1787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1788 | { | |
1789 | arg1 = wxString_in_helper(obj0); | |
1790 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1791 | temp1 = True; |
d14a1e28 RD |
1792 | } |
1793 | { | |
1794 | arg2 = wxString_in_helper(obj1); | |
1795 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 1796 | temp2 = True; |
d14a1e28 RD |
1797 | } |
1798 | { | |
1799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1800 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
1801 | ||
1802 | wxPyEndAllowThreads(__tstate); | |
1803 | if (PyErr_Occurred()) SWIG_fail; | |
1804 | } | |
1805 | Py_INCREF(Py_None); resultobj = Py_None; | |
1806 | { | |
1807 | if (temp1) | |
1808 | delete arg1; | |
1809 | } | |
1810 | { | |
1811 | if (temp2) | |
1812 | delete arg2; | |
1813 | } | |
1814 | return resultobj; | |
1815 | fail: | |
1816 | { | |
1817 | if (temp1) | |
1818 | delete arg1; | |
1819 | } | |
1820 | { | |
1821 | if (temp2) | |
1822 | delete arg2; | |
1823 | } | |
1824 | return NULL; | |
1825 | } | |
1826 | ||
1827 | ||
1828 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1829 | PyObject *resultobj; | |
1830 | wxString *arg1 = 0 ; | |
1831 | int arg2 ; | |
e811c8ce | 1832 | bool temp1 = False ; |
d14a1e28 | 1833 | PyObject * obj0 = 0 ; |
994141e6 | 1834 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1835 | char *kwnames[] = { |
1836 | (char *) "name",(char *) "value", NULL | |
1837 | }; | |
1838 | ||
994141e6 | 1839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
1840 | { |
1841 | arg1 = wxString_in_helper(obj0); | |
1842 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1843 | temp1 = True; |
d14a1e28 | 1844 | } |
15afbcd0 RD |
1845 | arg2 = (int) SWIG_AsInt(obj1); |
1846 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1847 | { |
1848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1849 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
1850 | ||
1851 | wxPyEndAllowThreads(__tstate); | |
1852 | if (PyErr_Occurred()) SWIG_fail; | |
1853 | } | |
1854 | Py_INCREF(Py_None); resultobj = Py_None; | |
1855 | { | |
1856 | if (temp1) | |
1857 | delete arg1; | |
1858 | } | |
1859 | return resultobj; | |
1860 | fail: | |
1861 | { | |
1862 | if (temp1) | |
1863 | delete arg1; | |
1864 | } | |
1865 | return NULL; | |
1866 | } | |
1867 | ||
1868 | ||
1869 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1870 | PyObject *resultobj; | |
1871 | wxString *arg1 = 0 ; | |
1872 | wxString result; | |
e811c8ce | 1873 | bool temp1 = False ; |
d14a1e28 RD |
1874 | PyObject * obj0 = 0 ; |
1875 | char *kwnames[] = { | |
1876 | (char *) "name", NULL | |
1877 | }; | |
1878 | ||
1879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
1880 | { | |
1881 | arg1 = wxString_in_helper(obj0); | |
1882 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1883 | temp1 = True; |
d14a1e28 RD |
1884 | } |
1885 | { | |
1886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1887 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
1888 | ||
1889 | wxPyEndAllowThreads(__tstate); | |
1890 | if (PyErr_Occurred()) SWIG_fail; | |
1891 | } | |
1892 | { | |
1893 | #if wxUSE_UNICODE | |
1894 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1895 | #else | |
1896 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1897 | #endif | |
1898 | } | |
1899 | { | |
1900 | if (temp1) | |
1901 | delete arg1; | |
1902 | } | |
1903 | return resultobj; | |
1904 | fail: | |
1905 | { | |
1906 | if (temp1) | |
1907 | delete arg1; | |
1908 | } | |
1909 | return NULL; | |
1910 | } | |
1911 | ||
1912 | ||
1913 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1914 | PyObject *resultobj; | |
1915 | wxString *arg1 = 0 ; | |
1916 | int result; | |
e811c8ce | 1917 | bool temp1 = False ; |
d14a1e28 RD |
1918 | PyObject * obj0 = 0 ; |
1919 | char *kwnames[] = { | |
1920 | (char *) "name", NULL | |
1921 | }; | |
1922 | ||
1923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
1924 | { | |
1925 | arg1 = wxString_in_helper(obj0); | |
1926 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1927 | temp1 = True; |
d14a1e28 RD |
1928 | } |
1929 | { | |
1930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1931 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
1932 | ||
1933 | wxPyEndAllowThreads(__tstate); | |
1934 | if (PyErr_Occurred()) SWIG_fail; | |
1935 | } | |
15afbcd0 | 1936 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1937 | { |
1938 | if (temp1) | |
1939 | delete arg1; | |
1940 | } | |
1941 | return resultobj; | |
1942 | fail: | |
1943 | { | |
1944 | if (temp1) | |
1945 | delete arg1; | |
1946 | } | |
1947 | return NULL; | |
1948 | } | |
1949 | ||
1950 | ||
1951 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1952 | PyObject *resultobj; | |
1953 | wxString *arg1 = 0 ; | |
1954 | bool result; | |
e811c8ce | 1955 | bool temp1 = False ; |
d14a1e28 RD |
1956 | PyObject * obj0 = 0 ; |
1957 | char *kwnames[] = { | |
1958 | (char *) "name", NULL | |
1959 | }; | |
1960 | ||
1961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
1962 | { | |
1963 | arg1 = wxString_in_helper(obj0); | |
1964 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1965 | temp1 = True; |
d14a1e28 RD |
1966 | } |
1967 | { | |
1968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1969 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
1970 | ||
1971 | wxPyEndAllowThreads(__tstate); | |
1972 | if (PyErr_Occurred()) SWIG_fail; | |
1973 | } | |
4f89f6a3 RD |
1974 | { |
1975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1976 | } | |
d14a1e28 RD |
1977 | { |
1978 | if (temp1) | |
1979 | delete arg1; | |
1980 | } | |
1981 | return resultobj; | |
1982 | fail: | |
1983 | { | |
1984 | if (temp1) | |
1985 | delete arg1; | |
1986 | } | |
1987 | return NULL; | |
1988 | } | |
1989 | ||
1990 | ||
1991 | static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) { | |
1992 | PyObject *obj; | |
1993 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1994 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
1995 | Py_INCREF(obj); | |
1996 | return Py_BuildValue((char *)""); | |
1997 | } | |
b2dc1044 RD |
1998 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { |
1999 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
2000 | return 1; | |
2001 | } | |
2002 | ||
2003 | ||
2004 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
2005 | PyObject *pyobj; | |
2006 | ||
2007 | { | |
2008 | #if wxUSE_UNICODE | |
2009 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2010 | #else | |
2011 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2012 | #endif | |
2013 | } | |
2014 | return pyobj; | |
2015 | } | |
2016 | ||
2017 | ||
2018 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
2019 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
2020 | return 1; | |
2021 | } | |
2022 | ||
2023 | ||
2024 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
2025 | PyObject *pyobj; | |
2026 | ||
2027 | { | |
2028 | #if wxUSE_UNICODE | |
2029 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2030 | #else | |
2031 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2032 | #endif | |
2033 | } | |
2034 | return pyobj; | |
2035 | } | |
2036 | ||
2037 | ||
2038 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
2039 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
2040 | return 1; | |
2041 | } | |
2042 | ||
2043 | ||
2044 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
2045 | PyObject *pyobj; | |
2046 | ||
2047 | { | |
2048 | #if wxUSE_UNICODE | |
2049 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2050 | #else | |
2051 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2052 | #endif | |
2053 | } | |
2054 | return pyobj; | |
2055 | } | |
2056 | ||
2057 | ||
d14a1e28 RD |
2058 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { |
2059 | PyObject *resultobj; | |
2060 | long result; | |
2061 | char *kwnames[] = { | |
2062 | NULL | |
2063 | }; | |
2064 | ||
2065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
2066 | { | |
2067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2068 | result = (long)wxNewId(); | |
2069 | ||
2070 | wxPyEndAllowThreads(__tstate); | |
2071 | if (PyErr_Occurred()) SWIG_fail; | |
2072 | } | |
15afbcd0 | 2073 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2074 | return resultobj; |
2075 | fail: | |
2076 | return NULL; | |
2077 | } | |
2078 | ||
2079 | ||
2080 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2081 | PyObject *resultobj; | |
2082 | long arg1 ; | |
994141e6 | 2083 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2084 | char *kwnames[] = { |
2085 | (char *) "id", NULL | |
2086 | }; | |
2087 | ||
994141e6 | 2088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2089 | arg1 = (long) SWIG_AsLong(obj0); |
2090 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2091 | { |
2092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2093 | wxRegisterId(arg1); | |
2094 | ||
2095 | wxPyEndAllowThreads(__tstate); | |
2096 | if (PyErr_Occurred()) SWIG_fail; | |
2097 | } | |
2098 | Py_INCREF(Py_None); resultobj = Py_None; | |
2099 | return resultobj; | |
2100 | fail: | |
2101 | return NULL; | |
2102 | } | |
2103 | ||
2104 | ||
2105 | static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2106 | PyObject *resultobj; | |
2107 | long result; | |
2108 | char *kwnames[] = { | |
2109 | NULL | |
2110 | }; | |
2111 | ||
2112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
2113 | { | |
2114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2115 | result = (long)wxGetCurrentId(); | |
2116 | ||
2117 | wxPyEndAllowThreads(__tstate); | |
2118 | if (PyErr_Occurred()) SWIG_fail; | |
2119 | } | |
15afbcd0 | 2120 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2121 | return resultobj; |
2122 | fail: | |
2123 | return NULL; | |
2124 | } | |
2125 | ||
2126 | ||
2127 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2128 | PyObject *resultobj; | |
2129 | char *kwnames[] = { | |
2130 | NULL | |
2131 | }; | |
2132 | ||
2133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
2134 | { | |
2135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2136 | wxBell(); | |
2137 | ||
2138 | wxPyEndAllowThreads(__tstate); | |
2139 | if (PyErr_Occurred()) SWIG_fail; | |
2140 | } | |
2141 | Py_INCREF(Py_None); resultobj = Py_None; | |
2142 | return resultobj; | |
2143 | fail: | |
2144 | return NULL; | |
2145 | } | |
2146 | ||
2147 | ||
2148 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2149 | PyObject *resultobj; | |
2150 | char *kwnames[] = { | |
2151 | NULL | |
2152 | }; | |
2153 | ||
2154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
2155 | { | |
2156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2157 | wxEndBusyCursor(); | |
2158 | ||
2159 | wxPyEndAllowThreads(__tstate); | |
2160 | if (PyErr_Occurred()) SWIG_fail; | |
2161 | } | |
2162 | Py_INCREF(Py_None); resultobj = Py_None; | |
2163 | return resultobj; | |
2164 | fail: | |
2165 | return NULL; | |
2166 | } | |
2167 | ||
2168 | ||
2169 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2170 | PyObject *resultobj; | |
e811c8ce | 2171 | bool arg1 = (bool) True ; |
d14a1e28 RD |
2172 | long result; |
2173 | PyObject * obj0 = 0 ; | |
2174 | char *kwnames[] = { | |
2175 | (char *) "resetTimer", NULL | |
2176 | }; | |
2177 | ||
2178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
2179 | if (obj0) { | |
15afbcd0 RD |
2180 | arg1 = (bool) SWIG_AsBool(obj0); |
2181 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2182 | } |
2183 | { | |
2184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2185 | result = (long)wxGetElapsedTime(arg1); | |
2186 | ||
2187 | wxPyEndAllowThreads(__tstate); | |
2188 | if (PyErr_Occurred()) SWIG_fail; | |
2189 | } | |
15afbcd0 | 2190 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2191 | return resultobj; |
2192 | fail: | |
2193 | return NULL; | |
2194 | } | |
2195 | ||
2196 | ||
2197 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2198 | PyObject *resultobj; | |
2199 | int *arg1 = (int *) 0 ; | |
2200 | int *arg2 = (int *) 0 ; | |
2201 | int temp1 ; | |
2202 | int temp2 ; | |
2203 | char *kwnames[] = { | |
2204 | NULL | |
2205 | }; | |
2206 | ||
2207 | arg1 = &temp1; | |
2208 | arg2 = &temp2; | |
2209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
2210 | { | |
2211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2212 | wxGetMousePosition(arg1,arg2); | |
2213 | ||
2214 | wxPyEndAllowThreads(__tstate); | |
2215 | if (PyErr_Occurred()) SWIG_fail; | |
2216 | } | |
2217 | Py_INCREF(Py_None); resultobj = Py_None; | |
2218 | { | |
2219 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2220 | resultobj = t_output_helper(resultobj,o); | |
2221 | } | |
2222 | { | |
2223 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2224 | resultobj = t_output_helper(resultobj,o); | |
2225 | } | |
2226 | return resultobj; | |
2227 | fail: | |
2228 | return NULL; | |
2229 | } | |
2230 | ||
2231 | ||
2232 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2233 | PyObject *resultobj; | |
2234 | bool result; | |
2235 | char *kwnames[] = { | |
2236 | NULL | |
2237 | }; | |
2238 | ||
2239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
2240 | { | |
2241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2242 | result = (bool)wxIsBusy(); | |
2243 | ||
2244 | wxPyEndAllowThreads(__tstate); | |
2245 | if (PyErr_Occurred()) SWIG_fail; | |
2246 | } | |
4f89f6a3 RD |
2247 | { |
2248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2249 | } | |
d14a1e28 RD |
2250 | return resultobj; |
2251 | fail: | |
2252 | return NULL; | |
2253 | } | |
2254 | ||
2255 | ||
2256 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2257 | PyObject *resultobj; | |
2258 | wxString result; | |
2259 | char *kwnames[] = { | |
2260 | NULL | |
2261 | }; | |
2262 | ||
2263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
2264 | { | |
2265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2266 | result = wxNow(); | |
2267 | ||
2268 | wxPyEndAllowThreads(__tstate); | |
2269 | if (PyErr_Occurred()) SWIG_fail; | |
2270 | } | |
2271 | { | |
2272 | #if wxUSE_UNICODE | |
2273 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2274 | #else | |
2275 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2276 | #endif | |
2277 | } | |
2278 | return resultobj; | |
2279 | fail: | |
2280 | return NULL; | |
2281 | } | |
2282 | ||
2283 | ||
2284 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2285 | PyObject *resultobj; | |
2286 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2287 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2288 | bool result; | |
e811c8ce | 2289 | bool temp1 = False ; |
d14a1e28 RD |
2290 | PyObject * obj0 = 0 ; |
2291 | char *kwnames[] = { | |
2292 | (char *) "command", NULL | |
2293 | }; | |
2294 | ||
2295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
2296 | if (obj0) { | |
2297 | { | |
2298 | arg1 = wxString_in_helper(obj0); | |
2299 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2300 | temp1 = True; |
d14a1e28 RD |
2301 | } |
2302 | } | |
2303 | { | |
2304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2305 | result = (bool)wxShell((wxString const &)*arg1); | |
2306 | ||
2307 | wxPyEndAllowThreads(__tstate); | |
2308 | if (PyErr_Occurred()) SWIG_fail; | |
2309 | } | |
4f89f6a3 RD |
2310 | { |
2311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2312 | } | |
d14a1e28 RD |
2313 | { |
2314 | if (temp1) | |
2315 | delete arg1; | |
2316 | } | |
2317 | return resultobj; | |
2318 | fail: | |
2319 | { | |
2320 | if (temp1) | |
2321 | delete arg1; | |
2322 | } | |
2323 | return NULL; | |
2324 | } | |
2325 | ||
2326 | ||
2327 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2328 | PyObject *resultobj; | |
2329 | char *kwnames[] = { | |
2330 | NULL | |
2331 | }; | |
2332 | ||
2333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2334 | { | |
2335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2336 | wxStartTimer(); | |
2337 | ||
2338 | wxPyEndAllowThreads(__tstate); | |
2339 | if (PyErr_Occurred()) SWIG_fail; | |
2340 | } | |
2341 | Py_INCREF(Py_None); resultobj = Py_None; | |
2342 | return resultobj; | |
2343 | fail: | |
2344 | return NULL; | |
2345 | } | |
2346 | ||
2347 | ||
2348 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2349 | PyObject *resultobj; | |
2350 | int *arg1 = (int *) 0 ; | |
2351 | int *arg2 = (int *) 0 ; | |
2352 | int result; | |
2353 | int temp1 ; | |
2354 | int temp2 ; | |
2355 | char *kwnames[] = { | |
2356 | NULL | |
2357 | }; | |
2358 | ||
2359 | arg1 = &temp1; | |
2360 | arg2 = &temp2; | |
2361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
2362 | { | |
2363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2364 | result = (int)wxGetOsVersion(arg1,arg2); | |
2365 | ||
2366 | wxPyEndAllowThreads(__tstate); | |
2367 | if (PyErr_Occurred()) SWIG_fail; | |
2368 | } | |
15afbcd0 | 2369 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2370 | { |
2371 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2372 | resultobj = t_output_helper(resultobj,o); | |
2373 | } | |
2374 | { | |
2375 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2376 | resultobj = t_output_helper(resultobj,o); | |
2377 | } | |
2378 | return resultobj; | |
2379 | fail: | |
2380 | return NULL; | |
2381 | } | |
2382 | ||
2383 | ||
2384 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2385 | PyObject *resultobj; | |
2386 | wxString result; | |
2387 | char *kwnames[] = { | |
2388 | NULL | |
2389 | }; | |
2390 | ||
2391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2392 | { | |
2393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2394 | result = wxGetOsDescription(); | |
2395 | ||
2396 | wxPyEndAllowThreads(__tstate); | |
2397 | if (PyErr_Occurred()) SWIG_fail; | |
2398 | } | |
2399 | { | |
2400 | #if wxUSE_UNICODE | |
2401 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2402 | #else | |
2403 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2404 | #endif | |
2405 | } | |
2406 | return resultobj; | |
2407 | fail: | |
2408 | return NULL; | |
2409 | } | |
2410 | ||
2411 | ||
2412 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2413 | PyObject *resultobj; | |
2414 | long result; | |
2415 | char *kwnames[] = { | |
2416 | NULL | |
2417 | }; | |
2418 | ||
2419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2420 | { | |
2421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2422 | result = (long)wxGetFreeMemory(); | |
2423 | ||
2424 | wxPyEndAllowThreads(__tstate); | |
2425 | if (PyErr_Occurred()) SWIG_fail; | |
2426 | } | |
15afbcd0 | 2427 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2428 | return resultobj; |
2429 | fail: | |
2430 | return NULL; | |
2431 | } | |
2432 | ||
2433 | ||
2434 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2435 | PyObject *resultobj; | |
2436 | int arg1 ; | |
2437 | bool result; | |
994141e6 | 2438 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2439 | char *kwnames[] = { |
2440 | (char *) "wFlags", NULL | |
2441 | }; | |
2442 | ||
994141e6 | 2443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2444 | arg1 = (wxShutdownFlags) SWIG_AsInt(obj0); |
2445 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2446 | { |
2447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2448 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2449 | ||
2450 | wxPyEndAllowThreads(__tstate); | |
2451 | if (PyErr_Occurred()) SWIG_fail; | |
2452 | } | |
4f89f6a3 RD |
2453 | { |
2454 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2455 | } | |
d14a1e28 RD |
2456 | return resultobj; |
2457 | fail: | |
2458 | return NULL; | |
2459 | } | |
2460 | ||
2461 | ||
2462 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2463 | PyObject *resultobj; | |
2464 | int arg1 ; | |
994141e6 | 2465 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2466 | char *kwnames[] = { |
2467 | (char *) "secs", NULL | |
2468 | }; | |
2469 | ||
994141e6 | 2470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2471 | arg1 = (int) SWIG_AsInt(obj0); |
2472 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2473 | { |
2474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2475 | wxSleep(arg1); | |
2476 | ||
2477 | wxPyEndAllowThreads(__tstate); | |
2478 | if (PyErr_Occurred()) SWIG_fail; | |
2479 | } | |
2480 | Py_INCREF(Py_None); resultobj = Py_None; | |
2481 | return resultobj; | |
2482 | fail: | |
2483 | return NULL; | |
2484 | } | |
2485 | ||
2486 | ||
2487 | static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2488 | PyObject *resultobj; | |
2489 | unsigned long arg1 ; | |
2490 | PyObject * obj0 = 0 ; | |
2491 | char *kwnames[] = { | |
2492 | (char *) "milliseconds", NULL | |
2493 | }; | |
2494 | ||
2495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2496 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
2497 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2498 | { |
2499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2500 | wxUsleep(arg1); | |
2501 | ||
2502 | wxPyEndAllowThreads(__tstate); | |
2503 | if (PyErr_Occurred()) SWIG_fail; | |
2504 | } | |
2505 | Py_INCREF(Py_None); resultobj = Py_None; | |
2506 | return resultobj; | |
2507 | fail: | |
2508 | return NULL; | |
2509 | } | |
2510 | ||
2511 | ||
2512 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2513 | PyObject *resultobj; | |
2514 | bool arg1 ; | |
2515 | PyObject * obj0 = 0 ; | |
2516 | char *kwnames[] = { | |
2517 | (char *) "enable", NULL | |
2518 | }; | |
2519 | ||
2520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2521 | arg1 = (bool) SWIG_AsBool(obj0); |
2522 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2523 | { |
2524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2525 | wxEnableTopLevelWindows(arg1); | |
2526 | ||
2527 | wxPyEndAllowThreads(__tstate); | |
2528 | if (PyErr_Occurred()) SWIG_fail; | |
2529 | } | |
2530 | Py_INCREF(Py_None); resultobj = Py_None; | |
2531 | return resultobj; | |
2532 | fail: | |
2533 | return NULL; | |
2534 | } | |
2535 | ||
2536 | ||
2537 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2538 | PyObject *resultobj; | |
2539 | wxString *arg1 = 0 ; | |
2540 | wxString result; | |
e811c8ce | 2541 | bool temp1 = False ; |
d14a1e28 RD |
2542 | PyObject * obj0 = 0 ; |
2543 | char *kwnames[] = { | |
2544 | (char *) "in", NULL | |
2545 | }; | |
2546 | ||
2547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2548 | { | |
2549 | arg1 = wxString_in_helper(obj0); | |
2550 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2551 | temp1 = True; |
d14a1e28 RD |
2552 | } |
2553 | { | |
2554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2555 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2556 | ||
2557 | wxPyEndAllowThreads(__tstate); | |
2558 | if (PyErr_Occurred()) SWIG_fail; | |
2559 | } | |
2560 | { | |
2561 | #if wxUSE_UNICODE | |
2562 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2563 | #else | |
2564 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2565 | #endif | |
2566 | } | |
2567 | { | |
2568 | if (temp1) | |
2569 | delete arg1; | |
2570 | } | |
2571 | return resultobj; | |
2572 | fail: | |
2573 | { | |
2574 | if (temp1) | |
2575 | delete arg1; | |
2576 | } | |
2577 | return NULL; | |
2578 | } | |
2579 | ||
2580 | ||
2581 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2582 | PyObject *resultobj; | |
2583 | wxString result; | |
2584 | char *kwnames[] = { | |
2585 | NULL | |
2586 | }; | |
2587 | ||
2588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2589 | { | |
2590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2591 | result = wxGetEmailAddress(); | |
2592 | ||
2593 | wxPyEndAllowThreads(__tstate); | |
2594 | if (PyErr_Occurred()) SWIG_fail; | |
2595 | } | |
2596 | { | |
2597 | #if wxUSE_UNICODE | |
2598 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2599 | #else | |
2600 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2601 | #endif | |
2602 | } | |
2603 | return resultobj; | |
2604 | fail: | |
2605 | return NULL; | |
2606 | } | |
2607 | ||
2608 | ||
2609 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2610 | PyObject *resultobj; | |
2611 | wxString result; | |
2612 | char *kwnames[] = { | |
2613 | NULL | |
2614 | }; | |
2615 | ||
2616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2617 | { | |
2618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2619 | result = wxGetHostName(); | |
2620 | ||
2621 | wxPyEndAllowThreads(__tstate); | |
2622 | if (PyErr_Occurred()) SWIG_fail; | |
2623 | } | |
2624 | { | |
2625 | #if wxUSE_UNICODE | |
2626 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2627 | #else | |
2628 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2629 | #endif | |
2630 | } | |
2631 | return resultobj; | |
2632 | fail: | |
2633 | return NULL; | |
2634 | } | |
2635 | ||
2636 | ||
2637 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2638 | PyObject *resultobj; | |
2639 | wxString result; | |
2640 | char *kwnames[] = { | |
2641 | NULL | |
2642 | }; | |
2643 | ||
2644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2645 | { | |
2646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2647 | result = wxGetFullHostName(); | |
2648 | ||
2649 | wxPyEndAllowThreads(__tstate); | |
2650 | if (PyErr_Occurred()) SWIG_fail; | |
2651 | } | |
2652 | { | |
2653 | #if wxUSE_UNICODE | |
2654 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2655 | #else | |
2656 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2657 | #endif | |
2658 | } | |
2659 | return resultobj; | |
2660 | fail: | |
2661 | return NULL; | |
2662 | } | |
2663 | ||
2664 | ||
2665 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2666 | PyObject *resultobj; | |
2667 | wxString result; | |
2668 | char *kwnames[] = { | |
2669 | NULL | |
2670 | }; | |
2671 | ||
2672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2673 | { | |
2674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2675 | result = wxGetUserId(); | |
2676 | ||
2677 | wxPyEndAllowThreads(__tstate); | |
2678 | if (PyErr_Occurred()) SWIG_fail; | |
2679 | } | |
2680 | { | |
2681 | #if wxUSE_UNICODE | |
2682 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2683 | #else | |
2684 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2685 | #endif | |
2686 | } | |
2687 | return resultobj; | |
2688 | fail: | |
2689 | return NULL; | |
2690 | } | |
2691 | ||
2692 | ||
2693 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2694 | PyObject *resultobj; | |
2695 | wxString result; | |
2696 | char *kwnames[] = { | |
2697 | NULL | |
2698 | }; | |
2699 | ||
2700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2701 | { | |
2702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2703 | result = wxGetUserName(); | |
2704 | ||
2705 | wxPyEndAllowThreads(__tstate); | |
2706 | if (PyErr_Occurred()) SWIG_fail; | |
2707 | } | |
2708 | { | |
2709 | #if wxUSE_UNICODE | |
2710 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2711 | #else | |
2712 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2713 | #endif | |
2714 | } | |
2715 | return resultobj; | |
2716 | fail: | |
2717 | return NULL; | |
2718 | } | |
2719 | ||
2720 | ||
2721 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2722 | PyObject *resultobj; | |
2723 | wxString result; | |
2724 | char *kwnames[] = { | |
2725 | NULL | |
2726 | }; | |
2727 | ||
2728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2729 | { | |
2730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2731 | result = wxGetHomeDir(); | |
2732 | ||
2733 | wxPyEndAllowThreads(__tstate); | |
2734 | if (PyErr_Occurred()) SWIG_fail; | |
2735 | } | |
2736 | { | |
2737 | #if wxUSE_UNICODE | |
2738 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2739 | #else | |
2740 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2741 | #endif | |
2742 | } | |
2743 | return resultobj; | |
2744 | fail: | |
2745 | return NULL; | |
2746 | } | |
2747 | ||
2748 | ||
2749 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2750 | PyObject *resultobj; | |
2751 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2752 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2753 | wxString result; | |
e811c8ce | 2754 | bool temp1 = False ; |
d14a1e28 RD |
2755 | PyObject * obj0 = 0 ; |
2756 | char *kwnames[] = { | |
2757 | (char *) "user", NULL | |
2758 | }; | |
2759 | ||
2760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2761 | if (obj0) { | |
2762 | { | |
2763 | arg1 = wxString_in_helper(obj0); | |
2764 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2765 | temp1 = True; |
d14a1e28 RD |
2766 | } |
2767 | } | |
2768 | { | |
2769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2770 | result = wxGetUserHome((wxString const &)*arg1); | |
2771 | ||
2772 | wxPyEndAllowThreads(__tstate); | |
2773 | if (PyErr_Occurred()) SWIG_fail; | |
2774 | } | |
2775 | { | |
2776 | #if wxUSE_UNICODE | |
2777 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2778 | #else | |
2779 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2780 | #endif | |
2781 | } | |
2782 | { | |
2783 | if (temp1) | |
2784 | delete arg1; | |
2785 | } | |
2786 | return resultobj; | |
2787 | fail: | |
2788 | { | |
2789 | if (temp1) | |
2790 | delete arg1; | |
2791 | } | |
2792 | return NULL; | |
2793 | } | |
2794 | ||
2795 | ||
2796 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2797 | PyObject *resultobj; | |
2798 | unsigned long result; | |
2799 | char *kwnames[] = { | |
2800 | NULL | |
2801 | }; | |
2802 | ||
2803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2804 | { | |
2805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2806 | result = (unsigned long)wxGetProcessId(); | |
2807 | ||
2808 | wxPyEndAllowThreads(__tstate); | |
2809 | if (PyErr_Occurred()) SWIG_fail; | |
2810 | } | |
15afbcd0 | 2811 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
2812 | return resultobj; |
2813 | fail: | |
2814 | return NULL; | |
2815 | } | |
2816 | ||
2817 | ||
2818 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2819 | PyObject *resultobj; | |
2820 | char *kwnames[] = { | |
2821 | NULL | |
2822 | }; | |
2823 | ||
2824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
2825 | { | |
2826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2827 | wxTrap(); | |
2828 | ||
2829 | wxPyEndAllowThreads(__tstate); | |
2830 | if (PyErr_Occurred()) SWIG_fail; | |
2831 | } | |
2832 | Py_INCREF(Py_None); resultobj = Py_None; | |
2833 | return resultobj; | |
2834 | fail: | |
2835 | return NULL; | |
2836 | } | |
2837 | ||
2838 | ||
2839 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2840 | PyObject *resultobj; | |
2841 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
2842 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2843 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2844 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2845 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2846 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2847 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2848 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2849 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
2850 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2851 | int arg6 = (int) 0 ; | |
2852 | wxWindow *arg7 = (wxWindow *) NULL ; | |
2853 | int arg8 = (int) -1 ; | |
2854 | int arg9 = (int) -1 ; | |
2855 | wxString result; | |
e811c8ce RD |
2856 | bool temp1 = False ; |
2857 | bool temp2 = False ; | |
2858 | bool temp3 = False ; | |
2859 | bool temp4 = False ; | |
2860 | bool temp5 = False ; | |
d14a1e28 RD |
2861 | PyObject * obj0 = 0 ; |
2862 | PyObject * obj1 = 0 ; | |
2863 | PyObject * obj2 = 0 ; | |
2864 | PyObject * obj3 = 0 ; | |
2865 | PyObject * obj4 = 0 ; | |
994141e6 | 2866 | PyObject * obj5 = 0 ; |
d14a1e28 | 2867 | PyObject * obj6 = 0 ; |
994141e6 RD |
2868 | PyObject * obj7 = 0 ; |
2869 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
2870 | char *kwnames[] = { |
2871 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
2872 | }; | |
2873 | ||
994141e6 | 2874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
2875 | if (obj0) { |
2876 | { | |
2877 | arg1 = wxString_in_helper(obj0); | |
2878 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2879 | temp1 = True; |
d14a1e28 RD |
2880 | } |
2881 | } | |
2882 | if (obj1) { | |
2883 | { | |
2884 | arg2 = wxString_in_helper(obj1); | |
2885 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2886 | temp2 = True; |
d14a1e28 RD |
2887 | } |
2888 | } | |
2889 | if (obj2) { | |
2890 | { | |
2891 | arg3 = wxString_in_helper(obj2); | |
2892 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2893 | temp3 = True; |
d14a1e28 RD |
2894 | } |
2895 | } | |
2896 | if (obj3) { | |
2897 | { | |
2898 | arg4 = wxString_in_helper(obj3); | |
2899 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 2900 | temp4 = True; |
d14a1e28 RD |
2901 | } |
2902 | } | |
2903 | if (obj4) { | |
2904 | { | |
2905 | arg5 = wxString_in_helper(obj4); | |
2906 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 2907 | temp5 = True; |
d14a1e28 RD |
2908 | } |
2909 | } | |
994141e6 | 2910 | if (obj5) { |
15afbcd0 RD |
2911 | arg6 = (int) SWIG_AsInt(obj5); |
2912 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2913 | } |
d14a1e28 | 2914 | if (obj6) { |
15afbcd0 RD |
2915 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, |
2916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 2917 | } |
994141e6 | 2918 | if (obj7) { |
15afbcd0 RD |
2919 | arg8 = (int) SWIG_AsInt(obj7); |
2920 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
2921 | } |
2922 | if (obj8) { | |
15afbcd0 RD |
2923 | arg9 = (int) SWIG_AsInt(obj8); |
2924 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2925 | } |
d14a1e28 RD |
2926 | { |
2927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2928 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
2929 | ||
2930 | wxPyEndAllowThreads(__tstate); | |
2931 | if (PyErr_Occurred()) SWIG_fail; | |
2932 | } | |
2933 | { | |
2934 | #if wxUSE_UNICODE | |
2935 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2936 | #else | |
2937 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2938 | #endif | |
2939 | } | |
2940 | { | |
2941 | if (temp1) | |
2942 | delete arg1; | |
2943 | } | |
2944 | { | |
2945 | if (temp2) | |
2946 | delete arg2; | |
2947 | } | |
2948 | { | |
2949 | if (temp3) | |
2950 | delete arg3; | |
2951 | } | |
2952 | { | |
2953 | if (temp4) | |
2954 | delete arg4; | |
2955 | } | |
2956 | { | |
2957 | if (temp5) | |
2958 | delete arg5; | |
2959 | } | |
2960 | return resultobj; | |
2961 | fail: | |
2962 | { | |
2963 | if (temp1) | |
2964 | delete arg1; | |
2965 | } | |
2966 | { | |
2967 | if (temp2) | |
2968 | delete arg2; | |
2969 | } | |
2970 | { | |
2971 | if (temp3) | |
2972 | delete arg3; | |
2973 | } | |
2974 | { | |
2975 | if (temp4) | |
2976 | delete arg4; | |
2977 | } | |
2978 | { | |
2979 | if (temp5) | |
2980 | delete arg5; | |
2981 | } | |
2982 | return NULL; | |
2983 | } | |
2984 | ||
2985 | ||
2986 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2987 | PyObject *resultobj; | |
2988 | wxString *arg1 = 0 ; | |
2989 | wxString *arg2 = 0 ; | |
2990 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2991 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2992 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2993 | wxString result; | |
e811c8ce RD |
2994 | bool temp1 = False ; |
2995 | bool temp2 = False ; | |
2996 | bool temp3 = False ; | |
d14a1e28 RD |
2997 | PyObject * obj0 = 0 ; |
2998 | PyObject * obj1 = 0 ; | |
2999 | PyObject * obj2 = 0 ; | |
3000 | PyObject * obj3 = 0 ; | |
3001 | char *kwnames[] = { | |
3002 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3003 | }; | |
3004 | ||
3005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3006 | { | |
3007 | arg1 = wxString_in_helper(obj0); | |
3008 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3009 | temp1 = True; |
d14a1e28 RD |
3010 | } |
3011 | { | |
3012 | arg2 = wxString_in_helper(obj1); | |
3013 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3014 | temp2 = True; |
d14a1e28 RD |
3015 | } |
3016 | if (obj2) { | |
3017 | { | |
3018 | arg3 = wxString_in_helper(obj2); | |
3019 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3020 | temp3 = True; |
d14a1e28 RD |
3021 | } |
3022 | } | |
3023 | if (obj3) { | |
15afbcd0 RD |
3024 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3026 | } |
3027 | { | |
3028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3029 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3030 | ||
3031 | wxPyEndAllowThreads(__tstate); | |
3032 | if (PyErr_Occurred()) SWIG_fail; | |
3033 | } | |
3034 | { | |
3035 | #if wxUSE_UNICODE | |
3036 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3037 | #else | |
3038 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3039 | #endif | |
3040 | } | |
3041 | { | |
3042 | if (temp1) | |
3043 | delete arg1; | |
3044 | } | |
3045 | { | |
3046 | if (temp2) | |
3047 | delete arg2; | |
3048 | } | |
3049 | { | |
3050 | if (temp3) | |
3051 | delete arg3; | |
3052 | } | |
3053 | return resultobj; | |
3054 | fail: | |
3055 | { | |
3056 | if (temp1) | |
3057 | delete arg1; | |
3058 | } | |
3059 | { | |
3060 | if (temp2) | |
3061 | delete arg2; | |
3062 | } | |
3063 | { | |
3064 | if (temp3) | |
3065 | delete arg3; | |
3066 | } | |
3067 | return NULL; | |
3068 | } | |
3069 | ||
3070 | ||
3071 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3072 | PyObject *resultobj; | |
3073 | wxString *arg1 = 0 ; | |
3074 | wxString *arg2 = 0 ; | |
3075 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3076 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3077 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3078 | wxString result; | |
e811c8ce RD |
3079 | bool temp1 = False ; |
3080 | bool temp2 = False ; | |
3081 | bool temp3 = False ; | |
d14a1e28 RD |
3082 | PyObject * obj0 = 0 ; |
3083 | PyObject * obj1 = 0 ; | |
3084 | PyObject * obj2 = 0 ; | |
3085 | PyObject * obj3 = 0 ; | |
3086 | char *kwnames[] = { | |
3087 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3088 | }; | |
3089 | ||
3090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3091 | { | |
3092 | arg1 = wxString_in_helper(obj0); | |
3093 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3094 | temp1 = True; |
d14a1e28 RD |
3095 | } |
3096 | { | |
3097 | arg2 = wxString_in_helper(obj1); | |
3098 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3099 | temp2 = True; |
d14a1e28 RD |
3100 | } |
3101 | if (obj2) { | |
3102 | { | |
3103 | arg3 = wxString_in_helper(obj2); | |
3104 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3105 | temp3 = True; |
d14a1e28 RD |
3106 | } |
3107 | } | |
3108 | if (obj3) { | |
15afbcd0 RD |
3109 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3111 | } |
3112 | { | |
3113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3114 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3115 | ||
3116 | wxPyEndAllowThreads(__tstate); | |
3117 | if (PyErr_Occurred()) SWIG_fail; | |
3118 | } | |
3119 | { | |
3120 | #if wxUSE_UNICODE | |
3121 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3122 | #else | |
3123 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3124 | #endif | |
3125 | } | |
3126 | { | |
3127 | if (temp1) | |
3128 | delete arg1; | |
3129 | } | |
3130 | { | |
3131 | if (temp2) | |
3132 | delete arg2; | |
3133 | } | |
3134 | { | |
3135 | if (temp3) | |
3136 | delete arg3; | |
3137 | } | |
3138 | return resultobj; | |
3139 | fail: | |
3140 | { | |
3141 | if (temp1) | |
3142 | delete arg1; | |
3143 | } | |
3144 | { | |
3145 | if (temp2) | |
3146 | delete arg2; | |
3147 | } | |
3148 | { | |
3149 | if (temp3) | |
3150 | delete arg3; | |
3151 | } | |
3152 | return NULL; | |
3153 | } | |
3154 | ||
3155 | ||
3156 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3157 | PyObject *resultobj; | |
3158 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
3159 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3160 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3161 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3162 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
3163 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3164 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3165 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3166 | wxString result; | |
e811c8ce RD |
3167 | bool temp1 = False ; |
3168 | bool temp2 = False ; | |
d14a1e28 RD |
3169 | wxPoint temp4 ; |
3170 | PyObject * obj0 = 0 ; | |
3171 | PyObject * obj1 = 0 ; | |
994141e6 | 3172 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3173 | PyObject * obj3 = 0 ; |
3174 | PyObject * obj4 = 0 ; | |
3175 | char *kwnames[] = { | |
3176 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
3177 | }; | |
3178 | ||
994141e6 | 3179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
3180 | if (obj0) { |
3181 | { | |
3182 | arg1 = wxString_in_helper(obj0); | |
3183 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3184 | temp1 = True; |
d14a1e28 RD |
3185 | } |
3186 | } | |
3187 | if (obj1) { | |
3188 | { | |
3189 | arg2 = wxString_in_helper(obj1); | |
3190 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3191 | temp2 = True; |
d14a1e28 RD |
3192 | } |
3193 | } | |
994141e6 | 3194 | if (obj2) { |
15afbcd0 RD |
3195 | arg3 = (long) SWIG_AsLong(obj2); |
3196 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3197 | } |
d14a1e28 RD |
3198 | if (obj3) { |
3199 | { | |
3200 | arg4 = &temp4; | |
3201 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3202 | } | |
3203 | } | |
3204 | if (obj4) { | |
15afbcd0 RD |
3205 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3207 | } |
3208 | { | |
3209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3210 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
3211 | ||
3212 | wxPyEndAllowThreads(__tstate); | |
3213 | if (PyErr_Occurred()) SWIG_fail; | |
3214 | } | |
3215 | { | |
3216 | #if wxUSE_UNICODE | |
3217 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3218 | #else | |
3219 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3220 | #endif | |
3221 | } | |
3222 | { | |
3223 | if (temp1) | |
3224 | delete arg1; | |
3225 | } | |
3226 | { | |
3227 | if (temp2) | |
3228 | delete arg2; | |
3229 | } | |
3230 | return resultobj; | |
3231 | fail: | |
3232 | { | |
3233 | if (temp1) | |
3234 | delete arg1; | |
3235 | } | |
3236 | { | |
3237 | if (temp2) | |
3238 | delete arg2; | |
3239 | } | |
3240 | return NULL; | |
3241 | } | |
3242 | ||
3243 | ||
3244 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3245 | PyObject *resultobj; | |
3246 | wxString *arg1 = 0 ; | |
3247 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3248 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3249 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3250 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3251 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3252 | int arg5 = (int) -1 ; | |
3253 | int arg6 = (int) -1 ; | |
e811c8ce | 3254 | bool arg7 = (bool) True ; |
d14a1e28 | 3255 | wxString result; |
e811c8ce RD |
3256 | bool temp1 = False ; |
3257 | bool temp2 = False ; | |
3258 | bool temp3 = False ; | |
d14a1e28 RD |
3259 | PyObject * obj0 = 0 ; |
3260 | PyObject * obj1 = 0 ; | |
3261 | PyObject * obj2 = 0 ; | |
3262 | PyObject * obj3 = 0 ; | |
994141e6 RD |
3263 | PyObject * obj4 = 0 ; |
3264 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
3265 | PyObject * obj6 = 0 ; |
3266 | char *kwnames[] = { | |
3267 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
3268 | }; | |
3269 | ||
994141e6 | 3270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
3271 | { |
3272 | arg1 = wxString_in_helper(obj0); | |
3273 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3274 | temp1 = True; |
d14a1e28 RD |
3275 | } |
3276 | if (obj1) { | |
3277 | { | |
3278 | arg2 = wxString_in_helper(obj1); | |
3279 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3280 | temp2 = True; |
d14a1e28 RD |
3281 | } |
3282 | } | |
3283 | if (obj2) { | |
3284 | { | |
3285 | arg3 = wxString_in_helper(obj2); | |
3286 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3287 | temp3 = True; |
d14a1e28 RD |
3288 | } |
3289 | } | |
3290 | if (obj3) { | |
15afbcd0 RD |
3291 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3293 | } |
994141e6 | 3294 | if (obj4) { |
15afbcd0 RD |
3295 | arg5 = (int) SWIG_AsInt(obj4); |
3296 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3297 | } |
3298 | if (obj5) { | |
15afbcd0 RD |
3299 | arg6 = (int) SWIG_AsInt(obj5); |
3300 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3301 | } |
d14a1e28 | 3302 | if (obj6) { |
15afbcd0 RD |
3303 | arg7 = (bool) SWIG_AsBool(obj6); |
3304 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3305 | } |
3306 | { | |
3307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3308 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
3309 | ||
3310 | wxPyEndAllowThreads(__tstate); | |
3311 | if (PyErr_Occurred()) SWIG_fail; | |
3312 | } | |
3313 | { | |
3314 | #if wxUSE_UNICODE | |
3315 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3316 | #else | |
3317 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3318 | #endif | |
3319 | } | |
3320 | { | |
3321 | if (temp1) | |
3322 | delete arg1; | |
3323 | } | |
3324 | { | |
3325 | if (temp2) | |
3326 | delete arg2; | |
3327 | } | |
3328 | { | |
3329 | if (temp3) | |
3330 | delete arg3; | |
3331 | } | |
3332 | return resultobj; | |
3333 | fail: | |
3334 | { | |
3335 | if (temp1) | |
3336 | delete arg1; | |
3337 | } | |
3338 | { | |
3339 | if (temp2) | |
3340 | delete arg2; | |
3341 | } | |
3342 | { | |
3343 | if (temp3) | |
3344 | delete arg3; | |
3345 | } | |
3346 | return NULL; | |
3347 | } | |
3348 | ||
3349 | ||
3350 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3351 | PyObject *resultobj; | |
3352 | wxString *arg1 = 0 ; | |
3353 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3354 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3355 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3356 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3357 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3358 | wxString result; | |
e811c8ce RD |
3359 | bool temp1 = False ; |
3360 | bool temp2 = False ; | |
3361 | bool temp3 = False ; | |
d14a1e28 RD |
3362 | PyObject * obj0 = 0 ; |
3363 | PyObject * obj1 = 0 ; | |
3364 | PyObject * obj2 = 0 ; | |
3365 | PyObject * obj3 = 0 ; | |
3366 | char *kwnames[] = { | |
3367 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3368 | }; | |
3369 | ||
3370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3371 | { | |
3372 | arg1 = wxString_in_helper(obj0); | |
3373 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3374 | temp1 = True; |
d14a1e28 RD |
3375 | } |
3376 | if (obj1) { | |
3377 | { | |
3378 | arg2 = wxString_in_helper(obj1); | |
3379 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3380 | temp2 = True; |
d14a1e28 RD |
3381 | } |
3382 | } | |
3383 | if (obj2) { | |
3384 | { | |
3385 | arg3 = wxString_in_helper(obj2); | |
3386 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3387 | temp3 = True; |
d14a1e28 RD |
3388 | } |
3389 | } | |
3390 | if (obj3) { | |
15afbcd0 RD |
3391 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3393 | } |
3394 | { | |
3395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3396 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3397 | ||
3398 | wxPyEndAllowThreads(__tstate); | |
3399 | if (PyErr_Occurred()) SWIG_fail; | |
3400 | } | |
3401 | { | |
3402 | #if wxUSE_UNICODE | |
3403 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3404 | #else | |
3405 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3406 | #endif | |
3407 | } | |
3408 | { | |
3409 | if (temp1) | |
3410 | delete arg1; | |
3411 | } | |
3412 | { | |
3413 | if (temp2) | |
3414 | delete arg2; | |
3415 | } | |
3416 | { | |
3417 | if (temp3) | |
3418 | delete arg3; | |
3419 | } | |
3420 | return resultobj; | |
3421 | fail: | |
3422 | { | |
3423 | if (temp1) | |
3424 | delete arg1; | |
3425 | } | |
3426 | { | |
3427 | if (temp2) | |
3428 | delete arg2; | |
3429 | } | |
3430 | { | |
3431 | if (temp3) | |
3432 | delete arg3; | |
3433 | } | |
3434 | return NULL; | |
3435 | } | |
3436 | ||
3437 | ||
3438 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3439 | PyObject *resultobj; | |
3440 | wxString *arg1 = 0 ; | |
3441 | wxString *arg2 = 0 ; | |
3442 | int arg3 ; | |
3443 | wxString *arg4 = (wxString *) 0 ; | |
3444 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3445 | int arg6 = (int) -1 ; | |
3446 | int arg7 = (int) -1 ; | |
e811c8ce | 3447 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3448 | int arg9 = (int) 150 ; |
3449 | int arg10 = (int) 200 ; | |
3450 | wxString result; | |
e811c8ce RD |
3451 | bool temp1 = False ; |
3452 | bool temp2 = False ; | |
d14a1e28 RD |
3453 | PyObject * obj0 = 0 ; |
3454 | PyObject * obj1 = 0 ; | |
3455 | PyObject * obj2 = 0 ; | |
3456 | PyObject * obj3 = 0 ; | |
994141e6 RD |
3457 | PyObject * obj4 = 0 ; |
3458 | PyObject * obj5 = 0 ; | |
d14a1e28 | 3459 | PyObject * obj6 = 0 ; |
994141e6 RD |
3460 | PyObject * obj7 = 0 ; |
3461 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
3462 | char *kwnames[] = { |
3463 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3464 | }; | |
3465 | ||
994141e6 | 3466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3467 | { |
3468 | arg1 = wxString_in_helper(obj0); | |
3469 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3470 | temp1 = True; |
d14a1e28 RD |
3471 | } |
3472 | { | |
3473 | arg2 = wxString_in_helper(obj1); | |
3474 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3475 | temp2 = True; |
d14a1e28 RD |
3476 | } |
3477 | { | |
3478 | arg3 = PyList_Size(obj2); | |
3479 | arg4 = wxString_LIST_helper(obj2); | |
3480 | if (arg4 == NULL) SWIG_fail; | |
3481 | } | |
3482 | if (obj3) { | |
15afbcd0 RD |
3483 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3485 | } |
994141e6 | 3486 | if (obj4) { |
15afbcd0 RD |
3487 | arg6 = (int) SWIG_AsInt(obj4); |
3488 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3489 | } |
3490 | if (obj5) { | |
15afbcd0 RD |
3491 | arg7 = (int) SWIG_AsInt(obj5); |
3492 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3493 | } |
d14a1e28 | 3494 | if (obj6) { |
15afbcd0 RD |
3495 | arg8 = (bool) SWIG_AsBool(obj6); |
3496 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3497 | } |
3498 | if (obj7) { | |
15afbcd0 RD |
3499 | arg9 = (int) SWIG_AsInt(obj7); |
3500 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3501 | } |
3502 | if (obj8) { | |
15afbcd0 RD |
3503 | arg10 = (int) SWIG_AsInt(obj8); |
3504 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3505 | } |
3506 | { | |
3507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3508 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3509 | ||
3510 | wxPyEndAllowThreads(__tstate); | |
3511 | if (PyErr_Occurred()) SWIG_fail; | |
3512 | } | |
3513 | { | |
3514 | #if wxUSE_UNICODE | |
3515 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3516 | #else | |
3517 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3518 | #endif | |
3519 | } | |
3520 | { | |
3521 | if (temp1) | |
3522 | delete arg1; | |
3523 | } | |
3524 | { | |
3525 | if (temp2) | |
3526 | delete arg2; | |
3527 | } | |
3528 | { | |
3529 | if (arg4) delete [] arg4; | |
3530 | } | |
3531 | return resultobj; | |
3532 | fail: | |
3533 | { | |
3534 | if (temp1) | |
3535 | delete arg1; | |
3536 | } | |
3537 | { | |
3538 | if (temp2) | |
3539 | delete arg2; | |
3540 | } | |
3541 | { | |
3542 | if (arg4) delete [] arg4; | |
3543 | } | |
3544 | return NULL; | |
3545 | } | |
3546 | ||
3547 | ||
3548 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3549 | PyObject *resultobj; | |
3550 | wxString *arg1 = 0 ; | |
3551 | wxString *arg2 = 0 ; | |
3552 | int arg3 ; | |
3553 | wxString *arg4 = (wxString *) 0 ; | |
3554 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3555 | int arg6 = (int) -1 ; | |
3556 | int arg7 = (int) -1 ; | |
e811c8ce | 3557 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3558 | int arg9 = (int) 150 ; |
3559 | int arg10 = (int) 200 ; | |
3560 | int result; | |
e811c8ce RD |
3561 | bool temp1 = False ; |
3562 | bool temp2 = False ; | |
d14a1e28 RD |
3563 | PyObject * obj0 = 0 ; |
3564 | PyObject * obj1 = 0 ; | |
3565 | PyObject * obj2 = 0 ; | |
3566 | PyObject * obj3 = 0 ; | |
994141e6 RD |
3567 | PyObject * obj4 = 0 ; |
3568 | PyObject * obj5 = 0 ; | |
d14a1e28 | 3569 | PyObject * obj6 = 0 ; |
994141e6 RD |
3570 | PyObject * obj7 = 0 ; |
3571 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
3572 | char *kwnames[] = { |
3573 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3574 | }; | |
3575 | ||
994141e6 | 3576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3577 | { |
3578 | arg1 = wxString_in_helper(obj0); | |
3579 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3580 | temp1 = True; |
d14a1e28 RD |
3581 | } |
3582 | { | |
3583 | arg2 = wxString_in_helper(obj1); | |
3584 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3585 | temp2 = True; |
d14a1e28 RD |
3586 | } |
3587 | { | |
3588 | arg3 = PyList_Size(obj2); | |
3589 | arg4 = wxString_LIST_helper(obj2); | |
3590 | if (arg4 == NULL) SWIG_fail; | |
3591 | } | |
3592 | if (obj3) { | |
15afbcd0 RD |
3593 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3595 | } |
994141e6 | 3596 | if (obj4) { |
15afbcd0 RD |
3597 | arg6 = (int) SWIG_AsInt(obj4); |
3598 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3599 | } |
3600 | if (obj5) { | |
15afbcd0 RD |
3601 | arg7 = (int) SWIG_AsInt(obj5); |
3602 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3603 | } |
d14a1e28 | 3604 | if (obj6) { |
15afbcd0 RD |
3605 | arg8 = (bool) SWIG_AsBool(obj6); |
3606 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3607 | } |
3608 | if (obj7) { | |
15afbcd0 RD |
3609 | arg9 = (int) SWIG_AsInt(obj7); |
3610 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3611 | } |
3612 | if (obj8) { | |
15afbcd0 RD |
3613 | arg10 = (int) SWIG_AsInt(obj8); |
3614 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3615 | } |
3616 | { | |
3617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3618 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3619 | ||
3620 | wxPyEndAllowThreads(__tstate); | |
3621 | if (PyErr_Occurred()) SWIG_fail; | |
3622 | } | |
15afbcd0 | 3623 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3624 | { |
3625 | if (temp1) | |
3626 | delete arg1; | |
3627 | } | |
3628 | { | |
3629 | if (temp2) | |
3630 | delete arg2; | |
3631 | } | |
3632 | { | |
3633 | if (arg4) delete [] arg4; | |
3634 | } | |
3635 | return resultobj; | |
3636 | fail: | |
3637 | { | |
3638 | if (temp1) | |
3639 | delete arg1; | |
3640 | } | |
3641 | { | |
3642 | if (temp2) | |
3643 | delete arg2; | |
3644 | } | |
3645 | { | |
3646 | if (arg4) delete [] arg4; | |
3647 | } | |
3648 | return NULL; | |
3649 | } | |
3650 | ||
3651 | ||
3652 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3653 | PyObject *resultobj; | |
3654 | wxString *arg1 = 0 ; | |
3655 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3656 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3657 | int arg3 = (int) wxOK|wxCENTRE ; | |
3658 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3659 | int arg5 = (int) -1 ; | |
3660 | int arg6 = (int) -1 ; | |
3661 | int result; | |
e811c8ce RD |
3662 | bool temp1 = False ; |
3663 | bool temp2 = False ; | |
d14a1e28 RD |
3664 | PyObject * obj0 = 0 ; |
3665 | PyObject * obj1 = 0 ; | |
994141e6 | 3666 | PyObject * obj2 = 0 ; |
d14a1e28 | 3667 | PyObject * obj3 = 0 ; |
994141e6 RD |
3668 | PyObject * obj4 = 0 ; |
3669 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
3670 | char *kwnames[] = { |
3671 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3672 | }; | |
3673 | ||
994141e6 | 3674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
3675 | { |
3676 | arg1 = wxString_in_helper(obj0); | |
3677 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3678 | temp1 = True; |
d14a1e28 RD |
3679 | } |
3680 | if (obj1) { | |
3681 | { | |
3682 | arg2 = wxString_in_helper(obj1); | |
3683 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3684 | temp2 = True; |
d14a1e28 RD |
3685 | } |
3686 | } | |
994141e6 | 3687 | if (obj2) { |
15afbcd0 RD |
3688 | arg3 = (int) SWIG_AsInt(obj2); |
3689 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3690 | } |
d14a1e28 | 3691 | if (obj3) { |
15afbcd0 RD |
3692 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3694 | } |
994141e6 | 3695 | if (obj4) { |
15afbcd0 RD |
3696 | arg5 = (int) SWIG_AsInt(obj4); |
3697 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3698 | } |
3699 | if (obj5) { | |
15afbcd0 RD |
3700 | arg6 = (int) SWIG_AsInt(obj5); |
3701 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3702 | } |
d14a1e28 RD |
3703 | { |
3704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3705 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3706 | ||
3707 | wxPyEndAllowThreads(__tstate); | |
3708 | if (PyErr_Occurred()) SWIG_fail; | |
3709 | } | |
15afbcd0 | 3710 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3711 | { |
3712 | if (temp1) | |
3713 | delete arg1; | |
3714 | } | |
3715 | { | |
3716 | if (temp2) | |
3717 | delete arg2; | |
3718 | } | |
3719 | return resultobj; | |
3720 | fail: | |
3721 | { | |
3722 | if (temp1) | |
3723 | delete arg1; | |
3724 | } | |
3725 | { | |
3726 | if (temp2) | |
3727 | delete arg2; | |
3728 | } | |
3729 | return NULL; | |
3730 | } | |
3731 | ||
3732 | ||
3733 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3734 | PyObject *resultobj; | |
3735 | wxString *arg1 = 0 ; | |
3736 | wxString *arg2 = 0 ; | |
3737 | wxString *arg3 = 0 ; | |
3738 | long arg4 ; | |
3739 | long arg5 = (long) 0 ; | |
3740 | long arg6 = (long) 100 ; | |
3741 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3742 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3743 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3744 | long result; | |
e811c8ce RD |
3745 | bool temp1 = False ; |
3746 | bool temp2 = False ; | |
3747 | bool temp3 = False ; | |
d14a1e28 RD |
3748 | wxPoint temp8 ; |
3749 | PyObject * obj0 = 0 ; | |
3750 | PyObject * obj1 = 0 ; | |
3751 | PyObject * obj2 = 0 ; | |
994141e6 RD |
3752 | PyObject * obj3 = 0 ; |
3753 | PyObject * obj4 = 0 ; | |
3754 | PyObject * obj5 = 0 ; | |
3755 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
3756 | PyObject * obj7 = 0 ; |
3757 | char *kwnames[] = { | |
3758 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3759 | }; | |
3760 | ||
994141e6 | 3761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
3762 | { |
3763 | arg1 = wxString_in_helper(obj0); | |
3764 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3765 | temp1 = True; |
d14a1e28 RD |
3766 | } |
3767 | { | |
3768 | arg2 = wxString_in_helper(obj1); | |
3769 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3770 | temp2 = True; |
d14a1e28 RD |
3771 | } |
3772 | { | |
3773 | arg3 = wxString_in_helper(obj2); | |
3774 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3775 | temp3 = True; |
d14a1e28 | 3776 | } |
15afbcd0 RD |
3777 | arg4 = (long) SWIG_AsLong(obj3); |
3778 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3779 | if (obj4) { |
15afbcd0 RD |
3780 | arg5 = (long) SWIG_AsLong(obj4); |
3781 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3782 | } |
3783 | if (obj5) { | |
15afbcd0 RD |
3784 | arg6 = (long) SWIG_AsLong(obj5); |
3785 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3786 | } |
d14a1e28 | 3787 | if (obj6) { |
15afbcd0 RD |
3788 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, |
3789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3790 | } |
3791 | if (obj7) { | |
3792 | { | |
3793 | arg8 = &temp8; | |
3794 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3795 | } | |
3796 | } | |
3797 | { | |
3798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3799 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3800 | ||
3801 | wxPyEndAllowThreads(__tstate); | |
3802 | if (PyErr_Occurred()) SWIG_fail; | |
3803 | } | |
15afbcd0 | 3804 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3805 | { |
3806 | if (temp1) | |
3807 | delete arg1; | |
3808 | } | |
3809 | { | |
3810 | if (temp2) | |
3811 | delete arg2; | |
3812 | } | |
3813 | { | |
3814 | if (temp3) | |
3815 | delete arg3; | |
3816 | } | |
3817 | return resultobj; | |
3818 | fail: | |
3819 | { | |
3820 | if (temp1) | |
3821 | delete arg1; | |
3822 | } | |
3823 | { | |
3824 | if (temp2) | |
3825 | delete arg2; | |
3826 | } | |
3827 | { | |
3828 | if (temp3) | |
3829 | delete arg3; | |
3830 | } | |
3831 | return NULL; | |
3832 | } | |
3833 | ||
3834 | ||
3835 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3836 | PyObject *resultobj; | |
3837 | bool result; | |
3838 | char *kwnames[] = { | |
3839 | NULL | |
3840 | }; | |
3841 | ||
3842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
3843 | { | |
3844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3845 | result = (bool)wxColourDisplay(); | |
3846 | ||
3847 | wxPyEndAllowThreads(__tstate); | |
3848 | if (PyErr_Occurred()) SWIG_fail; | |
3849 | } | |
4f89f6a3 RD |
3850 | { |
3851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3852 | } | |
d14a1e28 RD |
3853 | return resultobj; |
3854 | fail: | |
3855 | return NULL; | |
3856 | } | |
3857 | ||
3858 | ||
3859 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3860 | PyObject *resultobj; | |
3861 | int result; | |
3862 | char *kwnames[] = { | |
3863 | NULL | |
3864 | }; | |
3865 | ||
3866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
3867 | { | |
3868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3869 | result = (int)wxDisplayDepth(); | |
3870 | ||
3871 | wxPyEndAllowThreads(__tstate); | |
3872 | if (PyErr_Occurred()) SWIG_fail; | |
3873 | } | |
15afbcd0 | 3874 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3875 | return resultobj; |
3876 | fail: | |
3877 | return NULL; | |
3878 | } | |
3879 | ||
3880 | ||
3881 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3882 | PyObject *resultobj; | |
3883 | int result; | |
3884 | char *kwnames[] = { | |
3885 | NULL | |
3886 | }; | |
3887 | ||
3888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
3889 | { | |
3890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3891 | result = (int)wxGetDisplayDepth(); | |
3892 | ||
3893 | wxPyEndAllowThreads(__tstate); | |
3894 | if (PyErr_Occurred()) SWIG_fail; | |
3895 | } | |
15afbcd0 | 3896 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3897 | return resultobj; |
3898 | fail: | |
3899 | return NULL; | |
3900 | } | |
3901 | ||
3902 | ||
3903 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3904 | PyObject *resultobj; | |
3905 | int *arg1 = (int *) 0 ; | |
3906 | int *arg2 = (int *) 0 ; | |
3907 | int temp1 ; | |
3908 | int temp2 ; | |
3909 | char *kwnames[] = { | |
3910 | NULL | |
3911 | }; | |
3912 | ||
3913 | arg1 = &temp1; | |
3914 | arg2 = &temp2; | |
3915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
3916 | { | |
3917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3918 | wxDisplaySize(arg1,arg2); | |
3919 | ||
3920 | wxPyEndAllowThreads(__tstate); | |
3921 | if (PyErr_Occurred()) SWIG_fail; | |
3922 | } | |
3923 | Py_INCREF(Py_None); resultobj = Py_None; | |
3924 | { | |
3925 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3926 | resultobj = t_output_helper(resultobj,o); | |
3927 | } | |
3928 | { | |
3929 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3930 | resultobj = t_output_helper(resultobj,o); | |
3931 | } | |
3932 | return resultobj; | |
3933 | fail: | |
3934 | return NULL; | |
3935 | } | |
3936 | ||
3937 | ||
3938 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3939 | PyObject *resultobj; | |
3940 | wxSize result; | |
3941 | char *kwnames[] = { | |
3942 | NULL | |
3943 | }; | |
3944 | ||
3945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
3946 | { | |
3947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3948 | result = wxGetDisplaySize(); | |
3949 | ||
3950 | wxPyEndAllowThreads(__tstate); | |
3951 | if (PyErr_Occurred()) SWIG_fail; | |
3952 | } | |
3953 | { | |
3954 | wxSize * resultptr; | |
3955 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 3956 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
3957 | } |
3958 | return resultobj; | |
3959 | fail: | |
3960 | return NULL; | |
3961 | } | |
3962 | ||
3963 | ||
3964 | static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3965 | PyObject *resultobj; | |
3966 | int *arg1 = (int *) 0 ; | |
3967 | int *arg2 = (int *) 0 ; | |
3968 | int temp1 ; | |
3969 | int temp2 ; | |
3970 | char *kwnames[] = { | |
3971 | NULL | |
3972 | }; | |
3973 | ||
3974 | arg1 = &temp1; | |
3975 | arg2 = &temp2; | |
3976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
3977 | { | |
3978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3979 | wxDisplaySizeMM(arg1,arg2); | |
3980 | ||
3981 | wxPyEndAllowThreads(__tstate); | |
3982 | if (PyErr_Occurred()) SWIG_fail; | |
3983 | } | |
3984 | Py_INCREF(Py_None); resultobj = Py_None; | |
3985 | { | |
3986 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3987 | resultobj = t_output_helper(resultobj,o); | |
3988 | } | |
3989 | { | |
3990 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3991 | resultobj = t_output_helper(resultobj,o); | |
3992 | } | |
3993 | return resultobj; | |
3994 | fail: | |
3995 | return NULL; | |
3996 | } | |
3997 | ||
3998 | ||
3999 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4000 | PyObject *resultobj; | |
4001 | wxSize result; | |
4002 | char *kwnames[] = { | |
4003 | NULL | |
4004 | }; | |
4005 | ||
4006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
4007 | { | |
4008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4009 | result = wxGetDisplaySizeMM(); | |
4010 | ||
4011 | wxPyEndAllowThreads(__tstate); | |
4012 | if (PyErr_Occurred()) SWIG_fail; | |
4013 | } | |
4014 | { | |
4015 | wxSize * resultptr; | |
4016 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 4017 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
4018 | } |
4019 | return resultobj; | |
4020 | fail: | |
4021 | return NULL; | |
4022 | } | |
4023 | ||
4024 | ||
4025 | static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4026 | PyObject *resultobj; | |
4027 | int *arg1 = (int *) 0 ; | |
4028 | int *arg2 = (int *) 0 ; | |
4029 | int *arg3 = (int *) 0 ; | |
4030 | int *arg4 = (int *) 0 ; | |
4031 | int temp1 ; | |
4032 | int temp2 ; | |
4033 | int temp3 ; | |
4034 | int temp4 ; | |
4035 | char *kwnames[] = { | |
4036 | NULL | |
4037 | }; | |
4038 | ||
4039 | arg1 = &temp1; | |
4040 | arg2 = &temp2; | |
4041 | arg3 = &temp3; | |
4042 | arg4 = &temp4; | |
4043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
4044 | { | |
4045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4046 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
4047 | ||
4048 | wxPyEndAllowThreads(__tstate); | |
4049 | if (PyErr_Occurred()) SWIG_fail; | |
4050 | } | |
4051 | Py_INCREF(Py_None); resultobj = Py_None; | |
4052 | { | |
4053 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
4054 | resultobj = t_output_helper(resultobj,o); | |
4055 | } | |
4056 | { | |
4057 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4058 | resultobj = t_output_helper(resultobj,o); | |
4059 | } | |
4060 | { | |
4061 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4062 | resultobj = t_output_helper(resultobj,o); | |
4063 | } | |
4064 | { | |
4065 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
4066 | resultobj = t_output_helper(resultobj,o); | |
4067 | } | |
4068 | return resultobj; | |
4069 | fail: | |
4070 | return NULL; | |
4071 | } | |
4072 | ||
4073 | ||
4074 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4075 | PyObject *resultobj; | |
4076 | wxRect result; | |
4077 | char *kwnames[] = { | |
4078 | NULL | |
4079 | }; | |
4080 | ||
4081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
4082 | { | |
4083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4084 | result = wxGetClientDisplayRect(); | |
4085 | ||
4086 | wxPyEndAllowThreads(__tstate); | |
4087 | if (PyErr_Occurred()) SWIG_fail; | |
4088 | } | |
4089 | { | |
4090 | wxRect * resultptr; | |
4091 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 4092 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
4093 | } |
4094 | return resultobj; | |
4095 | fail: | |
4096 | return NULL; | |
4097 | } | |
4098 | ||
4099 | ||
4100 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4101 | PyObject *resultobj; | |
4102 | wxCursor *arg1 = 0 ; | |
4103 | PyObject * obj0 = 0 ; | |
4104 | char *kwnames[] = { | |
4105 | (char *) "cursor", NULL | |
4106 | }; | |
4107 | ||
4108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4110 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4111 | SWIG_fail; | |
d14a1e28 | 4112 | if (arg1 == NULL) { |
15afbcd0 RD |
4113 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4114 | SWIG_fail; | |
d14a1e28 RD |
4115 | } |
4116 | { | |
4117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4118 | wxSetCursor(*arg1); | |
4119 | ||
4120 | wxPyEndAllowThreads(__tstate); | |
4121 | if (PyErr_Occurred()) SWIG_fail; | |
4122 | } | |
4123 | Py_INCREF(Py_None); resultobj = Py_None; | |
4124 | return resultobj; | |
4125 | fail: | |
4126 | return NULL; | |
4127 | } | |
4128 | ||
4129 | ||
4130 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4131 | PyObject *resultobj; | |
4132 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4133 | PyObject * obj0 = 0 ; | |
4134 | char *kwnames[] = { | |
4135 | (char *) "cursor", NULL | |
4136 | }; | |
4137 | ||
4138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
4139 | if (obj0) { | |
15afbcd0 RD |
4140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4142 | } |
4143 | { | |
4144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4145 | wxBeginBusyCursor(arg1); | |
4146 | ||
4147 | wxPyEndAllowThreads(__tstate); | |
4148 | if (PyErr_Occurred()) SWIG_fail; | |
4149 | } | |
4150 | Py_INCREF(Py_None); resultobj = Py_None; | |
4151 | return resultobj; | |
4152 | fail: | |
4153 | return NULL; | |
4154 | } | |
4155 | ||
4156 | ||
4157 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4158 | PyObject *resultobj; | |
4159 | wxWindow *result; | |
4160 | char *kwnames[] = { | |
4161 | NULL | |
4162 | }; | |
4163 | ||
4164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
4165 | { | |
4166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4167 | result = (wxWindow *)wxGetActiveWindow(); | |
4168 | ||
4169 | wxPyEndAllowThreads(__tstate); | |
4170 | if (PyErr_Occurred()) SWIG_fail; | |
4171 | } | |
4172 | { | |
4173 | resultobj = wxPyMake_wxObject(result); | |
4174 | } | |
4175 | return resultobj; | |
4176 | fail: | |
4177 | return NULL; | |
4178 | } | |
4179 | ||
4180 | ||
4181 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4182 | PyObject *resultobj; | |
4183 | wxPoint *arg1 = 0 ; | |
4184 | wxWindow *result; | |
4185 | wxPoint temp1 ; | |
4186 | PyObject * obj0 = 0 ; | |
4187 | char *kwnames[] = { | |
4188 | (char *) "pt", NULL | |
4189 | }; | |
4190 | ||
4191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4192 | { | |
4193 | arg1 = &temp1; | |
4194 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4195 | } | |
4196 | { | |
4197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4198 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
4199 | ||
4200 | wxPyEndAllowThreads(__tstate); | |
4201 | if (PyErr_Occurred()) SWIG_fail; | |
4202 | } | |
4203 | { | |
4204 | resultobj = wxPyMake_wxObject(result); | |
4205 | } | |
4206 | return resultobj; | |
4207 | fail: | |
4208 | return NULL; | |
4209 | } | |
4210 | ||
4211 | ||
4212 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4213 | PyObject *resultobj; | |
4214 | wxPoint *arg1 = 0 ; | |
4215 | wxWindow *result; | |
4216 | wxPoint temp1 ; | |
4217 | PyObject * obj0 = 0 ; | |
4218 | char *kwnames[] = { | |
4219 | (char *) "pt", NULL | |
4220 | }; | |
4221 | ||
4222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4223 | { | |
4224 | arg1 = &temp1; | |
4225 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4226 | } | |
4227 | { | |
4228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4229 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
4230 | ||
4231 | wxPyEndAllowThreads(__tstate); | |
4232 | if (PyErr_Occurred()) SWIG_fail; | |
4233 | } | |
4234 | { | |
4235 | resultobj = wxPyMake_wxObject(result); | |
4236 | } | |
4237 | return resultobj; | |
4238 | fail: | |
4239 | return NULL; | |
4240 | } | |
4241 | ||
4242 | ||
4243 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4244 | PyObject *resultobj; | |
4245 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4246 | wxWindow *result; | |
4247 | PyObject * obj0 = 0 ; | |
4248 | char *kwnames[] = { | |
4249 | (char *) "win", NULL | |
4250 | }; | |
4251 | ||
4252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4255 | { |
4256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4257 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
4258 | ||
4259 | wxPyEndAllowThreads(__tstate); | |
4260 | if (PyErr_Occurred()) SWIG_fail; | |
4261 | } | |
4262 | { | |
4263 | resultobj = wxPyMake_wxObject(result); | |
4264 | } | |
4265 | return resultobj; | |
4266 | fail: | |
4267 | return NULL; | |
4268 | } | |
4269 | ||
4270 | ||
39f61e25 RD |
4271 | static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) { |
4272 | PyObject *resultobj; | |
4273 | int arg1 ; | |
4274 | bool result; | |
994141e6 | 4275 | PyObject * obj0 = 0 ; |
39f61e25 RD |
4276 | char *kwnames[] = { |
4277 | (char *) "key", NULL | |
4278 | }; | |
4279 | ||
994141e6 | 4280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4281 | arg1 = (wxKeyCode) SWIG_AsInt(obj0); |
4282 | if (PyErr_Occurred()) SWIG_fail; | |
39f61e25 RD |
4283 | { |
4284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4285 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
4286 | ||
4287 | wxPyEndAllowThreads(__tstate); | |
4288 | if (PyErr_Occurred()) SWIG_fail; | |
4289 | } | |
4f89f6a3 RD |
4290 | { |
4291 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4292 | } | |
39f61e25 RD |
4293 | return resultobj; |
4294 | fail: | |
4295 | return NULL; | |
4296 | } | |
4297 | ||
4298 | ||
d14a1e28 RD |
4299 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
4300 | PyObject *resultobj; | |
4301 | char *kwnames[] = { | |
4302 | NULL | |
4303 | }; | |
4304 | ||
4305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4306 | { | |
4307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4308 | wxWakeUpMainThread(); | |
4309 | ||
4310 | wxPyEndAllowThreads(__tstate); | |
4311 | if (PyErr_Occurred()) SWIG_fail; | |
4312 | } | |
4313 | Py_INCREF(Py_None); resultobj = Py_None; | |
4314 | return resultobj; | |
4315 | fail: | |
4316 | return NULL; | |
4317 | } | |
4318 | ||
4319 | ||
4320 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4321 | PyObject *resultobj; | |
4322 | char *kwnames[] = { | |
4323 | NULL | |
4324 | }; | |
4325 | ||
4326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4327 | { | |
4328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4329 | wxMutexGuiEnter(); | |
4330 | ||
4331 | wxPyEndAllowThreads(__tstate); | |
4332 | if (PyErr_Occurred()) SWIG_fail; | |
4333 | } | |
4334 | Py_INCREF(Py_None); resultobj = Py_None; | |
4335 | return resultobj; | |
4336 | fail: | |
4337 | return NULL; | |
4338 | } | |
4339 | ||
4340 | ||
4341 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4342 | PyObject *resultobj; | |
4343 | char *kwnames[] = { | |
4344 | NULL | |
4345 | }; | |
4346 | ||
4347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4348 | { | |
4349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4350 | wxMutexGuiLeave(); | |
4351 | ||
4352 | wxPyEndAllowThreads(__tstate); | |
4353 | if (PyErr_Occurred()) SWIG_fail; | |
4354 | } | |
4355 | Py_INCREF(Py_None); resultobj = Py_None; | |
4356 | return resultobj; | |
4357 | fail: | |
4358 | return NULL; | |
4359 | } | |
4360 | ||
4361 | ||
4362 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4363 | PyObject *resultobj; | |
4364 | wxMutexGuiLocker *result; | |
4365 | char *kwnames[] = { | |
4366 | NULL | |
4367 | }; | |
4368 | ||
4369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4370 | { | |
4371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4372 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4373 | ||
4374 | wxPyEndAllowThreads(__tstate); | |
4375 | if (PyErr_Occurred()) SWIG_fail; | |
4376 | } | |
15afbcd0 | 4377 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); |
d14a1e28 RD |
4378 | return resultobj; |
4379 | fail: | |
4380 | return NULL; | |
4381 | } | |
4382 | ||
4383 | ||
4384 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4385 | PyObject *resultobj; | |
4386 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4387 | PyObject * obj0 = 0 ; | |
4388 | char *kwnames[] = { | |
4389 | (char *) "self", NULL | |
4390 | }; | |
4391 | ||
4392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker, |
4394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4395 | { |
4396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4397 | delete arg1; | |
4398 | ||
4399 | wxPyEndAllowThreads(__tstate); | |
4400 | if (PyErr_Occurred()) SWIG_fail; | |
4401 | } | |
4402 | Py_INCREF(Py_None); resultobj = Py_None; | |
4403 | return resultobj; | |
4404 | fail: | |
4405 | return NULL; | |
4406 | } | |
4407 | ||
4408 | ||
4409 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
4410 | PyObject *obj; | |
4411 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4412 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4413 | Py_INCREF(obj); | |
4414 | return Py_BuildValue((char *)""); | |
4415 | } | |
4416 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4417 | PyObject *resultobj; | |
4418 | bool result; | |
4419 | char *kwnames[] = { | |
4420 | NULL | |
4421 | }; | |
4422 | ||
4423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4424 | { | |
4425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4426 | result = (bool)wxThread_IsMain(); | |
4427 | ||
4428 | wxPyEndAllowThreads(__tstate); | |
4429 | if (PyErr_Occurred()) SWIG_fail; | |
4430 | } | |
4f89f6a3 RD |
4431 | { |
4432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4433 | } | |
d14a1e28 RD |
4434 | return resultobj; |
4435 | fail: | |
4436 | return NULL; | |
4437 | } | |
4438 | ||
4439 | ||
4440 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4441 | PyObject *resultobj; | |
4442 | wxString *arg1 = 0 ; | |
4443 | wxToolTip *result; | |
e811c8ce | 4444 | bool temp1 = False ; |
d14a1e28 RD |
4445 | PyObject * obj0 = 0 ; |
4446 | char *kwnames[] = { | |
4447 | (char *) "tip", NULL | |
4448 | }; | |
4449 | ||
4450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4451 | { | |
4452 | arg1 = wxString_in_helper(obj0); | |
4453 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 4454 | temp1 = True; |
d14a1e28 RD |
4455 | } |
4456 | { | |
4457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4458 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4459 | ||
4460 | wxPyEndAllowThreads(__tstate); | |
4461 | if (PyErr_Occurred()) SWIG_fail; | |
4462 | } | |
4463 | { | |
4464 | resultobj = wxPyMake_wxObject(result); | |
4465 | } | |
4466 | { | |
4467 | if (temp1) | |
4468 | delete arg1; | |
4469 | } | |
4470 | return resultobj; | |
4471 | fail: | |
4472 | { | |
4473 | if (temp1) | |
4474 | delete arg1; | |
4475 | } | |
4476 | return NULL; | |
4477 | } | |
4478 | ||
4479 | ||
4480 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4481 | PyObject *resultobj; | |
4482 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4483 | wxString *arg2 = 0 ; | |
e811c8ce | 4484 | bool temp2 = False ; |
d14a1e28 RD |
4485 | PyObject * obj0 = 0 ; |
4486 | PyObject * obj1 = 0 ; | |
4487 | char *kwnames[] = { | |
4488 | (char *) "self",(char *) "tip", NULL | |
4489 | }; | |
4490 | ||
4491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4494 | { |
4495 | arg2 = wxString_in_helper(obj1); | |
4496 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4497 | temp2 = True; |
d14a1e28 RD |
4498 | } |
4499 | { | |
4500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4501 | (arg1)->SetTip((wxString const &)*arg2); | |
4502 | ||
4503 | wxPyEndAllowThreads(__tstate); | |
4504 | if (PyErr_Occurred()) SWIG_fail; | |
4505 | } | |
4506 | Py_INCREF(Py_None); resultobj = Py_None; | |
4507 | { | |
4508 | if (temp2) | |
4509 | delete arg2; | |
4510 | } | |
4511 | return resultobj; | |
4512 | fail: | |
4513 | { | |
4514 | if (temp2) | |
4515 | delete arg2; | |
4516 | } | |
4517 | return NULL; | |
4518 | } | |
4519 | ||
4520 | ||
4521 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4522 | PyObject *resultobj; | |
4523 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4524 | wxString result; | |
4525 | PyObject * obj0 = 0 ; | |
4526 | char *kwnames[] = { | |
4527 | (char *) "self", NULL | |
4528 | }; | |
4529 | ||
4530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4533 | { |
4534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4535 | result = (arg1)->GetTip(); | |
4536 | ||
4537 | wxPyEndAllowThreads(__tstate); | |
4538 | if (PyErr_Occurred()) SWIG_fail; | |
4539 | } | |
4540 | { | |
4541 | #if wxUSE_UNICODE | |
4542 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4543 | #else | |
4544 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4545 | #endif | |
4546 | } | |
4547 | return resultobj; | |
4548 | fail: | |
4549 | return NULL; | |
4550 | } | |
4551 | ||
4552 | ||
4553 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4554 | PyObject *resultobj; | |
4555 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4556 | wxWindow *result; | |
4557 | PyObject * obj0 = 0 ; | |
4558 | char *kwnames[] = { | |
4559 | (char *) "self", NULL | |
4560 | }; | |
4561 | ||
4562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4565 | { |
4566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4567 | result = (wxWindow *)(arg1)->GetWindow(); | |
4568 | ||
4569 | wxPyEndAllowThreads(__tstate); | |
4570 | if (PyErr_Occurred()) SWIG_fail; | |
4571 | } | |
4572 | { | |
4573 | resultobj = wxPyMake_wxObject(result); | |
4574 | } | |
4575 | return resultobj; | |
4576 | fail: | |
4577 | return NULL; | |
4578 | } | |
4579 | ||
4580 | ||
4581 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4582 | PyObject *resultobj; | |
4583 | bool arg1 ; | |
4584 | PyObject * obj0 = 0 ; | |
4585 | char *kwnames[] = { | |
4586 | (char *) "flag", NULL | |
4587 | }; | |
4588 | ||
4589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4590 | arg1 = (bool) SWIG_AsBool(obj0); |
4591 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4592 | { |
4593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4594 | wxToolTip::Enable(arg1); | |
4595 | ||
4596 | wxPyEndAllowThreads(__tstate); | |
4597 | if (PyErr_Occurred()) SWIG_fail; | |
4598 | } | |
4599 | Py_INCREF(Py_None); resultobj = Py_None; | |
4600 | return resultobj; | |
4601 | fail: | |
4602 | return NULL; | |
4603 | } | |
4604 | ||
4605 | ||
4606 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4607 | PyObject *resultobj; | |
4608 | long arg1 ; | |
994141e6 | 4609 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4610 | char *kwnames[] = { |
4611 | (char *) "milliseconds", NULL | |
4612 | }; | |
4613 | ||
994141e6 | 4614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4615 | arg1 = (long) SWIG_AsLong(obj0); |
4616 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4617 | { |
4618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4619 | wxToolTip::SetDelay(arg1); | |
4620 | ||
4621 | wxPyEndAllowThreads(__tstate); | |
4622 | if (PyErr_Occurred()) SWIG_fail; | |
4623 | } | |
4624 | Py_INCREF(Py_None); resultobj = Py_None; | |
4625 | return resultobj; | |
4626 | fail: | |
4627 | return NULL; | |
4628 | } | |
4629 | ||
4630 | ||
4631 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
4632 | PyObject *obj; | |
4633 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4634 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
4635 | Py_INCREF(obj); | |
4636 | return Py_BuildValue((char *)""); | |
4637 | } | |
4638 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4639 | PyObject *resultobj; | |
4640 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4641 | wxSize *arg2 = 0 ; | |
4642 | wxCaret *result; | |
4643 | wxSize temp2 ; | |
4644 | PyObject * obj0 = 0 ; | |
4645 | PyObject * obj1 = 0 ; | |
4646 | char *kwnames[] = { | |
4647 | (char *) "window",(char *) "size", NULL | |
4648 | }; | |
4649 | ||
4650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4653 | { |
4654 | arg2 = &temp2; | |
4655 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4656 | } | |
4657 | { | |
4658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4659 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
4660 | ||
4661 | wxPyEndAllowThreads(__tstate); | |
4662 | if (PyErr_Occurred()) SWIG_fail; | |
4663 | } | |
15afbcd0 | 4664 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); |
d14a1e28 RD |
4665 | return resultobj; |
4666 | fail: | |
4667 | return NULL; | |
4668 | } | |
4669 | ||
4670 | ||
4671 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4672 | PyObject *resultobj; | |
4673 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4674 | PyObject * obj0 = 0 ; | |
4675 | char *kwnames[] = { | |
4676 | (char *) "self", NULL | |
4677 | }; | |
4678 | ||
4679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4682 | { |
4683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4684 | delete arg1; | |
4685 | ||
4686 | wxPyEndAllowThreads(__tstate); | |
4687 | if (PyErr_Occurred()) SWIG_fail; | |
4688 | } | |
4689 | Py_INCREF(Py_None); resultobj = Py_None; | |
4690 | return resultobj; | |
4691 | fail: | |
4692 | return NULL; | |
4693 | } | |
4694 | ||
4695 | ||
4696 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4697 | PyObject *resultobj; | |
4698 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4699 | bool result; | |
4700 | PyObject * obj0 = 0 ; | |
4701 | char *kwnames[] = { | |
4702 | (char *) "self", NULL | |
4703 | }; | |
4704 | ||
4705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4708 | { |
4709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4710 | result = (bool)(arg1)->IsOk(); | |
4711 | ||
4712 | wxPyEndAllowThreads(__tstate); | |
4713 | if (PyErr_Occurred()) SWIG_fail; | |
4714 | } | |
4f89f6a3 RD |
4715 | { |
4716 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4717 | } | |
d14a1e28 RD |
4718 | return resultobj; |
4719 | fail: | |
4720 | return NULL; | |
4721 | } | |
4722 | ||
4723 | ||
4724 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4725 | PyObject *resultobj; | |
4726 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4727 | bool result; | |
4728 | PyObject * obj0 = 0 ; | |
4729 | char *kwnames[] = { | |
4730 | (char *) "self", NULL | |
4731 | }; | |
4732 | ||
4733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4736 | { |
4737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4738 | result = (bool)(arg1)->IsVisible(); | |
4739 | ||
4740 | wxPyEndAllowThreads(__tstate); | |
4741 | if (PyErr_Occurred()) SWIG_fail; | |
4742 | } | |
4f89f6a3 RD |
4743 | { |
4744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4745 | } | |
d14a1e28 RD |
4746 | return resultobj; |
4747 | fail: | |
4748 | return NULL; | |
4749 | } | |
4750 | ||
4751 | ||
322913ce RD |
4752 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
4753 | PyObject *resultobj; | |
4754 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4755 | wxPoint result; | |
4756 | PyObject * obj0 = 0 ; | |
4757 | char *kwnames[] = { | |
4758 | (char *) "self", NULL | |
4759 | }; | |
4760 | ||
4761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
322913ce RD |
4764 | { |
4765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4766 | result = (arg1)->GetPosition(); | |
4767 | ||
4768 | wxPyEndAllowThreads(__tstate); | |
4769 | if (PyErr_Occurred()) SWIG_fail; | |
4770 | } | |
4771 | { | |
4772 | wxPoint * resultptr; | |
4773 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 4774 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
322913ce RD |
4775 | } |
4776 | return resultobj; | |
4777 | fail: | |
4778 | return NULL; | |
4779 | } | |
4780 | ||
4781 | ||
d14a1e28 RD |
4782 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
4783 | PyObject *resultobj; | |
4784 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4785 | int *arg2 = (int *) 0 ; | |
4786 | int *arg3 = (int *) 0 ; | |
4787 | int temp2 ; | |
4788 | int temp3 ; | |
4789 | PyObject * obj0 = 0 ; | |
4790 | char *kwnames[] = { | |
4791 | (char *) "self", NULL | |
4792 | }; | |
4793 | ||
4794 | arg2 = &temp2; | |
4795 | arg3 = &temp3; | |
4796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4799 | { |
4800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4801 | (arg1)->GetPosition(arg2,arg3); | |
4802 | ||
4803 | wxPyEndAllowThreads(__tstate); | |
4804 | if (PyErr_Occurred()) SWIG_fail; | |
4805 | } | |
4806 | Py_INCREF(Py_None); resultobj = Py_None; | |
4807 | { | |
4808 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4809 | resultobj = t_output_helper(resultobj,o); | |
4810 | } | |
4811 | { | |
4812 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4813 | resultobj = t_output_helper(resultobj,o); | |
4814 | } | |
4815 | return resultobj; | |
4816 | fail: | |
4817 | return NULL; | |
4818 | } | |
4819 | ||
4820 | ||
322913ce | 4821 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4822 | PyObject *resultobj; |
4823 | wxCaret *arg1 = (wxCaret *) 0 ; | |
322913ce | 4824 | wxSize result; |
d14a1e28 RD |
4825 | PyObject * obj0 = 0 ; |
4826 | char *kwnames[] = { | |
4827 | (char *) "self", NULL | |
4828 | }; | |
4829 | ||
322913ce | 4830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4833 | { |
4834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 4835 | result = (arg1)->GetSize(); |
d14a1e28 RD |
4836 | |
4837 | wxPyEndAllowThreads(__tstate); | |
4838 | if (PyErr_Occurred()) SWIG_fail; | |
4839 | } | |
4840 | { | |
322913ce RD |
4841 | wxSize * resultptr; |
4842 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 4843 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
4844 | } |
4845 | return resultobj; | |
4846 | fail: | |
4847 | return NULL; | |
4848 | } | |
4849 | ||
4850 | ||
4851 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4852 | PyObject *resultobj; | |
4853 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4854 | int *arg2 = (int *) 0 ; | |
4855 | int *arg3 = (int *) 0 ; | |
4856 | int temp2 ; | |
4857 | int temp3 ; | |
4858 | PyObject * obj0 = 0 ; | |
4859 | char *kwnames[] = { | |
4860 | (char *) "self", NULL | |
4861 | }; | |
4862 | ||
4863 | arg2 = &temp2; | |
4864 | arg3 = &temp3; | |
4865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4868 | { |
4869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4870 | (arg1)->GetSize(arg2,arg3); | |
4871 | ||
4872 | wxPyEndAllowThreads(__tstate); | |
4873 | if (PyErr_Occurred()) SWIG_fail; | |
4874 | } | |
4875 | Py_INCREF(Py_None); resultobj = Py_None; | |
4876 | { | |
4877 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4878 | resultobj = t_output_helper(resultobj,o); | |
4879 | } | |
4880 | { | |
4881 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4882 | resultobj = t_output_helper(resultobj,o); | |
4883 | } | |
4884 | return resultobj; | |
4885 | fail: | |
4886 | return NULL; | |
4887 | } | |
4888 | ||
4889 | ||
d14a1e28 RD |
4890 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
4891 | PyObject *resultobj; | |
4892 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4893 | wxWindow *result; | |
4894 | PyObject * obj0 = 0 ; | |
4895 | char *kwnames[] = { | |
4896 | (char *) "self", NULL | |
4897 | }; | |
4898 | ||
4899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4902 | { |
4903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4904 | result = (wxWindow *)(arg1)->GetWindow(); | |
4905 | ||
4906 | wxPyEndAllowThreads(__tstate); | |
4907 | if (PyErr_Occurred()) SWIG_fail; | |
4908 | } | |
4909 | { | |
4910 | resultobj = wxPyMake_wxObject(result); | |
4911 | } | |
4912 | return resultobj; | |
4913 | fail: | |
4914 | return NULL; | |
4915 | } | |
4916 | ||
4917 | ||
4918 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4919 | PyObject *resultobj; | |
4920 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4921 | int arg2 ; | |
4922 | int arg3 ; | |
4923 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4924 | PyObject * obj1 = 0 ; |
4925 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4926 | char *kwnames[] = { |
4927 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4928 | }; | |
4929 | ||
994141e6 | 4930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4933 | arg2 = (int) SWIG_AsInt(obj1); | |
4934 | if (PyErr_Occurred()) SWIG_fail; | |
4935 | arg3 = (int) SWIG_AsInt(obj2); | |
4936 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4937 | { |
4938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4939 | (arg1)->Move(arg2,arg3); | |
4940 | ||
4941 | wxPyEndAllowThreads(__tstate); | |
4942 | if (PyErr_Occurred()) SWIG_fail; | |
4943 | } | |
4944 | Py_INCREF(Py_None); resultobj = Py_None; | |
4945 | return resultobj; | |
4946 | fail: | |
4947 | return NULL; | |
4948 | } | |
4949 | ||
4950 | ||
4951 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4952 | PyObject *resultobj; | |
4953 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4954 | wxPoint *arg2 = 0 ; | |
4955 | wxPoint temp2 ; | |
4956 | PyObject * obj0 = 0 ; | |
4957 | PyObject * obj1 = 0 ; | |
4958 | char *kwnames[] = { | |
4959 | (char *) "self",(char *) "pt", NULL | |
4960 | }; | |
4961 | ||
4962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4965 | { |
4966 | arg2 = &temp2; | |
4967 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4968 | } | |
4969 | { | |
4970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4971 | (arg1)->Move((wxPoint const &)*arg2); | |
4972 | ||
4973 | wxPyEndAllowThreads(__tstate); | |
4974 | if (PyErr_Occurred()) SWIG_fail; | |
4975 | } | |
4976 | Py_INCREF(Py_None); resultobj = Py_None; | |
4977 | return resultobj; | |
4978 | fail: | |
4979 | return NULL; | |
4980 | } | |
4981 | ||
4982 | ||
4983 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4984 | PyObject *resultobj; | |
4985 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4986 | int arg2 ; | |
4987 | int arg3 ; | |
4988 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4989 | PyObject * obj1 = 0 ; |
4990 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4991 | char *kwnames[] = { |
4992 | (char *) "self",(char *) "width",(char *) "height", NULL | |
4993 | }; | |
4994 | ||
994141e6 | 4995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4998 | arg2 = (int) SWIG_AsInt(obj1); | |
4999 | if (PyErr_Occurred()) SWIG_fail; | |
5000 | arg3 = (int) SWIG_AsInt(obj2); | |
5001 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5002 | { |
5003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5004 | (arg1)->SetSize(arg2,arg3); | |
5005 | ||
5006 | wxPyEndAllowThreads(__tstate); | |
5007 | if (PyErr_Occurred()) SWIG_fail; | |
5008 | } | |
5009 | Py_INCREF(Py_None); resultobj = Py_None; | |
5010 | return resultobj; | |
5011 | fail: | |
5012 | return NULL; | |
5013 | } | |
5014 | ||
5015 | ||
5016 | static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5017 | PyObject *resultobj; | |
5018 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5019 | wxSize *arg2 = 0 ; | |
5020 | wxSize temp2 ; | |
5021 | PyObject * obj0 = 0 ; | |
5022 | PyObject * obj1 = 0 ; | |
5023 | char *kwnames[] = { | |
5024 | (char *) "self",(char *) "size", NULL | |
5025 | }; | |
5026 | ||
5027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5030 | { |
5031 | arg2 = &temp2; | |
5032 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5033 | } | |
5034 | { | |
5035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5036 | (arg1)->SetSize((wxSize const &)*arg2); | |
5037 | ||
5038 | wxPyEndAllowThreads(__tstate); | |
5039 | if (PyErr_Occurred()) SWIG_fail; | |
5040 | } | |
5041 | Py_INCREF(Py_None); resultobj = Py_None; | |
5042 | return resultobj; | |
5043 | fail: | |
5044 | return NULL; | |
5045 | } | |
5046 | ||
5047 | ||
5048 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5049 | PyObject *resultobj; | |
5050 | wxCaret *arg1 = (wxCaret *) 0 ; | |
e811c8ce | 5051 | int arg2 = (int) True ; |
d14a1e28 | 5052 | PyObject * obj0 = 0 ; |
994141e6 | 5053 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5054 | char *kwnames[] = { |
5055 | (char *) "self",(char *) "show", NULL | |
5056 | }; | |
5057 | ||
994141e6 | 5058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5061 | if (obj1) { |
15afbcd0 RD |
5062 | arg2 = (int) SWIG_AsInt(obj1); |
5063 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5064 | } |
d14a1e28 RD |
5065 | { |
5066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5067 | (arg1)->Show(arg2); | |
5068 | ||
5069 | wxPyEndAllowThreads(__tstate); | |
5070 | if (PyErr_Occurred()) SWIG_fail; | |
5071 | } | |
5072 | Py_INCREF(Py_None); resultobj = Py_None; | |
5073 | return resultobj; | |
5074 | fail: | |
5075 | return NULL; | |
5076 | } | |
5077 | ||
5078 | ||
5079 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5080 | PyObject *resultobj; | |
5081 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5082 | PyObject * obj0 = 0 ; | |
5083 | char *kwnames[] = { | |
5084 | (char *) "self", NULL | |
5085 | }; | |
5086 | ||
5087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5090 | { |
5091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5092 | (arg1)->Hide(); | |
5093 | ||
5094 | wxPyEndAllowThreads(__tstate); | |
5095 | if (PyErr_Occurred()) SWIG_fail; | |
5096 | } | |
5097 | Py_INCREF(Py_None); resultobj = Py_None; | |
5098 | return resultobj; | |
5099 | fail: | |
5100 | return NULL; | |
5101 | } | |
5102 | ||
5103 | ||
5104 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
5105 | PyObject *obj; | |
5106 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5107 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
5108 | Py_INCREF(obj); | |
5109 | return Py_BuildValue((char *)""); | |
5110 | } | |
5111 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5112 | PyObject *resultobj; | |
5113 | int result; | |
5114 | char *kwnames[] = { | |
5115 | NULL | |
5116 | }; | |
5117 | ||
5118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
5119 | { | |
5120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5121 | result = (int)wxCaret_GetBlinkTime(); | |
5122 | ||
5123 | wxPyEndAllowThreads(__tstate); | |
5124 | if (PyErr_Occurred()) SWIG_fail; | |
5125 | } | |
15afbcd0 | 5126 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5127 | return resultobj; |
5128 | fail: | |
5129 | return NULL; | |
5130 | } | |
5131 | ||
5132 | ||
5133 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5134 | PyObject *resultobj; | |
5135 | int arg1 ; | |
994141e6 | 5136 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
5137 | char *kwnames[] = { |
5138 | (char *) "milliseconds", NULL | |
5139 | }; | |
5140 | ||
994141e6 | 5141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
5142 | arg1 = (int) SWIG_AsInt(obj0); |
5143 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5144 | { |
5145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5146 | wxCaret_SetBlinkTime(arg1); | |
5147 | ||
5148 | wxPyEndAllowThreads(__tstate); | |
5149 | if (PyErr_Occurred()) SWIG_fail; | |
5150 | } | |
5151 | Py_INCREF(Py_None); resultobj = Py_None; | |
5152 | return resultobj; | |
5153 | fail: | |
5154 | return NULL; | |
5155 | } | |
5156 | ||
5157 | ||
5158 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5159 | PyObject *resultobj; | |
5160 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
5161 | wxBusyCursor *result; | |
5162 | PyObject * obj0 = 0 ; | |
5163 | char *kwnames[] = { | |
5164 | (char *) "cursor", NULL | |
5165 | }; | |
5166 | ||
5167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
5168 | if (obj0) { | |
15afbcd0 RD |
5169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
5170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5171 | } |
5172 | { | |
5173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5174 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
5175 | ||
5176 | wxPyEndAllowThreads(__tstate); | |
5177 | if (PyErr_Occurred()) SWIG_fail; | |
5178 | } | |
15afbcd0 | 5179 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); |
d14a1e28 RD |
5180 | return resultobj; |
5181 | fail: | |
5182 | return NULL; | |
5183 | } | |
5184 | ||
5185 | ||
5186 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5187 | PyObject *resultobj; | |
5188 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
5189 | PyObject * obj0 = 0 ; | |
5190 | char *kwnames[] = { | |
5191 | (char *) "self", NULL | |
5192 | }; | |
5193 | ||
5194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor, |
5196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5197 | { |
5198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5199 | delete arg1; | |
5200 | ||
5201 | wxPyEndAllowThreads(__tstate); | |
5202 | if (PyErr_Occurred()) SWIG_fail; | |
5203 | } | |
5204 | Py_INCREF(Py_None); resultobj = Py_None; | |
5205 | return resultobj; | |
5206 | fail: | |
5207 | return NULL; | |
5208 | } | |
5209 | ||
5210 | ||
5211 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
5212 | PyObject *obj; | |
5213 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5214 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
5215 | Py_INCREF(obj); | |
5216 | return Py_BuildValue((char *)""); | |
5217 | } | |
5218 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5219 | PyObject *resultobj; | |
5220 | wxWindow *arg1 = (wxWindow *) NULL ; | |
5221 | wxWindowDisabler *result; | |
5222 | PyObject * obj0 = 0 ; | |
5223 | char *kwnames[] = { | |
5224 | (char *) "winToSkip", NULL | |
5225 | }; | |
5226 | ||
5227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
5228 | if (obj0) { | |
15afbcd0 RD |
5229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5231 | } |
5232 | { | |
5233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5234 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
5235 | ||
5236 | wxPyEndAllowThreads(__tstate); | |
5237 | if (PyErr_Occurred()) SWIG_fail; | |
5238 | } | |
15afbcd0 | 5239 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); |
d14a1e28 RD |
5240 | return resultobj; |
5241 | fail: | |
5242 | return NULL; | |
5243 | } | |
5244 | ||
5245 | ||
5246 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5247 | PyObject *resultobj; | |
5248 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
5249 | PyObject * obj0 = 0 ; | |
5250 | char *kwnames[] = { | |
5251 | (char *) "self", NULL | |
5252 | }; | |
5253 | ||
5254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler, |
5256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5257 | { |
5258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5259 | delete arg1; | |
5260 | ||
5261 | wxPyEndAllowThreads(__tstate); | |
5262 | if (PyErr_Occurred()) SWIG_fail; | |
5263 | } | |
5264 | Py_INCREF(Py_None); resultobj = Py_None; | |
5265 | return resultobj; | |
5266 | fail: | |
5267 | return NULL; | |
5268 | } | |
5269 | ||
5270 | ||
5271 | static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
5272 | PyObject *obj; | |
5273 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5274 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
5275 | Py_INCREF(obj); | |
5276 | return Py_BuildValue((char *)""); | |
5277 | } | |
5278 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5279 | PyObject *resultobj; | |
5280 | wxString *arg1 = 0 ; | |
5281 | wxBusyInfo *result; | |
e811c8ce | 5282 | bool temp1 = False ; |
d14a1e28 RD |
5283 | PyObject * obj0 = 0 ; |
5284 | char *kwnames[] = { | |
5285 | (char *) "message", NULL | |
5286 | }; | |
5287 | ||
5288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
5289 | { | |
5290 | arg1 = wxString_in_helper(obj0); | |
5291 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 5292 | temp1 = True; |
d14a1e28 RD |
5293 | } |
5294 | { | |
5295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5296 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
5297 | ||
5298 | wxPyEndAllowThreads(__tstate); | |
5299 | if (PyErr_Occurred()) SWIG_fail; | |
5300 | } | |
15afbcd0 | 5301 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); |
d14a1e28 RD |
5302 | { |
5303 | if (temp1) | |
5304 | delete arg1; | |
5305 | } | |
5306 | return resultobj; | |
5307 | fail: | |
5308 | { | |
5309 | if (temp1) | |
5310 | delete arg1; | |
5311 | } | |
5312 | return NULL; | |
5313 | } | |
5314 | ||
5315 | ||
5316 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5317 | PyObject *resultobj; | |
5318 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5319 | PyObject * obj0 = 0 ; | |
5320 | char *kwnames[] = { | |
5321 | (char *) "self", NULL | |
5322 | }; | |
5323 | ||
5324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo, |
5326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5327 | { |
5328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5329 | delete arg1; | |
5330 | ||
5331 | wxPyEndAllowThreads(__tstate); | |
5332 | if (PyErr_Occurred()) SWIG_fail; | |
5333 | } | |
5334 | Py_INCREF(Py_None); resultobj = Py_None; | |
5335 | return resultobj; | |
5336 | fail: | |
5337 | return NULL; | |
5338 | } | |
5339 | ||
5340 | ||
5341 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
5342 | PyObject *obj; | |
5343 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5344 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5345 | Py_INCREF(obj); | |
5346 | return Py_BuildValue((char *)""); | |
5347 | } | |
5348 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5349 | PyObject *resultobj; | |
5350 | wxStopWatch *result; | |
5351 | char *kwnames[] = { | |
5352 | NULL | |
5353 | }; | |
5354 | ||
5355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5356 | { | |
5357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5358 | result = (wxStopWatch *)new wxStopWatch(); | |
5359 | ||
5360 | wxPyEndAllowThreads(__tstate); | |
5361 | if (PyErr_Occurred()) SWIG_fail; | |
5362 | } | |
15afbcd0 | 5363 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); |
d14a1e28 RD |
5364 | return resultobj; |
5365 | fail: | |
5366 | return NULL; | |
5367 | } | |
5368 | ||
5369 | ||
5370 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5371 | PyObject *resultobj; | |
5372 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5373 | long arg2 = (long) 0 ; | |
5374 | PyObject * obj0 = 0 ; | |
994141e6 | 5375 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5376 | char *kwnames[] = { |
5377 | (char *) "self",(char *) "t0", NULL | |
5378 | }; | |
5379 | ||
994141e6 | 5380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5383 | if (obj1) { |
15afbcd0 RD |
5384 | arg2 = (long) SWIG_AsLong(obj1); |
5385 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5386 | } |
d14a1e28 RD |
5387 | { |
5388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5389 | (arg1)->Start(arg2); | |
5390 | ||
5391 | wxPyEndAllowThreads(__tstate); | |
5392 | if (PyErr_Occurred()) SWIG_fail; | |
5393 | } | |
5394 | Py_INCREF(Py_None); resultobj = Py_None; | |
5395 | return resultobj; | |
5396 | fail: | |
5397 | return NULL; | |
5398 | } | |
5399 | ||
5400 | ||
5401 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5402 | PyObject *resultobj; | |
5403 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5404 | PyObject * obj0 = 0 ; | |
5405 | char *kwnames[] = { | |
5406 | (char *) "self", NULL | |
5407 | }; | |
5408 | ||
5409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5412 | { |
5413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5414 | (arg1)->Pause(); | |
5415 | ||
5416 | wxPyEndAllowThreads(__tstate); | |
5417 | if (PyErr_Occurred()) SWIG_fail; | |
5418 | } | |
5419 | Py_INCREF(Py_None); resultobj = Py_None; | |
5420 | return resultobj; | |
5421 | fail: | |
5422 | return NULL; | |
5423 | } | |
5424 | ||
5425 | ||
5426 | static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5427 | PyObject *resultobj; | |
5428 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5429 | PyObject * obj0 = 0 ; | |
5430 | char *kwnames[] = { | |
5431 | (char *) "self", NULL | |
5432 | }; | |
5433 | ||
5434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5437 | { |
5438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5439 | (arg1)->Resume(); | |
5440 | ||
5441 | wxPyEndAllowThreads(__tstate); | |
5442 | if (PyErr_Occurred()) SWIG_fail; | |
5443 | } | |
5444 | Py_INCREF(Py_None); resultobj = Py_None; | |
5445 | return resultobj; | |
5446 | fail: | |
5447 | return NULL; | |
5448 | } | |
5449 | ||
5450 | ||
5451 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5452 | PyObject *resultobj; | |
5453 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5454 | long result; | |
5455 | PyObject * obj0 = 0 ; | |
5456 | char *kwnames[] = { | |
5457 | (char *) "self", NULL | |
5458 | }; | |
5459 | ||
5460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5463 | { |
5464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5465 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5466 | ||
5467 | wxPyEndAllowThreads(__tstate); | |
5468 | if (PyErr_Occurred()) SWIG_fail; | |
5469 | } | |
15afbcd0 | 5470 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
5471 | return resultobj; |
5472 | fail: | |
5473 | return NULL; | |
5474 | } | |
5475 | ||
5476 | ||
5477 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
5478 | PyObject *obj; | |
5479 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5480 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5481 | Py_INCREF(obj); | |
5482 | return Py_BuildValue((char *)""); | |
5483 | } | |
5484 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5485 | PyObject *resultobj; | |
5486 | int arg1 = (int) 9 ; | |
5487 | wxFileHistory *result; | |
994141e6 | 5488 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
5489 | char *kwnames[] = { |
5490 | (char *) "maxFiles", NULL | |
5491 | }; | |
5492 | ||
994141e6 RD |
5493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail; |
5494 | if (obj0) { | |
15afbcd0 RD |
5495 | arg1 = (int) SWIG_AsInt(obj0); |
5496 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5497 | } |
d14a1e28 RD |
5498 | { |
5499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5500 | result = (wxFileHistory *)new wxFileHistory(arg1); | |
5501 | ||
5502 | wxPyEndAllowThreads(__tstate); | |
5503 | if (PyErr_Occurred()) SWIG_fail; | |
5504 | } | |
15afbcd0 | 5505 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); |
d14a1e28 RD |
5506 | return resultobj; |
5507 | fail: | |
5508 | return NULL; | |
5509 | } | |
5510 | ||
5511 | ||
5512 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5513 | PyObject *resultobj; | |
5514 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5515 | PyObject * obj0 = 0 ; | |
5516 | char *kwnames[] = { | |
5517 | (char *) "self", NULL | |
5518 | }; | |
5519 | ||
5520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5523 | { |
5524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5525 | delete arg1; | |
5526 | ||
5527 | wxPyEndAllowThreads(__tstate); | |
5528 | if (PyErr_Occurred()) SWIG_fail; | |
5529 | } | |
5530 | Py_INCREF(Py_None); resultobj = Py_None; | |
5531 | return resultobj; | |
5532 | fail: | |
5533 | return NULL; | |
5534 | } | |
5535 | ||
5536 | ||
5537 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5538 | PyObject *resultobj; | |
5539 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5540 | wxString *arg2 = 0 ; | |
e811c8ce | 5541 | bool temp2 = False ; |
d14a1e28 RD |
5542 | PyObject * obj0 = 0 ; |
5543 | PyObject * obj1 = 0 ; | |
5544 | char *kwnames[] = { | |
5545 | (char *) "self",(char *) "file", NULL | |
5546 | }; | |
5547 | ||
5548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5551 | { |
5552 | arg2 = wxString_in_helper(obj1); | |
5553 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5554 | temp2 = True; |
d14a1e28 RD |
5555 | } |
5556 | { | |
5557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5558 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
5559 | ||
5560 | wxPyEndAllowThreads(__tstate); | |
5561 | if (PyErr_Occurred()) SWIG_fail; | |
5562 | } | |
5563 | Py_INCREF(Py_None); resultobj = Py_None; | |
5564 | { | |
5565 | if (temp2) | |
5566 | delete arg2; | |
5567 | } | |
5568 | return resultobj; | |
5569 | fail: | |
5570 | { | |
5571 | if (temp2) | |
5572 | delete arg2; | |
5573 | } | |
5574 | return NULL; | |
5575 | } | |
5576 | ||
5577 | ||
5578 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5579 | PyObject *resultobj; | |
5580 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5581 | int arg2 ; | |
5582 | PyObject * obj0 = 0 ; | |
994141e6 | 5583 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5584 | char *kwnames[] = { |
5585 | (char *) "self",(char *) "i", NULL | |
5586 | }; | |
5587 | ||
994141e6 | 5588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5591 | arg2 = (int) SWIG_AsInt(obj1); | |
5592 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5593 | { |
5594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5595 | (arg1)->RemoveFileFromHistory(arg2); | |
5596 | ||
5597 | wxPyEndAllowThreads(__tstate); | |
5598 | if (PyErr_Occurred()) SWIG_fail; | |
5599 | } | |
5600 | Py_INCREF(Py_None); resultobj = Py_None; | |
5601 | return resultobj; | |
5602 | fail: | |
5603 | return NULL; | |
5604 | } | |
5605 | ||
5606 | ||
5607 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5608 | PyObject *resultobj; | |
5609 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5610 | int result; | |
5611 | PyObject * obj0 = 0 ; | |
5612 | char *kwnames[] = { | |
5613 | (char *) "self", NULL | |
5614 | }; | |
5615 | ||
5616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5619 | { |
5620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5621 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
5622 | ||
5623 | wxPyEndAllowThreads(__tstate); | |
5624 | if (PyErr_Occurred()) SWIG_fail; | |
5625 | } | |
15afbcd0 | 5626 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5627 | return resultobj; |
5628 | fail: | |
5629 | return NULL; | |
5630 | } | |
5631 | ||
5632 | ||
5633 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5634 | PyObject *resultobj; | |
5635 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5636 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5637 | PyObject * obj0 = 0 ; | |
5638 | PyObject * obj1 = 0 ; | |
5639 | char *kwnames[] = { | |
5640 | (char *) "self",(char *) "menu", NULL | |
5641 | }; | |
5642 | ||
5643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5646 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5648 | { |
5649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5650 | (arg1)->UseMenu(arg2); | |
5651 | ||
5652 | wxPyEndAllowThreads(__tstate); | |
5653 | if (PyErr_Occurred()) SWIG_fail; | |
5654 | } | |
5655 | Py_INCREF(Py_None); resultobj = Py_None; | |
5656 | return resultobj; | |
5657 | fail: | |
5658 | return NULL; | |
5659 | } | |
5660 | ||
5661 | ||
5662 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5663 | PyObject *resultobj; | |
5664 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5665 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5666 | PyObject * obj0 = 0 ; | |
5667 | PyObject * obj1 = 0 ; | |
5668 | char *kwnames[] = { | |
5669 | (char *) "self",(char *) "menu", NULL | |
5670 | }; | |
5671 | ||
5672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5675 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5677 | { |
5678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5679 | (arg1)->RemoveMenu(arg2); | |
5680 | ||
5681 | wxPyEndAllowThreads(__tstate); | |
5682 | if (PyErr_Occurred()) SWIG_fail; | |
5683 | } | |
5684 | Py_INCREF(Py_None); resultobj = Py_None; | |
5685 | return resultobj; | |
5686 | fail: | |
5687 | return NULL; | |
5688 | } | |
5689 | ||
5690 | ||
5691 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5692 | PyObject *resultobj; | |
5693 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5694 | wxConfigBase *arg2 = 0 ; | |
5695 | PyObject * obj0 = 0 ; | |
5696 | PyObject * obj1 = 0 ; | |
5697 | char *kwnames[] = { | |
5698 | (char *) "self",(char *) "config", NULL | |
5699 | }; | |
5700 | ||
5701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5704 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5705 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5706 | SWIG_fail; | |
d14a1e28 | 5707 | if (arg2 == NULL) { |
15afbcd0 RD |
5708 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5709 | SWIG_fail; | |
d14a1e28 RD |
5710 | } |
5711 | { | |
5712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5713 | (arg1)->Load(*arg2); | |
5714 | ||
5715 | wxPyEndAllowThreads(__tstate); | |
5716 | if (PyErr_Occurred()) SWIG_fail; | |
5717 | } | |
5718 | Py_INCREF(Py_None); resultobj = Py_None; | |
5719 | return resultobj; | |
5720 | fail: | |
5721 | return NULL; | |
5722 | } | |
5723 | ||
5724 | ||
5725 | static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5726 | PyObject *resultobj; | |
5727 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5728 | wxConfigBase *arg2 = 0 ; | |
5729 | PyObject * obj0 = 0 ; | |
5730 | PyObject * obj1 = 0 ; | |
5731 | char *kwnames[] = { | |
5732 | (char *) "self",(char *) "config", NULL | |
5733 | }; | |
5734 | ||
5735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5738 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5739 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5740 | SWIG_fail; | |
d14a1e28 | 5741 | if (arg2 == NULL) { |
15afbcd0 RD |
5742 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5743 | SWIG_fail; | |
d14a1e28 RD |
5744 | } |
5745 | { | |
5746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5747 | (arg1)->Save(*arg2); | |
5748 | ||
5749 | wxPyEndAllowThreads(__tstate); | |
5750 | if (PyErr_Occurred()) SWIG_fail; | |
5751 | } | |
5752 | Py_INCREF(Py_None); resultobj = Py_None; | |
5753 | return resultobj; | |
5754 | fail: | |
5755 | return NULL; | |
5756 | } | |
5757 | ||
5758 | ||
5759 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5760 | PyObject *resultobj; | |
5761 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5762 | PyObject * obj0 = 0 ; | |
5763 | char *kwnames[] = { | |
5764 | (char *) "self", NULL | |
5765 | }; | |
5766 | ||
5767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5770 | { |
5771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5772 | (arg1)->AddFilesToMenu(); | |
5773 | ||
5774 | wxPyEndAllowThreads(__tstate); | |
5775 | if (PyErr_Occurred()) SWIG_fail; | |
5776 | } | |
5777 | Py_INCREF(Py_None); resultobj = Py_None; | |
5778 | return resultobj; | |
5779 | fail: | |
5780 | return NULL; | |
5781 | } | |
5782 | ||
5783 | ||
5784 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5785 | PyObject *resultobj; | |
5786 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5787 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5788 | PyObject * obj0 = 0 ; | |
5789 | PyObject * obj1 = 0 ; | |
5790 | char *kwnames[] = { | |
5791 | (char *) "self",(char *) "menu", NULL | |
5792 | }; | |
5793 | ||
5794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5797 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5799 | { |
5800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5801 | (arg1)->AddFilesToMenu(arg2); | |
5802 | ||
5803 | wxPyEndAllowThreads(__tstate); | |
5804 | if (PyErr_Occurred()) SWIG_fail; | |
5805 | } | |
5806 | Py_INCREF(Py_None); resultobj = Py_None; | |
5807 | return resultobj; | |
5808 | fail: | |
5809 | return NULL; | |
5810 | } | |
5811 | ||
5812 | ||
5813 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5814 | PyObject *resultobj; | |
5815 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5816 | int arg2 ; | |
5817 | wxString result; | |
5818 | PyObject * obj0 = 0 ; | |
994141e6 | 5819 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5820 | char *kwnames[] = { |
5821 | (char *) "self",(char *) "i", NULL | |
5822 | }; | |
5823 | ||
994141e6 | 5824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5827 | arg2 = (int) SWIG_AsInt(obj1); | |
5828 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5829 | { |
5830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5831 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
5832 | ||
5833 | wxPyEndAllowThreads(__tstate); | |
5834 | if (PyErr_Occurred()) SWIG_fail; | |
5835 | } | |
5836 | { | |
5837 | #if wxUSE_UNICODE | |
5838 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5839 | #else | |
5840 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5841 | #endif | |
5842 | } | |
5843 | return resultobj; | |
5844 | fail: | |
5845 | return NULL; | |
5846 | } | |
5847 | ||
5848 | ||
5849 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5850 | PyObject *resultobj; | |
5851 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5852 | int result; | |
5853 | PyObject * obj0 = 0 ; | |
5854 | char *kwnames[] = { | |
5855 | (char *) "self", NULL | |
5856 | }; | |
5857 | ||
5858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5861 | { |
5862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5863 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
5864 | ||
5865 | wxPyEndAllowThreads(__tstate); | |
5866 | if (PyErr_Occurred()) SWIG_fail; | |
5867 | } | |
15afbcd0 | 5868 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5869 | return resultobj; |
5870 | fail: | |
5871 | return NULL; | |
5872 | } | |
5873 | ||
5874 | ||
5875 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
5876 | PyObject *obj; | |
5877 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5878 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
5879 | Py_INCREF(obj); | |
5880 | return Py_BuildValue((char *)""); | |
5881 | } | |
5882 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5883 | PyObject *resultobj; | |
5884 | wxString *arg1 = 0 ; | |
5885 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5886 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5887 | wxSingleInstanceChecker *result; | |
e811c8ce RD |
5888 | bool temp1 = False ; |
5889 | bool temp2 = False ; | |
d14a1e28 RD |
5890 | PyObject * obj0 = 0 ; |
5891 | PyObject * obj1 = 0 ; | |
5892 | char *kwnames[] = { | |
5893 | (char *) "name",(char *) "path", NULL | |
5894 | }; | |
5895 | ||
5896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
5897 | { | |
5898 | arg1 = wxString_in_helper(obj0); | |
5899 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 5900 | temp1 = True; |
d14a1e28 RD |
5901 | } |
5902 | if (obj1) { | |
5903 | { | |
5904 | arg2 = wxString_in_helper(obj1); | |
5905 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5906 | temp2 = True; |
d14a1e28 RD |
5907 | } |
5908 | } | |
5909 | { | |
5910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5911 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
5912 | ||
5913 | wxPyEndAllowThreads(__tstate); | |
5914 | if (PyErr_Occurred()) SWIG_fail; | |
5915 | } | |
15afbcd0 | 5916 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); |
d14a1e28 RD |
5917 | { |
5918 | if (temp1) | |
5919 | delete arg1; | |
5920 | } | |
5921 | { | |
5922 | if (temp2) | |
5923 | delete arg2; | |
5924 | } | |
5925 | return resultobj; | |
5926 | fail: | |
5927 | { | |
5928 | if (temp1) | |
5929 | delete arg1; | |
5930 | } | |
5931 | { | |
5932 | if (temp2) | |
5933 | delete arg2; | |
5934 | } | |
5935 | return NULL; | |
5936 | } | |
5937 | ||
5938 | ||
5939 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5940 | PyObject *resultobj; | |
5941 | wxSingleInstanceChecker *result; | |
5942 | char *kwnames[] = { | |
5943 | NULL | |
5944 | }; | |
5945 | ||
5946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
5947 | { | |
5948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5949 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
5950 | ||
5951 | wxPyEndAllowThreads(__tstate); | |
5952 | if (PyErr_Occurred()) SWIG_fail; | |
5953 | } | |
15afbcd0 | 5954 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); |
d14a1e28 RD |
5955 | return resultobj; |
5956 | fail: | |
5957 | return NULL; | |
5958 | } | |
5959 | ||
5960 | ||
5961 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5962 | PyObject *resultobj; | |
5963 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5964 | PyObject * obj0 = 0 ; | |
5965 | char *kwnames[] = { | |
5966 | (char *) "self", NULL | |
5967 | }; | |
5968 | ||
5969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
5971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5972 | { |
5973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5974 | delete arg1; | |
5975 | ||
5976 | wxPyEndAllowThreads(__tstate); | |
5977 | if (PyErr_Occurred()) SWIG_fail; | |
5978 | } | |
5979 | Py_INCREF(Py_None); resultobj = Py_None; | |
5980 | return resultobj; | |
5981 | fail: | |
5982 | return NULL; | |
5983 | } | |
5984 | ||
5985 | ||
5986 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5987 | PyObject *resultobj; | |
5988 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5989 | wxString *arg2 = 0 ; | |
5990 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5991 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5992 | bool result; | |
e811c8ce RD |
5993 | bool temp2 = False ; |
5994 | bool temp3 = False ; | |
d14a1e28 RD |
5995 | PyObject * obj0 = 0 ; |
5996 | PyObject * obj1 = 0 ; | |
5997 | PyObject * obj2 = 0 ; | |
5998 | char *kwnames[] = { | |
5999 | (char *) "self",(char *) "name",(char *) "path", NULL | |
6000 | }; | |
6001 | ||
6002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
6004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6005 | { |
6006 | arg2 = wxString_in_helper(obj1); | |
6007 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6008 | temp2 = True; |
d14a1e28 RD |
6009 | } |
6010 | if (obj2) { | |
6011 | { | |
6012 | arg3 = wxString_in_helper(obj2); | |
6013 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6014 | temp3 = True; |
d14a1e28 RD |
6015 | } |
6016 | } | |
6017 | { | |
6018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6019 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
6020 | ||
6021 | wxPyEndAllowThreads(__tstate); | |
6022 | if (PyErr_Occurred()) SWIG_fail; | |
6023 | } | |
4f89f6a3 RD |
6024 | { |
6025 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6026 | } | |
d14a1e28 RD |
6027 | { |
6028 | if (temp2) | |
6029 | delete arg2; | |
6030 | } | |
6031 | { | |
6032 | if (temp3) | |
6033 | delete arg3; | |
6034 | } | |
6035 | return resultobj; | |
6036 | fail: | |
6037 | { | |
6038 | if (temp2) | |
6039 | delete arg2; | |
6040 | } | |
6041 | { | |
6042 | if (temp3) | |
6043 | delete arg3; | |
6044 | } | |
6045 | return NULL; | |
6046 | } | |
6047 | ||
6048 | ||
6049 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6050 | PyObject *resultobj; | |
6051 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6052 | bool result; | |
6053 | PyObject * obj0 = 0 ; | |
6054 | char *kwnames[] = { | |
6055 | (char *) "self", NULL | |
6056 | }; | |
6057 | ||
6058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
6060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6061 | { |
6062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6063 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
6064 | ||
6065 | wxPyEndAllowThreads(__tstate); | |
6066 | if (PyErr_Occurred()) SWIG_fail; | |
6067 | } | |
4f89f6a3 RD |
6068 | { |
6069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6070 | } | |
d14a1e28 RD |
6071 | return resultobj; |
6072 | fail: | |
6073 | return NULL; | |
6074 | } | |
6075 | ||
6076 | ||
6077 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
6078 | PyObject *obj; | |
6079 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6080 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
6081 | Py_INCREF(obj); | |
6082 | return Py_BuildValue((char *)""); | |
6083 | } | |
6084 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6085 | PyObject *resultobj; | |
6086 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6087 | wxDC *arg2 = 0 ; | |
6088 | int arg3 ; | |
6089 | PyObject * obj0 = 0 ; | |
6090 | PyObject * obj1 = 0 ; | |
994141e6 | 6091 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6092 | char *kwnames[] = { |
6093 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
6094 | }; | |
6095 | ||
994141e6 | 6096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6099 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
6100 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6101 | SWIG_fail; | |
d14a1e28 | 6102 | if (arg2 == NULL) { |
15afbcd0 RD |
6103 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6104 | SWIG_fail; | |
994141e6 | 6105 | } |
15afbcd0 RD |
6106 | arg3 = (int) SWIG_AsInt(obj2); |
6107 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6108 | { |
6109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6110 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
6111 | ||
6112 | wxPyEndAllowThreads(__tstate); | |
6113 | if (PyErr_Occurred()) SWIG_fail; | |
6114 | } | |
6115 | Py_INCREF(Py_None); resultobj = Py_None; | |
6116 | return resultobj; | |
6117 | fail: | |
6118 | return NULL; | |
6119 | } | |
6120 | ||
6121 | ||
6122 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6123 | PyObject *resultobj; | |
6124 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6125 | PyObject * obj0 = 0 ; | |
6126 | char *kwnames[] = { | |
6127 | (char *) "self", NULL | |
6128 | }; | |
6129 | ||
6130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6133 | { |
6134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6135 | delete arg1; | |
6136 | ||
6137 | wxPyEndAllowThreads(__tstate); | |
6138 | if (PyErr_Occurred()) SWIG_fail; | |
6139 | } | |
6140 | Py_INCREF(Py_None); resultobj = Py_None; | |
6141 | return resultobj; | |
6142 | fail: | |
6143 | return NULL; | |
6144 | } | |
6145 | ||
6146 | ||
6147 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6148 | PyObject *resultobj; | |
6149 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6150 | wxString result; | |
6151 | PyObject * obj0 = 0 ; | |
6152 | char *kwnames[] = { | |
6153 | (char *) "self", NULL | |
6154 | }; | |
6155 | ||
6156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6159 | { |
6160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6161 | result = (arg1)->GetTip(); | |
6162 | ||
6163 | wxPyEndAllowThreads(__tstate); | |
6164 | if (PyErr_Occurred()) SWIG_fail; | |
6165 | } | |
6166 | { | |
6167 | #if wxUSE_UNICODE | |
6168 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6169 | #else | |
6170 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6171 | #endif | |
6172 | } | |
6173 | return resultobj; | |
6174 | fail: | |
6175 | return NULL; | |
6176 | } | |
6177 | ||
6178 | ||
6179 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6180 | PyObject *resultobj; | |
6181 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6182 | size_t result; | |
6183 | PyObject * obj0 = 0 ; | |
6184 | char *kwnames[] = { | |
6185 | (char *) "self", NULL | |
6186 | }; | |
6187 | ||
6188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6191 | { |
6192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6193 | result = (size_t)(arg1)->GetCurrentTip(); | |
6194 | ||
6195 | wxPyEndAllowThreads(__tstate); | |
6196 | if (PyErr_Occurred()) SWIG_fail; | |
6197 | } | |
15afbcd0 | 6198 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
6199 | return resultobj; |
6200 | fail: | |
6201 | return NULL; | |
6202 | } | |
6203 | ||
6204 | ||
6205 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6206 | PyObject *resultobj; | |
6207 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6208 | wxString *arg2 = 0 ; | |
6209 | wxString result; | |
e811c8ce | 6210 | bool temp2 = False ; |
d14a1e28 RD |
6211 | PyObject * obj0 = 0 ; |
6212 | PyObject * obj1 = 0 ; | |
6213 | char *kwnames[] = { | |
6214 | (char *) "self",(char *) "tip", NULL | |
6215 | }; | |
6216 | ||
6217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6220 | { |
6221 | arg2 = wxString_in_helper(obj1); | |
6222 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6223 | temp2 = True; |
d14a1e28 RD |
6224 | } |
6225 | { | |
6226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6227 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
6228 | ||
6229 | wxPyEndAllowThreads(__tstate); | |
6230 | if (PyErr_Occurred()) SWIG_fail; | |
6231 | } | |
6232 | { | |
6233 | #if wxUSE_UNICODE | |
6234 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6235 | #else | |
6236 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6237 | #endif | |
6238 | } | |
6239 | { | |
6240 | if (temp2) | |
6241 | delete arg2; | |
6242 | } | |
6243 | return resultobj; | |
6244 | fail: | |
6245 | { | |
6246 | if (temp2) | |
6247 | delete arg2; | |
6248 | } | |
6249 | return NULL; | |
6250 | } | |
6251 | ||
6252 | ||
6253 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
6254 | PyObject *obj; | |
6255 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6256 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
6257 | Py_INCREF(obj); | |
6258 | return Py_BuildValue((char *)""); | |
6259 | } | |
6260 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6261 | PyObject *resultobj; | |
6262 | size_t arg1 ; | |
6263 | wxPyTipProvider *result; | |
6264 | PyObject * obj0 = 0 ; | |
6265 | char *kwnames[] = { | |
6266 | (char *) "currentTip", NULL | |
6267 | }; | |
6268 | ||
6269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6270 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); |
6271 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6272 | { |
6273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6274 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
6275 | ||
6276 | wxPyEndAllowThreads(__tstate); | |
6277 | if (PyErr_Occurred()) SWIG_fail; | |
6278 | } | |
15afbcd0 | 6279 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); |
d14a1e28 RD |
6280 | return resultobj; |
6281 | fail: | |
6282 | return NULL; | |
6283 | } | |
6284 | ||
6285 | ||
6286 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6287 | PyObject *resultobj; | |
6288 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
6289 | PyObject *arg2 = (PyObject *) 0 ; | |
6290 | PyObject *arg3 = (PyObject *) 0 ; | |
6291 | PyObject * obj0 = 0 ; | |
6292 | PyObject * obj1 = 0 ; | |
6293 | PyObject * obj2 = 0 ; | |
6294 | char *kwnames[] = { | |
6295 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6296 | }; | |
6297 | ||
6298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider, |
6300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6301 | arg2 = obj1; |
6302 | arg3 = obj2; | |
6303 | { | |
6304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6305 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6306 | ||
6307 | wxPyEndAllowThreads(__tstate); | |
6308 | if (PyErr_Occurred()) SWIG_fail; | |
6309 | } | |
6310 | Py_INCREF(Py_None); resultobj = Py_None; | |
6311 | return resultobj; | |
6312 | fail: | |
6313 | return NULL; | |
6314 | } | |
6315 | ||
6316 | ||
6317 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
6318 | PyObject *obj; | |
6319 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6320 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
6321 | Py_INCREF(obj); | |
6322 | return Py_BuildValue((char *)""); | |
6323 | } | |
6324 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6325 | PyObject *resultobj; | |
6326 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6327 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
e811c8ce | 6328 | bool arg3 = (bool) True ; |
d14a1e28 RD |
6329 | bool result; |
6330 | PyObject * obj0 = 0 ; | |
6331 | PyObject * obj1 = 0 ; | |
6332 | PyObject * obj2 = 0 ; | |
6333 | char *kwnames[] = { | |
6334 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
6335 | }; | |
6336 | ||
6337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6340 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider, | |
6341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6342 | if (obj2) { |
15afbcd0 RD |
6343 | arg3 = (bool) SWIG_AsBool(obj2); |
6344 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6345 | } |
6346 | { | |
6347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6348 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6349 | ||
6350 | wxPyEndAllowThreads(__tstate); | |
6351 | if (PyErr_Occurred()) SWIG_fail; | |
6352 | } | |
4f89f6a3 RD |
6353 | { |
6354 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6355 | } | |
d14a1e28 RD |
6356 | return resultobj; |
6357 | fail: | |
6358 | return NULL; | |
6359 | } | |
6360 | ||
6361 | ||
6362 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6363 | PyObject *resultobj; | |
6364 | wxString *arg1 = 0 ; | |
6365 | size_t arg2 ; | |
6366 | wxTipProvider *result; | |
e811c8ce | 6367 | bool temp1 = False ; |
d14a1e28 RD |
6368 | PyObject * obj0 = 0 ; |
6369 | PyObject * obj1 = 0 ; | |
6370 | char *kwnames[] = { | |
6371 | (char *) "filename",(char *) "currentTip", NULL | |
6372 | }; | |
6373 | ||
6374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6375 | { | |
6376 | arg1 = wxString_in_helper(obj0); | |
6377 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 6378 | temp1 = True; |
d14a1e28 | 6379 | } |
15afbcd0 RD |
6380 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); |
6381 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6382 | { |
6383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6384 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6385 | ||
6386 | wxPyEndAllowThreads(__tstate); | |
6387 | if (PyErr_Occurred()) SWIG_fail; | |
6388 | } | |
15afbcd0 | 6389 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); |
d14a1e28 RD |
6390 | { |
6391 | if (temp1) | |
6392 | delete arg1; | |
6393 | } | |
6394 | return resultobj; | |
6395 | fail: | |
6396 | { | |
6397 | if (temp1) | |
6398 | delete arg1; | |
6399 | } | |
6400 | return NULL; | |
6401 | } | |
6402 | ||
6403 | ||
6404 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6405 | PyObject *resultobj; | |
6406 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6407 | int arg2 = (int) -1 ; | |
6408 | wxPyTimer *result; | |
6409 | PyObject * obj0 = 0 ; | |
994141e6 | 6410 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6411 | char *kwnames[] = { |
6412 | (char *) "owner",(char *) "id", NULL | |
6413 | }; | |
6414 | ||
994141e6 | 6415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6416 | if (obj0) { |
15afbcd0 RD |
6417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
6418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6419 | } |
994141e6 | 6420 | if (obj1) { |
15afbcd0 RD |
6421 | arg2 = (int) SWIG_AsInt(obj1); |
6422 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6423 | } |
d14a1e28 RD |
6424 | { |
6425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6426 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6427 | ||
6428 | wxPyEndAllowThreads(__tstate); | |
6429 | if (PyErr_Occurred()) SWIG_fail; | |
6430 | } | |
15afbcd0 | 6431 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); |
d14a1e28 RD |
6432 | return resultobj; |
6433 | fail: | |
6434 | return NULL; | |
6435 | } | |
6436 | ||
6437 | ||
6438 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6439 | PyObject *resultobj; | |
6440 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6441 | PyObject * obj0 = 0 ; | |
6442 | char *kwnames[] = { | |
6443 | (char *) "self", NULL | |
6444 | }; | |
6445 | ||
6446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6449 | { |
6450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6451 | delete arg1; | |
6452 | ||
6453 | wxPyEndAllowThreads(__tstate); | |
6454 | if (PyErr_Occurred()) SWIG_fail; | |
6455 | } | |
6456 | Py_INCREF(Py_None); resultobj = Py_None; | |
6457 | return resultobj; | |
6458 | fail: | |
6459 | return NULL; | |
6460 | } | |
6461 | ||
6462 | ||
7722248d RD |
6463 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
6464 | PyObject *resultobj; | |
6465 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6466 | PyObject *arg2 = (PyObject *) 0 ; | |
6467 | PyObject *arg3 = (PyObject *) 0 ; | |
4276dc52 | 6468 | int arg4 = (int) 1 ; |
7722248d RD |
6469 | PyObject * obj0 = 0 ; |
6470 | PyObject * obj1 = 0 ; | |
6471 | PyObject * obj2 = 0 ; | |
4276dc52 | 6472 | PyObject * obj3 = 0 ; |
7722248d | 6473 | char *kwnames[] = { |
4276dc52 | 6474 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL |
7722248d RD |
6475 | }; |
6476 | ||
4276dc52 | 6477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
6478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7722248d RD |
6480 | arg2 = obj1; |
6481 | arg3 = obj2; | |
4276dc52 RD |
6482 | if (obj3) { |
6483 | arg4 = (int) SWIG_AsInt(obj3); | |
6484 | if (PyErr_Occurred()) SWIG_fail; | |
6485 | } | |
7722248d RD |
6486 | { |
6487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4276dc52 | 6488 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); |
7722248d RD |
6489 | |
6490 | wxPyEndAllowThreads(__tstate); | |
6491 | if (PyErr_Occurred()) SWIG_fail; | |
6492 | } | |
6493 | Py_INCREF(Py_None); resultobj = Py_None; | |
6494 | return resultobj; | |
6495 | fail: | |
6496 | return NULL; | |
6497 | } | |
6498 | ||
6499 | ||
d14a1e28 RD |
6500 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
6501 | PyObject *resultobj; | |
6502 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6503 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6504 | int arg3 = (int) -1 ; | |
6505 | PyObject * obj0 = 0 ; | |
6506 | PyObject * obj1 = 0 ; | |
994141e6 | 6507 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6508 | char *kwnames[] = { |
6509 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6510 | }; | |
6511 | ||
994141e6 | 6512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6515 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
6516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6517 | if (obj2) { |
15afbcd0 RD |
6518 | arg3 = (int) SWIG_AsInt(obj2); |
6519 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6520 | } |
d14a1e28 RD |
6521 | { |
6522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6523 | (arg1)->SetOwner(arg2,arg3); | |
6524 | ||
6525 | wxPyEndAllowThreads(__tstate); | |
6526 | if (PyErr_Occurred()) SWIG_fail; | |
6527 | } | |
6528 | Py_INCREF(Py_None); resultobj = Py_None; | |
6529 | return resultobj; | |
6530 | fail: | |
6531 | return NULL; | |
6532 | } | |
6533 | ||
6534 | ||
1c0f361b RD |
6535 | static PyObject *_wrap_Timer_GetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
6536 | PyObject *resultobj; | |
6537 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6538 | wxEvtHandler *result; | |
6539 | PyObject * obj0 = 0 ; | |
6540 | char *kwnames[] = { | |
6541 | (char *) "self", NULL | |
6542 | }; | |
6543 | ||
6544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail; | |
6545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6547 | { | |
6548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6549 | result = (wxEvtHandler *)(arg1)->GetOwner(); | |
6550 | ||
6551 | wxPyEndAllowThreads(__tstate); | |
6552 | if (PyErr_Occurred()) SWIG_fail; | |
6553 | } | |
6554 | { | |
6555 | resultobj = wxPyMake_wxObject(result); | |
6556 | } | |
6557 | return resultobj; | |
6558 | fail: | |
6559 | return NULL; | |
6560 | } | |
6561 | ||
6562 | ||
d14a1e28 RD |
6563 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { |
6564 | PyObject *resultobj; | |
6565 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6566 | int arg2 = (int) -1 ; | |
e811c8ce | 6567 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6568 | bool result; |
6569 | PyObject * obj0 = 0 ; | |
994141e6 | 6570 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6571 | PyObject * obj2 = 0 ; |
6572 | char *kwnames[] = { | |
6573 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
6574 | }; | |
6575 | ||
994141e6 | 6576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6579 | if (obj1) { |
15afbcd0 RD |
6580 | arg2 = (int) SWIG_AsInt(obj1); |
6581 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6582 | } |
d14a1e28 | 6583 | if (obj2) { |
15afbcd0 RD |
6584 | arg3 = (bool) SWIG_AsBool(obj2); |
6585 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6586 | } |
6587 | { | |
6588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6589 | result = (bool)(arg1)->Start(arg2,arg3); | |
6590 | ||
6591 | wxPyEndAllowThreads(__tstate); | |
6592 | if (PyErr_Occurred()) SWIG_fail; | |
6593 | } | |
4f89f6a3 RD |
6594 | { |
6595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6596 | } | |
d14a1e28 RD |
6597 | return resultobj; |
6598 | fail: | |
6599 | return NULL; | |
6600 | } | |
6601 | ||
6602 | ||
6603 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6604 | PyObject *resultobj; | |
6605 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6606 | PyObject * obj0 = 0 ; | |
6607 | char *kwnames[] = { | |
6608 | (char *) "self", NULL | |
6609 | }; | |
6610 | ||
6611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6614 | { |
6615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6616 | (arg1)->Stop(); | |
6617 | ||
6618 | wxPyEndAllowThreads(__tstate); | |
6619 | if (PyErr_Occurred()) SWIG_fail; | |
6620 | } | |
6621 | Py_INCREF(Py_None); resultobj = Py_None; | |
6622 | return resultobj; | |
6623 | fail: | |
6624 | return NULL; | |
6625 | } | |
6626 | ||
6627 | ||
d14a1e28 RD |
6628 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { |
6629 | PyObject *resultobj; | |
6630 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6631 | bool result; | |
6632 | PyObject * obj0 = 0 ; | |
6633 | char *kwnames[] = { | |
6634 | (char *) "self", NULL | |
6635 | }; | |
6636 | ||
6637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6640 | { |
6641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6642 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
6643 | ||
6644 | wxPyEndAllowThreads(__tstate); | |
6645 | if (PyErr_Occurred()) SWIG_fail; | |
6646 | } | |
4f89f6a3 RD |
6647 | { |
6648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6649 | } | |
d14a1e28 RD |
6650 | return resultobj; |
6651 | fail: | |
6652 | return NULL; | |
6653 | } | |
6654 | ||
6655 | ||
6656 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6657 | PyObject *resultobj; | |
6658 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6659 | int result; | |
6660 | PyObject * obj0 = 0 ; | |
6661 | char *kwnames[] = { | |
6662 | (char *) "self", NULL | |
6663 | }; | |
6664 | ||
6665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6668 | { |
6669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6670 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
6671 | ||
6672 | wxPyEndAllowThreads(__tstate); | |
6673 | if (PyErr_Occurred()) SWIG_fail; | |
6674 | } | |
15afbcd0 | 6675 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6676 | return resultobj; |
6677 | fail: | |
6678 | return NULL; | |
6679 | } | |
6680 | ||
6681 | ||
6682 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6683 | PyObject *resultobj; | |
6684 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6685 | bool result; | |
6686 | PyObject * obj0 = 0 ; | |
6687 | char *kwnames[] = { | |
6688 | (char *) "self", NULL | |
6689 | }; | |
6690 | ||
6691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6694 | { |
6695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6696 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
6697 | ||
6698 | wxPyEndAllowThreads(__tstate); | |
6699 | if (PyErr_Occurred()) SWIG_fail; | |
6700 | } | |
4f89f6a3 RD |
6701 | { |
6702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6703 | } | |
d14a1e28 RD |
6704 | return resultobj; |
6705 | fail: | |
6706 | return NULL; | |
6707 | } | |
6708 | ||
6709 | ||
cc6dd355 RD |
6710 | static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
6711 | PyObject *resultobj; | |
6712 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6713 | int result; | |
6714 | PyObject * obj0 = 0 ; | |
6715 | char *kwnames[] = { | |
6716 | (char *) "self", NULL | |
6717 | }; | |
6718 | ||
6719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
cc6dd355 RD |
6722 | { |
6723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6724 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
6725 | ||
6726 | wxPyEndAllowThreads(__tstate); | |
6727 | if (PyErr_Occurred()) SWIG_fail; | |
6728 | } | |
15afbcd0 | 6729 | resultobj = SWIG_FromInt((int)result); |
cc6dd355 RD |
6730 | return resultobj; |
6731 | fail: | |
6732 | return NULL; | |
6733 | } | |
6734 | ||
6735 | ||
d14a1e28 RD |
6736 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { |
6737 | PyObject *obj; | |
6738 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6739 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
6740 | Py_INCREF(obj); | |
6741 | return Py_BuildValue((char *)""); | |
6742 | } | |
6743 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6744 | PyObject *resultobj; | |
6745 | int arg1 = (int) 0 ; | |
6746 | int arg2 = (int) 0 ; | |
6747 | wxTimerEvent *result; | |
994141e6 RD |
6748 | PyObject * obj0 = 0 ; |
6749 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
6750 | char *kwnames[] = { |
6751 | (char *) "timerid",(char *) "interval", NULL | |
6752 | }; | |
6753 | ||
994141e6 RD |
6754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; |
6755 | if (obj0) { | |
15afbcd0 RD |
6756 | arg1 = (int) SWIG_AsInt(obj0); |
6757 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
6758 | } |
6759 | if (obj1) { | |
15afbcd0 RD |
6760 | arg2 = (int) SWIG_AsInt(obj1); |
6761 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6762 | } |
d14a1e28 RD |
6763 | { |
6764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6765 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
6766 | ||
6767 | wxPyEndAllowThreads(__tstate); | |
6768 | if (PyErr_Occurred()) SWIG_fail; | |
6769 | } | |
15afbcd0 | 6770 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); |
d14a1e28 RD |
6771 | return resultobj; |
6772 | fail: | |
6773 | return NULL; | |
6774 | } | |
6775 | ||
6776 | ||
6777 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6778 | PyObject *resultobj; | |
6779 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
6780 | int result; | |
6781 | PyObject * obj0 = 0 ; | |
6782 | char *kwnames[] = { | |
6783 | (char *) "self", NULL | |
6784 | }; | |
6785 | ||
6786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent, |
6788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6789 | { |
6790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6791 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
6792 | ||
6793 | wxPyEndAllowThreads(__tstate); | |
6794 | if (PyErr_Occurred()) SWIG_fail; | |
6795 | } | |
15afbcd0 | 6796 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6797 | return resultobj; |
6798 | fail: | |
6799 | return NULL; | |
6800 | } | |
6801 | ||
6802 | ||
6803 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
6804 | PyObject *obj; | |
6805 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6806 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
6807 | Py_INCREF(obj); | |
6808 | return Py_BuildValue((char *)""); | |
6809 | } | |
6810 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
6811 | PyObject *resultobj; | |
6812 | wxTimer *arg1 = 0 ; | |
6813 | wxTimerRunner *result; | |
6814 | PyObject * obj0 = 0 ; | |
6815 | ||
6816 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
15afbcd0 RD |
6817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, |
6818 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6819 | SWIG_fail; | |
d14a1e28 | 6820 | if (arg1 == NULL) { |
15afbcd0 RD |
6821 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6822 | SWIG_fail; | |
d14a1e28 RD |
6823 | } |
6824 | { | |
6825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6826 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
6827 | ||
6828 | wxPyEndAllowThreads(__tstate); | |
6829 | if (PyErr_Occurred()) SWIG_fail; | |
6830 | } | |
15afbcd0 | 6831 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); |
d14a1e28 RD |
6832 | return resultobj; |
6833 | fail: | |
6834 | return NULL; | |
6835 | } | |
6836 | ||
6837 | ||
6838 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { | |
6839 | PyObject *resultobj; | |
6840 | wxTimer *arg1 = 0 ; | |
6841 | int arg2 ; | |
e811c8ce | 6842 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6843 | wxTimerRunner *result; |
6844 | PyObject * obj0 = 0 ; | |
994141e6 | 6845 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6846 | PyObject * obj2 = 0 ; |
6847 | ||
994141e6 | 6848 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, |
6850 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6851 | SWIG_fail; | |
d14a1e28 | 6852 | if (arg1 == NULL) { |
15afbcd0 RD |
6853 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6854 | SWIG_fail; | |
994141e6 | 6855 | } |
15afbcd0 RD |
6856 | arg2 = (int) SWIG_AsInt(obj1); |
6857 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 6858 | if (obj2) { |
15afbcd0 RD |
6859 | arg3 = (bool) SWIG_AsBool(obj2); |
6860 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6861 | } |
6862 | { | |
6863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6864 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
6865 | ||
6866 | wxPyEndAllowThreads(__tstate); | |
6867 | if (PyErr_Occurred()) SWIG_fail; | |
6868 | } | |
15afbcd0 | 6869 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); |
d14a1e28 RD |
6870 | return resultobj; |
6871 | fail: | |
6872 | return NULL; | |
6873 | } | |
6874 | ||
6875 | ||
6876 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
6877 | int argc; | |
6878 | PyObject *argv[4]; | |
6879 | int ii; | |
6880 | ||
6881 | argc = PyObject_Length(args); | |
6882 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
6883 | argv[ii] = PyTuple_GetItem(args,ii); | |
6884 | } | |
6885 | if (argc == 1) { | |
6886 | int _v; | |
6887 | { | |
6888 | void *ptr; | |
15afbcd0 | 6889 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
d14a1e28 RD |
6890 | _v = 0; |
6891 | PyErr_Clear(); | |
6892 | } else { | |
6893 | _v = 1; | |
6894 | } | |
6895 | } | |
6896 | if (_v) { | |
6897 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
6898 | } | |
6899 | } | |
6900 | if ((argc >= 2) && (argc <= 3)) { | |
6901 | int _v; | |
6902 | { | |
6903 | void *ptr; | |
15afbcd0 | 6904 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
d14a1e28 RD |
6905 | _v = 0; |
6906 | PyErr_Clear(); | |
6907 | } else { | |
6908 | _v = 1; | |
6909 | } | |
6910 | } | |
6911 | if (_v) { | |
15afbcd0 | 6912 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
6913 | if (_v) { |
6914 | if (argc <= 2) { | |
6915 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6916 | } | |
15afbcd0 | 6917 | _v = SWIG_CheckBool(argv[2]); |
d14a1e28 RD |
6918 | if (_v) { |
6919 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6920 | } | |
6921 | } | |
6922 | } | |
6923 | } | |
6924 | ||
6925 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
6926 | return NULL; | |
6927 | } | |
6928 | ||
6929 | ||
6930 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6931 | PyObject *resultobj; | |
6932 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6933 | PyObject * obj0 = 0 ; | |
6934 | char *kwnames[] = { | |
6935 | (char *) "self", NULL | |
6936 | }; | |
6937 | ||
6938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, |
6940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6941 | { |
6942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6943 | delete arg1; | |
6944 | ||
6945 | wxPyEndAllowThreads(__tstate); | |
6946 | if (PyErr_Occurred()) SWIG_fail; | |
6947 | } | |
6948 | Py_INCREF(Py_None); resultobj = Py_None; | |
6949 | return resultobj; | |
6950 | fail: | |
6951 | return NULL; | |
6952 | } | |
6953 | ||
6954 | ||
6955 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6956 | PyObject *resultobj; | |
6957 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6958 | int arg2 ; | |
e811c8ce | 6959 | bool arg3 = (bool) False ; |
d14a1e28 | 6960 | PyObject * obj0 = 0 ; |
994141e6 | 6961 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6962 | PyObject * obj2 = 0 ; |
6963 | char *kwnames[] = { | |
6964 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
6965 | }; | |
6966 | ||
994141e6 | 6967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, |
6969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6970 | arg2 = (int) SWIG_AsInt(obj1); | |
6971 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 6972 | if (obj2) { |
15afbcd0 RD |
6973 | arg3 = (bool) SWIG_AsBool(obj2); |
6974 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6975 | } |
6976 | { | |
6977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6978 | (arg1)->Start(arg2,arg3); | |
6979 | ||
6980 | wxPyEndAllowThreads(__tstate); | |
6981 | if (PyErr_Occurred()) SWIG_fail; | |
6982 | } | |
6983 | Py_INCREF(Py_None); resultobj = Py_None; | |
6984 | return resultobj; | |
6985 | fail: | |
6986 | return NULL; | |
6987 | } | |
6988 | ||
6989 | ||
6990 | static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
6991 | PyObject *obj; | |
6992 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6993 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
6994 | Py_INCREF(obj); | |
6995 | return Py_BuildValue((char *)""); | |
6996 | } | |
6997 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6998 | PyObject *resultobj; | |
6999 | wxLog *result; | |
7000 | char *kwnames[] = { | |
7001 | NULL | |
7002 | }; | |
7003 | ||
7004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
7005 | { | |
7006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7007 | result = (wxLog *)new wxLog(); | |
7008 | ||
7009 | wxPyEndAllowThreads(__tstate); | |
7010 | if (PyErr_Occurred()) SWIG_fail; | |
7011 | } | |
15afbcd0 | 7012 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); |
d14a1e28 RD |
7013 | return resultobj; |
7014 | fail: | |
7015 | return NULL; | |
7016 | } | |
7017 | ||
7018 | ||
7019 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7020 | PyObject *resultobj; | |
7021 | bool result; | |
7022 | char *kwnames[] = { | |
7023 | NULL | |
7024 | }; | |
7025 | ||
7026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
7027 | { | |
7028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7029 | result = (bool)wxLog::IsEnabled(); | |
7030 | ||
7031 | wxPyEndAllowThreads(__tstate); | |
7032 | if (PyErr_Occurred()) SWIG_fail; | |
7033 | } | |
4f89f6a3 RD |
7034 | { |
7035 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7036 | } | |
d14a1e28 RD |
7037 | return resultobj; |
7038 | fail: | |
7039 | return NULL; | |
7040 | } | |
7041 | ||
7042 | ||
7043 | static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7044 | PyObject *resultobj; | |
e811c8ce | 7045 | bool arg1 = (bool) True ; |
d14a1e28 RD |
7046 | bool result; |
7047 | PyObject * obj0 = 0 ; | |
7048 | char *kwnames[] = { | |
7049 | (char *) "doIt", NULL | |
7050 | }; | |
7051 | ||
7052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
7053 | if (obj0) { | |
15afbcd0 RD |
7054 | arg1 = (bool) SWIG_AsBool(obj0); |
7055 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7056 | } |
7057 | { | |
7058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7059 | result = (bool)wxLog::EnableLogging(arg1); | |
7060 | ||
7061 | wxPyEndAllowThreads(__tstate); | |
7062 | if (PyErr_Occurred()) SWIG_fail; | |
7063 | } | |
4f89f6a3 RD |
7064 | { |
7065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7066 | } | |
d14a1e28 RD |
7067 | return resultobj; |
7068 | fail: | |
7069 | return NULL; | |
7070 | } | |
7071 | ||
7072 | ||
7073 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7074 | PyObject *resultobj; | |
7075 | wxLogLevel arg1 ; | |
7076 | wxChar *arg2 = (wxChar *) 0 ; | |
7077 | time_t arg3 ; | |
7078 | PyObject * obj0 = 0 ; | |
7079 | PyObject * obj1 = 0 ; | |
7080 | PyObject * obj2 = 0 ; | |
7081 | char *kwnames[] = { | |
7082 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
7083 | }; | |
7084 | ||
7085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7086 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); |
7087 | if (PyErr_Occurred()) SWIG_fail; | |
7088 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar, | |
7089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7090 | arg3 = (time_t) SWIG_AsUnsignedInt(obj2); | |
7091 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7092 | { |
7093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7094 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
7095 | ||
7096 | wxPyEndAllowThreads(__tstate); | |
7097 | if (PyErr_Occurred()) SWIG_fail; | |
7098 | } | |
7099 | Py_INCREF(Py_None); resultobj = Py_None; | |
7100 | return resultobj; | |
7101 | fail: | |
7102 | return NULL; | |
7103 | } | |
7104 | ||
7105 | ||
7106 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7107 | PyObject *resultobj; | |
7108 | wxLog *arg1 = (wxLog *) 0 ; | |
7109 | PyObject * obj0 = 0 ; | |
7110 | char *kwnames[] = { | |
7111 | (char *) "self", NULL | |
7112 | }; | |
7113 | ||
7114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7117 | { |
7118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7119 | (arg1)->Flush(); | |
7120 | ||
7121 | wxPyEndAllowThreads(__tstate); | |
7122 | if (PyErr_Occurred()) SWIG_fail; | |
7123 | } | |
7124 | Py_INCREF(Py_None); resultobj = Py_None; | |
7125 | return resultobj; | |
7126 | fail: | |
7127 | return NULL; | |
7128 | } | |
7129 | ||
7130 | ||
7131 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7132 | PyObject *resultobj; | |
7133 | char *kwnames[] = { | |
7134 | NULL | |
7135 | }; | |
7136 | ||
7137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
7138 | { | |
7139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7140 | wxLog::FlushActive(); | |
7141 | ||
7142 | wxPyEndAllowThreads(__tstate); | |
7143 | if (PyErr_Occurred()) SWIG_fail; | |
7144 | } | |
7145 | Py_INCREF(Py_None); resultobj = Py_None; | |
7146 | return resultobj; | |
7147 | fail: | |
7148 | return NULL; | |
7149 | } | |
7150 | ||
7151 | ||
7152 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7153 | PyObject *resultobj; | |
7154 | wxLog *result; | |
7155 | char *kwnames[] = { | |
7156 | NULL | |
7157 | }; | |
7158 | ||
7159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
7160 | { | |
7161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7162 | result = (wxLog *)wxLog::GetActiveTarget(); | |
7163 | ||
7164 | wxPyEndAllowThreads(__tstate); | |
7165 | if (PyErr_Occurred()) SWIG_fail; | |
7166 | } | |
15afbcd0 | 7167 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
7168 | return resultobj; |
7169 | fail: | |
7170 | return NULL; | |
7171 | } | |
7172 | ||
7173 | ||
7174 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7175 | PyObject *resultobj; | |
7176 | wxLog *arg1 = (wxLog *) 0 ; | |
7177 | wxLog *result; | |
7178 | PyObject * obj0 = 0 ; | |
7179 | char *kwnames[] = { | |
7180 | (char *) "pLogger", NULL | |
7181 | }; | |
7182 | ||
7183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7186 | { |
7187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7188 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
7189 | ||
7190 | wxPyEndAllowThreads(__tstate); | |
7191 | if (PyErr_Occurred()) SWIG_fail; | |
7192 | } | |
15afbcd0 | 7193 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
7194 | return resultobj; |
7195 | fail: | |
7196 | return NULL; | |
7197 | } | |
7198 | ||
7199 | ||
7200 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7201 | PyObject *resultobj; | |
7202 | char *kwnames[] = { | |
7203 | NULL | |
7204 | }; | |
7205 | ||
7206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
7207 | { | |
7208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7209 | wxLog::Suspend(); | |
7210 | ||
7211 | wxPyEndAllowThreads(__tstate); | |
7212 | if (PyErr_Occurred()) SWIG_fail; | |
7213 | } | |
7214 | Py_INCREF(Py_None); resultobj = Py_None; | |
7215 | return resultobj; | |
7216 | fail: | |
7217 | return NULL; | |
7218 | } | |
7219 | ||
7220 | ||
7221 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7222 | PyObject *resultobj; | |
7223 | char *kwnames[] = { | |
7224 | NULL | |
7225 | }; | |
7226 | ||
7227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
7228 | { | |
7229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7230 | wxLog::Resume(); | |
7231 | ||
7232 | wxPyEndAllowThreads(__tstate); | |
7233 | if (PyErr_Occurred()) SWIG_fail; | |
7234 | } | |
7235 | Py_INCREF(Py_None); resultobj = Py_None; | |
7236 | return resultobj; | |
7237 | fail: | |
7238 | return NULL; | |
7239 | } | |
7240 | ||
7241 | ||
7242 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7243 | PyObject *resultobj; | |
e811c8ce | 7244 | bool arg1 = (bool) True ; |
d14a1e28 RD |
7245 | PyObject * obj0 = 0 ; |
7246 | char *kwnames[] = { | |
7247 | (char *) "bVerbose", NULL | |
7248 | }; | |
7249 | ||
7250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
7251 | if (obj0) { | |
15afbcd0 RD |
7252 | arg1 = (bool) SWIG_AsBool(obj0); |
7253 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7254 | } |
7255 | { | |
7256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7257 | wxLog::SetVerbose(arg1); | |
7258 | ||
7259 | wxPyEndAllowThreads(__tstate); | |
7260 | if (PyErr_Occurred()) SWIG_fail; | |
7261 | } | |
7262 | Py_INCREF(Py_None); resultobj = Py_None; | |
7263 | return resultobj; | |
7264 | fail: | |
7265 | return NULL; | |
7266 | } | |
7267 | ||
7268 | ||
7269 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7270 | PyObject *resultobj; | |
7271 | wxLogLevel arg1 ; | |
7272 | PyObject * obj0 = 0 ; | |
7273 | char *kwnames[] = { | |
7274 | (char *) "logLevel", NULL | |
7275 | }; | |
7276 | ||
7277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7278 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); |
7279 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7280 | { |
7281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7282 | wxLog::SetLogLevel(arg1); | |
7283 | ||
7284 | wxPyEndAllowThreads(__tstate); | |
7285 | if (PyErr_Occurred()) SWIG_fail; | |
7286 | } | |
7287 | Py_INCREF(Py_None); resultobj = Py_None; | |
7288 | return resultobj; | |
7289 | fail: | |
7290 | return NULL; | |
7291 | } | |
7292 | ||
7293 | ||
7294 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7295 | PyObject *resultobj; | |
7296 | char *kwnames[] = { | |
7297 | NULL | |
7298 | }; | |
7299 | ||
7300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
7301 | { | |
7302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7303 | wxLog::DontCreateOnDemand(); | |
7304 | ||
7305 | wxPyEndAllowThreads(__tstate); | |
7306 | if (PyErr_Occurred()) SWIG_fail; | |
7307 | } | |
7308 | Py_INCREF(Py_None); resultobj = Py_None; | |
7309 | return resultobj; | |
7310 | fail: | |
7311 | return NULL; | |
7312 | } | |
7313 | ||
7314 | ||
7315 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7316 | PyObject *resultobj; | |
7317 | wxTraceMask arg1 ; | |
7318 | PyObject * obj0 = 0 ; | |
7319 | char *kwnames[] = { | |
7320 | (char *) "ulMask", NULL | |
7321 | }; | |
7322 | ||
7323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7324 | arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0); |
7325 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7326 | { |
7327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7328 | wxLog::SetTraceMask(arg1); | |
7329 | ||
7330 | wxPyEndAllowThreads(__tstate); | |
7331 | if (PyErr_Occurred()) SWIG_fail; | |
7332 | } | |
7333 | Py_INCREF(Py_None); resultobj = Py_None; | |
7334 | return resultobj; | |
7335 | fail: | |
7336 | return NULL; | |
7337 | } | |
7338 | ||
7339 | ||
7340 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7341 | PyObject *resultobj; | |
7342 | wxString *arg1 = 0 ; | |
e811c8ce | 7343 | bool temp1 = False ; |
d14a1e28 RD |
7344 | PyObject * obj0 = 0 ; |
7345 | char *kwnames[] = { | |
7346 | (char *) "str", NULL | |
7347 | }; | |
7348 | ||
7349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
7350 | { | |
7351 | arg1 = wxString_in_helper(obj0); | |
7352 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7353 | temp1 = True; |
d14a1e28 RD |
7354 | } |
7355 | { | |
7356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7357 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7358 | ||
7359 | wxPyEndAllowThreads(__tstate); | |
7360 | if (PyErr_Occurred()) SWIG_fail; | |
7361 | } | |
7362 | Py_INCREF(Py_None); resultobj = Py_None; | |
7363 | { | |
7364 | if (temp1) | |
7365 | delete arg1; | |
7366 | } | |
7367 | return resultobj; | |
7368 | fail: | |
7369 | { | |
7370 | if (temp1) | |
7371 | delete arg1; | |
7372 | } | |
7373 | return NULL; | |
7374 | } | |
7375 | ||
7376 | ||
7377 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7378 | PyObject *resultobj; | |
7379 | wxString *arg1 = 0 ; | |
e811c8ce | 7380 | bool temp1 = False ; |
d14a1e28 RD |
7381 | PyObject * obj0 = 0 ; |
7382 | char *kwnames[] = { | |
7383 | (char *) "str", NULL | |
7384 | }; | |
7385 | ||
7386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7387 | { | |
7388 | arg1 = wxString_in_helper(obj0); | |
7389 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7390 | temp1 = True; |
d14a1e28 RD |
7391 | } |
7392 | { | |
7393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7394 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7395 | ||
7396 | wxPyEndAllowThreads(__tstate); | |
7397 | if (PyErr_Occurred()) SWIG_fail; | |
7398 | } | |
7399 | Py_INCREF(Py_None); resultobj = Py_None; | |
7400 | { | |
7401 | if (temp1) | |
7402 | delete arg1; | |
7403 | } | |
7404 | return resultobj; | |
7405 | fail: | |
7406 | { | |
7407 | if (temp1) | |
7408 | delete arg1; | |
7409 | } | |
7410 | return NULL; | |
7411 | } | |
7412 | ||
7413 | ||
7414 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7415 | PyObject *resultobj; | |
7416 | char *kwnames[] = { | |
7417 | NULL | |
7418 | }; | |
7419 | ||
7420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7421 | { | |
7422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7423 | wxLog::ClearTraceMasks(); | |
7424 | ||
7425 | wxPyEndAllowThreads(__tstate); | |
7426 | if (PyErr_Occurred()) SWIG_fail; | |
7427 | } | |
7428 | Py_INCREF(Py_None); resultobj = Py_None; | |
7429 | return resultobj; | |
7430 | fail: | |
7431 | return NULL; | |
7432 | } | |
7433 | ||
7434 | ||
7435 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7436 | PyObject *resultobj; | |
7437 | wxArrayString *result; | |
7438 | char *kwnames[] = { | |
7439 | NULL | |
7440 | }; | |
7441 | ||
7442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7443 | { | |
7444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7445 | { | |
7446 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7447 | result = (wxArrayString *) &_result_ref; | |
7448 | } | |
7449 | ||
7450 | wxPyEndAllowThreads(__tstate); | |
7451 | if (PyErr_Occurred()) SWIG_fail; | |
7452 | } | |
7453 | { | |
7454 | resultobj = wxArrayString2PyList_helper(*result); | |
7455 | } | |
7456 | return resultobj; | |
7457 | fail: | |
7458 | return NULL; | |
7459 | } | |
7460 | ||
7461 | ||
7462 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7463 | PyObject *resultobj; | |
7464 | wxChar *arg1 = (wxChar *) 0 ; | |
7465 | PyObject * obj0 = 0 ; | |
7466 | char *kwnames[] = { | |
7467 | (char *) "ts", NULL | |
7468 | }; | |
7469 | ||
7470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, |
7472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7473 | { |
7474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7475 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7476 | ||
7477 | wxPyEndAllowThreads(__tstate); | |
7478 | if (PyErr_Occurred()) SWIG_fail; | |
7479 | } | |
7480 | Py_INCREF(Py_None); resultobj = Py_None; | |
7481 | return resultobj; | |
7482 | fail: | |
7483 | return NULL; | |
7484 | } | |
7485 | ||
7486 | ||
7487 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7488 | PyObject *resultobj; | |
7489 | bool result; | |
7490 | char *kwnames[] = { | |
7491 | NULL | |
7492 | }; | |
7493 | ||
7494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7495 | { | |
7496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7497 | result = (bool)wxLog::GetVerbose(); | |
7498 | ||
7499 | wxPyEndAllowThreads(__tstate); | |
7500 | if (PyErr_Occurred()) SWIG_fail; | |
7501 | } | |
4f89f6a3 RD |
7502 | { |
7503 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7504 | } | |
d14a1e28 RD |
7505 | return resultobj; |
7506 | fail: | |
7507 | return NULL; | |
7508 | } | |
7509 | ||
7510 | ||
7511 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7512 | PyObject *resultobj; | |
7513 | wxTraceMask result; | |
7514 | char *kwnames[] = { | |
7515 | NULL | |
7516 | }; | |
7517 | ||
7518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7519 | { | |
7520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7521 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7522 | ||
7523 | wxPyEndAllowThreads(__tstate); | |
7524 | if (PyErr_Occurred()) SWIG_fail; | |
7525 | } | |
15afbcd0 | 7526 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7527 | return resultobj; |
7528 | fail: | |
7529 | return NULL; | |
7530 | } | |
7531 | ||
7532 | ||
7533 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7534 | PyObject *resultobj; | |
7535 | wxChar *arg1 = (wxChar *) 0 ; | |
7536 | bool result; | |
7537 | PyObject * obj0 = 0 ; | |
7538 | char *kwnames[] = { | |
7539 | (char *) "mask", NULL | |
7540 | }; | |
7541 | ||
7542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, |
7544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7545 | { |
7546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7547 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
7548 | ||
7549 | wxPyEndAllowThreads(__tstate); | |
7550 | if (PyErr_Occurred()) SWIG_fail; | |
7551 | } | |
4f89f6a3 RD |
7552 | { |
7553 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7554 | } | |
d14a1e28 RD |
7555 | return resultobj; |
7556 | fail: | |
7557 | return NULL; | |
7558 | } | |
7559 | ||
7560 | ||
7561 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7562 | PyObject *resultobj; | |
7563 | wxLogLevel result; | |
7564 | char *kwnames[] = { | |
7565 | NULL | |
7566 | }; | |
7567 | ||
7568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
7569 | { | |
7570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7571 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
7572 | ||
7573 | wxPyEndAllowThreads(__tstate); | |
7574 | if (PyErr_Occurred()) SWIG_fail; | |
7575 | } | |
15afbcd0 | 7576 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7577 | return resultobj; |
7578 | fail: | |
7579 | return NULL; | |
7580 | } | |
7581 | ||
7582 | ||
7583 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7584 | PyObject *resultobj; | |
7585 | wxChar *result; | |
7586 | char *kwnames[] = { | |
7587 | NULL | |
7588 | }; | |
7589 | ||
7590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
7591 | { | |
7592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7593 | result = (wxChar *)wxLog::GetTimestamp(); | |
7594 | ||
7595 | wxPyEndAllowThreads(__tstate); | |
7596 | if (PyErr_Occurred()) SWIG_fail; | |
7597 | } | |
15afbcd0 | 7598 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); |
d14a1e28 RD |
7599 | return resultobj; |
7600 | fail: | |
7601 | return NULL; | |
7602 | } | |
7603 | ||
7604 | ||
7605 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7606 | PyObject *resultobj; | |
7607 | wxString result; | |
7608 | char *kwnames[] = { | |
7609 | NULL | |
7610 | }; | |
7611 | ||
7612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
7613 | { | |
7614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7615 | result = Log_TimeStamp(); | |
7616 | ||
7617 | wxPyEndAllowThreads(__tstate); | |
7618 | if (PyErr_Occurred()) SWIG_fail; | |
7619 | } | |
7620 | { | |
7621 | #if wxUSE_UNICODE | |
7622 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7623 | #else | |
7624 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7625 | #endif | |
7626 | } | |
7627 | return resultobj; | |
7628 | fail: | |
7629 | return NULL; | |
7630 | } | |
7631 | ||
7632 | ||
7633 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7634 | PyObject *resultobj; | |
7635 | wxLog *arg1 = (wxLog *) 0 ; | |
7636 | PyObject * obj0 = 0 ; | |
7637 | char *kwnames[] = { | |
7638 | (char *) "self", NULL | |
7639 | }; | |
7640 | ||
7641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7644 | { |
7645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7646 | wxLog_Destroy(arg1); | |
7647 | ||
7648 | wxPyEndAllowThreads(__tstate); | |
7649 | if (PyErr_Occurred()) SWIG_fail; | |
7650 | } | |
7651 | Py_INCREF(Py_None); resultobj = Py_None; | |
7652 | return resultobj; | |
7653 | fail: | |
7654 | return NULL; | |
7655 | } | |
7656 | ||
7657 | ||
7658 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
7659 | PyObject *obj; | |
7660 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7661 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
7662 | Py_INCREF(obj); | |
7663 | return Py_BuildValue((char *)""); | |
7664 | } | |
7665 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7666 | PyObject *resultobj; | |
7667 | wxLogStderr *result; | |
7668 | char *kwnames[] = { | |
7669 | NULL | |
7670 | }; | |
7671 | ||
7672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
7673 | { | |
7674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7675 | result = (wxLogStderr *)new wxLogStderr(); | |
7676 | ||
7677 | wxPyEndAllowThreads(__tstate); | |
7678 | if (PyErr_Occurred()) SWIG_fail; | |
7679 | } | |
15afbcd0 | 7680 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); |
d14a1e28 RD |
7681 | return resultobj; |
7682 | fail: | |
7683 | return NULL; | |
7684 | } | |
7685 | ||
7686 | ||
7687 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
7688 | PyObject *obj; | |
7689 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7690 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
7691 | Py_INCREF(obj); | |
7692 | return Py_BuildValue((char *)""); | |
7693 | } | |
7694 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7695 | PyObject *resultobj; | |
7696 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7697 | wxLogTextCtrl *result; | |
7698 | PyObject * obj0 = 0 ; | |
7699 | char *kwnames[] = { | |
7700 | (char *) "pTextCtrl", NULL | |
7701 | }; | |
7702 | ||
7703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7706 | { |
7707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7708 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
7709 | ||
7710 | wxPyEndAllowThreads(__tstate); | |
7711 | if (PyErr_Occurred()) SWIG_fail; | |
7712 | } | |
15afbcd0 | 7713 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); |
d14a1e28 RD |
7714 | return resultobj; |
7715 | fail: | |
7716 | return NULL; | |
7717 | } | |
7718 | ||
7719 | ||
7720 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
7721 | PyObject *obj; | |
7722 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7723 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
7724 | Py_INCREF(obj); | |
7725 | return Py_BuildValue((char *)""); | |
7726 | } | |
7727 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7728 | PyObject *resultobj; | |
7729 | wxLogGui *result; | |
7730 | char *kwnames[] = { | |
7731 | NULL | |
7732 | }; | |
7733 | ||
7734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
7735 | { | |
7736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7737 | result = (wxLogGui *)new wxLogGui(); | |
7738 | ||
7739 | wxPyEndAllowThreads(__tstate); | |
7740 | if (PyErr_Occurred()) SWIG_fail; | |
7741 | } | |
15afbcd0 | 7742 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); |
d14a1e28 RD |
7743 | return resultobj; |
7744 | fail: | |
7745 | return NULL; | |
7746 | } | |
7747 | ||
7748 | ||
7749 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
7750 | PyObject *obj; | |
7751 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7752 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
7753 | Py_INCREF(obj); | |
7754 | return Py_BuildValue((char *)""); | |
7755 | } | |
7756 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7757 | PyObject *resultobj; | |
7758 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7759 | wxString *arg2 = 0 ; | |
e811c8ce RD |
7760 | bool arg3 = (bool) True ; |
7761 | bool arg4 = (bool) True ; | |
d14a1e28 | 7762 | wxLogWindow *result; |
e811c8ce | 7763 | bool temp2 = False ; |
d14a1e28 RD |
7764 | PyObject * obj0 = 0 ; |
7765 | PyObject * obj1 = 0 ; | |
7766 | PyObject * obj2 = 0 ; | |
7767 | PyObject * obj3 = 0 ; | |
7768 | char *kwnames[] = { | |
7769 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
7770 | }; | |
7771 | ||
7772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
7773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, |
7774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7775 | { |
7776 | arg2 = wxString_in_helper(obj1); | |
7777 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7778 | temp2 = True; |
d14a1e28 RD |
7779 | } |
7780 | if (obj2) { | |
15afbcd0 RD |
7781 | arg3 = (bool) SWIG_AsBool(obj2); |
7782 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7783 | } |
7784 | if (obj3) { | |
15afbcd0 RD |
7785 | arg4 = (bool) SWIG_AsBool(obj3); |
7786 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7787 | } |
7788 | { | |
7789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7790 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
7791 | ||
7792 | wxPyEndAllowThreads(__tstate); | |
7793 | if (PyErr_Occurred()) SWIG_fail; | |
7794 | } | |
15afbcd0 | 7795 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); |
d14a1e28 RD |
7796 | { |
7797 | if (temp2) | |
7798 | delete arg2; | |
7799 | } | |
7800 | return resultobj; | |
7801 | fail: | |
7802 | { | |
7803 | if (temp2) | |
7804 | delete arg2; | |
7805 | } | |
7806 | return NULL; | |
7807 | } | |
7808 | ||
7809 | ||
7810 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7811 | PyObject *resultobj; | |
7812 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
e811c8ce | 7813 | bool arg2 = (bool) True ; |
d14a1e28 RD |
7814 | PyObject * obj0 = 0 ; |
7815 | PyObject * obj1 = 0 ; | |
7816 | char *kwnames[] = { | |
7817 | (char *) "self",(char *) "bShow", NULL | |
7818 | }; | |
7819 | ||
7820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 7823 | if (obj1) { |
15afbcd0 RD |
7824 | arg2 = (bool) SWIG_AsBool(obj1); |
7825 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7826 | } |
7827 | { | |
7828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7829 | (arg1)->Show(arg2); | |
7830 | ||
7831 | wxPyEndAllowThreads(__tstate); | |
7832 | if (PyErr_Occurred()) SWIG_fail; | |
7833 | } | |
7834 | Py_INCREF(Py_None); resultobj = Py_None; | |
7835 | return resultobj; | |
7836 | fail: | |
7837 | return NULL; | |
7838 | } | |
7839 | ||
7840 | ||
7841 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7842 | PyObject *resultobj; | |
7843 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7844 | wxFrame *result; | |
7845 | PyObject * obj0 = 0 ; | |
7846 | char *kwnames[] = { | |
7847 | (char *) "self", NULL | |
7848 | }; | |
7849 | ||
7850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7853 | { |
7854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7855 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
7856 | ||
7857 | wxPyEndAllowThreads(__tstate); | |
7858 | if (PyErr_Occurred()) SWIG_fail; | |
7859 | } | |
7860 | { | |
7861 | resultobj = wxPyMake_wxObject(result); | |
7862 | } | |
7863 | return resultobj; | |
7864 | fail: | |
7865 | return NULL; | |
7866 | } | |
7867 | ||
7868 | ||
7869 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7870 | PyObject *resultobj; | |
7871 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7872 | wxLog *result; | |
7873 | PyObject * obj0 = 0 ; | |
7874 | char *kwnames[] = { | |
7875 | (char *) "self", NULL | |
7876 | }; | |
7877 | ||
7878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7881 | { |
7882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7883 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
7884 | ||
7885 | wxPyEndAllowThreads(__tstate); | |
7886 | if (PyErr_Occurred()) SWIG_fail; | |
7887 | } | |
15afbcd0 | 7888 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
7889 | return resultobj; |
7890 | fail: | |
7891 | return NULL; | |
7892 | } | |
7893 | ||
7894 | ||
7895 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7896 | PyObject *resultobj; | |
7897 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7898 | bool result; | |
7899 | PyObject * obj0 = 0 ; | |
7900 | char *kwnames[] = { | |
7901 | (char *) "self", NULL | |
7902 | }; | |
7903 | ||
7904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7907 | { |
7908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7909 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
7910 | ||
7911 | wxPyEndAllowThreads(__tstate); | |
7912 | if (PyErr_Occurred()) SWIG_fail; | |
7913 | } | |
4f89f6a3 RD |
7914 | { |
7915 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7916 | } | |
d14a1e28 RD |
7917 | return resultobj; |
7918 | fail: | |
7919 | return NULL; | |
7920 | } | |
7921 | ||
7922 | ||
7923 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7924 | PyObject *resultobj; | |
7925 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7926 | bool arg2 ; | |
7927 | PyObject * obj0 = 0 ; | |
7928 | PyObject * obj1 = 0 ; | |
7929 | char *kwnames[] = { | |
7930 | (char *) "self",(char *) "bDoPass", NULL | |
7931 | }; | |
7932 | ||
7933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7936 | arg2 = (bool) SWIG_AsBool(obj1); | |
7937 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7938 | { |
7939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7940 | (arg1)->PassMessages(arg2); | |
7941 | ||
7942 | wxPyEndAllowThreads(__tstate); | |
7943 | if (PyErr_Occurred()) SWIG_fail; | |
7944 | } | |
7945 | Py_INCREF(Py_None); resultobj = Py_None; | |
7946 | return resultobj; | |
7947 | fail: | |
7948 | return NULL; | |
7949 | } | |
7950 | ||
7951 | ||
7952 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
7953 | PyObject *obj; | |
7954 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7955 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
7956 | Py_INCREF(obj); | |
7957 | return Py_BuildValue((char *)""); | |
7958 | } | |
7959 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7960 | PyObject *resultobj; | |
7961 | wxLog *arg1 = (wxLog *) 0 ; | |
7962 | wxLogChain *result; | |
7963 | PyObject * obj0 = 0 ; | |
7964 | char *kwnames[] = { | |
7965 | (char *) "logger", NULL | |
7966 | }; | |
7967 | ||
7968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7971 | { |
7972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7973 | result = (wxLogChain *)new wxLogChain(arg1); | |
7974 | ||
7975 | wxPyEndAllowThreads(__tstate); | |
7976 | if (PyErr_Occurred()) SWIG_fail; | |
7977 | } | |
15afbcd0 | 7978 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); |
d14a1e28 RD |
7979 | return resultobj; |
7980 | fail: | |
7981 | return NULL; | |
7982 | } | |
7983 | ||
7984 | ||
7985 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7986 | PyObject *resultobj; | |
7987 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7988 | wxLog *arg2 = (wxLog *) 0 ; | |
7989 | PyObject * obj0 = 0 ; | |
7990 | PyObject * obj1 = 0 ; | |
7991 | char *kwnames[] = { | |
7992 | (char *) "self",(char *) "logger", NULL | |
7993 | }; | |
7994 | ||
7995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
7997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7998 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog, | |
7999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8000 | { |
8001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8002 | (arg1)->SetLog(arg2); | |
8003 | ||
8004 | wxPyEndAllowThreads(__tstate); | |
8005 | if (PyErr_Occurred()) SWIG_fail; | |
8006 | } | |
8007 | Py_INCREF(Py_None); resultobj = Py_None; | |
8008 | return resultobj; | |
8009 | fail: | |
8010 | return NULL; | |
8011 | } | |
8012 | ||
8013 | ||
8014 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8015 | PyObject *resultobj; | |
8016 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8017 | bool arg2 ; | |
8018 | PyObject * obj0 = 0 ; | |
8019 | PyObject * obj1 = 0 ; | |
8020 | char *kwnames[] = { | |
8021 | (char *) "self",(char *) "bDoPass", NULL | |
8022 | }; | |
8023 | ||
8024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
8026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8027 | arg2 = (bool) SWIG_AsBool(obj1); | |
8028 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8029 | { |
8030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8031 | (arg1)->PassMessages(arg2); | |
8032 | ||
8033 | wxPyEndAllowThreads(__tstate); | |
8034 | if (PyErr_Occurred()) SWIG_fail; | |
8035 | } | |
8036 | Py_INCREF(Py_None); resultobj = Py_None; | |
8037 | return resultobj; | |
8038 | fail: | |
8039 | return NULL; | |
8040 | } | |
8041 | ||
8042 | ||
8043 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8044 | PyObject *resultobj; | |
8045 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8046 | bool result; | |
8047 | PyObject * obj0 = 0 ; | |
8048 | char *kwnames[] = { | |
8049 | (char *) "self", NULL | |
8050 | }; | |
8051 | ||
8052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
8054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8055 | { |
8056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8057 | result = (bool)(arg1)->IsPassingMessages(); | |
8058 | ||
8059 | wxPyEndAllowThreads(__tstate); | |
8060 | if (PyErr_Occurred()) SWIG_fail; | |
8061 | } | |
4f89f6a3 RD |
8062 | { |
8063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8064 | } | |
d14a1e28 RD |
8065 | return resultobj; |
8066 | fail: | |
8067 | return NULL; | |
8068 | } | |
8069 | ||
8070 | ||
8071 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8072 | PyObject *resultobj; | |
8073 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8074 | wxLog *result; | |
8075 | PyObject * obj0 = 0 ; | |
8076 | char *kwnames[] = { | |
8077 | (char *) "self", NULL | |
8078 | }; | |
8079 | ||
8080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
8082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8083 | { |
8084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8085 | result = (wxLog *)(arg1)->GetOldLog(); | |
8086 | ||
8087 | wxPyEndAllowThreads(__tstate); | |
8088 | if (PyErr_Occurred()) SWIG_fail; | |
8089 | } | |
15afbcd0 | 8090 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
8091 | return resultobj; |
8092 | fail: | |
8093 | return NULL; | |
8094 | } | |
8095 | ||
8096 | ||
8097 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
8098 | PyObject *obj; | |
8099 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8100 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
8101 | Py_INCREF(obj); | |
8102 | return Py_BuildValue((char *)""); | |
8103 | } | |
8104 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8105 | PyObject *resultobj; | |
8106 | unsigned long result; | |
8107 | char *kwnames[] = { | |
8108 | NULL | |
8109 | }; | |
8110 | ||
8111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
8112 | { | |
8113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8114 | result = (unsigned long)wxSysErrorCode(); | |
8115 | ||
8116 | wxPyEndAllowThreads(__tstate); | |
8117 | if (PyErr_Occurred()) SWIG_fail; | |
8118 | } | |
15afbcd0 | 8119 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
8120 | return resultobj; |
8121 | fail: | |
8122 | return NULL; | |
8123 | } | |
8124 | ||
8125 | ||
8126 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8127 | PyObject *resultobj; | |
8128 | unsigned long arg1 = (unsigned long) 0 ; | |
8129 | wxString result; | |
8130 | PyObject * obj0 = 0 ; | |
8131 | char *kwnames[] = { | |
8132 | (char *) "nErrCode", NULL | |
8133 | }; | |
8134 | ||
8135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
8136 | if (obj0) { | |
15afbcd0 RD |
8137 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
8138 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8139 | } |
8140 | { | |
8141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8142 | result = wxSysErrorMsg(arg1); | |
8143 | ||
8144 | wxPyEndAllowThreads(__tstate); | |
8145 | if (PyErr_Occurred()) SWIG_fail; | |
8146 | } | |
8147 | { | |
8148 | #if wxUSE_UNICODE | |
8149 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8150 | #else | |
8151 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8152 | #endif | |
8153 | } | |
8154 | return resultobj; | |
8155 | fail: | |
8156 | return NULL; | |
8157 | } | |
8158 | ||
8159 | ||
8160 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8161 | PyObject *resultobj; | |
8162 | wxString *arg1 = 0 ; | |
e811c8ce | 8163 | bool temp1 = False ; |
d14a1e28 RD |
8164 | PyObject * obj0 = 0 ; |
8165 | char *kwnames[] = { | |
8166 | (char *) "msg", NULL | |
8167 | }; | |
8168 | ||
8169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
8170 | { | |
8171 | arg1 = wxString_in_helper(obj0); | |
8172 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8173 | temp1 = True; |
d14a1e28 RD |
8174 | } |
8175 | { | |
8176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8177 | wxLogFatalError((wxString const &)*arg1); | |
8178 | ||
8179 | wxPyEndAllowThreads(__tstate); | |
8180 | if (PyErr_Occurred()) SWIG_fail; | |
8181 | } | |
8182 | Py_INCREF(Py_None); resultobj = Py_None; | |
8183 | { | |
8184 | if (temp1) | |
8185 | delete arg1; | |
8186 | } | |
8187 | return resultobj; | |
8188 | fail: | |
8189 | { | |
8190 | if (temp1) | |
8191 | delete arg1; | |
8192 | } | |
8193 | return NULL; | |
8194 | } | |
8195 | ||
8196 | ||
8197 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8198 | PyObject *resultobj; | |
8199 | wxString *arg1 = 0 ; | |
e811c8ce | 8200 | bool temp1 = False ; |
d14a1e28 RD |
8201 | PyObject * obj0 = 0 ; |
8202 | char *kwnames[] = { | |
8203 | (char *) "msg", NULL | |
8204 | }; | |
8205 | ||
8206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
8207 | { | |
8208 | arg1 = wxString_in_helper(obj0); | |
8209 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8210 | temp1 = True; |
d14a1e28 RD |
8211 | } |
8212 | { | |
8213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8214 | wxLogError((wxString const &)*arg1); | |
8215 | ||
8216 | wxPyEndAllowThreads(__tstate); | |
8217 | if (PyErr_Occurred()) SWIG_fail; | |
8218 | } | |
8219 | Py_INCREF(Py_None); resultobj = Py_None; | |
8220 | { | |
8221 | if (temp1) | |
8222 | delete arg1; | |
8223 | } | |
8224 | return resultobj; | |
8225 | fail: | |
8226 | { | |
8227 | if (temp1) | |
8228 | delete arg1; | |
8229 | } | |
8230 | return NULL; | |
8231 | } | |
8232 | ||
8233 | ||
8234 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8235 | PyObject *resultobj; | |
8236 | wxString *arg1 = 0 ; | |
e811c8ce | 8237 | bool temp1 = False ; |
d14a1e28 RD |
8238 | PyObject * obj0 = 0 ; |
8239 | char *kwnames[] = { | |
8240 | (char *) "msg", NULL | |
8241 | }; | |
8242 | ||
8243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
8244 | { | |
8245 | arg1 = wxString_in_helper(obj0); | |
8246 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8247 | temp1 = True; |
d14a1e28 RD |
8248 | } |
8249 | { | |
8250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8251 | wxLogWarning((wxString const &)*arg1); | |
8252 | ||
8253 | wxPyEndAllowThreads(__tstate); | |
8254 | if (PyErr_Occurred()) SWIG_fail; | |
8255 | } | |
8256 | Py_INCREF(Py_None); resultobj = Py_None; | |
8257 | { | |
8258 | if (temp1) | |
8259 | delete arg1; | |
8260 | } | |
8261 | return resultobj; | |
8262 | fail: | |
8263 | { | |
8264 | if (temp1) | |
8265 | delete arg1; | |
8266 | } | |
8267 | return NULL; | |
8268 | } | |
8269 | ||
8270 | ||
8271 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8272 | PyObject *resultobj; | |
8273 | wxString *arg1 = 0 ; | |
e811c8ce | 8274 | bool temp1 = False ; |
d14a1e28 RD |
8275 | PyObject * obj0 = 0 ; |
8276 | char *kwnames[] = { | |
8277 | (char *) "msg", NULL | |
8278 | }; | |
8279 | ||
8280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
8281 | { | |
8282 | arg1 = wxString_in_helper(obj0); | |
8283 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8284 | temp1 = True; |
d14a1e28 RD |
8285 | } |
8286 | { | |
8287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8288 | wxLogMessage((wxString const &)*arg1); | |
8289 | ||
8290 | wxPyEndAllowThreads(__tstate); | |
8291 | if (PyErr_Occurred()) SWIG_fail; | |
8292 | } | |
8293 | Py_INCREF(Py_None); resultobj = Py_None; | |
8294 | { | |
8295 | if (temp1) | |
8296 | delete arg1; | |
8297 | } | |
8298 | return resultobj; | |
8299 | fail: | |
8300 | { | |
8301 | if (temp1) | |
8302 | delete arg1; | |
8303 | } | |
8304 | return NULL; | |
8305 | } | |
8306 | ||
8307 | ||
8308 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8309 | PyObject *resultobj; | |
8310 | wxString *arg1 = 0 ; | |
e811c8ce | 8311 | bool temp1 = False ; |
d14a1e28 RD |
8312 | PyObject * obj0 = 0 ; |
8313 | char *kwnames[] = { | |
8314 | (char *) "msg", NULL | |
8315 | }; | |
8316 | ||
8317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
8318 | { | |
8319 | arg1 = wxString_in_helper(obj0); | |
8320 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8321 | temp1 = True; |
d14a1e28 RD |
8322 | } |
8323 | { | |
8324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8325 | wxLogInfo((wxString const &)*arg1); | |
8326 | ||
8327 | wxPyEndAllowThreads(__tstate); | |
8328 | if (PyErr_Occurred()) SWIG_fail; | |
8329 | } | |
8330 | Py_INCREF(Py_None); resultobj = Py_None; | |
8331 | { | |
8332 | if (temp1) | |
8333 | delete arg1; | |
8334 | } | |
8335 | return resultobj; | |
8336 | fail: | |
8337 | { | |
8338 | if (temp1) | |
8339 | delete arg1; | |
8340 | } | |
8341 | return NULL; | |
8342 | } | |
8343 | ||
8344 | ||
8345 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8346 | PyObject *resultobj; | |
8347 | wxString *arg1 = 0 ; | |
e811c8ce | 8348 | bool temp1 = False ; |
d14a1e28 RD |
8349 | PyObject * obj0 = 0 ; |
8350 | char *kwnames[] = { | |
8351 | (char *) "msg", NULL | |
8352 | }; | |
8353 | ||
8354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
8355 | { | |
8356 | arg1 = wxString_in_helper(obj0); | |
8357 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8358 | temp1 = True; |
d14a1e28 RD |
8359 | } |
8360 | { | |
8361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8362 | wxLogDebug((wxString const &)*arg1); | |
8363 | ||
8364 | wxPyEndAllowThreads(__tstate); | |
8365 | if (PyErr_Occurred()) SWIG_fail; | |
8366 | } | |
8367 | Py_INCREF(Py_None); resultobj = Py_None; | |
8368 | { | |
8369 | if (temp1) | |
8370 | delete arg1; | |
8371 | } | |
8372 | return resultobj; | |
8373 | fail: | |
8374 | { | |
8375 | if (temp1) | |
8376 | delete arg1; | |
8377 | } | |
8378 | return NULL; | |
8379 | } | |
8380 | ||
8381 | ||
8382 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8383 | PyObject *resultobj; | |
8384 | wxString *arg1 = 0 ; | |
e811c8ce | 8385 | bool temp1 = False ; |
d14a1e28 RD |
8386 | PyObject * obj0 = 0 ; |
8387 | char *kwnames[] = { | |
8388 | (char *) "msg", NULL | |
8389 | }; | |
8390 | ||
8391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8392 | { | |
8393 | arg1 = wxString_in_helper(obj0); | |
8394 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8395 | temp1 = True; |
d14a1e28 RD |
8396 | } |
8397 | { | |
8398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8399 | wxLogVerbose((wxString const &)*arg1); | |
8400 | ||
8401 | wxPyEndAllowThreads(__tstate); | |
8402 | if (PyErr_Occurred()) SWIG_fail; | |
8403 | } | |
8404 | Py_INCREF(Py_None); resultobj = Py_None; | |
8405 | { | |
8406 | if (temp1) | |
8407 | delete arg1; | |
8408 | } | |
8409 | return resultobj; | |
8410 | fail: | |
8411 | { | |
8412 | if (temp1) | |
8413 | delete arg1; | |
8414 | } | |
8415 | return NULL; | |
8416 | } | |
8417 | ||
8418 | ||
8419 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8420 | PyObject *resultobj; | |
8421 | wxString *arg1 = 0 ; | |
e811c8ce | 8422 | bool temp1 = False ; |
d14a1e28 RD |
8423 | PyObject * obj0 = 0 ; |
8424 | char *kwnames[] = { | |
8425 | (char *) "msg", NULL | |
8426 | }; | |
8427 | ||
8428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8429 | { | |
8430 | arg1 = wxString_in_helper(obj0); | |
8431 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8432 | temp1 = True; |
d14a1e28 RD |
8433 | } |
8434 | { | |
8435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8436 | wxLogStatus((wxString const &)*arg1); | |
8437 | ||
8438 | wxPyEndAllowThreads(__tstate); | |
8439 | if (PyErr_Occurred()) SWIG_fail; | |
8440 | } | |
8441 | Py_INCREF(Py_None); resultobj = Py_None; | |
8442 | { | |
8443 | if (temp1) | |
8444 | delete arg1; | |
8445 | } | |
8446 | return resultobj; | |
8447 | fail: | |
8448 | { | |
8449 | if (temp1) | |
8450 | delete arg1; | |
8451 | } | |
8452 | return NULL; | |
8453 | } | |
8454 | ||
8455 | ||
8456 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8457 | PyObject *resultobj; | |
8458 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8459 | wxString *arg2 = 0 ; | |
e811c8ce | 8460 | bool temp2 = False ; |
d14a1e28 RD |
8461 | PyObject * obj0 = 0 ; |
8462 | PyObject * obj1 = 0 ; | |
8463 | char *kwnames[] = { | |
8464 | (char *) "pFrame",(char *) "msg", NULL | |
8465 | }; | |
8466 | ||
8467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, |
8469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8470 | { |
8471 | arg2 = wxString_in_helper(obj1); | |
8472 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8473 | temp2 = True; |
d14a1e28 RD |
8474 | } |
8475 | { | |
8476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8477 | wxLogStatus(arg1,(wxString const &)*arg2); | |
8478 | ||
8479 | wxPyEndAllowThreads(__tstate); | |
8480 | if (PyErr_Occurred()) SWIG_fail; | |
8481 | } | |
8482 | Py_INCREF(Py_None); resultobj = Py_None; | |
8483 | { | |
8484 | if (temp2) | |
8485 | delete arg2; | |
8486 | } | |
8487 | return resultobj; | |
8488 | fail: | |
8489 | { | |
8490 | if (temp2) | |
8491 | delete arg2; | |
8492 | } | |
8493 | return NULL; | |
8494 | } | |
8495 | ||
8496 | ||
8497 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8498 | PyObject *resultobj; | |
8499 | wxString *arg1 = 0 ; | |
e811c8ce | 8500 | bool temp1 = False ; |
d14a1e28 RD |
8501 | PyObject * obj0 = 0 ; |
8502 | char *kwnames[] = { | |
8503 | (char *) "msg", NULL | |
8504 | }; | |
8505 | ||
8506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8507 | { | |
8508 | arg1 = wxString_in_helper(obj0); | |
8509 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8510 | temp1 = True; |
d14a1e28 RD |
8511 | } |
8512 | { | |
8513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8514 | wxLogSysError((wxString const &)*arg1); | |
8515 | ||
8516 | wxPyEndAllowThreads(__tstate); | |
8517 | if (PyErr_Occurred()) SWIG_fail; | |
8518 | } | |
8519 | Py_INCREF(Py_None); resultobj = Py_None; | |
8520 | { | |
8521 | if (temp1) | |
8522 | delete arg1; | |
8523 | } | |
8524 | return resultobj; | |
8525 | fail: | |
8526 | { | |
8527 | if (temp1) | |
8528 | delete arg1; | |
8529 | } | |
8530 | return NULL; | |
8531 | } | |
8532 | ||
8533 | ||
cc6dd355 | 8534 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 | 8535 | PyObject *resultobj; |
cc6dd355 RD |
8536 | unsigned long arg1 ; |
8537 | wxString *arg2 = 0 ; | |
8538 | bool temp2 = False ; | |
d14a1e28 | 8539 | PyObject * obj0 = 0 ; |
cc6dd355 | 8540 | PyObject * obj1 = 0 ; |
d14a1e28 | 8541 | |
cc6dd355 | 8542 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8543 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
8544 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 8545 | { |
cc6dd355 RD |
8546 | arg2 = wxString_in_helper(obj1); |
8547 | if (arg2 == NULL) SWIG_fail; | |
8548 | temp2 = True; | |
d14a1e28 RD |
8549 | } |
8550 | { | |
8551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
cc6dd355 | 8552 | wxLogTrace(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
8553 | |
8554 | wxPyEndAllowThreads(__tstate); | |
8555 | if (PyErr_Occurred()) SWIG_fail; | |
8556 | } | |
8557 | Py_INCREF(Py_None); resultobj = Py_None; | |
8558 | { | |
cc6dd355 RD |
8559 | if (temp2) |
8560 | delete arg2; | |
d14a1e28 RD |
8561 | } |
8562 | return resultobj; | |
8563 | fail: | |
8564 | { | |
cc6dd355 RD |
8565 | if (temp2) |
8566 | delete arg2; | |
d14a1e28 RD |
8567 | } |
8568 | return NULL; | |
8569 | } | |
8570 | ||
8571 | ||
cc6dd355 | 8572 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
8573 | PyObject *resultobj; |
8574 | wxString *arg1 = 0 ; | |
8575 | wxString *arg2 = 0 ; | |
e811c8ce RD |
8576 | bool temp1 = False ; |
8577 | bool temp2 = False ; | |
d14a1e28 RD |
8578 | PyObject * obj0 = 0 ; |
8579 | PyObject * obj1 = 0 ; | |
d14a1e28 | 8580 | |
cc6dd355 | 8581 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
8582 | { |
8583 | arg1 = wxString_in_helper(obj0); | |
8584 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8585 | temp1 = True; |
d14a1e28 RD |
8586 | } |
8587 | { | |
8588 | arg2 = wxString_in_helper(obj1); | |
8589 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8590 | temp2 = True; |
d14a1e28 RD |
8591 | } |
8592 | { | |
8593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8594 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
8595 | ||
8596 | wxPyEndAllowThreads(__tstate); | |
8597 | if (PyErr_Occurred()) SWIG_fail; | |
8598 | } | |
8599 | Py_INCREF(Py_None); resultobj = Py_None; | |
8600 | { | |
8601 | if (temp1) | |
8602 | delete arg1; | |
8603 | } | |
8604 | { | |
8605 | if (temp2) | |
8606 | delete arg2; | |
8607 | } | |
8608 | return resultobj; | |
8609 | fail: | |
8610 | { | |
8611 | if (temp1) | |
8612 | delete arg1; | |
8613 | } | |
8614 | { | |
8615 | if (temp2) | |
8616 | delete arg2; | |
8617 | } | |
8618 | return NULL; | |
8619 | } | |
8620 | ||
8621 | ||
cc6dd355 RD |
8622 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { |
8623 | int argc; | |
8624 | PyObject *argv[3]; | |
8625 | int ii; | |
8626 | ||
8627 | argc = PyObject_Length(args); | |
8628 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
8629 | argv[ii] = PyTuple_GetItem(args,ii); | |
8630 | } | |
8631 | if (argc == 2) { | |
8632 | int _v; | |
8633 | { | |
4d5c3d91 | 8634 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
cc6dd355 RD |
8635 | } |
8636 | if (_v) { | |
8637 | { | |
4d5c3d91 | 8638 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
cc6dd355 RD |
8639 | } |
8640 | if (_v) { | |
8641 | return _wrap_LogTrace__SWIG_1(self,args); | |
8642 | } | |
8643 | } | |
8644 | } | |
8645 | if (argc == 2) { | |
8646 | int _v; | |
15afbcd0 | 8647 | _v = SWIG_CheckUnsignedLong(argv[0]); |
cc6dd355 RD |
8648 | if (_v) { |
8649 | { | |
4d5c3d91 | 8650 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
cc6dd355 RD |
8651 | } |
8652 | if (_v) { | |
8653 | return _wrap_LogTrace__SWIG_0(self,args); | |
8654 | } | |
8655 | } | |
8656 | } | |
8657 | ||
8658 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
8659 | return NULL; | |
8660 | } | |
8661 | ||
8662 | ||
d14a1e28 RD |
8663 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { |
8664 | PyObject *resultobj; | |
8665 | unsigned long arg1 ; | |
8666 | wxString *arg2 = 0 ; | |
e811c8ce | 8667 | bool temp2 = False ; |
d14a1e28 RD |
8668 | PyObject * obj0 = 0 ; |
8669 | PyObject * obj1 = 0 ; | |
8670 | char *kwnames[] = { | |
8671 | (char *) "level",(char *) "msg", NULL | |
8672 | }; | |
8673 | ||
8674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8675 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
8676 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8677 | { |
8678 | arg2 = wxString_in_helper(obj1); | |
8679 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8680 | temp2 = True; |
d14a1e28 RD |
8681 | } |
8682 | { | |
8683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8684 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
8685 | ||
8686 | wxPyEndAllowThreads(__tstate); | |
8687 | if (PyErr_Occurred()) SWIG_fail; | |
8688 | } | |
8689 | Py_INCREF(Py_None); resultobj = Py_None; | |
8690 | { | |
8691 | if (temp2) | |
8692 | delete arg2; | |
8693 | } | |
8694 | return resultobj; | |
8695 | fail: | |
8696 | { | |
8697 | if (temp2) | |
8698 | delete arg2; | |
8699 | } | |
8700 | return NULL; | |
8701 | } | |
8702 | ||
8703 | ||
8704 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8705 | PyObject *resultobj; | |
8706 | wxString *arg1 = 0 ; | |
8707 | wxString *arg2 = 0 ; | |
e811c8ce RD |
8708 | bool temp1 = False ; |
8709 | bool temp2 = False ; | |
d14a1e28 RD |
8710 | PyObject * obj0 = 0 ; |
8711 | PyObject * obj1 = 0 ; | |
8712 | char *kwnames[] = { | |
8713 | (char *) "title",(char *) "text", NULL | |
8714 | }; | |
8715 | ||
8716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
8717 | { | |
8718 | arg1 = wxString_in_helper(obj0); | |
8719 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8720 | temp1 = True; |
d14a1e28 RD |
8721 | } |
8722 | { | |
8723 | arg2 = wxString_in_helper(obj1); | |
8724 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8725 | temp2 = True; |
d14a1e28 RD |
8726 | } |
8727 | { | |
8728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8729 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
8730 | ||
8731 | wxPyEndAllowThreads(__tstate); | |
8732 | if (PyErr_Occurred()) SWIG_fail; | |
8733 | } | |
8734 | Py_INCREF(Py_None); resultobj = Py_None; | |
8735 | { | |
8736 | if (temp1) | |
8737 | delete arg1; | |
8738 | } | |
8739 | { | |
8740 | if (temp2) | |
8741 | delete arg2; | |
8742 | } | |
8743 | return resultobj; | |
8744 | fail: | |
8745 | { | |
8746 | if (temp1) | |
8747 | delete arg1; | |
8748 | } | |
8749 | { | |
8750 | if (temp2) | |
8751 | delete arg2; | |
8752 | } | |
8753 | return NULL; | |
8754 | } | |
8755 | ||
8756 | ||
8757 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8758 | PyObject *resultobj; | |
8759 | wxLogNull *result; | |
8760 | char *kwnames[] = { | |
8761 | NULL | |
8762 | }; | |
8763 | ||
8764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
8765 | { | |
8766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8767 | result = (wxLogNull *)new wxLogNull(); | |
8768 | ||
8769 | wxPyEndAllowThreads(__tstate); | |
8770 | if (PyErr_Occurred()) SWIG_fail; | |
8771 | } | |
15afbcd0 | 8772 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); |
d14a1e28 RD |
8773 | return resultobj; |
8774 | fail: | |
8775 | return NULL; | |
8776 | } | |
8777 | ||
8778 | ||
8779 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8780 | PyObject *resultobj; | |
8781 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
8782 | PyObject * obj0 = 0 ; | |
8783 | char *kwnames[] = { | |
8784 | (char *) "self", NULL | |
8785 | }; | |
8786 | ||
8787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull, |
8789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8790 | { |
8791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8792 | delete arg1; | |
8793 | ||
8794 | wxPyEndAllowThreads(__tstate); | |
8795 | if (PyErr_Occurred()) SWIG_fail; | |
8796 | } | |
8797 | Py_INCREF(Py_None); resultobj = Py_None; | |
8798 | return resultobj; | |
8799 | fail: | |
8800 | return NULL; | |
8801 | } | |
8802 | ||
8803 | ||
8804 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
8805 | PyObject *obj; | |
8806 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8807 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
8808 | Py_INCREF(obj); | |
8809 | return Py_BuildValue((char *)""); | |
8810 | } | |
8811 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8812 | PyObject *resultobj; | |
8813 | wxPyLog *result; | |
8814 | char *kwnames[] = { | |
8815 | NULL | |
8816 | }; | |
8817 | ||
8818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
8819 | { | |
8820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8821 | result = (wxPyLog *)new wxPyLog(); | |
8822 | ||
8823 | wxPyEndAllowThreads(__tstate); | |
8824 | if (PyErr_Occurred()) SWIG_fail; | |
8825 | } | |
15afbcd0 | 8826 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); |
d14a1e28 RD |
8827 | return resultobj; |
8828 | fail: | |
8829 | return NULL; | |
8830 | } | |
8831 | ||
8832 | ||
8833 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8834 | PyObject *resultobj; | |
8835 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
8836 | PyObject *arg2 = (PyObject *) 0 ; | |
8837 | PyObject *arg3 = (PyObject *) 0 ; | |
8838 | PyObject * obj0 = 0 ; | |
8839 | PyObject * obj1 = 0 ; | |
8840 | PyObject * obj2 = 0 ; | |
8841 | char *kwnames[] = { | |
8842 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8843 | }; | |
8844 | ||
8845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
8846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog, |
8847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8848 | arg2 = obj1; |
8849 | arg3 = obj2; | |
8850 | { | |
8851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8852 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8853 | ||
8854 | wxPyEndAllowThreads(__tstate); | |
8855 | if (PyErr_Occurred()) SWIG_fail; | |
8856 | } | |
8857 | Py_INCREF(Py_None); resultobj = Py_None; | |
8858 | return resultobj; | |
8859 | fail: | |
8860 | return NULL; | |
8861 | } | |
8862 | ||
8863 | ||
8864 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
8865 | PyObject *obj; | |
8866 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8867 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
8868 | Py_INCREF(obj); | |
8869 | return Py_BuildValue((char *)""); | |
8870 | } | |
8871 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8872 | PyObject *resultobj; | |
8873 | int arg1 ; | |
8874 | int arg2 = (int) wxSIGTERM ; | |
8875 | int result; | |
994141e6 RD |
8876 | PyObject * obj0 = 0 ; |
8877 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8878 | char *kwnames[] = { |
8879 | (char *) "pid",(char *) "sig", NULL | |
8880 | }; | |
8881 | ||
994141e6 | 8882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8883 | arg1 = (int) SWIG_AsInt(obj0); |
8884 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8885 | if (obj1) { |
15afbcd0 RD |
8886 | arg2 = (wxSignal) SWIG_AsInt(obj1); |
8887 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8888 | } |
d14a1e28 RD |
8889 | { |
8890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8891 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
8892 | ||
8893 | wxPyEndAllowThreads(__tstate); | |
8894 | if (PyErr_Occurred()) SWIG_fail; | |
8895 | } | |
15afbcd0 | 8896 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8897 | return resultobj; |
8898 | fail: | |
8899 | return NULL; | |
8900 | } | |
8901 | ||
8902 | ||
8903 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8904 | PyObject *resultobj; | |
8905 | int arg1 ; | |
8906 | bool result; | |
994141e6 | 8907 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
8908 | char *kwnames[] = { |
8909 | (char *) "pid", NULL | |
8910 | }; | |
8911 | ||
994141e6 | 8912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
8913 | arg1 = (int) SWIG_AsInt(obj0); |
8914 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8915 | { |
8916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8917 | result = (bool)wxPyProcess::Exists(arg1); | |
8918 | ||
8919 | wxPyEndAllowThreads(__tstate); | |
8920 | if (PyErr_Occurred()) SWIG_fail; | |
8921 | } | |
4f89f6a3 RD |
8922 | { |
8923 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8924 | } | |
d14a1e28 RD |
8925 | return resultobj; |
8926 | fail: | |
8927 | return NULL; | |
8928 | } | |
8929 | ||
8930 | ||
8931 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8932 | PyObject *resultobj; | |
8933 | wxString *arg1 = 0 ; | |
8934 | int arg2 = (int) wxEXEC_ASYNC ; | |
8935 | wxPyProcess *result; | |
e811c8ce | 8936 | bool temp1 = False ; |
d14a1e28 | 8937 | PyObject * obj0 = 0 ; |
994141e6 | 8938 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8939 | char *kwnames[] = { |
8940 | (char *) "cmd",(char *) "flags", NULL | |
8941 | }; | |
8942 | ||
994141e6 | 8943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
8944 | { |
8945 | arg1 = wxString_in_helper(obj0); | |
8946 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8947 | temp1 = True; |
d14a1e28 | 8948 | } |
994141e6 | 8949 | if (obj1) { |
15afbcd0 RD |
8950 | arg2 = (int) SWIG_AsInt(obj1); |
8951 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8952 | } |
d14a1e28 RD |
8953 | { |
8954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8955 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
8956 | ||
8957 | wxPyEndAllowThreads(__tstate); | |
8958 | if (PyErr_Occurred()) SWIG_fail; | |
8959 | } | |
15afbcd0 | 8960 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); |
d14a1e28 RD |
8961 | { |
8962 | if (temp1) | |
8963 | delete arg1; | |
8964 | } | |
8965 | return resultobj; | |
8966 | fail: | |
8967 | { | |
8968 | if (temp1) | |
8969 | delete arg1; | |
8970 | } | |
8971 | return NULL; | |
8972 | } | |
8973 | ||
8974 | ||
8975 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8976 | PyObject *resultobj; | |
8977 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
8978 | int arg2 = (int) -1 ; | |
8979 | wxPyProcess *result; | |
8980 | PyObject * obj0 = 0 ; | |
994141e6 | 8981 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8982 | char *kwnames[] = { |
8983 | (char *) "parent",(char *) "id", NULL | |
8984 | }; | |
8985 | ||
994141e6 | 8986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8987 | if (obj0) { |
15afbcd0 RD |
8988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
8989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8990 | } |
994141e6 | 8991 | if (obj1) { |
15afbcd0 RD |
8992 | arg2 = (int) SWIG_AsInt(obj1); |
8993 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8994 | } |
d14a1e28 RD |
8995 | { |
8996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8997 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
8998 | ||
8999 | wxPyEndAllowThreads(__tstate); | |
9000 | if (PyErr_Occurred()) SWIG_fail; | |
9001 | } | |
15afbcd0 | 9002 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); |
d14a1e28 RD |
9003 | return resultobj; |
9004 | fail: | |
9005 | return NULL; | |
9006 | } | |
9007 | ||
9008 | ||
9009 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9010 | PyObject *resultobj; | |
9011 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9012 | PyObject *arg2 = (PyObject *) 0 ; | |
9013 | PyObject *arg3 = (PyObject *) 0 ; | |
9014 | PyObject * obj0 = 0 ; | |
9015 | PyObject * obj1 = 0 ; | |
9016 | PyObject * obj2 = 0 ; | |
9017 | char *kwnames[] = { | |
9018 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9019 | }; | |
9020 | ||
9021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
9022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9024 | arg2 = obj1; |
9025 | arg3 = obj2; | |
9026 | { | |
9027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9028 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9029 | ||
9030 | wxPyEndAllowThreads(__tstate); | |
9031 | if (PyErr_Occurred()) SWIG_fail; | |
9032 | } | |
9033 | Py_INCREF(Py_None); resultobj = Py_None; | |
9034 | return resultobj; | |
9035 | fail: | |
9036 | return NULL; | |
9037 | } | |
9038 | ||
9039 | ||
9040 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9041 | PyObject *resultobj; | |
9042 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9043 | int arg2 ; | |
9044 | int arg3 ; | |
9045 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9046 | PyObject * obj1 = 0 ; |
9047 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9048 | char *kwnames[] = { |
9049 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
9050 | }; | |
9051 | ||
994141e6 | 9052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9055 | arg2 = (int) SWIG_AsInt(obj1); | |
9056 | if (PyErr_Occurred()) SWIG_fail; | |
9057 | arg3 = (int) SWIG_AsInt(obj2); | |
9058 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9059 | { |
9060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9061 | (arg1)->base_OnTerminate(arg2,arg3); | |
9062 | ||
9063 | wxPyEndAllowThreads(__tstate); | |
9064 | if (PyErr_Occurred()) SWIG_fail; | |
9065 | } | |
9066 | Py_INCREF(Py_None); resultobj = Py_None; | |
9067 | return resultobj; | |
9068 | fail: | |
9069 | return NULL; | |
9070 | } | |
9071 | ||
9072 | ||
9073 | static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9074 | PyObject *resultobj; | |
9075 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9076 | PyObject * obj0 = 0 ; | |
9077 | char *kwnames[] = { | |
9078 | (char *) "self", NULL | |
9079 | }; | |
9080 | ||
9081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9084 | { |
9085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9086 | (arg1)->Redirect(); | |
9087 | ||
9088 | wxPyEndAllowThreads(__tstate); | |
9089 | if (PyErr_Occurred()) SWIG_fail; | |
9090 | } | |
9091 | Py_INCREF(Py_None); resultobj = Py_None; | |
9092 | return resultobj; | |
9093 | fail: | |
9094 | return NULL; | |
9095 | } | |
9096 | ||
9097 | ||
9098 | static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9099 | PyObject *resultobj; | |
9100 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9101 | bool result; | |
9102 | PyObject * obj0 = 0 ; | |
9103 | char *kwnames[] = { | |
9104 | (char *) "self", NULL | |
9105 | }; | |
9106 | ||
9107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9110 | { |
9111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9112 | result = (bool)(arg1)->IsRedirected(); | |
9113 | ||
9114 | wxPyEndAllowThreads(__tstate); | |
9115 | if (PyErr_Occurred()) SWIG_fail; | |
9116 | } | |
4f89f6a3 RD |
9117 | { |
9118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9119 | } | |
d14a1e28 RD |
9120 | return resultobj; |
9121 | fail: | |
9122 | return NULL; | |
9123 | } | |
9124 | ||
9125 | ||
9126 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9127 | PyObject *resultobj; | |
9128 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9129 | PyObject * obj0 = 0 ; | |
9130 | char *kwnames[] = { | |
9131 | (char *) "self", NULL | |
9132 | }; | |
9133 | ||
9134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9137 | { |
9138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9139 | (arg1)->Detach(); | |
9140 | ||
9141 | wxPyEndAllowThreads(__tstate); | |
9142 | if (PyErr_Occurred()) SWIG_fail; | |
9143 | } | |
9144 | Py_INCREF(Py_None); resultobj = Py_None; | |
9145 | return resultobj; | |
9146 | fail: | |
9147 | return NULL; | |
9148 | } | |
9149 | ||
9150 | ||
9151 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9152 | PyObject *resultobj; | |
9153 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9154 | wxInputStream *result; | |
9155 | PyObject * obj0 = 0 ; | |
9156 | char *kwnames[] = { | |
9157 | (char *) "self", NULL | |
9158 | }; | |
9159 | ||
9160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9163 | { |
9164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9165 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
9166 | ||
9167 | wxPyEndAllowThreads(__tstate); | |
9168 | if (PyErr_Occurred()) SWIG_fail; | |
9169 | } | |
9170 | { | |
9171 | wxPyInputStream * _ptr = NULL; | |
9172 | ||
9173 | if (result) { | |
9174 | _ptr = new wxPyInputStream(result); | |
9175 | } | |
e811c8ce | 9176 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
9177 | } |
9178 | return resultobj; | |
9179 | fail: | |
9180 | return NULL; | |
9181 | } | |
9182 | ||
9183 | ||
9184 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9185 | PyObject *resultobj; | |
9186 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9187 | wxInputStream *result; | |
9188 | PyObject * obj0 = 0 ; | |
9189 | char *kwnames[] = { | |
9190 | (char *) "self", NULL | |
9191 | }; | |
9192 | ||
9193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9196 | { |
9197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9198 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
9199 | ||
9200 | wxPyEndAllowThreads(__tstate); | |
9201 | if (PyErr_Occurred()) SWIG_fail; | |
9202 | } | |
9203 | { | |
9204 | wxPyInputStream * _ptr = NULL; | |
9205 | ||
9206 | if (result) { | |
9207 | _ptr = new wxPyInputStream(result); | |
9208 | } | |
e811c8ce | 9209 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
9210 | } |
9211 | return resultobj; | |
9212 | fail: | |
9213 | return NULL; | |
9214 | } | |
9215 | ||
9216 | ||
9217 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9218 | PyObject *resultobj; | |
9219 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9220 | wxOutputStream *result; | |
9221 | PyObject * obj0 = 0 ; | |
9222 | char *kwnames[] = { | |
9223 | (char *) "self", NULL | |
9224 | }; | |
9225 | ||
9226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9229 | { |
9230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9231 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
9232 | ||
9233 | wxPyEndAllowThreads(__tstate); | |
9234 | if (PyErr_Occurred()) SWIG_fail; | |
9235 | } | |
15afbcd0 | 9236 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); |
d14a1e28 RD |
9237 | return resultobj; |
9238 | fail: | |
9239 | return NULL; | |
9240 | } | |
9241 | ||
9242 | ||
9243 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9244 | PyObject *resultobj; | |
9245 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9246 | PyObject * obj0 = 0 ; | |
9247 | char *kwnames[] = { | |
9248 | (char *) "self", NULL | |
9249 | }; | |
9250 | ||
9251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9254 | { |
9255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9256 | (arg1)->CloseOutput(); | |
9257 | ||
9258 | wxPyEndAllowThreads(__tstate); | |
9259 | if (PyErr_Occurred()) SWIG_fail; | |
9260 | } | |
9261 | Py_INCREF(Py_None); resultobj = Py_None; | |
9262 | return resultobj; | |
9263 | fail: | |
9264 | return NULL; | |
9265 | } | |
9266 | ||
9267 | ||
9268 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9269 | PyObject *resultobj; | |
9270 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9271 | bool result; | |
9272 | PyObject * obj0 = 0 ; | |
9273 | char *kwnames[] = { | |
9274 | (char *) "self", NULL | |
9275 | }; | |
9276 | ||
9277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9280 | { |
9281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9282 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
9283 | ||
9284 | wxPyEndAllowThreads(__tstate); | |
9285 | if (PyErr_Occurred()) SWIG_fail; | |
9286 | } | |
4f89f6a3 RD |
9287 | { |
9288 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9289 | } | |
d14a1e28 RD |
9290 | return resultobj; |
9291 | fail: | |
9292 | return NULL; | |
9293 | } | |
9294 | ||
9295 | ||
9296 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9297 | PyObject *resultobj; | |
9298 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9299 | bool result; | |
9300 | PyObject * obj0 = 0 ; | |
9301 | char *kwnames[] = { | |
9302 | (char *) "self", NULL | |
9303 | }; | |
9304 | ||
9305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9308 | { |
9309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9310 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
9311 | ||
9312 | wxPyEndAllowThreads(__tstate); | |
9313 | if (PyErr_Occurred()) SWIG_fail; | |
9314 | } | |
4f89f6a3 RD |
9315 | { |
9316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9317 | } | |
d14a1e28 RD |
9318 | return resultobj; |
9319 | fail: | |
9320 | return NULL; | |
9321 | } | |
9322 | ||
9323 | ||
9324 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9325 | PyObject *resultobj; | |
9326 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9327 | bool result; | |
9328 | PyObject * obj0 = 0 ; | |
9329 | char *kwnames[] = { | |
9330 | (char *) "self", NULL | |
9331 | }; | |
9332 | ||
9333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9336 | { |
9337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9338 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
9339 | ||
9340 | wxPyEndAllowThreads(__tstate); | |
9341 | if (PyErr_Occurred()) SWIG_fail; | |
9342 | } | |
4f89f6a3 RD |
9343 | { |
9344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9345 | } | |
d14a1e28 RD |
9346 | return resultobj; |
9347 | fail: | |
9348 | return NULL; | |
9349 | } | |
9350 | ||
9351 | ||
9352 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
9353 | PyObject *obj; | |
9354 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9355 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
9356 | Py_INCREF(obj); | |
9357 | return Py_BuildValue((char *)""); | |
9358 | } | |
9359 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9360 | PyObject *resultobj; | |
9361 | int arg1 = (int) 0 ; | |
9362 | int arg2 = (int) 0 ; | |
9363 | int arg3 = (int) 0 ; | |
9364 | wxProcessEvent *result; | |
994141e6 RD |
9365 | PyObject * obj0 = 0 ; |
9366 | PyObject * obj1 = 0 ; | |
9367 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9368 | char *kwnames[] = { |
9369 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9370 | }; | |
9371 | ||
994141e6 RD |
9372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
9373 | if (obj0) { | |
15afbcd0 RD |
9374 | arg1 = (int) SWIG_AsInt(obj0); |
9375 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9376 | } |
9377 | if (obj1) { | |
15afbcd0 RD |
9378 | arg2 = (int) SWIG_AsInt(obj1); |
9379 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9380 | } |
9381 | if (obj2) { | |
15afbcd0 RD |
9382 | arg3 = (int) SWIG_AsInt(obj2); |
9383 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9384 | } |
d14a1e28 RD |
9385 | { |
9386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9387 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9388 | ||
9389 | wxPyEndAllowThreads(__tstate); | |
9390 | if (PyErr_Occurred()) SWIG_fail; | |
9391 | } | |
15afbcd0 | 9392 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); |
d14a1e28 RD |
9393 | return resultobj; |
9394 | fail: | |
9395 | return NULL; | |
9396 | } | |
9397 | ||
9398 | ||
9399 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9400 | PyObject *resultobj; | |
9401 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9402 | int result; | |
9403 | PyObject * obj0 = 0 ; | |
9404 | char *kwnames[] = { | |
9405 | (char *) "self", NULL | |
9406 | }; | |
9407 | ||
9408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9411 | { |
9412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9413 | result = (int)(arg1)->GetPid(); | |
9414 | ||
9415 | wxPyEndAllowThreads(__tstate); | |
9416 | if (PyErr_Occurred()) SWIG_fail; | |
9417 | } | |
15afbcd0 | 9418 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9419 | return resultobj; |
9420 | fail: | |
9421 | return NULL; | |
9422 | } | |
9423 | ||
9424 | ||
9425 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9426 | PyObject *resultobj; | |
9427 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9428 | int result; | |
9429 | PyObject * obj0 = 0 ; | |
9430 | char *kwnames[] = { | |
9431 | (char *) "self", NULL | |
9432 | }; | |
9433 | ||
9434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9437 | { |
9438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9439 | result = (int)(arg1)->GetExitCode(); | |
9440 | ||
9441 | wxPyEndAllowThreads(__tstate); | |
9442 | if (PyErr_Occurred()) SWIG_fail; | |
9443 | } | |
15afbcd0 | 9444 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9445 | return resultobj; |
9446 | fail: | |
9447 | return NULL; | |
9448 | } | |
9449 | ||
9450 | ||
9451 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9452 | PyObject *resultobj; | |
9453 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9454 | int arg2 ; | |
9455 | PyObject * obj0 = 0 ; | |
994141e6 | 9456 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9457 | char *kwnames[] = { |
9458 | (char *) "self",(char *) "m_pid", NULL | |
9459 | }; | |
9460 | ||
994141e6 | 9461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9464 | arg2 = (int) SWIG_AsInt(obj1); | |
9465 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9466 | if (arg1) (arg1)->m_pid = arg2; |
9467 | ||
9468 | Py_INCREF(Py_None); resultobj = Py_None; | |
9469 | return resultobj; | |
9470 | fail: | |
9471 | return NULL; | |
9472 | } | |
9473 | ||
9474 | ||
9475 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9476 | PyObject *resultobj; | |
9477 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9478 | int result; | |
9479 | PyObject * obj0 = 0 ; | |
9480 | char *kwnames[] = { | |
9481 | (char *) "self", NULL | |
9482 | }; | |
9483 | ||
9484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9487 | result = (int) ((arg1)->m_pid); |
9488 | ||
15afbcd0 | 9489 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9490 | return resultobj; |
9491 | fail: | |
9492 | return NULL; | |
9493 | } | |
9494 | ||
9495 | ||
9496 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9497 | PyObject *resultobj; | |
9498 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9499 | int arg2 ; | |
9500 | PyObject * obj0 = 0 ; | |
994141e6 | 9501 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9502 | char *kwnames[] = { |
9503 | (char *) "self",(char *) "m_exitcode", NULL | |
9504 | }; | |
9505 | ||
994141e6 | 9506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9509 | arg2 = (int) SWIG_AsInt(obj1); | |
9510 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9511 | if (arg1) (arg1)->m_exitcode = arg2; |
9512 | ||
9513 | Py_INCREF(Py_None); resultobj = Py_None; | |
9514 | return resultobj; | |
9515 | fail: | |
9516 | return NULL; | |
9517 | } | |
9518 | ||
9519 | ||
9520 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9521 | PyObject *resultobj; | |
9522 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9523 | int result; | |
9524 | PyObject * obj0 = 0 ; | |
9525 | char *kwnames[] = { | |
9526 | (char *) "self", NULL | |
9527 | }; | |
9528 | ||
9529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9532 | result = (int) ((arg1)->m_exitcode); |
9533 | ||
15afbcd0 | 9534 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9535 | return resultobj; |
9536 | fail: | |
9537 | return NULL; | |
9538 | } | |
9539 | ||
9540 | ||
9541 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
9542 | PyObject *obj; | |
9543 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9544 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
9545 | Py_INCREF(obj); | |
9546 | return Py_BuildValue((char *)""); | |
9547 | } | |
9548 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9549 | PyObject *resultobj; | |
9550 | wxString *arg1 = 0 ; | |
9551 | int arg2 = (int) wxEXEC_ASYNC ; | |
9552 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
9553 | long result; | |
e811c8ce | 9554 | bool temp1 = False ; |
d14a1e28 | 9555 | PyObject * obj0 = 0 ; |
994141e6 | 9556 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9557 | PyObject * obj2 = 0 ; |
9558 | char *kwnames[] = { | |
9559 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
9560 | }; | |
9561 | ||
994141e6 | 9562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
9563 | { |
9564 | arg1 = wxString_in_helper(obj0); | |
9565 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9566 | temp1 = True; |
d14a1e28 | 9567 | } |
994141e6 | 9568 | if (obj1) { |
15afbcd0 RD |
9569 | arg2 = (int) SWIG_AsInt(obj1); |
9570 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9571 | } |
d14a1e28 | 9572 | if (obj2) { |
15afbcd0 RD |
9573 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess, |
9574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9575 | } |
9576 | { | |
9577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9578 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
9579 | ||
9580 | wxPyEndAllowThreads(__tstate); | |
9581 | if (PyErr_Occurred()) SWIG_fail; | |
9582 | } | |
15afbcd0 | 9583 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9584 | { |
9585 | if (temp1) | |
9586 | delete arg1; | |
9587 | } | |
9588 | return resultobj; | |
9589 | fail: | |
9590 | { | |
9591 | if (temp1) | |
9592 | delete arg1; | |
9593 | } | |
9594 | return NULL; | |
9595 | } | |
9596 | ||
9597 | ||
9598 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9599 | PyObject *resultobj; | |
9600 | int arg1 = (int) wxJOYSTICK1 ; | |
9601 | wxJoystick *result; | |
994141e6 | 9602 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9603 | char *kwnames[] = { |
9604 | (char *) "joystick", NULL | |
9605 | }; | |
9606 | ||
994141e6 RD |
9607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; |
9608 | if (obj0) { | |
15afbcd0 RD |
9609 | arg1 = (int) SWIG_AsInt(obj0); |
9610 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9611 | } |
d14a1e28 RD |
9612 | { |
9613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9614 | result = (wxJoystick *)new wxJoystick(arg1); | |
9615 | ||
9616 | wxPyEndAllowThreads(__tstate); | |
9617 | if (PyErr_Occurred()) SWIG_fail; | |
9618 | } | |
15afbcd0 | 9619 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); |
d14a1e28 RD |
9620 | return resultobj; |
9621 | fail: | |
9622 | return NULL; | |
9623 | } | |
9624 | ||
9625 | ||
9626 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9627 | PyObject *resultobj; | |
9628 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9629 | PyObject * obj0 = 0 ; | |
9630 | char *kwnames[] = { | |
9631 | (char *) "self", NULL | |
9632 | }; | |
9633 | ||
9634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9637 | { |
9638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9639 | delete arg1; | |
9640 | ||
9641 | wxPyEndAllowThreads(__tstate); | |
9642 | if (PyErr_Occurred()) SWIG_fail; | |
9643 | } | |
9644 | Py_INCREF(Py_None); resultobj = Py_None; | |
9645 | return resultobj; | |
9646 | fail: | |
9647 | return NULL; | |
9648 | } | |
9649 | ||
9650 | ||
9651 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9652 | PyObject *resultobj; | |
9653 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9654 | wxPoint result; | |
9655 | PyObject * obj0 = 0 ; | |
9656 | char *kwnames[] = { | |
9657 | (char *) "self", NULL | |
9658 | }; | |
9659 | ||
9660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9663 | { |
9664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9665 | result = (arg1)->GetPosition(); | |
9666 | ||
9667 | wxPyEndAllowThreads(__tstate); | |
9668 | if (PyErr_Occurred()) SWIG_fail; | |
9669 | } | |
9670 | { | |
9671 | wxPoint * resultptr; | |
9672 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 9673 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
9674 | } |
9675 | return resultobj; | |
9676 | fail: | |
9677 | return NULL; | |
9678 | } | |
9679 | ||
9680 | ||
9681 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9682 | PyObject *resultobj; | |
9683 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9684 | int result; | |
9685 | PyObject * obj0 = 0 ; | |
9686 | char *kwnames[] = { | |
9687 | (char *) "self", NULL | |
9688 | }; | |
9689 | ||
9690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9693 | { |
9694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9695 | result = (int)(arg1)->GetZPosition(); | |
9696 | ||
9697 | wxPyEndAllowThreads(__tstate); | |
9698 | if (PyErr_Occurred()) SWIG_fail; | |
9699 | } | |
15afbcd0 | 9700 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9701 | return resultobj; |
9702 | fail: | |
9703 | return NULL; | |
9704 | } | |
9705 | ||
9706 | ||
9707 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9708 | PyObject *resultobj; | |
9709 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9710 | int result; | |
9711 | PyObject * obj0 = 0 ; | |
9712 | char *kwnames[] = { | |
9713 | (char *) "self", NULL | |
9714 | }; | |
9715 | ||
9716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9719 | { |
9720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9721 | result = (int)(arg1)->GetButtonState(); | |
9722 | ||
9723 | wxPyEndAllowThreads(__tstate); | |
9724 | if (PyErr_Occurred()) SWIG_fail; | |
9725 | } | |
15afbcd0 | 9726 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9727 | return resultobj; |
9728 | fail: | |
9729 | return NULL; | |
9730 | } | |
9731 | ||
9732 | ||
9733 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9734 | PyObject *resultobj; | |
9735 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9736 | int result; | |
9737 | PyObject * obj0 = 0 ; | |
9738 | char *kwnames[] = { | |
9739 | (char *) "self", NULL | |
9740 | }; | |
9741 | ||
9742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9745 | { |
9746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9747 | result = (int)(arg1)->GetPOVPosition(); | |
9748 | ||
9749 | wxPyEndAllowThreads(__tstate); | |
9750 | if (PyErr_Occurred()) SWIG_fail; | |
9751 | } | |
15afbcd0 | 9752 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9753 | return resultobj; |
9754 | fail: | |
9755 | return NULL; | |
9756 | } | |
9757 | ||
9758 | ||
9759 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9760 | PyObject *resultobj; | |
9761 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9762 | int result; | |
9763 | PyObject * obj0 = 0 ; | |
9764 | char *kwnames[] = { | |
9765 | (char *) "self", NULL | |
9766 | }; | |
9767 | ||
9768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9771 | { |
9772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9773 | result = (int)(arg1)->GetPOVCTSPosition(); | |
9774 | ||
9775 | wxPyEndAllowThreads(__tstate); | |
9776 | if (PyErr_Occurred()) SWIG_fail; | |
9777 | } | |
15afbcd0 | 9778 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9779 | return resultobj; |
9780 | fail: | |
9781 | return NULL; | |
9782 | } | |
9783 | ||
9784 | ||
9785 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9786 | PyObject *resultobj; | |
9787 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9788 | int result; | |
9789 | PyObject * obj0 = 0 ; | |
9790 | char *kwnames[] = { | |
9791 | (char *) "self", NULL | |
9792 | }; | |
9793 | ||
9794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9797 | { |
9798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9799 | result = (int)(arg1)->GetRudderPosition(); | |
9800 | ||
9801 | wxPyEndAllowThreads(__tstate); | |
9802 | if (PyErr_Occurred()) SWIG_fail; | |
9803 | } | |
15afbcd0 | 9804 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9805 | return resultobj; |
9806 | fail: | |
9807 | return NULL; | |
9808 | } | |
9809 | ||
9810 | ||
9811 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9812 | PyObject *resultobj; | |
9813 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9814 | int result; | |
9815 | PyObject * obj0 = 0 ; | |
9816 | char *kwnames[] = { | |
9817 | (char *) "self", NULL | |
9818 | }; | |
9819 | ||
9820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9823 | { |
9824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9825 | result = (int)(arg1)->GetUPosition(); | |
9826 | ||
9827 | wxPyEndAllowThreads(__tstate); | |
9828 | if (PyErr_Occurred()) SWIG_fail; | |
9829 | } | |
15afbcd0 | 9830 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9831 | return resultobj; |
9832 | fail: | |
9833 | return NULL; | |
9834 | } | |
9835 | ||
9836 | ||
9837 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9838 | PyObject *resultobj; | |
9839 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9840 | int result; | |
9841 | PyObject * obj0 = 0 ; | |
9842 | char *kwnames[] = { | |
9843 | (char *) "self", NULL | |
9844 | }; | |
9845 | ||
9846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9849 | { |
9850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9851 | result = (int)(arg1)->GetVPosition(); | |
9852 | ||
9853 | wxPyEndAllowThreads(__tstate); | |
9854 | if (PyErr_Occurred()) SWIG_fail; | |
9855 | } | |
15afbcd0 | 9856 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9857 | return resultobj; |
9858 | fail: | |
9859 | return NULL; | |
9860 | } | |
9861 | ||
9862 | ||
9863 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9864 | PyObject *resultobj; | |
9865 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9866 | int result; | |
9867 | PyObject * obj0 = 0 ; | |
9868 | char *kwnames[] = { | |
9869 | (char *) "self", NULL | |
9870 | }; | |
9871 | ||
9872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9875 | { |
9876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9877 | result = (int)(arg1)->GetMovementThreshold(); | |
9878 | ||
9879 | wxPyEndAllowThreads(__tstate); | |
9880 | if (PyErr_Occurred()) SWIG_fail; | |
9881 | } | |
15afbcd0 | 9882 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9883 | return resultobj; |
9884 | fail: | |
9885 | return NULL; | |
9886 | } | |
9887 | ||
9888 | ||
9889 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9890 | PyObject *resultobj; | |
9891 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9892 | int arg2 ; | |
9893 | PyObject * obj0 = 0 ; | |
994141e6 | 9894 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9895 | char *kwnames[] = { |
9896 | (char *) "self",(char *) "threshold", NULL | |
9897 | }; | |
9898 | ||
994141e6 | 9899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9902 | arg2 = (int) SWIG_AsInt(obj1); | |
9903 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9904 | { |
9905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9906 | (arg1)->SetMovementThreshold(arg2); | |
9907 | ||
9908 | wxPyEndAllowThreads(__tstate); | |
9909 | if (PyErr_Occurred()) SWIG_fail; | |
9910 | } | |
9911 | Py_INCREF(Py_None); resultobj = Py_None; | |
9912 | return resultobj; | |
9913 | fail: | |
9914 | return NULL; | |
9915 | } | |
9916 | ||
9917 | ||
9918 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9919 | PyObject *resultobj; | |
9920 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9921 | bool result; | |
9922 | PyObject * obj0 = 0 ; | |
9923 | char *kwnames[] = { | |
9924 | (char *) "self", NULL | |
9925 | }; | |
9926 | ||
9927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9930 | { |
9931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9932 | result = (bool)(arg1)->IsOk(); | |
9933 | ||
9934 | wxPyEndAllowThreads(__tstate); | |
9935 | if (PyErr_Occurred()) SWIG_fail; | |
9936 | } | |
4f89f6a3 RD |
9937 | { |
9938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9939 | } | |
d14a1e28 RD |
9940 | return resultobj; |
9941 | fail: | |
9942 | return NULL; | |
9943 | } | |
9944 | ||
9945 | ||
9946 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9947 | PyObject *resultobj; | |
9948 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9949 | int result; | |
9950 | PyObject * obj0 = 0 ; | |
9951 | char *kwnames[] = { | |
9952 | (char *) "self", NULL | |
9953 | }; | |
9954 | ||
9955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9958 | { |
9959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9960 | result = (int)(arg1)->GetNumberJoysticks(); | |
9961 | ||
9962 | wxPyEndAllowThreads(__tstate); | |
9963 | if (PyErr_Occurred()) SWIG_fail; | |
9964 | } | |
15afbcd0 | 9965 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9966 | return resultobj; |
9967 | fail: | |
9968 | return NULL; | |
9969 | } | |
9970 | ||
9971 | ||
9972 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9973 | PyObject *resultobj; | |
9974 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9975 | int result; | |
9976 | PyObject * obj0 = 0 ; | |
9977 | char *kwnames[] = { | |
9978 | (char *) "self", NULL | |
9979 | }; | |
9980 | ||
9981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9984 | { |
9985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9986 | result = (int)(arg1)->GetManufacturerId(); | |
9987 | ||
9988 | wxPyEndAllowThreads(__tstate); | |
9989 | if (PyErr_Occurred()) SWIG_fail; | |
9990 | } | |
15afbcd0 | 9991 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9992 | return resultobj; |
9993 | fail: | |
9994 | return NULL; | |
9995 | } | |
9996 | ||
9997 | ||
9998 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9999 | PyObject *resultobj; | |
10000 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10001 | int result; | |
10002 | PyObject * obj0 = 0 ; | |
10003 | char *kwnames[] = { | |
10004 | (char *) "self", NULL | |
10005 | }; | |
10006 | ||
10007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10010 | { |
10011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10012 | result = (int)(arg1)->GetProductId(); | |
10013 | ||
10014 | wxPyEndAllowThreads(__tstate); | |
10015 | if (PyErr_Occurred()) SWIG_fail; | |
10016 | } | |
15afbcd0 | 10017 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10018 | return resultobj; |
10019 | fail: | |
10020 | return NULL; | |
10021 | } | |
10022 | ||
10023 | ||
10024 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10025 | PyObject *resultobj; | |
10026 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10027 | wxString result; | |
10028 | PyObject * obj0 = 0 ; | |
10029 | char *kwnames[] = { | |
10030 | (char *) "self", NULL | |
10031 | }; | |
10032 | ||
10033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10036 | { |
10037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10038 | result = (arg1)->GetProductName(); | |
10039 | ||
10040 | wxPyEndAllowThreads(__tstate); | |
10041 | if (PyErr_Occurred()) SWIG_fail; | |
10042 | } | |
10043 | { | |
10044 | #if wxUSE_UNICODE | |
10045 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10046 | #else | |
10047 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10048 | #endif | |
10049 | } | |
10050 | return resultobj; | |
10051 | fail: | |
10052 | return NULL; | |
10053 | } | |
10054 | ||
10055 | ||
10056 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10057 | PyObject *resultobj; | |
10058 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10059 | int result; | |
10060 | PyObject * obj0 = 0 ; | |
10061 | char *kwnames[] = { | |
10062 | (char *) "self", NULL | |
10063 | }; | |
10064 | ||
10065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10068 | { |
10069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10070 | result = (int)(arg1)->GetXMin(); | |
10071 | ||
10072 | wxPyEndAllowThreads(__tstate); | |
10073 | if (PyErr_Occurred()) SWIG_fail; | |
10074 | } | |
15afbcd0 | 10075 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10076 | return resultobj; |
10077 | fail: | |
10078 | return NULL; | |
10079 | } | |
10080 | ||
10081 | ||
10082 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10083 | PyObject *resultobj; | |
10084 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10085 | int result; | |
10086 | PyObject * obj0 = 0 ; | |
10087 | char *kwnames[] = { | |
10088 | (char *) "self", NULL | |
10089 | }; | |
10090 | ||
10091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10094 | { |
10095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10096 | result = (int)(arg1)->GetYMin(); | |
10097 | ||
10098 | wxPyEndAllowThreads(__tstate); | |
10099 | if (PyErr_Occurred()) SWIG_fail; | |
10100 | } | |
15afbcd0 | 10101 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10102 | return resultobj; |
10103 | fail: | |
10104 | return NULL; | |
10105 | } | |
10106 | ||
10107 | ||
10108 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10109 | PyObject *resultobj; | |
10110 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10111 | int result; | |
10112 | PyObject * obj0 = 0 ; | |
10113 | char *kwnames[] = { | |
10114 | (char *) "self", NULL | |
10115 | }; | |
10116 | ||
10117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10120 | { |
10121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10122 | result = (int)(arg1)->GetZMin(); | |
10123 | ||
10124 | wxPyEndAllowThreads(__tstate); | |
10125 | if (PyErr_Occurred()) SWIG_fail; | |
10126 | } | |
15afbcd0 | 10127 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10128 | return resultobj; |
10129 | fail: | |
10130 | return NULL; | |
10131 | } | |
10132 | ||
10133 | ||
10134 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10135 | PyObject *resultobj; | |
10136 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10137 | int result; | |
10138 | PyObject * obj0 = 0 ; | |
10139 | char *kwnames[] = { | |
10140 | (char *) "self", NULL | |
10141 | }; | |
10142 | ||
10143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10146 | { |
10147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10148 | result = (int)(arg1)->GetXMax(); | |
10149 | ||
10150 | wxPyEndAllowThreads(__tstate); | |
10151 | if (PyErr_Occurred()) SWIG_fail; | |
10152 | } | |
15afbcd0 | 10153 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10154 | return resultobj; |
10155 | fail: | |
10156 | return NULL; | |
10157 | } | |
10158 | ||
10159 | ||
10160 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10161 | PyObject *resultobj; | |
10162 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10163 | int result; | |
10164 | PyObject * obj0 = 0 ; | |
10165 | char *kwnames[] = { | |
10166 | (char *) "self", NULL | |
10167 | }; | |
10168 | ||
10169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10172 | { |
10173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10174 | result = (int)(arg1)->GetYMax(); | |
10175 | ||
10176 | wxPyEndAllowThreads(__tstate); | |
10177 | if (PyErr_Occurred()) SWIG_fail; | |
10178 | } | |
15afbcd0 | 10179 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10180 | return resultobj; |
10181 | fail: | |
10182 | return NULL; | |
10183 | } | |
10184 | ||
10185 | ||
10186 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10187 | PyObject *resultobj; | |
10188 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10189 | int result; | |
10190 | PyObject * obj0 = 0 ; | |
10191 | char *kwnames[] = { | |
10192 | (char *) "self", NULL | |
10193 | }; | |
10194 | ||
10195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10198 | { |
10199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10200 | result = (int)(arg1)->GetZMax(); | |
10201 | ||
10202 | wxPyEndAllowThreads(__tstate); | |
10203 | if (PyErr_Occurred()) SWIG_fail; | |
10204 | } | |
15afbcd0 | 10205 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10206 | return resultobj; |
10207 | fail: | |
10208 | return NULL; | |
10209 | } | |
10210 | ||
10211 | ||
10212 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10213 | PyObject *resultobj; | |
10214 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10215 | int result; | |
10216 | PyObject * obj0 = 0 ; | |
10217 | char *kwnames[] = { | |
10218 | (char *) "self", NULL | |
10219 | }; | |
10220 | ||
10221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10224 | { |
10225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10226 | result = (int)(arg1)->GetNumberButtons(); | |
10227 | ||
10228 | wxPyEndAllowThreads(__tstate); | |
10229 | if (PyErr_Occurred()) SWIG_fail; | |
10230 | } | |
15afbcd0 | 10231 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10232 | return resultobj; |
10233 | fail: | |
10234 | return NULL; | |
10235 | } | |
10236 | ||
10237 | ||
10238 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10239 | PyObject *resultobj; | |
10240 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10241 | int result; | |
10242 | PyObject * obj0 = 0 ; | |
10243 | char *kwnames[] = { | |
10244 | (char *) "self", NULL | |
10245 | }; | |
10246 | ||
10247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10250 | { |
10251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10252 | result = (int)(arg1)->GetNumberAxes(); | |
10253 | ||
10254 | wxPyEndAllowThreads(__tstate); | |
10255 | if (PyErr_Occurred()) SWIG_fail; | |
10256 | } | |
15afbcd0 | 10257 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10258 | return resultobj; |
10259 | fail: | |
10260 | return NULL; | |
10261 | } | |
10262 | ||
10263 | ||
10264 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10265 | PyObject *resultobj; | |
10266 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10267 | int result; | |
10268 | PyObject * obj0 = 0 ; | |
10269 | char *kwnames[] = { | |
10270 | (char *) "self", NULL | |
10271 | }; | |
10272 | ||
10273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10276 | { |
10277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10278 | result = (int)(arg1)->GetMaxButtons(); | |
10279 | ||
10280 | wxPyEndAllowThreads(__tstate); | |
10281 | if (PyErr_Occurred()) SWIG_fail; | |
10282 | } | |
15afbcd0 | 10283 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10284 | return resultobj; |
10285 | fail: | |
10286 | return NULL; | |
10287 | } | |
10288 | ||
10289 | ||
10290 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10291 | PyObject *resultobj; | |
10292 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10293 | int result; | |
10294 | PyObject * obj0 = 0 ; | |
10295 | char *kwnames[] = { | |
10296 | (char *) "self", NULL | |
10297 | }; | |
10298 | ||
10299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10302 | { |
10303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10304 | result = (int)(arg1)->GetMaxAxes(); | |
10305 | ||
10306 | wxPyEndAllowThreads(__tstate); | |
10307 | if (PyErr_Occurred()) SWIG_fail; | |
10308 | } | |
15afbcd0 | 10309 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10310 | return resultobj; |
10311 | fail: | |
10312 | return NULL; | |
10313 | } | |
10314 | ||
10315 | ||
10316 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10317 | PyObject *resultobj; | |
10318 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10319 | int result; | |
10320 | PyObject * obj0 = 0 ; | |
10321 | char *kwnames[] = { | |
10322 | (char *) "self", NULL | |
10323 | }; | |
10324 | ||
10325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10328 | { |
10329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10330 | result = (int)(arg1)->GetPollingMin(); | |
10331 | ||
10332 | wxPyEndAllowThreads(__tstate); | |
10333 | if (PyErr_Occurred()) SWIG_fail; | |
10334 | } | |
15afbcd0 | 10335 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10336 | return resultobj; |
10337 | fail: | |
10338 | return NULL; | |
10339 | } | |
10340 | ||
10341 | ||
10342 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10343 | PyObject *resultobj; | |
10344 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10345 | int result; | |
10346 | PyObject * obj0 = 0 ; | |
10347 | char *kwnames[] = { | |
10348 | (char *) "self", NULL | |
10349 | }; | |
10350 | ||
10351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10354 | { |
10355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10356 | result = (int)(arg1)->GetPollingMax(); | |
10357 | ||
10358 | wxPyEndAllowThreads(__tstate); | |
10359 | if (PyErr_Occurred()) SWIG_fail; | |
10360 | } | |
15afbcd0 | 10361 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10362 | return resultobj; |
10363 | fail: | |
10364 | return NULL; | |
10365 | } | |
10366 | ||
10367 | ||
10368 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10369 | PyObject *resultobj; | |
10370 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10371 | int result; | |
10372 | PyObject * obj0 = 0 ; | |
10373 | char *kwnames[] = { | |
10374 | (char *) "self", NULL | |
10375 | }; | |
10376 | ||
10377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10380 | { |
10381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10382 | result = (int)(arg1)->GetRudderMin(); | |
10383 | ||
10384 | wxPyEndAllowThreads(__tstate); | |
10385 | if (PyErr_Occurred()) SWIG_fail; | |
10386 | } | |
15afbcd0 | 10387 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10388 | return resultobj; |
10389 | fail: | |
10390 | return NULL; | |
10391 | } | |
10392 | ||
10393 | ||
10394 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10395 | PyObject *resultobj; | |
10396 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10397 | int result; | |
10398 | PyObject * obj0 = 0 ; | |
10399 | char *kwnames[] = { | |
10400 | (char *) "self", NULL | |
10401 | }; | |
10402 | ||
10403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10406 | { |
10407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10408 | result = (int)(arg1)->GetRudderMax(); | |
10409 | ||
10410 | wxPyEndAllowThreads(__tstate); | |
10411 | if (PyErr_Occurred()) SWIG_fail; | |
10412 | } | |
15afbcd0 | 10413 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10414 | return resultobj; |
10415 | fail: | |
10416 | return NULL; | |
10417 | } | |
10418 | ||
10419 | ||
10420 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10421 | PyObject *resultobj; | |
10422 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10423 | int result; | |
10424 | PyObject * obj0 = 0 ; | |
10425 | char *kwnames[] = { | |
10426 | (char *) "self", NULL | |
10427 | }; | |
10428 | ||
10429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10432 | { |
10433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10434 | result = (int)(arg1)->GetUMin(); | |
10435 | ||
10436 | wxPyEndAllowThreads(__tstate); | |
10437 | if (PyErr_Occurred()) SWIG_fail; | |
10438 | } | |
15afbcd0 | 10439 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10440 | return resultobj; |
10441 | fail: | |
10442 | return NULL; | |
10443 | } | |
10444 | ||
10445 | ||
10446 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10447 | PyObject *resultobj; | |
10448 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10449 | int result; | |
10450 | PyObject * obj0 = 0 ; | |
10451 | char *kwnames[] = { | |
10452 | (char *) "self", NULL | |
10453 | }; | |
10454 | ||
10455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10458 | { |
10459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10460 | result = (int)(arg1)->GetUMax(); | |
10461 | ||
10462 | wxPyEndAllowThreads(__tstate); | |
10463 | if (PyErr_Occurred()) SWIG_fail; | |
10464 | } | |
15afbcd0 | 10465 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10466 | return resultobj; |
10467 | fail: | |
10468 | return NULL; | |
10469 | } | |
10470 | ||
10471 | ||
10472 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10473 | PyObject *resultobj; | |
10474 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10475 | int result; | |
10476 | PyObject * obj0 = 0 ; | |
10477 | char *kwnames[] = { | |
10478 | (char *) "self", NULL | |
10479 | }; | |
10480 | ||
10481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10484 | { |
10485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10486 | result = (int)(arg1)->GetVMin(); | |
10487 | ||
10488 | wxPyEndAllowThreads(__tstate); | |
10489 | if (PyErr_Occurred()) SWIG_fail; | |
10490 | } | |
15afbcd0 | 10491 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10492 | return resultobj; |
10493 | fail: | |
10494 | return NULL; | |
10495 | } | |
10496 | ||
10497 | ||
10498 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10499 | PyObject *resultobj; | |
10500 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10501 | int result; | |
10502 | PyObject * obj0 = 0 ; | |
10503 | char *kwnames[] = { | |
10504 | (char *) "self", NULL | |
10505 | }; | |
10506 | ||
10507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10510 | { |
10511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10512 | result = (int)(arg1)->GetVMax(); | |
10513 | ||
10514 | wxPyEndAllowThreads(__tstate); | |
10515 | if (PyErr_Occurred()) SWIG_fail; | |
10516 | } | |
15afbcd0 | 10517 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10518 | return resultobj; |
10519 | fail: | |
10520 | return NULL; | |
10521 | } | |
10522 | ||
10523 | ||
10524 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10525 | PyObject *resultobj; | |
10526 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10527 | bool result; | |
10528 | PyObject * obj0 = 0 ; | |
10529 | char *kwnames[] = { | |
10530 | (char *) "self", NULL | |
10531 | }; | |
10532 | ||
10533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10536 | { |
10537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10538 | result = (bool)(arg1)->HasRudder(); | |
10539 | ||
10540 | wxPyEndAllowThreads(__tstate); | |
10541 | if (PyErr_Occurred()) SWIG_fail; | |
10542 | } | |
4f89f6a3 RD |
10543 | { |
10544 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10545 | } | |
d14a1e28 RD |
10546 | return resultobj; |
10547 | fail: | |
10548 | return NULL; | |
10549 | } | |
10550 | ||
10551 | ||
10552 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10553 | PyObject *resultobj; | |
10554 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10555 | bool result; | |
10556 | PyObject * obj0 = 0 ; | |
10557 | char *kwnames[] = { | |
10558 | (char *) "self", NULL | |
10559 | }; | |
10560 | ||
10561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10564 | { |
10565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10566 | result = (bool)(arg1)->HasZ(); | |
10567 | ||
10568 | wxPyEndAllowThreads(__tstate); | |
10569 | if (PyErr_Occurred()) SWIG_fail; | |
10570 | } | |
4f89f6a3 RD |
10571 | { |
10572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10573 | } | |
d14a1e28 RD |
10574 | return resultobj; |
10575 | fail: | |
10576 | return NULL; | |
10577 | } | |
10578 | ||
10579 | ||
10580 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10581 | PyObject *resultobj; | |
10582 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10583 | bool result; | |
10584 | PyObject * obj0 = 0 ; | |
10585 | char *kwnames[] = { | |
10586 | (char *) "self", NULL | |
10587 | }; | |
10588 | ||
10589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10592 | { |
10593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10594 | result = (bool)(arg1)->HasU(); | |
10595 | ||
10596 | wxPyEndAllowThreads(__tstate); | |
10597 | if (PyErr_Occurred()) SWIG_fail; | |
10598 | } | |
4f89f6a3 RD |
10599 | { |
10600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10601 | } | |
d14a1e28 RD |
10602 | return resultobj; |
10603 | fail: | |
10604 | return NULL; | |
10605 | } | |
10606 | ||
10607 | ||
10608 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10609 | PyObject *resultobj; | |
10610 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10611 | bool result; | |
10612 | PyObject * obj0 = 0 ; | |
10613 | char *kwnames[] = { | |
10614 | (char *) "self", NULL | |
10615 | }; | |
10616 | ||
10617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10620 | { |
10621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10622 | result = (bool)(arg1)->HasV(); | |
10623 | ||
10624 | wxPyEndAllowThreads(__tstate); | |
10625 | if (PyErr_Occurred()) SWIG_fail; | |
10626 | } | |
4f89f6a3 RD |
10627 | { |
10628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10629 | } | |
d14a1e28 RD |
10630 | return resultobj; |
10631 | fail: | |
10632 | return NULL; | |
10633 | } | |
10634 | ||
10635 | ||
10636 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10637 | PyObject *resultobj; | |
10638 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10639 | bool result; | |
10640 | PyObject * obj0 = 0 ; | |
10641 | char *kwnames[] = { | |
10642 | (char *) "self", NULL | |
10643 | }; | |
10644 | ||
10645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10648 | { |
10649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10650 | result = (bool)(arg1)->HasPOV(); | |
10651 | ||
10652 | wxPyEndAllowThreads(__tstate); | |
10653 | if (PyErr_Occurred()) SWIG_fail; | |
10654 | } | |
4f89f6a3 RD |
10655 | { |
10656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10657 | } | |
d14a1e28 RD |
10658 | return resultobj; |
10659 | fail: | |
10660 | return NULL; | |
10661 | } | |
10662 | ||
10663 | ||
10664 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10665 | PyObject *resultobj; | |
10666 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10667 | bool result; | |
10668 | PyObject * obj0 = 0 ; | |
10669 | char *kwnames[] = { | |
10670 | (char *) "self", NULL | |
10671 | }; | |
10672 | ||
10673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10676 | { |
10677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10678 | result = (bool)(arg1)->HasPOV4Dir(); | |
10679 | ||
10680 | wxPyEndAllowThreads(__tstate); | |
10681 | if (PyErr_Occurred()) SWIG_fail; | |
10682 | } | |
4f89f6a3 RD |
10683 | { |
10684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10685 | } | |
d14a1e28 RD |
10686 | return resultobj; |
10687 | fail: | |
10688 | return NULL; | |
10689 | } | |
10690 | ||
10691 | ||
10692 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10693 | PyObject *resultobj; | |
10694 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10695 | bool result; | |
10696 | PyObject * obj0 = 0 ; | |
10697 | char *kwnames[] = { | |
10698 | (char *) "self", NULL | |
10699 | }; | |
10700 | ||
10701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10704 | { |
10705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10706 | result = (bool)(arg1)->HasPOVCTS(); | |
10707 | ||
10708 | wxPyEndAllowThreads(__tstate); | |
10709 | if (PyErr_Occurred()) SWIG_fail; | |
10710 | } | |
4f89f6a3 RD |
10711 | { |
10712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10713 | } | |
d14a1e28 RD |
10714 | return resultobj; |
10715 | fail: | |
10716 | return NULL; | |
10717 | } | |
10718 | ||
10719 | ||
10720 | static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10721 | PyObject *resultobj; | |
10722 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10723 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10724 | int arg3 = (int) 0 ; | |
10725 | bool result; | |
10726 | PyObject * obj0 = 0 ; | |
10727 | PyObject * obj1 = 0 ; | |
994141e6 | 10728 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10729 | char *kwnames[] = { |
10730 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
10731 | }; | |
10732 | ||
994141e6 | 10733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10736 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10738 | if (obj2) { |
15afbcd0 RD |
10739 | arg3 = (int) SWIG_AsInt(obj2); |
10740 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10741 | } |
d14a1e28 RD |
10742 | { |
10743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10744 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
10745 | ||
10746 | wxPyEndAllowThreads(__tstate); | |
10747 | if (PyErr_Occurred()) SWIG_fail; | |
10748 | } | |
4f89f6a3 RD |
10749 | { |
10750 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10751 | } | |
d14a1e28 RD |
10752 | return resultobj; |
10753 | fail: | |
10754 | return NULL; | |
10755 | } | |
10756 | ||
10757 | ||
10758 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10759 | PyObject *resultobj; | |
10760 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10761 | bool result; | |
10762 | PyObject * obj0 = 0 ; | |
10763 | char *kwnames[] = { | |
10764 | (char *) "self", NULL | |
10765 | }; | |
10766 | ||
10767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10770 | { |
10771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10772 | result = (bool)(arg1)->ReleaseCapture(); | |
10773 | ||
10774 | wxPyEndAllowThreads(__tstate); | |
10775 | if (PyErr_Occurred()) SWIG_fail; | |
10776 | } | |
4f89f6a3 RD |
10777 | { |
10778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10779 | } | |
d14a1e28 RD |
10780 | return resultobj; |
10781 | fail: | |
10782 | return NULL; | |
10783 | } | |
10784 | ||
10785 | ||
10786 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
10787 | PyObject *obj; | |
10788 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10789 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
10790 | Py_INCREF(obj); | |
10791 | return Py_BuildValue((char *)""); | |
10792 | } | |
10793 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10794 | PyObject *resultobj; | |
10795 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10796 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10797 | PyObject * obj0 = 0 ; | |
10798 | PyObject * obj1 = 0 ; | |
10799 | char *kwnames[] = { | |
10800 | (char *) "self",(char *) "m_pos", NULL | |
10801 | }; | |
10802 | ||
10803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10806 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
10807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10808 | if (arg1) (arg1)->m_pos = *arg2; |
10809 | ||
10810 | Py_INCREF(Py_None); resultobj = Py_None; | |
10811 | return resultobj; | |
10812 | fail: | |
10813 | return NULL; | |
10814 | } | |
10815 | ||
10816 | ||
10817 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10818 | PyObject *resultobj; | |
10819 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10820 | wxPoint *result; | |
10821 | PyObject * obj0 = 0 ; | |
10822 | char *kwnames[] = { | |
10823 | (char *) "self", NULL | |
10824 | }; | |
10825 | ||
10826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10829 | result = (wxPoint *)& ((arg1)->m_pos); |
10830 | ||
15afbcd0 | 10831 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
10832 | return resultobj; |
10833 | fail: | |
10834 | return NULL; | |
10835 | } | |
10836 | ||
10837 | ||
10838 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10839 | PyObject *resultobj; | |
10840 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10841 | int arg2 ; | |
10842 | PyObject * obj0 = 0 ; | |
994141e6 | 10843 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10844 | char *kwnames[] = { |
10845 | (char *) "self",(char *) "m_zPosition", NULL | |
10846 | }; | |
10847 | ||
994141e6 | 10848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10851 | arg2 = (int) SWIG_AsInt(obj1); | |
10852 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10853 | if (arg1) (arg1)->m_zPosition = arg2; |
10854 | ||
10855 | Py_INCREF(Py_None); resultobj = Py_None; | |
10856 | return resultobj; | |
10857 | fail: | |
10858 | return NULL; | |
10859 | } | |
10860 | ||
10861 | ||
10862 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10863 | PyObject *resultobj; | |
10864 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10865 | int result; | |
10866 | PyObject * obj0 = 0 ; | |
10867 | char *kwnames[] = { | |
10868 | (char *) "self", NULL | |
10869 | }; | |
10870 | ||
10871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10874 | result = (int) ((arg1)->m_zPosition); |
10875 | ||
15afbcd0 | 10876 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10877 | return resultobj; |
10878 | fail: | |
10879 | return NULL; | |
10880 | } | |
10881 | ||
10882 | ||
10883 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10884 | PyObject *resultobj; | |
10885 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10886 | int arg2 ; | |
10887 | PyObject * obj0 = 0 ; | |
994141e6 | 10888 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10889 | char *kwnames[] = { |
10890 | (char *) "self",(char *) "m_buttonChange", NULL | |
10891 | }; | |
10892 | ||
994141e6 | 10893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10896 | arg2 = (int) SWIG_AsInt(obj1); | |
10897 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10898 | if (arg1) (arg1)->m_buttonChange = arg2; |
10899 | ||
10900 | Py_INCREF(Py_None); resultobj = Py_None; | |
10901 | return resultobj; | |
10902 | fail: | |
10903 | return NULL; | |
10904 | } | |
10905 | ||
10906 | ||
10907 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10908 | PyObject *resultobj; | |
10909 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10910 | int result; | |
10911 | PyObject * obj0 = 0 ; | |
10912 | char *kwnames[] = { | |
10913 | (char *) "self", NULL | |
10914 | }; | |
10915 | ||
10916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10919 | result = (int) ((arg1)->m_buttonChange); |
10920 | ||
15afbcd0 | 10921 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10922 | return resultobj; |
10923 | fail: | |
10924 | return NULL; | |
10925 | } | |
10926 | ||
10927 | ||
10928 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10929 | PyObject *resultobj; | |
10930 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10931 | int arg2 ; | |
10932 | PyObject * obj0 = 0 ; | |
994141e6 | 10933 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10934 | char *kwnames[] = { |
10935 | (char *) "self",(char *) "m_buttonState", NULL | |
10936 | }; | |
10937 | ||
994141e6 | 10938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10941 | arg2 = (int) SWIG_AsInt(obj1); | |
10942 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10943 | if (arg1) (arg1)->m_buttonState = arg2; |
10944 | ||
10945 | Py_INCREF(Py_None); resultobj = Py_None; | |
10946 | return resultobj; | |
10947 | fail: | |
10948 | return NULL; | |
10949 | } | |
10950 | ||
10951 | ||
10952 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10953 | PyObject *resultobj; | |
10954 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10955 | int result; | |
10956 | PyObject * obj0 = 0 ; | |
10957 | char *kwnames[] = { | |
10958 | (char *) "self", NULL | |
10959 | }; | |
10960 | ||
10961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10964 | result = (int) ((arg1)->m_buttonState); |
10965 | ||
15afbcd0 | 10966 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10967 | return resultobj; |
10968 | fail: | |
10969 | return NULL; | |
10970 | } | |
10971 | ||
10972 | ||
10973 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10974 | PyObject *resultobj; | |
10975 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10976 | int arg2 ; | |
10977 | PyObject * obj0 = 0 ; | |
994141e6 | 10978 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10979 | char *kwnames[] = { |
10980 | (char *) "self",(char *) "m_joyStick", NULL | |
10981 | }; | |
10982 | ||
994141e6 | 10983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10986 | arg2 = (int) SWIG_AsInt(obj1); | |
10987 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10988 | if (arg1) (arg1)->m_joyStick = arg2; |
10989 | ||
10990 | Py_INCREF(Py_None); resultobj = Py_None; | |
10991 | return resultobj; | |
10992 | fail: | |
10993 | return NULL; | |
10994 | } | |
10995 | ||
10996 | ||
10997 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10998 | PyObject *resultobj; | |
10999 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11000 | int result; | |
11001 | PyObject * obj0 = 0 ; | |
11002 | char *kwnames[] = { | |
11003 | (char *) "self", NULL | |
11004 | }; | |
11005 | ||
11006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11009 | result = (int) ((arg1)->m_joyStick); |
11010 | ||
15afbcd0 | 11011 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11012 | return resultobj; |
11013 | fail: | |
11014 | return NULL; | |
11015 | } | |
11016 | ||
11017 | ||
11018 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11019 | PyObject *resultobj; | |
11020 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11021 | int arg2 = (int) 0 ; | |
11022 | int arg3 = (int) wxJOYSTICK1 ; | |
11023 | int arg4 = (int) 0 ; | |
11024 | wxJoystickEvent *result; | |
994141e6 RD |
11025 | PyObject * obj0 = 0 ; |
11026 | PyObject * obj1 = 0 ; | |
11027 | PyObject * obj2 = 0 ; | |
11028 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11029 | char *kwnames[] = { |
11030 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
11031 | }; | |
11032 | ||
994141e6 RD |
11033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
11034 | if (obj0) { | |
15afbcd0 RD |
11035 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
11036 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11037 | } |
11038 | if (obj1) { | |
15afbcd0 RD |
11039 | arg2 = (int) SWIG_AsInt(obj1); |
11040 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11041 | } |
11042 | if (obj2) { | |
15afbcd0 RD |
11043 | arg3 = (int) SWIG_AsInt(obj2); |
11044 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11045 | } |
11046 | if (obj3) { | |
15afbcd0 RD |
11047 | arg4 = (int) SWIG_AsInt(obj3); |
11048 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11049 | } |
d14a1e28 RD |
11050 | { |
11051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11052 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
11053 | ||
11054 | wxPyEndAllowThreads(__tstate); | |
11055 | if (PyErr_Occurred()) SWIG_fail; | |
11056 | } | |
15afbcd0 | 11057 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); |
d14a1e28 RD |
11058 | return resultobj; |
11059 | fail: | |
11060 | return NULL; | |
11061 | } | |
11062 | ||
11063 | ||
11064 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11065 | PyObject *resultobj; | |
11066 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11067 | wxPoint result; | |
11068 | PyObject * obj0 = 0 ; | |
11069 | char *kwnames[] = { | |
11070 | (char *) "self", NULL | |
11071 | }; | |
11072 | ||
11073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11076 | { |
11077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11078 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
11079 | ||
11080 | wxPyEndAllowThreads(__tstate); | |
11081 | if (PyErr_Occurred()) SWIG_fail; | |
11082 | } | |
11083 | { | |
11084 | wxPoint * resultptr; | |
11085 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 11086 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
11087 | } |
11088 | return resultobj; | |
11089 | fail: | |
11090 | return NULL; | |
11091 | } | |
11092 | ||
11093 | ||
11094 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11095 | PyObject *resultobj; | |
11096 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11097 | int result; | |
11098 | PyObject * obj0 = 0 ; | |
11099 | char *kwnames[] = { | |
11100 | (char *) "self", NULL | |
11101 | }; | |
11102 | ||
11103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11106 | { |
11107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11108 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
11109 | ||
11110 | wxPyEndAllowThreads(__tstate); | |
11111 | if (PyErr_Occurred()) SWIG_fail; | |
11112 | } | |
15afbcd0 | 11113 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11114 | return resultobj; |
11115 | fail: | |
11116 | return NULL; | |
11117 | } | |
11118 | ||
11119 | ||
11120 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11121 | PyObject *resultobj; | |
11122 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11123 | int result; | |
11124 | PyObject * obj0 = 0 ; | |
11125 | char *kwnames[] = { | |
11126 | (char *) "self", NULL | |
11127 | }; | |
11128 | ||
11129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11132 | { |
11133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11134 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
11135 | ||
11136 | wxPyEndAllowThreads(__tstate); | |
11137 | if (PyErr_Occurred()) SWIG_fail; | |
11138 | } | |
15afbcd0 | 11139 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11140 | return resultobj; |
11141 | fail: | |
11142 | return NULL; | |
11143 | } | |
11144 | ||
11145 | ||
11146 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11147 | PyObject *resultobj; | |
11148 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11149 | int result; | |
11150 | PyObject * obj0 = 0 ; | |
11151 | char *kwnames[] = { | |
11152 | (char *) "self", NULL | |
11153 | }; | |
11154 | ||
11155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11158 | { |
11159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11160 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
11161 | ||
11162 | wxPyEndAllowThreads(__tstate); | |
11163 | if (PyErr_Occurred()) SWIG_fail; | |
11164 | } | |
15afbcd0 | 11165 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11166 | return resultobj; |
11167 | fail: | |
11168 | return NULL; | |
11169 | } | |
11170 | ||
11171 | ||
11172 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11173 | PyObject *resultobj; | |
11174 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11175 | int result; | |
11176 | PyObject * obj0 = 0 ; | |
11177 | char *kwnames[] = { | |
11178 | (char *) "self", NULL | |
11179 | }; | |
11180 | ||
11181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11184 | { |
11185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11186 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
11187 | ||
11188 | wxPyEndAllowThreads(__tstate); | |
11189 | if (PyErr_Occurred()) SWIG_fail; | |
11190 | } | |
15afbcd0 | 11191 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11192 | return resultobj; |
11193 | fail: | |
11194 | return NULL; | |
11195 | } | |
11196 | ||
11197 | ||
11198 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11199 | PyObject *resultobj; | |
11200 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11201 | int arg2 ; | |
11202 | PyObject * obj0 = 0 ; | |
994141e6 | 11203 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11204 | char *kwnames[] = { |
11205 | (char *) "self",(char *) "stick", NULL | |
11206 | }; | |
11207 | ||
994141e6 | 11208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11211 | arg2 = (int) SWIG_AsInt(obj1); | |
11212 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11213 | { |
11214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11215 | (arg1)->SetJoystick(arg2); | |
11216 | ||
11217 | wxPyEndAllowThreads(__tstate); | |
11218 | if (PyErr_Occurred()) SWIG_fail; | |
11219 | } | |
11220 | Py_INCREF(Py_None); resultobj = Py_None; | |
11221 | return resultobj; | |
11222 | fail: | |
11223 | return NULL; | |
11224 | } | |
11225 | ||
11226 | ||
11227 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11228 | PyObject *resultobj; | |
11229 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11230 | int arg2 ; | |
11231 | PyObject * obj0 = 0 ; | |
994141e6 | 11232 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11233 | char *kwnames[] = { |
11234 | (char *) "self",(char *) "state", NULL | |
11235 | }; | |
11236 | ||
994141e6 | 11237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11240 | arg2 = (int) SWIG_AsInt(obj1); | |
11241 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11242 | { |
11243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11244 | (arg1)->SetButtonState(arg2); | |
11245 | ||
11246 | wxPyEndAllowThreads(__tstate); | |
11247 | if (PyErr_Occurred()) SWIG_fail; | |
11248 | } | |
11249 | Py_INCREF(Py_None); resultobj = Py_None; | |
11250 | return resultobj; | |
11251 | fail: | |
11252 | return NULL; | |
11253 | } | |
11254 | ||
11255 | ||
11256 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11257 | PyObject *resultobj; | |
11258 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11259 | int arg2 ; | |
11260 | PyObject * obj0 = 0 ; | |
994141e6 | 11261 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11262 | char *kwnames[] = { |
11263 | (char *) "self",(char *) "change", NULL | |
11264 | }; | |
11265 | ||
994141e6 | 11266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11269 | arg2 = (int) SWIG_AsInt(obj1); | |
11270 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11271 | { |
11272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11273 | (arg1)->SetButtonChange(arg2); | |
11274 | ||
11275 | wxPyEndAllowThreads(__tstate); | |
11276 | if (PyErr_Occurred()) SWIG_fail; | |
11277 | } | |
11278 | Py_INCREF(Py_None); resultobj = Py_None; | |
11279 | return resultobj; | |
11280 | fail: | |
11281 | return NULL; | |
11282 | } | |
11283 | ||
11284 | ||
11285 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11286 | PyObject *resultobj; | |
11287 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11288 | wxPoint *arg2 = 0 ; | |
11289 | wxPoint temp2 ; | |
11290 | PyObject * obj0 = 0 ; | |
11291 | PyObject * obj1 = 0 ; | |
11292 | char *kwnames[] = { | |
11293 | (char *) "self",(char *) "pos", NULL | |
11294 | }; | |
11295 | ||
11296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11299 | { |
11300 | arg2 = &temp2; | |
11301 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11302 | } | |
11303 | { | |
11304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11305 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
11306 | ||
11307 | wxPyEndAllowThreads(__tstate); | |
11308 | if (PyErr_Occurred()) SWIG_fail; | |
11309 | } | |
11310 | Py_INCREF(Py_None); resultobj = Py_None; | |
11311 | return resultobj; | |
11312 | fail: | |
11313 | return NULL; | |
11314 | } | |
11315 | ||
11316 | ||
11317 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11318 | PyObject *resultobj; | |
11319 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11320 | int arg2 ; | |
11321 | PyObject * obj0 = 0 ; | |
994141e6 | 11322 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11323 | char *kwnames[] = { |
11324 | (char *) "self",(char *) "zPos", NULL | |
11325 | }; | |
11326 | ||
994141e6 | 11327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11330 | arg2 = (int) SWIG_AsInt(obj1); | |
11331 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11332 | { |
11333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11334 | (arg1)->SetZPosition(arg2); | |
11335 | ||
11336 | wxPyEndAllowThreads(__tstate); | |
11337 | if (PyErr_Occurred()) SWIG_fail; | |
11338 | } | |
11339 | Py_INCREF(Py_None); resultobj = Py_None; | |
11340 | return resultobj; | |
11341 | fail: | |
11342 | return NULL; | |
11343 | } | |
11344 | ||
11345 | ||
11346 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11347 | PyObject *resultobj; | |
11348 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11349 | bool result; | |
11350 | PyObject * obj0 = 0 ; | |
11351 | char *kwnames[] = { | |
11352 | (char *) "self", NULL | |
11353 | }; | |
11354 | ||
11355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11358 | { |
11359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11360 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
11361 | ||
11362 | wxPyEndAllowThreads(__tstate); | |
11363 | if (PyErr_Occurred()) SWIG_fail; | |
11364 | } | |
4f89f6a3 RD |
11365 | { |
11366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11367 | } | |
d14a1e28 RD |
11368 | return resultobj; |
11369 | fail: | |
11370 | return NULL; | |
11371 | } | |
11372 | ||
11373 | ||
11374 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11375 | PyObject *resultobj; | |
11376 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11377 | bool result; | |
11378 | PyObject * obj0 = 0 ; | |
11379 | char *kwnames[] = { | |
11380 | (char *) "self", NULL | |
11381 | }; | |
11382 | ||
11383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11386 | { |
11387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11388 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
11389 | ||
11390 | wxPyEndAllowThreads(__tstate); | |
11391 | if (PyErr_Occurred()) SWIG_fail; | |
11392 | } | |
4f89f6a3 RD |
11393 | { |
11394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11395 | } | |
d14a1e28 RD |
11396 | return resultobj; |
11397 | fail: | |
11398 | return NULL; | |
11399 | } | |
11400 | ||
11401 | ||
11402 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11403 | PyObject *resultobj; | |
11404 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11405 | bool result; | |
11406 | PyObject * obj0 = 0 ; | |
11407 | char *kwnames[] = { | |
11408 | (char *) "self", NULL | |
11409 | }; | |
11410 | ||
11411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11414 | { |
11415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11416 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
11417 | ||
11418 | wxPyEndAllowThreads(__tstate); | |
11419 | if (PyErr_Occurred()) SWIG_fail; | |
11420 | } | |
4f89f6a3 RD |
11421 | { |
11422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11423 | } | |
d14a1e28 RD |
11424 | return resultobj; |
11425 | fail: | |
11426 | return NULL; | |
11427 | } | |
11428 | ||
11429 | ||
11430 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11431 | PyObject *resultobj; | |
11432 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11433 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11434 | bool result; | |
11435 | PyObject * obj0 = 0 ; | |
994141e6 | 11436 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11437 | char *kwnames[] = { |
11438 | (char *) "self",(char *) "but", NULL | |
11439 | }; | |
11440 | ||
994141e6 | 11441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11444 | if (obj1) { |
15afbcd0 RD |
11445 | arg2 = (int) SWIG_AsInt(obj1); |
11446 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11447 | } |
d14a1e28 RD |
11448 | { |
11449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11450 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11451 | ||
11452 | wxPyEndAllowThreads(__tstate); | |
11453 | if (PyErr_Occurred()) SWIG_fail; | |
11454 | } | |
4f89f6a3 RD |
11455 | { |
11456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11457 | } | |
d14a1e28 RD |
11458 | return resultobj; |
11459 | fail: | |
11460 | return NULL; | |
11461 | } | |
11462 | ||
11463 | ||
11464 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11465 | PyObject *resultobj; | |
11466 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11467 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11468 | bool result; | |
11469 | PyObject * obj0 = 0 ; | |
994141e6 | 11470 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11471 | char *kwnames[] = { |
11472 | (char *) "self",(char *) "but", NULL | |
11473 | }; | |
11474 | ||
994141e6 | 11475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11478 | if (obj1) { |
15afbcd0 RD |
11479 | arg2 = (int) SWIG_AsInt(obj1); |
11480 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11481 | } |
d14a1e28 RD |
11482 | { |
11483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11484 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
11485 | ||
11486 | wxPyEndAllowThreads(__tstate); | |
11487 | if (PyErr_Occurred()) SWIG_fail; | |
11488 | } | |
4f89f6a3 RD |
11489 | { |
11490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11491 | } | |
d14a1e28 RD |
11492 | return resultobj; |
11493 | fail: | |
11494 | return NULL; | |
11495 | } | |
11496 | ||
11497 | ||
11498 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11499 | PyObject *resultobj; | |
11500 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11501 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11502 | bool result; | |
11503 | PyObject * obj0 = 0 ; | |
994141e6 | 11504 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11505 | char *kwnames[] = { |
11506 | (char *) "self",(char *) "but", NULL | |
11507 | }; | |
11508 | ||
994141e6 | 11509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11512 | if (obj1) { |
15afbcd0 RD |
11513 | arg2 = (int) SWIG_AsInt(obj1); |
11514 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11515 | } |
d14a1e28 RD |
11516 | { |
11517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11518 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
11519 | ||
11520 | wxPyEndAllowThreads(__tstate); | |
11521 | if (PyErr_Occurred()) SWIG_fail; | |
11522 | } | |
4f89f6a3 RD |
11523 | { |
11524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11525 | } | |
d14a1e28 RD |
11526 | return resultobj; |
11527 | fail: | |
11528 | return NULL; | |
11529 | } | |
11530 | ||
11531 | ||
11532 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
11533 | PyObject *obj; | |
11534 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11535 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
11536 | Py_INCREF(obj); | |
11537 | return Py_BuildValue((char *)""); | |
11538 | } | |
36cadbf7 | 11539 | static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11540 | PyObject *resultobj; |
36cadbf7 RD |
11541 | wxString const &arg1_defvalue = wxPyEmptyString ; |
11542 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
4d5c3d91 | 11543 | wxSound *result; |
e811c8ce | 11544 | bool temp1 = False ; |
d14a1e28 | 11545 | PyObject * obj0 = 0 ; |
36cadbf7 RD |
11546 | char *kwnames[] = { |
11547 | (char *) "fileName", NULL | |
11548 | }; | |
d14a1e28 | 11549 | |
36cadbf7 RD |
11550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail; |
11551 | if (obj0) { | |
11552 | { | |
11553 | arg1 = wxString_in_helper(obj0); | |
11554 | if (arg1 == NULL) SWIG_fail; | |
11555 | temp1 = True; | |
11556 | } | |
d14a1e28 RD |
11557 | } |
11558 | { | |
11559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36cadbf7 | 11560 | result = (wxSound *)new_wxSound((wxString const &)*arg1); |
d14a1e28 RD |
11561 | |
11562 | wxPyEndAllowThreads(__tstate); | |
11563 | if (PyErr_Occurred()) SWIG_fail; | |
11564 | } | |
15afbcd0 | 11565 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
11566 | { |
11567 | if (temp1) | |
11568 | delete arg1; | |
11569 | } | |
11570 | return resultobj; | |
11571 | fail: | |
11572 | { | |
11573 | if (temp1) | |
11574 | delete arg1; | |
11575 | } | |
11576 | return NULL; | |
11577 | } | |
11578 | ||
11579 | ||
36cadbf7 | 11580 | static PyObject *_wrap_new_SoundFromData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11581 | PyObject *resultobj; |
36cadbf7 | 11582 | PyObject *arg1 = (PyObject *) 0 ; |
4d5c3d91 | 11583 | wxSound *result; |
d14a1e28 | 11584 | PyObject * obj0 = 0 ; |
36cadbf7 RD |
11585 | char *kwnames[] = { |
11586 | (char *) "data", NULL | |
11587 | }; | |
d14a1e28 | 11588 | |
36cadbf7 RD |
11589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail; |
11590 | arg1 = obj0; | |
d14a1e28 RD |
11591 | { |
11592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36cadbf7 | 11593 | result = (wxSound *)new_wxSound(arg1); |
d14a1e28 RD |
11594 | |
11595 | wxPyEndAllowThreads(__tstate); | |
11596 | if (PyErr_Occurred()) SWIG_fail; | |
11597 | } | |
15afbcd0 | 11598 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
11599 | return resultobj; |
11600 | fail: | |
4d5c3d91 RD |
11601 | return NULL; |
11602 | } | |
11603 | ||
11604 | ||
4d5c3d91 | 11605 | static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11606 | PyObject *resultobj; |
4d5c3d91 | 11607 | wxSound *arg1 = (wxSound *) 0 ; |
d14a1e28 RD |
11608 | PyObject * obj0 = 0 ; |
11609 | char *kwnames[] = { | |
11610 | (char *) "self", NULL | |
11611 | }; | |
11612 | ||
4d5c3d91 | 11613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
11614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11616 | { |
11617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11618 | delete arg1; | |
11619 | ||
11620 | wxPyEndAllowThreads(__tstate); | |
11621 | if (PyErr_Occurred()) SWIG_fail; | |
11622 | } | |
11623 | Py_INCREF(Py_None); resultobj = Py_None; | |
11624 | return resultobj; | |
11625 | fail: | |
11626 | return NULL; | |
11627 | } | |
11628 | ||
11629 | ||
36cadbf7 | 11630 | static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11631 | PyObject *resultobj; |
4d5c3d91 RD |
11632 | wxSound *arg1 = (wxSound *) 0 ; |
11633 | wxString *arg2 = 0 ; | |
d14a1e28 | 11634 | bool result; |
4d5c3d91 | 11635 | bool temp2 = False ; |
d14a1e28 | 11636 | PyObject * obj0 = 0 ; |
4d5c3d91 | 11637 | PyObject * obj1 = 0 ; |
36cadbf7 RD |
11638 | char *kwnames[] = { |
11639 | (char *) "self",(char *) "fileName", NULL | |
11640 | }; | |
d14a1e28 | 11641 | |
36cadbf7 | 11642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4d5c3d91 RD |
11645 | { |
11646 | arg2 = wxString_in_helper(obj1); | |
11647 | if (arg2 == NULL) SWIG_fail; | |
11648 | temp2 = True; | |
11649 | } | |
d14a1e28 RD |
11650 | { |
11651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36cadbf7 | 11652 | result = (bool)(arg1)->Create((wxString const &)*arg2); |
d14a1e28 RD |
11653 | |
11654 | wxPyEndAllowThreads(__tstate); | |
11655 | if (PyErr_Occurred()) SWIG_fail; | |
11656 | } | |
4f89f6a3 RD |
11657 | { |
11658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11659 | } | |
4d5c3d91 RD |
11660 | { |
11661 | if (temp2) | |
11662 | delete arg2; | |
11663 | } | |
d14a1e28 RD |
11664 | return resultobj; |
11665 | fail: | |
4d5c3d91 RD |
11666 | { |
11667 | if (temp2) | |
11668 | delete arg2; | |
11669 | } | |
d14a1e28 RD |
11670 | return NULL; |
11671 | } | |
11672 | ||
11673 | ||
36cadbf7 | 11674 | static PyObject *_wrap_Sound_CreateFromData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11675 | PyObject *resultobj; |
4d5c3d91 | 11676 | wxSound *arg1 = (wxSound *) 0 ; |
36cadbf7 | 11677 | PyObject *arg2 = (PyObject *) 0 ; |
d14a1e28 RD |
11678 | bool result; |
11679 | PyObject * obj0 = 0 ; | |
11680 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
11681 | char *kwnames[] = { |
11682 | (char *) "self",(char *) "data", NULL | |
11683 | }; | |
4d5c3d91 | 11684 | |
36cadbf7 | 11685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36cadbf7 | 11688 | arg2 = obj1; |
4d5c3d91 RD |
11689 | { |
11690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36cadbf7 | 11691 | result = (bool)wxSound_CreateFromData(arg1,arg2); |
4d5c3d91 RD |
11692 | |
11693 | wxPyEndAllowThreads(__tstate); | |
11694 | if (PyErr_Occurred()) SWIG_fail; | |
11695 | } | |
4f89f6a3 RD |
11696 | { |
11697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11698 | } | |
4d5c3d91 RD |
11699 | return resultobj; |
11700 | fail: | |
11701 | return NULL; | |
11702 | } | |
11703 | ||
11704 | ||
4d5c3d91 RD |
11705 | static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
11706 | PyObject *resultobj; | |
11707 | wxSound *arg1 = (wxSound *) 0 ; | |
11708 | bool result; | |
11709 | PyObject * obj0 = 0 ; | |
d14a1e28 | 11710 | char *kwnames[] = { |
4d5c3d91 | 11711 | (char *) "self", NULL |
d14a1e28 RD |
11712 | }; |
11713 | ||
4d5c3d91 | 11714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
11715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4d5c3d91 RD |
11717 | { |
11718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11719 | result = (bool)(arg1)->IsOk(); | |
11720 | ||
11721 | wxPyEndAllowThreads(__tstate); | |
11722 | if (PyErr_Occurred()) SWIG_fail; | |
11723 | } | |
4f89f6a3 RD |
11724 | { |
11725 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11726 | } | |
4d5c3d91 RD |
11727 | return resultobj; |
11728 | fail: | |
11729 | return NULL; | |
11730 | } | |
11731 | ||
11732 | ||
36cadbf7 | 11733 | static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args, PyObject *kwargs) { |
4d5c3d91 RD |
11734 | PyObject *resultobj; |
11735 | wxSound *arg1 = (wxSound *) 0 ; | |
11736 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11737 | bool result; | |
11738 | PyObject * obj0 = 0 ; | |
11739 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
11740 | char *kwnames[] = { |
11741 | (char *) "self",(char *) "flags", NULL | |
11742 | }; | |
4d5c3d91 | 11743 | |
36cadbf7 | 11744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11747 | if (obj1) { |
15afbcd0 RD |
11748 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); |
11749 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11750 | } |
4d5c3d91 RD |
11751 | { |
11752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11753 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
11754 | ||
11755 | wxPyEndAllowThreads(__tstate); | |
11756 | if (PyErr_Occurred()) SWIG_fail; | |
11757 | } | |
4f89f6a3 RD |
11758 | { |
11759 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11760 | } | |
4d5c3d91 RD |
11761 | return resultobj; |
11762 | fail: | |
11763 | return NULL; | |
11764 | } | |
11765 | ||
11766 | ||
36cadbf7 | 11767 | static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args, PyObject *kwargs) { |
4d5c3d91 RD |
11768 | PyObject *resultobj; |
11769 | wxString *arg1 = 0 ; | |
11770 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11771 | bool result; | |
11772 | bool temp1 = False ; | |
11773 | PyObject * obj0 = 0 ; | |
11774 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
11775 | char *kwnames[] = { |
11776 | (char *) "filename",(char *) "flags", NULL | |
11777 | }; | |
4d5c3d91 | 11778 | |
36cadbf7 | 11779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail; |
4d5c3d91 RD |
11780 | { |
11781 | arg1 = wxString_in_helper(obj0); | |
11782 | if (arg1 == NULL) SWIG_fail; | |
11783 | temp1 = True; | |
11784 | } | |
11785 | if (obj1) { | |
15afbcd0 RD |
11786 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); |
11787 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11788 | } |
11789 | { | |
11790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 11791 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); |
d14a1e28 RD |
11792 | |
11793 | wxPyEndAllowThreads(__tstate); | |
11794 | if (PyErr_Occurred()) SWIG_fail; | |
11795 | } | |
4f89f6a3 RD |
11796 | { |
11797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11798 | } | |
4d5c3d91 RD |
11799 | { |
11800 | if (temp1) | |
11801 | delete arg1; | |
11802 | } | |
d14a1e28 RD |
11803 | return resultobj; |
11804 | fail: | |
4d5c3d91 RD |
11805 | { |
11806 | if (temp1) | |
11807 | delete arg1; | |
11808 | } | |
d14a1e28 RD |
11809 | return NULL; |
11810 | } | |
11811 | ||
11812 | ||
4d5c3d91 RD |
11813 | static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { |
11814 | PyObject *resultobj; | |
11815 | char *kwnames[] = { | |
11816 | NULL | |
11817 | }; | |
11818 | ||
11819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
11820 | { | |
11821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11822 | wxSound::Stop(); | |
11823 | ||
11824 | wxPyEndAllowThreads(__tstate); | |
11825 | if (PyErr_Occurred()) SWIG_fail; | |
11826 | } | |
11827 | Py_INCREF(Py_None); resultobj = Py_None; | |
11828 | return resultobj; | |
11829 | fail: | |
11830 | return NULL; | |
11831 | } | |
11832 | ||
11833 | ||
11834 | static PyObject * Sound_swigregister(PyObject *self, PyObject *args) { | |
d14a1e28 RD |
11835 | PyObject *obj; |
11836 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4d5c3d91 | 11837 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); |
d14a1e28 RD |
11838 | Py_INCREF(obj); |
11839 | return Py_BuildValue((char *)""); | |
11840 | } | |
11841 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11842 | PyObject *resultobj; | |
11843 | wxString *arg1 = 0 ; | |
11844 | wxString *arg2 = 0 ; | |
11845 | wxString *arg3 = 0 ; | |
11846 | wxString *arg4 = 0 ; | |
11847 | wxFileTypeInfo *result; | |
e811c8ce RD |
11848 | bool temp1 = False ; |
11849 | bool temp2 = False ; | |
11850 | bool temp3 = False ; | |
11851 | bool temp4 = False ; | |
d14a1e28 RD |
11852 | PyObject * obj0 = 0 ; |
11853 | PyObject * obj1 = 0 ; | |
11854 | PyObject * obj2 = 0 ; | |
11855 | PyObject * obj3 = 0 ; | |
11856 | char *kwnames[] = { | |
11857 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
11858 | }; | |
11859 | ||
11860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11861 | { | |
11862 | arg1 = wxString_in_helper(obj0); | |
11863 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 11864 | temp1 = True; |
d14a1e28 RD |
11865 | } |
11866 | { | |
11867 | arg2 = wxString_in_helper(obj1); | |
11868 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11869 | temp2 = True; |
d14a1e28 RD |
11870 | } |
11871 | { | |
11872 | arg3 = wxString_in_helper(obj2); | |
11873 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11874 | temp3 = True; |
d14a1e28 RD |
11875 | } |
11876 | { | |
11877 | arg4 = wxString_in_helper(obj3); | |
11878 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 11879 | temp4 = True; |
d14a1e28 RD |
11880 | } |
11881 | { | |
11882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11883 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
11884 | ||
11885 | wxPyEndAllowThreads(__tstate); | |
11886 | if (PyErr_Occurred()) SWIG_fail; | |
11887 | } | |
15afbcd0 | 11888 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 RD |
11889 | { |
11890 | if (temp1) | |
11891 | delete arg1; | |
11892 | } | |
11893 | { | |
11894 | if (temp2) | |
11895 | delete arg2; | |
11896 | } | |
11897 | { | |
11898 | if (temp3) | |
11899 | delete arg3; | |
11900 | } | |
11901 | { | |
11902 | if (temp4) | |
11903 | delete arg4; | |
11904 | } | |
11905 | return resultobj; | |
11906 | fail: | |
11907 | { | |
11908 | if (temp1) | |
11909 | delete arg1; | |
11910 | } | |
11911 | { | |
11912 | if (temp2) | |
11913 | delete arg2; | |
11914 | } | |
11915 | { | |
11916 | if (temp3) | |
11917 | delete arg3; | |
11918 | } | |
11919 | { | |
11920 | if (temp4) | |
11921 | delete arg4; | |
11922 | } | |
11923 | return NULL; | |
11924 | } | |
11925 | ||
11926 | ||
11927 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11928 | PyObject *resultobj; | |
11929 | wxArrayString *arg1 = 0 ; | |
11930 | wxFileTypeInfo *result; | |
3adfb63b | 11931 | bool temp1 = False ; |
d14a1e28 RD |
11932 | PyObject * obj0 = 0 ; |
11933 | char *kwnames[] = { | |
11934 | (char *) "sArray", NULL | |
11935 | }; | |
11936 | ||
11937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
11938 | { | |
11939 | if (! PySequence_Check(obj0)) { | |
11940 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11941 | SWIG_fail; | |
11942 | } | |
11943 | arg1 = new wxArrayString; | |
3adfb63b | 11944 | temp1 = True; |
d14a1e28 RD |
11945 | int i, len=PySequence_Length(obj0); |
11946 | for (i=0; i<len; i++) { | |
11947 | PyObject* item = PySequence_GetItem(obj0, i); | |
11948 | #if wxUSE_UNICODE | |
11949 | PyObject* str = PyObject_Unicode(item); | |
11950 | #else | |
11951 | PyObject* str = PyObject_Str(item); | |
11952 | #endif | |
74a57fcd | 11953 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11954 | arg1->Add(Py2wxString(str)); |
11955 | Py_DECREF(item); | |
11956 | Py_DECREF(str); | |
11957 | } | |
11958 | } | |
11959 | { | |
11960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11961 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
11962 | ||
11963 | wxPyEndAllowThreads(__tstate); | |
11964 | if (PyErr_Occurred()) SWIG_fail; | |
11965 | } | |
15afbcd0 | 11966 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 | 11967 | { |
3adfb63b | 11968 | if (temp1) delete arg1; |
d14a1e28 RD |
11969 | } |
11970 | return resultobj; | |
11971 | fail: | |
11972 | { | |
3adfb63b | 11973 | if (temp1) delete arg1; |
d14a1e28 RD |
11974 | } |
11975 | return NULL; | |
11976 | } | |
11977 | ||
11978 | ||
11979 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11980 | PyObject *resultobj; | |
11981 | wxFileTypeInfo *result; | |
11982 | char *kwnames[] = { | |
11983 | NULL | |
11984 | }; | |
11985 | ||
11986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
11987 | { | |
11988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11989 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
11990 | ||
11991 | wxPyEndAllowThreads(__tstate); | |
11992 | if (PyErr_Occurred()) SWIG_fail; | |
11993 | } | |
15afbcd0 | 11994 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 RD |
11995 | return resultobj; |
11996 | fail: | |
11997 | return NULL; | |
11998 | } | |
11999 | ||
12000 | ||
12001 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12002 | PyObject *resultobj; | |
12003 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12004 | bool result; | |
12005 | PyObject * obj0 = 0 ; | |
12006 | char *kwnames[] = { | |
12007 | (char *) "self", NULL | |
12008 | }; | |
12009 | ||
12010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12013 | { |
12014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12015 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
12016 | ||
12017 | wxPyEndAllowThreads(__tstate); | |
12018 | if (PyErr_Occurred()) SWIG_fail; | |
12019 | } | |
4f89f6a3 RD |
12020 | { |
12021 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12022 | } | |
d14a1e28 RD |
12023 | return resultobj; |
12024 | fail: | |
12025 | return NULL; | |
12026 | } | |
12027 | ||
12028 | ||
12029 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12030 | PyObject *resultobj; | |
12031 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12032 | wxString *arg2 = 0 ; | |
12033 | int arg3 = (int) 0 ; | |
e811c8ce | 12034 | bool temp2 = False ; |
d14a1e28 RD |
12035 | PyObject * obj0 = 0 ; |
12036 | PyObject * obj1 = 0 ; | |
994141e6 | 12037 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12038 | char *kwnames[] = { |
12039 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
12040 | }; | |
12041 | ||
994141e6 | 12042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12045 | { |
12046 | arg2 = wxString_in_helper(obj1); | |
12047 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12048 | temp2 = True; |
d14a1e28 | 12049 | } |
994141e6 | 12050 | if (obj2) { |
15afbcd0 RD |
12051 | arg3 = (int) SWIG_AsInt(obj2); |
12052 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12053 | } |
d14a1e28 RD |
12054 | { |
12055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12056 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
12057 | ||
12058 | wxPyEndAllowThreads(__tstate); | |
12059 | if (PyErr_Occurred()) SWIG_fail; | |
12060 | } | |
12061 | Py_INCREF(Py_None); resultobj = Py_None; | |
12062 | { | |
12063 | if (temp2) | |
12064 | delete arg2; | |
12065 | } | |
12066 | return resultobj; | |
12067 | fail: | |
12068 | { | |
12069 | if (temp2) | |
12070 | delete arg2; | |
12071 | } | |
12072 | return NULL; | |
12073 | } | |
12074 | ||
12075 | ||
12076 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12077 | PyObject *resultobj; | |
12078 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12079 | wxString *arg2 = 0 ; | |
e811c8ce | 12080 | bool temp2 = False ; |
d14a1e28 RD |
12081 | PyObject * obj0 = 0 ; |
12082 | PyObject * obj1 = 0 ; | |
12083 | char *kwnames[] = { | |
12084 | (char *) "self",(char *) "shortDesc", NULL | |
12085 | }; | |
12086 | ||
12087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12090 | { |
12091 | arg2 = wxString_in_helper(obj1); | |
12092 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12093 | temp2 = True; |
d14a1e28 RD |
12094 | } |
12095 | { | |
12096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12097 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
12098 | ||
12099 | wxPyEndAllowThreads(__tstate); | |
12100 | if (PyErr_Occurred()) SWIG_fail; | |
12101 | } | |
12102 | Py_INCREF(Py_None); resultobj = Py_None; | |
12103 | { | |
12104 | if (temp2) | |
12105 | delete arg2; | |
12106 | } | |
12107 | return resultobj; | |
12108 | fail: | |
12109 | { | |
12110 | if (temp2) | |
12111 | delete arg2; | |
12112 | } | |
12113 | return NULL; | |
12114 | } | |
12115 | ||
12116 | ||
12117 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12118 | PyObject *resultobj; | |
12119 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12120 | wxString *result; | |
12121 | PyObject * obj0 = 0 ; | |
12122 | char *kwnames[] = { | |
12123 | (char *) "self", NULL | |
12124 | }; | |
12125 | ||
12126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12129 | { |
12130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12131 | { | |
12132 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
12133 | result = (wxString *) &_result_ref; | |
12134 | } | |
12135 | ||
12136 | wxPyEndAllowThreads(__tstate); | |
12137 | if (PyErr_Occurred()) SWIG_fail; | |
12138 | } | |
cc6dd355 RD |
12139 | { |
12140 | #if wxUSE_UNICODE | |
12141 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12142 | #else | |
12143 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12144 | #endif | |
12145 | } | |
d14a1e28 RD |
12146 | return resultobj; |
12147 | fail: | |
12148 | return NULL; | |
12149 | } | |
12150 | ||
12151 | ||
12152 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12153 | PyObject *resultobj; | |
12154 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12155 | wxString *result; | |
12156 | PyObject * obj0 = 0 ; | |
12157 | char *kwnames[] = { | |
12158 | (char *) "self", NULL | |
12159 | }; | |
12160 | ||
12161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12164 | { |
12165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12166 | { | |
12167 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
12168 | result = (wxString *) &_result_ref; | |
12169 | } | |
12170 | ||
12171 | wxPyEndAllowThreads(__tstate); | |
12172 | if (PyErr_Occurred()) SWIG_fail; | |
12173 | } | |
cc6dd355 RD |
12174 | { |
12175 | #if wxUSE_UNICODE | |
12176 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12177 | #else | |
12178 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12179 | #endif | |
12180 | } | |
d14a1e28 RD |
12181 | return resultobj; |
12182 | fail: | |
12183 | return NULL; | |
12184 | } | |
12185 | ||
12186 | ||
12187 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12188 | PyObject *resultobj; | |
12189 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12190 | wxString *result; | |
12191 | PyObject * obj0 = 0 ; | |
12192 | char *kwnames[] = { | |
12193 | (char *) "self", NULL | |
12194 | }; | |
12195 | ||
12196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12199 | { |
12200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12201 | { | |
12202 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
12203 | result = (wxString *) &_result_ref; | |
12204 | } | |
12205 | ||
12206 | wxPyEndAllowThreads(__tstate); | |
12207 | if (PyErr_Occurred()) SWIG_fail; | |
12208 | } | |
cc6dd355 RD |
12209 | { |
12210 | #if wxUSE_UNICODE | |
12211 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12212 | #else | |
12213 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12214 | #endif | |
12215 | } | |
d14a1e28 RD |
12216 | return resultobj; |
12217 | fail: | |
12218 | return NULL; | |
12219 | } | |
12220 | ||
12221 | ||
12222 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12223 | PyObject *resultobj; | |
12224 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12225 | wxString *result; | |
12226 | PyObject * obj0 = 0 ; | |
12227 | char *kwnames[] = { | |
12228 | (char *) "self", NULL | |
12229 | }; | |
12230 | ||
12231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12234 | { |
12235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12236 | { | |
12237 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
12238 | result = (wxString *) &_result_ref; | |
12239 | } | |
12240 | ||
12241 | wxPyEndAllowThreads(__tstate); | |
12242 | if (PyErr_Occurred()) SWIG_fail; | |
12243 | } | |
cc6dd355 RD |
12244 | { |
12245 | #if wxUSE_UNICODE | |
12246 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12247 | #else | |
12248 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12249 | #endif | |
12250 | } | |
d14a1e28 RD |
12251 | return resultobj; |
12252 | fail: | |
12253 | return NULL; | |
12254 | } | |
12255 | ||
12256 | ||
12257 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12258 | PyObject *resultobj; | |
12259 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12260 | wxString *result; | |
12261 | PyObject * obj0 = 0 ; | |
12262 | char *kwnames[] = { | |
12263 | (char *) "self", NULL | |
12264 | }; | |
12265 | ||
12266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12269 | { |
12270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12271 | { | |
12272 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
12273 | result = (wxString *) &_result_ref; | |
12274 | } | |
12275 | ||
12276 | wxPyEndAllowThreads(__tstate); | |
12277 | if (PyErr_Occurred()) SWIG_fail; | |
12278 | } | |
cc6dd355 RD |
12279 | { |
12280 | #if wxUSE_UNICODE | |
12281 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12282 | #else | |
12283 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12284 | #endif | |
12285 | } | |
d14a1e28 RD |
12286 | return resultobj; |
12287 | fail: | |
12288 | return NULL; | |
12289 | } | |
12290 | ||
12291 | ||
12292 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12293 | PyObject *resultobj; | |
12294 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12295 | wxArrayString *result; | |
12296 | PyObject * obj0 = 0 ; | |
12297 | char *kwnames[] = { | |
12298 | (char *) "self", NULL | |
12299 | }; | |
12300 | ||
12301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12304 | { |
12305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12306 | { | |
12307 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
12308 | result = (wxArrayString *) &_result_ref; | |
12309 | } | |
12310 | ||
12311 | wxPyEndAllowThreads(__tstate); | |
12312 | if (PyErr_Occurred()) SWIG_fail; | |
12313 | } | |
12314 | { | |
12315 | resultobj = wxArrayString2PyList_helper(*result); | |
12316 | } | |
12317 | return resultobj; | |
12318 | fail: | |
12319 | return NULL; | |
12320 | } | |
12321 | ||
12322 | ||
12323 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12324 | PyObject *resultobj; | |
12325 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12326 | int result; | |
12327 | PyObject * obj0 = 0 ; | |
12328 | char *kwnames[] = { | |
12329 | (char *) "self", NULL | |
12330 | }; | |
12331 | ||
12332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12335 | { |
12336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12337 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
12338 | ||
12339 | wxPyEndAllowThreads(__tstate); | |
12340 | if (PyErr_Occurred()) SWIG_fail; | |
12341 | } | |
15afbcd0 | 12342 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12343 | return resultobj; |
12344 | fail: | |
12345 | return NULL; | |
12346 | } | |
12347 | ||
12348 | ||
12349 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12350 | PyObject *resultobj; | |
12351 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12352 | wxString *result; | |
12353 | PyObject * obj0 = 0 ; | |
12354 | char *kwnames[] = { | |
12355 | (char *) "self", NULL | |
12356 | }; | |
12357 | ||
12358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12361 | { |
12362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12363 | { | |
12364 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
12365 | result = (wxString *) &_result_ref; | |
12366 | } | |
12367 | ||
12368 | wxPyEndAllowThreads(__tstate); | |
12369 | if (PyErr_Occurred()) SWIG_fail; | |
12370 | } | |
cc6dd355 RD |
12371 | { |
12372 | #if wxUSE_UNICODE | |
12373 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12374 | #else | |
12375 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12376 | #endif | |
12377 | } | |
d14a1e28 RD |
12378 | return resultobj; |
12379 | fail: | |
12380 | return NULL; | |
12381 | } | |
12382 | ||
12383 | ||
12384 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12385 | PyObject *resultobj; | |
12386 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12387 | int result; | |
12388 | PyObject * obj0 = 0 ; | |
12389 | char *kwnames[] = { | |
12390 | (char *) "self", NULL | |
12391 | }; | |
12392 | ||
12393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12396 | { |
12397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12398 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
12399 | ||
12400 | wxPyEndAllowThreads(__tstate); | |
12401 | if (PyErr_Occurred()) SWIG_fail; | |
12402 | } | |
15afbcd0 | 12403 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12404 | return resultobj; |
12405 | fail: | |
12406 | return NULL; | |
12407 | } | |
12408 | ||
12409 | ||
12410 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
12411 | PyObject *obj; | |
12412 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12413 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
12414 | Py_INCREF(obj); | |
12415 | return Py_BuildValue((char *)""); | |
12416 | } | |
12417 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12418 | PyObject *resultobj; | |
12419 | wxFileTypeInfo *arg1 = 0 ; | |
12420 | wxFileType *result; | |
12421 | PyObject * obj0 = 0 ; | |
12422 | char *kwnames[] = { | |
12423 | (char *) "ftInfo", NULL | |
12424 | }; | |
12425 | ||
12426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12428 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12429 | SWIG_fail; | |
d14a1e28 | 12430 | if (arg1 == NULL) { |
15afbcd0 RD |
12431 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12432 | SWIG_fail; | |
d14a1e28 RD |
12433 | } |
12434 | { | |
12435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12436 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
12437 | ||
12438 | wxPyEndAllowThreads(__tstate); | |
12439 | if (PyErr_Occurred()) SWIG_fail; | |
12440 | } | |
15afbcd0 | 12441 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
12442 | return resultobj; |
12443 | fail: | |
12444 | return NULL; | |
12445 | } | |
12446 | ||
12447 | ||
12448 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12449 | PyObject *resultobj; | |
12450 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12451 | PyObject * obj0 = 0 ; | |
12452 | char *kwnames[] = { | |
12453 | (char *) "self", NULL | |
12454 | }; | |
12455 | ||
12456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12459 | { |
12460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12461 | delete arg1; | |
12462 | ||
12463 | wxPyEndAllowThreads(__tstate); | |
12464 | if (PyErr_Occurred()) SWIG_fail; | |
12465 | } | |
12466 | Py_INCREF(Py_None); resultobj = Py_None; | |
12467 | return resultobj; | |
12468 | fail: | |
12469 | return NULL; | |
12470 | } | |
12471 | ||
12472 | ||
12473 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12474 | PyObject *resultobj; | |
12475 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12476 | PyObject *result; | |
12477 | PyObject * obj0 = 0 ; | |
12478 | char *kwnames[] = { | |
12479 | (char *) "self", NULL | |
12480 | }; | |
12481 | ||
12482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12485 | { |
12486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12487 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
12488 | ||
12489 | wxPyEndAllowThreads(__tstate); | |
12490 | if (PyErr_Occurred()) SWIG_fail; | |
12491 | } | |
12492 | resultobj = result; | |
12493 | return resultobj; | |
12494 | fail: | |
12495 | return NULL; | |
12496 | } | |
12497 | ||
12498 | ||
12499 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12500 | PyObject *resultobj; | |
12501 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12502 | PyObject *result; | |
12503 | PyObject * obj0 = 0 ; | |
12504 | char *kwnames[] = { | |
12505 | (char *) "self", NULL | |
12506 | }; | |
12507 | ||
12508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12511 | { |
12512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12513 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
12514 | ||
12515 | wxPyEndAllowThreads(__tstate); | |
12516 | if (PyErr_Occurred()) SWIG_fail; | |
12517 | } | |
12518 | resultobj = result; | |
12519 | return resultobj; | |
12520 | fail: | |
12521 | return NULL; | |
12522 | } | |
12523 | ||
12524 | ||
12525 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12526 | PyObject *resultobj; | |
12527 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12528 | PyObject *result; | |
12529 | PyObject * obj0 = 0 ; | |
12530 | char *kwnames[] = { | |
12531 | (char *) "self", NULL | |
12532 | }; | |
12533 | ||
12534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12537 | { |
12538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12539 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
12540 | ||
12541 | wxPyEndAllowThreads(__tstate); | |
12542 | if (PyErr_Occurred()) SWIG_fail; | |
12543 | } | |
12544 | resultobj = result; | |
12545 | return resultobj; | |
12546 | fail: | |
12547 | return NULL; | |
12548 | } | |
12549 | ||
12550 | ||
12551 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12552 | PyObject *resultobj; | |
12553 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12554 | wxIcon *result; | |
12555 | PyObject * obj0 = 0 ; | |
12556 | char *kwnames[] = { | |
12557 | (char *) "self", NULL | |
12558 | }; | |
12559 | ||
12560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12563 | { |
12564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12565 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
12566 | ||
12567 | wxPyEndAllowThreads(__tstate); | |
12568 | if (PyErr_Occurred()) SWIG_fail; | |
12569 | } | |
15afbcd0 | 12570 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
12571 | return resultobj; |
12572 | fail: | |
12573 | return NULL; | |
12574 | } | |
12575 | ||
12576 | ||
12577 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12578 | PyObject *resultobj; | |
12579 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12580 | PyObject *result; | |
12581 | PyObject * obj0 = 0 ; | |
12582 | char *kwnames[] = { | |
12583 | (char *) "self", NULL | |
12584 | }; | |
12585 | ||
12586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12589 | { |
12590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12591 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
12592 | ||
12593 | wxPyEndAllowThreads(__tstate); | |
12594 | if (PyErr_Occurred()) SWIG_fail; | |
12595 | } | |
12596 | resultobj = result; | |
12597 | return resultobj; | |
12598 | fail: | |
12599 | return NULL; | |
12600 | } | |
12601 | ||
12602 | ||
12603 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12604 | PyObject *resultobj; | |
12605 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12606 | PyObject *result; | |
12607 | PyObject * obj0 = 0 ; | |
12608 | char *kwnames[] = { | |
12609 | (char *) "self", NULL | |
12610 | }; | |
12611 | ||
12612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12615 | { |
12616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12617 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
12618 | ||
12619 | wxPyEndAllowThreads(__tstate); | |
12620 | if (PyErr_Occurred()) SWIG_fail; | |
12621 | } | |
12622 | resultobj = result; | |
12623 | return resultobj; | |
12624 | fail: | |
12625 | return NULL; | |
12626 | } | |
12627 | ||
12628 | ||
12629 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12630 | PyObject *resultobj; | |
12631 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12632 | wxString *arg2 = 0 ; | |
12633 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12634 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12635 | PyObject *result; | |
e811c8ce RD |
12636 | bool temp2 = False ; |
12637 | bool temp3 = False ; | |
d14a1e28 RD |
12638 | PyObject * obj0 = 0 ; |
12639 | PyObject * obj1 = 0 ; | |
12640 | PyObject * obj2 = 0 ; | |
12641 | char *kwnames[] = { | |
12642 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12643 | }; | |
12644 | ||
12645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12648 | { |
12649 | arg2 = wxString_in_helper(obj1); | |
12650 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12651 | temp2 = True; |
d14a1e28 RD |
12652 | } |
12653 | if (obj2) { | |
12654 | { | |
12655 | arg3 = wxString_in_helper(obj2); | |
12656 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12657 | temp3 = True; |
d14a1e28 RD |
12658 | } |
12659 | } | |
12660 | { | |
12661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12662 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12663 | ||
12664 | wxPyEndAllowThreads(__tstate); | |
12665 | if (PyErr_Occurred()) SWIG_fail; | |
12666 | } | |
12667 | resultobj = result; | |
12668 | { | |
12669 | if (temp2) | |
12670 | delete arg2; | |
12671 | } | |
12672 | { | |
12673 | if (temp3) | |
12674 | delete arg3; | |
12675 | } | |
12676 | return resultobj; | |
12677 | fail: | |
12678 | { | |
12679 | if (temp2) | |
12680 | delete arg2; | |
12681 | } | |
12682 | { | |
12683 | if (temp3) | |
12684 | delete arg3; | |
12685 | } | |
12686 | return NULL; | |
12687 | } | |
12688 | ||
12689 | ||
12690 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12691 | PyObject *resultobj; | |
12692 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12693 | wxString *arg2 = 0 ; | |
12694 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12695 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12696 | PyObject *result; | |
e811c8ce RD |
12697 | bool temp2 = False ; |
12698 | bool temp3 = False ; | |
d14a1e28 RD |
12699 | PyObject * obj0 = 0 ; |
12700 | PyObject * obj1 = 0 ; | |
12701 | PyObject * obj2 = 0 ; | |
12702 | char *kwnames[] = { | |
12703 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12704 | }; | |
12705 | ||
12706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12709 | { |
12710 | arg2 = wxString_in_helper(obj1); | |
12711 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12712 | temp2 = True; |
d14a1e28 RD |
12713 | } |
12714 | if (obj2) { | |
12715 | { | |
12716 | arg3 = wxString_in_helper(obj2); | |
12717 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12718 | temp3 = True; |
d14a1e28 RD |
12719 | } |
12720 | } | |
12721 | { | |
12722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12723 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12724 | ||
12725 | wxPyEndAllowThreads(__tstate); | |
12726 | if (PyErr_Occurred()) SWIG_fail; | |
12727 | } | |
12728 | resultobj = result; | |
12729 | { | |
12730 | if (temp2) | |
12731 | delete arg2; | |
12732 | } | |
12733 | { | |
12734 | if (temp3) | |
12735 | delete arg3; | |
12736 | } | |
12737 | return resultobj; | |
12738 | fail: | |
12739 | { | |
12740 | if (temp2) | |
12741 | delete arg2; | |
12742 | } | |
12743 | { | |
12744 | if (temp3) | |
12745 | delete arg3; | |
12746 | } | |
12747 | return NULL; | |
12748 | } | |
12749 | ||
12750 | ||
12751 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12752 | PyObject *resultobj; | |
12753 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12754 | wxString *arg2 = 0 ; | |
12755 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12756 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12757 | PyObject *result; | |
e811c8ce RD |
12758 | bool temp2 = False ; |
12759 | bool temp3 = False ; | |
d14a1e28 RD |
12760 | PyObject * obj0 = 0 ; |
12761 | PyObject * obj1 = 0 ; | |
12762 | PyObject * obj2 = 0 ; | |
12763 | char *kwnames[] = { | |
12764 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12765 | }; | |
12766 | ||
12767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12770 | { |
12771 | arg2 = wxString_in_helper(obj1); | |
12772 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12773 | temp2 = True; |
d14a1e28 RD |
12774 | } |
12775 | if (obj2) { | |
12776 | { | |
12777 | arg3 = wxString_in_helper(obj2); | |
12778 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12779 | temp3 = True; |
d14a1e28 RD |
12780 | } |
12781 | } | |
12782 | { | |
12783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12784 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12785 | ||
12786 | wxPyEndAllowThreads(__tstate); | |
12787 | if (PyErr_Occurred()) SWIG_fail; | |
12788 | } | |
12789 | resultobj = result; | |
12790 | { | |
12791 | if (temp2) | |
12792 | delete arg2; | |
12793 | } | |
12794 | { | |
12795 | if (temp3) | |
12796 | delete arg3; | |
12797 | } | |
12798 | return resultobj; | |
12799 | fail: | |
12800 | { | |
12801 | if (temp2) | |
12802 | delete arg2; | |
12803 | } | |
12804 | { | |
12805 | if (temp3) | |
12806 | delete arg3; | |
12807 | } | |
12808 | return NULL; | |
12809 | } | |
12810 | ||
12811 | ||
12812 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12813 | PyObject *resultobj; | |
12814 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12815 | wxString *arg2 = 0 ; | |
12816 | wxString *arg3 = 0 ; | |
e811c8ce | 12817 | bool arg4 = (bool) True ; |
d14a1e28 | 12818 | bool result; |
e811c8ce RD |
12819 | bool temp2 = False ; |
12820 | bool temp3 = False ; | |
d14a1e28 RD |
12821 | PyObject * obj0 = 0 ; |
12822 | PyObject * obj1 = 0 ; | |
12823 | PyObject * obj2 = 0 ; | |
12824 | PyObject * obj3 = 0 ; | |
12825 | char *kwnames[] = { | |
12826 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
12827 | }; | |
12828 | ||
12829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
12830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12832 | { |
12833 | arg2 = wxString_in_helper(obj1); | |
12834 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12835 | temp2 = True; |
d14a1e28 RD |
12836 | } |
12837 | { | |
12838 | arg3 = wxString_in_helper(obj2); | |
12839 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12840 | temp3 = True; |
d14a1e28 RD |
12841 | } |
12842 | if (obj3) { | |
15afbcd0 RD |
12843 | arg4 = (bool) SWIG_AsBool(obj3); |
12844 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12845 | } |
12846 | { | |
12847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12848 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
12849 | ||
12850 | wxPyEndAllowThreads(__tstate); | |
12851 | if (PyErr_Occurred()) SWIG_fail; | |
12852 | } | |
4f89f6a3 RD |
12853 | { |
12854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12855 | } | |
d14a1e28 RD |
12856 | { |
12857 | if (temp2) | |
12858 | delete arg2; | |
12859 | } | |
12860 | { | |
12861 | if (temp3) | |
12862 | delete arg3; | |
12863 | } | |
12864 | return resultobj; | |
12865 | fail: | |
12866 | { | |
12867 | if (temp2) | |
12868 | delete arg2; | |
12869 | } | |
12870 | { | |
12871 | if (temp3) | |
12872 | delete arg3; | |
12873 | } | |
12874 | return NULL; | |
12875 | } | |
12876 | ||
12877 | ||
12878 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12879 | PyObject *resultobj; | |
12880 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12881 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12882 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
12883 | int arg3 = (int) 0 ; | |
12884 | bool result; | |
e811c8ce | 12885 | bool temp2 = False ; |
d14a1e28 RD |
12886 | PyObject * obj0 = 0 ; |
12887 | PyObject * obj1 = 0 ; | |
994141e6 | 12888 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12889 | char *kwnames[] = { |
12890 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
12891 | }; | |
12892 | ||
994141e6 | 12893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12896 | if (obj1) { |
12897 | { | |
12898 | arg2 = wxString_in_helper(obj1); | |
12899 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12900 | temp2 = True; |
d14a1e28 RD |
12901 | } |
12902 | } | |
994141e6 | 12903 | if (obj2) { |
15afbcd0 RD |
12904 | arg3 = (int) SWIG_AsInt(obj2); |
12905 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12906 | } |
d14a1e28 RD |
12907 | { |
12908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12909 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
12910 | ||
12911 | wxPyEndAllowThreads(__tstate); | |
12912 | if (PyErr_Occurred()) SWIG_fail; | |
12913 | } | |
4f89f6a3 RD |
12914 | { |
12915 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12916 | } | |
d14a1e28 RD |
12917 | { |
12918 | if (temp2) | |
12919 | delete arg2; | |
12920 | } | |
12921 | return resultobj; | |
12922 | fail: | |
12923 | { | |
12924 | if (temp2) | |
12925 | delete arg2; | |
12926 | } | |
12927 | return NULL; | |
12928 | } | |
12929 | ||
12930 | ||
12931 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12932 | PyObject *resultobj; | |
12933 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12934 | bool result; | |
12935 | PyObject * obj0 = 0 ; | |
12936 | char *kwnames[] = { | |
12937 | (char *) "self", NULL | |
12938 | }; | |
12939 | ||
12940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12943 | { |
12944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12945 | result = (bool)(arg1)->Unassociate(); | |
12946 | ||
12947 | wxPyEndAllowThreads(__tstate); | |
12948 | if (PyErr_Occurred()) SWIG_fail; | |
12949 | } | |
4f89f6a3 RD |
12950 | { |
12951 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12952 | } | |
d14a1e28 RD |
12953 | return resultobj; |
12954 | fail: | |
12955 | return NULL; | |
12956 | } | |
12957 | ||
12958 | ||
12959 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12960 | PyObject *resultobj; | |
12961 | wxString *arg1 = 0 ; | |
12962 | wxString *arg2 = 0 ; | |
12963 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12964 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12965 | wxString result; | |
e811c8ce RD |
12966 | bool temp1 = False ; |
12967 | bool temp2 = False ; | |
12968 | bool temp3 = False ; | |
d14a1e28 RD |
12969 | PyObject * obj0 = 0 ; |
12970 | PyObject * obj1 = 0 ; | |
12971 | PyObject * obj2 = 0 ; | |
12972 | char *kwnames[] = { | |
12973 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
12974 | }; | |
12975 | ||
12976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12977 | { | |
12978 | arg1 = wxString_in_helper(obj0); | |
12979 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 12980 | temp1 = True; |
d14a1e28 RD |
12981 | } |
12982 | { | |
12983 | arg2 = wxString_in_helper(obj1); | |
12984 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12985 | temp2 = True; |
d14a1e28 RD |
12986 | } |
12987 | if (obj2) { | |
12988 | { | |
12989 | arg3 = wxString_in_helper(obj2); | |
12990 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12991 | temp3 = True; |
d14a1e28 RD |
12992 | } |
12993 | } | |
12994 | { | |
12995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12996 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12997 | ||
12998 | wxPyEndAllowThreads(__tstate); | |
12999 | if (PyErr_Occurred()) SWIG_fail; | |
13000 | } | |
13001 | { | |
13002 | #if wxUSE_UNICODE | |
13003 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13004 | #else | |
13005 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13006 | #endif | |
13007 | } | |
13008 | { | |
13009 | if (temp1) | |
13010 | delete arg1; | |
13011 | } | |
13012 | { | |
13013 | if (temp2) | |
13014 | delete arg2; | |
13015 | } | |
13016 | { | |
13017 | if (temp3) | |
13018 | delete arg3; | |
13019 | } | |
13020 | return resultobj; | |
13021 | fail: | |
13022 | { | |
13023 | if (temp1) | |
13024 | delete arg1; | |
13025 | } | |
13026 | { | |
13027 | if (temp2) | |
13028 | delete arg2; | |
13029 | } | |
13030 | { | |
13031 | if (temp3) | |
13032 | delete arg3; | |
13033 | } | |
13034 | return NULL; | |
13035 | } | |
13036 | ||
13037 | ||
13038 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
13039 | PyObject *obj; | |
13040 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13041 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
13042 | Py_INCREF(obj); | |
13043 | return Py_BuildValue((char *)""); | |
13044 | } | |
13045 | static int _wrap_TheMimeTypesManager_set(PyObject *_val) { | |
13046 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); | |
13047 | return 1; | |
13048 | } | |
13049 | ||
13050 | ||
13051 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
13052 | PyObject *pyobj; | |
13053 | ||
15afbcd0 | 13054 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); |
d14a1e28 RD |
13055 | return pyobj; |
13056 | } | |
13057 | ||
13058 | ||
13059 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13060 | PyObject *resultobj; | |
13061 | wxString *arg1 = 0 ; | |
13062 | wxString *arg2 = 0 ; | |
13063 | bool result; | |
e811c8ce RD |
13064 | bool temp1 = False ; |
13065 | bool temp2 = False ; | |
d14a1e28 RD |
13066 | PyObject * obj0 = 0 ; |
13067 | PyObject * obj1 = 0 ; | |
13068 | char *kwnames[] = { | |
13069 | (char *) "mimeType",(char *) "wildcard", NULL | |
13070 | }; | |
13071 | ||
13072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
13073 | { | |
13074 | arg1 = wxString_in_helper(obj0); | |
13075 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 13076 | temp1 = True; |
d14a1e28 RD |
13077 | } |
13078 | { | |
13079 | arg2 = wxString_in_helper(obj1); | |
13080 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13081 | temp2 = True; |
d14a1e28 RD |
13082 | } |
13083 | { | |
13084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13085 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
13086 | ||
13087 | wxPyEndAllowThreads(__tstate); | |
13088 | if (PyErr_Occurred()) SWIG_fail; | |
13089 | } | |
4f89f6a3 RD |
13090 | { |
13091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13092 | } | |
d14a1e28 RD |
13093 | { |
13094 | if (temp1) | |
13095 | delete arg1; | |
13096 | } | |
13097 | { | |
13098 | if (temp2) | |
13099 | delete arg2; | |
13100 | } | |
13101 | return resultobj; | |
13102 | fail: | |
13103 | { | |
13104 | if (temp1) | |
13105 | delete arg1; | |
13106 | } | |
13107 | { | |
13108 | if (temp2) | |
13109 | delete arg2; | |
13110 | } | |
13111 | return NULL; | |
13112 | } | |
13113 | ||
13114 | ||
13115 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13116 | PyObject *resultobj; | |
13117 | wxMimeTypesManager *result; | |
13118 | char *kwnames[] = { | |
13119 | NULL | |
13120 | }; | |
13121 | ||
13122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
13123 | { | |
13124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13125 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
13126 | ||
13127 | wxPyEndAllowThreads(__tstate); | |
13128 | if (PyErr_Occurred()) SWIG_fail; | |
13129 | } | |
15afbcd0 | 13130 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); |
d14a1e28 RD |
13131 | return resultobj; |
13132 | fail: | |
13133 | return NULL; | |
13134 | } | |
13135 | ||
13136 | ||
13137 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13138 | PyObject *resultobj; | |
13139 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13140 | int arg2 = (int) wxMAILCAP_ALL ; | |
13141 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13142 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
e811c8ce | 13143 | bool temp3 = False ; |
d14a1e28 | 13144 | PyObject * obj0 = 0 ; |
994141e6 | 13145 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13146 | PyObject * obj2 = 0 ; |
13147 | char *kwnames[] = { | |
13148 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
13149 | }; | |
13150 | ||
994141e6 | 13151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 13154 | if (obj1) { |
15afbcd0 RD |
13155 | arg2 = (int) SWIG_AsInt(obj1); |
13156 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13157 | } |
d14a1e28 RD |
13158 | if (obj2) { |
13159 | { | |
13160 | arg3 = wxString_in_helper(obj2); | |
13161 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 13162 | temp3 = True; |
d14a1e28 RD |
13163 | } |
13164 | } | |
13165 | { | |
13166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13167 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
13168 | ||
13169 | wxPyEndAllowThreads(__tstate); | |
13170 | if (PyErr_Occurred()) SWIG_fail; | |
13171 | } | |
13172 | Py_INCREF(Py_None); resultobj = Py_None; | |
13173 | { | |
13174 | if (temp3) | |
13175 | delete arg3; | |
13176 | } | |
13177 | return resultobj; | |
13178 | fail: | |
13179 | { | |
13180 | if (temp3) | |
13181 | delete arg3; | |
13182 | } | |
13183 | return NULL; | |
13184 | } | |
13185 | ||
13186 | ||
13187 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13188 | PyObject *resultobj; | |
13189 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13190 | PyObject * obj0 = 0 ; | |
13191 | char *kwnames[] = { | |
13192 | (char *) "self", NULL | |
13193 | }; | |
13194 | ||
13195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13198 | { |
13199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13200 | (arg1)->ClearData(); | |
13201 | ||
13202 | wxPyEndAllowThreads(__tstate); | |
13203 | if (PyErr_Occurred()) SWIG_fail; | |
13204 | } | |
13205 | Py_INCREF(Py_None); resultobj = Py_None; | |
13206 | return resultobj; | |
13207 | fail: | |
13208 | return NULL; | |
13209 | } | |
13210 | ||
13211 | ||
13212 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13213 | PyObject *resultobj; | |
13214 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13215 | wxString *arg2 = 0 ; | |
13216 | wxFileType *result; | |
e811c8ce | 13217 | bool temp2 = False ; |
d14a1e28 RD |
13218 | PyObject * obj0 = 0 ; |
13219 | PyObject * obj1 = 0 ; | |
13220 | char *kwnames[] = { | |
13221 | (char *) "self",(char *) "ext", NULL | |
13222 | }; | |
13223 | ||
13224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13227 | { |
13228 | arg2 = wxString_in_helper(obj1); | |
13229 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13230 | temp2 = True; |
d14a1e28 RD |
13231 | } |
13232 | { | |
13233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13234 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
13235 | ||
13236 | wxPyEndAllowThreads(__tstate); | |
13237 | if (PyErr_Occurred()) SWIG_fail; | |
13238 | } | |
15afbcd0 | 13239 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13240 | { |
13241 | if (temp2) | |
13242 | delete arg2; | |
13243 | } | |
13244 | return resultobj; | |
13245 | fail: | |
13246 | { | |
13247 | if (temp2) | |
13248 | delete arg2; | |
13249 | } | |
13250 | return NULL; | |
13251 | } | |
13252 | ||
13253 | ||
13254 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13255 | PyObject *resultobj; | |
13256 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13257 | wxString *arg2 = 0 ; | |
13258 | wxFileType *result; | |
e811c8ce | 13259 | bool temp2 = False ; |
d14a1e28 RD |
13260 | PyObject * obj0 = 0 ; |
13261 | PyObject * obj1 = 0 ; | |
13262 | char *kwnames[] = { | |
13263 | (char *) "self",(char *) "mimeType", NULL | |
13264 | }; | |
13265 | ||
13266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13269 | { |
13270 | arg2 = wxString_in_helper(obj1); | |
13271 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13272 | temp2 = True; |
d14a1e28 RD |
13273 | } |
13274 | { | |
13275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13276 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
13277 | ||
13278 | wxPyEndAllowThreads(__tstate); | |
13279 | if (PyErr_Occurred()) SWIG_fail; | |
13280 | } | |
15afbcd0 | 13281 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13282 | { |
13283 | if (temp2) | |
13284 | delete arg2; | |
13285 | } | |
13286 | return resultobj; | |
13287 | fail: | |
13288 | { | |
13289 | if (temp2) | |
13290 | delete arg2; | |
13291 | } | |
13292 | return NULL; | |
13293 | } | |
13294 | ||
13295 | ||
13296 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13297 | PyObject *resultobj; | |
13298 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13299 | wxString *arg2 = 0 ; | |
e811c8ce | 13300 | bool arg3 = (bool) False ; |
d14a1e28 | 13301 | bool result; |
e811c8ce | 13302 | bool temp2 = False ; |
d14a1e28 RD |
13303 | PyObject * obj0 = 0 ; |
13304 | PyObject * obj1 = 0 ; | |
13305 | PyObject * obj2 = 0 ; | |
13306 | char *kwnames[] = { | |
13307 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
13308 | }; | |
13309 | ||
13310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
13311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13313 | { |
13314 | arg2 = wxString_in_helper(obj1); | |
13315 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13316 | temp2 = True; |
d14a1e28 RD |
13317 | } |
13318 | if (obj2) { | |
15afbcd0 RD |
13319 | arg3 = (bool) SWIG_AsBool(obj2); |
13320 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13321 | } |
13322 | { | |
13323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13324 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
13325 | ||
13326 | wxPyEndAllowThreads(__tstate); | |
13327 | if (PyErr_Occurred()) SWIG_fail; | |
13328 | } | |
4f89f6a3 RD |
13329 | { |
13330 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13331 | } | |
d14a1e28 RD |
13332 | { |
13333 | if (temp2) | |
13334 | delete arg2; | |
13335 | } | |
13336 | return resultobj; | |
13337 | fail: | |
13338 | { | |
13339 | if (temp2) | |
13340 | delete arg2; | |
13341 | } | |
13342 | return NULL; | |
13343 | } | |
13344 | ||
13345 | ||
13346 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13347 | PyObject *resultobj; | |
13348 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13349 | wxString *arg2 = 0 ; | |
13350 | bool result; | |
e811c8ce | 13351 | bool temp2 = False ; |
d14a1e28 RD |
13352 | PyObject * obj0 = 0 ; |
13353 | PyObject * obj1 = 0 ; | |
13354 | char *kwnames[] = { | |
13355 | (char *) "self",(char *) "filename", NULL | |
13356 | }; | |
13357 | ||
13358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13361 | { |
13362 | arg2 = wxString_in_helper(obj1); | |
13363 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13364 | temp2 = True; |
d14a1e28 RD |
13365 | } |
13366 | { | |
13367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13368 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
13369 | ||
13370 | wxPyEndAllowThreads(__tstate); | |
13371 | if (PyErr_Occurred()) SWIG_fail; | |
13372 | } | |
4f89f6a3 RD |
13373 | { |
13374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13375 | } | |
d14a1e28 RD |
13376 | { |
13377 | if (temp2) | |
13378 | delete arg2; | |
13379 | } | |
13380 | return resultobj; | |
13381 | fail: | |
13382 | { | |
13383 | if (temp2) | |
13384 | delete arg2; | |
13385 | } | |
13386 | return NULL; | |
13387 | } | |
13388 | ||
13389 | ||
13390 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13391 | PyObject *resultobj; | |
13392 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13393 | PyObject *result; | |
13394 | PyObject * obj0 = 0 ; | |
13395 | char *kwnames[] = { | |
13396 | (char *) "self", NULL | |
13397 | }; | |
13398 | ||
13399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13402 | { |
13403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13404 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
13405 | ||
13406 | wxPyEndAllowThreads(__tstate); | |
13407 | if (PyErr_Occurred()) SWIG_fail; | |
13408 | } | |
13409 | resultobj = result; | |
13410 | return resultobj; | |
13411 | fail: | |
13412 | return NULL; | |
13413 | } | |
13414 | ||
13415 | ||
13416 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13417 | PyObject *resultobj; | |
13418 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13419 | wxFileTypeInfo *arg2 = 0 ; | |
13420 | PyObject * obj0 = 0 ; | |
13421 | PyObject * obj1 = 0 ; | |
13422 | char *kwnames[] = { | |
13423 | (char *) "self",(char *) "ft", NULL | |
13424 | }; | |
13425 | ||
13426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13429 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13430 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13431 | SWIG_fail; | |
d14a1e28 | 13432 | if (arg2 == NULL) { |
15afbcd0 RD |
13433 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13434 | SWIG_fail; | |
d14a1e28 RD |
13435 | } |
13436 | { | |
13437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13438 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
13439 | ||
13440 | wxPyEndAllowThreads(__tstate); | |
13441 | if (PyErr_Occurred()) SWIG_fail; | |
13442 | } | |
13443 | Py_INCREF(Py_None); resultobj = Py_None; | |
13444 | return resultobj; | |
13445 | fail: | |
13446 | return NULL; | |
13447 | } | |
13448 | ||
13449 | ||
13450 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13451 | PyObject *resultobj; | |
13452 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13453 | wxFileTypeInfo *arg2 = 0 ; | |
13454 | wxFileType *result; | |
13455 | PyObject * obj0 = 0 ; | |
13456 | PyObject * obj1 = 0 ; | |
13457 | char *kwnames[] = { | |
13458 | (char *) "self",(char *) "ftInfo", NULL | |
13459 | }; | |
13460 | ||
13461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13464 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13465 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13466 | SWIG_fail; | |
d14a1e28 | 13467 | if (arg2 == NULL) { |
15afbcd0 RD |
13468 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13469 | SWIG_fail; | |
d14a1e28 RD |
13470 | } |
13471 | { | |
13472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13473 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
13474 | ||
13475 | wxPyEndAllowThreads(__tstate); | |
13476 | if (PyErr_Occurred()) SWIG_fail; | |
13477 | } | |
15afbcd0 | 13478 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13479 | return resultobj; |
13480 | fail: | |
13481 | return NULL; | |
13482 | } | |
13483 | ||
13484 | ||
13485 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13486 | PyObject *resultobj; | |
13487 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13488 | wxFileType *arg2 = (wxFileType *) 0 ; | |
13489 | bool result; | |
13490 | PyObject * obj0 = 0 ; | |
13491 | PyObject * obj1 = 0 ; | |
13492 | char *kwnames[] = { | |
13493 | (char *) "self",(char *) "ft", NULL | |
13494 | }; | |
13495 | ||
13496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13499 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType, | |
13500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13501 | { |
13502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13503 | result = (bool)(arg1)->Unassociate(arg2); | |
13504 | ||
13505 | wxPyEndAllowThreads(__tstate); | |
13506 | if (PyErr_Occurred()) SWIG_fail; | |
13507 | } | |
4f89f6a3 RD |
13508 | { |
13509 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13510 | } | |
d14a1e28 RD |
13511 | return resultobj; |
13512 | fail: | |
13513 | return NULL; | |
13514 | } | |
13515 | ||
13516 | ||
13517 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13518 | PyObject *resultobj; | |
13519 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13520 | PyObject * obj0 = 0 ; | |
13521 | char *kwnames[] = { | |
13522 | (char *) "self", NULL | |
13523 | }; | |
13524 | ||
13525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13528 | { |
13529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13530 | delete arg1; | |
13531 | ||
13532 | wxPyEndAllowThreads(__tstate); | |
13533 | if (PyErr_Occurred()) SWIG_fail; | |
13534 | } | |
13535 | Py_INCREF(Py_None); resultobj = Py_None; | |
13536 | return resultobj; | |
13537 | fail: | |
13538 | return NULL; | |
13539 | } | |
13540 | ||
13541 | ||
13542 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
13543 | PyObject *obj; | |
13544 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13545 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
13546 | Py_INCREF(obj); | |
13547 | return Py_BuildValue((char *)""); | |
13548 | } | |
13549 | static int _wrap_ART_TOOLBAR_set(PyObject *_val) { | |
13550 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); | |
13551 | return 1; | |
13552 | } | |
13553 | ||
13554 | ||
13555 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
13556 | PyObject *pyobj; | |
13557 | ||
13558 | { | |
13559 | #if wxUSE_UNICODE | |
13560 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13561 | #else | |
13562 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13563 | #endif | |
13564 | } | |
13565 | return pyobj; | |
13566 | } | |
13567 | ||
13568 | ||
13569 | static int _wrap_ART_MENU_set(PyObject *_val) { | |
13570 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); | |
13571 | return 1; | |
13572 | } | |
13573 | ||
13574 | ||
13575 | static PyObject *_wrap_ART_MENU_get() { | |
13576 | PyObject *pyobj; | |
13577 | ||
13578 | { | |
13579 | #if wxUSE_UNICODE | |
13580 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13581 | #else | |
13582 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13583 | #endif | |
13584 | } | |
13585 | return pyobj; | |
13586 | } | |
13587 | ||
13588 | ||
13589 | static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { | |
13590 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); | |
13591 | return 1; | |
13592 | } | |
13593 | ||
13594 | ||
13595 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
13596 | PyObject *pyobj; | |
13597 | ||
13598 | { | |
13599 | #if wxUSE_UNICODE | |
13600 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13601 | #else | |
13602 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13603 | #endif | |
13604 | } | |
13605 | return pyobj; | |
13606 | } | |
13607 | ||
13608 | ||
13609 | static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { | |
13610 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); | |
13611 | return 1; | |
13612 | } | |
13613 | ||
13614 | ||
13615 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
13616 | PyObject *pyobj; | |
13617 | ||
13618 | { | |
13619 | #if wxUSE_UNICODE | |
13620 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13621 | #else | |
13622 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13623 | #endif | |
13624 | } | |
13625 | return pyobj; | |
13626 | } | |
13627 | ||
13628 | ||
13629 | static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { | |
13630 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); | |
13631 | return 1; | |
13632 | } | |
13633 | ||
13634 | ||
13635 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
13636 | PyObject *pyobj; | |
13637 | ||
13638 | { | |
13639 | #if wxUSE_UNICODE | |
13640 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13641 | #else | |
13642 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13643 | #endif | |
13644 | } | |
13645 | return pyobj; | |
13646 | } | |
13647 | ||
13648 | ||
13649 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { | |
13650 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); | |
13651 | return 1; | |
13652 | } | |
13653 | ||
13654 | ||
13655 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
13656 | PyObject *pyobj; | |
13657 | ||
13658 | { | |
13659 | #if wxUSE_UNICODE | |
13660 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13661 | #else | |
13662 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13663 | #endif | |
13664 | } | |
13665 | return pyobj; | |
13666 | } | |
13667 | ||
13668 | ||
13669 | static int _wrap_ART_OTHER_set(PyObject *_val) { | |
13670 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); | |
13671 | return 1; | |
13672 | } | |
13673 | ||
13674 | ||
13675 | static PyObject *_wrap_ART_OTHER_get() { | |
13676 | PyObject *pyobj; | |
13677 | ||
13678 | { | |
13679 | #if wxUSE_UNICODE | |
13680 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13681 | #else | |
13682 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13683 | #endif | |
13684 | } | |
13685 | return pyobj; | |
13686 | } | |
13687 | ||
13688 | ||
13689 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { | |
13690 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); | |
13691 | return 1; | |
13692 | } | |
13693 | ||
13694 | ||
13695 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
13696 | PyObject *pyobj; | |
13697 | ||
13698 | { | |
13699 | #if wxUSE_UNICODE | |
13700 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13701 | #else | |
13702 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13703 | #endif | |
13704 | } | |
13705 | return pyobj; | |
13706 | } | |
13707 | ||
13708 | ||
13709 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { | |
13710 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); | |
13711 | return 1; | |
13712 | } | |
13713 | ||
13714 | ||
13715 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
13716 | PyObject *pyobj; | |
13717 | ||
13718 | { | |
13719 | #if wxUSE_UNICODE | |
13720 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13721 | #else | |
13722 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13723 | #endif | |
13724 | } | |
13725 | return pyobj; | |
13726 | } | |
13727 | ||
13728 | ||
13729 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { | |
13730 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); | |
13731 | return 1; | |
13732 | } | |
13733 | ||
13734 | ||
13735 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
13736 | PyObject *pyobj; | |
13737 | ||
13738 | { | |
13739 | #if wxUSE_UNICODE | |
13740 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13741 | #else | |
13742 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13743 | #endif | |
13744 | } | |
13745 | return pyobj; | |
13746 | } | |
13747 | ||
13748 | ||
13749 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { | |
13750 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); | |
13751 | return 1; | |
13752 | } | |
13753 | ||
13754 | ||
13755 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
13756 | PyObject *pyobj; | |
13757 | ||
13758 | { | |
13759 | #if wxUSE_UNICODE | |
13760 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13761 | #else | |
13762 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13763 | #endif | |
13764 | } | |
13765 | return pyobj; | |
13766 | } | |
13767 | ||
13768 | ||
13769 | static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { | |
13770 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); | |
13771 | return 1; | |
13772 | } | |
13773 | ||
13774 | ||
13775 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
13776 | PyObject *pyobj; | |
13777 | ||
13778 | { | |
13779 | #if wxUSE_UNICODE | |
13780 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13781 | #else | |
13782 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13783 | #endif | |
13784 | } | |
13785 | return pyobj; | |
13786 | } | |
13787 | ||
13788 | ||
13789 | static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { | |
13790 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); | |
13791 | return 1; | |
13792 | } | |
13793 | ||
13794 | ||
13795 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
13796 | PyObject *pyobj; | |
13797 | ||
13798 | { | |
13799 | #if wxUSE_UNICODE | |
13800 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13801 | #else | |
13802 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13803 | #endif | |
13804 | } | |
13805 | return pyobj; | |
13806 | } | |
13807 | ||
13808 | ||
13809 | static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { | |
13810 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); | |
13811 | return 1; | |
13812 | } | |
13813 | ||
13814 | ||
13815 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
13816 | PyObject *pyobj; | |
13817 | ||
13818 | { | |
13819 | #if wxUSE_UNICODE | |
13820 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13821 | #else | |
13822 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13823 | #endif | |
13824 | } | |
13825 | return pyobj; | |
13826 | } | |
13827 | ||
13828 | ||
13829 | static int _wrap_ART_GO_BACK_set(PyObject *_val) { | |
13830 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); | |
13831 | return 1; | |
13832 | } | |
13833 | ||
13834 | ||
13835 | static PyObject *_wrap_ART_GO_BACK_get() { | |
13836 | PyObject *pyobj; | |
13837 | ||
13838 | { | |
13839 | #if wxUSE_UNICODE | |
13840 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13841 | #else | |
13842 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13843 | #endif | |
13844 | } | |
13845 | return pyobj; | |
13846 | } | |
13847 | ||
13848 | ||
13849 | static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { | |
13850 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); | |
13851 | return 1; | |
13852 | } | |
13853 | ||
13854 | ||
13855 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
13856 | PyObject *pyobj; | |
13857 | ||
13858 | { | |
13859 | #if wxUSE_UNICODE | |
13860 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13861 | #else | |
13862 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13863 | #endif | |
13864 | } | |
13865 | return pyobj; | |
13866 | } | |
13867 | ||
13868 | ||
13869 | static int _wrap_ART_GO_UP_set(PyObject *_val) { | |
13870 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); | |
13871 | return 1; | |
13872 | } | |
13873 | ||
13874 | ||
13875 | static PyObject *_wrap_ART_GO_UP_get() { | |
13876 | PyObject *pyobj; | |
13877 | ||
13878 | { | |
13879 | #if wxUSE_UNICODE | |
13880 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13881 | #else | |
13882 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13883 | #endif | |
13884 | } | |
13885 | return pyobj; | |
13886 | } | |
13887 | ||
13888 | ||
13889 | static int _wrap_ART_GO_DOWN_set(PyObject *_val) { | |
13890 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); | |
13891 | return 1; | |
13892 | } | |
13893 | ||
13894 | ||
13895 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
13896 | PyObject *pyobj; | |
13897 | ||
13898 | { | |
13899 | #if wxUSE_UNICODE | |
13900 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13901 | #else | |
13902 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13903 | #endif | |
13904 | } | |
13905 | return pyobj; | |
13906 | } | |
13907 | ||
13908 | ||
13909 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { | |
13910 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); | |
13911 | return 1; | |
13912 | } | |
13913 | ||
13914 | ||
13915 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
13916 | PyObject *pyobj; | |
13917 | ||
13918 | { | |
13919 | #if wxUSE_UNICODE | |
13920 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13921 | #else | |
13922 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13923 | #endif | |
13924 | } | |
13925 | return pyobj; | |
13926 | } | |
13927 | ||
13928 | ||
13929 | static int _wrap_ART_GO_HOME_set(PyObject *_val) { | |
13930 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); | |
13931 | return 1; | |
13932 | } | |
13933 | ||
13934 | ||
13935 | static PyObject *_wrap_ART_GO_HOME_get() { | |
13936 | PyObject *pyobj; | |
13937 | ||
13938 | { | |
13939 | #if wxUSE_UNICODE | |
13940 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13941 | #else | |
13942 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13943 | #endif | |
13944 | } | |
13945 | return pyobj; | |
13946 | } | |
13947 | ||
13948 | ||
13949 | static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { | |
13950 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); | |
13951 | return 1; | |
13952 | } | |
13953 | ||
13954 | ||
13955 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
13956 | PyObject *pyobj; | |
13957 | ||
13958 | { | |
13959 | #if wxUSE_UNICODE | |
13960 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13961 | #else | |
13962 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13963 | #endif | |
13964 | } | |
13965 | return pyobj; | |
13966 | } | |
13967 | ||
13968 | ||
13969 | static int _wrap_ART_PRINT_set(PyObject *_val) { | |
13970 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); | |
13971 | return 1; | |
13972 | } | |
13973 | ||
13974 | ||
13975 | static PyObject *_wrap_ART_PRINT_get() { | |
13976 | PyObject *pyobj; | |
13977 | ||
13978 | { | |
13979 | #if wxUSE_UNICODE | |
13980 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13981 | #else | |
13982 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13983 | #endif | |
13984 | } | |
13985 | return pyobj; | |
13986 | } | |
13987 | ||
13988 | ||
13989 | static int _wrap_ART_HELP_set(PyObject *_val) { | |
13990 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); | |
13991 | return 1; | |
13992 | } | |
13993 | ||
13994 | ||
13995 | static PyObject *_wrap_ART_HELP_get() { | |
13996 | PyObject *pyobj; | |
13997 | ||
13998 | { | |
13999 | #if wxUSE_UNICODE | |
14000 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14001 | #else | |
14002 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14003 | #endif | |
14004 | } | |
14005 | return pyobj; | |
14006 | } | |
14007 | ||
14008 | ||
14009 | static int _wrap_ART_TIP_set(PyObject *_val) { | |
14010 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); | |
14011 | return 1; | |
14012 | } | |
14013 | ||
14014 | ||
14015 | static PyObject *_wrap_ART_TIP_get() { | |
14016 | PyObject *pyobj; | |
14017 | ||
14018 | { | |
14019 | #if wxUSE_UNICODE | |
14020 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14021 | #else | |
14022 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14023 | #endif | |
14024 | } | |
14025 | return pyobj; | |
14026 | } | |
14027 | ||
14028 | ||
14029 | static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { | |
14030 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); | |
14031 | return 1; | |
14032 | } | |
14033 | ||
14034 | ||
14035 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
14036 | PyObject *pyobj; | |
14037 | ||
14038 | { | |
14039 | #if wxUSE_UNICODE | |
14040 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14041 | #else | |
14042 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14043 | #endif | |
14044 | } | |
14045 | return pyobj; | |
14046 | } | |
14047 | ||
14048 | ||
14049 | static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { | |
14050 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); | |
14051 | return 1; | |
14052 | } | |
14053 | ||
14054 | ||
14055 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
14056 | PyObject *pyobj; | |
14057 | ||
14058 | { | |
14059 | #if wxUSE_UNICODE | |
14060 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14061 | #else | |
14062 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14063 | #endif | |
14064 | } | |
14065 | return pyobj; | |
14066 | } | |
14067 | ||
14068 | ||
14069 | static int _wrap_ART_NEW_DIR_set(PyObject *_val) { | |
14070 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); | |
14071 | return 1; | |
14072 | } | |
14073 | ||
14074 | ||
14075 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
14076 | PyObject *pyobj; | |
14077 | ||
14078 | { | |
14079 | #if wxUSE_UNICODE | |
14080 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14081 | #else | |
14082 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14083 | #endif | |
14084 | } | |
14085 | return pyobj; | |
14086 | } | |
14087 | ||
14088 | ||
14089 | static int _wrap_ART_FOLDER_set(PyObject *_val) { | |
14090 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); | |
14091 | return 1; | |
14092 | } | |
14093 | ||
14094 | ||
14095 | static PyObject *_wrap_ART_FOLDER_get() { | |
14096 | PyObject *pyobj; | |
14097 | ||
14098 | { | |
14099 | #if wxUSE_UNICODE | |
14100 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14101 | #else | |
14102 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14103 | #endif | |
14104 | } | |
14105 | return pyobj; | |
14106 | } | |
14107 | ||
14108 | ||
14109 | static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { | |
14110 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); | |
14111 | return 1; | |
14112 | } | |
14113 | ||
14114 | ||
14115 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
14116 | PyObject *pyobj; | |
14117 | ||
14118 | { | |
14119 | #if wxUSE_UNICODE | |
14120 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14121 | #else | |
14122 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14123 | #endif | |
14124 | } | |
14125 | return pyobj; | |
14126 | } | |
14127 | ||
14128 | ||
14129 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { | |
14130 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); | |
14131 | return 1; | |
14132 | } | |
14133 | ||
14134 | ||
14135 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
14136 | PyObject *pyobj; | |
14137 | ||
14138 | { | |
14139 | #if wxUSE_UNICODE | |
14140 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14141 | #else | |
14142 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14143 | #endif | |
14144 | } | |
14145 | return pyobj; | |
14146 | } | |
14147 | ||
14148 | ||
14149 | static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { | |
14150 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); | |
14151 | return 1; | |
14152 | } | |
14153 | ||
14154 | ||
14155 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
14156 | PyObject *pyobj; | |
14157 | ||
14158 | { | |
14159 | #if wxUSE_UNICODE | |
14160 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14161 | #else | |
14162 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14163 | #endif | |
14164 | } | |
14165 | return pyobj; | |
14166 | } | |
14167 | ||
14168 | ||
14169 | static int _wrap_ART_TICK_MARK_set(PyObject *_val) { | |
14170 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); | |
14171 | return 1; | |
14172 | } | |
14173 | ||
14174 | ||
14175 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
14176 | PyObject *pyobj; | |
14177 | ||
14178 | { | |
14179 | #if wxUSE_UNICODE | |
14180 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14181 | #else | |
14182 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14183 | #endif | |
14184 | } | |
14185 | return pyobj; | |
14186 | } | |
14187 | ||
14188 | ||
14189 | static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { | |
14190 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); | |
14191 | return 1; | |
14192 | } | |
14193 | ||
14194 | ||
14195 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
14196 | PyObject *pyobj; | |
14197 | ||
14198 | { | |
14199 | #if wxUSE_UNICODE | |
14200 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14201 | #else | |
14202 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14203 | #endif | |
14204 | } | |
14205 | return pyobj; | |
14206 | } | |
14207 | ||
14208 | ||
14209 | static int _wrap_ART_ERROR_set(PyObject *_val) { | |
14210 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); | |
14211 | return 1; | |
14212 | } | |
14213 | ||
14214 | ||
14215 | static PyObject *_wrap_ART_ERROR_get() { | |
14216 | PyObject *pyobj; | |
14217 | ||
14218 | { | |
14219 | #if wxUSE_UNICODE | |
14220 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14221 | #else | |
14222 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14223 | #endif | |
14224 | } | |
14225 | return pyobj; | |
14226 | } | |
14227 | ||
14228 | ||
14229 | static int _wrap_ART_QUESTION_set(PyObject *_val) { | |
14230 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); | |
14231 | return 1; | |
14232 | } | |
14233 | ||
14234 | ||
14235 | static PyObject *_wrap_ART_QUESTION_get() { | |
14236 | PyObject *pyobj; | |
14237 | ||
14238 | { | |
14239 | #if wxUSE_UNICODE | |
14240 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14241 | #else | |
14242 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14243 | #endif | |
14244 | } | |
14245 | return pyobj; | |
14246 | } | |
14247 | ||
14248 | ||
14249 | static int _wrap_ART_WARNING_set(PyObject *_val) { | |
14250 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); | |
14251 | return 1; | |
14252 | } | |
14253 | ||
14254 | ||
14255 | static PyObject *_wrap_ART_WARNING_get() { | |
14256 | PyObject *pyobj; | |
14257 | ||
14258 | { | |
14259 | #if wxUSE_UNICODE | |
14260 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14261 | #else | |
14262 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14263 | #endif | |
14264 | } | |
14265 | return pyobj; | |
14266 | } | |
14267 | ||
14268 | ||
14269 | static int _wrap_ART_INFORMATION_set(PyObject *_val) { | |
14270 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); | |
14271 | return 1; | |
14272 | } | |
14273 | ||
14274 | ||
14275 | static PyObject *_wrap_ART_INFORMATION_get() { | |
14276 | PyObject *pyobj; | |
14277 | ||
14278 | { | |
14279 | #if wxUSE_UNICODE | |
14280 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14281 | #else | |
14282 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14283 | #endif | |
14284 | } | |
14285 | return pyobj; | |
14286 | } | |
14287 | ||
14288 | ||
14289 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { | |
14290 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); | |
14291 | return 1; | |
14292 | } | |
14293 | ||
14294 | ||
14295 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
14296 | PyObject *pyobj; | |
14297 | ||
14298 | { | |
14299 | #if wxUSE_UNICODE | |
14300 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14301 | #else | |
14302 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14303 | #endif | |
14304 | } | |
14305 | return pyobj; | |
14306 | } | |
14307 | ||
14308 | ||
14309 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14310 | PyObject *resultobj; | |
14311 | wxPyArtProvider *result; | |
14312 | char *kwnames[] = { | |
14313 | NULL | |
14314 | }; | |
14315 | ||
14316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
14317 | { | |
14318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14319 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
14320 | ||
14321 | wxPyEndAllowThreads(__tstate); | |
14322 | if (PyErr_Occurred()) SWIG_fail; | |
14323 | } | |
15afbcd0 | 14324 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); |
d14a1e28 RD |
14325 | return resultobj; |
14326 | fail: | |
14327 | return NULL; | |
14328 | } | |
14329 | ||
14330 | ||
d14a1e28 RD |
14331 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
14332 | PyObject *resultobj; | |
14333 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14334 | PyObject *arg2 = (PyObject *) 0 ; | |
14335 | PyObject *arg3 = (PyObject *) 0 ; | |
14336 | PyObject * obj0 = 0 ; | |
14337 | PyObject * obj1 = 0 ; | |
14338 | PyObject * obj2 = 0 ; | |
14339 | char *kwnames[] = { | |
14340 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14341 | }; | |
14342 | ||
14343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
14344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14346 | arg2 = obj1; |
14347 | arg3 = obj2; | |
14348 | { | |
14349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14350 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14351 | ||
14352 | wxPyEndAllowThreads(__tstate); | |
14353 | if (PyErr_Occurred()) SWIG_fail; | |
14354 | } | |
14355 | Py_INCREF(Py_None); resultobj = Py_None; | |
14356 | return resultobj; | |
14357 | fail: | |
14358 | return NULL; | |
14359 | } | |
14360 | ||
14361 | ||
14362 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14363 | PyObject *resultobj; | |
14364 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14365 | PyObject * obj0 = 0 ; | |
14366 | char *kwnames[] = { | |
14367 | (char *) "provider", NULL | |
14368 | }; | |
14369 | ||
14370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14373 | { |
14374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14375 | wxPyArtProvider::PushProvider(arg1); | |
14376 | ||
14377 | wxPyEndAllowThreads(__tstate); | |
14378 | if (PyErr_Occurred()) SWIG_fail; | |
14379 | } | |
14380 | Py_INCREF(Py_None); resultobj = Py_None; | |
14381 | return resultobj; | |
14382 | fail: | |
14383 | return NULL; | |
14384 | } | |
14385 | ||
14386 | ||
14387 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14388 | PyObject *resultobj; | |
14389 | bool result; | |
14390 | char *kwnames[] = { | |
14391 | NULL | |
14392 | }; | |
14393 | ||
14394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
14395 | { | |
14396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14397 | result = (bool)wxPyArtProvider::PopProvider(); | |
14398 | ||
14399 | wxPyEndAllowThreads(__tstate); | |
14400 | if (PyErr_Occurred()) SWIG_fail; | |
14401 | } | |
4f89f6a3 RD |
14402 | { |
14403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14404 | } | |
d14a1e28 RD |
14405 | return resultobj; |
14406 | fail: | |
14407 | return NULL; | |
14408 | } | |
14409 | ||
14410 | ||
14411 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14412 | PyObject *resultobj; | |
14413 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14414 | bool result; | |
14415 | PyObject * obj0 = 0 ; | |
14416 | char *kwnames[] = { | |
14417 | (char *) "provider", NULL | |
14418 | }; | |
14419 | ||
14420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14423 | { |
14424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14425 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
14426 | ||
14427 | wxPyEndAllowThreads(__tstate); | |
14428 | if (PyErr_Occurred()) SWIG_fail; | |
14429 | } | |
4f89f6a3 RD |
14430 | { |
14431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14432 | } | |
d14a1e28 RD |
14433 | return resultobj; |
14434 | fail: | |
14435 | return NULL; | |
14436 | } | |
14437 | ||
14438 | ||
14439 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14440 | PyObject *resultobj; | |
14441 | wxString *arg1 = 0 ; | |
14442 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14443 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14444 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14445 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14446 | wxBitmap result; | |
e811c8ce RD |
14447 | bool temp1 = False ; |
14448 | bool temp2 = False ; | |
d14a1e28 RD |
14449 | wxSize temp3 ; |
14450 | PyObject * obj0 = 0 ; | |
14451 | PyObject * obj1 = 0 ; | |
14452 | PyObject * obj2 = 0 ; | |
14453 | char *kwnames[] = { | |
14454 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14455 | }; | |
14456 | ||
14457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14458 | { | |
14459 | arg1 = wxString_in_helper(obj0); | |
14460 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 14461 | temp1 = True; |
d14a1e28 RD |
14462 | } |
14463 | if (obj1) { | |
14464 | { | |
14465 | arg2 = wxString_in_helper(obj1); | |
14466 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14467 | temp2 = True; |
d14a1e28 RD |
14468 | } |
14469 | } | |
14470 | if (obj2) { | |
14471 | { | |
14472 | arg3 = &temp3; | |
14473 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14474 | } | |
14475 | } | |
14476 | { | |
14477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14478 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14479 | ||
14480 | wxPyEndAllowThreads(__tstate); | |
14481 | if (PyErr_Occurred()) SWIG_fail; | |
14482 | } | |
14483 | { | |
14484 | wxBitmap * resultptr; | |
14485 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 14486 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
14487 | } |
14488 | { | |
14489 | if (temp1) | |
14490 | delete arg1; | |
14491 | } | |
14492 | { | |
14493 | if (temp2) | |
14494 | delete arg2; | |
14495 | } | |
14496 | return resultobj; | |
14497 | fail: | |
14498 | { | |
14499 | if (temp1) | |
14500 | delete arg1; | |
14501 | } | |
14502 | { | |
14503 | if (temp2) | |
14504 | delete arg2; | |
14505 | } | |
14506 | return NULL; | |
14507 | } | |
14508 | ||
14509 | ||
14510 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14511 | PyObject *resultobj; | |
14512 | wxString *arg1 = 0 ; | |
14513 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14514 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14515 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14516 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14517 | wxIcon result; | |
e811c8ce RD |
14518 | bool temp1 = False ; |
14519 | bool temp2 = False ; | |
d14a1e28 RD |
14520 | wxSize temp3 ; |
14521 | PyObject * obj0 = 0 ; | |
14522 | PyObject * obj1 = 0 ; | |
14523 | PyObject * obj2 = 0 ; | |
14524 | char *kwnames[] = { | |
14525 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14526 | }; | |
14527 | ||
14528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14529 | { | |
14530 | arg1 = wxString_in_helper(obj0); | |
14531 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 14532 | temp1 = True; |
d14a1e28 RD |
14533 | } |
14534 | if (obj1) { | |
14535 | { | |
14536 | arg2 = wxString_in_helper(obj1); | |
14537 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14538 | temp2 = True; |
d14a1e28 RD |
14539 | } |
14540 | } | |
14541 | if (obj2) { | |
14542 | { | |
14543 | arg3 = &temp3; | |
14544 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14545 | } | |
14546 | } | |
14547 | { | |
14548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14549 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14550 | ||
14551 | wxPyEndAllowThreads(__tstate); | |
14552 | if (PyErr_Occurred()) SWIG_fail; | |
14553 | } | |
14554 | { | |
14555 | wxIcon * resultptr; | |
14556 | resultptr = new wxIcon((wxIcon &) result); | |
15afbcd0 | 14557 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
14558 | } |
14559 | { | |
14560 | if (temp1) | |
14561 | delete arg1; | |
14562 | } | |
14563 | { | |
14564 | if (temp2) | |
14565 | delete arg2; | |
14566 | } | |
14567 | return resultobj; | |
14568 | fail: | |
14569 | { | |
14570 | if (temp1) | |
14571 | delete arg1; | |
14572 | } | |
14573 | { | |
14574 | if (temp2) | |
14575 | delete arg2; | |
14576 | } | |
14577 | return NULL; | |
14578 | } | |
14579 | ||
14580 | ||
1e0c8722 RD |
14581 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
14582 | PyObject *resultobj; | |
14583 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14584 | PyObject * obj0 = 0 ; | |
14585 | char *kwnames[] = { | |
14586 | (char *) "self", NULL | |
14587 | }; | |
14588 | ||
14589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
14592 | { |
14593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14594 | wxPyArtProvider_Destroy(arg1); | |
14595 | ||
14596 | wxPyEndAllowThreads(__tstate); | |
14597 | if (PyErr_Occurred()) SWIG_fail; | |
14598 | } | |
14599 | Py_INCREF(Py_None); resultobj = Py_None; | |
14600 | return resultobj; | |
14601 | fail: | |
14602 | return NULL; | |
14603 | } | |
14604 | ||
14605 | ||
d14a1e28 RD |
14606 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { |
14607 | PyObject *obj; | |
14608 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14609 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
14610 | Py_INCREF(obj); | |
14611 | return Py_BuildValue((char *)""); | |
14612 | } | |
14613 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14614 | PyObject *resultobj; | |
14615 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14616 | PyObject * obj0 = 0 ; | |
14617 | char *kwnames[] = { | |
14618 | (char *) "self", NULL | |
14619 | }; | |
14620 | ||
14621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14624 | { |
14625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14626 | delete arg1; | |
14627 | ||
14628 | wxPyEndAllowThreads(__tstate); | |
14629 | if (PyErr_Occurred()) SWIG_fail; | |
14630 | } | |
14631 | Py_INCREF(Py_None); resultobj = Py_None; | |
14632 | return resultobj; | |
14633 | fail: | |
14634 | return NULL; | |
14635 | } | |
14636 | ||
14637 | ||
14638 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14639 | PyObject *resultobj; | |
14640 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14641 | wxConfigBase *result; | |
14642 | PyObject * obj0 = 0 ; | |
14643 | char *kwnames[] = { | |
b88bce5f | 14644 | (char *) "config", NULL |
d14a1e28 RD |
14645 | }; |
14646 | ||
14647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14650 | { |
14651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14652 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
14653 | ||
14654 | wxPyEndAllowThreads(__tstate); | |
14655 | if (PyErr_Occurred()) SWIG_fail; | |
14656 | } | |
15afbcd0 | 14657 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14658 | return resultobj; |
14659 | fail: | |
14660 | return NULL; | |
14661 | } | |
14662 | ||
14663 | ||
14664 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14665 | PyObject *resultobj; | |
e811c8ce | 14666 | bool arg1 = (bool) True ; |
d14a1e28 RD |
14667 | wxConfigBase *result; |
14668 | PyObject * obj0 = 0 ; | |
14669 | char *kwnames[] = { | |
14670 | (char *) "createOnDemand", NULL | |
14671 | }; | |
14672 | ||
14673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
14674 | if (obj0) { | |
15afbcd0 RD |
14675 | arg1 = (bool) SWIG_AsBool(obj0); |
14676 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14677 | } |
14678 | { | |
14679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14680 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
14681 | ||
14682 | wxPyEndAllowThreads(__tstate); | |
14683 | if (PyErr_Occurred()) SWIG_fail; | |
14684 | } | |
15afbcd0 | 14685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14686 | return resultobj; |
14687 | fail: | |
14688 | return NULL; | |
14689 | } | |
14690 | ||
14691 | ||
14692 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14693 | PyObject *resultobj; | |
14694 | wxConfigBase *result; | |
14695 | char *kwnames[] = { | |
14696 | NULL | |
14697 | }; | |
14698 | ||
14699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
14700 | { | |
14701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14702 | result = (wxConfigBase *)wxConfigBase::Create(); | |
14703 | ||
14704 | wxPyEndAllowThreads(__tstate); | |
14705 | if (PyErr_Occurred()) SWIG_fail; | |
14706 | } | |
15afbcd0 | 14707 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14708 | return resultobj; |
14709 | fail: | |
14710 | return NULL; | |
14711 | } | |
14712 | ||
14713 | ||
14714 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14715 | PyObject *resultobj; | |
14716 | char *kwnames[] = { | |
14717 | NULL | |
14718 | }; | |
14719 | ||
14720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
14721 | { | |
14722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14723 | wxConfigBase::DontCreateOnDemand(); | |
14724 | ||
14725 | wxPyEndAllowThreads(__tstate); | |
14726 | if (PyErr_Occurred()) SWIG_fail; | |
14727 | } | |
14728 | Py_INCREF(Py_None); resultobj = Py_None; | |
14729 | return resultobj; | |
14730 | fail: | |
14731 | return NULL; | |
14732 | } | |
14733 | ||
14734 | ||
14735 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14736 | PyObject *resultobj; | |
14737 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14738 | wxString *arg2 = 0 ; | |
e811c8ce | 14739 | bool temp2 = False ; |
d14a1e28 RD |
14740 | PyObject * obj0 = 0 ; |
14741 | PyObject * obj1 = 0 ; | |
14742 | char *kwnames[] = { | |
b88bce5f | 14743 | (char *) "self",(char *) "path", NULL |
d14a1e28 RD |
14744 | }; |
14745 | ||
14746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14749 | { |
14750 | arg2 = wxString_in_helper(obj1); | |
14751 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14752 | temp2 = True; |
d14a1e28 RD |
14753 | } |
14754 | { | |
14755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14756 | (arg1)->SetPath((wxString const &)*arg2); | |
14757 | ||
14758 | wxPyEndAllowThreads(__tstate); | |
14759 | if (PyErr_Occurred()) SWIG_fail; | |
14760 | } | |
14761 | Py_INCREF(Py_None); resultobj = Py_None; | |
14762 | { | |
14763 | if (temp2) | |
14764 | delete arg2; | |
14765 | } | |
14766 | return resultobj; | |
14767 | fail: | |
14768 | { | |
14769 | if (temp2) | |
14770 | delete arg2; | |
14771 | } | |
14772 | return NULL; | |
14773 | } | |
14774 | ||
14775 | ||
14776 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14777 | PyObject *resultobj; | |
14778 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14779 | wxString *result; | |
14780 | PyObject * obj0 = 0 ; | |
14781 | char *kwnames[] = { | |
14782 | (char *) "self", NULL | |
14783 | }; | |
14784 | ||
14785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14788 | { |
14789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14790 | { | |
14791 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
14792 | result = (wxString *) &_result_ref; | |
14793 | } | |
14794 | ||
14795 | wxPyEndAllowThreads(__tstate); | |
14796 | if (PyErr_Occurred()) SWIG_fail; | |
14797 | } | |
cc6dd355 RD |
14798 | { |
14799 | #if wxUSE_UNICODE | |
14800 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14801 | #else | |
14802 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14803 | #endif | |
14804 | } | |
d14a1e28 RD |
14805 | return resultobj; |
14806 | fail: | |
14807 | return NULL; | |
14808 | } | |
14809 | ||
14810 | ||
14811 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14812 | PyObject *resultobj; | |
14813 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14814 | PyObject *result; | |
14815 | PyObject * obj0 = 0 ; | |
14816 | char *kwnames[] = { | |
14817 | (char *) "self", NULL | |
14818 | }; | |
14819 | ||
14820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14823 | { |
14824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14825 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
14826 | ||
14827 | wxPyEndAllowThreads(__tstate); | |
14828 | if (PyErr_Occurred()) SWIG_fail; | |
14829 | } | |
14830 | resultobj = result; | |
14831 | return resultobj; | |
14832 | fail: | |
14833 | return NULL; | |
14834 | } | |
14835 | ||
14836 | ||
14837 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14838 | PyObject *resultobj; | |
14839 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14840 | long arg2 ; | |
14841 | PyObject *result; | |
14842 | PyObject * obj0 = 0 ; | |
994141e6 | 14843 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14844 | char *kwnames[] = { |
14845 | (char *) "self",(char *) "index", NULL | |
14846 | }; | |
14847 | ||
994141e6 | 14848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14851 | arg2 = (long) SWIG_AsLong(obj1); | |
14852 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14853 | { |
14854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14855 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
14856 | ||
14857 | wxPyEndAllowThreads(__tstate); | |
14858 | if (PyErr_Occurred()) SWIG_fail; | |
14859 | } | |
14860 | resultobj = result; | |
14861 | return resultobj; | |
14862 | fail: | |
14863 | return NULL; | |
14864 | } | |
14865 | ||
14866 | ||
14867 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14868 | PyObject *resultobj; | |
14869 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14870 | PyObject *result; | |
14871 | PyObject * obj0 = 0 ; | |
14872 | char *kwnames[] = { | |
14873 | (char *) "self", NULL | |
14874 | }; | |
14875 | ||
14876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14879 | { |
14880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14881 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
14882 | ||
14883 | wxPyEndAllowThreads(__tstate); | |
14884 | if (PyErr_Occurred()) SWIG_fail; | |
14885 | } | |
14886 | resultobj = result; | |
14887 | return resultobj; | |
14888 | fail: | |
14889 | return NULL; | |
14890 | } | |
14891 | ||
14892 | ||
14893 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14894 | PyObject *resultobj; | |
14895 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14896 | long arg2 ; | |
14897 | PyObject *result; | |
14898 | PyObject * obj0 = 0 ; | |
994141e6 | 14899 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14900 | char *kwnames[] = { |
14901 | (char *) "self",(char *) "index", NULL | |
14902 | }; | |
14903 | ||
994141e6 | 14904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14907 | arg2 = (long) SWIG_AsLong(obj1); | |
14908 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14909 | { |
14910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14911 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
14912 | ||
14913 | wxPyEndAllowThreads(__tstate); | |
14914 | if (PyErr_Occurred()) SWIG_fail; | |
14915 | } | |
14916 | resultobj = result; | |
14917 | return resultobj; | |
14918 | fail: | |
14919 | return NULL; | |
14920 | } | |
14921 | ||
14922 | ||
14923 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14924 | PyObject *resultobj; | |
14925 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 14926 | bool arg2 = (bool) False ; |
d14a1e28 RD |
14927 | size_t result; |
14928 | PyObject * obj0 = 0 ; | |
14929 | PyObject * obj1 = 0 ; | |
14930 | char *kwnames[] = { | |
b88bce5f | 14931 | (char *) "self",(char *) "recursive", NULL |
d14a1e28 RD |
14932 | }; |
14933 | ||
14934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 14937 | if (obj1) { |
15afbcd0 RD |
14938 | arg2 = (bool) SWIG_AsBool(obj1); |
14939 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14940 | } |
14941 | { | |
14942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14943 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
14944 | ||
14945 | wxPyEndAllowThreads(__tstate); | |
14946 | if (PyErr_Occurred()) SWIG_fail; | |
14947 | } | |
15afbcd0 | 14948 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
14949 | return resultobj; |
14950 | fail: | |
14951 | return NULL; | |
14952 | } | |
14953 | ||
14954 | ||
14955 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14956 | PyObject *resultobj; | |
14957 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 14958 | bool arg2 = (bool) False ; |
d14a1e28 RD |
14959 | size_t result; |
14960 | PyObject * obj0 = 0 ; | |
14961 | PyObject * obj1 = 0 ; | |
14962 | char *kwnames[] = { | |
b88bce5f | 14963 | (char *) "self",(char *) "recursive", NULL |
d14a1e28 RD |
14964 | }; |
14965 | ||
14966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 14969 | if (obj1) { |
15afbcd0 RD |
14970 | arg2 = (bool) SWIG_AsBool(obj1); |
14971 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14972 | } |
14973 | { | |
14974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14975 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
14976 | ||
14977 | wxPyEndAllowThreads(__tstate); | |
14978 | if (PyErr_Occurred()) SWIG_fail; | |
14979 | } | |
15afbcd0 | 14980 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
14981 | return resultobj; |
14982 | fail: | |
14983 | return NULL; | |
14984 | } | |
14985 | ||
14986 | ||
14987 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14988 | PyObject *resultobj; | |
14989 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14990 | wxString *arg2 = 0 ; | |
14991 | bool result; | |
e811c8ce | 14992 | bool temp2 = False ; |
d14a1e28 RD |
14993 | PyObject * obj0 = 0 ; |
14994 | PyObject * obj1 = 0 ; | |
14995 | char *kwnames[] = { | |
b88bce5f | 14996 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
14997 | }; |
14998 | ||
14999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15002 | { |
15003 | arg2 = wxString_in_helper(obj1); | |
15004 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15005 | temp2 = True; |
d14a1e28 RD |
15006 | } |
15007 | { | |
15008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15009 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
15010 | ||
15011 | wxPyEndAllowThreads(__tstate); | |
15012 | if (PyErr_Occurred()) SWIG_fail; | |
15013 | } | |
4f89f6a3 RD |
15014 | { |
15015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15016 | } | |
d14a1e28 RD |
15017 | { |
15018 | if (temp2) | |
15019 | delete arg2; | |
15020 | } | |
15021 | return resultobj; | |
15022 | fail: | |
15023 | { | |
15024 | if (temp2) | |
15025 | delete arg2; | |
15026 | } | |
15027 | return NULL; | |
15028 | } | |
15029 | ||
15030 | ||
15031 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15032 | PyObject *resultobj; | |
15033 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15034 | wxString *arg2 = 0 ; | |
15035 | bool result; | |
e811c8ce | 15036 | bool temp2 = False ; |
d14a1e28 RD |
15037 | PyObject * obj0 = 0 ; |
15038 | PyObject * obj1 = 0 ; | |
15039 | char *kwnames[] = { | |
b88bce5f | 15040 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
15041 | }; |
15042 | ||
15043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15046 | { |
15047 | arg2 = wxString_in_helper(obj1); | |
15048 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15049 | temp2 = True; |
d14a1e28 RD |
15050 | } |
15051 | { | |
15052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15053 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
15054 | ||
15055 | wxPyEndAllowThreads(__tstate); | |
15056 | if (PyErr_Occurred()) SWIG_fail; | |
15057 | } | |
4f89f6a3 RD |
15058 | { |
15059 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15060 | } | |
d14a1e28 RD |
15061 | { |
15062 | if (temp2) | |
15063 | delete arg2; | |
15064 | } | |
15065 | return resultobj; | |
15066 | fail: | |
15067 | { | |
15068 | if (temp2) | |
15069 | delete arg2; | |
15070 | } | |
15071 | return NULL; | |
15072 | } | |
15073 | ||
15074 | ||
15075 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15076 | PyObject *resultobj; | |
15077 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15078 | wxString *arg2 = 0 ; | |
15079 | bool result; | |
e811c8ce | 15080 | bool temp2 = False ; |
d14a1e28 RD |
15081 | PyObject * obj0 = 0 ; |
15082 | PyObject * obj1 = 0 ; | |
15083 | char *kwnames[] = { | |
b88bce5f | 15084 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
15085 | }; |
15086 | ||
15087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15090 | { |
15091 | arg2 = wxString_in_helper(obj1); | |
15092 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15093 | temp2 = True; |
d14a1e28 RD |
15094 | } |
15095 | { | |
15096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15097 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
15098 | ||
15099 | wxPyEndAllowThreads(__tstate); | |
15100 | if (PyErr_Occurred()) SWIG_fail; | |
15101 | } | |
4f89f6a3 RD |
15102 | { |
15103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15104 | } | |
d14a1e28 RD |
15105 | { |
15106 | if (temp2) | |
15107 | delete arg2; | |
15108 | } | |
15109 | return resultobj; | |
15110 | fail: | |
15111 | { | |
15112 | if (temp2) | |
15113 | delete arg2; | |
15114 | } | |
15115 | return NULL; | |
15116 | } | |
15117 | ||
15118 | ||
15119 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15120 | PyObject *resultobj; | |
15121 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15122 | wxString *arg2 = 0 ; | |
15123 | int result; | |
e811c8ce | 15124 | bool temp2 = False ; |
d14a1e28 RD |
15125 | PyObject * obj0 = 0 ; |
15126 | PyObject * obj1 = 0 ; | |
15127 | char *kwnames[] = { | |
15128 | (char *) "self",(char *) "name", NULL | |
15129 | }; | |
15130 | ||
15131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15134 | { |
15135 | arg2 = wxString_in_helper(obj1); | |
15136 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15137 | temp2 = True; |
d14a1e28 RD |
15138 | } |
15139 | { | |
15140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15141 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
15142 | ||
15143 | wxPyEndAllowThreads(__tstate); | |
15144 | if (PyErr_Occurred()) SWIG_fail; | |
15145 | } | |
15afbcd0 | 15146 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15147 | { |
15148 | if (temp2) | |
15149 | delete arg2; | |
15150 | } | |
15151 | return resultobj; | |
15152 | fail: | |
15153 | { | |
15154 | if (temp2) | |
15155 | delete arg2; | |
15156 | } | |
15157 | return NULL; | |
15158 | } | |
15159 | ||
15160 | ||
15161 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15162 | PyObject *resultobj; | |
15163 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15164 | wxString *arg2 = 0 ; | |
15165 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15166 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15167 | wxString result; | |
e811c8ce RD |
15168 | bool temp2 = False ; |
15169 | bool temp3 = False ; | |
d14a1e28 RD |
15170 | PyObject * obj0 = 0 ; |
15171 | PyObject * obj1 = 0 ; | |
15172 | PyObject * obj2 = 0 ; | |
15173 | char *kwnames[] = { | |
15174 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15175 | }; | |
15176 | ||
15177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15180 | { |
15181 | arg2 = wxString_in_helper(obj1); | |
15182 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15183 | temp2 = True; |
d14a1e28 RD |
15184 | } |
15185 | if (obj2) { | |
15186 | { | |
15187 | arg3 = wxString_in_helper(obj2); | |
15188 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15189 | temp3 = True; |
d14a1e28 RD |
15190 | } |
15191 | } | |
15192 | { | |
15193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15194 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
15195 | ||
15196 | wxPyEndAllowThreads(__tstate); | |
15197 | if (PyErr_Occurred()) SWIG_fail; | |
15198 | } | |
15199 | { | |
15200 | #if wxUSE_UNICODE | |
15201 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15202 | #else | |
15203 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15204 | #endif | |
15205 | } | |
15206 | { | |
15207 | if (temp2) | |
15208 | delete arg2; | |
15209 | } | |
15210 | { | |
15211 | if (temp3) | |
15212 | delete arg3; | |
15213 | } | |
15214 | return resultobj; | |
15215 | fail: | |
15216 | { | |
15217 | if (temp2) | |
15218 | delete arg2; | |
15219 | } | |
15220 | { | |
15221 | if (temp3) | |
15222 | delete arg3; | |
15223 | } | |
15224 | return NULL; | |
15225 | } | |
15226 | ||
15227 | ||
15228 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15229 | PyObject *resultobj; | |
15230 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15231 | wxString *arg2 = 0 ; | |
15232 | long arg3 = (long) 0 ; | |
15233 | long result; | |
e811c8ce | 15234 | bool temp2 = False ; |
d14a1e28 RD |
15235 | PyObject * obj0 = 0 ; |
15236 | PyObject * obj1 = 0 ; | |
994141e6 | 15237 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15238 | char *kwnames[] = { |
15239 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15240 | }; | |
15241 | ||
994141e6 | 15242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15245 | { |
15246 | arg2 = wxString_in_helper(obj1); | |
15247 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15248 | temp2 = True; |
d14a1e28 | 15249 | } |
994141e6 | 15250 | if (obj2) { |
15afbcd0 RD |
15251 | arg3 = (long) SWIG_AsLong(obj2); |
15252 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15253 | } |
d14a1e28 RD |
15254 | { |
15255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15256 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
15257 | ||
15258 | wxPyEndAllowThreads(__tstate); | |
15259 | if (PyErr_Occurred()) SWIG_fail; | |
15260 | } | |
15afbcd0 | 15261 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
15262 | { |
15263 | if (temp2) | |
15264 | delete arg2; | |
15265 | } | |
15266 | return resultobj; | |
15267 | fail: | |
15268 | { | |
15269 | if (temp2) | |
15270 | delete arg2; | |
15271 | } | |
15272 | return NULL; | |
15273 | } | |
15274 | ||
15275 | ||
15276 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15277 | PyObject *resultobj; | |
15278 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15279 | wxString *arg2 = 0 ; | |
15280 | double arg3 = (double) 0.0 ; | |
15281 | double result; | |
e811c8ce | 15282 | bool temp2 = False ; |
d14a1e28 RD |
15283 | PyObject * obj0 = 0 ; |
15284 | PyObject * obj1 = 0 ; | |
994141e6 | 15285 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15286 | char *kwnames[] = { |
15287 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15288 | }; | |
15289 | ||
994141e6 | 15290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15293 | { |
15294 | arg2 = wxString_in_helper(obj1); | |
15295 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15296 | temp2 = True; |
d14a1e28 | 15297 | } |
994141e6 | 15298 | if (obj2) { |
15afbcd0 RD |
15299 | arg3 = (double) SWIG_AsDouble(obj2); |
15300 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15301 | } |
d14a1e28 RD |
15302 | { |
15303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15304 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
15305 | ||
15306 | wxPyEndAllowThreads(__tstate); | |
15307 | if (PyErr_Occurred()) SWIG_fail; | |
15308 | } | |
15afbcd0 | 15309 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
15310 | { |
15311 | if (temp2) | |
15312 | delete arg2; | |
15313 | } | |
15314 | return resultobj; | |
15315 | fail: | |
15316 | { | |
15317 | if (temp2) | |
15318 | delete arg2; | |
15319 | } | |
15320 | return NULL; | |
15321 | } | |
15322 | ||
15323 | ||
15324 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15325 | PyObject *resultobj; | |
15326 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15327 | wxString *arg2 = 0 ; | |
e811c8ce | 15328 | bool arg3 = (bool) False ; |
d14a1e28 | 15329 | bool result; |
e811c8ce | 15330 | bool temp2 = False ; |
d14a1e28 RD |
15331 | PyObject * obj0 = 0 ; |
15332 | PyObject * obj1 = 0 ; | |
15333 | PyObject * obj2 = 0 ; | |
15334 | char *kwnames[] = { | |
15335 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15336 | }; | |
15337 | ||
15338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15341 | { |
15342 | arg2 = wxString_in_helper(obj1); | |
15343 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15344 | temp2 = True; |
d14a1e28 RD |
15345 | } |
15346 | if (obj2) { | |
15afbcd0 RD |
15347 | arg3 = (bool) SWIG_AsBool(obj2); |
15348 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15349 | } |
15350 | { | |
15351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15352 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
15353 | ||
15354 | wxPyEndAllowThreads(__tstate); | |
15355 | if (PyErr_Occurred()) SWIG_fail; | |
15356 | } | |
4f89f6a3 RD |
15357 | { |
15358 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15359 | } | |
d14a1e28 RD |
15360 | { |
15361 | if (temp2) | |
15362 | delete arg2; | |
15363 | } | |
15364 | return resultobj; | |
15365 | fail: | |
15366 | { | |
15367 | if (temp2) | |
15368 | delete arg2; | |
15369 | } | |
15370 | return NULL; | |
15371 | } | |
15372 | ||
15373 | ||
15374 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15375 | PyObject *resultobj; | |
15376 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15377 | wxString *arg2 = 0 ; | |
15378 | wxString *arg3 = 0 ; | |
15379 | bool result; | |
e811c8ce RD |
15380 | bool temp2 = False ; |
15381 | bool temp3 = False ; | |
d14a1e28 RD |
15382 | PyObject * obj0 = 0 ; |
15383 | PyObject * obj1 = 0 ; | |
15384 | PyObject * obj2 = 0 ; | |
15385 | char *kwnames[] = { | |
15386 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15387 | }; | |
15388 | ||
15389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15392 | { |
15393 | arg2 = wxString_in_helper(obj1); | |
15394 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15395 | temp2 = True; |
d14a1e28 RD |
15396 | } |
15397 | { | |
15398 | arg3 = wxString_in_helper(obj2); | |
15399 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15400 | temp3 = True; |
d14a1e28 RD |
15401 | } |
15402 | { | |
15403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15404 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
15405 | ||
15406 | wxPyEndAllowThreads(__tstate); | |
15407 | if (PyErr_Occurred()) SWIG_fail; | |
15408 | } | |
4f89f6a3 RD |
15409 | { |
15410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15411 | } | |
d14a1e28 RD |
15412 | { |
15413 | if (temp2) | |
15414 | delete arg2; | |
15415 | } | |
15416 | { | |
15417 | if (temp3) | |
15418 | delete arg3; | |
15419 | } | |
15420 | return resultobj; | |
15421 | fail: | |
15422 | { | |
15423 | if (temp2) | |
15424 | delete arg2; | |
15425 | } | |
15426 | { | |
15427 | if (temp3) | |
15428 | delete arg3; | |
15429 | } | |
15430 | return NULL; | |
15431 | } | |
15432 | ||
15433 | ||
15434 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15435 | PyObject *resultobj; | |
15436 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15437 | wxString *arg2 = 0 ; | |
15438 | long arg3 ; | |
15439 | bool result; | |
e811c8ce | 15440 | bool temp2 = False ; |
d14a1e28 RD |
15441 | PyObject * obj0 = 0 ; |
15442 | PyObject * obj1 = 0 ; | |
994141e6 | 15443 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15444 | char *kwnames[] = { |
15445 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15446 | }; | |
15447 | ||
994141e6 | 15448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15451 | { |
15452 | arg2 = wxString_in_helper(obj1); | |
15453 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15454 | temp2 = True; |
d14a1e28 | 15455 | } |
15afbcd0 RD |
15456 | arg3 = (long) SWIG_AsLong(obj2); |
15457 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15458 | { |
15459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15460 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15461 | ||
15462 | wxPyEndAllowThreads(__tstate); | |
15463 | if (PyErr_Occurred()) SWIG_fail; | |
15464 | } | |
4f89f6a3 RD |
15465 | { |
15466 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15467 | } | |
d14a1e28 RD |
15468 | { |
15469 | if (temp2) | |
15470 | delete arg2; | |
15471 | } | |
15472 | return resultobj; | |
15473 | fail: | |
15474 | { | |
15475 | if (temp2) | |
15476 | delete arg2; | |
15477 | } | |
15478 | return NULL; | |
15479 | } | |
15480 | ||
15481 | ||
15482 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15483 | PyObject *resultobj; | |
15484 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15485 | wxString *arg2 = 0 ; | |
15486 | double arg3 ; | |
15487 | bool result; | |
e811c8ce | 15488 | bool temp2 = False ; |
d14a1e28 RD |
15489 | PyObject * obj0 = 0 ; |
15490 | PyObject * obj1 = 0 ; | |
994141e6 | 15491 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15492 | char *kwnames[] = { |
15493 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15494 | }; | |
15495 | ||
994141e6 | 15496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15499 | { |
15500 | arg2 = wxString_in_helper(obj1); | |
15501 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15502 | temp2 = True; |
d14a1e28 | 15503 | } |
15afbcd0 RD |
15504 | arg3 = (double) SWIG_AsDouble(obj2); |
15505 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15506 | { |
15507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15508 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15509 | ||
15510 | wxPyEndAllowThreads(__tstate); | |
15511 | if (PyErr_Occurred()) SWIG_fail; | |
15512 | } | |
4f89f6a3 RD |
15513 | { |
15514 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15515 | } | |
d14a1e28 RD |
15516 | { |
15517 | if (temp2) | |
15518 | delete arg2; | |
15519 | } | |
15520 | return resultobj; | |
15521 | fail: | |
15522 | { | |
15523 | if (temp2) | |
15524 | delete arg2; | |
15525 | } | |
15526 | return NULL; | |
15527 | } | |
15528 | ||
15529 | ||
15530 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15531 | PyObject *resultobj; | |
15532 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15533 | wxString *arg2 = 0 ; | |
15534 | bool arg3 ; | |
15535 | bool result; | |
e811c8ce | 15536 | bool temp2 = False ; |
d14a1e28 RD |
15537 | PyObject * obj0 = 0 ; |
15538 | PyObject * obj1 = 0 ; | |
15539 | PyObject * obj2 = 0 ; | |
15540 | char *kwnames[] = { | |
15541 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15542 | }; | |
15543 | ||
15544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15547 | { |
15548 | arg2 = wxString_in_helper(obj1); | |
15549 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15550 | temp2 = True; |
d14a1e28 | 15551 | } |
15afbcd0 RD |
15552 | arg3 = (bool) SWIG_AsBool(obj2); |
15553 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15554 | { |
15555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15556 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15557 | ||
15558 | wxPyEndAllowThreads(__tstate); | |
15559 | if (PyErr_Occurred()) SWIG_fail; | |
15560 | } | |
4f89f6a3 RD |
15561 | { |
15562 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15563 | } | |
d14a1e28 RD |
15564 | { |
15565 | if (temp2) | |
15566 | delete arg2; | |
15567 | } | |
15568 | return resultobj; | |
15569 | fail: | |
15570 | { | |
15571 | if (temp2) | |
15572 | delete arg2; | |
15573 | } | |
15574 | return NULL; | |
15575 | } | |
15576 | ||
15577 | ||
15578 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15579 | PyObject *resultobj; | |
15580 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 15581 | bool arg2 = (bool) False ; |
d14a1e28 RD |
15582 | bool result; |
15583 | PyObject * obj0 = 0 ; | |
15584 | PyObject * obj1 = 0 ; | |
15585 | char *kwnames[] = { | |
b88bce5f | 15586 | (char *) "self",(char *) "currentOnly", NULL |
d14a1e28 RD |
15587 | }; |
15588 | ||
15589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15592 | if (obj1) { |
15afbcd0 RD |
15593 | arg2 = (bool) SWIG_AsBool(obj1); |
15594 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15595 | } |
15596 | { | |
15597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15598 | result = (bool)(arg1)->Flush(arg2); | |
15599 | ||
15600 | wxPyEndAllowThreads(__tstate); | |
15601 | if (PyErr_Occurred()) SWIG_fail; | |
15602 | } | |
4f89f6a3 RD |
15603 | { |
15604 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15605 | } | |
d14a1e28 RD |
15606 | return resultobj; |
15607 | fail: | |
15608 | return NULL; | |
15609 | } | |
15610 | ||
15611 | ||
15612 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15613 | PyObject *resultobj; | |
15614 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15615 | wxString *arg2 = 0 ; | |
15616 | wxString *arg3 = 0 ; | |
15617 | bool result; | |
e811c8ce RD |
15618 | bool temp2 = False ; |
15619 | bool temp3 = False ; | |
d14a1e28 RD |
15620 | PyObject * obj0 = 0 ; |
15621 | PyObject * obj1 = 0 ; | |
15622 | PyObject * obj2 = 0 ; | |
15623 | char *kwnames[] = { | |
15624 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15625 | }; | |
15626 | ||
15627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15630 | { |
15631 | arg2 = wxString_in_helper(obj1); | |
15632 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15633 | temp2 = True; |
d14a1e28 RD |
15634 | } |
15635 | { | |
15636 | arg3 = wxString_in_helper(obj2); | |
15637 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15638 | temp3 = True; |
d14a1e28 RD |
15639 | } |
15640 | { | |
15641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15642 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
15643 | ||
15644 | wxPyEndAllowThreads(__tstate); | |
15645 | if (PyErr_Occurred()) SWIG_fail; | |
15646 | } | |
4f89f6a3 RD |
15647 | { |
15648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15649 | } | |
d14a1e28 RD |
15650 | { |
15651 | if (temp2) | |
15652 | delete arg2; | |
15653 | } | |
15654 | { | |
15655 | if (temp3) | |
15656 | delete arg3; | |
15657 | } | |
15658 | return resultobj; | |
15659 | fail: | |
15660 | { | |
15661 | if (temp2) | |
15662 | delete arg2; | |
15663 | } | |
15664 | { | |
15665 | if (temp3) | |
15666 | delete arg3; | |
15667 | } | |
15668 | return NULL; | |
15669 | } | |
15670 | ||
15671 | ||
15672 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15673 | PyObject *resultobj; | |
15674 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15675 | wxString *arg2 = 0 ; | |
15676 | wxString *arg3 = 0 ; | |
15677 | bool result; | |
e811c8ce RD |
15678 | bool temp2 = False ; |
15679 | bool temp3 = False ; | |
d14a1e28 RD |
15680 | PyObject * obj0 = 0 ; |
15681 | PyObject * obj1 = 0 ; | |
15682 | PyObject * obj2 = 0 ; | |
15683 | char *kwnames[] = { | |
15684 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15685 | }; | |
15686 | ||
15687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15690 | { |
15691 | arg2 = wxString_in_helper(obj1); | |
15692 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15693 | temp2 = True; |
d14a1e28 RD |
15694 | } |
15695 | { | |
15696 | arg3 = wxString_in_helper(obj2); | |
15697 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15698 | temp3 = True; |
d14a1e28 RD |
15699 | } |
15700 | { | |
15701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15702 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
15703 | ||
15704 | wxPyEndAllowThreads(__tstate); | |
15705 | if (PyErr_Occurred()) SWIG_fail; | |
15706 | } | |
4f89f6a3 RD |
15707 | { |
15708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15709 | } | |
d14a1e28 RD |
15710 | { |
15711 | if (temp2) | |
15712 | delete arg2; | |
15713 | } | |
15714 | { | |
15715 | if (temp3) | |
15716 | delete arg3; | |
15717 | } | |
15718 | return resultobj; | |
15719 | fail: | |
15720 | { | |
15721 | if (temp2) | |
15722 | delete arg2; | |
15723 | } | |
15724 | { | |
15725 | if (temp3) | |
15726 | delete arg3; | |
15727 | } | |
15728 | return NULL; | |
15729 | } | |
15730 | ||
15731 | ||
15732 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15733 | PyObject *resultobj; | |
15734 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15735 | wxString *arg2 = 0 ; | |
e811c8ce | 15736 | bool arg3 = (bool) True ; |
d14a1e28 | 15737 | bool result; |
e811c8ce | 15738 | bool temp2 = False ; |
d14a1e28 RD |
15739 | PyObject * obj0 = 0 ; |
15740 | PyObject * obj1 = 0 ; | |
15741 | PyObject * obj2 = 0 ; | |
15742 | char *kwnames[] = { | |
b88bce5f | 15743 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL |
d14a1e28 RD |
15744 | }; |
15745 | ||
15746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15749 | { |
15750 | arg2 = wxString_in_helper(obj1); | |
15751 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15752 | temp2 = True; |
d14a1e28 RD |
15753 | } |
15754 | if (obj2) { | |
15afbcd0 RD |
15755 | arg3 = (bool) SWIG_AsBool(obj2); |
15756 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15757 | } |
15758 | { | |
15759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15760 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
15761 | ||
15762 | wxPyEndAllowThreads(__tstate); | |
15763 | if (PyErr_Occurred()) SWIG_fail; | |
15764 | } | |
4f89f6a3 RD |
15765 | { |
15766 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15767 | } | |
d14a1e28 RD |
15768 | { |
15769 | if (temp2) | |
15770 | delete arg2; | |
15771 | } | |
15772 | return resultobj; | |
15773 | fail: | |
15774 | { | |
15775 | if (temp2) | |
15776 | delete arg2; | |
15777 | } | |
15778 | return NULL; | |
15779 | } | |
15780 | ||
15781 | ||
15782 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15783 | PyObject *resultobj; | |
15784 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15785 | wxString *arg2 = 0 ; | |
15786 | bool result; | |
e811c8ce | 15787 | bool temp2 = False ; |
d14a1e28 RD |
15788 | PyObject * obj0 = 0 ; |
15789 | PyObject * obj1 = 0 ; | |
15790 | char *kwnames[] = { | |
15791 | (char *) "self",(char *) "key", NULL | |
15792 | }; | |
15793 | ||
15794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15797 | { |
15798 | arg2 = wxString_in_helper(obj1); | |
15799 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15800 | temp2 = True; |
d14a1e28 RD |
15801 | } |
15802 | { | |
15803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15804 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
15805 | ||
15806 | wxPyEndAllowThreads(__tstate); | |
15807 | if (PyErr_Occurred()) SWIG_fail; | |
15808 | } | |
4f89f6a3 RD |
15809 | { |
15810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15811 | } | |
d14a1e28 RD |
15812 | { |
15813 | if (temp2) | |
15814 | delete arg2; | |
15815 | } | |
15816 | return resultobj; | |
15817 | fail: | |
15818 | { | |
15819 | if (temp2) | |
15820 | delete arg2; | |
15821 | } | |
15822 | return NULL; | |
15823 | } | |
15824 | ||
15825 | ||
15826 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15827 | PyObject *resultobj; | |
15828 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15829 | bool result; | |
15830 | PyObject * obj0 = 0 ; | |
15831 | char *kwnames[] = { | |
15832 | (char *) "self", NULL | |
15833 | }; | |
15834 | ||
15835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15838 | { |
15839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15840 | result = (bool)(arg1)->DeleteAll(); | |
15841 | ||
15842 | wxPyEndAllowThreads(__tstate); | |
15843 | if (PyErr_Occurred()) SWIG_fail; | |
15844 | } | |
4f89f6a3 RD |
15845 | { |
15846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15847 | } | |
d14a1e28 RD |
15848 | return resultobj; |
15849 | fail: | |
15850 | return NULL; | |
15851 | } | |
15852 | ||
15853 | ||
b88bce5f | 15854 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15855 | PyObject *resultobj; |
15856 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b88bce5f | 15857 | bool arg2 = (bool) True ; |
d14a1e28 | 15858 | PyObject * obj0 = 0 ; |
b88bce5f | 15859 | PyObject * obj1 = 0 ; |
d14a1e28 | 15860 | char *kwnames[] = { |
b88bce5f | 15861 | (char *) "self",(char *) "doIt", NULL |
d14a1e28 RD |
15862 | }; |
15863 | ||
b88bce5f | 15864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f | 15867 | if (obj1) { |
15afbcd0 RD |
15868 | arg2 = (bool) SWIG_AsBool(obj1); |
15869 | if (PyErr_Occurred()) SWIG_fail; | |
b88bce5f | 15870 | } |
d14a1e28 RD |
15871 | { |
15872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 15873 | (arg1)->SetExpandEnvVars(arg2); |
d14a1e28 RD |
15874 | |
15875 | wxPyEndAllowThreads(__tstate); | |
15876 | if (PyErr_Occurred()) SWIG_fail; | |
15877 | } | |
b88bce5f | 15878 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
15879 | return resultobj; |
15880 | fail: | |
15881 | return NULL; | |
15882 | } | |
15883 | ||
15884 | ||
b88bce5f | 15885 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15886 | PyObject *resultobj; |
15887 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b88bce5f | 15888 | bool result; |
d14a1e28 | 15889 | PyObject * obj0 = 0 ; |
d14a1e28 | 15890 | char *kwnames[] = { |
b88bce5f | 15891 | (char *) "self", NULL |
d14a1e28 RD |
15892 | }; |
15893 | ||
b88bce5f | 15894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
15895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15897 | { |
15898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 15899 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); |
d14a1e28 RD |
15900 | |
15901 | wxPyEndAllowThreads(__tstate); | |
15902 | if (PyErr_Occurred()) SWIG_fail; | |
15903 | } | |
4f89f6a3 RD |
15904 | { |
15905 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15906 | } | |
d14a1e28 RD |
15907 | return resultobj; |
15908 | fail: | |
15909 | return NULL; | |
15910 | } | |
15911 | ||
15912 | ||
15913 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15914 | PyObject *resultobj; | |
15915 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 15916 | bool arg2 = (bool) True ; |
d14a1e28 RD |
15917 | PyObject * obj0 = 0 ; |
15918 | PyObject * obj1 = 0 ; | |
15919 | char *kwnames[] = { | |
b88bce5f | 15920 | (char *) "self",(char *) "doIt", NULL |
d14a1e28 RD |
15921 | }; |
15922 | ||
15923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15926 | if (obj1) { |
15afbcd0 RD |
15927 | arg2 = (bool) SWIG_AsBool(obj1); |
15928 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15929 | } |
15930 | { | |
15931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15932 | (arg1)->SetRecordDefaults(arg2); | |
15933 | ||
15934 | wxPyEndAllowThreads(__tstate); | |
15935 | if (PyErr_Occurred()) SWIG_fail; | |
15936 | } | |
15937 | Py_INCREF(Py_None); resultobj = Py_None; | |
15938 | return resultobj; | |
15939 | fail: | |
15940 | return NULL; | |
15941 | } | |
15942 | ||
15943 | ||
15944 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15945 | PyObject *resultobj; | |
15946 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15947 | bool result; | |
15948 | PyObject * obj0 = 0 ; | |
15949 | char *kwnames[] = { | |
15950 | (char *) "self", NULL | |
15951 | }; | |
15952 | ||
15953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15956 | { |
15957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15958 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
15959 | ||
15960 | wxPyEndAllowThreads(__tstate); | |
15961 | if (PyErr_Occurred()) SWIG_fail; | |
15962 | } | |
4f89f6a3 RD |
15963 | { |
15964 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15965 | } | |
d14a1e28 RD |
15966 | return resultobj; |
15967 | fail: | |
15968 | return NULL; | |
15969 | } | |
15970 | ||
15971 | ||
15972 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15973 | PyObject *resultobj; | |
15974 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15975 | wxString *arg2 = 0 ; | |
15976 | wxString result; | |
e811c8ce | 15977 | bool temp2 = False ; |
d14a1e28 RD |
15978 | PyObject * obj0 = 0 ; |
15979 | PyObject * obj1 = 0 ; | |
15980 | char *kwnames[] = { | |
15981 | (char *) "self",(char *) "str", NULL | |
15982 | }; | |
15983 | ||
15984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15987 | { |
15988 | arg2 = wxString_in_helper(obj1); | |
15989 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15990 | temp2 = True; |
d14a1e28 RD |
15991 | } |
15992 | { | |
15993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15994 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
15995 | ||
15996 | wxPyEndAllowThreads(__tstate); | |
15997 | if (PyErr_Occurred()) SWIG_fail; | |
15998 | } | |
15999 | { | |
16000 | #if wxUSE_UNICODE | |
16001 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16002 | #else | |
16003 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16004 | #endif | |
16005 | } | |
16006 | { | |
16007 | if (temp2) | |
16008 | delete arg2; | |
16009 | } | |
16010 | return resultobj; | |
16011 | fail: | |
16012 | { | |
16013 | if (temp2) | |
16014 | delete arg2; | |
16015 | } | |
16016 | return NULL; | |
16017 | } | |
16018 | ||
16019 | ||
16020 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16021 | PyObject *resultobj; | |
16022 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16023 | wxString result; | |
16024 | PyObject * obj0 = 0 ; | |
16025 | char *kwnames[] = { | |
16026 | (char *) "self", NULL | |
16027 | }; | |
16028 | ||
16029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16032 | { |
16033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16034 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
16035 | ||
16036 | wxPyEndAllowThreads(__tstate); | |
16037 | if (PyErr_Occurred()) SWIG_fail; | |
16038 | } | |
16039 | { | |
16040 | #if wxUSE_UNICODE | |
16041 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16042 | #else | |
16043 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16044 | #endif | |
16045 | } | |
16046 | return resultobj; | |
16047 | fail: | |
16048 | return NULL; | |
16049 | } | |
16050 | ||
16051 | ||
16052 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16053 | PyObject *resultobj; | |
16054 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16055 | wxString result; | |
16056 | PyObject * obj0 = 0 ; | |
16057 | char *kwnames[] = { | |
16058 | (char *) "self", NULL | |
16059 | }; | |
16060 | ||
16061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16064 | { |
16065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16066 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
16067 | ||
16068 | wxPyEndAllowThreads(__tstate); | |
16069 | if (PyErr_Occurred()) SWIG_fail; | |
16070 | } | |
16071 | { | |
16072 | #if wxUSE_UNICODE | |
16073 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16074 | #else | |
16075 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16076 | #endif | |
16077 | } | |
16078 | return resultobj; | |
16079 | fail: | |
16080 | return NULL; | |
16081 | } | |
16082 | ||
16083 | ||
16084 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16085 | PyObject *resultobj; | |
16086 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16087 | wxString *arg2 = 0 ; | |
e811c8ce | 16088 | bool temp2 = False ; |
d14a1e28 RD |
16089 | PyObject * obj0 = 0 ; |
16090 | PyObject * obj1 = 0 ; | |
16091 | char *kwnames[] = { | |
16092 | (char *) "self",(char *) "appName", NULL | |
16093 | }; | |
16094 | ||
16095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16098 | { |
16099 | arg2 = wxString_in_helper(obj1); | |
16100 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16101 | temp2 = True; |
d14a1e28 RD |
16102 | } |
16103 | { | |
16104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16105 | (arg1)->SetAppName((wxString const &)*arg2); | |
16106 | ||
16107 | wxPyEndAllowThreads(__tstate); | |
16108 | if (PyErr_Occurred()) SWIG_fail; | |
16109 | } | |
16110 | Py_INCREF(Py_None); resultobj = Py_None; | |
16111 | { | |
16112 | if (temp2) | |
16113 | delete arg2; | |
16114 | } | |
16115 | return resultobj; | |
16116 | fail: | |
16117 | { | |
16118 | if (temp2) | |
16119 | delete arg2; | |
16120 | } | |
16121 | return NULL; | |
16122 | } | |
16123 | ||
16124 | ||
16125 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16126 | PyObject *resultobj; | |
16127 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16128 | wxString *arg2 = 0 ; | |
e811c8ce | 16129 | bool temp2 = False ; |
d14a1e28 RD |
16130 | PyObject * obj0 = 0 ; |
16131 | PyObject * obj1 = 0 ; | |
16132 | char *kwnames[] = { | |
16133 | (char *) "self",(char *) "vendorName", NULL | |
16134 | }; | |
16135 | ||
16136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16139 | { |
16140 | arg2 = wxString_in_helper(obj1); | |
16141 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16142 | temp2 = True; |
d14a1e28 RD |
16143 | } |
16144 | { | |
16145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16146 | (arg1)->SetVendorName((wxString const &)*arg2); | |
16147 | ||
16148 | wxPyEndAllowThreads(__tstate); | |
16149 | if (PyErr_Occurred()) SWIG_fail; | |
16150 | } | |
16151 | Py_INCREF(Py_None); resultobj = Py_None; | |
16152 | { | |
16153 | if (temp2) | |
16154 | delete arg2; | |
16155 | } | |
16156 | return resultobj; | |
16157 | fail: | |
16158 | { | |
16159 | if (temp2) | |
16160 | delete arg2; | |
16161 | } | |
16162 | return NULL; | |
16163 | } | |
16164 | ||
16165 | ||
16166 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16167 | PyObject *resultobj; | |
16168 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16169 | long arg2 ; | |
16170 | PyObject * obj0 = 0 ; | |
994141e6 | 16171 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16172 | char *kwnames[] = { |
16173 | (char *) "self",(char *) "style", NULL | |
16174 | }; | |
16175 | ||
994141e6 | 16176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16179 | arg2 = (long) SWIG_AsLong(obj1); | |
16180 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16181 | { |
16182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16183 | (arg1)->SetStyle(arg2); | |
16184 | ||
16185 | wxPyEndAllowThreads(__tstate); | |
16186 | if (PyErr_Occurred()) SWIG_fail; | |
16187 | } | |
16188 | Py_INCREF(Py_None); resultobj = Py_None; | |
16189 | return resultobj; | |
16190 | fail: | |
16191 | return NULL; | |
16192 | } | |
16193 | ||
16194 | ||
16195 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16196 | PyObject *resultobj; | |
16197 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16198 | long result; | |
16199 | PyObject * obj0 = 0 ; | |
16200 | char *kwnames[] = { | |
16201 | (char *) "self", NULL | |
16202 | }; | |
16203 | ||
16204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16207 | { |
16208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16209 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
16210 | ||
16211 | wxPyEndAllowThreads(__tstate); | |
16212 | if (PyErr_Occurred()) SWIG_fail; | |
16213 | } | |
15afbcd0 | 16214 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
16215 | return resultobj; |
16216 | fail: | |
16217 | return NULL; | |
16218 | } | |
16219 | ||
16220 | ||
16221 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
16222 | PyObject *obj; | |
16223 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16224 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
16225 | Py_INCREF(obj); | |
16226 | return Py_BuildValue((char *)""); | |
16227 | } | |
d14a1e28 RD |
16228 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { |
16229 | PyObject *resultobj; | |
16230 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16231 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16232 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16233 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16234 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16235 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16236 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16237 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4f89f6a3 | 16238 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; |
d14a1e28 | 16239 | wxConfig *result; |
e811c8ce RD |
16240 | bool temp1 = False ; |
16241 | bool temp2 = False ; | |
16242 | bool temp3 = False ; | |
16243 | bool temp4 = False ; | |
d14a1e28 RD |
16244 | PyObject * obj0 = 0 ; |
16245 | PyObject * obj1 = 0 ; | |
16246 | PyObject * obj2 = 0 ; | |
16247 | PyObject * obj3 = 0 ; | |
994141e6 | 16248 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16249 | char *kwnames[] = { |
16250 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16251 | }; | |
16252 | ||
994141e6 | 16253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
16254 | if (obj0) { |
16255 | { | |
16256 | arg1 = wxString_in_helper(obj0); | |
16257 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16258 | temp1 = True; |
d14a1e28 RD |
16259 | } |
16260 | } | |
16261 | if (obj1) { | |
16262 | { | |
16263 | arg2 = wxString_in_helper(obj1); | |
16264 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16265 | temp2 = True; |
d14a1e28 RD |
16266 | } |
16267 | } | |
16268 | if (obj2) { | |
16269 | { | |
16270 | arg3 = wxString_in_helper(obj2); | |
16271 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16272 | temp3 = True; |
d14a1e28 RD |
16273 | } |
16274 | } | |
16275 | if (obj3) { | |
16276 | { | |
16277 | arg4 = wxString_in_helper(obj3); | |
16278 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 16279 | temp4 = True; |
d14a1e28 RD |
16280 | } |
16281 | } | |
994141e6 | 16282 | if (obj4) { |
15afbcd0 RD |
16283 | arg5 = (long) SWIG_AsLong(obj4); |
16284 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16285 | } |
d14a1e28 RD |
16286 | { |
16287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16288 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16289 | ||
16290 | wxPyEndAllowThreads(__tstate); | |
16291 | if (PyErr_Occurred()) SWIG_fail; | |
16292 | } | |
15afbcd0 | 16293 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); |
d14a1e28 RD |
16294 | { |
16295 | if (temp1) | |
16296 | delete arg1; | |
16297 | } | |
16298 | { | |
16299 | if (temp2) | |
16300 | delete arg2; | |
16301 | } | |
16302 | { | |
16303 | if (temp3) | |
16304 | delete arg3; | |
16305 | } | |
16306 | { | |
16307 | if (temp4) | |
16308 | delete arg4; | |
16309 | } | |
16310 | return resultobj; | |
16311 | fail: | |
16312 | { | |
16313 | if (temp1) | |
16314 | delete arg1; | |
16315 | } | |
16316 | { | |
16317 | if (temp2) | |
16318 | delete arg2; | |
16319 | } | |
16320 | { | |
16321 | if (temp3) | |
16322 | delete arg3; | |
16323 | } | |
16324 | { | |
16325 | if (temp4) | |
16326 | delete arg4; | |
16327 | } | |
16328 | return NULL; | |
16329 | } | |
16330 | ||
16331 | ||
16332 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16333 | PyObject *resultobj; | |
16334 | wxConfig *arg1 = (wxConfig *) 0 ; | |
16335 | PyObject * obj0 = 0 ; | |
16336 | char *kwnames[] = { | |
16337 | (char *) "self", NULL | |
16338 | }; | |
16339 | ||
16340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig, |
16342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16343 | { |
16344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16345 | delete arg1; | |
16346 | ||
16347 | wxPyEndAllowThreads(__tstate); | |
16348 | if (PyErr_Occurred()) SWIG_fail; | |
16349 | } | |
16350 | Py_INCREF(Py_None); resultobj = Py_None; | |
16351 | return resultobj; | |
16352 | fail: | |
16353 | return NULL; | |
16354 | } | |
16355 | ||
16356 | ||
16357 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
16358 | PyObject *obj; | |
16359 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16360 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
16361 | Py_INCREF(obj); | |
16362 | return Py_BuildValue((char *)""); | |
16363 | } | |
16364 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16365 | PyObject *resultobj; | |
16366 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16367 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16368 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16369 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16370 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16371 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16372 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16373 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4276dc52 | 16374 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; |
d14a1e28 | 16375 | wxFileConfig *result; |
e811c8ce RD |
16376 | bool temp1 = False ; |
16377 | bool temp2 = False ; | |
16378 | bool temp3 = False ; | |
16379 | bool temp4 = False ; | |
d14a1e28 RD |
16380 | PyObject * obj0 = 0 ; |
16381 | PyObject * obj1 = 0 ; | |
16382 | PyObject * obj2 = 0 ; | |
16383 | PyObject * obj3 = 0 ; | |
994141e6 | 16384 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16385 | char *kwnames[] = { |
16386 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16387 | }; | |
16388 | ||
994141e6 | 16389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
16390 | if (obj0) { |
16391 | { | |
16392 | arg1 = wxString_in_helper(obj0); | |
16393 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16394 | temp1 = True; |
d14a1e28 RD |
16395 | } |
16396 | } | |
16397 | if (obj1) { | |
16398 | { | |
16399 | arg2 = wxString_in_helper(obj1); | |
16400 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16401 | temp2 = True; |
d14a1e28 RD |
16402 | } |
16403 | } | |
16404 | if (obj2) { | |
16405 | { | |
16406 | arg3 = wxString_in_helper(obj2); | |
16407 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16408 | temp3 = True; |
d14a1e28 RD |
16409 | } |
16410 | } | |
16411 | if (obj3) { | |
16412 | { | |
16413 | arg4 = wxString_in_helper(obj3); | |
16414 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 16415 | temp4 = True; |
d14a1e28 RD |
16416 | } |
16417 | } | |
994141e6 | 16418 | if (obj4) { |
15afbcd0 RD |
16419 | arg5 = (long) SWIG_AsLong(obj4); |
16420 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16421 | } |
d14a1e28 RD |
16422 | { |
16423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16424 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16425 | ||
16426 | wxPyEndAllowThreads(__tstate); | |
16427 | if (PyErr_Occurred()) SWIG_fail; | |
16428 | } | |
15afbcd0 | 16429 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); |
d14a1e28 RD |
16430 | { |
16431 | if (temp1) | |
16432 | delete arg1; | |
16433 | } | |
16434 | { | |
16435 | if (temp2) | |
16436 | delete arg2; | |
16437 | } | |
16438 | { | |
16439 | if (temp3) | |
16440 | delete arg3; | |
16441 | } | |
16442 | { | |
16443 | if (temp4) | |
16444 | delete arg4; | |
16445 | } | |
16446 | return resultobj; | |
16447 | fail: | |
16448 | { | |
16449 | if (temp1) | |
16450 | delete arg1; | |
16451 | } | |
16452 | { | |
16453 | if (temp2) | |
16454 | delete arg2; | |
16455 | } | |
16456 | { | |
16457 | if (temp3) | |
16458 | delete arg3; | |
16459 | } | |
16460 | { | |
16461 | if (temp4) | |
16462 | delete arg4; | |
16463 | } | |
16464 | return NULL; | |
16465 | } | |
16466 | ||
16467 | ||
16468 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16469 | PyObject *resultobj; | |
16470 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
16471 | PyObject * obj0 = 0 ; | |
16472 | char *kwnames[] = { | |
16473 | (char *) "self", NULL | |
16474 | }; | |
16475 | ||
16476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig, |
16478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16479 | { |
16480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16481 | delete arg1; | |
16482 | ||
16483 | wxPyEndAllowThreads(__tstate); | |
16484 | if (PyErr_Occurred()) SWIG_fail; | |
16485 | } | |
16486 | Py_INCREF(Py_None); resultobj = Py_None; | |
16487 | return resultobj; | |
16488 | fail: | |
16489 | return NULL; | |
16490 | } | |
16491 | ||
16492 | ||
16493 | static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
16494 | PyObject *obj; | |
16495 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16496 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
16497 | Py_INCREF(obj); | |
16498 | return Py_BuildValue((char *)""); | |
16499 | } | |
b88bce5f RD |
16500 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { |
16501 | PyObject *resultobj; | |
16502 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16503 | wxString *arg2 = 0 ; | |
16504 | wxConfigPathChanger *result; | |
16505 | bool temp2 = False ; | |
16506 | PyObject * obj0 = 0 ; | |
16507 | PyObject * obj1 = 0 ; | |
16508 | char *kwnames[] = { | |
16509 | (char *) "config",(char *) "entry", NULL | |
16510 | }; | |
16511 | ||
16512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
16515 | { |
16516 | arg2 = wxString_in_helper(obj1); | |
16517 | if (arg2 == NULL) SWIG_fail; | |
16518 | temp2 = True; | |
16519 | } | |
16520 | { | |
16521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16522 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
16523 | ||
16524 | wxPyEndAllowThreads(__tstate); | |
16525 | if (PyErr_Occurred()) SWIG_fail; | |
16526 | } | |
15afbcd0 | 16527 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); |
b88bce5f RD |
16528 | { |
16529 | if (temp2) | |
16530 | delete arg2; | |
16531 | } | |
16532 | return resultobj; | |
16533 | fail: | |
16534 | { | |
16535 | if (temp2) | |
16536 | delete arg2; | |
16537 | } | |
16538 | return NULL; | |
16539 | } | |
16540 | ||
16541 | ||
16542 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16543 | PyObject *resultobj; | |
16544 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16545 | PyObject * obj0 = 0 ; | |
16546 | char *kwnames[] = { | |
16547 | (char *) "self", NULL | |
16548 | }; | |
16549 | ||
16550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, |
16552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
16553 | { |
16554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16555 | delete arg1; | |
16556 | ||
16557 | wxPyEndAllowThreads(__tstate); | |
16558 | if (PyErr_Occurred()) SWIG_fail; | |
16559 | } | |
16560 | Py_INCREF(Py_None); resultobj = Py_None; | |
16561 | return resultobj; | |
16562 | fail: | |
16563 | return NULL; | |
16564 | } | |
16565 | ||
16566 | ||
16567 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16568 | PyObject *resultobj; | |
16569 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16570 | wxString *result; | |
16571 | PyObject * obj0 = 0 ; | |
16572 | char *kwnames[] = { | |
16573 | (char *) "self", NULL | |
16574 | }; | |
16575 | ||
16576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, |
16578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
16579 | { |
16580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16581 | { | |
16582 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
16583 | result = (wxString *) &_result_ref; | |
16584 | } | |
16585 | ||
16586 | wxPyEndAllowThreads(__tstate); | |
16587 | if (PyErr_Occurred()) SWIG_fail; | |
16588 | } | |
16589 | { | |
16590 | #if wxUSE_UNICODE | |
16591 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16592 | #else | |
16593 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16594 | #endif | |
16595 | } | |
16596 | return resultobj; | |
16597 | fail: | |
16598 | return NULL; | |
16599 | } | |
16600 | ||
16601 | ||
16602 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
16603 | PyObject *obj; | |
16604 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16605 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
16606 | Py_INCREF(obj); | |
16607 | return Py_BuildValue((char *)""); | |
16608 | } | |
d14a1e28 RD |
16609 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
16610 | PyObject *resultobj; | |
16611 | wxString *arg1 = 0 ; | |
16612 | wxString result; | |
e811c8ce | 16613 | bool temp1 = False ; |
d14a1e28 RD |
16614 | PyObject * obj0 = 0 ; |
16615 | char *kwnames[] = { | |
16616 | (char *) "sz", NULL | |
16617 | }; | |
16618 | ||
16619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
16620 | { | |
16621 | arg1 = wxString_in_helper(obj0); | |
16622 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16623 | temp1 = True; |
d14a1e28 RD |
16624 | } |
16625 | { | |
16626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16627 | result = wxExpandEnvVars((wxString const &)*arg1); | |
16628 | ||
16629 | wxPyEndAllowThreads(__tstate); | |
16630 | if (PyErr_Occurred()) SWIG_fail; | |
16631 | } | |
16632 | { | |
16633 | #if wxUSE_UNICODE | |
16634 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16635 | #else | |
16636 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16637 | #endif | |
16638 | } | |
16639 | { | |
16640 | if (temp1) | |
16641 | delete arg1; | |
16642 | } | |
16643 | return resultobj; | |
16644 | fail: | |
16645 | { | |
16646 | if (temp1) | |
16647 | delete arg1; | |
16648 | } | |
16649 | return NULL; | |
16650 | } | |
16651 | ||
16652 | ||
b2dc1044 RD |
16653 | static int _wrap_DateFormatStr_set(PyObject *_val) { |
16654 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); | |
16655 | return 1; | |
16656 | } | |
16657 | ||
16658 | ||
16659 | static PyObject *_wrap_DateFormatStr_get() { | |
16660 | PyObject *pyobj; | |
16661 | ||
16662 | { | |
16663 | #if wxUSE_UNICODE | |
16664 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16665 | #else | |
16666 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16667 | #endif | |
16668 | } | |
16669 | return pyobj; | |
16670 | } | |
16671 | ||
16672 | ||
16673 | static int _wrap_TimeSpanFormatStr_set(PyObject *_val) { | |
16674 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); | |
16675 | return 1; | |
16676 | } | |
16677 | ||
16678 | ||
16679 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
16680 | PyObject *pyobj; | |
16681 | ||
16682 | { | |
16683 | #if wxUSE_UNICODE | |
16684 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16685 | #else | |
16686 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16687 | #endif | |
16688 | } | |
16689 | return pyobj; | |
16690 | } | |
16691 | ||
16692 | ||
d14a1e28 RD |
16693 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { |
16694 | PyObject *resultobj; | |
16695 | int arg1 ; | |
994141e6 | 16696 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16697 | char *kwnames[] = { |
16698 | (char *) "country", NULL | |
16699 | }; | |
16700 | ||
994141e6 | 16701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
16702 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); |
16703 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16704 | { |
16705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16706 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
16707 | ||
16708 | wxPyEndAllowThreads(__tstate); | |
16709 | if (PyErr_Occurred()) SWIG_fail; | |
16710 | } | |
16711 | Py_INCREF(Py_None); resultobj = Py_None; | |
16712 | return resultobj; | |
16713 | fail: | |
16714 | return NULL; | |
16715 | } | |
16716 | ||
16717 | ||
16718 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16719 | PyObject *resultobj; | |
16720 | int result; | |
16721 | char *kwnames[] = { | |
16722 | NULL | |
16723 | }; | |
16724 | ||
16725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
16726 | { | |
16727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16728 | result = (int)wxDateTime::GetCountry(); | |
16729 | ||
16730 | wxPyEndAllowThreads(__tstate); | |
16731 | if (PyErr_Occurred()) SWIG_fail; | |
16732 | } | |
15afbcd0 | 16733 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16734 | return resultobj; |
16735 | fail: | |
16736 | return NULL; | |
16737 | } | |
16738 | ||
16739 | ||
16740 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16741 | PyObject *resultobj; | |
16742 | int arg1 = (int) wxDateTime::Country_Default ; | |
16743 | bool result; | |
994141e6 | 16744 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16745 | char *kwnames[] = { |
16746 | (char *) "country", NULL | |
16747 | }; | |
16748 | ||
994141e6 RD |
16749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; |
16750 | if (obj0) { | |
15afbcd0 RD |
16751 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); |
16752 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16753 | } |
d14a1e28 RD |
16754 | { |
16755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16756 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
16757 | ||
16758 | wxPyEndAllowThreads(__tstate); | |
16759 | if (PyErr_Occurred()) SWIG_fail; | |
16760 | } | |
4f89f6a3 RD |
16761 | { |
16762 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16763 | } | |
d14a1e28 RD |
16764 | return resultobj; |
16765 | fail: | |
16766 | return NULL; | |
16767 | } | |
16768 | ||
16769 | ||
16770 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16771 | PyObject *resultobj; | |
16772 | int arg1 = (int) wxDateTime::Gregorian ; | |
16773 | int result; | |
994141e6 | 16774 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16775 | char *kwnames[] = { |
16776 | (char *) "cal", NULL | |
16777 | }; | |
16778 | ||
994141e6 RD |
16779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; |
16780 | if (obj0) { | |
15afbcd0 RD |
16781 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); |
16782 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16783 | } |
d14a1e28 RD |
16784 | { |
16785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16786 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
16787 | ||
16788 | wxPyEndAllowThreads(__tstate); | |
16789 | if (PyErr_Occurred()) SWIG_fail; | |
16790 | } | |
15afbcd0 | 16791 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16792 | return resultobj; |
16793 | fail: | |
16794 | return NULL; | |
16795 | } | |
16796 | ||
16797 | ||
16798 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16799 | PyObject *resultobj; | |
16800 | int arg1 ; | |
16801 | int result; | |
994141e6 | 16802 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16803 | char *kwnames[] = { |
16804 | (char *) "year", NULL | |
16805 | }; | |
16806 | ||
994141e6 | 16807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
16808 | arg1 = (int) SWIG_AsInt(obj0); |
16809 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16810 | { |
16811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16812 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
16813 | ||
16814 | wxPyEndAllowThreads(__tstate); | |
16815 | if (PyErr_Occurred()) SWIG_fail; | |
16816 | } | |
15afbcd0 | 16817 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16818 | return resultobj; |
16819 | fail: | |
16820 | return NULL; | |
16821 | } | |
16822 | ||
16823 | ||
16824 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16825 | PyObject *resultobj; | |
16826 | int arg1 = (int) wxDateTime::Gregorian ; | |
16827 | int result; | |
994141e6 | 16828 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16829 | char *kwnames[] = { |
16830 | (char *) "cal", NULL | |
16831 | }; | |
16832 | ||
994141e6 RD |
16833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; |
16834 | if (obj0) { | |
15afbcd0 RD |
16835 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); |
16836 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16837 | } |
d14a1e28 RD |
16838 | { |
16839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16840 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
16841 | ||
16842 | wxPyEndAllowThreads(__tstate); | |
16843 | if (PyErr_Occurred()) SWIG_fail; | |
16844 | } | |
15afbcd0 | 16845 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16846 | return resultobj; |
16847 | fail: | |
16848 | return NULL; | |
16849 | } | |
16850 | ||
16851 | ||
16852 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16853 | PyObject *resultobj; | |
16854 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16855 | int arg2 = (int) wxDateTime::Gregorian ; | |
16856 | bool result; | |
994141e6 RD |
16857 | PyObject * obj0 = 0 ; |
16858 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16859 | char *kwnames[] = { |
16860 | (char *) "year",(char *) "cal", NULL | |
16861 | }; | |
16862 | ||
994141e6 RD |
16863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; |
16864 | if (obj0) { | |
15afbcd0 RD |
16865 | arg1 = (int) SWIG_AsInt(obj0); |
16866 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
16867 | } |
16868 | if (obj1) { | |
15afbcd0 RD |
16869 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); |
16870 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16871 | } |
d14a1e28 RD |
16872 | { |
16873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16874 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
16875 | ||
16876 | wxPyEndAllowThreads(__tstate); | |
16877 | if (PyErr_Occurred()) SWIG_fail; | |
16878 | } | |
4f89f6a3 RD |
16879 | { |
16880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16881 | } | |
d14a1e28 RD |
16882 | return resultobj; |
16883 | fail: | |
16884 | return NULL; | |
16885 | } | |
16886 | ||
16887 | ||
16888 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16889 | PyObject *resultobj; | |
16890 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16891 | int result; | |
994141e6 | 16892 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16893 | char *kwnames[] = { |
16894 | (char *) "year", NULL | |
16895 | }; | |
16896 | ||
994141e6 RD |
16897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; |
16898 | if (obj0) { | |
15afbcd0 RD |
16899 | arg1 = (int) SWIG_AsInt(obj0); |
16900 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16901 | } |
d14a1e28 RD |
16902 | { |
16903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16904 | result = (int)wxDateTime::GetCentury(arg1); | |
16905 | ||
16906 | wxPyEndAllowThreads(__tstate); | |
16907 | if (PyErr_Occurred()) SWIG_fail; | |
16908 | } | |
15afbcd0 | 16909 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16910 | return resultobj; |
16911 | fail: | |
16912 | return NULL; | |
16913 | } | |
16914 | ||
16915 | ||
16916 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16917 | PyObject *resultobj; | |
16918 | int arg1 ; | |
16919 | int arg2 = (int) wxDateTime::Gregorian ; | |
322913ce | 16920 | int result; |
994141e6 RD |
16921 | PyObject * obj0 = 0 ; |
16922 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16923 | char *kwnames[] = { |
16924 | (char *) "year",(char *) "cal", NULL | |
16925 | }; | |
16926 | ||
994141e6 | 16927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16928 | arg1 = (int) SWIG_AsInt(obj0); |
16929 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16930 | if (obj1) { |
15afbcd0 RD |
16931 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); |
16932 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16933 | } |
d14a1e28 RD |
16934 | { |
16935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 16936 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); |
d14a1e28 RD |
16937 | |
16938 | wxPyEndAllowThreads(__tstate); | |
16939 | if (PyErr_Occurred()) SWIG_fail; | |
16940 | } | |
15afbcd0 | 16941 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16942 | return resultobj; |
16943 | fail: | |
16944 | return NULL; | |
16945 | } | |
16946 | ||
16947 | ||
16948 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16949 | PyObject *resultobj; | |
16950 | int arg1 ; | |
16951 | int arg2 = (int) wxDateTime::Inv_Year ; | |
16952 | int arg3 = (int) wxDateTime::Gregorian ; | |
322913ce | 16953 | int result; |
994141e6 RD |
16954 | PyObject * obj0 = 0 ; |
16955 | PyObject * obj1 = 0 ; | |
16956 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16957 | char *kwnames[] = { |
16958 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
16959 | }; | |
16960 | ||
994141e6 | 16961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
16962 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); |
16963 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16964 | if (obj1) { |
15afbcd0 RD |
16965 | arg2 = (int) SWIG_AsInt(obj1); |
16966 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
16967 | } |
16968 | if (obj2) { | |
15afbcd0 RD |
16969 | arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2); |
16970 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16971 | } |
d14a1e28 RD |
16972 | { |
16973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 16974 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); |
d14a1e28 RD |
16975 | |
16976 | wxPyEndAllowThreads(__tstate); | |
16977 | if (PyErr_Occurred()) SWIG_fail; | |
16978 | } | |
15afbcd0 | 16979 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16980 | return resultobj; |
16981 | fail: | |
16982 | return NULL; | |
16983 | } | |
16984 | ||
16985 | ||
16986 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16987 | PyObject *resultobj; | |
16988 | int arg1 ; | |
16989 | int arg2 = (int) wxDateTime::Name_Full ; | |
16990 | wxString result; | |
994141e6 RD |
16991 | PyObject * obj0 = 0 ; |
16992 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16993 | char *kwnames[] = { |
16994 | (char *) "month",(char *) "flags", NULL | |
16995 | }; | |
16996 | ||
994141e6 | 16997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16998 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); |
16999 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17000 | if (obj1) { |
15afbcd0 RD |
17001 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); |
17002 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17003 | } |
d14a1e28 RD |
17004 | { |
17005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17006 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
17007 | ||
17008 | wxPyEndAllowThreads(__tstate); | |
17009 | if (PyErr_Occurred()) SWIG_fail; | |
17010 | } | |
17011 | { | |
17012 | #if wxUSE_UNICODE | |
17013 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17014 | #else | |
17015 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17016 | #endif | |
17017 | } | |
17018 | return resultobj; | |
17019 | fail: | |
17020 | return NULL; | |
17021 | } | |
17022 | ||
17023 | ||
17024 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17025 | PyObject *resultobj; | |
17026 | int arg1 ; | |
17027 | int arg2 = (int) wxDateTime::Name_Full ; | |
17028 | wxString result; | |
994141e6 RD |
17029 | PyObject * obj0 = 0 ; |
17030 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17031 | char *kwnames[] = { |
17032 | (char *) "weekday",(char *) "flags", NULL | |
17033 | }; | |
17034 | ||
994141e6 | 17035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17036 | arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0); |
17037 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17038 | if (obj1) { |
15afbcd0 RD |
17039 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); |
17040 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17041 | } |
d14a1e28 RD |
17042 | { |
17043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17044 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
17045 | ||
17046 | wxPyEndAllowThreads(__tstate); | |
17047 | if (PyErr_Occurred()) SWIG_fail; | |
17048 | } | |
17049 | { | |
17050 | #if wxUSE_UNICODE | |
17051 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17052 | #else | |
17053 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17054 | #endif | |
17055 | } | |
17056 | return resultobj; | |
17057 | fail: | |
17058 | return NULL; | |
17059 | } | |
17060 | ||
17061 | ||
17062 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17063 | PyObject *resultobj; | |
17064 | wxString *arg1 = (wxString *) 0 ; | |
17065 | wxString *arg2 = (wxString *) 0 ; | |
7eae615b RD |
17066 | bool temp1 = False ; |
17067 | bool temp2 = False ; | |
d14a1e28 RD |
17068 | PyObject * obj0 = 0 ; |
17069 | PyObject * obj1 = 0 ; | |
17070 | char *kwnames[] = { | |
17071 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
17072 | }; | |
17073 | ||
17074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
7eae615b RD |
17075 | { |
17076 | arg1 = wxString_in_helper(obj0); | |
17077 | if (arg1 == NULL) SWIG_fail; | |
17078 | temp1 = True; | |
17079 | } | |
17080 | { | |
17081 | arg2 = wxString_in_helper(obj1); | |
17082 | if (arg2 == NULL) SWIG_fail; | |
17083 | temp2 = True; | |
17084 | } | |
d14a1e28 RD |
17085 | { |
17086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17087 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
17088 | ||
17089 | wxPyEndAllowThreads(__tstate); | |
17090 | if (PyErr_Occurred()) SWIG_fail; | |
17091 | } | |
17092 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
17093 | { |
17094 | if (temp1) | |
17095 | delete arg1; | |
17096 | } | |
17097 | { | |
17098 | if (temp2) | |
17099 | delete arg2; | |
17100 | } | |
d14a1e28 RD |
17101 | return resultobj; |
17102 | fail: | |
7eae615b RD |
17103 | { |
17104 | if (temp1) | |
17105 | delete arg1; | |
17106 | } | |
17107 | { | |
17108 | if (temp2) | |
17109 | delete arg2; | |
17110 | } | |
d14a1e28 RD |
17111 | return NULL; |
17112 | } | |
17113 | ||
17114 | ||
17115 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17116 | PyObject *resultobj; | |
17117 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17118 | int arg2 = (int) wxDateTime::Country_Default ; | |
17119 | bool result; | |
994141e6 RD |
17120 | PyObject * obj0 = 0 ; |
17121 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17122 | char *kwnames[] = { |
17123 | (char *) "year",(char *) "country", NULL | |
17124 | }; | |
17125 | ||
994141e6 RD |
17126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; |
17127 | if (obj0) { | |
15afbcd0 RD |
17128 | arg1 = (int) SWIG_AsInt(obj0); |
17129 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17130 | } |
17131 | if (obj1) { | |
15afbcd0 RD |
17132 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
17133 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17134 | } |
d14a1e28 RD |
17135 | { |
17136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17137 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
17138 | ||
17139 | wxPyEndAllowThreads(__tstate); | |
17140 | if (PyErr_Occurred()) SWIG_fail; | |
17141 | } | |
4f89f6a3 RD |
17142 | { |
17143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17144 | } | |
d14a1e28 RD |
17145 | return resultobj; |
17146 | fail: | |
17147 | return NULL; | |
17148 | } | |
17149 | ||
17150 | ||
17151 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17152 | PyObject *resultobj; | |
17153 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17154 | int arg2 = (int) wxDateTime::Country_Default ; | |
17155 | wxDateTime result; | |
994141e6 RD |
17156 | PyObject * obj0 = 0 ; |
17157 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17158 | char *kwnames[] = { |
17159 | (char *) "year",(char *) "country", NULL | |
17160 | }; | |
17161 | ||
994141e6 RD |
17162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; |
17163 | if (obj0) { | |
15afbcd0 RD |
17164 | arg1 = (int) SWIG_AsInt(obj0); |
17165 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17166 | } |
17167 | if (obj1) { | |
15afbcd0 RD |
17168 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
17169 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17170 | } |
d14a1e28 RD |
17171 | { |
17172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17173 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
17174 | ||
17175 | wxPyEndAllowThreads(__tstate); | |
17176 | if (PyErr_Occurred()) SWIG_fail; | |
17177 | } | |
17178 | { | |
17179 | wxDateTime * resultptr; | |
17180 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17181 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17182 | } |
17183 | return resultobj; | |
17184 | fail: | |
17185 | return NULL; | |
17186 | } | |
17187 | ||
17188 | ||
17189 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17190 | PyObject *resultobj; | |
17191 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17192 | int arg2 = (int) wxDateTime::Country_Default ; | |
17193 | wxDateTime result; | |
994141e6 RD |
17194 | PyObject * obj0 = 0 ; |
17195 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17196 | char *kwnames[] = { |
17197 | (char *) "year",(char *) "country", NULL | |
17198 | }; | |
17199 | ||
994141e6 RD |
17200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; |
17201 | if (obj0) { | |
15afbcd0 RD |
17202 | arg1 = (int) SWIG_AsInt(obj0); |
17203 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17204 | } |
17205 | if (obj1) { | |
15afbcd0 RD |
17206 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
17207 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17208 | } |
d14a1e28 RD |
17209 | { |
17210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17211 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
17212 | ||
17213 | wxPyEndAllowThreads(__tstate); | |
17214 | if (PyErr_Occurred()) SWIG_fail; | |
17215 | } | |
17216 | { | |
17217 | wxDateTime * resultptr; | |
17218 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17219 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17220 | } |
17221 | return resultobj; | |
17222 | fail: | |
17223 | return NULL; | |
17224 | } | |
17225 | ||
17226 | ||
17227 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17228 | PyObject *resultobj; | |
17229 | wxDateTime result; | |
17230 | char *kwnames[] = { | |
17231 | NULL | |
17232 | }; | |
17233 | ||
17234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
17235 | { | |
17236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17237 | result = wxDateTime::Now(); | |
17238 | ||
17239 | wxPyEndAllowThreads(__tstate); | |
17240 | if (PyErr_Occurred()) SWIG_fail; | |
17241 | } | |
17242 | { | |
17243 | wxDateTime * resultptr; | |
17244 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17245 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17246 | } |
17247 | return resultobj; | |
17248 | fail: | |
17249 | return NULL; | |
17250 | } | |
17251 | ||
17252 | ||
17253 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17254 | PyObject *resultobj; | |
17255 | wxDateTime result; | |
17256 | char *kwnames[] = { | |
17257 | NULL | |
17258 | }; | |
17259 | ||
17260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
17261 | { | |
17262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17263 | result = wxDateTime::UNow(); | |
17264 | ||
17265 | wxPyEndAllowThreads(__tstate); | |
17266 | if (PyErr_Occurred()) SWIG_fail; | |
17267 | } | |
17268 | { | |
17269 | wxDateTime * resultptr; | |
17270 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17271 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17272 | } |
17273 | return resultobj; | |
17274 | fail: | |
17275 | return NULL; | |
17276 | } | |
17277 | ||
17278 | ||
17279 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17280 | PyObject *resultobj; | |
17281 | wxDateTime result; | |
17282 | char *kwnames[] = { | |
17283 | NULL | |
17284 | }; | |
17285 | ||
17286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
17287 | { | |
17288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17289 | result = wxDateTime::Today(); | |
17290 | ||
17291 | wxPyEndAllowThreads(__tstate); | |
17292 | if (PyErr_Occurred()) SWIG_fail; | |
17293 | } | |
17294 | { | |
17295 | wxDateTime * resultptr; | |
17296 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17297 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17298 | } |
17299 | return resultobj; | |
17300 | fail: | |
17301 | return NULL; | |
17302 | } | |
17303 | ||
17304 | ||
17305 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17306 | PyObject *resultobj; | |
17307 | wxDateTime *result; | |
17308 | char *kwnames[] = { | |
17309 | NULL | |
17310 | }; | |
17311 | ||
17312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
17313 | { | |
17314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17315 | result = (wxDateTime *)new wxDateTime(); | |
17316 | ||
17317 | wxPyEndAllowThreads(__tstate); | |
17318 | if (PyErr_Occurred()) SWIG_fail; | |
17319 | } | |
15afbcd0 | 17320 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17321 | return resultobj; |
17322 | fail: | |
17323 | return NULL; | |
17324 | } | |
17325 | ||
17326 | ||
17327 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17328 | PyObject *resultobj; | |
17329 | time_t arg1 ; | |
17330 | wxDateTime *result; | |
17331 | PyObject * obj0 = 0 ; | |
17332 | char *kwnames[] = { | |
17333 | (char *) "timet", NULL | |
17334 | }; | |
17335 | ||
17336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17337 | arg1 = (time_t) SWIG_AsUnsignedInt(obj0); |
17338 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17339 | { |
17340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17341 | result = (wxDateTime *)new wxDateTime(arg1); | |
17342 | ||
17343 | wxPyEndAllowThreads(__tstate); | |
17344 | if (PyErr_Occurred()) SWIG_fail; | |
17345 | } | |
15afbcd0 | 17346 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17347 | return resultobj; |
17348 | fail: | |
17349 | return NULL; | |
17350 | } | |
17351 | ||
17352 | ||
17353 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17354 | PyObject *resultobj; | |
17355 | double arg1 ; | |
17356 | wxDateTime *result; | |
994141e6 | 17357 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17358 | char *kwnames[] = { |
17359 | (char *) "jdn", NULL | |
17360 | }; | |
17361 | ||
994141e6 | 17362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17363 | arg1 = (double) SWIG_AsDouble(obj0); |
17364 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17365 | { |
17366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17367 | result = (wxDateTime *)new wxDateTime(arg1); | |
17368 | ||
17369 | wxPyEndAllowThreads(__tstate); | |
17370 | if (PyErr_Occurred()) SWIG_fail; | |
17371 | } | |
15afbcd0 | 17372 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17373 | return resultobj; |
17374 | fail: | |
17375 | return NULL; | |
17376 | } | |
17377 | ||
17378 | ||
17379 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17380 | PyObject *resultobj; | |
322913ce RD |
17381 | int arg1 ; |
17382 | int arg2 = (int) 0 ; | |
17383 | int arg3 = (int) 0 ; | |
17384 | int arg4 = (int) 0 ; | |
d14a1e28 | 17385 | wxDateTime *result; |
994141e6 RD |
17386 | PyObject * obj0 = 0 ; |
17387 | PyObject * obj1 = 0 ; | |
17388 | PyObject * obj2 = 0 ; | |
17389 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
17390 | char *kwnames[] = { |
17391 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17392 | }; | |
17393 | ||
994141e6 | 17394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
17395 | arg1 = (int) SWIG_AsInt(obj0); |
17396 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17397 | if (obj1) { |
15afbcd0 RD |
17398 | arg2 = (int) SWIG_AsInt(obj1); |
17399 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17400 | } |
17401 | if (obj2) { | |
15afbcd0 RD |
17402 | arg3 = (int) SWIG_AsInt(obj2); |
17403 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17404 | } |
17405 | if (obj3) { | |
15afbcd0 RD |
17406 | arg4 = (int) SWIG_AsInt(obj3); |
17407 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17408 | } |
d14a1e28 RD |
17409 | { |
17410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17411 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
17412 | ||
17413 | wxPyEndAllowThreads(__tstate); | |
17414 | if (PyErr_Occurred()) SWIG_fail; | |
17415 | } | |
15afbcd0 | 17416 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17417 | return resultobj; |
17418 | fail: | |
17419 | return NULL; | |
17420 | } | |
17421 | ||
17422 | ||
17423 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17424 | PyObject *resultobj; | |
322913ce | 17425 | int arg1 ; |
d14a1e28 RD |
17426 | int arg2 = (int) wxDateTime::Inv_Month ; |
17427 | int arg3 = (int) wxDateTime::Inv_Year ; | |
322913ce RD |
17428 | int arg4 = (int) 0 ; |
17429 | int arg5 = (int) 0 ; | |
17430 | int arg6 = (int) 0 ; | |
17431 | int arg7 = (int) 0 ; | |
d14a1e28 | 17432 | wxDateTime *result; |
994141e6 RD |
17433 | PyObject * obj0 = 0 ; |
17434 | PyObject * obj1 = 0 ; | |
17435 | PyObject * obj2 = 0 ; | |
17436 | PyObject * obj3 = 0 ; | |
17437 | PyObject * obj4 = 0 ; | |
17438 | PyObject * obj5 = 0 ; | |
17439 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
17440 | char *kwnames[] = { |
17441 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17442 | }; | |
17443 | ||
994141e6 | 17444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
17445 | arg1 = (int) SWIG_AsInt(obj0); |
17446 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17447 | if (obj1) { |
15afbcd0 RD |
17448 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
17449 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17450 | } |
17451 | if (obj2) { | |
15afbcd0 RD |
17452 | arg3 = (int) SWIG_AsInt(obj2); |
17453 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17454 | } |
17455 | if (obj3) { | |
15afbcd0 RD |
17456 | arg4 = (int) SWIG_AsInt(obj3); |
17457 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17458 | } |
17459 | if (obj4) { | |
15afbcd0 RD |
17460 | arg5 = (int) SWIG_AsInt(obj4); |
17461 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17462 | } |
17463 | if (obj5) { | |
15afbcd0 RD |
17464 | arg6 = (int) SWIG_AsInt(obj5); |
17465 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17466 | } |
17467 | if (obj6) { | |
15afbcd0 RD |
17468 | arg7 = (int) SWIG_AsInt(obj6); |
17469 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17470 | } |
d14a1e28 RD |
17471 | { |
17472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17473 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
17474 | ||
17475 | wxPyEndAllowThreads(__tstate); | |
17476 | if (PyErr_Occurred()) SWIG_fail; | |
17477 | } | |
15afbcd0 | 17478 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17479 | return resultobj; |
17480 | fail: | |
17481 | return NULL; | |
17482 | } | |
17483 | ||
17484 | ||
17485 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17486 | PyObject *resultobj; | |
17487 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17488 | PyObject * obj0 = 0 ; | |
17489 | char *kwnames[] = { | |
17490 | (char *) "self", NULL | |
17491 | }; | |
17492 | ||
17493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17496 | { |
17497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17498 | delete arg1; | |
17499 | ||
17500 | wxPyEndAllowThreads(__tstate); | |
17501 | if (PyErr_Occurred()) SWIG_fail; | |
17502 | } | |
17503 | Py_INCREF(Py_None); resultobj = Py_None; | |
17504 | return resultobj; | |
17505 | fail: | |
17506 | return NULL; | |
17507 | } | |
17508 | ||
17509 | ||
17510 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17511 | PyObject *resultobj; | |
17512 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17513 | wxDateTime *result; | |
17514 | PyObject * obj0 = 0 ; | |
17515 | char *kwnames[] = { | |
17516 | (char *) "self", NULL | |
17517 | }; | |
17518 | ||
17519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17522 | { |
17523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17524 | { | |
17525 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
17526 | result = (wxDateTime *) &_result_ref; | |
17527 | } | |
17528 | ||
17529 | wxPyEndAllowThreads(__tstate); | |
17530 | if (PyErr_Occurred()) SWIG_fail; | |
17531 | } | |
15afbcd0 | 17532 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17533 | return resultobj; |
17534 | fail: | |
17535 | return NULL; | |
17536 | } | |
17537 | ||
17538 | ||
17539 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17540 | PyObject *resultobj; | |
17541 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17542 | time_t arg2 ; | |
17543 | wxDateTime *result; | |
17544 | PyObject * obj0 = 0 ; | |
17545 | PyObject * obj1 = 0 ; | |
17546 | char *kwnames[] = { | |
17547 | (char *) "self",(char *) "timet", NULL | |
17548 | }; | |
17549 | ||
17550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17553 | arg2 = (time_t) SWIG_AsUnsignedInt(obj1); | |
17554 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17555 | { |
17556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17557 | { | |
17558 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17559 | result = (wxDateTime *) &_result_ref; | |
17560 | } | |
17561 | ||
17562 | wxPyEndAllowThreads(__tstate); | |
17563 | if (PyErr_Occurred()) SWIG_fail; | |
17564 | } | |
15afbcd0 | 17565 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17566 | return resultobj; |
17567 | fail: | |
17568 | return NULL; | |
17569 | } | |
17570 | ||
17571 | ||
17572 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17573 | PyObject *resultobj; | |
17574 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17575 | double arg2 ; | |
17576 | wxDateTime *result; | |
17577 | PyObject * obj0 = 0 ; | |
994141e6 | 17578 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17579 | char *kwnames[] = { |
17580 | (char *) "self",(char *) "jdn", NULL | |
17581 | }; | |
17582 | ||
994141e6 | 17583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17586 | arg2 = (double) SWIG_AsDouble(obj1); | |
17587 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17588 | { |
17589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17590 | { | |
17591 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17592 | result = (wxDateTime *) &_result_ref; | |
17593 | } | |
17594 | ||
17595 | wxPyEndAllowThreads(__tstate); | |
17596 | if (PyErr_Occurred()) SWIG_fail; | |
17597 | } | |
15afbcd0 | 17598 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17599 | return resultobj; |
17600 | fail: | |
17601 | return NULL; | |
17602 | } | |
17603 | ||
17604 | ||
17605 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17606 | PyObject *resultobj; | |
17607 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce RD |
17608 | int arg2 ; |
17609 | int arg3 = (int) 0 ; | |
17610 | int arg4 = (int) 0 ; | |
17611 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
17612 | wxDateTime *result; |
17613 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17614 | PyObject * obj1 = 0 ; |
17615 | PyObject * obj2 = 0 ; | |
17616 | PyObject * obj3 = 0 ; | |
17617 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
17618 | char *kwnames[] = { |
17619 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17620 | }; | |
17621 | ||
994141e6 | 17622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
17623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17625 | arg2 = (int) SWIG_AsInt(obj1); | |
17626 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17627 | if (obj2) { |
15afbcd0 RD |
17628 | arg3 = (int) SWIG_AsInt(obj2); |
17629 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17630 | } |
17631 | if (obj3) { | |
15afbcd0 RD |
17632 | arg4 = (int) SWIG_AsInt(obj3); |
17633 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17634 | } |
17635 | if (obj4) { | |
15afbcd0 RD |
17636 | arg5 = (int) SWIG_AsInt(obj4); |
17637 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17638 | } |
d14a1e28 RD |
17639 | { |
17640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17641 | { | |
17642 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
17643 | result = (wxDateTime *) &_result_ref; | |
17644 | } | |
17645 | ||
17646 | wxPyEndAllowThreads(__tstate); | |
17647 | if (PyErr_Occurred()) SWIG_fail; | |
17648 | } | |
15afbcd0 | 17649 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17650 | return resultobj; |
17651 | fail: | |
17652 | return NULL; | |
17653 | } | |
17654 | ||
17655 | ||
17656 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17657 | PyObject *resultobj; | |
17658 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17659 | int arg2 ; |
d14a1e28 RD |
17660 | int arg3 = (int) wxDateTime::Inv_Month ; |
17661 | int arg4 = (int) wxDateTime::Inv_Year ; | |
322913ce RD |
17662 | int arg5 = (int) 0 ; |
17663 | int arg6 = (int) 0 ; | |
17664 | int arg7 = (int) 0 ; | |
17665 | int arg8 = (int) 0 ; | |
d14a1e28 RD |
17666 | wxDateTime *result; |
17667 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17668 | PyObject * obj1 = 0 ; |
17669 | PyObject * obj2 = 0 ; | |
17670 | PyObject * obj3 = 0 ; | |
17671 | PyObject * obj4 = 0 ; | |
17672 | PyObject * obj5 = 0 ; | |
17673 | PyObject * obj6 = 0 ; | |
17674 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
17675 | char *kwnames[] = { |
17676 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17677 | }; | |
17678 | ||
994141e6 | 17679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
17680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17682 | arg2 = (int) SWIG_AsInt(obj1); | |
17683 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17684 | if (obj2) { |
15afbcd0 RD |
17685 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
17686 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17687 | } |
17688 | if (obj3) { | |
15afbcd0 RD |
17689 | arg4 = (int) SWIG_AsInt(obj3); |
17690 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17691 | } |
17692 | if (obj4) { | |
15afbcd0 RD |
17693 | arg5 = (int) SWIG_AsInt(obj4); |
17694 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17695 | } |
17696 | if (obj5) { | |
15afbcd0 RD |
17697 | arg6 = (int) SWIG_AsInt(obj5); |
17698 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17699 | } |
17700 | if (obj6) { | |
15afbcd0 RD |
17701 | arg7 = (int) SWIG_AsInt(obj6); |
17702 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17703 | } |
17704 | if (obj7) { | |
15afbcd0 RD |
17705 | arg8 = (int) SWIG_AsInt(obj7); |
17706 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17707 | } |
d14a1e28 RD |
17708 | { |
17709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17710 | { | |
17711 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
17712 | result = (wxDateTime *) &_result_ref; | |
17713 | } | |
17714 | ||
17715 | wxPyEndAllowThreads(__tstate); | |
17716 | if (PyErr_Occurred()) SWIG_fail; | |
17717 | } | |
15afbcd0 | 17718 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17719 | return resultobj; |
17720 | fail: | |
17721 | return NULL; | |
17722 | } | |
17723 | ||
17724 | ||
17725 | static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17726 | PyObject *resultobj; | |
17727 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17728 | wxDateTime *result; | |
17729 | PyObject * obj0 = 0 ; | |
17730 | char *kwnames[] = { | |
17731 | (char *) "self", NULL | |
17732 | }; | |
17733 | ||
17734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17737 | { |
17738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17739 | { | |
17740 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
17741 | result = (wxDateTime *) &_result_ref; | |
17742 | } | |
17743 | ||
17744 | wxPyEndAllowThreads(__tstate); | |
17745 | if (PyErr_Occurred()) SWIG_fail; | |
17746 | } | |
15afbcd0 | 17747 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17748 | return resultobj; |
17749 | fail: | |
17750 | return NULL; | |
17751 | } | |
17752 | ||
17753 | ||
17754 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17755 | PyObject *resultobj; | |
17756 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17757 | int arg2 ; | |
17758 | wxDateTime *result; | |
17759 | PyObject * obj0 = 0 ; | |
994141e6 | 17760 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17761 | char *kwnames[] = { |
17762 | (char *) "self",(char *) "year", NULL | |
17763 | }; | |
17764 | ||
994141e6 | 17765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17768 | arg2 = (int) SWIG_AsInt(obj1); | |
17769 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17770 | { |
17771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17772 | { | |
17773 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
17774 | result = (wxDateTime *) &_result_ref; | |
17775 | } | |
17776 | ||
17777 | wxPyEndAllowThreads(__tstate); | |
17778 | if (PyErr_Occurred()) SWIG_fail; | |
17779 | } | |
15afbcd0 | 17780 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17781 | return resultobj; |
17782 | fail: | |
17783 | return NULL; | |
17784 | } | |
17785 | ||
17786 | ||
17787 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17788 | PyObject *resultobj; | |
17789 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17790 | int arg2 ; | |
17791 | wxDateTime *result; | |
17792 | PyObject * obj0 = 0 ; | |
994141e6 | 17793 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17794 | char *kwnames[] = { |
17795 | (char *) "self",(char *) "month", NULL | |
17796 | }; | |
17797 | ||
994141e6 | 17798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17801 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
17802 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17803 | { |
17804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17805 | { | |
17806 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
17807 | result = (wxDateTime *) &_result_ref; | |
17808 | } | |
17809 | ||
17810 | wxPyEndAllowThreads(__tstate); | |
17811 | if (PyErr_Occurred()) SWIG_fail; | |
17812 | } | |
15afbcd0 | 17813 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17814 | return resultobj; |
17815 | fail: | |
17816 | return NULL; | |
17817 | } | |
17818 | ||
17819 | ||
17820 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17821 | PyObject *resultobj; | |
17822 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17823 | int arg2 ; |
d14a1e28 RD |
17824 | wxDateTime *result; |
17825 | PyObject * obj0 = 0 ; | |
994141e6 | 17826 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17827 | char *kwnames[] = { |
17828 | (char *) "self",(char *) "day", NULL | |
17829 | }; | |
17830 | ||
994141e6 | 17831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17834 | arg2 = (int) SWIG_AsInt(obj1); | |
17835 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17836 | { |
17837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17838 | { | |
17839 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
17840 | result = (wxDateTime *) &_result_ref; | |
17841 | } | |
17842 | ||
17843 | wxPyEndAllowThreads(__tstate); | |
17844 | if (PyErr_Occurred()) SWIG_fail; | |
17845 | } | |
15afbcd0 | 17846 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17847 | return resultobj; |
17848 | fail: | |
17849 | return NULL; | |
17850 | } | |
17851 | ||
17852 | ||
17853 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17854 | PyObject *resultobj; | |
17855 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17856 | int arg2 ; |
d14a1e28 RD |
17857 | wxDateTime *result; |
17858 | PyObject * obj0 = 0 ; | |
994141e6 | 17859 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17860 | char *kwnames[] = { |
17861 | (char *) "self",(char *) "hour", NULL | |
17862 | }; | |
17863 | ||
994141e6 | 17864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17867 | arg2 = (int) SWIG_AsInt(obj1); | |
17868 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17869 | { |
17870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17871 | { | |
17872 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
17873 | result = (wxDateTime *) &_result_ref; | |
17874 | } | |
17875 | ||
17876 | wxPyEndAllowThreads(__tstate); | |
17877 | if (PyErr_Occurred()) SWIG_fail; | |
17878 | } | |
15afbcd0 | 17879 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17880 | return resultobj; |
17881 | fail: | |
17882 | return NULL; | |
17883 | } | |
17884 | ||
17885 | ||
17886 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17887 | PyObject *resultobj; | |
17888 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17889 | int arg2 ; |
d14a1e28 RD |
17890 | wxDateTime *result; |
17891 | PyObject * obj0 = 0 ; | |
994141e6 | 17892 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17893 | char *kwnames[] = { |
17894 | (char *) "self",(char *) "minute", NULL | |
17895 | }; | |
17896 | ||
994141e6 | 17897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17900 | arg2 = (int) SWIG_AsInt(obj1); | |
17901 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17902 | { |
17903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17904 | { | |
17905 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
17906 | result = (wxDateTime *) &_result_ref; | |
17907 | } | |
17908 | ||
17909 | wxPyEndAllowThreads(__tstate); | |
17910 | if (PyErr_Occurred()) SWIG_fail; | |
17911 | } | |
15afbcd0 | 17912 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17913 | return resultobj; |
17914 | fail: | |
17915 | return NULL; | |
17916 | } | |
17917 | ||
17918 | ||
17919 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17920 | PyObject *resultobj; | |
17921 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17922 | int arg2 ; |
d14a1e28 RD |
17923 | wxDateTime *result; |
17924 | PyObject * obj0 = 0 ; | |
994141e6 | 17925 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17926 | char *kwnames[] = { |
17927 | (char *) "self",(char *) "second", NULL | |
17928 | }; | |
17929 | ||
994141e6 | 17930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17933 | arg2 = (int) SWIG_AsInt(obj1); | |
17934 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17935 | { |
17936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17937 | { | |
17938 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
17939 | result = (wxDateTime *) &_result_ref; | |
17940 | } | |
17941 | ||
17942 | wxPyEndAllowThreads(__tstate); | |
17943 | if (PyErr_Occurred()) SWIG_fail; | |
17944 | } | |
15afbcd0 | 17945 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17946 | return resultobj; |
17947 | fail: | |
17948 | return NULL; | |
17949 | } | |
17950 | ||
17951 | ||
17952 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17953 | PyObject *resultobj; | |
17954 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17955 | int arg2 ; |
d14a1e28 RD |
17956 | wxDateTime *result; |
17957 | PyObject * obj0 = 0 ; | |
994141e6 | 17958 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17959 | char *kwnames[] = { |
17960 | (char *) "self",(char *) "millisecond", NULL | |
17961 | }; | |
17962 | ||
994141e6 | 17963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17966 | arg2 = (int) SWIG_AsInt(obj1); | |
17967 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17968 | { |
17969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17970 | { | |
17971 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
17972 | result = (wxDateTime *) &_result_ref; | |
17973 | } | |
17974 | ||
17975 | wxPyEndAllowThreads(__tstate); | |
17976 | if (PyErr_Occurred()) SWIG_fail; | |
17977 | } | |
15afbcd0 | 17978 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17979 | return resultobj; |
17980 | fail: | |
17981 | return NULL; | |
17982 | } | |
17983 | ||
17984 | ||
17985 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17986 | PyObject *resultobj; | |
17987 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17988 | int arg2 ; | |
17989 | int arg3 = (int) wxDateTime::Monday_First ; | |
17990 | wxDateTime *result; | |
17991 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17992 | PyObject * obj1 = 0 ; |
17993 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17994 | char *kwnames[] = { |
17995 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
17996 | }; | |
17997 | ||
994141e6 | 17998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18001 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18002 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18003 | if (obj2) { |
15afbcd0 RD |
18004 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); |
18005 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18006 | } |
d14a1e28 RD |
18007 | { |
18008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18009 | { | |
18010 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18011 | result = (wxDateTime *) &_result_ref; | |
18012 | } | |
18013 | ||
18014 | wxPyEndAllowThreads(__tstate); | |
18015 | if (PyErr_Occurred()) SWIG_fail; | |
18016 | } | |
15afbcd0 | 18017 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18018 | return resultobj; |
18019 | fail: | |
18020 | return NULL; | |
18021 | } | |
18022 | ||
18023 | ||
18024 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18025 | PyObject *resultobj; | |
18026 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18027 | int arg2 ; | |
18028 | int arg3 = (int) wxDateTime::Monday_First ; | |
18029 | wxDateTime result; | |
18030 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18031 | PyObject * obj1 = 0 ; |
18032 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18033 | char *kwnames[] = { |
18034 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18035 | }; | |
18036 | ||
994141e6 | 18037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18040 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18041 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18042 | if (obj2) { |
15afbcd0 RD |
18043 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); |
18044 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18045 | } |
d14a1e28 RD |
18046 | { |
18047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18048 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18049 | ||
18050 | wxPyEndAllowThreads(__tstate); | |
18051 | if (PyErr_Occurred()) SWIG_fail; | |
18052 | } | |
18053 | { | |
18054 | wxDateTime * resultptr; | |
18055 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18056 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18057 | } |
18058 | return resultobj; | |
18059 | fail: | |
18060 | return NULL; | |
18061 | } | |
18062 | ||
18063 | ||
18064 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18065 | PyObject *resultobj; | |
18066 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18067 | int arg2 ; | |
18068 | wxDateTime *result; | |
18069 | PyObject * obj0 = 0 ; | |
994141e6 | 18070 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18071 | char *kwnames[] = { |
18072 | (char *) "self",(char *) "weekday", NULL | |
18073 | }; | |
18074 | ||
994141e6 | 18075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18078 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18079 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18080 | { |
18081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18082 | { | |
18083 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
18084 | result = (wxDateTime *) &_result_ref; | |
18085 | } | |
18086 | ||
18087 | wxPyEndAllowThreads(__tstate); | |
18088 | if (PyErr_Occurred()) SWIG_fail; | |
18089 | } | |
15afbcd0 | 18090 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18091 | return resultobj; |
18092 | fail: | |
18093 | return NULL; | |
18094 | } | |
18095 | ||
18096 | ||
18097 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18098 | PyObject *resultobj; | |
18099 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18100 | int arg2 ; | |
18101 | wxDateTime result; | |
18102 | PyObject * obj0 = 0 ; | |
994141e6 | 18103 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18104 | char *kwnames[] = { |
18105 | (char *) "self",(char *) "weekday", NULL | |
18106 | }; | |
18107 | ||
994141e6 | 18108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18111 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18112 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18113 | { |
18114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18115 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
18116 | ||
18117 | wxPyEndAllowThreads(__tstate); | |
18118 | if (PyErr_Occurred()) SWIG_fail; | |
18119 | } | |
18120 | { | |
18121 | wxDateTime * resultptr; | |
18122 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18123 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18124 | } |
18125 | return resultobj; | |
18126 | fail: | |
18127 | return NULL; | |
18128 | } | |
18129 | ||
18130 | ||
18131 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18132 | PyObject *resultobj; | |
18133 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18134 | int arg2 ; | |
18135 | wxDateTime *result; | |
18136 | PyObject * obj0 = 0 ; | |
994141e6 | 18137 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18138 | char *kwnames[] = { |
18139 | (char *) "self",(char *) "weekday", NULL | |
18140 | }; | |
18141 | ||
994141e6 | 18142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18145 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18146 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18147 | { |
18148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18149 | { | |
18150 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18151 | result = (wxDateTime *) &_result_ref; | |
18152 | } | |
18153 | ||
18154 | wxPyEndAllowThreads(__tstate); | |
18155 | if (PyErr_Occurred()) SWIG_fail; | |
18156 | } | |
15afbcd0 | 18157 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18158 | return resultobj; |
18159 | fail: | |
18160 | return NULL; | |
18161 | } | |
18162 | ||
18163 | ||
18164 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18165 | PyObject *resultobj; | |
18166 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18167 | int arg2 ; | |
18168 | wxDateTime result; | |
18169 | PyObject * obj0 = 0 ; | |
994141e6 | 18170 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18171 | char *kwnames[] = { |
18172 | (char *) "self",(char *) "weekday", NULL | |
18173 | }; | |
18174 | ||
994141e6 | 18175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18178 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18179 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18180 | { |
18181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18182 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18183 | ||
18184 | wxPyEndAllowThreads(__tstate); | |
18185 | if (PyErr_Occurred()) SWIG_fail; | |
18186 | } | |
18187 | { | |
18188 | wxDateTime * resultptr; | |
18189 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18190 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18191 | } |
18192 | return resultobj; | |
18193 | fail: | |
18194 | return NULL; | |
18195 | } | |
18196 | ||
18197 | ||
18198 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18199 | PyObject *resultobj; | |
18200 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18201 | int arg2 ; | |
18202 | int arg3 = (int) 1 ; | |
18203 | int arg4 = (int) wxDateTime::Inv_Month ; | |
18204 | int arg5 = (int) wxDateTime::Inv_Year ; | |
18205 | bool result; | |
18206 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18207 | PyObject * obj1 = 0 ; |
18208 | PyObject * obj2 = 0 ; | |
18209 | PyObject * obj3 = 0 ; | |
18210 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
18211 | char *kwnames[] = { |
18212 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
18213 | }; | |
18214 | ||
994141e6 | 18215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
18216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18218 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18219 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18220 | if (obj2) { |
15afbcd0 RD |
18221 | arg3 = (int) SWIG_AsInt(obj2); |
18222 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18223 | } |
18224 | if (obj3) { | |
15afbcd0 RD |
18225 | arg4 = (wxDateTime::Month) SWIG_AsInt(obj3); |
18226 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18227 | } |
18228 | if (obj4) { | |
15afbcd0 RD |
18229 | arg5 = (int) SWIG_AsInt(obj4); |
18230 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18231 | } |
d14a1e28 RD |
18232 | { |
18233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18234 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
18235 | ||
18236 | wxPyEndAllowThreads(__tstate); | |
18237 | if (PyErr_Occurred()) SWIG_fail; | |
18238 | } | |
4f89f6a3 RD |
18239 | { |
18240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18241 | } | |
d14a1e28 RD |
18242 | return resultobj; |
18243 | fail: | |
18244 | return NULL; | |
18245 | } | |
18246 | ||
18247 | ||
18248 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18249 | PyObject *resultobj; | |
18250 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18251 | int arg2 ; | |
18252 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18253 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18254 | bool result; | |
18255 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18256 | PyObject * obj1 = 0 ; |
18257 | PyObject * obj2 = 0 ; | |
18258 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18259 | char *kwnames[] = { |
18260 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18261 | }; | |
18262 | ||
994141e6 | 18263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18266 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18267 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18268 | if (obj2) { |
15afbcd0 RD |
18269 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
18270 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18271 | } |
18272 | if (obj3) { | |
15afbcd0 RD |
18273 | arg4 = (int) SWIG_AsInt(obj3); |
18274 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18275 | } |
d14a1e28 RD |
18276 | { |
18277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18278 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18279 | ||
18280 | wxPyEndAllowThreads(__tstate); | |
18281 | if (PyErr_Occurred()) SWIG_fail; | |
18282 | } | |
4f89f6a3 RD |
18283 | { |
18284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18285 | } | |
d14a1e28 RD |
18286 | return resultobj; |
18287 | fail: | |
18288 | return NULL; | |
18289 | } | |
18290 | ||
18291 | ||
18292 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18293 | PyObject *resultobj; | |
18294 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18295 | int arg2 ; | |
18296 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18297 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18298 | wxDateTime result; | |
18299 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18300 | PyObject * obj1 = 0 ; |
18301 | PyObject * obj2 = 0 ; | |
18302 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18303 | char *kwnames[] = { |
18304 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18305 | }; | |
18306 | ||
994141e6 | 18307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18310 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18311 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18312 | if (obj2) { |
15afbcd0 RD |
18313 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
18314 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18315 | } |
18316 | if (obj3) { | |
15afbcd0 RD |
18317 | arg4 = (int) SWIG_AsInt(obj3); |
18318 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18319 | } |
d14a1e28 RD |
18320 | { |
18321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18322 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18323 | ||
18324 | wxPyEndAllowThreads(__tstate); | |
18325 | if (PyErr_Occurred()) SWIG_fail; | |
18326 | } | |
18327 | { | |
18328 | wxDateTime * resultptr; | |
18329 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18330 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18331 | } |
18332 | return resultobj; | |
18333 | fail: | |
18334 | return NULL; | |
18335 | } | |
18336 | ||
18337 | ||
18338 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18339 | PyObject *resultobj; | |
18340 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18341 | int arg2 ; |
d14a1e28 RD |
18342 | int arg3 = (int) wxDateTime::Mon ; |
18343 | int arg4 = (int) wxDateTime::Monday_First ; | |
18344 | bool result; | |
18345 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18346 | PyObject * obj1 = 0 ; |
18347 | PyObject * obj2 = 0 ; | |
18348 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18349 | char *kwnames[] = { |
18350 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18351 | }; | |
18352 | ||
994141e6 | 18353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18356 | arg2 = (int) SWIG_AsInt(obj1); | |
18357 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18358 | if (obj2) { |
15afbcd0 RD |
18359 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); |
18360 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18361 | } |
18362 | if (obj3) { | |
15afbcd0 RD |
18363 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); |
18364 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18365 | } |
d14a1e28 RD |
18366 | { |
18367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18368 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18369 | ||
18370 | wxPyEndAllowThreads(__tstate); | |
18371 | if (PyErr_Occurred()) SWIG_fail; | |
18372 | } | |
4f89f6a3 RD |
18373 | { |
18374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18375 | } | |
d14a1e28 RD |
18376 | return resultobj; |
18377 | fail: | |
18378 | return NULL; | |
18379 | } | |
18380 | ||
18381 | ||
18382 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18383 | PyObject *resultobj; | |
18384 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18385 | int arg2 ; |
d14a1e28 RD |
18386 | int arg3 = (int) wxDateTime::Mon ; |
18387 | int arg4 = (int) wxDateTime::Monday_First ; | |
18388 | wxDateTime result; | |
18389 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18390 | PyObject * obj1 = 0 ; |
18391 | PyObject * obj2 = 0 ; | |
18392 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18393 | char *kwnames[] = { |
18394 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18395 | }; | |
18396 | ||
994141e6 | 18397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18400 | arg2 = (int) SWIG_AsInt(obj1); | |
18401 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18402 | if (obj2) { |
15afbcd0 RD |
18403 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); |
18404 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18405 | } |
18406 | if (obj3) { | |
15afbcd0 RD |
18407 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); |
18408 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18409 | } |
d14a1e28 RD |
18410 | { |
18411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18412 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18413 | ||
18414 | wxPyEndAllowThreads(__tstate); | |
18415 | if (PyErr_Occurred()) SWIG_fail; | |
18416 | } | |
18417 | { | |
18418 | wxDateTime * resultptr; | |
18419 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18420 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18421 | } |
18422 | return resultobj; | |
18423 | fail: | |
18424 | return NULL; | |
18425 | } | |
18426 | ||
18427 | ||
18428 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18429 | PyObject *resultobj; | |
18430 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18431 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18432 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18433 | wxDateTime *result; | |
18434 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18435 | PyObject * obj1 = 0 ; |
18436 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18437 | char *kwnames[] = { |
18438 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18439 | }; | |
18440 | ||
994141e6 | 18441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 18444 | if (obj1) { |
15afbcd0 RD |
18445 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
18446 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18447 | } |
18448 | if (obj2) { | |
15afbcd0 RD |
18449 | arg3 = (int) SWIG_AsInt(obj2); |
18450 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18451 | } |
d14a1e28 RD |
18452 | { |
18453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18454 | { | |
18455 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18456 | result = (wxDateTime *) &_result_ref; | |
18457 | } | |
18458 | ||
18459 | wxPyEndAllowThreads(__tstate); | |
18460 | if (PyErr_Occurred()) SWIG_fail; | |
18461 | } | |
15afbcd0 | 18462 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18463 | return resultobj; |
18464 | fail: | |
18465 | return NULL; | |
18466 | } | |
18467 | ||
18468 | ||
18469 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18470 | PyObject *resultobj; | |
18471 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18472 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18473 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18474 | wxDateTime result; | |
18475 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18476 | PyObject * obj1 = 0 ; |
18477 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18478 | char *kwnames[] = { |
18479 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18480 | }; | |
18481 | ||
994141e6 | 18482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 18485 | if (obj1) { |
15afbcd0 RD |
18486 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
18487 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18488 | } |
18489 | if (obj2) { | |
15afbcd0 RD |
18490 | arg3 = (int) SWIG_AsInt(obj2); |
18491 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18492 | } |
d14a1e28 RD |
18493 | { |
18494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18495 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18496 | ||
18497 | wxPyEndAllowThreads(__tstate); | |
18498 | if (PyErr_Occurred()) SWIG_fail; | |
18499 | } | |
18500 | { | |
18501 | wxDateTime * resultptr; | |
18502 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18503 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18504 | } |
18505 | return resultobj; | |
18506 | fail: | |
18507 | return NULL; | |
18508 | } | |
18509 | ||
18510 | ||
18511 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18512 | PyObject *resultobj; | |
18513 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18514 | int arg2 ; |
d14a1e28 RD |
18515 | wxDateTime *result; |
18516 | PyObject * obj0 = 0 ; | |
994141e6 | 18517 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18518 | char *kwnames[] = { |
18519 | (char *) "self",(char *) "yday", NULL | |
18520 | }; | |
18521 | ||
994141e6 | 18522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18525 | arg2 = (int) SWIG_AsInt(obj1); | |
18526 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18527 | { |
18528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18529 | { | |
18530 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
18531 | result = (wxDateTime *) &_result_ref; | |
18532 | } | |
18533 | ||
18534 | wxPyEndAllowThreads(__tstate); | |
18535 | if (PyErr_Occurred()) SWIG_fail; | |
18536 | } | |
15afbcd0 | 18537 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18538 | return resultobj; |
18539 | fail: | |
18540 | return NULL; | |
18541 | } | |
18542 | ||
18543 | ||
18544 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18545 | PyObject *resultobj; | |
18546 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18547 | int arg2 ; |
d14a1e28 RD |
18548 | wxDateTime result; |
18549 | PyObject * obj0 = 0 ; | |
994141e6 | 18550 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18551 | char *kwnames[] = { |
18552 | (char *) "self",(char *) "yday", NULL | |
18553 | }; | |
18554 | ||
994141e6 | 18555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18558 | arg2 = (int) SWIG_AsInt(obj1); | |
18559 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18560 | { |
18561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18562 | result = (arg1)->GetYearDay(arg2); | |
18563 | ||
18564 | wxPyEndAllowThreads(__tstate); | |
18565 | if (PyErr_Occurred()) SWIG_fail; | |
18566 | } | |
18567 | { | |
18568 | wxDateTime * resultptr; | |
18569 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18570 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18571 | } |
18572 | return resultobj; | |
18573 | fail: | |
18574 | return NULL; | |
18575 | } | |
18576 | ||
18577 | ||
18578 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18579 | PyObject *resultobj; | |
18580 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18581 | double result; | |
18582 | PyObject * obj0 = 0 ; | |
18583 | char *kwnames[] = { | |
18584 | (char *) "self", NULL | |
18585 | }; | |
18586 | ||
18587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18590 | { |
18591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18592 | result = (double)(arg1)->GetJulianDayNumber(); | |
18593 | ||
18594 | wxPyEndAllowThreads(__tstate); | |
18595 | if (PyErr_Occurred()) SWIG_fail; | |
18596 | } | |
15afbcd0 | 18597 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18598 | return resultobj; |
18599 | fail: | |
18600 | return NULL; | |
18601 | } | |
18602 | ||
18603 | ||
18604 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18605 | PyObject *resultobj; | |
18606 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18607 | double result; | |
18608 | PyObject * obj0 = 0 ; | |
18609 | char *kwnames[] = { | |
18610 | (char *) "self", NULL | |
18611 | }; | |
18612 | ||
18613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18616 | { |
18617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18618 | result = (double)(arg1)->GetJDN(); | |
18619 | ||
18620 | wxPyEndAllowThreads(__tstate); | |
18621 | if (PyErr_Occurred()) SWIG_fail; | |
18622 | } | |
15afbcd0 | 18623 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18624 | return resultobj; |
18625 | fail: | |
18626 | return NULL; | |
18627 | } | |
18628 | ||
18629 | ||
18630 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18631 | PyObject *resultobj; | |
18632 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18633 | double result; | |
18634 | PyObject * obj0 = 0 ; | |
18635 | char *kwnames[] = { | |
18636 | (char *) "self", NULL | |
18637 | }; | |
18638 | ||
18639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18642 | { |
18643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18644 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
18645 | ||
18646 | wxPyEndAllowThreads(__tstate); | |
18647 | if (PyErr_Occurred()) SWIG_fail; | |
18648 | } | |
15afbcd0 | 18649 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18650 | return resultobj; |
18651 | fail: | |
18652 | return NULL; | |
18653 | } | |
18654 | ||
18655 | ||
18656 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18657 | PyObject *resultobj; | |
18658 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18659 | double result; | |
18660 | PyObject * obj0 = 0 ; | |
18661 | char *kwnames[] = { | |
18662 | (char *) "self", NULL | |
18663 | }; | |
18664 | ||
18665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18668 | { |
18669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18670 | result = (double)(arg1)->GetMJD(); | |
18671 | ||
18672 | wxPyEndAllowThreads(__tstate); | |
18673 | if (PyErr_Occurred()) SWIG_fail; | |
18674 | } | |
15afbcd0 | 18675 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18676 | return resultobj; |
18677 | fail: | |
18678 | return NULL; | |
18679 | } | |
18680 | ||
18681 | ||
18682 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18683 | PyObject *resultobj; | |
18684 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18685 | double result; | |
18686 | PyObject * obj0 = 0 ; | |
18687 | char *kwnames[] = { | |
18688 | (char *) "self", NULL | |
18689 | }; | |
18690 | ||
18691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18694 | { |
18695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18696 | result = (double)(arg1)->GetRataDie(); | |
18697 | ||
18698 | wxPyEndAllowThreads(__tstate); | |
18699 | if (PyErr_Occurred()) SWIG_fail; | |
18700 | } | |
15afbcd0 | 18701 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18702 | return resultobj; |
18703 | fail: | |
18704 | return NULL; | |
18705 | } | |
18706 | ||
18707 | ||
18708 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18709 | PyObject *resultobj; | |
18710 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18711 | wxDateTime::TimeZone *arg2 = 0 ; | |
e811c8ce | 18712 | bool arg3 = (bool) False ; |
d14a1e28 | 18713 | wxDateTime result; |
7722248d | 18714 | bool temp2 = False ; |
d14a1e28 RD |
18715 | PyObject * obj0 = 0 ; |
18716 | PyObject * obj1 = 0 ; | |
18717 | PyObject * obj2 = 0 ; | |
18718 | char *kwnames[] = { | |
18719 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18720 | }; | |
18721 | ||
18722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
18723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18725 | { |
18726 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18727 | temp2 = True; |
d14a1e28 RD |
18728 | } |
18729 | if (obj2) { | |
15afbcd0 RD |
18730 | arg3 = (bool) SWIG_AsBool(obj2); |
18731 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18732 | } |
18733 | { | |
18734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18735 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18736 | ||
18737 | wxPyEndAllowThreads(__tstate); | |
18738 | if (PyErr_Occurred()) SWIG_fail; | |
18739 | } | |
18740 | { | |
18741 | wxDateTime * resultptr; | |
18742 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18743 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18744 | } |
18745 | { | |
7722248d | 18746 | if (temp2) delete arg2; |
d14a1e28 RD |
18747 | } |
18748 | return resultobj; | |
18749 | fail: | |
18750 | { | |
7722248d | 18751 | if (temp2) delete arg2; |
d14a1e28 RD |
18752 | } |
18753 | return NULL; | |
18754 | } | |
18755 | ||
18756 | ||
18757 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18758 | PyObject *resultobj; | |
18759 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18760 | wxDateTime::TimeZone *arg2 = 0 ; | |
e811c8ce | 18761 | bool arg3 = (bool) False ; |
d14a1e28 | 18762 | wxDateTime *result; |
7722248d | 18763 | bool temp2 = False ; |
d14a1e28 RD |
18764 | PyObject * obj0 = 0 ; |
18765 | PyObject * obj1 = 0 ; | |
18766 | PyObject * obj2 = 0 ; | |
18767 | char *kwnames[] = { | |
18768 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18769 | }; | |
18770 | ||
18771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
18772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18774 | { |
18775 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18776 | temp2 = True; |
d14a1e28 RD |
18777 | } |
18778 | if (obj2) { | |
15afbcd0 RD |
18779 | arg3 = (bool) SWIG_AsBool(obj2); |
18780 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18781 | } |
18782 | { | |
18783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18784 | { | |
18785 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18786 | result = (wxDateTime *) &_result_ref; | |
18787 | } | |
18788 | ||
18789 | wxPyEndAllowThreads(__tstate); | |
18790 | if (PyErr_Occurred()) SWIG_fail; | |
18791 | } | |
15afbcd0 | 18792 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 | 18793 | { |
7722248d | 18794 | if (temp2) delete arg2; |
d14a1e28 RD |
18795 | } |
18796 | return resultobj; | |
18797 | fail: | |
18798 | { | |
7722248d | 18799 | if (temp2) delete arg2; |
d14a1e28 RD |
18800 | } |
18801 | return NULL; | |
18802 | } | |
18803 | ||
18804 | ||
18805 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18806 | PyObject *resultobj; | |
18807 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
e811c8ce | 18808 | bool arg2 = (bool) False ; |
d14a1e28 RD |
18809 | wxDateTime result; |
18810 | PyObject * obj0 = 0 ; | |
18811 | PyObject * obj1 = 0 ; | |
18812 | char *kwnames[] = { | |
18813 | (char *) "self",(char *) "noDST", NULL | |
18814 | }; | |
18815 | ||
18816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 18819 | if (obj1) { |
15afbcd0 RD |
18820 | arg2 = (bool) SWIG_AsBool(obj1); |
18821 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18822 | } |
18823 | { | |
18824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18825 | result = (arg1)->ToGMT(arg2); | |
18826 | ||
18827 | wxPyEndAllowThreads(__tstate); | |
18828 | if (PyErr_Occurred()) SWIG_fail; | |
18829 | } | |
18830 | { | |
18831 | wxDateTime * resultptr; | |
18832 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18833 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18834 | } |
18835 | return resultobj; | |
18836 | fail: | |
18837 | return NULL; | |
18838 | } | |
18839 | ||
18840 | ||
18841 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18842 | PyObject *resultobj; | |
18843 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
e811c8ce | 18844 | bool arg2 = (bool) False ; |
d14a1e28 RD |
18845 | wxDateTime *result; |
18846 | PyObject * obj0 = 0 ; | |
18847 | PyObject * obj1 = 0 ; | |
18848 | char *kwnames[] = { | |
18849 | (char *) "self",(char *) "noDST", NULL | |
18850 | }; | |
18851 | ||
18852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 18855 | if (obj1) { |
15afbcd0 RD |
18856 | arg2 = (bool) SWIG_AsBool(obj1); |
18857 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18858 | } |
18859 | { | |
18860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18861 | { | |
18862 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
18863 | result = (wxDateTime *) &_result_ref; | |
18864 | } | |
18865 | ||
18866 | wxPyEndAllowThreads(__tstate); | |
18867 | if (PyErr_Occurred()) SWIG_fail; | |
18868 | } | |
15afbcd0 | 18869 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18870 | return resultobj; |
18871 | fail: | |
18872 | return NULL; | |
18873 | } | |
18874 | ||
18875 | ||
18876 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18877 | PyObject *resultobj; | |
18878 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18879 | int arg2 = (int) wxDateTime::Country_Default ; | |
18880 | int result; | |
18881 | PyObject * obj0 = 0 ; | |
994141e6 | 18882 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18883 | char *kwnames[] = { |
18884 | (char *) "self",(char *) "country", NULL | |
18885 | }; | |
18886 | ||
994141e6 | 18887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 18890 | if (obj1) { |
15afbcd0 RD |
18891 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
18892 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18893 | } |
d14a1e28 RD |
18894 | { |
18895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18896 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
18897 | ||
18898 | wxPyEndAllowThreads(__tstate); | |
18899 | if (PyErr_Occurred()) SWIG_fail; | |
18900 | } | |
15afbcd0 | 18901 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18902 | return resultobj; |
18903 | fail: | |
18904 | return NULL; | |
18905 | } | |
18906 | ||
18907 | ||
18908 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18909 | PyObject *resultobj; | |
18910 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18911 | bool result; | |
18912 | PyObject * obj0 = 0 ; | |
18913 | char *kwnames[] = { | |
18914 | (char *) "self", NULL | |
18915 | }; | |
18916 | ||
18917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18920 | { |
18921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18922 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
18923 | ||
18924 | wxPyEndAllowThreads(__tstate); | |
18925 | if (PyErr_Occurred()) SWIG_fail; | |
18926 | } | |
4f89f6a3 RD |
18927 | { |
18928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18929 | } | |
d14a1e28 RD |
18930 | return resultobj; |
18931 | fail: | |
18932 | return NULL; | |
18933 | } | |
18934 | ||
18935 | ||
18936 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18937 | PyObject *resultobj; | |
18938 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18939 | time_t result; | |
18940 | PyObject * obj0 = 0 ; | |
18941 | char *kwnames[] = { | |
18942 | (char *) "self", NULL | |
18943 | }; | |
18944 | ||
18945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18948 | { |
18949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18950 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
18951 | ||
18952 | wxPyEndAllowThreads(__tstate); | |
18953 | if (PyErr_Occurred()) SWIG_fail; | |
18954 | } | |
15afbcd0 | 18955 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
18956 | return resultobj; |
18957 | fail: | |
18958 | return NULL; | |
18959 | } | |
18960 | ||
18961 | ||
18962 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18963 | PyObject *resultobj; | |
18964 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18965 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18966 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18967 | int result; | |
7722248d | 18968 | bool temp2 = False ; |
d14a1e28 RD |
18969 | PyObject * obj0 = 0 ; |
18970 | PyObject * obj1 = 0 ; | |
18971 | char *kwnames[] = { | |
18972 | (char *) "self",(char *) "tz", NULL | |
18973 | }; | |
18974 | ||
18975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18978 | if (obj1) { |
18979 | { | |
18980 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18981 | temp2 = True; |
d14a1e28 RD |
18982 | } |
18983 | } | |
18984 | { | |
18985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18986 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
18987 | ||
18988 | wxPyEndAllowThreads(__tstate); | |
18989 | if (PyErr_Occurred()) SWIG_fail; | |
18990 | } | |
15afbcd0 | 18991 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 18992 | { |
7722248d | 18993 | if (temp2) delete arg2; |
d14a1e28 RD |
18994 | } |
18995 | return resultobj; | |
18996 | fail: | |
18997 | { | |
7722248d | 18998 | if (temp2) delete arg2; |
d14a1e28 RD |
18999 | } |
19000 | return NULL; | |
19001 | } | |
19002 | ||
19003 | ||
19004 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19005 | PyObject *resultobj; | |
19006 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19007 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19008 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19009 | int result; | |
7722248d | 19010 | bool temp2 = False ; |
d14a1e28 RD |
19011 | PyObject * obj0 = 0 ; |
19012 | PyObject * obj1 = 0 ; | |
19013 | char *kwnames[] = { | |
19014 | (char *) "self",(char *) "tz", NULL | |
19015 | }; | |
19016 | ||
19017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19020 | if (obj1) { |
19021 | { | |
19022 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19023 | temp2 = True; |
d14a1e28 RD |
19024 | } |
19025 | } | |
19026 | { | |
19027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19028 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
19029 | ||
19030 | wxPyEndAllowThreads(__tstate); | |
19031 | if (PyErr_Occurred()) SWIG_fail; | |
19032 | } | |
15afbcd0 | 19033 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19034 | { |
7722248d | 19035 | if (temp2) delete arg2; |
d14a1e28 RD |
19036 | } |
19037 | return resultobj; | |
19038 | fail: | |
19039 | { | |
7722248d | 19040 | if (temp2) delete arg2; |
d14a1e28 RD |
19041 | } |
19042 | return NULL; | |
19043 | } | |
19044 | ||
19045 | ||
19046 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19047 | PyObject *resultobj; | |
19048 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19049 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19050 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19051 | int result; |
7722248d | 19052 | bool temp2 = False ; |
d14a1e28 RD |
19053 | PyObject * obj0 = 0 ; |
19054 | PyObject * obj1 = 0 ; | |
19055 | char *kwnames[] = { | |
19056 | (char *) "self",(char *) "tz", NULL | |
19057 | }; | |
19058 | ||
19059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19062 | if (obj1) { |
19063 | { | |
19064 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19065 | temp2 = True; |
d14a1e28 RD |
19066 | } |
19067 | } | |
19068 | { | |
19069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19070 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19071 | |
19072 | wxPyEndAllowThreads(__tstate); | |
19073 | if (PyErr_Occurred()) SWIG_fail; | |
19074 | } | |
15afbcd0 | 19075 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19076 | { |
7722248d | 19077 | if (temp2) delete arg2; |
d14a1e28 RD |
19078 | } |
19079 | return resultobj; | |
19080 | fail: | |
19081 | { | |
7722248d | 19082 | if (temp2) delete arg2; |
d14a1e28 RD |
19083 | } |
19084 | return NULL; | |
19085 | } | |
19086 | ||
19087 | ||
19088 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19089 | PyObject *resultobj; | |
19090 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19091 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19092 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19093 | int result; | |
7722248d | 19094 | bool temp2 = False ; |
d14a1e28 RD |
19095 | PyObject * obj0 = 0 ; |
19096 | PyObject * obj1 = 0 ; | |
19097 | char *kwnames[] = { | |
19098 | (char *) "self",(char *) "tz", NULL | |
19099 | }; | |
19100 | ||
19101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19104 | if (obj1) { |
19105 | { | |
19106 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19107 | temp2 = True; |
d14a1e28 RD |
19108 | } |
19109 | } | |
19110 | { | |
19111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19112 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
19113 | ||
19114 | wxPyEndAllowThreads(__tstate); | |
19115 | if (PyErr_Occurred()) SWIG_fail; | |
19116 | } | |
15afbcd0 | 19117 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19118 | { |
7722248d | 19119 | if (temp2) delete arg2; |
d14a1e28 RD |
19120 | } |
19121 | return resultobj; | |
19122 | fail: | |
19123 | { | |
7722248d | 19124 | if (temp2) delete arg2; |
d14a1e28 RD |
19125 | } |
19126 | return NULL; | |
19127 | } | |
19128 | ||
19129 | ||
19130 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19131 | PyObject *resultobj; | |
19132 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19133 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19134 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19135 | int result; |
7722248d | 19136 | bool temp2 = False ; |
d14a1e28 RD |
19137 | PyObject * obj0 = 0 ; |
19138 | PyObject * obj1 = 0 ; | |
19139 | char *kwnames[] = { | |
19140 | (char *) "self",(char *) "tz", NULL | |
19141 | }; | |
19142 | ||
19143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19146 | if (obj1) { |
19147 | { | |
19148 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19149 | temp2 = True; |
d14a1e28 RD |
19150 | } |
19151 | } | |
19152 | { | |
19153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19154 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19155 | |
19156 | wxPyEndAllowThreads(__tstate); | |
19157 | if (PyErr_Occurred()) SWIG_fail; | |
19158 | } | |
15afbcd0 | 19159 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19160 | { |
7722248d | 19161 | if (temp2) delete arg2; |
d14a1e28 RD |
19162 | } |
19163 | return resultobj; | |
19164 | fail: | |
19165 | { | |
7722248d | 19166 | if (temp2) delete arg2; |
d14a1e28 RD |
19167 | } |
19168 | return NULL; | |
19169 | } | |
19170 | ||
19171 | ||
19172 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19173 | PyObject *resultobj; | |
19174 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19175 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19176 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19177 | int result; |
7722248d | 19178 | bool temp2 = False ; |
d14a1e28 RD |
19179 | PyObject * obj0 = 0 ; |
19180 | PyObject * obj1 = 0 ; | |
19181 | char *kwnames[] = { | |
19182 | (char *) "self",(char *) "tz", NULL | |
19183 | }; | |
19184 | ||
19185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19188 | if (obj1) { |
19189 | { | |
19190 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19191 | temp2 = True; |
d14a1e28 RD |
19192 | } |
19193 | } | |
19194 | { | |
19195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19196 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19197 | |
19198 | wxPyEndAllowThreads(__tstate); | |
19199 | if (PyErr_Occurred()) SWIG_fail; | |
19200 | } | |
15afbcd0 | 19201 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19202 | { |
7722248d | 19203 | if (temp2) delete arg2; |
d14a1e28 RD |
19204 | } |
19205 | return resultobj; | |
19206 | fail: | |
19207 | { | |
7722248d | 19208 | if (temp2) delete arg2; |
d14a1e28 RD |
19209 | } |
19210 | return NULL; | |
19211 | } | |
19212 | ||
19213 | ||
19214 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19215 | PyObject *resultobj; | |
19216 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19217 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19218 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19219 | int result; |
7722248d | 19220 | bool temp2 = False ; |
d14a1e28 RD |
19221 | PyObject * obj0 = 0 ; |
19222 | PyObject * obj1 = 0 ; | |
19223 | char *kwnames[] = { | |
19224 | (char *) "self",(char *) "tz", NULL | |
19225 | }; | |
19226 | ||
19227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19230 | if (obj1) { |
19231 | { | |
19232 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19233 | temp2 = True; |
d14a1e28 RD |
19234 | } |
19235 | } | |
19236 | { | |
19237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19238 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19239 | |
19240 | wxPyEndAllowThreads(__tstate); | |
19241 | if (PyErr_Occurred()) SWIG_fail; | |
19242 | } | |
15afbcd0 | 19243 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19244 | { |
7722248d | 19245 | if (temp2) delete arg2; |
d14a1e28 RD |
19246 | } |
19247 | return resultobj; | |
19248 | fail: | |
19249 | { | |
7722248d | 19250 | if (temp2) delete arg2; |
d14a1e28 RD |
19251 | } |
19252 | return NULL; | |
19253 | } | |
19254 | ||
19255 | ||
19256 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19257 | PyObject *resultobj; | |
19258 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19259 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19260 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19261 | int result; |
7722248d | 19262 | bool temp2 = False ; |
d14a1e28 RD |
19263 | PyObject * obj0 = 0 ; |
19264 | PyObject * obj1 = 0 ; | |
19265 | char *kwnames[] = { | |
19266 | (char *) "self",(char *) "tz", NULL | |
19267 | }; | |
19268 | ||
19269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19272 | if (obj1) { |
19273 | { | |
19274 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19275 | temp2 = True; |
d14a1e28 RD |
19276 | } |
19277 | } | |
19278 | { | |
19279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19280 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19281 | |
19282 | wxPyEndAllowThreads(__tstate); | |
19283 | if (PyErr_Occurred()) SWIG_fail; | |
19284 | } | |
15afbcd0 | 19285 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19286 | { |
7722248d | 19287 | if (temp2) delete arg2; |
d14a1e28 RD |
19288 | } |
19289 | return resultobj; | |
19290 | fail: | |
19291 | { | |
7722248d | 19292 | if (temp2) delete arg2; |
d14a1e28 RD |
19293 | } |
19294 | return NULL; | |
19295 | } | |
19296 | ||
19297 | ||
19298 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19299 | PyObject *resultobj; | |
19300 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19301 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19302 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19303 | int result; |
7722248d | 19304 | bool temp2 = False ; |
d14a1e28 RD |
19305 | PyObject * obj0 = 0 ; |
19306 | PyObject * obj1 = 0 ; | |
19307 | char *kwnames[] = { | |
19308 | (char *) "self",(char *) "tz", NULL | |
19309 | }; | |
19310 | ||
19311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19314 | if (obj1) { |
19315 | { | |
19316 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19317 | temp2 = True; |
d14a1e28 RD |
19318 | } |
19319 | } | |
19320 | { | |
19321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19322 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19323 | |
19324 | wxPyEndAllowThreads(__tstate); | |
19325 | if (PyErr_Occurred()) SWIG_fail; | |
19326 | } | |
15afbcd0 | 19327 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19328 | { |
7722248d | 19329 | if (temp2) delete arg2; |
d14a1e28 RD |
19330 | } |
19331 | return resultobj; | |
19332 | fail: | |
19333 | { | |
7722248d | 19334 | if (temp2) delete arg2; |
d14a1e28 RD |
19335 | } |
19336 | return NULL; | |
19337 | } | |
19338 | ||
19339 | ||
19340 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19341 | PyObject *resultobj; | |
19342 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19343 | int arg2 = (int) wxDateTime::Monday_First ; | |
19344 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19345 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 19346 | int result; |
7722248d | 19347 | bool temp3 = False ; |
d14a1e28 | 19348 | PyObject * obj0 = 0 ; |
994141e6 | 19349 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19350 | PyObject * obj2 = 0 ; |
19351 | char *kwnames[] = { | |
19352 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19353 | }; | |
19354 | ||
994141e6 | 19355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
19356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 19358 | if (obj1) { |
15afbcd0 RD |
19359 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); |
19360 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19361 | } |
d14a1e28 RD |
19362 | if (obj2) { |
19363 | { | |
19364 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 19365 | temp3 = True; |
d14a1e28 RD |
19366 | } |
19367 | } | |
19368 | { | |
19369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19370 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
19371 | |
19372 | wxPyEndAllowThreads(__tstate); | |
19373 | if (PyErr_Occurred()) SWIG_fail; | |
19374 | } | |
15afbcd0 | 19375 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19376 | { |
7722248d | 19377 | if (temp3) delete arg3; |
d14a1e28 RD |
19378 | } |
19379 | return resultobj; | |
19380 | fail: | |
19381 | { | |
7722248d | 19382 | if (temp3) delete arg3; |
d14a1e28 RD |
19383 | } |
19384 | return NULL; | |
19385 | } | |
19386 | ||
19387 | ||
19388 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19389 | PyObject *resultobj; | |
19390 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19391 | int arg2 = (int) wxDateTime::Monday_First ; | |
19392 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19393 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 19394 | int result; |
7722248d | 19395 | bool temp3 = False ; |
d14a1e28 | 19396 | PyObject * obj0 = 0 ; |
994141e6 | 19397 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19398 | PyObject * obj2 = 0 ; |
19399 | char *kwnames[] = { | |
19400 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19401 | }; | |
19402 | ||
994141e6 | 19403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
19404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 19406 | if (obj1) { |
15afbcd0 RD |
19407 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); |
19408 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19409 | } |
d14a1e28 RD |
19410 | if (obj2) { |
19411 | { | |
19412 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 19413 | temp3 = True; |
d14a1e28 RD |
19414 | } |
19415 | } | |
19416 | { | |
19417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19418 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
19419 | |
19420 | wxPyEndAllowThreads(__tstate); | |
19421 | if (PyErr_Occurred()) SWIG_fail; | |
19422 | } | |
15afbcd0 | 19423 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19424 | { |
7722248d | 19425 | if (temp3) delete arg3; |
d14a1e28 RD |
19426 | } |
19427 | return resultobj; | |
19428 | fail: | |
19429 | { | |
7722248d | 19430 | if (temp3) delete arg3; |
d14a1e28 RD |
19431 | } |
19432 | return NULL; | |
19433 | } | |
19434 | ||
19435 | ||
19436 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19437 | PyObject *resultobj; | |
19438 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19439 | int arg2 = (int) wxDateTime::Country_Default ; | |
19440 | bool result; | |
19441 | PyObject * obj0 = 0 ; | |
994141e6 | 19442 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19443 | char *kwnames[] = { |
19444 | (char *) "self",(char *) "country", NULL | |
19445 | }; | |
19446 | ||
994141e6 | 19447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 19450 | if (obj1) { |
15afbcd0 RD |
19451 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
19452 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19453 | } |
d14a1e28 RD |
19454 | { |
19455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19456 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
19457 | ||
19458 | wxPyEndAllowThreads(__tstate); | |
19459 | if (PyErr_Occurred()) SWIG_fail; | |
19460 | } | |
4f89f6a3 RD |
19461 | { |
19462 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19463 | } | |
d14a1e28 RD |
19464 | return resultobj; |
19465 | fail: | |
19466 | return NULL; | |
19467 | } | |
19468 | ||
19469 | ||
19470 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19471 | PyObject *resultobj; | |
19472 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19473 | wxDateTime *arg2 = 0 ; | |
19474 | bool result; | |
19475 | PyObject * obj0 = 0 ; | |
19476 | PyObject * obj1 = 0 ; | |
19477 | char *kwnames[] = { | |
19478 | (char *) "self",(char *) "datetime", NULL | |
19479 | }; | |
19480 | ||
19481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19484 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19485 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19486 | SWIG_fail; | |
d14a1e28 | 19487 | if (arg2 == NULL) { |
15afbcd0 RD |
19488 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19489 | SWIG_fail; | |
d14a1e28 RD |
19490 | } |
19491 | { | |
19492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19493 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
19494 | ||
19495 | wxPyEndAllowThreads(__tstate); | |
19496 | if (PyErr_Occurred()) SWIG_fail; | |
19497 | } | |
4f89f6a3 RD |
19498 | { |
19499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19500 | } | |
d14a1e28 RD |
19501 | return resultobj; |
19502 | fail: | |
19503 | return NULL; | |
19504 | } | |
19505 | ||
19506 | ||
19507 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19508 | PyObject *resultobj; | |
19509 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19510 | wxDateTime *arg2 = 0 ; | |
19511 | bool result; | |
19512 | PyObject * obj0 = 0 ; | |
19513 | PyObject * obj1 = 0 ; | |
19514 | char *kwnames[] = { | |
19515 | (char *) "self",(char *) "datetime", NULL | |
19516 | }; | |
19517 | ||
19518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19521 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19522 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19523 | SWIG_fail; | |
d14a1e28 | 19524 | if (arg2 == NULL) { |
15afbcd0 RD |
19525 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19526 | SWIG_fail; | |
d14a1e28 RD |
19527 | } |
19528 | { | |
19529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19530 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
19531 | ||
19532 | wxPyEndAllowThreads(__tstate); | |
19533 | if (PyErr_Occurred()) SWIG_fail; | |
19534 | } | |
4f89f6a3 RD |
19535 | { |
19536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19537 | } | |
d14a1e28 RD |
19538 | return resultobj; |
19539 | fail: | |
19540 | return NULL; | |
19541 | } | |
19542 | ||
19543 | ||
19544 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19545 | PyObject *resultobj; | |
19546 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19547 | wxDateTime *arg2 = 0 ; | |
19548 | bool result; | |
19549 | PyObject * obj0 = 0 ; | |
19550 | PyObject * obj1 = 0 ; | |
19551 | char *kwnames[] = { | |
19552 | (char *) "self",(char *) "datetime", NULL | |
19553 | }; | |
19554 | ||
19555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19558 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19559 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19560 | SWIG_fail; | |
d14a1e28 | 19561 | if (arg2 == NULL) { |
15afbcd0 RD |
19562 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19563 | SWIG_fail; | |
d14a1e28 RD |
19564 | } |
19565 | { | |
19566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19567 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
19568 | ||
19569 | wxPyEndAllowThreads(__tstate); | |
19570 | if (PyErr_Occurred()) SWIG_fail; | |
19571 | } | |
4f89f6a3 RD |
19572 | { |
19573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19574 | } | |
d14a1e28 RD |
19575 | return resultobj; |
19576 | fail: | |
19577 | return NULL; | |
19578 | } | |
19579 | ||
19580 | ||
19581 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19582 | PyObject *resultobj; | |
19583 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19584 | wxDateTime *arg2 = 0 ; | |
19585 | wxDateTime *arg3 = 0 ; | |
19586 | bool result; | |
19587 | PyObject * obj0 = 0 ; | |
19588 | PyObject * obj1 = 0 ; | |
19589 | PyObject * obj2 = 0 ; | |
19590 | char *kwnames[] = { | |
19591 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19592 | }; | |
19593 | ||
19594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19597 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19598 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19599 | SWIG_fail; | |
d14a1e28 | 19600 | if (arg2 == NULL) { |
15afbcd0 RD |
19601 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19602 | SWIG_fail; | |
d14a1e28 | 19603 | } |
15afbcd0 RD |
19604 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, |
19605 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19606 | SWIG_fail; | |
d14a1e28 | 19607 | if (arg3 == NULL) { |
15afbcd0 RD |
19608 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19609 | SWIG_fail; | |
d14a1e28 RD |
19610 | } |
19611 | { | |
19612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19613 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19614 | ||
19615 | wxPyEndAllowThreads(__tstate); | |
19616 | if (PyErr_Occurred()) SWIG_fail; | |
19617 | } | |
4f89f6a3 RD |
19618 | { |
19619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19620 | } | |
d14a1e28 RD |
19621 | return resultobj; |
19622 | fail: | |
19623 | return NULL; | |
19624 | } | |
19625 | ||
19626 | ||
19627 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19628 | PyObject *resultobj; | |
19629 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19630 | wxDateTime *arg2 = 0 ; | |
19631 | wxDateTime *arg3 = 0 ; | |
19632 | bool result; | |
19633 | PyObject * obj0 = 0 ; | |
19634 | PyObject * obj1 = 0 ; | |
19635 | PyObject * obj2 = 0 ; | |
19636 | char *kwnames[] = { | |
19637 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19638 | }; | |
19639 | ||
19640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19643 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19644 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19645 | SWIG_fail; | |
d14a1e28 | 19646 | if (arg2 == NULL) { |
15afbcd0 RD |
19647 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19648 | SWIG_fail; | |
d14a1e28 | 19649 | } |
15afbcd0 RD |
19650 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, |
19651 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19652 | SWIG_fail; | |
d14a1e28 | 19653 | if (arg3 == NULL) { |
15afbcd0 RD |
19654 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19655 | SWIG_fail; | |
d14a1e28 RD |
19656 | } |
19657 | { | |
19658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19659 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19660 | ||
19661 | wxPyEndAllowThreads(__tstate); | |
19662 | if (PyErr_Occurred()) SWIG_fail; | |
19663 | } | |
4f89f6a3 RD |
19664 | { |
19665 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19666 | } | |
d14a1e28 RD |
19667 | return resultobj; |
19668 | fail: | |
19669 | return NULL; | |
19670 | } | |
19671 | ||
19672 | ||
19673 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19674 | PyObject *resultobj; | |
19675 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19676 | wxDateTime *arg2 = 0 ; | |
19677 | bool result; | |
19678 | PyObject * obj0 = 0 ; | |
19679 | PyObject * obj1 = 0 ; | |
19680 | char *kwnames[] = { | |
19681 | (char *) "self",(char *) "dt", NULL | |
19682 | }; | |
19683 | ||
19684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19687 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19688 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19689 | SWIG_fail; | |
d14a1e28 | 19690 | if (arg2 == NULL) { |
15afbcd0 RD |
19691 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19692 | SWIG_fail; | |
d14a1e28 RD |
19693 | } |
19694 | { | |
19695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19696 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
19697 | ||
19698 | wxPyEndAllowThreads(__tstate); | |
19699 | if (PyErr_Occurred()) SWIG_fail; | |
19700 | } | |
4f89f6a3 RD |
19701 | { |
19702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19703 | } | |
d14a1e28 RD |
19704 | return resultobj; |
19705 | fail: | |
19706 | return NULL; | |
19707 | } | |
19708 | ||
19709 | ||
19710 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19711 | PyObject *resultobj; | |
19712 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19713 | wxDateTime *arg2 = 0 ; | |
19714 | bool result; | |
19715 | PyObject * obj0 = 0 ; | |
19716 | PyObject * obj1 = 0 ; | |
19717 | char *kwnames[] = { | |
19718 | (char *) "self",(char *) "dt", NULL | |
19719 | }; | |
19720 | ||
19721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19725 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19726 | SWIG_fail; | |
d14a1e28 | 19727 | if (arg2 == NULL) { |
15afbcd0 RD |
19728 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19729 | SWIG_fail; | |
d14a1e28 RD |
19730 | } |
19731 | { | |
19732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19733 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
19734 | ||
19735 | wxPyEndAllowThreads(__tstate); | |
19736 | if (PyErr_Occurred()) SWIG_fail; | |
19737 | } | |
4f89f6a3 RD |
19738 | { |
19739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19740 | } | |
d14a1e28 RD |
19741 | return resultobj; |
19742 | fail: | |
19743 | return NULL; | |
19744 | } | |
19745 | ||
19746 | ||
19747 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19748 | PyObject *resultobj; | |
19749 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19750 | wxDateTime *arg2 = 0 ; | |
19751 | wxTimeSpan *arg3 = 0 ; | |
19752 | bool result; | |
19753 | PyObject * obj0 = 0 ; | |
19754 | PyObject * obj1 = 0 ; | |
19755 | PyObject * obj2 = 0 ; | |
19756 | char *kwnames[] = { | |
19757 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
19758 | }; | |
19759 | ||
19760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19763 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19764 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19765 | SWIG_fail; | |
d14a1e28 | 19766 | if (arg2 == NULL) { |
15afbcd0 RD |
19767 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19768 | SWIG_fail; | |
d14a1e28 | 19769 | } |
15afbcd0 RD |
19770 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan, |
19771 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19772 | SWIG_fail; | |
d14a1e28 | 19773 | if (arg3 == NULL) { |
15afbcd0 RD |
19774 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19775 | SWIG_fail; | |
d14a1e28 RD |
19776 | } |
19777 | { | |
19778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19779 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
19780 | ||
19781 | wxPyEndAllowThreads(__tstate); | |
19782 | if (PyErr_Occurred()) SWIG_fail; | |
19783 | } | |
4f89f6a3 RD |
19784 | { |
19785 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19786 | } | |
d14a1e28 RD |
19787 | return resultobj; |
19788 | fail: | |
19789 | return NULL; | |
19790 | } | |
19791 | ||
19792 | ||
19793 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19794 | PyObject *resultobj; | |
19795 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19796 | wxTimeSpan *arg2 = 0 ; | |
19797 | wxDateTime *result; | |
19798 | PyObject * obj0 = 0 ; | |
19799 | PyObject * obj1 = 0 ; | |
19800 | char *kwnames[] = { | |
19801 | (char *) "self",(char *) "diff", NULL | |
19802 | }; | |
19803 | ||
19804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19807 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19808 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19809 | SWIG_fail; | |
d14a1e28 | 19810 | if (arg2 == NULL) { |
15afbcd0 RD |
19811 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19812 | SWIG_fail; | |
d14a1e28 RD |
19813 | } |
19814 | { | |
19815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19816 | { | |
19817 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
19818 | result = (wxDateTime *) &_result_ref; | |
19819 | } | |
19820 | ||
19821 | wxPyEndAllowThreads(__tstate); | |
19822 | if (PyErr_Occurred()) SWIG_fail; | |
19823 | } | |
15afbcd0 | 19824 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19825 | return resultobj; |
19826 | fail: | |
19827 | return NULL; | |
19828 | } | |
19829 | ||
19830 | ||
19831 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19832 | PyObject *resultobj; | |
19833 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19834 | wxDateSpan *arg2 = 0 ; | |
19835 | wxDateTime *result; | |
19836 | PyObject * obj0 = 0 ; | |
19837 | PyObject * obj1 = 0 ; | |
19838 | char *kwnames[] = { | |
19839 | (char *) "self",(char *) "diff", NULL | |
19840 | }; | |
19841 | ||
19842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19845 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19846 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19847 | SWIG_fail; | |
d14a1e28 | 19848 | if (arg2 == NULL) { |
15afbcd0 RD |
19849 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19850 | SWIG_fail; | |
d14a1e28 RD |
19851 | } |
19852 | { | |
19853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19854 | { | |
19855 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
19856 | result = (wxDateTime *) &_result_ref; | |
19857 | } | |
19858 | ||
19859 | wxPyEndAllowThreads(__tstate); | |
19860 | if (PyErr_Occurred()) SWIG_fail; | |
19861 | } | |
15afbcd0 | 19862 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19863 | return resultobj; |
19864 | fail: | |
19865 | return NULL; | |
19866 | } | |
19867 | ||
19868 | ||
19869 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19870 | PyObject *resultobj; | |
19871 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19872 | wxTimeSpan *arg2 = 0 ; | |
19873 | wxDateTime *result; | |
19874 | PyObject * obj0 = 0 ; | |
19875 | PyObject * obj1 = 0 ; | |
19876 | char *kwnames[] = { | |
19877 | (char *) "self",(char *) "diff", NULL | |
19878 | }; | |
19879 | ||
19880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19883 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19884 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19885 | SWIG_fail; | |
d14a1e28 | 19886 | if (arg2 == NULL) { |
15afbcd0 RD |
19887 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19888 | SWIG_fail; | |
d14a1e28 RD |
19889 | } |
19890 | { | |
19891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19892 | { | |
19893 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
19894 | result = (wxDateTime *) &_result_ref; | |
19895 | } | |
19896 | ||
19897 | wxPyEndAllowThreads(__tstate); | |
19898 | if (PyErr_Occurred()) SWIG_fail; | |
19899 | } | |
15afbcd0 | 19900 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19901 | return resultobj; |
19902 | fail: | |
19903 | return NULL; | |
19904 | } | |
19905 | ||
19906 | ||
19907 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19908 | PyObject *resultobj; | |
19909 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19910 | wxDateSpan *arg2 = 0 ; | |
19911 | wxDateTime *result; | |
19912 | PyObject * obj0 = 0 ; | |
19913 | PyObject * obj1 = 0 ; | |
19914 | char *kwnames[] = { | |
19915 | (char *) "self",(char *) "diff", NULL | |
19916 | }; | |
19917 | ||
19918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19921 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19922 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19923 | SWIG_fail; | |
d14a1e28 | 19924 | if (arg2 == NULL) { |
15afbcd0 RD |
19925 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19926 | SWIG_fail; | |
d14a1e28 RD |
19927 | } |
19928 | { | |
19929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19930 | { | |
19931 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
19932 | result = (wxDateTime *) &_result_ref; | |
19933 | } | |
19934 | ||
19935 | wxPyEndAllowThreads(__tstate); | |
19936 | if (PyErr_Occurred()) SWIG_fail; | |
19937 | } | |
15afbcd0 | 19938 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19939 | return resultobj; |
19940 | fail: | |
19941 | return NULL; | |
19942 | } | |
19943 | ||
19944 | ||
19945 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19946 | PyObject *resultobj; | |
19947 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19948 | wxDateTime *arg2 = 0 ; | |
19949 | wxTimeSpan result; | |
19950 | PyObject * obj0 = 0 ; | |
19951 | PyObject * obj1 = 0 ; | |
19952 | char *kwnames[] = { | |
19953 | (char *) "self",(char *) "dt", NULL | |
19954 | }; | |
19955 | ||
19956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19959 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19960 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19961 | SWIG_fail; | |
d14a1e28 | 19962 | if (arg2 == NULL) { |
15afbcd0 RD |
19963 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19964 | SWIG_fail; | |
d14a1e28 RD |
19965 | } |
19966 | { | |
19967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19968 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
19969 | ||
19970 | wxPyEndAllowThreads(__tstate); | |
19971 | if (PyErr_Occurred()) SWIG_fail; | |
19972 | } | |
19973 | { | |
19974 | wxTimeSpan * resultptr; | |
19975 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 19976 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
19977 | } |
19978 | return resultobj; | |
19979 | fail: | |
19980 | return NULL; | |
19981 | } | |
19982 | ||
19983 | ||
19984 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
19985 | PyObject *resultobj; | |
19986 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19987 | wxTimeSpan *arg2 = 0 ; | |
19988 | wxDateTime *result; | |
19989 | PyObject * obj0 = 0 ; | |
19990 | PyObject * obj1 = 0 ; | |
19991 | ||
19992 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19995 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19996 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19997 | SWIG_fail; | |
d14a1e28 | 19998 | if (arg2 == NULL) { |
15afbcd0 RD |
19999 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20000 | SWIG_fail; | |
d14a1e28 RD |
20001 | } |
20002 | { | |
20003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20004 | { | |
20005 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
20006 | result = (wxDateTime *) &_result_ref; | |
20007 | } | |
20008 | ||
20009 | wxPyEndAllowThreads(__tstate); | |
20010 | if (PyErr_Occurred()) SWIG_fail; | |
20011 | } | |
15afbcd0 | 20012 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20013 | return resultobj; |
20014 | fail: | |
20015 | return NULL; | |
20016 | } | |
20017 | ||
20018 | ||
20019 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
20020 | PyObject *resultobj; | |
20021 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20022 | wxDateSpan *arg2 = 0 ; | |
20023 | wxDateTime *result; | |
20024 | PyObject * obj0 = 0 ; | |
20025 | PyObject * obj1 = 0 ; | |
20026 | ||
20027 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20030 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20031 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20032 | SWIG_fail; | |
d14a1e28 | 20033 | if (arg2 == NULL) { |
15afbcd0 RD |
20034 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20035 | SWIG_fail; | |
d14a1e28 RD |
20036 | } |
20037 | { | |
20038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20039 | { | |
20040 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
20041 | result = (wxDateTime *) &_result_ref; | |
20042 | } | |
20043 | ||
20044 | wxPyEndAllowThreads(__tstate); | |
20045 | if (PyErr_Occurred()) SWIG_fail; | |
20046 | } | |
15afbcd0 | 20047 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20048 | return resultobj; |
20049 | fail: | |
20050 | return NULL; | |
20051 | } | |
20052 | ||
20053 | ||
20054 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
20055 | int argc; | |
20056 | PyObject *argv[3]; | |
20057 | int ii; | |
20058 | ||
20059 | argc = PyObject_Length(args); | |
20060 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20061 | argv[ii] = PyTuple_GetItem(args,ii); | |
20062 | } | |
20063 | if (argc == 2) { | |
20064 | int _v; | |
20065 | { | |
20066 | void *ptr; | |
15afbcd0 | 20067 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20068 | _v = 0; |
20069 | PyErr_Clear(); | |
20070 | } else { | |
20071 | _v = 1; | |
20072 | } | |
20073 | } | |
20074 | if (_v) { | |
20075 | { | |
20076 | void *ptr; | |
15afbcd0 | 20077 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20078 | _v = 0; |
20079 | PyErr_Clear(); | |
20080 | } else { | |
20081 | _v = 1; | |
20082 | } | |
20083 | } | |
20084 | if (_v) { | |
20085 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
20086 | } | |
20087 | } | |
20088 | } | |
20089 | if (argc == 2) { | |
20090 | int _v; | |
20091 | { | |
20092 | void *ptr; | |
15afbcd0 | 20093 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20094 | _v = 0; |
20095 | PyErr_Clear(); | |
20096 | } else { | |
20097 | _v = 1; | |
20098 | } | |
20099 | } | |
20100 | if (_v) { | |
20101 | { | |
20102 | void *ptr; | |
15afbcd0 | 20103 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20104 | _v = 0; |
20105 | PyErr_Clear(); | |
20106 | } else { | |
20107 | _v = 1; | |
20108 | } | |
20109 | } | |
20110 | if (_v) { | |
20111 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
20112 | } | |
20113 | } | |
20114 | } | |
20115 | ||
20116 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
20117 | return NULL; | |
20118 | } | |
20119 | ||
20120 | ||
20121 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
20122 | PyObject *resultobj; | |
20123 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20124 | wxTimeSpan *arg2 = 0 ; | |
20125 | wxDateTime *result; | |
20126 | PyObject * obj0 = 0 ; | |
20127 | PyObject * obj1 = 0 ; | |
20128 | ||
20129 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20132 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20133 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20134 | SWIG_fail; | |
d14a1e28 | 20135 | if (arg2 == NULL) { |
15afbcd0 RD |
20136 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20137 | SWIG_fail; | |
d14a1e28 RD |
20138 | } |
20139 | { | |
20140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20141 | { | |
20142 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
20143 | result = (wxDateTime *) &_result_ref; | |
20144 | } | |
20145 | ||
20146 | wxPyEndAllowThreads(__tstate); | |
20147 | if (PyErr_Occurred()) SWIG_fail; | |
20148 | } | |
15afbcd0 | 20149 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20150 | return resultobj; |
20151 | fail: | |
20152 | return NULL; | |
20153 | } | |
20154 | ||
20155 | ||
20156 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
20157 | PyObject *resultobj; | |
20158 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20159 | wxDateSpan *arg2 = 0 ; | |
20160 | wxDateTime *result; | |
20161 | PyObject * obj0 = 0 ; | |
20162 | PyObject * obj1 = 0 ; | |
20163 | ||
20164 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20167 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20168 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20169 | SWIG_fail; | |
d14a1e28 | 20170 | if (arg2 == NULL) { |
15afbcd0 RD |
20171 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20172 | SWIG_fail; | |
d14a1e28 RD |
20173 | } |
20174 | { | |
20175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20176 | { | |
20177 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
20178 | result = (wxDateTime *) &_result_ref; | |
20179 | } | |
20180 | ||
20181 | wxPyEndAllowThreads(__tstate); | |
20182 | if (PyErr_Occurred()) SWIG_fail; | |
20183 | } | |
15afbcd0 | 20184 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20185 | return resultobj; |
20186 | fail: | |
20187 | return NULL; | |
20188 | } | |
20189 | ||
20190 | ||
20191 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
20192 | int argc; | |
20193 | PyObject *argv[3]; | |
20194 | int ii; | |
20195 | ||
20196 | argc = PyObject_Length(args); | |
20197 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20198 | argv[ii] = PyTuple_GetItem(args,ii); | |
20199 | } | |
20200 | if (argc == 2) { | |
20201 | int _v; | |
20202 | { | |
20203 | void *ptr; | |
15afbcd0 | 20204 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20205 | _v = 0; |
20206 | PyErr_Clear(); | |
20207 | } else { | |
20208 | _v = 1; | |
20209 | } | |
20210 | } | |
20211 | if (_v) { | |
20212 | { | |
20213 | void *ptr; | |
15afbcd0 | 20214 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20215 | _v = 0; |
20216 | PyErr_Clear(); | |
20217 | } else { | |
20218 | _v = 1; | |
20219 | } | |
20220 | } | |
20221 | if (_v) { | |
20222 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
20223 | } | |
20224 | } | |
20225 | } | |
20226 | if (argc == 2) { | |
20227 | int _v; | |
20228 | { | |
20229 | void *ptr; | |
15afbcd0 | 20230 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20231 | _v = 0; |
20232 | PyErr_Clear(); | |
20233 | } else { | |
20234 | _v = 1; | |
20235 | } | |
20236 | } | |
20237 | if (_v) { | |
20238 | { | |
20239 | void *ptr; | |
15afbcd0 | 20240 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20241 | _v = 0; |
20242 | PyErr_Clear(); | |
20243 | } else { | |
20244 | _v = 1; | |
20245 | } | |
20246 | } | |
20247 | if (_v) { | |
20248 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
20249 | } | |
20250 | } | |
20251 | } | |
20252 | ||
20253 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
20254 | return NULL; | |
20255 | } | |
20256 | ||
20257 | ||
20258 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
20259 | PyObject *resultobj; | |
20260 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20261 | wxTimeSpan *arg2 = 0 ; | |
20262 | wxDateTime result; | |
20263 | PyObject * obj0 = 0 ; | |
20264 | PyObject * obj1 = 0 ; | |
20265 | ||
20266 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20269 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20270 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20271 | SWIG_fail; | |
d14a1e28 | 20272 | if (arg2 == NULL) { |
15afbcd0 RD |
20273 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20274 | SWIG_fail; | |
d14a1e28 RD |
20275 | } |
20276 | { | |
20277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20278 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
20279 | ||
20280 | wxPyEndAllowThreads(__tstate); | |
20281 | if (PyErr_Occurred()) SWIG_fail; | |
20282 | } | |
20283 | { | |
20284 | wxDateTime * resultptr; | |
20285 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20286 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20287 | } |
20288 | return resultobj; | |
20289 | fail: | |
20290 | return NULL; | |
20291 | } | |
20292 | ||
20293 | ||
20294 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
20295 | PyObject *resultobj; | |
20296 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20297 | wxDateSpan *arg2 = 0 ; | |
20298 | wxDateTime result; | |
20299 | PyObject * obj0 = 0 ; | |
20300 | PyObject * obj1 = 0 ; | |
20301 | ||
20302 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20305 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20306 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20307 | SWIG_fail; | |
d14a1e28 | 20308 | if (arg2 == NULL) { |
15afbcd0 RD |
20309 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20310 | SWIG_fail; | |
d14a1e28 RD |
20311 | } |
20312 | { | |
20313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20314 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
20315 | ||
20316 | wxPyEndAllowThreads(__tstate); | |
20317 | if (PyErr_Occurred()) SWIG_fail; | |
20318 | } | |
20319 | { | |
20320 | wxDateTime * resultptr; | |
20321 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20322 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20323 | } |
20324 | return resultobj; | |
20325 | fail: | |
20326 | return NULL; | |
20327 | } | |
20328 | ||
20329 | ||
20330 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
20331 | int argc; | |
20332 | PyObject *argv[3]; | |
20333 | int ii; | |
20334 | ||
20335 | argc = PyObject_Length(args); | |
20336 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20337 | argv[ii] = PyTuple_GetItem(args,ii); | |
20338 | } | |
20339 | if (argc == 2) { | |
20340 | int _v; | |
20341 | { | |
20342 | void *ptr; | |
15afbcd0 | 20343 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20344 | _v = 0; |
20345 | PyErr_Clear(); | |
20346 | } else { | |
20347 | _v = 1; | |
20348 | } | |
20349 | } | |
20350 | if (_v) { | |
20351 | { | |
20352 | void *ptr; | |
15afbcd0 | 20353 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20354 | _v = 0; |
20355 | PyErr_Clear(); | |
20356 | } else { | |
20357 | _v = 1; | |
20358 | } | |
20359 | } | |
20360 | if (_v) { | |
20361 | return _wrap_DateTime___add____SWIG_0(self,args); | |
20362 | } | |
20363 | } | |
20364 | } | |
20365 | if (argc == 2) { | |
20366 | int _v; | |
20367 | { | |
20368 | void *ptr; | |
15afbcd0 | 20369 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20370 | _v = 0; |
20371 | PyErr_Clear(); | |
20372 | } else { | |
20373 | _v = 1; | |
20374 | } | |
20375 | } | |
20376 | if (_v) { | |
20377 | { | |
20378 | void *ptr; | |
15afbcd0 | 20379 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20380 | _v = 0; |
20381 | PyErr_Clear(); | |
20382 | } else { | |
20383 | _v = 1; | |
20384 | } | |
20385 | } | |
20386 | if (_v) { | |
20387 | return _wrap_DateTime___add____SWIG_1(self,args); | |
20388 | } | |
20389 | } | |
20390 | } | |
20391 | ||
20392 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
20393 | return NULL; | |
20394 | } | |
20395 | ||
20396 | ||
20397 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
20398 | PyObject *resultobj; | |
20399 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20400 | wxDateTime *arg2 = 0 ; | |
20401 | wxTimeSpan result; | |
20402 | PyObject * obj0 = 0 ; | |
20403 | PyObject * obj1 = 0 ; | |
20404 | ||
20405 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20408 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20409 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20410 | SWIG_fail; | |
d14a1e28 | 20411 | if (arg2 == NULL) { |
15afbcd0 RD |
20412 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20413 | SWIG_fail; | |
d14a1e28 RD |
20414 | } |
20415 | { | |
20416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20417 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
20418 | ||
20419 | wxPyEndAllowThreads(__tstate); | |
20420 | if (PyErr_Occurred()) SWIG_fail; | |
20421 | } | |
20422 | { | |
20423 | wxTimeSpan * resultptr; | |
20424 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 20425 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
20426 | } |
20427 | return resultobj; | |
20428 | fail: | |
20429 | return NULL; | |
20430 | } | |
20431 | ||
20432 | ||
20433 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
20434 | PyObject *resultobj; | |
20435 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20436 | wxTimeSpan *arg2 = 0 ; | |
20437 | wxDateTime result; | |
20438 | PyObject * obj0 = 0 ; | |
20439 | PyObject * obj1 = 0 ; | |
20440 | ||
20441 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20444 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20445 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20446 | SWIG_fail; | |
d14a1e28 | 20447 | if (arg2 == NULL) { |
15afbcd0 RD |
20448 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20449 | SWIG_fail; | |
d14a1e28 RD |
20450 | } |
20451 | { | |
20452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20453 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
20454 | ||
20455 | wxPyEndAllowThreads(__tstate); | |
20456 | if (PyErr_Occurred()) SWIG_fail; | |
20457 | } | |
20458 | { | |
20459 | wxDateTime * resultptr; | |
20460 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20461 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20462 | } |
20463 | return resultobj; | |
20464 | fail: | |
20465 | return NULL; | |
20466 | } | |
20467 | ||
20468 | ||
20469 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
20470 | PyObject *resultobj; | |
20471 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20472 | wxDateSpan *arg2 = 0 ; | |
20473 | wxDateTime result; | |
20474 | PyObject * obj0 = 0 ; | |
20475 | PyObject * obj1 = 0 ; | |
20476 | ||
20477 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20480 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20481 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20482 | SWIG_fail; | |
d14a1e28 | 20483 | if (arg2 == NULL) { |
15afbcd0 RD |
20484 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20485 | SWIG_fail; | |
d14a1e28 RD |
20486 | } |
20487 | { | |
20488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20489 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
20490 | ||
20491 | wxPyEndAllowThreads(__tstate); | |
20492 | if (PyErr_Occurred()) SWIG_fail; | |
20493 | } | |
20494 | { | |
20495 | wxDateTime * resultptr; | |
20496 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20497 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20498 | } |
20499 | return resultobj; | |
20500 | fail: | |
20501 | return NULL; | |
20502 | } | |
20503 | ||
20504 | ||
20505 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
20506 | int argc; | |
20507 | PyObject *argv[3]; | |
20508 | int ii; | |
20509 | ||
20510 | argc = PyObject_Length(args); | |
20511 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20512 | argv[ii] = PyTuple_GetItem(args,ii); | |
20513 | } | |
20514 | if (argc == 2) { | |
20515 | int _v; | |
20516 | { | |
20517 | void *ptr; | |
15afbcd0 | 20518 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20519 | _v = 0; |
20520 | PyErr_Clear(); | |
20521 | } else { | |
20522 | _v = 1; | |
20523 | } | |
20524 | } | |
20525 | if (_v) { | |
20526 | { | |
20527 | void *ptr; | |
15afbcd0 | 20528 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20529 | _v = 0; |
20530 | PyErr_Clear(); | |
20531 | } else { | |
20532 | _v = 1; | |
20533 | } | |
20534 | } | |
20535 | if (_v) { | |
20536 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
20537 | } | |
20538 | } | |
20539 | } | |
20540 | if (argc == 2) { | |
20541 | int _v; | |
20542 | { | |
20543 | void *ptr; | |
15afbcd0 | 20544 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20545 | _v = 0; |
20546 | PyErr_Clear(); | |
20547 | } else { | |
20548 | _v = 1; | |
20549 | } | |
20550 | } | |
20551 | if (_v) { | |
20552 | { | |
20553 | void *ptr; | |
15afbcd0 | 20554 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20555 | _v = 0; |
20556 | PyErr_Clear(); | |
20557 | } else { | |
20558 | _v = 1; | |
20559 | } | |
20560 | } | |
20561 | if (_v) { | |
20562 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
20563 | } | |
20564 | } | |
20565 | } | |
20566 | if (argc == 2) { | |
20567 | int _v; | |
20568 | { | |
20569 | void *ptr; | |
15afbcd0 | 20570 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20571 | _v = 0; |
20572 | PyErr_Clear(); | |
20573 | } else { | |
20574 | _v = 1; | |
20575 | } | |
20576 | } | |
20577 | if (_v) { | |
20578 | { | |
20579 | void *ptr; | |
15afbcd0 | 20580 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20581 | _v = 0; |
20582 | PyErr_Clear(); | |
20583 | } else { | |
20584 | _v = 1; | |
20585 | } | |
20586 | } | |
20587 | if (_v) { | |
20588 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
20589 | } | |
20590 | } | |
20591 | } | |
20592 | ||
20593 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
20594 | return NULL; | |
20595 | } | |
20596 | ||
20597 | ||
20598 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
20599 | PyObject *resultobj; | |
20600 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20601 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20602 | bool result; |
20603 | PyObject * obj0 = 0 ; | |
20604 | PyObject * obj1 = 0 ; | |
20605 | ||
20606 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20609 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20611 | { |
20612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20613 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20614 | |
20615 | wxPyEndAllowThreads(__tstate); | |
20616 | if (PyErr_Occurred()) SWIG_fail; | |
20617 | } | |
4f89f6a3 RD |
20618 | { |
20619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20620 | } | |
d14a1e28 RD |
20621 | return resultobj; |
20622 | fail: | |
20623 | return NULL; | |
20624 | } | |
20625 | ||
20626 | ||
20627 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
20628 | PyObject *resultobj; | |
20629 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20630 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20631 | bool result; |
20632 | PyObject * obj0 = 0 ; | |
20633 | PyObject * obj1 = 0 ; | |
20634 | ||
20635 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20638 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20640 | { |
20641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20642 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20643 | |
20644 | wxPyEndAllowThreads(__tstate); | |
20645 | if (PyErr_Occurred()) SWIG_fail; | |
20646 | } | |
4f89f6a3 RD |
20647 | { |
20648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20649 | } | |
d14a1e28 RD |
20650 | return resultobj; |
20651 | fail: | |
20652 | return NULL; | |
20653 | } | |
20654 | ||
20655 | ||
20656 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
20657 | PyObject *resultobj; | |
20658 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20659 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20660 | bool result; |
20661 | PyObject * obj0 = 0 ; | |
20662 | PyObject * obj1 = 0 ; | |
20663 | ||
20664 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20667 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20669 | { |
20670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20671 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20672 | |
20673 | wxPyEndAllowThreads(__tstate); | |
20674 | if (PyErr_Occurred()) SWIG_fail; | |
20675 | } | |
4f89f6a3 RD |
20676 | { |
20677 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20678 | } | |
d14a1e28 RD |
20679 | return resultobj; |
20680 | fail: | |
20681 | return NULL; | |
20682 | } | |
20683 | ||
20684 | ||
20685 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
20686 | PyObject *resultobj; | |
20687 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20688 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20689 | bool result; |
20690 | PyObject * obj0 = 0 ; | |
20691 | PyObject * obj1 = 0 ; | |
20692 | ||
20693 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20696 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20698 | { |
20699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20700 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20701 | |
20702 | wxPyEndAllowThreads(__tstate); | |
20703 | if (PyErr_Occurred()) SWIG_fail; | |
20704 | } | |
4f89f6a3 RD |
20705 | { |
20706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20707 | } | |
d14a1e28 RD |
20708 | return resultobj; |
20709 | fail: | |
20710 | return NULL; | |
20711 | } | |
20712 | ||
20713 | ||
20714 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
20715 | PyObject *resultobj; | |
20716 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20717 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20718 | bool result; |
20719 | PyObject * obj0 = 0 ; | |
20720 | PyObject * obj1 = 0 ; | |
20721 | ||
20722 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20725 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20727 | { |
20728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20729 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20730 | |
20731 | wxPyEndAllowThreads(__tstate); | |
20732 | if (PyErr_Occurred()) SWIG_fail; | |
20733 | } | |
4f89f6a3 RD |
20734 | { |
20735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20736 | } | |
d14a1e28 RD |
20737 | return resultobj; |
20738 | fail: | |
20739 | return NULL; | |
20740 | } | |
20741 | ||
20742 | ||
20743 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
20744 | PyObject *resultobj; | |
20745 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20746 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20747 | bool result; |
20748 | PyObject * obj0 = 0 ; | |
20749 | PyObject * obj1 = 0 ; | |
20750 | ||
20751 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20754 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20756 | { |
20757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20758 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20759 | |
20760 | wxPyEndAllowThreads(__tstate); | |
20761 | if (PyErr_Occurred()) SWIG_fail; | |
20762 | } | |
4f89f6a3 RD |
20763 | { |
20764 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20765 | } | |
d14a1e28 RD |
20766 | return resultobj; |
20767 | fail: | |
20768 | return NULL; | |
20769 | } | |
20770 | ||
20771 | ||
20772 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20773 | PyObject *resultobj; | |
20774 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20775 | wxString *arg2 = 0 ; | |
20776 | int result; | |
e811c8ce | 20777 | bool temp2 = False ; |
d14a1e28 RD |
20778 | PyObject * obj0 = 0 ; |
20779 | PyObject * obj1 = 0 ; | |
20780 | char *kwnames[] = { | |
20781 | (char *) "self",(char *) "date", NULL | |
20782 | }; | |
20783 | ||
20784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20787 | { |
20788 | arg2 = wxString_in_helper(obj1); | |
20789 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20790 | temp2 = True; |
d14a1e28 RD |
20791 | } |
20792 | { | |
20793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20794 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
20795 | ||
20796 | wxPyEndAllowThreads(__tstate); | |
20797 | if (PyErr_Occurred()) SWIG_fail; | |
20798 | } | |
15afbcd0 | 20799 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20800 | { |
20801 | if (temp2) | |
20802 | delete arg2; | |
20803 | } | |
20804 | return resultobj; | |
20805 | fail: | |
20806 | { | |
20807 | if (temp2) | |
20808 | delete arg2; | |
20809 | } | |
20810 | return NULL; | |
20811 | } | |
20812 | ||
20813 | ||
20814 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20815 | PyObject *resultobj; | |
20816 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20817 | wxString *arg2 = 0 ; | |
20818 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
20819 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20820 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
20821 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
20822 | int result; | |
e811c8ce RD |
20823 | bool temp2 = False ; |
20824 | bool temp3 = False ; | |
d14a1e28 RD |
20825 | PyObject * obj0 = 0 ; |
20826 | PyObject * obj1 = 0 ; | |
20827 | PyObject * obj2 = 0 ; | |
20828 | PyObject * obj3 = 0 ; | |
20829 | char *kwnames[] = { | |
20830 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
20831 | }; | |
20832 | ||
20833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
20834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20836 | { |
20837 | arg2 = wxString_in_helper(obj1); | |
20838 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20839 | temp2 = True; |
d14a1e28 RD |
20840 | } |
20841 | if (obj2) { | |
20842 | { | |
20843 | arg3 = wxString_in_helper(obj2); | |
20844 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 20845 | temp3 = True; |
d14a1e28 RD |
20846 | } |
20847 | } | |
20848 | if (obj3) { | |
15afbcd0 RD |
20849 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime, |
20850 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20851 | SWIG_fail; | |
d14a1e28 | 20852 | if (arg4 == NULL) { |
15afbcd0 RD |
20853 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20854 | SWIG_fail; | |
d14a1e28 RD |
20855 | } |
20856 | } | |
20857 | { | |
20858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20859 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
20860 | ||
20861 | wxPyEndAllowThreads(__tstate); | |
20862 | if (PyErr_Occurred()) SWIG_fail; | |
20863 | } | |
15afbcd0 | 20864 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20865 | { |
20866 | if (temp2) | |
20867 | delete arg2; | |
20868 | } | |
20869 | { | |
20870 | if (temp3) | |
20871 | delete arg3; | |
20872 | } | |
20873 | return resultobj; | |
20874 | fail: | |
20875 | { | |
20876 | if (temp2) | |
20877 | delete arg2; | |
20878 | } | |
20879 | { | |
20880 | if (temp3) | |
20881 | delete arg3; | |
20882 | } | |
20883 | return NULL; | |
20884 | } | |
20885 | ||
20886 | ||
20887 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20888 | PyObject *resultobj; | |
20889 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20890 | wxString *arg2 = 0 ; | |
20891 | int result; | |
e811c8ce | 20892 | bool temp2 = False ; |
d14a1e28 RD |
20893 | PyObject * obj0 = 0 ; |
20894 | PyObject * obj1 = 0 ; | |
20895 | char *kwnames[] = { | |
20896 | (char *) "self",(char *) "datetime", NULL | |
20897 | }; | |
20898 | ||
20899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20902 | { |
20903 | arg2 = wxString_in_helper(obj1); | |
20904 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20905 | temp2 = True; |
d14a1e28 RD |
20906 | } |
20907 | { | |
20908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20909 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
20910 | ||
20911 | wxPyEndAllowThreads(__tstate); | |
20912 | if (PyErr_Occurred()) SWIG_fail; | |
20913 | } | |
15afbcd0 | 20914 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20915 | { |
20916 | if (temp2) | |
20917 | delete arg2; | |
20918 | } | |
20919 | return resultobj; | |
20920 | fail: | |
20921 | { | |
20922 | if (temp2) | |
20923 | delete arg2; | |
20924 | } | |
20925 | return NULL; | |
20926 | } | |
20927 | ||
20928 | ||
20929 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20930 | PyObject *resultobj; | |
20931 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20932 | wxString *arg2 = 0 ; | |
20933 | int result; | |
e811c8ce | 20934 | bool temp2 = False ; |
d14a1e28 RD |
20935 | PyObject * obj0 = 0 ; |
20936 | PyObject * obj1 = 0 ; | |
20937 | char *kwnames[] = { | |
20938 | (char *) "self",(char *) "date", NULL | |
20939 | }; | |
20940 | ||
20941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20944 | { |
20945 | arg2 = wxString_in_helper(obj1); | |
20946 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20947 | temp2 = True; |
d14a1e28 RD |
20948 | } |
20949 | { | |
20950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20951 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
20952 | ||
20953 | wxPyEndAllowThreads(__tstate); | |
20954 | if (PyErr_Occurred()) SWIG_fail; | |
20955 | } | |
15afbcd0 | 20956 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20957 | { |
20958 | if (temp2) | |
20959 | delete arg2; | |
20960 | } | |
20961 | return resultobj; | |
20962 | fail: | |
20963 | { | |
20964 | if (temp2) | |
20965 | delete arg2; | |
20966 | } | |
20967 | return NULL; | |
20968 | } | |
20969 | ||
20970 | ||
20971 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20972 | PyObject *resultobj; | |
20973 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20974 | wxString *arg2 = 0 ; | |
20975 | int result; | |
e811c8ce | 20976 | bool temp2 = False ; |
d14a1e28 RD |
20977 | PyObject * obj0 = 0 ; |
20978 | PyObject * obj1 = 0 ; | |
20979 | char *kwnames[] = { | |
20980 | (char *) "self",(char *) "time", NULL | |
20981 | }; | |
20982 | ||
20983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20986 | { |
20987 | arg2 = wxString_in_helper(obj1); | |
20988 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20989 | temp2 = True; |
d14a1e28 RD |
20990 | } |
20991 | { | |
20992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20993 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
20994 | ||
20995 | wxPyEndAllowThreads(__tstate); | |
20996 | if (PyErr_Occurred()) SWIG_fail; | |
20997 | } | |
15afbcd0 | 20998 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20999 | { |
21000 | if (temp2) | |
21001 | delete arg2; | |
21002 | } | |
21003 | return resultobj; | |
21004 | fail: | |
21005 | { | |
21006 | if (temp2) | |
21007 | delete arg2; | |
21008 | } | |
21009 | return NULL; | |
21010 | } | |
21011 | ||
21012 | ||
21013 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21014 | PyObject *resultobj; | |
21015 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21016 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
21017 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
21018 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
21019 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
21020 | wxString result; | |
e811c8ce | 21021 | bool temp2 = False ; |
7722248d | 21022 | bool temp3 = False ; |
d14a1e28 RD |
21023 | PyObject * obj0 = 0 ; |
21024 | PyObject * obj1 = 0 ; | |
21025 | PyObject * obj2 = 0 ; | |
21026 | char *kwnames[] = { | |
21027 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
21028 | }; | |
21029 | ||
21030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
21031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21033 | if (obj1) { |
21034 | { | |
21035 | arg2 = wxString_in_helper(obj1); | |
21036 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21037 | temp2 = True; |
d14a1e28 RD |
21038 | } |
21039 | } | |
21040 | if (obj2) { | |
21041 | { | |
21042 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 21043 | temp3 = True; |
d14a1e28 RD |
21044 | } |
21045 | } | |
21046 | { | |
21047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21048 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
21049 | ||
21050 | wxPyEndAllowThreads(__tstate); | |
21051 | if (PyErr_Occurred()) SWIG_fail; | |
21052 | } | |
21053 | { | |
21054 | #if wxUSE_UNICODE | |
21055 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21056 | #else | |
21057 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21058 | #endif | |
21059 | } | |
21060 | { | |
21061 | if (temp2) | |
21062 | delete arg2; | |
21063 | } | |
21064 | { | |
7722248d | 21065 | if (temp3) delete arg3; |
d14a1e28 RD |
21066 | } |
21067 | return resultobj; | |
21068 | fail: | |
21069 | { | |
21070 | if (temp2) | |
21071 | delete arg2; | |
21072 | } | |
21073 | { | |
7722248d | 21074 | if (temp3) delete arg3; |
d14a1e28 RD |
21075 | } |
21076 | return NULL; | |
21077 | } | |
21078 | ||
21079 | ||
21080 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21081 | PyObject *resultobj; | |
21082 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21083 | wxString result; | |
21084 | PyObject * obj0 = 0 ; | |
21085 | char *kwnames[] = { | |
21086 | (char *) "self", NULL | |
21087 | }; | |
21088 | ||
21089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21092 | { |
21093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21094 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
21095 | ||
21096 | wxPyEndAllowThreads(__tstate); | |
21097 | if (PyErr_Occurred()) SWIG_fail; | |
21098 | } | |
21099 | { | |
21100 | #if wxUSE_UNICODE | |
21101 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21102 | #else | |
21103 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21104 | #endif | |
21105 | } | |
21106 | return resultobj; | |
21107 | fail: | |
21108 | return NULL; | |
21109 | } | |
21110 | ||
21111 | ||
21112 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21113 | PyObject *resultobj; | |
21114 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21115 | wxString result; | |
21116 | PyObject * obj0 = 0 ; | |
21117 | char *kwnames[] = { | |
21118 | (char *) "self", NULL | |
21119 | }; | |
21120 | ||
21121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21124 | { |
21125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21126 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
21127 | ||
21128 | wxPyEndAllowThreads(__tstate); | |
21129 | if (PyErr_Occurred()) SWIG_fail; | |
21130 | } | |
21131 | { | |
21132 | #if wxUSE_UNICODE | |
21133 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21134 | #else | |
21135 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21136 | #endif | |
21137 | } | |
21138 | return resultobj; | |
21139 | fail: | |
21140 | return NULL; | |
21141 | } | |
21142 | ||
21143 | ||
21144 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21145 | PyObject *resultobj; | |
21146 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21147 | wxString result; | |
21148 | PyObject * obj0 = 0 ; | |
21149 | char *kwnames[] = { | |
21150 | (char *) "self", NULL | |
21151 | }; | |
21152 | ||
21153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21156 | { |
21157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21158 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
21159 | ||
21160 | wxPyEndAllowThreads(__tstate); | |
21161 | if (PyErr_Occurred()) SWIG_fail; | |
21162 | } | |
21163 | { | |
21164 | #if wxUSE_UNICODE | |
21165 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21166 | #else | |
21167 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21168 | #endif | |
21169 | } | |
21170 | return resultobj; | |
21171 | fail: | |
21172 | return NULL; | |
21173 | } | |
21174 | ||
21175 | ||
21176 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21177 | PyObject *resultobj; | |
21178 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21179 | wxString result; | |
21180 | PyObject * obj0 = 0 ; | |
21181 | char *kwnames[] = { | |
21182 | (char *) "self", NULL | |
21183 | }; | |
21184 | ||
21185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21188 | { |
21189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21190 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
21191 | ||
21192 | wxPyEndAllowThreads(__tstate); | |
21193 | if (PyErr_Occurred()) SWIG_fail; | |
21194 | } | |
21195 | { | |
21196 | #if wxUSE_UNICODE | |
21197 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21198 | #else | |
21199 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21200 | #endif | |
21201 | } | |
21202 | return resultobj; | |
21203 | fail: | |
21204 | return NULL; | |
21205 | } | |
21206 | ||
21207 | ||
21208 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
21209 | PyObject *obj; | |
21210 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21211 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
21212 | Py_INCREF(obj); | |
21213 | return Py_BuildValue((char *)""); | |
21214 | } | |
21215 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21216 | PyObject *resultobj; | |
21217 | long arg1 ; | |
21218 | wxTimeSpan result; | |
994141e6 | 21219 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21220 | char *kwnames[] = { |
21221 | (char *) "sec", NULL | |
21222 | }; | |
21223 | ||
994141e6 | 21224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21225 | arg1 = (long) SWIG_AsLong(obj0); |
21226 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21227 | { |
21228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21229 | result = wxTimeSpan::Seconds(arg1); | |
21230 | ||
21231 | wxPyEndAllowThreads(__tstate); | |
21232 | if (PyErr_Occurred()) SWIG_fail; | |
21233 | } | |
21234 | { | |
21235 | wxTimeSpan * resultptr; | |
21236 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21237 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21238 | } |
21239 | return resultobj; | |
21240 | fail: | |
21241 | return NULL; | |
21242 | } | |
21243 | ||
21244 | ||
21245 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21246 | PyObject *resultobj; | |
21247 | wxTimeSpan result; | |
21248 | char *kwnames[] = { | |
21249 | NULL | |
21250 | }; | |
21251 | ||
21252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
21253 | { | |
21254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21255 | result = wxTimeSpan::Second(); | |
21256 | ||
21257 | wxPyEndAllowThreads(__tstate); | |
21258 | if (PyErr_Occurred()) SWIG_fail; | |
21259 | } | |
21260 | { | |
21261 | wxTimeSpan * resultptr; | |
21262 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21263 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21264 | } |
21265 | return resultobj; | |
21266 | fail: | |
21267 | return NULL; | |
21268 | } | |
21269 | ||
21270 | ||
21271 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21272 | PyObject *resultobj; | |
21273 | long arg1 ; | |
21274 | wxTimeSpan result; | |
994141e6 | 21275 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21276 | char *kwnames[] = { |
21277 | (char *) "min", NULL | |
21278 | }; | |
21279 | ||
994141e6 | 21280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21281 | arg1 = (long) SWIG_AsLong(obj0); |
21282 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21283 | { |
21284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21285 | result = wxTimeSpan::Minutes(arg1); | |
21286 | ||
21287 | wxPyEndAllowThreads(__tstate); | |
21288 | if (PyErr_Occurred()) SWIG_fail; | |
21289 | } | |
21290 | { | |
21291 | wxTimeSpan * resultptr; | |
21292 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21293 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21294 | } |
21295 | return resultobj; | |
21296 | fail: | |
21297 | return NULL; | |
21298 | } | |
21299 | ||
21300 | ||
21301 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21302 | PyObject *resultobj; | |
21303 | wxTimeSpan result; | |
21304 | char *kwnames[] = { | |
21305 | NULL | |
21306 | }; | |
21307 | ||
21308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
21309 | { | |
21310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21311 | result = wxTimeSpan::Minute(); | |
21312 | ||
21313 | wxPyEndAllowThreads(__tstate); | |
21314 | if (PyErr_Occurred()) SWIG_fail; | |
21315 | } | |
21316 | { | |
21317 | wxTimeSpan * resultptr; | |
21318 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21319 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21320 | } |
21321 | return resultobj; | |
21322 | fail: | |
21323 | return NULL; | |
21324 | } | |
21325 | ||
21326 | ||
21327 | static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21328 | PyObject *resultobj; | |
21329 | long arg1 ; | |
21330 | wxTimeSpan result; | |
994141e6 | 21331 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21332 | char *kwnames[] = { |
21333 | (char *) "hours", NULL | |
21334 | }; | |
21335 | ||
994141e6 | 21336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21337 | arg1 = (long) SWIG_AsLong(obj0); |
21338 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21339 | { |
21340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21341 | result = wxTimeSpan::Hours(arg1); | |
21342 | ||
21343 | wxPyEndAllowThreads(__tstate); | |
21344 | if (PyErr_Occurred()) SWIG_fail; | |
21345 | } | |
21346 | { | |
21347 | wxTimeSpan * resultptr; | |
21348 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21349 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21350 | } |
21351 | return resultobj; | |
21352 | fail: | |
21353 | return NULL; | |
21354 | } | |
21355 | ||
21356 | ||
21357 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21358 | PyObject *resultobj; | |
21359 | wxTimeSpan result; | |
21360 | char *kwnames[] = { | |
21361 | NULL | |
21362 | }; | |
21363 | ||
21364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
21365 | { | |
21366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21367 | result = wxTimeSpan::Hour(); | |
21368 | ||
21369 | wxPyEndAllowThreads(__tstate); | |
21370 | if (PyErr_Occurred()) SWIG_fail; | |
21371 | } | |
21372 | { | |
21373 | wxTimeSpan * resultptr; | |
21374 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21375 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21376 | } |
21377 | return resultobj; | |
21378 | fail: | |
21379 | return NULL; | |
21380 | } | |
21381 | ||
21382 | ||
21383 | static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21384 | PyObject *resultobj; | |
21385 | long arg1 ; | |
21386 | wxTimeSpan result; | |
994141e6 | 21387 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21388 | char *kwnames[] = { |
21389 | (char *) "days", NULL | |
21390 | }; | |
21391 | ||
994141e6 | 21392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21393 | arg1 = (long) SWIG_AsLong(obj0); |
21394 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21395 | { |
21396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21397 | result = wxTimeSpan::Days(arg1); | |
21398 | ||
21399 | wxPyEndAllowThreads(__tstate); | |
21400 | if (PyErr_Occurred()) SWIG_fail; | |
21401 | } | |
21402 | { | |
21403 | wxTimeSpan * resultptr; | |
21404 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21405 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21406 | } |
21407 | return resultobj; | |
21408 | fail: | |
21409 | return NULL; | |
21410 | } | |
21411 | ||
21412 | ||
21413 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21414 | PyObject *resultobj; | |
21415 | wxTimeSpan result; | |
21416 | char *kwnames[] = { | |
21417 | NULL | |
21418 | }; | |
21419 | ||
21420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
21421 | { | |
21422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21423 | result = wxTimeSpan::Day(); | |
21424 | ||
21425 | wxPyEndAllowThreads(__tstate); | |
21426 | if (PyErr_Occurred()) SWIG_fail; | |
21427 | } | |
21428 | { | |
21429 | wxTimeSpan * resultptr; | |
21430 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21431 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21432 | } |
21433 | return resultobj; | |
21434 | fail: | |
21435 | return NULL; | |
21436 | } | |
21437 | ||
21438 | ||
21439 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21440 | PyObject *resultobj; | |
21441 | long arg1 ; | |
21442 | wxTimeSpan result; | |
994141e6 | 21443 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21444 | char *kwnames[] = { |
21445 | (char *) "days", NULL | |
21446 | }; | |
21447 | ||
994141e6 | 21448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21449 | arg1 = (long) SWIG_AsLong(obj0); |
21450 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21451 | { |
21452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21453 | result = wxTimeSpan::Weeks(arg1); | |
21454 | ||
21455 | wxPyEndAllowThreads(__tstate); | |
21456 | if (PyErr_Occurred()) SWIG_fail; | |
21457 | } | |
21458 | { | |
21459 | wxTimeSpan * resultptr; | |
21460 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21461 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21462 | } |
21463 | return resultobj; | |
21464 | fail: | |
21465 | return NULL; | |
21466 | } | |
21467 | ||
21468 | ||
21469 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21470 | PyObject *resultobj; | |
21471 | wxTimeSpan result; | |
21472 | char *kwnames[] = { | |
21473 | NULL | |
21474 | }; | |
21475 | ||
21476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
21477 | { | |
21478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21479 | result = wxTimeSpan::Week(); | |
21480 | ||
21481 | wxPyEndAllowThreads(__tstate); | |
21482 | if (PyErr_Occurred()) SWIG_fail; | |
21483 | } | |
21484 | { | |
21485 | wxTimeSpan * resultptr; | |
21486 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21487 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21488 | } |
21489 | return resultobj; | |
21490 | fail: | |
21491 | return NULL; | |
21492 | } | |
21493 | ||
21494 | ||
21495 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21496 | PyObject *resultobj; | |
21497 | long arg1 = (long) 0 ; | |
21498 | long arg2 = (long) 0 ; | |
21499 | long arg3 = (long) 0 ; | |
21500 | long arg4 = (long) 0 ; | |
21501 | wxTimeSpan *result; | |
994141e6 RD |
21502 | PyObject * obj0 = 0 ; |
21503 | PyObject * obj1 = 0 ; | |
21504 | PyObject * obj2 = 0 ; | |
21505 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21506 | char *kwnames[] = { |
21507 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
21508 | }; | |
21509 | ||
994141e6 RD |
21510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
21511 | if (obj0) { | |
15afbcd0 RD |
21512 | arg1 = (long) SWIG_AsLong(obj0); |
21513 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
21514 | } |
21515 | if (obj1) { | |
15afbcd0 RD |
21516 | arg2 = (long) SWIG_AsLong(obj1); |
21517 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
21518 | } |
21519 | if (obj2) { | |
15afbcd0 RD |
21520 | arg3 = (long) SWIG_AsLong(obj2); |
21521 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
21522 | } |
21523 | if (obj3) { | |
15afbcd0 RD |
21524 | arg4 = (long) SWIG_AsLong(obj3); |
21525 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21526 | } |
d14a1e28 RD |
21527 | { |
21528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21529 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
21530 | ||
21531 | wxPyEndAllowThreads(__tstate); | |
21532 | if (PyErr_Occurred()) SWIG_fail; | |
21533 | } | |
15afbcd0 | 21534 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21535 | return resultobj; |
21536 | fail: | |
21537 | return NULL; | |
21538 | } | |
21539 | ||
21540 | ||
21541 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21542 | PyObject *resultobj; | |
21543 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21544 | PyObject * obj0 = 0 ; | |
21545 | char *kwnames[] = { | |
21546 | (char *) "self", NULL | |
21547 | }; | |
21548 | ||
21549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21552 | { |
21553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21554 | delete arg1; | |
21555 | ||
21556 | wxPyEndAllowThreads(__tstate); | |
21557 | if (PyErr_Occurred()) SWIG_fail; | |
21558 | } | |
21559 | Py_INCREF(Py_None); resultobj = Py_None; | |
21560 | return resultobj; | |
21561 | fail: | |
21562 | return NULL; | |
21563 | } | |
21564 | ||
21565 | ||
21566 | static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21567 | PyObject *resultobj; | |
21568 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21569 | wxTimeSpan *arg2 = 0 ; | |
21570 | wxTimeSpan *result; | |
21571 | PyObject * obj0 = 0 ; | |
21572 | PyObject * obj1 = 0 ; | |
21573 | char *kwnames[] = { | |
21574 | (char *) "self",(char *) "diff", NULL | |
21575 | }; | |
21576 | ||
21577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21580 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21581 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21582 | SWIG_fail; | |
d14a1e28 | 21583 | if (arg2 == NULL) { |
15afbcd0 RD |
21584 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21585 | SWIG_fail; | |
d14a1e28 RD |
21586 | } |
21587 | { | |
21588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21589 | { | |
21590 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
21591 | result = (wxTimeSpan *) &_result_ref; | |
21592 | } | |
21593 | ||
21594 | wxPyEndAllowThreads(__tstate); | |
21595 | if (PyErr_Occurred()) SWIG_fail; | |
21596 | } | |
15afbcd0 | 21597 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21598 | return resultobj; |
21599 | fail: | |
21600 | return NULL; | |
21601 | } | |
21602 | ||
21603 | ||
21604 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21605 | PyObject *resultobj; | |
21606 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21607 | wxTimeSpan *arg2 = 0 ; | |
21608 | wxTimeSpan *result; | |
21609 | PyObject * obj0 = 0 ; | |
21610 | PyObject * obj1 = 0 ; | |
21611 | char *kwnames[] = { | |
21612 | (char *) "self",(char *) "diff", NULL | |
21613 | }; | |
21614 | ||
21615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21618 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21619 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21620 | SWIG_fail; | |
d14a1e28 | 21621 | if (arg2 == NULL) { |
15afbcd0 RD |
21622 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21623 | SWIG_fail; | |
d14a1e28 RD |
21624 | } |
21625 | { | |
21626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21627 | { | |
21628 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
21629 | result = (wxTimeSpan *) &_result_ref; | |
21630 | } | |
21631 | ||
21632 | wxPyEndAllowThreads(__tstate); | |
21633 | if (PyErr_Occurred()) SWIG_fail; | |
21634 | } | |
15afbcd0 | 21635 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21636 | return resultobj; |
21637 | fail: | |
21638 | return NULL; | |
21639 | } | |
21640 | ||
21641 | ||
21642 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21643 | PyObject *resultobj; | |
21644 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21645 | int arg2 ; | |
21646 | wxTimeSpan *result; | |
21647 | PyObject * obj0 = 0 ; | |
994141e6 | 21648 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21649 | char *kwnames[] = { |
21650 | (char *) "self",(char *) "n", NULL | |
21651 | }; | |
21652 | ||
994141e6 | 21653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21656 | arg2 = (int) SWIG_AsInt(obj1); | |
21657 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21658 | { |
21659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21660 | { | |
21661 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
21662 | result = (wxTimeSpan *) &_result_ref; | |
21663 | } | |
21664 | ||
21665 | wxPyEndAllowThreads(__tstate); | |
21666 | if (PyErr_Occurred()) SWIG_fail; | |
21667 | } | |
15afbcd0 | 21668 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21669 | return resultobj; |
21670 | fail: | |
21671 | return NULL; | |
21672 | } | |
21673 | ||
21674 | ||
21675 | static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21676 | PyObject *resultobj; | |
21677 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21678 | wxTimeSpan *result; | |
21679 | PyObject * obj0 = 0 ; | |
21680 | char *kwnames[] = { | |
21681 | (char *) "self", NULL | |
21682 | }; | |
21683 | ||
21684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21687 | { |
21688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21689 | { | |
21690 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
21691 | result = (wxTimeSpan *) &_result_ref; | |
21692 | } | |
21693 | ||
21694 | wxPyEndAllowThreads(__tstate); | |
21695 | if (PyErr_Occurred()) SWIG_fail; | |
21696 | } | |
15afbcd0 | 21697 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21698 | return resultobj; |
21699 | fail: | |
21700 | return NULL; | |
21701 | } | |
21702 | ||
21703 | ||
21704 | static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21705 | PyObject *resultobj; | |
21706 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21707 | wxTimeSpan result; | |
21708 | PyObject * obj0 = 0 ; | |
21709 | char *kwnames[] = { | |
21710 | (char *) "self", NULL | |
21711 | }; | |
21712 | ||
21713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21716 | { |
21717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21718 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
21719 | ||
21720 | wxPyEndAllowThreads(__tstate); | |
21721 | if (PyErr_Occurred()) SWIG_fail; | |
21722 | } | |
21723 | { | |
21724 | wxTimeSpan * resultptr; | |
21725 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21726 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21727 | } |
21728 | return resultobj; | |
21729 | fail: | |
21730 | return NULL; | |
21731 | } | |
21732 | ||
21733 | ||
21734 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21735 | PyObject *resultobj; | |
21736 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21737 | wxTimeSpan *arg2 = 0 ; | |
21738 | wxTimeSpan *result; | |
21739 | PyObject * obj0 = 0 ; | |
21740 | PyObject * obj1 = 0 ; | |
21741 | char *kwnames[] = { | |
21742 | (char *) "self",(char *) "diff", NULL | |
21743 | }; | |
21744 | ||
21745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21748 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21749 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21750 | SWIG_fail; | |
d14a1e28 | 21751 | if (arg2 == NULL) { |
15afbcd0 RD |
21752 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21753 | SWIG_fail; | |
d14a1e28 RD |
21754 | } |
21755 | { | |
21756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21757 | { | |
21758 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
21759 | result = (wxTimeSpan *) &_result_ref; | |
21760 | } | |
21761 | ||
21762 | wxPyEndAllowThreads(__tstate); | |
21763 | if (PyErr_Occurred()) SWIG_fail; | |
21764 | } | |
15afbcd0 | 21765 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21766 | return resultobj; |
21767 | fail: | |
21768 | return NULL; | |
21769 | } | |
21770 | ||
21771 | ||
21772 | static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21773 | PyObject *resultobj; | |
21774 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21775 | wxTimeSpan *arg2 = 0 ; | |
21776 | wxTimeSpan *result; | |
21777 | PyObject * obj0 = 0 ; | |
21778 | PyObject * obj1 = 0 ; | |
21779 | char *kwnames[] = { | |
21780 | (char *) "self",(char *) "diff", NULL | |
21781 | }; | |
21782 | ||
21783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21786 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21787 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21788 | SWIG_fail; | |
d14a1e28 | 21789 | if (arg2 == NULL) { |
15afbcd0 RD |
21790 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21791 | SWIG_fail; | |
d14a1e28 RD |
21792 | } |
21793 | { | |
21794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21795 | { | |
21796 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
21797 | result = (wxTimeSpan *) &_result_ref; | |
21798 | } | |
21799 | ||
21800 | wxPyEndAllowThreads(__tstate); | |
21801 | if (PyErr_Occurred()) SWIG_fail; | |
21802 | } | |
15afbcd0 | 21803 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21804 | return resultobj; |
21805 | fail: | |
21806 | return NULL; | |
21807 | } | |
21808 | ||
21809 | ||
21810 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21811 | PyObject *resultobj; | |
21812 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21813 | int arg2 ; | |
21814 | wxTimeSpan *result; | |
21815 | PyObject * obj0 = 0 ; | |
994141e6 | 21816 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21817 | char *kwnames[] = { |
21818 | (char *) "self",(char *) "n", NULL | |
21819 | }; | |
21820 | ||
994141e6 | 21821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21824 | arg2 = (int) SWIG_AsInt(obj1); | |
21825 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21826 | { |
21827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21828 | { | |
21829 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
21830 | result = (wxTimeSpan *) &_result_ref; | |
21831 | } | |
21832 | ||
21833 | wxPyEndAllowThreads(__tstate); | |
21834 | if (PyErr_Occurred()) SWIG_fail; | |
21835 | } | |
15afbcd0 | 21836 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21837 | return resultobj; |
21838 | fail: | |
21839 | return NULL; | |
21840 | } | |
21841 | ||
21842 | ||
21843 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21844 | PyObject *resultobj; | |
21845 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21846 | wxTimeSpan *result; | |
21847 | PyObject * obj0 = 0 ; | |
21848 | char *kwnames[] = { | |
21849 | (char *) "self", NULL | |
21850 | }; | |
21851 | ||
21852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21855 | { |
21856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21857 | { | |
21858 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
21859 | result = (wxTimeSpan *) &_result_ref; | |
21860 | } | |
21861 | ||
21862 | wxPyEndAllowThreads(__tstate); | |
21863 | if (PyErr_Occurred()) SWIG_fail; | |
21864 | } | |
15afbcd0 | 21865 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21866 | return resultobj; |
21867 | fail: | |
21868 | return NULL; | |
21869 | } | |
21870 | ||
21871 | ||
21872 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21873 | PyObject *resultobj; | |
21874 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21875 | wxTimeSpan *arg2 = 0 ; | |
21876 | wxTimeSpan result; | |
21877 | PyObject * obj0 = 0 ; | |
21878 | PyObject * obj1 = 0 ; | |
21879 | char *kwnames[] = { | |
21880 | (char *) "self",(char *) "other", NULL | |
21881 | }; | |
21882 | ||
21883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21886 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21887 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21888 | SWIG_fail; | |
d14a1e28 | 21889 | if (arg2 == NULL) { |
15afbcd0 RD |
21890 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21891 | SWIG_fail; | |
d14a1e28 RD |
21892 | } |
21893 | { | |
21894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21895 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
21896 | ||
21897 | wxPyEndAllowThreads(__tstate); | |
21898 | if (PyErr_Occurred()) SWIG_fail; | |
21899 | } | |
21900 | { | |
21901 | wxTimeSpan * resultptr; | |
21902 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21903 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21904 | } |
21905 | return resultobj; | |
21906 | fail: | |
21907 | return NULL; | |
21908 | } | |
21909 | ||
21910 | ||
21911 | static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21912 | PyObject *resultobj; | |
21913 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21914 | wxTimeSpan *arg2 = 0 ; | |
21915 | wxTimeSpan result; | |
21916 | PyObject * obj0 = 0 ; | |
21917 | PyObject * obj1 = 0 ; | |
21918 | char *kwnames[] = { | |
21919 | (char *) "self",(char *) "other", NULL | |
21920 | }; | |
21921 | ||
21922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21925 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21926 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21927 | SWIG_fail; | |
d14a1e28 | 21928 | if (arg2 == NULL) { |
15afbcd0 RD |
21929 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21930 | SWIG_fail; | |
d14a1e28 RD |
21931 | } |
21932 | { | |
21933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21934 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
21935 | ||
21936 | wxPyEndAllowThreads(__tstate); | |
21937 | if (PyErr_Occurred()) SWIG_fail; | |
21938 | } | |
21939 | { | |
21940 | wxTimeSpan * resultptr; | |
21941 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21942 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21943 | } |
21944 | return resultobj; | |
21945 | fail: | |
21946 | return NULL; | |
21947 | } | |
21948 | ||
21949 | ||
21950 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21951 | PyObject *resultobj; | |
21952 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21953 | int arg2 ; | |
21954 | wxTimeSpan result; | |
21955 | PyObject * obj0 = 0 ; | |
994141e6 | 21956 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21957 | char *kwnames[] = { |
21958 | (char *) "self",(char *) "n", NULL | |
21959 | }; | |
21960 | ||
994141e6 | 21961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21964 | arg2 = (int) SWIG_AsInt(obj1); | |
21965 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21966 | { |
21967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21968 | result = wxTimeSpan___mul__(arg1,arg2); | |
21969 | ||
21970 | wxPyEndAllowThreads(__tstate); | |
21971 | if (PyErr_Occurred()) SWIG_fail; | |
21972 | } | |
21973 | { | |
21974 | wxTimeSpan * resultptr; | |
21975 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21976 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21977 | } |
21978 | return resultobj; | |
21979 | fail: | |
21980 | return NULL; | |
21981 | } | |
21982 | ||
21983 | ||
21984 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21985 | PyObject *resultobj; | |
21986 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21987 | int arg2 ; | |
21988 | wxTimeSpan result; | |
21989 | PyObject * obj0 = 0 ; | |
994141e6 | 21990 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21991 | char *kwnames[] = { |
21992 | (char *) "self",(char *) "n", NULL | |
21993 | }; | |
21994 | ||
994141e6 | 21995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21998 | arg2 = (int) SWIG_AsInt(obj1); | |
21999 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22000 | { |
22001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22002 | result = wxTimeSpan___rmul__(arg1,arg2); | |
22003 | ||
22004 | wxPyEndAllowThreads(__tstate); | |
22005 | if (PyErr_Occurred()) SWIG_fail; | |
22006 | } | |
22007 | { | |
22008 | wxTimeSpan * resultptr; | |
22009 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 22010 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
22011 | } |
22012 | return resultobj; | |
22013 | fail: | |
22014 | return NULL; | |
22015 | } | |
22016 | ||
22017 | ||
22018 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22019 | PyObject *resultobj; | |
22020 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22021 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22022 | bool result; |
22023 | PyObject * obj0 = 0 ; | |
22024 | PyObject * obj1 = 0 ; | |
22025 | char *kwnames[] = { | |
22026 | (char *) "self",(char *) "other", NULL | |
22027 | }; | |
22028 | ||
22029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22032 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22034 | { |
22035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22036 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22037 | |
22038 | wxPyEndAllowThreads(__tstate); | |
22039 | if (PyErr_Occurred()) SWIG_fail; | |
22040 | } | |
4f89f6a3 RD |
22041 | { |
22042 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22043 | } | |
d14a1e28 RD |
22044 | return resultobj; |
22045 | fail: | |
22046 | return NULL; | |
22047 | } | |
22048 | ||
22049 | ||
22050 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22051 | PyObject *resultobj; | |
22052 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22053 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22054 | bool result; |
22055 | PyObject * obj0 = 0 ; | |
22056 | PyObject * obj1 = 0 ; | |
22057 | char *kwnames[] = { | |
22058 | (char *) "self",(char *) "other", NULL | |
22059 | }; | |
22060 | ||
22061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22064 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22066 | { |
22067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22068 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22069 | |
22070 | wxPyEndAllowThreads(__tstate); | |
22071 | if (PyErr_Occurred()) SWIG_fail; | |
22072 | } | |
4f89f6a3 RD |
22073 | { |
22074 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22075 | } | |
d14a1e28 RD |
22076 | return resultobj; |
22077 | fail: | |
22078 | return NULL; | |
22079 | } | |
22080 | ||
22081 | ||
22082 | static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22083 | PyObject *resultobj; | |
22084 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22085 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22086 | bool result; |
22087 | PyObject * obj0 = 0 ; | |
22088 | PyObject * obj1 = 0 ; | |
22089 | char *kwnames[] = { | |
22090 | (char *) "self",(char *) "other", NULL | |
22091 | }; | |
22092 | ||
22093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22096 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22098 | { |
22099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22100 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22101 | |
22102 | wxPyEndAllowThreads(__tstate); | |
22103 | if (PyErr_Occurred()) SWIG_fail; | |
22104 | } | |
4f89f6a3 RD |
22105 | { |
22106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22107 | } | |
d14a1e28 RD |
22108 | return resultobj; |
22109 | fail: | |
22110 | return NULL; | |
22111 | } | |
22112 | ||
22113 | ||
22114 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22115 | PyObject *resultobj; | |
22116 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22117 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22118 | bool result; |
22119 | PyObject * obj0 = 0 ; | |
22120 | PyObject * obj1 = 0 ; | |
22121 | char *kwnames[] = { | |
22122 | (char *) "self",(char *) "other", NULL | |
22123 | }; | |
22124 | ||
22125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22128 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22130 | { |
22131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22132 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22133 | |
22134 | wxPyEndAllowThreads(__tstate); | |
22135 | if (PyErr_Occurred()) SWIG_fail; | |
22136 | } | |
4f89f6a3 RD |
22137 | { |
22138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22139 | } | |
d14a1e28 RD |
22140 | return resultobj; |
22141 | fail: | |
22142 | return NULL; | |
22143 | } | |
22144 | ||
22145 | ||
22146 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22147 | PyObject *resultobj; | |
22148 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22149 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22150 | bool result; |
22151 | PyObject * obj0 = 0 ; | |
22152 | PyObject * obj1 = 0 ; | |
22153 | char *kwnames[] = { | |
22154 | (char *) "self",(char *) "other", NULL | |
22155 | }; | |
22156 | ||
22157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22160 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22162 | { |
22163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22164 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22165 | |
22166 | wxPyEndAllowThreads(__tstate); | |
22167 | if (PyErr_Occurred()) SWIG_fail; | |
22168 | } | |
4f89f6a3 RD |
22169 | { |
22170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22171 | } | |
d14a1e28 RD |
22172 | return resultobj; |
22173 | fail: | |
22174 | return NULL; | |
22175 | } | |
22176 | ||
22177 | ||
22178 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22179 | PyObject *resultobj; | |
22180 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22181 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22182 | bool result; |
22183 | PyObject * obj0 = 0 ; | |
22184 | PyObject * obj1 = 0 ; | |
22185 | char *kwnames[] = { | |
22186 | (char *) "self",(char *) "other", NULL | |
22187 | }; | |
22188 | ||
22189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22192 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22194 | { |
22195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22196 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22197 | |
22198 | wxPyEndAllowThreads(__tstate); | |
22199 | if (PyErr_Occurred()) SWIG_fail; | |
22200 | } | |
4f89f6a3 RD |
22201 | { |
22202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22203 | } | |
d14a1e28 RD |
22204 | return resultobj; |
22205 | fail: | |
22206 | return NULL; | |
22207 | } | |
22208 | ||
22209 | ||
22210 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22211 | PyObject *resultobj; | |
22212 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22213 | bool result; | |
22214 | PyObject * obj0 = 0 ; | |
22215 | char *kwnames[] = { | |
22216 | (char *) "self", NULL | |
22217 | }; | |
22218 | ||
22219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22222 | { |
22223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22224 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
22225 | ||
22226 | wxPyEndAllowThreads(__tstate); | |
22227 | if (PyErr_Occurred()) SWIG_fail; | |
22228 | } | |
4f89f6a3 RD |
22229 | { |
22230 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22231 | } | |
d14a1e28 RD |
22232 | return resultobj; |
22233 | fail: | |
22234 | return NULL; | |
22235 | } | |
22236 | ||
22237 | ||
22238 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22239 | PyObject *resultobj; | |
22240 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22241 | bool result; | |
22242 | PyObject * obj0 = 0 ; | |
22243 | char *kwnames[] = { | |
22244 | (char *) "self", NULL | |
22245 | }; | |
22246 | ||
22247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22250 | { |
22251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22252 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
22253 | ||
22254 | wxPyEndAllowThreads(__tstate); | |
22255 | if (PyErr_Occurred()) SWIG_fail; | |
22256 | } | |
4f89f6a3 RD |
22257 | { |
22258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22259 | } | |
d14a1e28 RD |
22260 | return resultobj; |
22261 | fail: | |
22262 | return NULL; | |
22263 | } | |
22264 | ||
22265 | ||
22266 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22267 | PyObject *resultobj; | |
22268 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22269 | bool result; | |
22270 | PyObject * obj0 = 0 ; | |
22271 | char *kwnames[] = { | |
22272 | (char *) "self", NULL | |
22273 | }; | |
22274 | ||
22275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22278 | { |
22279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22280 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
22281 | ||
22282 | wxPyEndAllowThreads(__tstate); | |
22283 | if (PyErr_Occurred()) SWIG_fail; | |
22284 | } | |
4f89f6a3 RD |
22285 | { |
22286 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22287 | } | |
d14a1e28 RD |
22288 | return resultobj; |
22289 | fail: | |
22290 | return NULL; | |
22291 | } | |
22292 | ||
22293 | ||
22294 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22295 | PyObject *resultobj; | |
22296 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22297 | wxTimeSpan *arg2 = 0 ; | |
22298 | bool result; | |
22299 | PyObject * obj0 = 0 ; | |
22300 | PyObject * obj1 = 0 ; | |
22301 | char *kwnames[] = { | |
22302 | (char *) "self",(char *) "ts", NULL | |
22303 | }; | |
22304 | ||
22305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22308 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22309 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22310 | SWIG_fail; | |
d14a1e28 | 22311 | if (arg2 == NULL) { |
15afbcd0 RD |
22312 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22313 | SWIG_fail; | |
d14a1e28 RD |
22314 | } |
22315 | { | |
22316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22317 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
22318 | ||
22319 | wxPyEndAllowThreads(__tstate); | |
22320 | if (PyErr_Occurred()) SWIG_fail; | |
22321 | } | |
4f89f6a3 RD |
22322 | { |
22323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22324 | } | |
d14a1e28 RD |
22325 | return resultobj; |
22326 | fail: | |
22327 | return NULL; | |
22328 | } | |
22329 | ||
22330 | ||
22331 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22332 | PyObject *resultobj; | |
22333 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22334 | wxTimeSpan *arg2 = 0 ; | |
22335 | bool result; | |
22336 | PyObject * obj0 = 0 ; | |
22337 | PyObject * obj1 = 0 ; | |
22338 | char *kwnames[] = { | |
22339 | (char *) "self",(char *) "ts", NULL | |
22340 | }; | |
22341 | ||
22342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22345 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22346 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22347 | SWIG_fail; | |
d14a1e28 | 22348 | if (arg2 == NULL) { |
15afbcd0 RD |
22349 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22350 | SWIG_fail; | |
d14a1e28 RD |
22351 | } |
22352 | { | |
22353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22354 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
22355 | ||
22356 | wxPyEndAllowThreads(__tstate); | |
22357 | if (PyErr_Occurred()) SWIG_fail; | |
22358 | } | |
4f89f6a3 RD |
22359 | { |
22360 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22361 | } | |
d14a1e28 RD |
22362 | return resultobj; |
22363 | fail: | |
22364 | return NULL; | |
22365 | } | |
22366 | ||
22367 | ||
22368 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22369 | PyObject *resultobj; | |
22370 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22371 | wxTimeSpan *arg2 = 0 ; | |
22372 | bool result; | |
22373 | PyObject * obj0 = 0 ; | |
22374 | PyObject * obj1 = 0 ; | |
22375 | char *kwnames[] = { | |
22376 | (char *) "self",(char *) "t", NULL | |
22377 | }; | |
22378 | ||
22379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22382 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22383 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22384 | SWIG_fail; | |
d14a1e28 | 22385 | if (arg2 == NULL) { |
15afbcd0 RD |
22386 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22387 | SWIG_fail; | |
d14a1e28 RD |
22388 | } |
22389 | { | |
22390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22391 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
22392 | ||
22393 | wxPyEndAllowThreads(__tstate); | |
22394 | if (PyErr_Occurred()) SWIG_fail; | |
22395 | } | |
4f89f6a3 RD |
22396 | { |
22397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22398 | } | |
d14a1e28 RD |
22399 | return resultobj; |
22400 | fail: | |
22401 | return NULL; | |
22402 | } | |
22403 | ||
22404 | ||
22405 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22406 | PyObject *resultobj; | |
22407 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22408 | int result; | |
22409 | PyObject * obj0 = 0 ; | |
22410 | char *kwnames[] = { | |
22411 | (char *) "self", NULL | |
22412 | }; | |
22413 | ||
22414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22417 | { |
22418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22419 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
22420 | ||
22421 | wxPyEndAllowThreads(__tstate); | |
22422 | if (PyErr_Occurred()) SWIG_fail; | |
22423 | } | |
15afbcd0 | 22424 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22425 | return resultobj; |
22426 | fail: | |
22427 | return NULL; | |
22428 | } | |
22429 | ||
22430 | ||
22431 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22432 | PyObject *resultobj; | |
22433 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22434 | int result; | |
22435 | PyObject * obj0 = 0 ; | |
22436 | char *kwnames[] = { | |
22437 | (char *) "self", NULL | |
22438 | }; | |
22439 | ||
22440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22443 | { |
22444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22445 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
22446 | ||
22447 | wxPyEndAllowThreads(__tstate); | |
22448 | if (PyErr_Occurred()) SWIG_fail; | |
22449 | } | |
15afbcd0 | 22450 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22451 | return resultobj; |
22452 | fail: | |
22453 | return NULL; | |
22454 | } | |
22455 | ||
22456 | ||
22457 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22458 | PyObject *resultobj; | |
22459 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22460 | int result; | |
22461 | PyObject * obj0 = 0 ; | |
22462 | char *kwnames[] = { | |
22463 | (char *) "self", NULL | |
22464 | }; | |
22465 | ||
22466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22469 | { |
22470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22471 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
22472 | ||
22473 | wxPyEndAllowThreads(__tstate); | |
22474 | if (PyErr_Occurred()) SWIG_fail; | |
22475 | } | |
15afbcd0 | 22476 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22477 | return resultobj; |
22478 | fail: | |
22479 | return NULL; | |
22480 | } | |
22481 | ||
22482 | ||
22483 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22484 | PyObject *resultobj; | |
22485 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22486 | int result; | |
22487 | PyObject * obj0 = 0 ; | |
22488 | char *kwnames[] = { | |
22489 | (char *) "self", NULL | |
22490 | }; | |
22491 | ||
22492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22495 | { |
22496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22497 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
22498 | ||
22499 | wxPyEndAllowThreads(__tstate); | |
22500 | if (PyErr_Occurred()) SWIG_fail; | |
22501 | } | |
15afbcd0 | 22502 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22503 | return resultobj; |
22504 | fail: | |
22505 | return NULL; | |
22506 | } | |
22507 | ||
22508 | ||
22509 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22510 | PyObject *resultobj; | |
22511 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22512 | wxLongLong result; | |
22513 | PyObject * obj0 = 0 ; | |
22514 | char *kwnames[] = { | |
22515 | (char *) "self", NULL | |
22516 | }; | |
22517 | ||
22518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22521 | { |
22522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22523 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
22524 | ||
22525 | wxPyEndAllowThreads(__tstate); | |
22526 | if (PyErr_Occurred()) SWIG_fail; | |
22527 | } | |
22528 | { | |
22529 | PyObject *hi, *lo, *shifter, *shifted; | |
22530 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22531 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22532 | shifter = PyLong_FromLong(32); | |
22533 | shifted = PyNumber_Lshift(hi, shifter); | |
22534 | resultobj = PyNumber_Or(shifted, lo); | |
22535 | Py_DECREF(hi); | |
22536 | Py_DECREF(lo); | |
22537 | Py_DECREF(shifter); | |
22538 | Py_DECREF(shifted); | |
22539 | } | |
22540 | return resultobj; | |
22541 | fail: | |
22542 | return NULL; | |
22543 | } | |
22544 | ||
22545 | ||
22546 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22547 | PyObject *resultobj; | |
22548 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22549 | wxLongLong result; | |
22550 | PyObject * obj0 = 0 ; | |
22551 | char *kwnames[] = { | |
22552 | (char *) "self", NULL | |
22553 | }; | |
22554 | ||
22555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22558 | { |
22559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22560 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
22561 | ||
22562 | wxPyEndAllowThreads(__tstate); | |
22563 | if (PyErr_Occurred()) SWIG_fail; | |
22564 | } | |
22565 | { | |
22566 | PyObject *hi, *lo, *shifter, *shifted; | |
22567 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22568 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22569 | shifter = PyLong_FromLong(32); | |
22570 | shifted = PyNumber_Lshift(hi, shifter); | |
22571 | resultobj = PyNumber_Or(shifted, lo); | |
22572 | Py_DECREF(hi); | |
22573 | Py_DECREF(lo); | |
22574 | Py_DECREF(shifter); | |
22575 | Py_DECREF(shifted); | |
22576 | } | |
22577 | return resultobj; | |
22578 | fail: | |
22579 | return NULL; | |
22580 | } | |
22581 | ||
22582 | ||
22583 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22584 | PyObject *resultobj; | |
22585 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22586 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
22587 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
22588 | wxString result; | |
e811c8ce | 22589 | bool temp2 = False ; |
d14a1e28 RD |
22590 | PyObject * obj0 = 0 ; |
22591 | PyObject * obj1 = 0 ; | |
22592 | char *kwnames[] = { | |
22593 | (char *) "self",(char *) "format", NULL | |
22594 | }; | |
22595 | ||
22596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22599 | if (obj1) { |
22600 | { | |
22601 | arg2 = wxString_in_helper(obj1); | |
22602 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 22603 | temp2 = True; |
d14a1e28 RD |
22604 | } |
22605 | } | |
22606 | { | |
22607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22608 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
22609 | ||
22610 | wxPyEndAllowThreads(__tstate); | |
22611 | if (PyErr_Occurred()) SWIG_fail; | |
22612 | } | |
22613 | { | |
22614 | #if wxUSE_UNICODE | |
22615 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22616 | #else | |
22617 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22618 | #endif | |
22619 | } | |
22620 | { | |
22621 | if (temp2) | |
22622 | delete arg2; | |
22623 | } | |
22624 | return resultobj; | |
22625 | fail: | |
22626 | { | |
22627 | if (temp2) | |
22628 | delete arg2; | |
22629 | } | |
22630 | return NULL; | |
22631 | } | |
22632 | ||
22633 | ||
22634 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
22635 | PyObject *obj; | |
22636 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22637 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
22638 | Py_INCREF(obj); | |
22639 | return Py_BuildValue((char *)""); | |
22640 | } | |
22641 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22642 | PyObject *resultobj; | |
22643 | int arg1 = (int) 0 ; | |
22644 | int arg2 = (int) 0 ; | |
22645 | int arg3 = (int) 0 ; | |
22646 | int arg4 = (int) 0 ; | |
22647 | wxDateSpan *result; | |
994141e6 RD |
22648 | PyObject * obj0 = 0 ; |
22649 | PyObject * obj1 = 0 ; | |
22650 | PyObject * obj2 = 0 ; | |
22651 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22652 | char *kwnames[] = { |
22653 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
22654 | }; | |
22655 | ||
994141e6 RD |
22656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
22657 | if (obj0) { | |
15afbcd0 RD |
22658 | arg1 = (int) SWIG_AsInt(obj0); |
22659 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22660 | } |
22661 | if (obj1) { | |
15afbcd0 RD |
22662 | arg2 = (int) SWIG_AsInt(obj1); |
22663 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22664 | } |
22665 | if (obj2) { | |
15afbcd0 RD |
22666 | arg3 = (int) SWIG_AsInt(obj2); |
22667 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22668 | } |
22669 | if (obj3) { | |
15afbcd0 RD |
22670 | arg4 = (int) SWIG_AsInt(obj3); |
22671 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22672 | } |
d14a1e28 RD |
22673 | { |
22674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22675 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
22676 | ||
22677 | wxPyEndAllowThreads(__tstate); | |
22678 | if (PyErr_Occurred()) SWIG_fail; | |
22679 | } | |
15afbcd0 | 22680 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22681 | return resultobj; |
22682 | fail: | |
22683 | return NULL; | |
22684 | } | |
22685 | ||
22686 | ||
22687 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22688 | PyObject *resultobj; | |
22689 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22690 | PyObject * obj0 = 0 ; | |
22691 | char *kwnames[] = { | |
22692 | (char *) "self", NULL | |
22693 | }; | |
22694 | ||
22695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22698 | { |
22699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22700 | delete arg1; | |
22701 | ||
22702 | wxPyEndAllowThreads(__tstate); | |
22703 | if (PyErr_Occurred()) SWIG_fail; | |
22704 | } | |
22705 | Py_INCREF(Py_None); resultobj = Py_None; | |
22706 | return resultobj; | |
22707 | fail: | |
22708 | return NULL; | |
22709 | } | |
22710 | ||
22711 | ||
22712 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22713 | PyObject *resultobj; | |
22714 | int arg1 ; | |
22715 | wxDateSpan result; | |
994141e6 | 22716 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22717 | char *kwnames[] = { |
22718 | (char *) "days", NULL | |
22719 | }; | |
22720 | ||
994141e6 | 22721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22722 | arg1 = (int) SWIG_AsInt(obj0); |
22723 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22724 | { |
22725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22726 | result = wxDateSpan::Days(arg1); | |
22727 | ||
22728 | wxPyEndAllowThreads(__tstate); | |
22729 | if (PyErr_Occurred()) SWIG_fail; | |
22730 | } | |
22731 | { | |
22732 | wxDateSpan * resultptr; | |
22733 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22734 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22735 | } |
22736 | return resultobj; | |
22737 | fail: | |
22738 | return NULL; | |
22739 | } | |
22740 | ||
22741 | ||
22742 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22743 | PyObject *resultobj; | |
22744 | wxDateSpan result; | |
22745 | char *kwnames[] = { | |
22746 | NULL | |
22747 | }; | |
22748 | ||
22749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
22750 | { | |
22751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22752 | result = wxDateSpan::Day(); | |
22753 | ||
22754 | wxPyEndAllowThreads(__tstate); | |
22755 | if (PyErr_Occurred()) SWIG_fail; | |
22756 | } | |
22757 | { | |
22758 | wxDateSpan * resultptr; | |
22759 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22760 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22761 | } |
22762 | return resultobj; | |
22763 | fail: | |
22764 | return NULL; | |
22765 | } | |
22766 | ||
22767 | ||
22768 | static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22769 | PyObject *resultobj; | |
22770 | int arg1 ; | |
22771 | wxDateSpan result; | |
994141e6 | 22772 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22773 | char *kwnames[] = { |
22774 | (char *) "weeks", NULL | |
22775 | }; | |
22776 | ||
994141e6 | 22777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22778 | arg1 = (int) SWIG_AsInt(obj0); |
22779 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22780 | { |
22781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22782 | result = wxDateSpan::Weeks(arg1); | |
22783 | ||
22784 | wxPyEndAllowThreads(__tstate); | |
22785 | if (PyErr_Occurred()) SWIG_fail; | |
22786 | } | |
22787 | { | |
22788 | wxDateSpan * resultptr; | |
22789 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22790 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22791 | } |
22792 | return resultobj; | |
22793 | fail: | |
22794 | return NULL; | |
22795 | } | |
22796 | ||
22797 | ||
22798 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22799 | PyObject *resultobj; | |
22800 | wxDateSpan result; | |
22801 | char *kwnames[] = { | |
22802 | NULL | |
22803 | }; | |
22804 | ||
22805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
22806 | { | |
22807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22808 | result = wxDateSpan::Week(); | |
22809 | ||
22810 | wxPyEndAllowThreads(__tstate); | |
22811 | if (PyErr_Occurred()) SWIG_fail; | |
22812 | } | |
22813 | { | |
22814 | wxDateSpan * resultptr; | |
22815 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22816 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22817 | } |
22818 | return resultobj; | |
22819 | fail: | |
22820 | return NULL; | |
22821 | } | |
22822 | ||
22823 | ||
22824 | static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22825 | PyObject *resultobj; | |
22826 | int arg1 ; | |
22827 | wxDateSpan result; | |
994141e6 | 22828 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22829 | char *kwnames[] = { |
22830 | (char *) "mon", NULL | |
22831 | }; | |
22832 | ||
994141e6 | 22833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22834 | arg1 = (int) SWIG_AsInt(obj0); |
22835 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22836 | { |
22837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22838 | result = wxDateSpan::Months(arg1); | |
22839 | ||
22840 | wxPyEndAllowThreads(__tstate); | |
22841 | if (PyErr_Occurred()) SWIG_fail; | |
22842 | } | |
22843 | { | |
22844 | wxDateSpan * resultptr; | |
22845 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22846 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22847 | } |
22848 | return resultobj; | |
22849 | fail: | |
22850 | return NULL; | |
22851 | } | |
22852 | ||
22853 | ||
22854 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22855 | PyObject *resultobj; | |
22856 | wxDateSpan result; | |
22857 | char *kwnames[] = { | |
22858 | NULL | |
22859 | }; | |
22860 | ||
22861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
22862 | { | |
22863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22864 | result = wxDateSpan::Month(); | |
22865 | ||
22866 | wxPyEndAllowThreads(__tstate); | |
22867 | if (PyErr_Occurred()) SWIG_fail; | |
22868 | } | |
22869 | { | |
22870 | wxDateSpan * resultptr; | |
22871 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22872 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22873 | } |
22874 | return resultobj; | |
22875 | fail: | |
22876 | return NULL; | |
22877 | } | |
22878 | ||
22879 | ||
22880 | static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22881 | PyObject *resultobj; | |
22882 | int arg1 ; | |
22883 | wxDateSpan result; | |
994141e6 | 22884 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22885 | char *kwnames[] = { |
22886 | (char *) "years", NULL | |
22887 | }; | |
22888 | ||
994141e6 | 22889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22890 | arg1 = (int) SWIG_AsInt(obj0); |
22891 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22892 | { |
22893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22894 | result = wxDateSpan::Years(arg1); | |
22895 | ||
22896 | wxPyEndAllowThreads(__tstate); | |
22897 | if (PyErr_Occurred()) SWIG_fail; | |
22898 | } | |
22899 | { | |
22900 | wxDateSpan * resultptr; | |
22901 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22902 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22903 | } |
22904 | return resultobj; | |
22905 | fail: | |
22906 | return NULL; | |
22907 | } | |
22908 | ||
22909 | ||
22910 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22911 | PyObject *resultobj; | |
22912 | wxDateSpan result; | |
22913 | char *kwnames[] = { | |
22914 | NULL | |
22915 | }; | |
22916 | ||
22917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
22918 | { | |
22919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22920 | result = wxDateSpan::Year(); | |
22921 | ||
22922 | wxPyEndAllowThreads(__tstate); | |
22923 | if (PyErr_Occurred()) SWIG_fail; | |
22924 | } | |
22925 | { | |
22926 | wxDateSpan * resultptr; | |
22927 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22928 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22929 | } |
22930 | return resultobj; | |
22931 | fail: | |
22932 | return NULL; | |
22933 | } | |
22934 | ||
22935 | ||
22936 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22937 | PyObject *resultobj; | |
22938 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22939 | int arg2 ; | |
22940 | wxDateSpan *result; | |
22941 | PyObject * obj0 = 0 ; | |
994141e6 | 22942 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22943 | char *kwnames[] = { |
22944 | (char *) "self",(char *) "n", NULL | |
22945 | }; | |
22946 | ||
994141e6 | 22947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22950 | arg2 = (int) SWIG_AsInt(obj1); | |
22951 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22952 | { |
22953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22954 | { | |
22955 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
22956 | result = (wxDateSpan *) &_result_ref; | |
22957 | } | |
22958 | ||
22959 | wxPyEndAllowThreads(__tstate); | |
22960 | if (PyErr_Occurred()) SWIG_fail; | |
22961 | } | |
15afbcd0 | 22962 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
22963 | return resultobj; |
22964 | fail: | |
22965 | return NULL; | |
22966 | } | |
22967 | ||
22968 | ||
22969 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22970 | PyObject *resultobj; | |
22971 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22972 | int arg2 ; | |
22973 | wxDateSpan *result; | |
22974 | PyObject * obj0 = 0 ; | |
994141e6 | 22975 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22976 | char *kwnames[] = { |
22977 | (char *) "self",(char *) "n", NULL | |
22978 | }; | |
22979 | ||
994141e6 | 22980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22983 | arg2 = (int) SWIG_AsInt(obj1); | |
22984 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22985 | { |
22986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22987 | { | |
22988 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
22989 | result = (wxDateSpan *) &_result_ref; | |
22990 | } | |
22991 | ||
22992 | wxPyEndAllowThreads(__tstate); | |
22993 | if (PyErr_Occurred()) SWIG_fail; | |
22994 | } | |
15afbcd0 | 22995 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
22996 | return resultobj; |
22997 | fail: | |
22998 | return NULL; | |
22999 | } | |
23000 | ||
23001 | ||
23002 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23003 | PyObject *resultobj; | |
23004 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23005 | int arg2 ; | |
23006 | wxDateSpan *result; | |
23007 | PyObject * obj0 = 0 ; | |
994141e6 | 23008 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23009 | char *kwnames[] = { |
23010 | (char *) "self",(char *) "n", NULL | |
23011 | }; | |
23012 | ||
994141e6 | 23013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23016 | arg2 = (int) SWIG_AsInt(obj1); | |
23017 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23018 | { |
23019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23020 | { | |
23021 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
23022 | result = (wxDateSpan *) &_result_ref; | |
23023 | } | |
23024 | ||
23025 | wxPyEndAllowThreads(__tstate); | |
23026 | if (PyErr_Occurred()) SWIG_fail; | |
23027 | } | |
15afbcd0 | 23028 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23029 | return resultobj; |
23030 | fail: | |
23031 | return NULL; | |
23032 | } | |
23033 | ||
23034 | ||
23035 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23036 | PyObject *resultobj; | |
23037 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23038 | int arg2 ; | |
23039 | wxDateSpan *result; | |
23040 | PyObject * obj0 = 0 ; | |
994141e6 | 23041 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23042 | char *kwnames[] = { |
23043 | (char *) "self",(char *) "n", NULL | |
23044 | }; | |
23045 | ||
994141e6 | 23046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23049 | arg2 = (int) SWIG_AsInt(obj1); | |
23050 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23051 | { |
23052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23053 | { | |
23054 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
23055 | result = (wxDateSpan *) &_result_ref; | |
23056 | } | |
23057 | ||
23058 | wxPyEndAllowThreads(__tstate); | |
23059 | if (PyErr_Occurred()) SWIG_fail; | |
23060 | } | |
15afbcd0 | 23061 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23062 | return resultobj; |
23063 | fail: | |
23064 | return NULL; | |
23065 | } | |
23066 | ||
23067 | ||
23068 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23069 | PyObject *resultobj; | |
23070 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23071 | int result; | |
23072 | PyObject * obj0 = 0 ; | |
23073 | char *kwnames[] = { | |
23074 | (char *) "self", NULL | |
23075 | }; | |
23076 | ||
23077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23080 | { |
23081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23082 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
23083 | ||
23084 | wxPyEndAllowThreads(__tstate); | |
23085 | if (PyErr_Occurred()) SWIG_fail; | |
23086 | } | |
15afbcd0 | 23087 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23088 | return resultobj; |
23089 | fail: | |
23090 | return NULL; | |
23091 | } | |
23092 | ||
23093 | ||
23094 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23095 | PyObject *resultobj; | |
23096 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23097 | int result; | |
23098 | PyObject * obj0 = 0 ; | |
23099 | char *kwnames[] = { | |
23100 | (char *) "self", NULL | |
23101 | }; | |
23102 | ||
23103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23106 | { |
23107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23108 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
23109 | ||
23110 | wxPyEndAllowThreads(__tstate); | |
23111 | if (PyErr_Occurred()) SWIG_fail; | |
23112 | } | |
15afbcd0 | 23113 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23114 | return resultobj; |
23115 | fail: | |
23116 | return NULL; | |
23117 | } | |
23118 | ||
23119 | ||
23120 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23121 | PyObject *resultobj; | |
23122 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23123 | int result; | |
23124 | PyObject * obj0 = 0 ; | |
23125 | char *kwnames[] = { | |
23126 | (char *) "self", NULL | |
23127 | }; | |
23128 | ||
23129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23132 | { |
23133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23134 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
23135 | ||
23136 | wxPyEndAllowThreads(__tstate); | |
23137 | if (PyErr_Occurred()) SWIG_fail; | |
23138 | } | |
15afbcd0 | 23139 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23140 | return resultobj; |
23141 | fail: | |
23142 | return NULL; | |
23143 | } | |
23144 | ||
23145 | ||
23146 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23147 | PyObject *resultobj; | |
23148 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23149 | int result; | |
23150 | PyObject * obj0 = 0 ; | |
23151 | char *kwnames[] = { | |
23152 | (char *) "self", NULL | |
23153 | }; | |
23154 | ||
23155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23158 | { |
23159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23160 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
23161 | ||
23162 | wxPyEndAllowThreads(__tstate); | |
23163 | if (PyErr_Occurred()) SWIG_fail; | |
23164 | } | |
15afbcd0 | 23165 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23166 | return resultobj; |
23167 | fail: | |
23168 | return NULL; | |
23169 | } | |
23170 | ||
23171 | ||
23172 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23173 | PyObject *resultobj; | |
23174 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23175 | int result; | |
23176 | PyObject * obj0 = 0 ; | |
23177 | char *kwnames[] = { | |
23178 | (char *) "self", NULL | |
23179 | }; | |
23180 | ||
23181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23184 | { |
23185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23186 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
23187 | ||
23188 | wxPyEndAllowThreads(__tstate); | |
23189 | if (PyErr_Occurred()) SWIG_fail; | |
23190 | } | |
15afbcd0 | 23191 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23192 | return resultobj; |
23193 | fail: | |
23194 | return NULL; | |
23195 | } | |
23196 | ||
23197 | ||
23198 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23199 | PyObject *resultobj; | |
23200 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23201 | wxDateSpan *arg2 = 0 ; | |
23202 | wxDateSpan *result; | |
23203 | PyObject * obj0 = 0 ; | |
23204 | PyObject * obj1 = 0 ; | |
23205 | char *kwnames[] = { | |
23206 | (char *) "self",(char *) "other", NULL | |
23207 | }; | |
23208 | ||
23209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23212 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23213 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23214 | SWIG_fail; | |
d14a1e28 | 23215 | if (arg2 == NULL) { |
15afbcd0 RD |
23216 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23217 | SWIG_fail; | |
d14a1e28 RD |
23218 | } |
23219 | { | |
23220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23221 | { | |
23222 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
23223 | result = (wxDateSpan *) &_result_ref; | |
23224 | } | |
23225 | ||
23226 | wxPyEndAllowThreads(__tstate); | |
23227 | if (PyErr_Occurred()) SWIG_fail; | |
23228 | } | |
15afbcd0 | 23229 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23230 | return resultobj; |
23231 | fail: | |
23232 | return NULL; | |
23233 | } | |
23234 | ||
23235 | ||
23236 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23237 | PyObject *resultobj; | |
23238 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23239 | wxDateSpan *arg2 = 0 ; | |
23240 | wxDateSpan *result; | |
23241 | PyObject * obj0 = 0 ; | |
23242 | PyObject * obj1 = 0 ; | |
23243 | char *kwnames[] = { | |
23244 | (char *) "self",(char *) "other", NULL | |
23245 | }; | |
23246 | ||
23247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23250 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23251 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23252 | SWIG_fail; | |
d14a1e28 | 23253 | if (arg2 == NULL) { |
15afbcd0 RD |
23254 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23255 | SWIG_fail; | |
d14a1e28 RD |
23256 | } |
23257 | { | |
23258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23259 | { | |
23260 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
23261 | result = (wxDateSpan *) &_result_ref; | |
23262 | } | |
23263 | ||
23264 | wxPyEndAllowThreads(__tstate); | |
23265 | if (PyErr_Occurred()) SWIG_fail; | |
23266 | } | |
15afbcd0 | 23267 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23268 | return resultobj; |
23269 | fail: | |
23270 | return NULL; | |
23271 | } | |
23272 | ||
23273 | ||
23274 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23275 | PyObject *resultobj; | |
23276 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23277 | wxDateSpan *result; | |
23278 | PyObject * obj0 = 0 ; | |
23279 | char *kwnames[] = { | |
23280 | (char *) "self", NULL | |
23281 | }; | |
23282 | ||
23283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23286 | { |
23287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23288 | { | |
23289 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
23290 | result = (wxDateSpan *) &_result_ref; | |
23291 | } | |
23292 | ||
23293 | wxPyEndAllowThreads(__tstate); | |
23294 | if (PyErr_Occurred()) SWIG_fail; | |
23295 | } | |
15afbcd0 | 23296 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23297 | return resultobj; |
23298 | fail: | |
23299 | return NULL; | |
23300 | } | |
23301 | ||
23302 | ||
23303 | static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23304 | PyObject *resultobj; | |
23305 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23306 | int arg2 ; | |
23307 | wxDateSpan *result; | |
23308 | PyObject * obj0 = 0 ; | |
994141e6 | 23309 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23310 | char *kwnames[] = { |
23311 | (char *) "self",(char *) "factor", NULL | |
23312 | }; | |
23313 | ||
994141e6 | 23314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23317 | arg2 = (int) SWIG_AsInt(obj1); | |
23318 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23319 | { |
23320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23321 | { | |
23322 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
23323 | result = (wxDateSpan *) &_result_ref; | |
23324 | } | |
23325 | ||
23326 | wxPyEndAllowThreads(__tstate); | |
23327 | if (PyErr_Occurred()) SWIG_fail; | |
23328 | } | |
15afbcd0 | 23329 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23330 | return resultobj; |
23331 | fail: | |
23332 | return NULL; | |
23333 | } | |
23334 | ||
23335 | ||
23336 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23337 | PyObject *resultobj; | |
23338 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23339 | wxDateSpan *arg2 = 0 ; | |
23340 | wxDateSpan *result; | |
23341 | PyObject * obj0 = 0 ; | |
23342 | PyObject * obj1 = 0 ; | |
23343 | char *kwnames[] = { | |
23344 | (char *) "self",(char *) "other", NULL | |
23345 | }; | |
23346 | ||
23347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23350 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23351 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23352 | SWIG_fail; | |
d14a1e28 | 23353 | if (arg2 == NULL) { |
15afbcd0 RD |
23354 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23355 | SWIG_fail; | |
d14a1e28 RD |
23356 | } |
23357 | { | |
23358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23359 | { | |
23360 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
23361 | result = (wxDateSpan *) &_result_ref; | |
23362 | } | |
23363 | ||
23364 | wxPyEndAllowThreads(__tstate); | |
23365 | if (PyErr_Occurred()) SWIG_fail; | |
23366 | } | |
15afbcd0 | 23367 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23368 | return resultobj; |
23369 | fail: | |
23370 | return NULL; | |
23371 | } | |
23372 | ||
23373 | ||
23374 | static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23375 | PyObject *resultobj; | |
23376 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23377 | wxDateSpan *arg2 = 0 ; | |
23378 | wxDateSpan *result; | |
23379 | PyObject * obj0 = 0 ; | |
23380 | PyObject * obj1 = 0 ; | |
23381 | char *kwnames[] = { | |
23382 | (char *) "self",(char *) "other", NULL | |
23383 | }; | |
23384 | ||
23385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23388 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23389 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23390 | SWIG_fail; | |
d14a1e28 | 23391 | if (arg2 == NULL) { |
15afbcd0 RD |
23392 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23393 | SWIG_fail; | |
d14a1e28 RD |
23394 | } |
23395 | { | |
23396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23397 | { | |
23398 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
23399 | result = (wxDateSpan *) &_result_ref; | |
23400 | } | |
23401 | ||
23402 | wxPyEndAllowThreads(__tstate); | |
23403 | if (PyErr_Occurred()) SWIG_fail; | |
23404 | } | |
15afbcd0 | 23405 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23406 | return resultobj; |
23407 | fail: | |
23408 | return NULL; | |
23409 | } | |
23410 | ||
23411 | ||
23412 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23413 | PyObject *resultobj; | |
23414 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23415 | wxDateSpan *result; | |
23416 | PyObject * obj0 = 0 ; | |
23417 | char *kwnames[] = { | |
23418 | (char *) "self", NULL | |
23419 | }; | |
23420 | ||
23421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23424 | { |
23425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23426 | { | |
23427 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
23428 | result = (wxDateSpan *) &_result_ref; | |
23429 | } | |
23430 | ||
23431 | wxPyEndAllowThreads(__tstate); | |
23432 | if (PyErr_Occurred()) SWIG_fail; | |
23433 | } | |
15afbcd0 | 23434 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23435 | return resultobj; |
23436 | fail: | |
23437 | return NULL; | |
23438 | } | |
23439 | ||
23440 | ||
23441 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23442 | PyObject *resultobj; | |
23443 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23444 | int arg2 ; | |
23445 | wxDateSpan *result; | |
23446 | PyObject * obj0 = 0 ; | |
994141e6 | 23447 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23448 | char *kwnames[] = { |
23449 | (char *) "self",(char *) "factor", NULL | |
23450 | }; | |
23451 | ||
994141e6 | 23452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23455 | arg2 = (int) SWIG_AsInt(obj1); | |
23456 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23457 | { |
23458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23459 | { | |
23460 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
23461 | result = (wxDateSpan *) &_result_ref; | |
23462 | } | |
23463 | ||
23464 | wxPyEndAllowThreads(__tstate); | |
23465 | if (PyErr_Occurred()) SWIG_fail; | |
23466 | } | |
15afbcd0 | 23467 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23468 | return resultobj; |
23469 | fail: | |
23470 | return NULL; | |
23471 | } | |
23472 | ||
23473 | ||
23474 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23475 | PyObject *resultobj; | |
23476 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23477 | wxDateSpan *arg2 = 0 ; | |
23478 | wxDateSpan result; | |
23479 | PyObject * obj0 = 0 ; | |
23480 | PyObject * obj1 = 0 ; | |
23481 | char *kwnames[] = { | |
23482 | (char *) "self",(char *) "other", NULL | |
23483 | }; | |
23484 | ||
23485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23488 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23489 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23490 | SWIG_fail; | |
d14a1e28 | 23491 | if (arg2 == NULL) { |
15afbcd0 RD |
23492 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23493 | SWIG_fail; | |
d14a1e28 RD |
23494 | } |
23495 | { | |
23496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23497 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
23498 | ||
23499 | wxPyEndAllowThreads(__tstate); | |
23500 | if (PyErr_Occurred()) SWIG_fail; | |
23501 | } | |
23502 | { | |
23503 | wxDateSpan * resultptr; | |
23504 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23505 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23506 | } |
23507 | return resultobj; | |
23508 | fail: | |
23509 | return NULL; | |
23510 | } | |
23511 | ||
23512 | ||
23513 | static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23514 | PyObject *resultobj; | |
23515 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23516 | wxDateSpan *arg2 = 0 ; | |
23517 | wxDateSpan result; | |
23518 | PyObject * obj0 = 0 ; | |
23519 | PyObject * obj1 = 0 ; | |
23520 | char *kwnames[] = { | |
23521 | (char *) "self",(char *) "other", NULL | |
23522 | }; | |
23523 | ||
23524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23527 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23528 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23529 | SWIG_fail; | |
d14a1e28 | 23530 | if (arg2 == NULL) { |
15afbcd0 RD |
23531 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23532 | SWIG_fail; | |
d14a1e28 RD |
23533 | } |
23534 | { | |
23535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23536 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
23537 | ||
23538 | wxPyEndAllowThreads(__tstate); | |
23539 | if (PyErr_Occurred()) SWIG_fail; | |
23540 | } | |
23541 | { | |
23542 | wxDateSpan * resultptr; | |
23543 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23544 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23545 | } |
23546 | return resultobj; | |
23547 | fail: | |
23548 | return NULL; | |
23549 | } | |
23550 | ||
23551 | ||
23552 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23553 | PyObject *resultobj; | |
23554 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23555 | int arg2 ; | |
23556 | wxDateSpan result; | |
23557 | PyObject * obj0 = 0 ; | |
994141e6 | 23558 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23559 | char *kwnames[] = { |
23560 | (char *) "self",(char *) "n", NULL | |
23561 | }; | |
23562 | ||
994141e6 | 23563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23566 | arg2 = (int) SWIG_AsInt(obj1); | |
23567 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23568 | { |
23569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23570 | result = wxDateSpan___mul__(arg1,arg2); | |
23571 | ||
23572 | wxPyEndAllowThreads(__tstate); | |
23573 | if (PyErr_Occurred()) SWIG_fail; | |
23574 | } | |
23575 | { | |
23576 | wxDateSpan * resultptr; | |
23577 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23578 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23579 | } |
23580 | return resultobj; | |
23581 | fail: | |
23582 | return NULL; | |
23583 | } | |
23584 | ||
23585 | ||
23586 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23587 | PyObject *resultobj; | |
23588 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23589 | int arg2 ; | |
23590 | wxDateSpan result; | |
23591 | PyObject * obj0 = 0 ; | |
994141e6 | 23592 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23593 | char *kwnames[] = { |
23594 | (char *) "self",(char *) "n", NULL | |
23595 | }; | |
23596 | ||
994141e6 | 23597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23600 | arg2 = (int) SWIG_AsInt(obj1); | |
23601 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23602 | { |
23603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23604 | result = wxDateSpan___rmul__(arg1,arg2); | |
23605 | ||
23606 | wxPyEndAllowThreads(__tstate); | |
23607 | if (PyErr_Occurred()) SWIG_fail; | |
23608 | } | |
23609 | { | |
23610 | wxDateSpan * resultptr; | |
23611 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23612 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23613 | } |
23614 | return resultobj; | |
23615 | fail: | |
23616 | return NULL; | |
23617 | } | |
23618 | ||
23619 | ||
23620 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23621 | PyObject *resultobj; | |
23622 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22faec7d | 23623 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; |
d14a1e28 RD |
23624 | bool result; |
23625 | PyObject * obj0 = 0 ; | |
23626 | PyObject * obj1 = 0 ; | |
23627 | char *kwnames[] = { | |
23628 | (char *) "self",(char *) "other", NULL | |
23629 | }; | |
23630 | ||
23631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23634 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23636 | { |
23637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 23638 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); |
d14a1e28 RD |
23639 | |
23640 | wxPyEndAllowThreads(__tstate); | |
23641 | if (PyErr_Occurred()) SWIG_fail; | |
23642 | } | |
4f89f6a3 RD |
23643 | { |
23644 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23645 | } | |
d14a1e28 RD |
23646 | return resultobj; |
23647 | fail: | |
23648 | return NULL; | |
23649 | } | |
23650 | ||
23651 | ||
23652 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23653 | PyObject *resultobj; | |
23654 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22faec7d | 23655 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; |
d14a1e28 RD |
23656 | bool result; |
23657 | PyObject * obj0 = 0 ; | |
23658 | PyObject * obj1 = 0 ; | |
23659 | char *kwnames[] = { | |
23660 | (char *) "self",(char *) "other", NULL | |
23661 | }; | |
23662 | ||
23663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23666 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23668 | { |
23669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 23670 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); |
d14a1e28 RD |
23671 | |
23672 | wxPyEndAllowThreads(__tstate); | |
23673 | if (PyErr_Occurred()) SWIG_fail; | |
23674 | } | |
4f89f6a3 RD |
23675 | { |
23676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23677 | } | |
d14a1e28 RD |
23678 | return resultobj; |
23679 | fail: | |
23680 | return NULL; | |
23681 | } | |
23682 | ||
23683 | ||
23684 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
23685 | PyObject *obj; | |
23686 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23687 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
23688 | Py_INCREF(obj); | |
23689 | return Py_BuildValue((char *)""); | |
23690 | } | |
23691 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23692 | PyObject *resultobj; | |
23693 | long result; | |
23694 | char *kwnames[] = { | |
23695 | NULL | |
23696 | }; | |
23697 | ||
23698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
23699 | { | |
23700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23701 | result = (long)wxGetLocalTime(); | |
23702 | ||
23703 | wxPyEndAllowThreads(__tstate); | |
23704 | if (PyErr_Occurred()) SWIG_fail; | |
23705 | } | |
15afbcd0 | 23706 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23707 | return resultobj; |
23708 | fail: | |
23709 | return NULL; | |
23710 | } | |
23711 | ||
23712 | ||
23713 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23714 | PyObject *resultobj; | |
23715 | long result; | |
23716 | char *kwnames[] = { | |
23717 | NULL | |
23718 | }; | |
23719 | ||
23720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
23721 | { | |
23722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23723 | result = (long)wxGetUTCTime(); | |
23724 | ||
23725 | wxPyEndAllowThreads(__tstate); | |
23726 | if (PyErr_Occurred()) SWIG_fail; | |
23727 | } | |
15afbcd0 | 23728 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23729 | return resultobj; |
23730 | fail: | |
23731 | return NULL; | |
23732 | } | |
23733 | ||
23734 | ||
23735 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23736 | PyObject *resultobj; | |
23737 | long result; | |
23738 | char *kwnames[] = { | |
23739 | NULL | |
23740 | }; | |
23741 | ||
23742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
23743 | { | |
23744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23745 | result = (long)wxGetCurrentTime(); | |
23746 | ||
23747 | wxPyEndAllowThreads(__tstate); | |
23748 | if (PyErr_Occurred()) SWIG_fail; | |
23749 | } | |
15afbcd0 | 23750 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23751 | return resultobj; |
23752 | fail: | |
23753 | return NULL; | |
23754 | } | |
23755 | ||
23756 | ||
23757 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23758 | PyObject *resultobj; | |
23759 | wxLongLong result; | |
23760 | char *kwnames[] = { | |
23761 | NULL | |
23762 | }; | |
23763 | ||
23764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
23765 | { | |
23766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23767 | result = wxGetLocalTimeMillis(); | |
23768 | ||
23769 | wxPyEndAllowThreads(__tstate); | |
23770 | if (PyErr_Occurred()) SWIG_fail; | |
23771 | } | |
23772 | { | |
23773 | PyObject *hi, *lo, *shifter, *shifted; | |
23774 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23775 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23776 | shifter = PyLong_FromLong(32); | |
23777 | shifted = PyNumber_Lshift(hi, shifter); | |
23778 | resultobj = PyNumber_Or(shifted, lo); | |
23779 | Py_DECREF(hi); | |
23780 | Py_DECREF(lo); | |
23781 | Py_DECREF(shifter); | |
23782 | Py_DECREF(shifted); | |
23783 | } | |
23784 | return resultobj; | |
23785 | fail: | |
23786 | return NULL; | |
23787 | } | |
23788 | ||
23789 | ||
98e665d3 RD |
23790 | static int _wrap_DefaultDateTime_set(PyObject *_val) { |
23791 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); | |
23792 | return 1; | |
23793 | } | |
23794 | ||
23795 | ||
23796 | static PyObject *_wrap_DefaultDateTime_get() { | |
23797 | PyObject *pyobj; | |
23798 | ||
15afbcd0 | 23799 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); |
98e665d3 RD |
23800 | return pyobj; |
23801 | } | |
23802 | ||
23803 | ||
d14a1e28 RD |
23804 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { |
23805 | PyObject *resultobj; | |
23806 | int arg1 ; | |
23807 | wxDataFormat *result; | |
994141e6 | 23808 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
23809 | char *kwnames[] = { |
23810 | (char *) "type", NULL | |
23811 | }; | |
23812 | ||
994141e6 | 23813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
23814 | arg1 = (wxDataFormatId) SWIG_AsInt(obj0); |
23815 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23816 | { |
23817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23818 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
23819 | ||
23820 | wxPyEndAllowThreads(__tstate); | |
23821 | if (PyErr_Occurred()) SWIG_fail; | |
23822 | } | |
15afbcd0 | 23823 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
23824 | return resultobj; |
23825 | fail: | |
23826 | return NULL; | |
23827 | } | |
23828 | ||
23829 | ||
23830 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23831 | PyObject *resultobj; | |
23832 | wxString *arg1 = 0 ; | |
23833 | wxDataFormat *result; | |
e811c8ce | 23834 | bool temp1 = False ; |
d14a1e28 RD |
23835 | PyObject * obj0 = 0 ; |
23836 | char *kwnames[] = { | |
23837 | (char *) "format", NULL | |
23838 | }; | |
23839 | ||
23840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
23841 | { | |
23842 | arg1 = wxString_in_helper(obj0); | |
23843 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 23844 | temp1 = True; |
d14a1e28 RD |
23845 | } |
23846 | { | |
23847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23848 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
23849 | ||
23850 | wxPyEndAllowThreads(__tstate); | |
23851 | if (PyErr_Occurred()) SWIG_fail; | |
23852 | } | |
15afbcd0 | 23853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
23854 | { |
23855 | if (temp1) | |
23856 | delete arg1; | |
23857 | } | |
23858 | return resultobj; | |
23859 | fail: | |
23860 | { | |
23861 | if (temp1) | |
23862 | delete arg1; | |
23863 | } | |
23864 | return NULL; | |
23865 | } | |
23866 | ||
23867 | ||
23868 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23869 | PyObject *resultobj; | |
23870 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23871 | PyObject * obj0 = 0 ; | |
23872 | char *kwnames[] = { | |
23873 | (char *) "self", NULL | |
23874 | }; | |
23875 | ||
23876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23879 | { |
23880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23881 | delete arg1; | |
23882 | ||
23883 | wxPyEndAllowThreads(__tstate); | |
23884 | if (PyErr_Occurred()) SWIG_fail; | |
23885 | } | |
23886 | Py_INCREF(Py_None); resultobj = Py_None; | |
23887 | return resultobj; | |
23888 | fail: | |
23889 | return NULL; | |
23890 | } | |
23891 | ||
23892 | ||
23893 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
23894 | PyObject *resultobj; | |
23895 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23896 | int arg2 ; | |
23897 | bool result; | |
23898 | PyObject * obj0 = 0 ; | |
994141e6 | 23899 | PyObject * obj1 = 0 ; |
d14a1e28 | 23900 | |
994141e6 | 23901 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23904 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23905 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23906 | { |
23907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 23908 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); |
d14a1e28 RD |
23909 | |
23910 | wxPyEndAllowThreads(__tstate); | |
23911 | if (PyErr_Occurred()) SWIG_fail; | |
23912 | } | |
4f89f6a3 RD |
23913 | { |
23914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23915 | } | |
d14a1e28 RD |
23916 | return resultobj; |
23917 | fail: | |
23918 | return NULL; | |
23919 | } | |
23920 | ||
23921 | ||
23922 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
23923 | PyObject *resultobj; | |
23924 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23925 | int arg2 ; | |
23926 | bool result; | |
23927 | PyObject * obj0 = 0 ; | |
994141e6 | 23928 | PyObject * obj1 = 0 ; |
d14a1e28 | 23929 | |
994141e6 | 23930 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23933 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23934 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23935 | { |
23936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 23937 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); |
d14a1e28 RD |
23938 | |
23939 | wxPyEndAllowThreads(__tstate); | |
23940 | if (PyErr_Occurred()) SWIG_fail; | |
23941 | } | |
4f89f6a3 RD |
23942 | { |
23943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23944 | } | |
d14a1e28 RD |
23945 | return resultobj; |
23946 | fail: | |
23947 | return NULL; | |
23948 | } | |
23949 | ||
23950 | ||
23951 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
23952 | PyObject *resultobj; | |
23953 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23954 | wxDataFormat *arg2 = 0 ; | |
23955 | bool result; | |
23956 | PyObject * obj0 = 0 ; | |
23957 | PyObject * obj1 = 0 ; | |
23958 | ||
23959 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23962 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
23963 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23964 | SWIG_fail; | |
d14a1e28 | 23965 | if (arg2 == NULL) { |
15afbcd0 RD |
23966 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23967 | SWIG_fail; | |
d14a1e28 RD |
23968 | } |
23969 | { | |
23970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23971 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
23972 | ||
23973 | wxPyEndAllowThreads(__tstate); | |
23974 | if (PyErr_Occurred()) SWIG_fail; | |
23975 | } | |
4f89f6a3 RD |
23976 | { |
23977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23978 | } | |
d14a1e28 RD |
23979 | return resultobj; |
23980 | fail: | |
23981 | return NULL; | |
23982 | } | |
23983 | ||
23984 | ||
23985 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
23986 | int argc; | |
23987 | PyObject *argv[3]; | |
23988 | int ii; | |
23989 | ||
23990 | argc = PyObject_Length(args); | |
23991 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23992 | argv[ii] = PyTuple_GetItem(args,ii); | |
23993 | } | |
23994 | if (argc == 2) { | |
23995 | int _v; | |
23996 | { | |
23997 | void *ptr; | |
15afbcd0 | 23998 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
23999 | _v = 0; |
24000 | PyErr_Clear(); | |
24001 | } else { | |
24002 | _v = 1; | |
24003 | } | |
24004 | } | |
24005 | if (_v) { | |
24006 | { | |
24007 | void *ptr; | |
15afbcd0 | 24008 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24009 | _v = 0; |
24010 | PyErr_Clear(); | |
24011 | } else { | |
24012 | _v = 1; | |
24013 | } | |
24014 | } | |
24015 | if (_v) { | |
24016 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
24017 | } | |
24018 | } | |
24019 | } | |
24020 | if (argc == 2) { | |
24021 | int _v; | |
24022 | { | |
24023 | void *ptr; | |
15afbcd0 | 24024 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24025 | _v = 0; |
24026 | PyErr_Clear(); | |
24027 | } else { | |
24028 | _v = 1; | |
24029 | } | |
24030 | } | |
24031 | if (_v) { | |
15afbcd0 | 24032 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
24033 | if (_v) { |
24034 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
24035 | } | |
24036 | } | |
24037 | } | |
24038 | ||
24039 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
24040 | return NULL; | |
24041 | } | |
24042 | ||
24043 | ||
24044 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
24045 | PyObject *resultobj; | |
24046 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24047 | wxDataFormat *arg2 = 0 ; | |
24048 | bool result; | |
24049 | PyObject * obj0 = 0 ; | |
24050 | PyObject * obj1 = 0 ; | |
24051 | ||
24052 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24055 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24056 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24057 | SWIG_fail; | |
d14a1e28 | 24058 | if (arg2 == NULL) { |
15afbcd0 RD |
24059 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24060 | SWIG_fail; | |
d14a1e28 RD |
24061 | } |
24062 | { | |
24063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24064 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
24065 | ||
24066 | wxPyEndAllowThreads(__tstate); | |
24067 | if (PyErr_Occurred()) SWIG_fail; | |
24068 | } | |
4f89f6a3 RD |
24069 | { |
24070 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24071 | } | |
d14a1e28 RD |
24072 | return resultobj; |
24073 | fail: | |
24074 | return NULL; | |
24075 | } | |
24076 | ||
24077 | ||
24078 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
24079 | int argc; | |
24080 | PyObject *argv[3]; | |
24081 | int ii; | |
24082 | ||
24083 | argc = PyObject_Length(args); | |
24084 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24085 | argv[ii] = PyTuple_GetItem(args,ii); | |
24086 | } | |
24087 | if (argc == 2) { | |
24088 | int _v; | |
24089 | { | |
24090 | void *ptr; | |
15afbcd0 | 24091 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24092 | _v = 0; |
24093 | PyErr_Clear(); | |
24094 | } else { | |
24095 | _v = 1; | |
24096 | } | |
24097 | } | |
24098 | if (_v) { | |
24099 | { | |
24100 | void *ptr; | |
15afbcd0 | 24101 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24102 | _v = 0; |
24103 | PyErr_Clear(); | |
24104 | } else { | |
24105 | _v = 1; | |
24106 | } | |
24107 | } | |
24108 | if (_v) { | |
24109 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
24110 | } | |
24111 | } | |
24112 | } | |
24113 | if (argc == 2) { | |
24114 | int _v; | |
24115 | { | |
24116 | void *ptr; | |
15afbcd0 | 24117 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24118 | _v = 0; |
24119 | PyErr_Clear(); | |
24120 | } else { | |
24121 | _v = 1; | |
24122 | } | |
24123 | } | |
24124 | if (_v) { | |
15afbcd0 | 24125 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
24126 | if (_v) { |
24127 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
24128 | } | |
24129 | } | |
24130 | } | |
24131 | ||
24132 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
24133 | return NULL; | |
24134 | } | |
24135 | ||
24136 | ||
24137 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24138 | PyObject *resultobj; | |
24139 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24140 | int arg2 ; | |
24141 | PyObject * obj0 = 0 ; | |
994141e6 | 24142 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24143 | char *kwnames[] = { |
24144 | (char *) "self",(char *) "format", NULL | |
24145 | }; | |
24146 | ||
994141e6 | 24147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24150 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
24151 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24152 | { |
24153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24154 | (arg1)->SetType((wxDataFormatId )arg2); | |
24155 | ||
24156 | wxPyEndAllowThreads(__tstate); | |
24157 | if (PyErr_Occurred()) SWIG_fail; | |
24158 | } | |
24159 | Py_INCREF(Py_None); resultobj = Py_None; | |
24160 | return resultobj; | |
24161 | fail: | |
24162 | return NULL; | |
24163 | } | |
24164 | ||
24165 | ||
24166 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24167 | PyObject *resultobj; | |
24168 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24169 | int result; | |
24170 | PyObject * obj0 = 0 ; | |
24171 | char *kwnames[] = { | |
24172 | (char *) "self", NULL | |
24173 | }; | |
24174 | ||
24175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24178 | { |
24179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24180 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
24181 | ||
24182 | wxPyEndAllowThreads(__tstate); | |
24183 | if (PyErr_Occurred()) SWIG_fail; | |
24184 | } | |
15afbcd0 | 24185 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
24186 | return resultobj; |
24187 | fail: | |
24188 | return NULL; | |
24189 | } | |
24190 | ||
24191 | ||
24192 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24193 | PyObject *resultobj; | |
24194 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24195 | wxString result; | |
24196 | PyObject * obj0 = 0 ; | |
24197 | char *kwnames[] = { | |
24198 | (char *) "self", NULL | |
24199 | }; | |
24200 | ||
24201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24204 | { |
24205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24206 | result = ((wxDataFormat const *)arg1)->GetId(); | |
24207 | ||
24208 | wxPyEndAllowThreads(__tstate); | |
24209 | if (PyErr_Occurred()) SWIG_fail; | |
24210 | } | |
24211 | { | |
24212 | #if wxUSE_UNICODE | |
24213 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24214 | #else | |
24215 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24216 | #endif | |
24217 | } | |
24218 | return resultobj; | |
24219 | fail: | |
24220 | return NULL; | |
24221 | } | |
24222 | ||
24223 | ||
24224 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24225 | PyObject *resultobj; | |
24226 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24227 | wxString *arg2 = 0 ; | |
e811c8ce | 24228 | bool temp2 = False ; |
d14a1e28 RD |
24229 | PyObject * obj0 = 0 ; |
24230 | PyObject * obj1 = 0 ; | |
24231 | char *kwnames[] = { | |
24232 | (char *) "self",(char *) "format", NULL | |
24233 | }; | |
24234 | ||
24235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24238 | { |
24239 | arg2 = wxString_in_helper(obj1); | |
24240 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24241 | temp2 = True; |
d14a1e28 RD |
24242 | } |
24243 | { | |
24244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24245 | (arg1)->SetId((wxString const &)*arg2); | |
24246 | ||
24247 | wxPyEndAllowThreads(__tstate); | |
24248 | if (PyErr_Occurred()) SWIG_fail; | |
24249 | } | |
24250 | Py_INCREF(Py_None); resultobj = Py_None; | |
24251 | { | |
24252 | if (temp2) | |
24253 | delete arg2; | |
24254 | } | |
24255 | return resultobj; | |
24256 | fail: | |
24257 | { | |
24258 | if (temp2) | |
24259 | delete arg2; | |
24260 | } | |
24261 | return NULL; | |
24262 | } | |
24263 | ||
24264 | ||
24265 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
24266 | PyObject *obj; | |
24267 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24268 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
24269 | Py_INCREF(obj); | |
24270 | return Py_BuildValue((char *)""); | |
24271 | } | |
24272 | static int _wrap_FormatInvalid_set(PyObject *_val) { | |
24273 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); | |
24274 | return 1; | |
24275 | } | |
24276 | ||
24277 | ||
24278 | static PyObject *_wrap_FormatInvalid_get() { | |
24279 | PyObject *pyobj; | |
24280 | ||
15afbcd0 | 24281 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); |
d14a1e28 RD |
24282 | return pyobj; |
24283 | } | |
24284 | ||
24285 | ||
24286 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24287 | PyObject *resultobj; | |
24288 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24289 | PyObject * obj0 = 0 ; | |
24290 | char *kwnames[] = { | |
24291 | (char *) "self", NULL | |
24292 | }; | |
24293 | ||
24294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24297 | { |
24298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24299 | delete arg1; | |
24300 | ||
24301 | wxPyEndAllowThreads(__tstate); | |
24302 | if (PyErr_Occurred()) SWIG_fail; | |
24303 | } | |
24304 | Py_INCREF(Py_None); resultobj = Py_None; | |
24305 | return resultobj; | |
24306 | fail: | |
24307 | return NULL; | |
24308 | } | |
24309 | ||
24310 | ||
24311 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24312 | PyObject *resultobj; | |
24313 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24314 | int arg2 = (int) wxDataObject::Get ; | |
24315 | SwigValueWrapper< wxDataFormat > result; | |
24316 | PyObject * obj0 = 0 ; | |
994141e6 | 24317 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24318 | char *kwnames[] = { |
24319 | (char *) "self",(char *) "dir", NULL | |
24320 | }; | |
24321 | ||
994141e6 | 24322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24325 | if (obj1) { |
15afbcd0 RD |
24326 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); |
24327 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24328 | } |
d14a1e28 RD |
24329 | { |
24330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24331 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
24332 | ||
24333 | wxPyEndAllowThreads(__tstate); | |
24334 | if (PyErr_Occurred()) SWIG_fail; | |
24335 | } | |
24336 | { | |
24337 | wxDataFormat * resultptr; | |
24338 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
15afbcd0 | 24339 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
24340 | } |
24341 | return resultobj; | |
24342 | fail: | |
24343 | return NULL; | |
24344 | } | |
24345 | ||
24346 | ||
24347 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24348 | PyObject *resultobj; | |
24349 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24350 | int arg2 = (int) wxDataObject::Get ; | |
24351 | size_t result; | |
24352 | PyObject * obj0 = 0 ; | |
994141e6 | 24353 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24354 | char *kwnames[] = { |
24355 | (char *) "self",(char *) "dir", NULL | |
24356 | }; | |
24357 | ||
994141e6 | 24358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24361 | if (obj1) { |
15afbcd0 RD |
24362 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); |
24363 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24364 | } |
d14a1e28 RD |
24365 | { |
24366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24367 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
24368 | ||
24369 | wxPyEndAllowThreads(__tstate); | |
24370 | if (PyErr_Occurred()) SWIG_fail; | |
24371 | } | |
15afbcd0 | 24372 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24373 | return resultobj; |
24374 | fail: | |
24375 | return NULL; | |
24376 | } | |
24377 | ||
24378 | ||
24379 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24380 | PyObject *resultobj; | |
24381 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24382 | wxDataFormat *arg2 = 0 ; | |
24383 | int arg3 = (int) wxDataObject::Get ; | |
24384 | bool result; | |
24385 | PyObject * obj0 = 0 ; | |
24386 | PyObject * obj1 = 0 ; | |
994141e6 | 24387 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24388 | char *kwnames[] = { |
24389 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
24390 | }; | |
24391 | ||
994141e6 | 24392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24395 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24396 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24397 | SWIG_fail; | |
d14a1e28 | 24398 | if (arg2 == NULL) { |
15afbcd0 RD |
24399 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24400 | SWIG_fail; | |
d14a1e28 | 24401 | } |
994141e6 | 24402 | if (obj2) { |
15afbcd0 RD |
24403 | arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); |
24404 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24405 | } |
d14a1e28 RD |
24406 | { |
24407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24408 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
24409 | ||
24410 | wxPyEndAllowThreads(__tstate); | |
24411 | if (PyErr_Occurred()) SWIG_fail; | |
24412 | } | |
4f89f6a3 RD |
24413 | { |
24414 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24415 | } | |
d14a1e28 RD |
24416 | return resultobj; |
24417 | fail: | |
24418 | return NULL; | |
24419 | } | |
24420 | ||
24421 | ||
24422 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24423 | PyObject *resultobj; | |
24424 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24425 | wxDataFormat *arg2 = 0 ; | |
24426 | size_t result; | |
24427 | PyObject * obj0 = 0 ; | |
24428 | PyObject * obj1 = 0 ; | |
24429 | char *kwnames[] = { | |
24430 | (char *) "self",(char *) "format", NULL | |
24431 | }; | |
24432 | ||
24433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24436 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24437 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24438 | SWIG_fail; | |
d14a1e28 | 24439 | if (arg2 == NULL) { |
15afbcd0 RD |
24440 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24441 | SWIG_fail; | |
d14a1e28 RD |
24442 | } |
24443 | { | |
24444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24445 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
24446 | ||
24447 | wxPyEndAllowThreads(__tstate); | |
24448 | if (PyErr_Occurred()) SWIG_fail; | |
24449 | } | |
15afbcd0 | 24450 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24451 | return resultobj; |
24452 | fail: | |
24453 | return NULL; | |
24454 | } | |
24455 | ||
24456 | ||
24457 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24458 | PyObject *resultobj; | |
24459 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
1a10c483 RD |
24460 | int arg2 = (int) wxDataObject::Get ; |
24461 | PyObject *result; | |
d14a1e28 RD |
24462 | PyObject * obj0 = 0 ; |
24463 | PyObject * obj1 = 0 ; | |
24464 | char *kwnames[] = { | |
1a10c483 | 24465 | (char *) "self",(char *) "dir", NULL |
d14a1e28 RD |
24466 | }; |
24467 | ||
1a10c483 | 24468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1a10c483 RD |
24471 | if (obj1) { |
24472 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); | |
15afbcd0 | 24473 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 24474 | } |
d14a1e28 RD |
24475 | { |
24476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1a10c483 | 24477 | result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2); |
d14a1e28 RD |
24478 | |
24479 | wxPyEndAllowThreads(__tstate); | |
24480 | if (PyErr_Occurred()) SWIG_fail; | |
24481 | } | |
1a10c483 | 24482 | resultobj = result; |
d14a1e28 RD |
24483 | return resultobj; |
24484 | fail: | |
24485 | return NULL; | |
24486 | } | |
24487 | ||
24488 | ||
24489 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24490 | PyObject *resultobj; | |
24491 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24492 | wxDataFormat *arg2 = 0 ; | |
1a10c483 | 24493 | PyObject *result; |
d14a1e28 RD |
24494 | PyObject * obj0 = 0 ; |
24495 | PyObject * obj1 = 0 ; | |
d14a1e28 | 24496 | char *kwnames[] = { |
1a10c483 | 24497 | (char *) "self",(char *) "format", NULL |
d14a1e28 RD |
24498 | }; |
24499 | ||
1a10c483 | 24500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24503 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24504 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24505 | SWIG_fail; | |
d14a1e28 | 24506 | if (arg2 == NULL) { |
15afbcd0 RD |
24507 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24508 | SWIG_fail; | |
d14a1e28 | 24509 | } |
d14a1e28 RD |
24510 | { |
24511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1a10c483 | 24512 | result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2); |
d14a1e28 RD |
24513 | |
24514 | wxPyEndAllowThreads(__tstate); | |
24515 | if (PyErr_Occurred()) SWIG_fail; | |
24516 | } | |
1a10c483 | 24517 | resultobj = result; |
d14a1e28 RD |
24518 | return resultobj; |
24519 | fail: | |
24520 | return NULL; | |
24521 | } | |
24522 | ||
24523 | ||
24524 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24525 | PyObject *resultobj; | |
24526 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24527 | wxDataFormat *arg2 = 0 ; | |
1a10c483 | 24528 | PyObject *arg3 = (PyObject *) 0 ; |
d14a1e28 RD |
24529 | bool result; |
24530 | PyObject * obj0 = 0 ; | |
24531 | PyObject * obj1 = 0 ; | |
24532 | PyObject * obj2 = 0 ; | |
d14a1e28 | 24533 | char *kwnames[] = { |
1a10c483 | 24534 | (char *) "self",(char *) "format",(char *) "data", NULL |
d14a1e28 RD |
24535 | }; |
24536 | ||
1a10c483 | 24537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24540 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24541 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24542 | SWIG_fail; | |
d14a1e28 | 24543 | if (arg2 == NULL) { |
15afbcd0 RD |
24544 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24545 | SWIG_fail; | |
a41e16b6 | 24546 | } |
1a10c483 | 24547 | arg3 = obj2; |
d14a1e28 RD |
24548 | { |
24549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1a10c483 | 24550 | result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3); |
d14a1e28 RD |
24551 | |
24552 | wxPyEndAllowThreads(__tstate); | |
24553 | if (PyErr_Occurred()) SWIG_fail; | |
24554 | } | |
4f89f6a3 RD |
24555 | { |
24556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24557 | } | |
d14a1e28 RD |
24558 | return resultobj; |
24559 | fail: | |
24560 | return NULL; | |
24561 | } | |
24562 | ||
24563 | ||
24564 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
24565 | PyObject *obj; | |
24566 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24567 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
24568 | Py_INCREF(obj); | |
24569 | return Py_BuildValue((char *)""); | |
24570 | } | |
24571 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24572 | PyObject *resultobj; | |
24573 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24574 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24575 | wxDataObjectSimple *result; | |
24576 | PyObject * obj0 = 0 ; | |
24577 | char *kwnames[] = { | |
24578 | (char *) "format", NULL | |
24579 | }; | |
24580 | ||
24581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
24582 | if (obj0) { | |
15afbcd0 RD |
24583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24584 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24585 | SWIG_fail; | |
d14a1e28 | 24586 | if (arg1 == NULL) { |
15afbcd0 RD |
24587 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24588 | SWIG_fail; | |
d14a1e28 RD |
24589 | } |
24590 | } | |
24591 | { | |
24592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24593 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
24594 | ||
24595 | wxPyEndAllowThreads(__tstate); | |
24596 | if (PyErr_Occurred()) SWIG_fail; | |
24597 | } | |
15afbcd0 | 24598 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); |
d14a1e28 RD |
24599 | return resultobj; |
24600 | fail: | |
24601 | return NULL; | |
24602 | } | |
24603 | ||
24604 | ||
24605 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24606 | PyObject *resultobj; | |
24607 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24608 | wxDataFormat *result; | |
24609 | PyObject * obj0 = 0 ; | |
24610 | char *kwnames[] = { | |
24611 | (char *) "self", NULL | |
24612 | }; | |
24613 | ||
24614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, |
24616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24617 | { |
24618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24619 | { | |
24620 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
24621 | result = (wxDataFormat *) &_result_ref; | |
24622 | } | |
24623 | ||
24624 | wxPyEndAllowThreads(__tstate); | |
24625 | if (PyErr_Occurred()) SWIG_fail; | |
24626 | } | |
15afbcd0 | 24627 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); |
d14a1e28 RD |
24628 | return resultobj; |
24629 | fail: | |
24630 | return NULL; | |
24631 | } | |
24632 | ||
24633 | ||
24634 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24635 | PyObject *resultobj; | |
24636 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24637 | wxDataFormat *arg2 = 0 ; | |
24638 | PyObject * obj0 = 0 ; | |
24639 | PyObject * obj1 = 0 ; | |
24640 | char *kwnames[] = { | |
24641 | (char *) "self",(char *) "format", NULL | |
24642 | }; | |
24643 | ||
24644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, |
24646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24647 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24648 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24649 | SWIG_fail; | |
d14a1e28 | 24650 | if (arg2 == NULL) { |
15afbcd0 RD |
24651 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24652 | SWIG_fail; | |
d14a1e28 RD |
24653 | } |
24654 | { | |
24655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24656 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
24657 | ||
24658 | wxPyEndAllowThreads(__tstate); | |
24659 | if (PyErr_Occurred()) SWIG_fail; | |
24660 | } | |
24661 | Py_INCREF(Py_None); resultobj = Py_None; | |
24662 | return resultobj; | |
24663 | fail: | |
24664 | return NULL; | |
24665 | } | |
24666 | ||
24667 | ||
1a10c483 RD |
24668 | static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
24669 | PyObject *resultobj; | |
24670 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24671 | size_t result; | |
24672 | PyObject * obj0 = 0 ; | |
24673 | char *kwnames[] = { | |
24674 | (char *) "self", NULL | |
24675 | }; | |
24676 | ||
24677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail; | |
24678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24680 | { | |
24681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24682 | result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize(); | |
24683 | ||
24684 | wxPyEndAllowThreads(__tstate); | |
24685 | if (PyErr_Occurred()) SWIG_fail; | |
24686 | } | |
24687 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24688 | return resultobj; | |
24689 | fail: | |
24690 | return NULL; | |
24691 | } | |
24692 | ||
24693 | ||
24694 | static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24695 | PyObject *resultobj; | |
24696 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24697 | PyObject *result; | |
24698 | PyObject * obj0 = 0 ; | |
24699 | char *kwnames[] = { | |
24700 | (char *) "self", NULL | |
24701 | }; | |
24702 | ||
24703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail; | |
24704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24706 | { | |
24707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24708 | result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1); | |
24709 | ||
24710 | wxPyEndAllowThreads(__tstate); | |
24711 | if (PyErr_Occurred()) SWIG_fail; | |
24712 | } | |
24713 | resultobj = result; | |
24714 | return resultobj; | |
24715 | fail: | |
24716 | return NULL; | |
24717 | } | |
24718 | ||
24719 | ||
24720 | static PyObject *_wrap_DataObjectSimple_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24721 | PyObject *resultobj; | |
24722 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24723 | PyObject *arg2 = (PyObject *) 0 ; | |
24724 | bool result; | |
24725 | PyObject * obj0 = 0 ; | |
24726 | PyObject * obj1 = 0 ; | |
24727 | char *kwnames[] = { | |
24728 | (char *) "self",(char *) "data", NULL | |
24729 | }; | |
24730 | ||
24731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail; | |
24732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24734 | arg2 = obj1; | |
24735 | { | |
24736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24737 | result = (bool)wxDataObjectSimple_SetData(arg1,arg2); | |
24738 | ||
24739 | wxPyEndAllowThreads(__tstate); | |
24740 | if (PyErr_Occurred()) SWIG_fail; | |
24741 | } | |
24742 | { | |
24743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24744 | } | |
24745 | return resultobj; | |
24746 | fail: | |
24747 | return NULL; | |
24748 | } | |
24749 | ||
24750 | ||
d14a1e28 RD |
24751 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { |
24752 | PyObject *obj; | |
24753 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24754 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
24755 | Py_INCREF(obj); | |
24756 | return Py_BuildValue((char *)""); | |
24757 | } | |
24758 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24759 | PyObject *resultobj; | |
24760 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24761 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24762 | wxPyDataObjectSimple *result; | |
24763 | PyObject * obj0 = 0 ; | |
24764 | char *kwnames[] = { | |
24765 | (char *) "format", NULL | |
24766 | }; | |
24767 | ||
24768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
24769 | if (obj0) { | |
15afbcd0 RD |
24770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24771 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24772 | SWIG_fail; | |
d14a1e28 | 24773 | if (arg1 == NULL) { |
15afbcd0 RD |
24774 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24775 | SWIG_fail; | |
d14a1e28 RD |
24776 | } |
24777 | } | |
24778 | { | |
24779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24780 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
24781 | ||
24782 | wxPyEndAllowThreads(__tstate); | |
24783 | if (PyErr_Occurred()) SWIG_fail; | |
24784 | } | |
15afbcd0 | 24785 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); |
d14a1e28 RD |
24786 | return resultobj; |
24787 | fail: | |
24788 | return NULL; | |
24789 | } | |
24790 | ||
24791 | ||
24792 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24793 | PyObject *resultobj; | |
24794 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
24795 | PyObject *arg2 = (PyObject *) 0 ; | |
24796 | PyObject *arg3 = (PyObject *) 0 ; | |
24797 | PyObject * obj0 = 0 ; | |
24798 | PyObject * obj1 = 0 ; | |
24799 | PyObject * obj2 = 0 ; | |
24800 | char *kwnames[] = { | |
24801 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24802 | }; | |
24803 | ||
24804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
24805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple, |
24806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24807 | arg2 = obj1; |
24808 | arg3 = obj2; | |
24809 | { | |
24810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24811 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24812 | ||
24813 | wxPyEndAllowThreads(__tstate); | |
24814 | if (PyErr_Occurred()) SWIG_fail; | |
24815 | } | |
24816 | Py_INCREF(Py_None); resultobj = Py_None; | |
24817 | return resultobj; | |
24818 | fail: | |
24819 | return NULL; | |
24820 | } | |
24821 | ||
24822 | ||
24823 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24824 | PyObject *obj; | |
24825 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24826 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
24827 | Py_INCREF(obj); | |
24828 | return Py_BuildValue((char *)""); | |
24829 | } | |
24830 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24831 | PyObject *resultobj; | |
24832 | wxDataObjectComposite *result; | |
24833 | char *kwnames[] = { | |
24834 | NULL | |
24835 | }; | |
24836 | ||
24837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
24838 | { | |
24839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24840 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
24841 | ||
24842 | wxPyEndAllowThreads(__tstate); | |
24843 | if (PyErr_Occurred()) SWIG_fail; | |
24844 | } | |
15afbcd0 | 24845 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); |
d14a1e28 RD |
24846 | return resultobj; |
24847 | fail: | |
24848 | return NULL; | |
24849 | } | |
24850 | ||
24851 | ||
24852 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24853 | PyObject *resultobj; | |
24854 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
24855 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
1a10c483 | 24856 | bool arg3 = (bool) False ; |
d14a1e28 RD |
24857 | PyObject * obj0 = 0 ; |
24858 | PyObject * obj1 = 0 ; | |
994141e6 | 24859 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24860 | char *kwnames[] = { |
24861 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
24862 | }; | |
24863 | ||
994141e6 | 24864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite, |
24866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24867 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple, | |
24868 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
994141e6 | 24869 | if (obj2) { |
1a10c483 | 24870 | arg3 = (bool) SWIG_AsBool(obj2); |
15afbcd0 | 24871 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 24872 | } |
d14a1e28 RD |
24873 | { |
24874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24875 | (arg1)->Add(arg2,arg3); | |
24876 | ||
24877 | wxPyEndAllowThreads(__tstate); | |
24878 | if (PyErr_Occurred()) SWIG_fail; | |
24879 | } | |
24880 | Py_INCREF(Py_None); resultobj = Py_None; | |
24881 | return resultobj; | |
24882 | fail: | |
24883 | return NULL; | |
24884 | } | |
24885 | ||
24886 | ||
24887 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
24888 | PyObject *obj; | |
24889 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24890 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
24891 | Py_INCREF(obj); | |
24892 | return Py_BuildValue((char *)""); | |
24893 | } | |
24894 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24895 | PyObject *resultobj; | |
24896 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24897 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24898 | wxTextDataObject *result; | |
e811c8ce | 24899 | bool temp1 = False ; |
d14a1e28 RD |
24900 | PyObject * obj0 = 0 ; |
24901 | char *kwnames[] = { | |
24902 | (char *) "text", NULL | |
24903 | }; | |
24904 | ||
24905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
24906 | if (obj0) { | |
24907 | { | |
24908 | arg1 = wxString_in_helper(obj0); | |
24909 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 24910 | temp1 = True; |
d14a1e28 RD |
24911 | } |
24912 | } | |
24913 | { | |
24914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24915 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
24916 | ||
24917 | wxPyEndAllowThreads(__tstate); | |
24918 | if (PyErr_Occurred()) SWIG_fail; | |
24919 | } | |
15afbcd0 | 24920 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); |
d14a1e28 RD |
24921 | { |
24922 | if (temp1) | |
24923 | delete arg1; | |
24924 | } | |
24925 | return resultobj; | |
24926 | fail: | |
24927 | { | |
24928 | if (temp1) | |
24929 | delete arg1; | |
24930 | } | |
24931 | return NULL; | |
24932 | } | |
24933 | ||
24934 | ||
24935 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24936 | PyObject *resultobj; | |
24937 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24938 | size_t result; | |
24939 | PyObject * obj0 = 0 ; | |
24940 | char *kwnames[] = { | |
24941 | (char *) "self", NULL | |
24942 | }; | |
24943 | ||
24944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
24946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24947 | { |
24948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24949 | result = (size_t)(arg1)->GetTextLength(); | |
24950 | ||
24951 | wxPyEndAllowThreads(__tstate); | |
24952 | if (PyErr_Occurred()) SWIG_fail; | |
24953 | } | |
15afbcd0 | 24954 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24955 | return resultobj; |
24956 | fail: | |
24957 | return NULL; | |
24958 | } | |
24959 | ||
24960 | ||
24961 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24962 | PyObject *resultobj; | |
24963 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24964 | wxString result; | |
24965 | PyObject * obj0 = 0 ; | |
24966 | char *kwnames[] = { | |
24967 | (char *) "self", NULL | |
24968 | }; | |
24969 | ||
24970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
24972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24973 | { |
24974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24975 | result = (arg1)->GetText(); | |
24976 | ||
24977 | wxPyEndAllowThreads(__tstate); | |
24978 | if (PyErr_Occurred()) SWIG_fail; | |
24979 | } | |
24980 | { | |
24981 | #if wxUSE_UNICODE | |
24982 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24983 | #else | |
24984 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24985 | #endif | |
24986 | } | |
24987 | return resultobj; | |
24988 | fail: | |
24989 | return NULL; | |
24990 | } | |
24991 | ||
24992 | ||
24993 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24994 | PyObject *resultobj; | |
24995 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24996 | wxString *arg2 = 0 ; | |
e811c8ce | 24997 | bool temp2 = False ; |
d14a1e28 RD |
24998 | PyObject * obj0 = 0 ; |
24999 | PyObject * obj1 = 0 ; | |
25000 | char *kwnames[] = { | |
25001 | (char *) "self",(char *) "text", NULL | |
25002 | }; | |
25003 | ||
25004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
25006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25007 | { |
25008 | arg2 = wxString_in_helper(obj1); | |
25009 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 25010 | temp2 = True; |
d14a1e28 RD |
25011 | } |
25012 | { | |
25013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25014 | (arg1)->SetText((wxString const &)*arg2); | |
25015 | ||
25016 | wxPyEndAllowThreads(__tstate); | |
25017 | if (PyErr_Occurred()) SWIG_fail; | |
25018 | } | |
25019 | Py_INCREF(Py_None); resultobj = Py_None; | |
25020 | { | |
25021 | if (temp2) | |
25022 | delete arg2; | |
25023 | } | |
25024 | return resultobj; | |
25025 | fail: | |
25026 | { | |
25027 | if (temp2) | |
25028 | delete arg2; | |
25029 | } | |
25030 | return NULL; | |
25031 | } | |
25032 | ||
25033 | ||
25034 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
25035 | PyObject *obj; | |
25036 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25037 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
25038 | Py_INCREF(obj); | |
25039 | return Py_BuildValue((char *)""); | |
25040 | } | |
25041 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25042 | PyObject *resultobj; | |
25043 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25044 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25045 | wxPyTextDataObject *result; | |
e811c8ce | 25046 | bool temp1 = False ; |
d14a1e28 RD |
25047 | PyObject * obj0 = 0 ; |
25048 | char *kwnames[] = { | |
25049 | (char *) "text", NULL | |
25050 | }; | |
25051 | ||
25052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
25053 | if (obj0) { | |
25054 | { | |
25055 | arg1 = wxString_in_helper(obj0); | |
25056 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 25057 | temp1 = True; |
d14a1e28 RD |
25058 | } |
25059 | } | |
25060 | { | |
25061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25062 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
25063 | ||
25064 | wxPyEndAllowThreads(__tstate); | |
25065 | if (PyErr_Occurred()) SWIG_fail; | |
25066 | } | |
15afbcd0 | 25067 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); |
d14a1e28 RD |
25068 | { |
25069 | if (temp1) | |
25070 | delete arg1; | |
25071 | } | |
25072 | return resultobj; | |
25073 | fail: | |
25074 | { | |
25075 | if (temp1) | |
25076 | delete arg1; | |
25077 | } | |
25078 | return NULL; | |
25079 | } | |
25080 | ||
25081 | ||
25082 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25083 | PyObject *resultobj; | |
25084 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
25085 | PyObject *arg2 = (PyObject *) 0 ; | |
25086 | PyObject *arg3 = (PyObject *) 0 ; | |
25087 | PyObject * obj0 = 0 ; | |
25088 | PyObject * obj1 = 0 ; | |
25089 | PyObject * obj2 = 0 ; | |
25090 | char *kwnames[] = { | |
25091 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25092 | }; | |
25093 | ||
25094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject, |
25096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25097 | arg2 = obj1; |
25098 | arg3 = obj2; | |
25099 | { | |
25100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25101 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25102 | ||
25103 | wxPyEndAllowThreads(__tstate); | |
25104 | if (PyErr_Occurred()) SWIG_fail; | |
25105 | } | |
25106 | Py_INCREF(Py_None); resultobj = Py_None; | |
25107 | return resultobj; | |
25108 | fail: | |
25109 | return NULL; | |
25110 | } | |
25111 | ||
25112 | ||
25113 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
25114 | PyObject *obj; | |
25115 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25116 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
25117 | Py_INCREF(obj); | |
25118 | return Py_BuildValue((char *)""); | |
25119 | } | |
25120 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25121 | PyObject *resultobj; | |
25122 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25123 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25124 | wxBitmapDataObject *result; | |
25125 | PyObject * obj0 = 0 ; | |
25126 | char *kwnames[] = { | |
25127 | (char *) "bitmap", NULL | |
25128 | }; | |
25129 | ||
25130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
25131 | if (obj0) { | |
15afbcd0 RD |
25132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
25133 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25134 | SWIG_fail; | |
d14a1e28 | 25135 | if (arg1 == NULL) { |
15afbcd0 RD |
25136 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25137 | SWIG_fail; | |
d14a1e28 RD |
25138 | } |
25139 | } | |
25140 | { | |
25141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25142 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
25143 | ||
25144 | wxPyEndAllowThreads(__tstate); | |
25145 | if (PyErr_Occurred()) SWIG_fail; | |
25146 | } | |
15afbcd0 | 25147 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); |
d14a1e28 RD |
25148 | return resultobj; |
25149 | fail: | |
25150 | return NULL; | |
25151 | } | |
25152 | ||
25153 | ||
25154 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25155 | PyObject *resultobj; | |
25156 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25157 | wxBitmap result; | |
25158 | PyObject * obj0 = 0 ; | |
25159 | char *kwnames[] = { | |
25160 | (char *) "self", NULL | |
25161 | }; | |
25162 | ||
25163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, |
25165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25166 | { |
25167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25168 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
25169 | ||
25170 | wxPyEndAllowThreads(__tstate); | |
25171 | if (PyErr_Occurred()) SWIG_fail; | |
25172 | } | |
25173 | { | |
25174 | wxBitmap * resultptr; | |
25175 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 25176 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
25177 | } |
25178 | return resultobj; | |
25179 | fail: | |
25180 | return NULL; | |
25181 | } | |
25182 | ||
25183 | ||
25184 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25185 | PyObject *resultobj; | |
25186 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25187 | wxBitmap *arg2 = 0 ; | |
25188 | PyObject * obj0 = 0 ; | |
25189 | PyObject * obj1 = 0 ; | |
25190 | char *kwnames[] = { | |
25191 | (char *) "self",(char *) "bitmap", NULL | |
25192 | }; | |
25193 | ||
25194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, |
25196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25197 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
25198 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25199 | SWIG_fail; | |
d14a1e28 | 25200 | if (arg2 == NULL) { |
15afbcd0 RD |
25201 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25202 | SWIG_fail; | |
d14a1e28 RD |
25203 | } |
25204 | { | |
25205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25206 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
25207 | ||
25208 | wxPyEndAllowThreads(__tstate); | |
25209 | if (PyErr_Occurred()) SWIG_fail; | |
25210 | } | |
25211 | Py_INCREF(Py_None); resultobj = Py_None; | |
25212 | return resultobj; | |
25213 | fail: | |
25214 | return NULL; | |
25215 | } | |
25216 | ||
25217 | ||
25218 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25219 | PyObject *obj; | |
25220 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25221 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
25222 | Py_INCREF(obj); | |
25223 | return Py_BuildValue((char *)""); | |
25224 | } | |
25225 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25226 | PyObject *resultobj; | |
25227 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25228 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25229 | wxPyBitmapDataObject *result; | |
25230 | PyObject * obj0 = 0 ; | |
25231 | char *kwnames[] = { | |
25232 | (char *) "bitmap", NULL | |
25233 | }; | |
25234 | ||
25235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
25236 | if (obj0) { | |
15afbcd0 RD |
25237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
25238 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25239 | SWIG_fail; | |
d14a1e28 | 25240 | if (arg1 == NULL) { |
15afbcd0 RD |
25241 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25242 | SWIG_fail; | |
d14a1e28 RD |
25243 | } |
25244 | } | |
25245 | { | |
25246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25247 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
25248 | ||
25249 | wxPyEndAllowThreads(__tstate); | |
25250 | if (PyErr_Occurred()) SWIG_fail; | |
25251 | } | |
15afbcd0 | 25252 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); |
d14a1e28 RD |
25253 | return resultobj; |
25254 | fail: | |
25255 | return NULL; | |
25256 | } | |
25257 | ||
25258 | ||
25259 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25260 | PyObject *resultobj; | |
25261 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
25262 | PyObject *arg2 = (PyObject *) 0 ; | |
25263 | PyObject *arg3 = (PyObject *) 0 ; | |
25264 | PyObject * obj0 = 0 ; | |
25265 | PyObject * obj1 = 0 ; | |
25266 | PyObject * obj2 = 0 ; | |
25267 | char *kwnames[] = { | |
25268 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25269 | }; | |
25270 | ||
25271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject, |
25273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25274 | arg2 = obj1; |
25275 | arg3 = obj2; | |
25276 | { | |
25277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25278 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25279 | ||
25280 | wxPyEndAllowThreads(__tstate); | |
25281 | if (PyErr_Occurred()) SWIG_fail; | |
25282 | } | |
25283 | Py_INCREF(Py_None); resultobj = Py_None; | |
25284 | return resultobj; | |
25285 | fail: | |
25286 | return NULL; | |
25287 | } | |
25288 | ||
25289 | ||
25290 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25291 | PyObject *obj; | |
25292 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25293 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
25294 | Py_INCREF(obj); | |
25295 | return Py_BuildValue((char *)""); | |
25296 | } | |
25297 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25298 | PyObject *resultobj; | |
25299 | wxFileDataObject *result; | |
25300 | char *kwnames[] = { | |
25301 | NULL | |
25302 | }; | |
25303 | ||
25304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
25305 | { | |
25306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25307 | result = (wxFileDataObject *)new wxFileDataObject(); | |
25308 | ||
25309 | wxPyEndAllowThreads(__tstate); | |
25310 | if (PyErr_Occurred()) SWIG_fail; | |
25311 | } | |
15afbcd0 | 25312 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); |
d14a1e28 RD |
25313 | return resultobj; |
25314 | fail: | |
25315 | return NULL; | |
25316 | } | |
25317 | ||
25318 | ||
25319 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25320 | PyObject *resultobj; | |
25321 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25322 | wxArrayString *result; | |
25323 | PyObject * obj0 = 0 ; | |
25324 | char *kwnames[] = { | |
25325 | (char *) "self", NULL | |
25326 | }; | |
25327 | ||
25328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, |
25330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25331 | { |
25332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25333 | { | |
25334 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
25335 | result = (wxArrayString *) &_result_ref; | |
25336 | } | |
25337 | ||
25338 | wxPyEndAllowThreads(__tstate); | |
25339 | if (PyErr_Occurred()) SWIG_fail; | |
25340 | } | |
25341 | { | |
25342 | resultobj = wxArrayString2PyList_helper(*result); | |
25343 | } | |
25344 | return resultobj; | |
25345 | fail: | |
25346 | return NULL; | |
25347 | } | |
25348 | ||
25349 | ||
15afbcd0 RD |
25350 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
25351 | PyObject *resultobj; | |
25352 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25353 | wxString *arg2 = 0 ; | |
25354 | bool temp2 = False ; | |
25355 | PyObject * obj0 = 0 ; | |
25356 | PyObject * obj1 = 0 ; | |
25357 | char *kwnames[] = { | |
25358 | (char *) "self",(char *) "filename", NULL | |
25359 | }; | |
25360 | ||
25361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
25362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25364 | { | |
25365 | arg2 = wxString_in_helper(obj1); | |
25366 | if (arg2 == NULL) SWIG_fail; | |
25367 | temp2 = True; | |
25368 | } | |
25369 | { | |
25370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25371 | (arg1)->AddFile((wxString const &)*arg2); | |
25372 | ||
25373 | wxPyEndAllowThreads(__tstate); | |
25374 | if (PyErr_Occurred()) SWIG_fail; | |
25375 | } | |
25376 | Py_INCREF(Py_None); resultobj = Py_None; | |
25377 | { | |
25378 | if (temp2) | |
25379 | delete arg2; | |
25380 | } | |
25381 | return resultobj; | |
25382 | fail: | |
25383 | { | |
25384 | if (temp2) | |
25385 | delete arg2; | |
25386 | } | |
25387 | return NULL; | |
25388 | } | |
25389 | ||
25390 | ||
d14a1e28 RD |
25391 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { |
25392 | PyObject *obj; | |
25393 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25394 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
25395 | Py_INCREF(obj); | |
25396 | return Py_BuildValue((char *)""); | |
25397 | } | |
25398 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25399 | PyObject *resultobj; | |
25400 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25401 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25402 | wxCustomDataObject *result; | |
25403 | PyObject * obj0 = 0 ; | |
25404 | char *kwnames[] = { | |
25405 | (char *) "format", NULL | |
25406 | }; | |
25407 | ||
25408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
25409 | if (obj0) { | |
15afbcd0 RD |
25410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
25411 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25412 | SWIG_fail; | |
d14a1e28 | 25413 | if (arg1 == NULL) { |
15afbcd0 RD |
25414 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25415 | SWIG_fail; | |
d14a1e28 RD |
25416 | } |
25417 | } | |
25418 | { | |
25419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25420 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
25421 | ||
25422 | wxPyEndAllowThreads(__tstate); | |
25423 | if (PyErr_Occurred()) SWIG_fail; | |
25424 | } | |
15afbcd0 | 25425 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); |
d14a1e28 RD |
25426 | return resultobj; |
25427 | fail: | |
25428 | return NULL; | |
25429 | } | |
25430 | ||
25431 | ||
d14a1e28 RD |
25432 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
25433 | PyObject *resultobj; | |
25434 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25435 | PyObject *arg2 = (PyObject *) 0 ; | |
25436 | bool result; | |
25437 | PyObject * obj0 = 0 ; | |
25438 | PyObject * obj1 = 0 ; | |
25439 | char *kwnames[] = { | |
25440 | (char *) "self",(char *) "data", NULL | |
25441 | }; | |
25442 | ||
25443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25446 | arg2 = obj1; |
25447 | { | |
25448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25449 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
25450 | ||
25451 | wxPyEndAllowThreads(__tstate); | |
25452 | if (PyErr_Occurred()) SWIG_fail; | |
25453 | } | |
4f89f6a3 RD |
25454 | { |
25455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25456 | } | |
d14a1e28 RD |
25457 | return resultobj; |
25458 | fail: | |
25459 | return NULL; | |
25460 | } | |
25461 | ||
25462 | ||
25463 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25464 | PyObject *resultobj; | |
25465 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25466 | size_t result; | |
25467 | PyObject * obj0 = 0 ; | |
25468 | char *kwnames[] = { | |
25469 | (char *) "self", NULL | |
25470 | }; | |
25471 | ||
25472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25475 | { |
25476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25477 | result = (size_t)(arg1)->GetSize(); | |
25478 | ||
25479 | wxPyEndAllowThreads(__tstate); | |
25480 | if (PyErr_Occurred()) SWIG_fail; | |
25481 | } | |
15afbcd0 | 25482 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
25483 | return resultobj; |
25484 | fail: | |
25485 | return NULL; | |
25486 | } | |
25487 | ||
25488 | ||
25489 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25490 | PyObject *resultobj; | |
25491 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25492 | PyObject *result; | |
25493 | PyObject * obj0 = 0 ; | |
25494 | char *kwnames[] = { | |
25495 | (char *) "self", NULL | |
25496 | }; | |
25497 | ||
25498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25501 | { |
25502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25503 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
25504 | ||
25505 | wxPyEndAllowThreads(__tstate); | |
25506 | if (PyErr_Occurred()) SWIG_fail; | |
25507 | } | |
25508 | resultobj = result; | |
25509 | return resultobj; | |
25510 | fail: | |
25511 | return NULL; | |
25512 | } | |
25513 | ||
25514 | ||
25515 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
25516 | PyObject *obj; | |
25517 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25518 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
25519 | Py_INCREF(obj); | |
25520 | return Py_BuildValue((char *)""); | |
25521 | } | |
25522 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25523 | PyObject *resultobj; | |
25524 | wxURLDataObject *result; | |
25525 | char *kwnames[] = { | |
25526 | NULL | |
25527 | }; | |
25528 | ||
25529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
25530 | { | |
25531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25532 | result = (wxURLDataObject *)new wxURLDataObject(); | |
25533 | ||
25534 | wxPyEndAllowThreads(__tstate); | |
25535 | if (PyErr_Occurred()) SWIG_fail; | |
25536 | } | |
15afbcd0 | 25537 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); |
d14a1e28 RD |
25538 | return resultobj; |
25539 | fail: | |
25540 | return NULL; | |
25541 | } | |
25542 | ||
25543 | ||
25544 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25545 | PyObject *resultobj; | |
25546 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25547 | wxString result; | |
25548 | PyObject * obj0 = 0 ; | |
25549 | char *kwnames[] = { | |
25550 | (char *) "self", NULL | |
25551 | }; | |
25552 | ||
25553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, |
25555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25556 | { |
25557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25558 | result = (arg1)->GetURL(); | |
25559 | ||
25560 | wxPyEndAllowThreads(__tstate); | |
25561 | if (PyErr_Occurred()) SWIG_fail; | |
25562 | } | |
25563 | { | |
25564 | #if wxUSE_UNICODE | |
25565 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25566 | #else | |
25567 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25568 | #endif | |
25569 | } | |
25570 | return resultobj; | |
25571 | fail: | |
25572 | return NULL; | |
25573 | } | |
25574 | ||
25575 | ||
25576 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25577 | PyObject *resultobj; | |
25578 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25579 | wxString *arg2 = 0 ; | |
e811c8ce | 25580 | bool temp2 = False ; |
d14a1e28 RD |
25581 | PyObject * obj0 = 0 ; |
25582 | PyObject * obj1 = 0 ; | |
25583 | char *kwnames[] = { | |
25584 | (char *) "self",(char *) "url", NULL | |
25585 | }; | |
25586 | ||
25587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, |
25589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25590 | { |
25591 | arg2 = wxString_in_helper(obj1); | |
25592 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 25593 | temp2 = True; |
d14a1e28 RD |
25594 | } |
25595 | { | |
25596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25597 | (arg1)->SetURL((wxString const &)*arg2); | |
25598 | ||
25599 | wxPyEndAllowThreads(__tstate); | |
25600 | if (PyErr_Occurred()) SWIG_fail; | |
25601 | } | |
25602 | Py_INCREF(Py_None); resultobj = Py_None; | |
25603 | { | |
25604 | if (temp2) | |
25605 | delete arg2; | |
25606 | } | |
25607 | return resultobj; | |
25608 | fail: | |
25609 | { | |
25610 | if (temp2) | |
25611 | delete arg2; | |
25612 | } | |
25613 | return NULL; | |
25614 | } | |
25615 | ||
25616 | ||
25617 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
25618 | PyObject *obj; | |
25619 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25620 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
25621 | Py_INCREF(obj); | |
25622 | return Py_BuildValue((char *)""); | |
25623 | } | |
25624 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25625 | PyObject *resultobj; | |
25626 | wxMetafileDataObject *result; | |
25627 | char *kwnames[] = { | |
25628 | NULL | |
25629 | }; | |
25630 | ||
25631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
25632 | { | |
25633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25634 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
25635 | ||
25636 | wxPyEndAllowThreads(__tstate); | |
25637 | if (PyErr_Occurred()) SWIG_fail; | |
25638 | } | |
15afbcd0 | 25639 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); |
d14a1e28 RD |
25640 | return resultobj; |
25641 | fail: | |
25642 | return NULL; | |
25643 | } | |
25644 | ||
25645 | ||
25646 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { | |
25647 | PyObject *obj; | |
25648 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25649 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
25650 | Py_INCREF(obj); | |
25651 | return Py_BuildValue((char *)""); | |
25652 | } | |
25653 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25654 | PyObject *resultobj; | |
25655 | int arg1 ; | |
25656 | bool result; | |
994141e6 | 25657 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
25658 | char *kwnames[] = { |
25659 | (char *) "res", NULL | |
25660 | }; | |
25661 | ||
994141e6 | 25662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
25663 | arg1 = (wxDragResult) SWIG_AsInt(obj0); |
25664 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25665 | { |
25666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25667 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
25668 | ||
25669 | wxPyEndAllowThreads(__tstate); | |
25670 | if (PyErr_Occurred()) SWIG_fail; | |
25671 | } | |
4f89f6a3 RD |
25672 | { |
25673 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25674 | } | |
d14a1e28 RD |
25675 | return resultobj; |
25676 | fail: | |
25677 | return NULL; | |
25678 | } | |
25679 | ||
25680 | ||
25681 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25682 | PyObject *resultobj; | |
d1e20054 | 25683 | wxWindow *arg1 = (wxWindow *) 0 ; |
d14a1e28 RD |
25684 | wxIcon const &arg2_defvalue = wxNullIcon ; |
25685 | wxIcon *arg2 = (wxIcon *) &arg2_defvalue ; | |
25686 | wxIcon const &arg3_defvalue = wxNullIcon ; | |
25687 | wxIcon *arg3 = (wxIcon *) &arg3_defvalue ; | |
25688 | wxIcon const &arg4_defvalue = wxNullIcon ; | |
25689 | wxIcon *arg4 = (wxIcon *) &arg4_defvalue ; | |
25690 | wxPyDropSource *result; | |
25691 | PyObject * obj0 = 0 ; | |
25692 | PyObject * obj1 = 0 ; | |
25693 | PyObject * obj2 = 0 ; | |
25694 | PyObject * obj3 = 0 ; | |
25695 | char *kwnames[] = { | |
25696 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
25697 | }; | |
25698 | ||
d1e20054 | 25699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
25700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 25702 | if (obj1) { |
15afbcd0 RD |
25703 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, |
25704 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25705 | SWIG_fail; | |
d14a1e28 | 25706 | if (arg2 == NULL) { |
15afbcd0 RD |
25707 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25708 | SWIG_fail; | |
d14a1e28 RD |
25709 | } |
25710 | } | |
25711 | if (obj2) { | |
15afbcd0 RD |
25712 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIcon, |
25713 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25714 | SWIG_fail; | |
d14a1e28 | 25715 | if (arg3 == NULL) { |
15afbcd0 RD |
25716 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25717 | SWIG_fail; | |
d14a1e28 RD |
25718 | } |
25719 | } | |
25720 | if (obj3) { | |
15afbcd0 RD |
25721 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxIcon, |
25722 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25723 | SWIG_fail; | |
d14a1e28 | 25724 | if (arg4 == NULL) { |
15afbcd0 RD |
25725 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25726 | SWIG_fail; | |
d14a1e28 RD |
25727 | } |
25728 | } | |
25729 | { | |
25730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25731 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4); | |
25732 | ||
25733 | wxPyEndAllowThreads(__tstate); | |
25734 | if (PyErr_Occurred()) SWIG_fail; | |
25735 | } | |
15afbcd0 | 25736 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); |
d14a1e28 RD |
25737 | return resultobj; |
25738 | fail: | |
25739 | return NULL; | |
25740 | } | |
25741 | ||
25742 | ||
25743 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25744 | PyObject *resultobj; | |
25745 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25746 | PyObject *arg2 = (PyObject *) 0 ; | |
25747 | PyObject *arg3 = (PyObject *) 0 ; | |
25748 | int arg4 ; | |
25749 | PyObject * obj0 = 0 ; | |
25750 | PyObject * obj1 = 0 ; | |
25751 | PyObject * obj2 = 0 ; | |
994141e6 | 25752 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
25753 | char *kwnames[] = { |
25754 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
25755 | }; | |
25756 | ||
994141e6 | 25757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
25758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25760 | arg2 = obj1; |
25761 | arg3 = obj2; | |
15afbcd0 RD |
25762 | arg4 = (int) SWIG_AsInt(obj3); |
25763 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25764 | { |
25765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25766 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
25767 | ||
25768 | wxPyEndAllowThreads(__tstate); | |
25769 | if (PyErr_Occurred()) SWIG_fail; | |
25770 | } | |
25771 | Py_INCREF(Py_None); resultobj = Py_None; | |
25772 | return resultobj; | |
25773 | fail: | |
25774 | return NULL; | |
25775 | } | |
25776 | ||
25777 | ||
25778 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25779 | PyObject *resultobj; | |
25780 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25781 | PyObject * obj0 = 0 ; | |
25782 | char *kwnames[] = { | |
25783 | (char *) "self", NULL | |
25784 | }; | |
25785 | ||
25786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25789 | { |
25790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25791 | delete arg1; | |
25792 | ||
25793 | wxPyEndAllowThreads(__tstate); | |
25794 | if (PyErr_Occurred()) SWIG_fail; | |
25795 | } | |
25796 | Py_INCREF(Py_None); resultobj = Py_None; | |
25797 | return resultobj; | |
25798 | fail: | |
25799 | return NULL; | |
25800 | } | |
25801 | ||
25802 | ||
25803 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25804 | PyObject *resultobj; | |
25805 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25806 | wxDataObject *arg2 = 0 ; | |
25807 | PyObject * obj0 = 0 ; | |
25808 | PyObject * obj1 = 0 ; | |
25809 | char *kwnames[] = { | |
25810 | (char *) "self",(char *) "data", NULL | |
25811 | }; | |
25812 | ||
25813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25816 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
25817 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25818 | SWIG_fail; | |
d14a1e28 | 25819 | if (arg2 == NULL) { |
15afbcd0 RD |
25820 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25821 | SWIG_fail; | |
d14a1e28 RD |
25822 | } |
25823 | { | |
25824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25825 | (arg1)->SetData(*arg2); | |
25826 | ||
25827 | wxPyEndAllowThreads(__tstate); | |
25828 | if (PyErr_Occurred()) SWIG_fail; | |
25829 | } | |
25830 | Py_INCREF(Py_None); resultobj = Py_None; | |
25831 | return resultobj; | |
25832 | fail: | |
25833 | return NULL; | |
25834 | } | |
25835 | ||
25836 | ||
25837 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25838 | PyObject *resultobj; | |
25839 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25840 | wxDataObject *result; | |
25841 | PyObject * obj0 = 0 ; | |
25842 | char *kwnames[] = { | |
25843 | (char *) "self", NULL | |
25844 | }; | |
25845 | ||
25846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25849 | { |
25850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25851 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
25852 | ||
25853 | wxPyEndAllowThreads(__tstate); | |
25854 | if (PyErr_Occurred()) SWIG_fail; | |
25855 | } | |
15afbcd0 | 25856 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); |
d14a1e28 RD |
25857 | return resultobj; |
25858 | fail: | |
25859 | return NULL; | |
25860 | } | |
25861 | ||
25862 | ||
25863 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25864 | PyObject *resultobj; | |
25865 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25866 | int arg2 ; | |
25867 | wxCursor *arg3 = 0 ; | |
25868 | PyObject * obj0 = 0 ; | |
994141e6 | 25869 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25870 | PyObject * obj2 = 0 ; |
25871 | char *kwnames[] = { | |
25872 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
25873 | }; | |
25874 | ||
994141e6 | 25875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
25876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25878 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
25879 | if (PyErr_Occurred()) SWIG_fail; | |
25880 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
25881 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25882 | SWIG_fail; | |
d14a1e28 | 25883 | if (arg3 == NULL) { |
15afbcd0 RD |
25884 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25885 | SWIG_fail; | |
d14a1e28 RD |
25886 | } |
25887 | { | |
25888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25889 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
25890 | ||
25891 | wxPyEndAllowThreads(__tstate); | |
25892 | if (PyErr_Occurred()) SWIG_fail; | |
25893 | } | |
25894 | Py_INCREF(Py_None); resultobj = Py_None; | |
25895 | return resultobj; | |
25896 | fail: | |
25897 | return NULL; | |
25898 | } | |
25899 | ||
25900 | ||
25901 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25902 | PyObject *resultobj; | |
25903 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25904 | int arg2 = (int) wxDrag_CopyOnly ; | |
25905 | int result; | |
25906 | PyObject * obj0 = 0 ; | |
994141e6 | 25907 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25908 | char *kwnames[] = { |
25909 | (char *) "self",(char *) "flags", NULL | |
25910 | }; | |
25911 | ||
994141e6 | 25912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
25913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 25915 | if (obj1) { |
15afbcd0 RD |
25916 | arg2 = (int) SWIG_AsInt(obj1); |
25917 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25918 | } |
d14a1e28 RD |
25919 | { |
25920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25921 | result = (int)(arg1)->DoDragDrop(arg2); | |
25922 | ||
25923 | wxPyEndAllowThreads(__tstate); | |
25924 | if (PyErr_Occurred()) SWIG_fail; | |
25925 | } | |
15afbcd0 | 25926 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25927 | return resultobj; |
25928 | fail: | |
25929 | return NULL; | |
25930 | } | |
25931 | ||
25932 | ||
25933 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25934 | PyObject *resultobj; | |
25935 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25936 | int arg2 ; | |
25937 | bool result; | |
25938 | PyObject * obj0 = 0 ; | |
994141e6 | 25939 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25940 | char *kwnames[] = { |
25941 | (char *) "self",(char *) "effect", NULL | |
25942 | }; | |
25943 | ||
994141e6 | 25944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
25945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25947 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
25948 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25949 | { |
25950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25951 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
25952 | ||
25953 | wxPyEndAllowThreads(__tstate); | |
25954 | if (PyErr_Occurred()) SWIG_fail; | |
25955 | } | |
4f89f6a3 RD |
25956 | { |
25957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25958 | } | |
d14a1e28 RD |
25959 | return resultobj; |
25960 | fail: | |
25961 | return NULL; | |
25962 | } | |
25963 | ||
25964 | ||
25965 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
25966 | PyObject *obj; | |
25967 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25968 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
25969 | Py_INCREF(obj); | |
25970 | return Py_BuildValue((char *)""); | |
25971 | } | |
15afbcd0 | 25972 | static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25973 | PyObject *resultobj; |
25974 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
25975 | wxPyDropTarget *result; | |
25976 | PyObject * obj0 = 0 ; | |
25977 | char *kwnames[] = { | |
25978 | (char *) "dataObject", NULL | |
25979 | }; | |
25980 | ||
15afbcd0 | 25981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; |
d14a1e28 | 25982 | if (obj0) { |
15afbcd0 RD |
25983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
25984 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
25985 | } |
25986 | { | |
25987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25988 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
25989 | ||
25990 | wxPyEndAllowThreads(__tstate); | |
25991 | if (PyErr_Occurred()) SWIG_fail; | |
25992 | } | |
15afbcd0 | 25993 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); |
d14a1e28 RD |
25994 | return resultobj; |
25995 | fail: | |
25996 | return NULL; | |
25997 | } | |
25998 | ||
25999 | ||
26000 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26001 | PyObject *resultobj; | |
26002 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26003 | PyObject *arg2 = (PyObject *) 0 ; | |
26004 | PyObject *arg3 = (PyObject *) 0 ; | |
26005 | PyObject * obj0 = 0 ; | |
26006 | PyObject * obj1 = 0 ; | |
26007 | PyObject * obj2 = 0 ; | |
26008 | char *kwnames[] = { | |
26009 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26010 | }; | |
26011 | ||
26012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26015 | arg2 = obj1; |
26016 | arg3 = obj2; | |
26017 | { | |
26018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26019 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26020 | ||
26021 | wxPyEndAllowThreads(__tstate); | |
26022 | if (PyErr_Occurred()) SWIG_fail; | |
26023 | } | |
26024 | Py_INCREF(Py_None); resultobj = Py_None; | |
26025 | return resultobj; | |
26026 | fail: | |
26027 | return NULL; | |
26028 | } | |
26029 | ||
26030 | ||
26031 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26032 | PyObject *resultobj; | |
26033 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26034 | PyObject * obj0 = 0 ; | |
26035 | char *kwnames[] = { | |
26036 | (char *) "self", NULL | |
26037 | }; | |
26038 | ||
26039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26042 | { |
26043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26044 | delete arg1; | |
26045 | ||
26046 | wxPyEndAllowThreads(__tstate); | |
26047 | if (PyErr_Occurred()) SWIG_fail; | |
26048 | } | |
26049 | Py_INCREF(Py_None); resultobj = Py_None; | |
26050 | return resultobj; | |
26051 | fail: | |
26052 | return NULL; | |
26053 | } | |
26054 | ||
26055 | ||
26056 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26057 | PyObject *resultobj; | |
26058 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26059 | wxDataObject *result; | |
26060 | PyObject * obj0 = 0 ; | |
26061 | char *kwnames[] = { | |
26062 | (char *) "self", NULL | |
26063 | }; | |
26064 | ||
26065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26068 | { |
26069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26070 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26071 | ||
26072 | wxPyEndAllowThreads(__tstate); | |
26073 | if (PyErr_Occurred()) SWIG_fail; | |
26074 | } | |
15afbcd0 | 26075 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); |
d14a1e28 RD |
26076 | return resultobj; |
26077 | fail: | |
26078 | return NULL; | |
26079 | } | |
26080 | ||
26081 | ||
26082 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26083 | PyObject *resultobj; | |
26084 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26085 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26086 | PyObject * obj0 = 0 ; | |
26087 | PyObject * obj1 = 0 ; | |
26088 | char *kwnames[] = { | |
26089 | (char *) "self",(char *) "dataObject", NULL | |
26090 | }; | |
26091 | ||
26092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26095 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26096 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26097 | { |
26098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26099 | (arg1)->SetDataObject(arg2); | |
26100 | ||
26101 | wxPyEndAllowThreads(__tstate); | |
26102 | if (PyErr_Occurred()) SWIG_fail; | |
26103 | } | |
26104 | Py_INCREF(Py_None); resultobj = Py_None; | |
26105 | return resultobj; | |
26106 | fail: | |
26107 | return NULL; | |
26108 | } | |
26109 | ||
26110 | ||
26111 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26112 | PyObject *resultobj; | |
26113 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
26114 | int arg2 ; |
26115 | int arg3 ; | |
d14a1e28 RD |
26116 | int arg4 ; |
26117 | int result; | |
26118 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26119 | PyObject * obj1 = 0 ; |
26120 | PyObject * obj2 = 0 ; | |
26121 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26122 | char *kwnames[] = { |
26123 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26124 | }; | |
26125 | ||
994141e6 | 26126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26129 | arg2 = (int) SWIG_AsInt(obj1); | |
26130 | if (PyErr_Occurred()) SWIG_fail; | |
26131 | arg3 = (int) SWIG_AsInt(obj2); | |
26132 | if (PyErr_Occurred()) SWIG_fail; | |
26133 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26134 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26135 | { |
26136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26137 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26138 | ||
26139 | wxPyEndAllowThreads(__tstate); | |
26140 | if (PyErr_Occurred()) SWIG_fail; | |
26141 | } | |
15afbcd0 | 26142 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26143 | return resultobj; |
26144 | fail: | |
26145 | return NULL; | |
26146 | } | |
26147 | ||
26148 | ||
26149 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26150 | PyObject *resultobj; | |
26151 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
26152 | int arg2 ; |
26153 | int arg3 ; | |
d14a1e28 RD |
26154 | int arg4 ; |
26155 | int result; | |
26156 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26157 | PyObject * obj1 = 0 ; |
26158 | PyObject * obj2 = 0 ; | |
26159 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26160 | char *kwnames[] = { |
26161 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26162 | }; | |
26163 | ||
994141e6 | 26164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26167 | arg2 = (int) SWIG_AsInt(obj1); | |
26168 | if (PyErr_Occurred()) SWIG_fail; | |
26169 | arg3 = (int) SWIG_AsInt(obj2); | |
26170 | if (PyErr_Occurred()) SWIG_fail; | |
26171 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26172 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26173 | { |
26174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26175 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26176 | ||
26177 | wxPyEndAllowThreads(__tstate); | |
26178 | if (PyErr_Occurred()) SWIG_fail; | |
26179 | } | |
15afbcd0 | 26180 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26181 | return resultobj; |
26182 | fail: | |
26183 | return NULL; | |
26184 | } | |
26185 | ||
26186 | ||
26187 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26188 | PyObject *resultobj; | |
26189 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26190 | PyObject * obj0 = 0 ; | |
26191 | char *kwnames[] = { | |
26192 | (char *) "self", NULL | |
26193 | }; | |
26194 | ||
26195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26198 | { |
26199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26200 | (arg1)->base_OnLeave(); | |
26201 | ||
26202 | wxPyEndAllowThreads(__tstate); | |
26203 | if (PyErr_Occurred()) SWIG_fail; | |
26204 | } | |
26205 | Py_INCREF(Py_None); resultobj = Py_None; | |
26206 | return resultobj; | |
26207 | fail: | |
26208 | return NULL; | |
26209 | } | |
26210 | ||
26211 | ||
26212 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26213 | PyObject *resultobj; | |
26214 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
26215 | int arg2 ; |
26216 | int arg3 ; | |
d14a1e28 RD |
26217 | bool result; |
26218 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26219 | PyObject * obj1 = 0 ; |
26220 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26221 | char *kwnames[] = { |
26222 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26223 | }; | |
26224 | ||
994141e6 | 26225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26228 | arg2 = (int) SWIG_AsInt(obj1); | |
26229 | if (PyErr_Occurred()) SWIG_fail; | |
26230 | arg3 = (int) SWIG_AsInt(obj2); | |
26231 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26232 | { |
26233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26234 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26235 | ||
26236 | wxPyEndAllowThreads(__tstate); | |
26237 | if (PyErr_Occurred()) SWIG_fail; | |
26238 | } | |
4f89f6a3 RD |
26239 | { |
26240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26241 | } | |
d14a1e28 RD |
26242 | return resultobj; |
26243 | fail: | |
26244 | return NULL; | |
26245 | } | |
26246 | ||
26247 | ||
26248 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26249 | PyObject *resultobj; | |
26250 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26251 | bool result; | |
26252 | PyObject * obj0 = 0 ; | |
26253 | char *kwnames[] = { | |
26254 | (char *) "self", NULL | |
26255 | }; | |
26256 | ||
26257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26260 | { |
26261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26262 | result = (bool)(arg1)->GetData(); | |
26263 | ||
26264 | wxPyEndAllowThreads(__tstate); | |
26265 | if (PyErr_Occurred()) SWIG_fail; | |
26266 | } | |
4f89f6a3 RD |
26267 | { |
26268 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26269 | } | |
d14a1e28 RD |
26270 | return resultobj; |
26271 | fail: | |
26272 | return NULL; | |
26273 | } | |
26274 | ||
26275 | ||
26276 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
26277 | PyObject *obj; | |
26278 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26279 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
26280 | Py_INCREF(obj); | |
26281 | return Py_BuildValue((char *)""); | |
26282 | } | |
26283 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26284 | PyObject *resultobj; | |
26285 | wxPyTextDropTarget *result; | |
26286 | char *kwnames[] = { | |
26287 | NULL | |
26288 | }; | |
26289 | ||
26290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
26291 | { | |
26292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26293 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
26294 | ||
26295 | wxPyEndAllowThreads(__tstate); | |
26296 | if (PyErr_Occurred()) SWIG_fail; | |
26297 | } | |
15afbcd0 | 26298 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); |
d14a1e28 RD |
26299 | return resultobj; |
26300 | fail: | |
26301 | return NULL; | |
26302 | } | |
26303 | ||
26304 | ||
26305 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26306 | PyObject *resultobj; | |
26307 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26308 | PyObject *arg2 = (PyObject *) 0 ; | |
26309 | PyObject *arg3 = (PyObject *) 0 ; | |
26310 | PyObject * obj0 = 0 ; | |
26311 | PyObject * obj1 = 0 ; | |
26312 | PyObject * obj2 = 0 ; | |
26313 | char *kwnames[] = { | |
26314 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26315 | }; | |
26316 | ||
26317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26320 | arg2 = obj1; |
26321 | arg3 = obj2; | |
26322 | { | |
26323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26324 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26325 | ||
26326 | wxPyEndAllowThreads(__tstate); | |
26327 | if (PyErr_Occurred()) SWIG_fail; | |
26328 | } | |
26329 | Py_INCREF(Py_None); resultobj = Py_None; | |
26330 | return resultobj; | |
26331 | fail: | |
26332 | return NULL; | |
26333 | } | |
26334 | ||
26335 | ||
26336 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26337 | PyObject *resultobj; | |
26338 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26339 | int arg2 ; |
26340 | int arg3 ; | |
d14a1e28 RD |
26341 | int arg4 ; |
26342 | int result; | |
26343 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26344 | PyObject * obj1 = 0 ; |
26345 | PyObject * obj2 = 0 ; | |
26346 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26347 | char *kwnames[] = { |
26348 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26349 | }; | |
26350 | ||
994141e6 | 26351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26354 | arg2 = (int) SWIG_AsInt(obj1); | |
26355 | if (PyErr_Occurred()) SWIG_fail; | |
26356 | arg3 = (int) SWIG_AsInt(obj2); | |
26357 | if (PyErr_Occurred()) SWIG_fail; | |
26358 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26359 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26360 | { |
26361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26362 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26363 | ||
26364 | wxPyEndAllowThreads(__tstate); | |
26365 | if (PyErr_Occurred()) SWIG_fail; | |
26366 | } | |
15afbcd0 | 26367 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26368 | return resultobj; |
26369 | fail: | |
26370 | return NULL; | |
26371 | } | |
26372 | ||
26373 | ||
26374 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26375 | PyObject *resultobj; | |
26376 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26377 | int arg2 ; |
26378 | int arg3 ; | |
d14a1e28 RD |
26379 | int arg4 ; |
26380 | int result; | |
26381 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26382 | PyObject * obj1 = 0 ; |
26383 | PyObject * obj2 = 0 ; | |
26384 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26385 | char *kwnames[] = { |
26386 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26387 | }; | |
26388 | ||
994141e6 | 26389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26392 | arg2 = (int) SWIG_AsInt(obj1); | |
26393 | if (PyErr_Occurred()) SWIG_fail; | |
26394 | arg3 = (int) SWIG_AsInt(obj2); | |
26395 | if (PyErr_Occurred()) SWIG_fail; | |
26396 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26397 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26398 | { |
26399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26400 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26401 | ||
26402 | wxPyEndAllowThreads(__tstate); | |
26403 | if (PyErr_Occurred()) SWIG_fail; | |
26404 | } | |
15afbcd0 | 26405 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26406 | return resultobj; |
26407 | fail: | |
26408 | return NULL; | |
26409 | } | |
26410 | ||
26411 | ||
26412 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26413 | PyObject *resultobj; | |
26414 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26415 | PyObject * obj0 = 0 ; | |
26416 | char *kwnames[] = { | |
26417 | (char *) "self", NULL | |
26418 | }; | |
26419 | ||
26420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26423 | { |
26424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26425 | (arg1)->base_OnLeave(); | |
26426 | ||
26427 | wxPyEndAllowThreads(__tstate); | |
26428 | if (PyErr_Occurred()) SWIG_fail; | |
26429 | } | |
26430 | Py_INCREF(Py_None); resultobj = Py_None; | |
26431 | return resultobj; | |
26432 | fail: | |
26433 | return NULL; | |
26434 | } | |
26435 | ||
26436 | ||
26437 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26438 | PyObject *resultobj; | |
26439 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26440 | int arg2 ; |
26441 | int arg3 ; | |
d14a1e28 RD |
26442 | bool result; |
26443 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26444 | PyObject * obj1 = 0 ; |
26445 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26446 | char *kwnames[] = { |
26447 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26448 | }; | |
26449 | ||
994141e6 | 26450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26453 | arg2 = (int) SWIG_AsInt(obj1); | |
26454 | if (PyErr_Occurred()) SWIG_fail; | |
26455 | arg3 = (int) SWIG_AsInt(obj2); | |
26456 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26457 | { |
26458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26459 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26460 | ||
26461 | wxPyEndAllowThreads(__tstate); | |
26462 | if (PyErr_Occurred()) SWIG_fail; | |
26463 | } | |
4f89f6a3 RD |
26464 | { |
26465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26466 | } | |
d14a1e28 RD |
26467 | return resultobj; |
26468 | fail: | |
26469 | return NULL; | |
26470 | } | |
26471 | ||
26472 | ||
26473 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26474 | PyObject *resultobj; | |
26475 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26476 | int arg2 ; |
26477 | int arg3 ; | |
d14a1e28 RD |
26478 | int arg4 ; |
26479 | int result; | |
26480 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26481 | PyObject * obj1 = 0 ; |
26482 | PyObject * obj2 = 0 ; | |
26483 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26484 | char *kwnames[] = { |
26485 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26486 | }; | |
26487 | ||
994141e6 | 26488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26491 | arg2 = (int) SWIG_AsInt(obj1); | |
26492 | if (PyErr_Occurred()) SWIG_fail; | |
26493 | arg3 = (int) SWIG_AsInt(obj2); | |
26494 | if (PyErr_Occurred()) SWIG_fail; | |
26495 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26496 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26497 | { |
26498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26499 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26500 | ||
26501 | wxPyEndAllowThreads(__tstate); | |
26502 | if (PyErr_Occurred()) SWIG_fail; | |
26503 | } | |
15afbcd0 | 26504 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26505 | return resultobj; |
26506 | fail: | |
26507 | return NULL; | |
26508 | } | |
26509 | ||
26510 | ||
26511 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26512 | PyObject *obj; | |
26513 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26514 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
26515 | Py_INCREF(obj); | |
26516 | return Py_BuildValue((char *)""); | |
26517 | } | |
26518 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26519 | PyObject *resultobj; | |
26520 | wxPyFileDropTarget *result; | |
26521 | char *kwnames[] = { | |
26522 | NULL | |
26523 | }; | |
26524 | ||
26525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
26526 | { | |
26527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26528 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
26529 | ||
26530 | wxPyEndAllowThreads(__tstate); | |
26531 | if (PyErr_Occurred()) SWIG_fail; | |
26532 | } | |
15afbcd0 | 26533 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); |
d14a1e28 RD |
26534 | return resultobj; |
26535 | fail: | |
26536 | return NULL; | |
26537 | } | |
26538 | ||
26539 | ||
26540 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26541 | PyObject *resultobj; | |
26542 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26543 | PyObject *arg2 = (PyObject *) 0 ; | |
26544 | PyObject *arg3 = (PyObject *) 0 ; | |
26545 | PyObject * obj0 = 0 ; | |
26546 | PyObject * obj1 = 0 ; | |
26547 | PyObject * obj2 = 0 ; | |
26548 | char *kwnames[] = { | |
26549 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26550 | }; | |
26551 | ||
26552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26555 | arg2 = obj1; |
26556 | arg3 = obj2; | |
26557 | { | |
26558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26559 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26560 | ||
26561 | wxPyEndAllowThreads(__tstate); | |
26562 | if (PyErr_Occurred()) SWIG_fail; | |
26563 | } | |
26564 | Py_INCREF(Py_None); resultobj = Py_None; | |
26565 | return resultobj; | |
26566 | fail: | |
26567 | return NULL; | |
26568 | } | |
26569 | ||
26570 | ||
26571 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26572 | PyObject *resultobj; | |
26573 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26574 | int arg2 ; |
26575 | int arg3 ; | |
d14a1e28 RD |
26576 | int arg4 ; |
26577 | int result; | |
26578 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26579 | PyObject * obj1 = 0 ; |
26580 | PyObject * obj2 = 0 ; | |
26581 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26582 | char *kwnames[] = { |
26583 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26584 | }; | |
26585 | ||
994141e6 | 26586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26589 | arg2 = (int) SWIG_AsInt(obj1); | |
26590 | if (PyErr_Occurred()) SWIG_fail; | |
26591 | arg3 = (int) SWIG_AsInt(obj2); | |
26592 | if (PyErr_Occurred()) SWIG_fail; | |
26593 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26594 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26595 | { |
26596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26597 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26598 | ||
26599 | wxPyEndAllowThreads(__tstate); | |
26600 | if (PyErr_Occurred()) SWIG_fail; | |
26601 | } | |
15afbcd0 | 26602 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26603 | return resultobj; |
26604 | fail: | |
26605 | return NULL; | |
26606 | } | |
26607 | ||
26608 | ||
26609 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26610 | PyObject *resultobj; | |
26611 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26612 | int arg2 ; |
26613 | int arg3 ; | |
d14a1e28 RD |
26614 | int arg4 ; |
26615 | int result; | |
26616 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26617 | PyObject * obj1 = 0 ; |
26618 | PyObject * obj2 = 0 ; | |
26619 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26620 | char *kwnames[] = { |
26621 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26622 | }; | |
26623 | ||
994141e6 | 26624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26627 | arg2 = (int) SWIG_AsInt(obj1); | |
26628 | if (PyErr_Occurred()) SWIG_fail; | |
26629 | arg3 = (int) SWIG_AsInt(obj2); | |
26630 | if (PyErr_Occurred()) SWIG_fail; | |
26631 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26632 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26633 | { |
26634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26635 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26636 | ||
26637 | wxPyEndAllowThreads(__tstate); | |
26638 | if (PyErr_Occurred()) SWIG_fail; | |
26639 | } | |
15afbcd0 | 26640 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26641 | return resultobj; |
26642 | fail: | |
26643 | return NULL; | |
26644 | } | |
26645 | ||
26646 | ||
26647 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26648 | PyObject *resultobj; | |
26649 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26650 | PyObject * obj0 = 0 ; | |
26651 | char *kwnames[] = { | |
26652 | (char *) "self", NULL | |
26653 | }; | |
26654 | ||
26655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26658 | { |
26659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26660 | (arg1)->base_OnLeave(); | |
26661 | ||
26662 | wxPyEndAllowThreads(__tstate); | |
26663 | if (PyErr_Occurred()) SWIG_fail; | |
26664 | } | |
26665 | Py_INCREF(Py_None); resultobj = Py_None; | |
26666 | return resultobj; | |
26667 | fail: | |
26668 | return NULL; | |
26669 | } | |
26670 | ||
26671 | ||
26672 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26673 | PyObject *resultobj; | |
26674 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26675 | int arg2 ; |
26676 | int arg3 ; | |
d14a1e28 RD |
26677 | bool result; |
26678 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26679 | PyObject * obj1 = 0 ; |
26680 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26681 | char *kwnames[] = { |
26682 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26683 | }; | |
26684 | ||
994141e6 | 26685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26688 | arg2 = (int) SWIG_AsInt(obj1); | |
26689 | if (PyErr_Occurred()) SWIG_fail; | |
26690 | arg3 = (int) SWIG_AsInt(obj2); | |
26691 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26692 | { |
26693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26694 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
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_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26709 | PyObject *resultobj; | |
26710 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26711 | int arg2 ; |
26712 | int arg3 ; | |
d14a1e28 RD |
26713 | int arg4 ; |
26714 | int result; | |
26715 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26716 | PyObject * obj1 = 0 ; |
26717 | PyObject * obj2 = 0 ; | |
26718 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26719 | char *kwnames[] = { |
26720 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26721 | }; | |
26722 | ||
994141e6 | 26723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26726 | arg2 = (int) SWIG_AsInt(obj1); | |
26727 | if (PyErr_Occurred()) SWIG_fail; | |
26728 | arg3 = (int) SWIG_AsInt(obj2); | |
26729 | if (PyErr_Occurred()) SWIG_fail; | |
26730 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26731 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26732 | { |
26733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26734 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26735 | ||
26736 | wxPyEndAllowThreads(__tstate); | |
26737 | if (PyErr_Occurred()) SWIG_fail; | |
26738 | } | |
15afbcd0 | 26739 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26740 | return resultobj; |
26741 | fail: | |
26742 | return NULL; | |
26743 | } | |
26744 | ||
26745 | ||
26746 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26747 | PyObject *obj; | |
26748 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26749 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
26750 | Py_INCREF(obj); | |
26751 | return Py_BuildValue((char *)""); | |
26752 | } | |
26753 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26754 | PyObject *resultobj; | |
26755 | wxClipboard *result; | |
26756 | char *kwnames[] = { | |
26757 | NULL | |
26758 | }; | |
26759 | ||
26760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
26761 | { | |
26762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26763 | result = (wxClipboard *)new wxClipboard(); | |
26764 | ||
26765 | wxPyEndAllowThreads(__tstate); | |
26766 | if (PyErr_Occurred()) SWIG_fail; | |
26767 | } | |
15afbcd0 | 26768 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); |
d14a1e28 RD |
26769 | return resultobj; |
26770 | fail: | |
26771 | return NULL; | |
26772 | } | |
26773 | ||
26774 | ||
26775 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26776 | PyObject *resultobj; | |
26777 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26778 | PyObject * obj0 = 0 ; | |
26779 | char *kwnames[] = { | |
26780 | (char *) "self", NULL | |
26781 | }; | |
26782 | ||
26783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26786 | { |
26787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26788 | delete arg1; | |
26789 | ||
26790 | wxPyEndAllowThreads(__tstate); | |
26791 | if (PyErr_Occurred()) SWIG_fail; | |
26792 | } | |
26793 | Py_INCREF(Py_None); resultobj = Py_None; | |
26794 | return resultobj; | |
26795 | fail: | |
26796 | return NULL; | |
26797 | } | |
26798 | ||
26799 | ||
26800 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26801 | PyObject *resultobj; | |
26802 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26803 | bool result; | |
26804 | PyObject * obj0 = 0 ; | |
26805 | char *kwnames[] = { | |
26806 | (char *) "self", NULL | |
26807 | }; | |
26808 | ||
26809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26812 | { |
26813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26814 | result = (bool)(arg1)->Open(); | |
26815 | ||
26816 | wxPyEndAllowThreads(__tstate); | |
26817 | if (PyErr_Occurred()) SWIG_fail; | |
26818 | } | |
4f89f6a3 RD |
26819 | { |
26820 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26821 | } | |
d14a1e28 RD |
26822 | return resultobj; |
26823 | fail: | |
26824 | return NULL; | |
26825 | } | |
26826 | ||
26827 | ||
26828 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26829 | PyObject *resultobj; | |
26830 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26831 | PyObject * obj0 = 0 ; | |
26832 | char *kwnames[] = { | |
26833 | (char *) "self", NULL | |
26834 | }; | |
26835 | ||
26836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26839 | { |
26840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26841 | (arg1)->Close(); | |
26842 | ||
26843 | wxPyEndAllowThreads(__tstate); | |
26844 | if (PyErr_Occurred()) SWIG_fail; | |
26845 | } | |
26846 | Py_INCREF(Py_None); resultobj = Py_None; | |
26847 | return resultobj; | |
26848 | fail: | |
26849 | return NULL; | |
26850 | } | |
26851 | ||
26852 | ||
26853 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26854 | PyObject *resultobj; | |
26855 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26856 | bool result; | |
26857 | PyObject * obj0 = 0 ; | |
26858 | char *kwnames[] = { | |
26859 | (char *) "self", NULL | |
26860 | }; | |
26861 | ||
26862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26865 | { |
26866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26867 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
26868 | ||
26869 | wxPyEndAllowThreads(__tstate); | |
26870 | if (PyErr_Occurred()) SWIG_fail; | |
26871 | } | |
4f89f6a3 RD |
26872 | { |
26873 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26874 | } | |
d14a1e28 RD |
26875 | return resultobj; |
26876 | fail: | |
26877 | return NULL; | |
26878 | } | |
26879 | ||
26880 | ||
26881 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26882 | PyObject *resultobj; | |
26883 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26884 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26885 | bool result; | |
26886 | PyObject * obj0 = 0 ; | |
26887 | PyObject * obj1 = 0 ; | |
26888 | char *kwnames[] = { | |
26889 | (char *) "self",(char *) "data", NULL | |
26890 | }; | |
26891 | ||
26892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26895 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26896 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26897 | { |
26898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26899 | result = (bool)(arg1)->AddData(arg2); | |
26900 | ||
26901 | wxPyEndAllowThreads(__tstate); | |
26902 | if (PyErr_Occurred()) SWIG_fail; | |
26903 | } | |
4f89f6a3 RD |
26904 | { |
26905 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26906 | } | |
d14a1e28 RD |
26907 | return resultobj; |
26908 | fail: | |
26909 | return NULL; | |
26910 | } | |
26911 | ||
26912 | ||
26913 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26914 | PyObject *resultobj; | |
26915 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26916 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26917 | bool result; | |
26918 | PyObject * obj0 = 0 ; | |
26919 | PyObject * obj1 = 0 ; | |
26920 | char *kwnames[] = { | |
26921 | (char *) "self",(char *) "data", NULL | |
26922 | }; | |
26923 | ||
26924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26927 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26928 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26929 | { |
26930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26931 | result = (bool)(arg1)->SetData(arg2); | |
26932 | ||
26933 | wxPyEndAllowThreads(__tstate); | |
26934 | if (PyErr_Occurred()) SWIG_fail; | |
26935 | } | |
4f89f6a3 RD |
26936 | { |
26937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26938 | } | |
d14a1e28 RD |
26939 | return resultobj; |
26940 | fail: | |
26941 | return NULL; | |
26942 | } | |
26943 | ||
26944 | ||
26945 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26946 | PyObject *resultobj; | |
26947 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26948 | wxDataFormat *arg2 = 0 ; | |
26949 | bool result; | |
26950 | PyObject * obj0 = 0 ; | |
26951 | PyObject * obj1 = 0 ; | |
26952 | char *kwnames[] = { | |
26953 | (char *) "self",(char *) "format", NULL | |
26954 | }; | |
26955 | ||
26956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26959 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
26960 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26961 | SWIG_fail; | |
d14a1e28 | 26962 | if (arg2 == NULL) { |
15afbcd0 RD |
26963 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26964 | SWIG_fail; | |
d14a1e28 RD |
26965 | } |
26966 | { | |
26967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26968 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
26969 | ||
26970 | wxPyEndAllowThreads(__tstate); | |
26971 | if (PyErr_Occurred()) SWIG_fail; | |
26972 | } | |
4f89f6a3 RD |
26973 | { |
26974 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26975 | } | |
d14a1e28 RD |
26976 | return resultobj; |
26977 | fail: | |
26978 | return NULL; | |
26979 | } | |
26980 | ||
26981 | ||
26982 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26983 | PyObject *resultobj; | |
26984 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26985 | wxDataObject *arg2 = 0 ; | |
26986 | bool result; | |
26987 | PyObject * obj0 = 0 ; | |
26988 | PyObject * obj1 = 0 ; | |
26989 | char *kwnames[] = { | |
26990 | (char *) "self",(char *) "data", NULL | |
26991 | }; | |
26992 | ||
26993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26996 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26997 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26998 | SWIG_fail; | |
d14a1e28 | 26999 | if (arg2 == NULL) { |
15afbcd0 RD |
27000 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27001 | SWIG_fail; | |
d14a1e28 RD |
27002 | } |
27003 | { | |
27004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27005 | result = (bool)(arg1)->GetData(*arg2); | |
27006 | ||
27007 | wxPyEndAllowThreads(__tstate); | |
27008 | if (PyErr_Occurred()) SWIG_fail; | |
27009 | } | |
4f89f6a3 RD |
27010 | { |
27011 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27012 | } | |
d14a1e28 RD |
27013 | return resultobj; |
27014 | fail: | |
27015 | return NULL; | |
27016 | } | |
27017 | ||
27018 | ||
27019 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27020 | PyObject *resultobj; | |
27021 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27022 | PyObject * obj0 = 0 ; | |
27023 | char *kwnames[] = { | |
27024 | (char *) "self", NULL | |
27025 | }; | |
27026 | ||
27027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27030 | { |
27031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27032 | (arg1)->Clear(); | |
27033 | ||
27034 | wxPyEndAllowThreads(__tstate); | |
27035 | if (PyErr_Occurred()) SWIG_fail; | |
27036 | } | |
27037 | Py_INCREF(Py_None); resultobj = Py_None; | |
27038 | return resultobj; | |
27039 | fail: | |
27040 | return NULL; | |
27041 | } | |
27042 | ||
27043 | ||
27044 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27045 | PyObject *resultobj; | |
27046 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27047 | bool result; | |
27048 | PyObject * obj0 = 0 ; | |
27049 | char *kwnames[] = { | |
27050 | (char *) "self", NULL | |
27051 | }; | |
27052 | ||
27053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27056 | { |
27057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27058 | result = (bool)(arg1)->Flush(); | |
27059 | ||
27060 | wxPyEndAllowThreads(__tstate); | |
27061 | if (PyErr_Occurred()) SWIG_fail; | |
27062 | } | |
4f89f6a3 RD |
27063 | { |
27064 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27065 | } | |
d14a1e28 RD |
27066 | return resultobj; |
27067 | fail: | |
27068 | return NULL; | |
27069 | } | |
27070 | ||
27071 | ||
27072 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27073 | PyObject *resultobj; | |
27074 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
fcafa8a9 | 27075 | bool arg2 = (bool) True ; |
d14a1e28 RD |
27076 | PyObject * obj0 = 0 ; |
27077 | PyObject * obj1 = 0 ; | |
27078 | char *kwnames[] = { | |
27079 | (char *) "self",(char *) "primary", NULL | |
27080 | }; | |
27081 | ||
27082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 27085 | if (obj1) { |
15afbcd0 RD |
27086 | arg2 = (bool) SWIG_AsBool(obj1); |
27087 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27088 | } |
27089 | { | |
27090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27091 | (arg1)->UsePrimarySelection(arg2); | |
27092 | ||
27093 | wxPyEndAllowThreads(__tstate); | |
27094 | if (PyErr_Occurred()) SWIG_fail; | |
27095 | } | |
27096 | Py_INCREF(Py_None); resultobj = Py_None; | |
27097 | return resultobj; | |
27098 | fail: | |
27099 | return NULL; | |
27100 | } | |
27101 | ||
27102 | ||
27103 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { | |
27104 | PyObject *obj; | |
27105 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27106 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
27107 | Py_INCREF(obj); | |
27108 | return Py_BuildValue((char *)""); | |
27109 | } | |
27110 | static int _wrap_TheClipboard_set(PyObject *_val) { | |
27111 | PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); | |
27112 | return 1; | |
27113 | } | |
27114 | ||
27115 | ||
27116 | static PyObject *_wrap_TheClipboard_get() { | |
27117 | PyObject *pyobj; | |
27118 | ||
15afbcd0 | 27119 | pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0); |
d14a1e28 RD |
27120 | return pyobj; |
27121 | } | |
27122 | ||
27123 | ||
27124 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27125 | PyObject *resultobj; | |
27126 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
27127 | wxClipboardLocker *result; | |
27128 | PyObject * obj0 = 0 ; | |
27129 | char *kwnames[] = { | |
27130 | (char *) "clipboard", NULL | |
27131 | }; | |
27132 | ||
27133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27134 | if (obj0) { | |
15afbcd0 RD |
27135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27137 | } |
27138 | { | |
27139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27140 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
27141 | ||
27142 | wxPyEndAllowThreads(__tstate); | |
27143 | if (PyErr_Occurred()) SWIG_fail; | |
27144 | } | |
15afbcd0 | 27145 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); |
d14a1e28 RD |
27146 | return resultobj; |
27147 | fail: | |
27148 | return NULL; | |
27149 | } | |
27150 | ||
27151 | ||
27152 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27153 | PyObject *resultobj; | |
27154 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27155 | PyObject * obj0 = 0 ; | |
27156 | char *kwnames[] = { | |
27157 | (char *) "self", NULL | |
27158 | }; | |
27159 | ||
27160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, |
27162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27163 | { |
27164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27165 | delete arg1; | |
27166 | ||
27167 | wxPyEndAllowThreads(__tstate); | |
27168 | if (PyErr_Occurred()) SWIG_fail; | |
27169 | } | |
27170 | Py_INCREF(Py_None); resultobj = Py_None; | |
27171 | return resultobj; | |
27172 | fail: | |
27173 | return NULL; | |
27174 | } | |
27175 | ||
27176 | ||
27177 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27178 | PyObject *resultobj; | |
27179 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27180 | bool result; | |
27181 | PyObject * obj0 = 0 ; | |
27182 | char *kwnames[] = { | |
27183 | (char *) "self", NULL | |
27184 | }; | |
27185 | ||
27186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, |
27188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27189 | { |
27190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27191 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
27192 | ||
27193 | wxPyEndAllowThreads(__tstate); | |
27194 | if (PyErr_Occurred()) SWIG_fail; | |
27195 | } | |
4f89f6a3 RD |
27196 | { |
27197 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27198 | } | |
d14a1e28 RD |
27199 | return resultobj; |
27200 | fail: | |
27201 | return NULL; | |
27202 | } | |
27203 | ||
27204 | ||
27205 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
27206 | PyObject *obj; | |
27207 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27208 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
27209 | Py_INCREF(obj); | |
27210 | return Py_BuildValue((char *)""); | |
27211 | } | |
4276dc52 RD |
27212 | static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
27213 | PyObject *resultobj; | |
27214 | int arg1 = (int) 0 ; | |
27215 | int arg2 = (int) 0 ; | |
27216 | int arg3 = (int) 0 ; | |
27217 | int arg4 = (int) 0 ; | |
27218 | wxVideoMode *result; | |
27219 | PyObject * obj0 = 0 ; | |
27220 | PyObject * obj1 = 0 ; | |
27221 | PyObject * obj2 = 0 ; | |
27222 | PyObject * obj3 = 0 ; | |
27223 | char *kwnames[] = { | |
27224 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
27225 | }; | |
27226 | ||
27227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27228 | if (obj0) { | |
27229 | arg1 = (int) SWIG_AsInt(obj0); | |
27230 | if (PyErr_Occurred()) SWIG_fail; | |
27231 | } | |
27232 | if (obj1) { | |
27233 | arg2 = (int) SWIG_AsInt(obj1); | |
27234 | if (PyErr_Occurred()) SWIG_fail; | |
27235 | } | |
27236 | if (obj2) { | |
27237 | arg3 = (int) SWIG_AsInt(obj2); | |
27238 | if (PyErr_Occurred()) SWIG_fail; | |
27239 | } | |
27240 | if (obj3) { | |
27241 | arg4 = (int) SWIG_AsInt(obj3); | |
27242 | if (PyErr_Occurred()) SWIG_fail; | |
27243 | } | |
27244 | { | |
27245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27246 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
27247 | ||
27248 | wxPyEndAllowThreads(__tstate); | |
27249 | if (PyErr_Occurred()) SWIG_fail; | |
27250 | } | |
27251 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
27252 | return resultobj; | |
27253 | fail: | |
27254 | return NULL; | |
27255 | } | |
27256 | ||
27257 | ||
27258 | static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27259 | PyObject *resultobj; | |
27260 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27261 | PyObject * obj0 = 0 ; | |
27262 | char *kwnames[] = { | |
27263 | (char *) "self", NULL | |
27264 | }; | |
27265 | ||
27266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
27267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27269 | { | |
27270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27271 | delete arg1; | |
27272 | ||
27273 | wxPyEndAllowThreads(__tstate); | |
27274 | if (PyErr_Occurred()) SWIG_fail; | |
27275 | } | |
27276 | Py_INCREF(Py_None); resultobj = Py_None; | |
27277 | return resultobj; | |
27278 | fail: | |
27279 | return NULL; | |
27280 | } | |
27281 | ||
27282 | ||
27283 | static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27284 | PyObject *resultobj; | |
27285 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27286 | wxVideoMode *arg2 = 0 ; | |
27287 | bool result; | |
27288 | PyObject * obj0 = 0 ; | |
27289 | PyObject * obj1 = 0 ; | |
27290 | char *kwnames[] = { | |
27291 | (char *) "self",(char *) "other", NULL | |
27292 | }; | |
27293 | ||
27294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
27295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27297 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27298 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27299 | SWIG_fail; | |
27300 | if (arg2 == NULL) { | |
27301 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27302 | SWIG_fail; | |
27303 | } | |
27304 | { | |
27305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27306 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
27307 | ||
27308 | wxPyEndAllowThreads(__tstate); | |
27309 | if (PyErr_Occurred()) SWIG_fail; | |
27310 | } | |
4f89f6a3 RD |
27311 | { |
27312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27313 | } | |
4276dc52 RD |
27314 | return resultobj; |
27315 | fail: | |
27316 | return NULL; | |
27317 | } | |
27318 | ||
27319 | ||
27320 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27321 | PyObject *resultobj; | |
27322 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27323 | int result; | |
27324 | PyObject * obj0 = 0 ; | |
27325 | char *kwnames[] = { | |
27326 | (char *) "self", NULL | |
27327 | }; | |
27328 | ||
27329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
27330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27332 | { | |
27333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27334 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
27335 | ||
27336 | wxPyEndAllowThreads(__tstate); | |
27337 | if (PyErr_Occurred()) SWIG_fail; | |
27338 | } | |
27339 | resultobj = SWIG_FromInt((int)result); | |
27340 | return resultobj; | |
27341 | fail: | |
27342 | return NULL; | |
27343 | } | |
27344 | ||
27345 | ||
27346 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27347 | PyObject *resultobj; | |
27348 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27349 | int result; | |
27350 | PyObject * obj0 = 0 ; | |
27351 | char *kwnames[] = { | |
27352 | (char *) "self", NULL | |
27353 | }; | |
27354 | ||
27355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
27356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27358 | { | |
27359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27360 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
27361 | ||
27362 | wxPyEndAllowThreads(__tstate); | |
27363 | if (PyErr_Occurred()) SWIG_fail; | |
27364 | } | |
27365 | resultobj = SWIG_FromInt((int)result); | |
27366 | return resultobj; | |
27367 | fail: | |
27368 | return NULL; | |
27369 | } | |
27370 | ||
27371 | ||
27372 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27373 | PyObject *resultobj; | |
27374 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27375 | int result; | |
27376 | PyObject * obj0 = 0 ; | |
27377 | char *kwnames[] = { | |
27378 | (char *) "self", NULL | |
27379 | }; | |
27380 | ||
27381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
27382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27384 | { | |
27385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27386 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
27387 | ||
27388 | wxPyEndAllowThreads(__tstate); | |
27389 | if (PyErr_Occurred()) SWIG_fail; | |
27390 | } | |
27391 | resultobj = SWIG_FromInt((int)result); | |
27392 | return resultobj; | |
27393 | fail: | |
27394 | return NULL; | |
27395 | } | |
27396 | ||
27397 | ||
27398 | static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27399 | PyObject *resultobj; | |
27400 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27401 | bool result; | |
27402 | PyObject * obj0 = 0 ; | |
27403 | char *kwnames[] = { | |
27404 | (char *) "self", NULL | |
27405 | }; | |
27406 | ||
27407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
27408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27410 | { | |
27411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27412 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
27413 | ||
27414 | wxPyEndAllowThreads(__tstate); | |
27415 | if (PyErr_Occurred()) SWIG_fail; | |
27416 | } | |
4f89f6a3 RD |
27417 | { |
27418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27419 | } | |
4276dc52 RD |
27420 | return resultobj; |
27421 | fail: | |
27422 | return NULL; | |
27423 | } | |
27424 | ||
27425 | ||
27426 | static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27427 | PyObject *resultobj; | |
27428 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27429 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27430 | bool result; | |
27431 | PyObject * obj0 = 0 ; | |
27432 | PyObject * obj1 = 0 ; | |
27433 | char *kwnames[] = { | |
27434 | (char *) "self",(char *) "other", NULL | |
27435 | }; | |
27436 | ||
27437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
27438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27440 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27442 | { | |
27443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27444 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
27445 | ||
27446 | wxPyEndAllowThreads(__tstate); | |
27447 | if (PyErr_Occurred()) SWIG_fail; | |
27448 | } | |
4f89f6a3 RD |
27449 | { |
27450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27451 | } | |
4276dc52 RD |
27452 | return resultobj; |
27453 | fail: | |
27454 | return NULL; | |
27455 | } | |
27456 | ||
27457 | ||
27458 | static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27459 | PyObject *resultobj; | |
27460 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27461 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27462 | bool result; | |
27463 | PyObject * obj0 = 0 ; | |
27464 | PyObject * obj1 = 0 ; | |
27465 | char *kwnames[] = { | |
27466 | (char *) "self",(char *) "other", NULL | |
27467 | }; | |
27468 | ||
27469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
27470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27472 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27474 | { | |
27475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27476 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
27477 | ||
27478 | wxPyEndAllowThreads(__tstate); | |
27479 | if (PyErr_Occurred()) SWIG_fail; | |
27480 | } | |
4f89f6a3 RD |
27481 | { |
27482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27483 | } | |
4276dc52 RD |
27484 | return resultobj; |
27485 | fail: | |
27486 | return NULL; | |
27487 | } | |
27488 | ||
27489 | ||
27490 | static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27491 | PyObject *resultobj; | |
27492 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27493 | int arg2 ; | |
27494 | PyObject * obj0 = 0 ; | |
27495 | PyObject * obj1 = 0 ; | |
27496 | char *kwnames[] = { | |
27497 | (char *) "self",(char *) "w", NULL | |
27498 | }; | |
27499 | ||
27500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
27501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27503 | arg2 = (int) SWIG_AsInt(obj1); | |
27504 | if (PyErr_Occurred()) SWIG_fail; | |
27505 | if (arg1) (arg1)->w = arg2; | |
27506 | ||
27507 | Py_INCREF(Py_None); resultobj = Py_None; | |
27508 | return resultobj; | |
27509 | fail: | |
27510 | return NULL; | |
27511 | } | |
27512 | ||
27513 | ||
27514 | static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27515 | PyObject *resultobj; | |
27516 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27517 | int result; | |
27518 | PyObject * obj0 = 0 ; | |
27519 | char *kwnames[] = { | |
27520 | (char *) "self", NULL | |
27521 | }; | |
27522 | ||
27523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
27524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27526 | result = (int) ((arg1)->w); | |
27527 | ||
27528 | resultobj = SWIG_FromInt((int)result); | |
27529 | return resultobj; | |
27530 | fail: | |
27531 | return NULL; | |
27532 | } | |
27533 | ||
27534 | ||
27535 | static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27536 | PyObject *resultobj; | |
27537 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27538 | int arg2 ; | |
27539 | PyObject * obj0 = 0 ; | |
27540 | PyObject * obj1 = 0 ; | |
27541 | char *kwnames[] = { | |
27542 | (char *) "self",(char *) "h", NULL | |
27543 | }; | |
27544 | ||
27545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
27546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27548 | arg2 = (int) SWIG_AsInt(obj1); | |
27549 | if (PyErr_Occurred()) SWIG_fail; | |
27550 | if (arg1) (arg1)->h = arg2; | |
27551 | ||
27552 | Py_INCREF(Py_None); resultobj = Py_None; | |
27553 | return resultobj; | |
27554 | fail: | |
27555 | return NULL; | |
27556 | } | |
27557 | ||
27558 | ||
27559 | static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27560 | PyObject *resultobj; | |
27561 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27562 | int result; | |
27563 | PyObject * obj0 = 0 ; | |
27564 | char *kwnames[] = { | |
27565 | (char *) "self", NULL | |
27566 | }; | |
27567 | ||
27568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
27569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27571 | result = (int) ((arg1)->h); | |
27572 | ||
27573 | resultobj = SWIG_FromInt((int)result); | |
27574 | return resultobj; | |
27575 | fail: | |
27576 | return NULL; | |
27577 | } | |
27578 | ||
27579 | ||
27580 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27581 | PyObject *resultobj; | |
27582 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27583 | int arg2 ; | |
27584 | PyObject * obj0 = 0 ; | |
27585 | PyObject * obj1 = 0 ; | |
27586 | char *kwnames[] = { | |
27587 | (char *) "self",(char *) "bpp", NULL | |
27588 | }; | |
27589 | ||
27590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
27591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27593 | arg2 = (int) SWIG_AsInt(obj1); | |
27594 | if (PyErr_Occurred()) SWIG_fail; | |
27595 | if (arg1) (arg1)->bpp = arg2; | |
27596 | ||
27597 | Py_INCREF(Py_None); resultobj = Py_None; | |
27598 | return resultobj; | |
27599 | fail: | |
27600 | return NULL; | |
27601 | } | |
27602 | ||
27603 | ||
27604 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27605 | PyObject *resultobj; | |
27606 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27607 | int result; | |
27608 | PyObject * obj0 = 0 ; | |
27609 | char *kwnames[] = { | |
27610 | (char *) "self", NULL | |
27611 | }; | |
27612 | ||
27613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
27614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27616 | result = (int) ((arg1)->bpp); | |
27617 | ||
27618 | resultobj = SWIG_FromInt((int)result); | |
27619 | return resultobj; | |
27620 | fail: | |
27621 | return NULL; | |
27622 | } | |
27623 | ||
27624 | ||
27625 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27626 | PyObject *resultobj; | |
27627 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27628 | int arg2 ; | |
27629 | PyObject * obj0 = 0 ; | |
27630 | PyObject * obj1 = 0 ; | |
27631 | char *kwnames[] = { | |
27632 | (char *) "self",(char *) "refresh", NULL | |
27633 | }; | |
27634 | ||
27635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
27636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27638 | arg2 = (int) SWIG_AsInt(obj1); | |
27639 | if (PyErr_Occurred()) SWIG_fail; | |
27640 | if (arg1) (arg1)->refresh = arg2; | |
27641 | ||
27642 | Py_INCREF(Py_None); resultobj = Py_None; | |
27643 | return resultobj; | |
27644 | fail: | |
27645 | return NULL; | |
27646 | } | |
27647 | ||
27648 | ||
27649 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27650 | PyObject *resultobj; | |
27651 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27652 | int result; | |
27653 | PyObject * obj0 = 0 ; | |
27654 | char *kwnames[] = { | |
27655 | (char *) "self", NULL | |
27656 | }; | |
27657 | ||
27658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
27659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27661 | result = (int) ((arg1)->refresh); | |
27662 | ||
27663 | resultobj = SWIG_FromInt((int)result); | |
27664 | return resultobj; | |
27665 | fail: | |
27666 | return NULL; | |
27667 | } | |
27668 | ||
27669 | ||
27670 | static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) { | |
27671 | PyObject *obj; | |
27672 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27673 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
27674 | Py_INCREF(obj); | |
27675 | return Py_BuildValue((char *)""); | |
27676 | } | |
27677 | static int _wrap_DefaultVideoMode_set(PyObject *_val) { | |
27678 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); | |
27679 | return 1; | |
27680 | } | |
27681 | ||
27682 | ||
27683 | static PyObject *_wrap_DefaultVideoMode_get() { | |
27684 | PyObject *pyobj; | |
27685 | ||
27686 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
27687 | return pyobj; | |
27688 | } | |
27689 | ||
27690 | ||
27691 | static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27692 | PyObject *resultobj; | |
27693 | size_t arg1 = (size_t) 0 ; | |
27694 | wxDisplay *result; | |
27695 | PyObject * obj0 = 0 ; | |
27696 | char *kwnames[] = { | |
27697 | (char *) "index", NULL | |
27698 | }; | |
27699 | ||
27700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
27701 | if (obj0) { | |
27702 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); | |
27703 | if (PyErr_Occurred()) SWIG_fail; | |
27704 | } | |
27705 | { | |
27706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27707 | result = (wxDisplay *)new wxDisplay(arg1); | |
27708 | ||
27709 | wxPyEndAllowThreads(__tstate); | |
27710 | if (PyErr_Occurred()) SWIG_fail; | |
27711 | } | |
27712 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
27713 | return resultobj; | |
27714 | fail: | |
27715 | return NULL; | |
27716 | } | |
27717 | ||
27718 | ||
27719 | static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27720 | PyObject *resultobj; | |
27721 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27722 | PyObject * obj0 = 0 ; | |
27723 | char *kwnames[] = { | |
27724 | (char *) "self", NULL | |
27725 | }; | |
27726 | ||
27727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
27728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27730 | { | |
27731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27732 | delete arg1; | |
27733 | ||
27734 | wxPyEndAllowThreads(__tstate); | |
27735 | if (PyErr_Occurred()) SWIG_fail; | |
27736 | } | |
27737 | Py_INCREF(Py_None); resultobj = Py_None; | |
27738 | return resultobj; | |
27739 | fail: | |
27740 | return NULL; | |
27741 | } | |
27742 | ||
27743 | ||
27744 | static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27745 | PyObject *resultobj; | |
27746 | size_t result; | |
27747 | char *kwnames[] = { | |
27748 | NULL | |
27749 | }; | |
27750 | ||
27751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
27752 | { | |
27753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27754 | result = (size_t)wxDisplay::GetCount(); | |
27755 | ||
27756 | wxPyEndAllowThreads(__tstate); | |
27757 | if (PyErr_Occurred()) SWIG_fail; | |
27758 | } | |
27759 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
27760 | return resultobj; | |
27761 | fail: | |
27762 | return NULL; | |
27763 | } | |
27764 | ||
27765 | ||
27766 | static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27767 | PyObject *resultobj; | |
27768 | wxPoint *arg1 = 0 ; | |
27769 | int result; | |
27770 | wxPoint temp1 ; | |
27771 | PyObject * obj0 = 0 ; | |
27772 | char *kwnames[] = { | |
27773 | (char *) "pt", NULL | |
27774 | }; | |
27775 | ||
27776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
27777 | { | |
27778 | arg1 = &temp1; | |
27779 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
27780 | } | |
27781 | { | |
27782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27783 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
27784 | ||
27785 | wxPyEndAllowThreads(__tstate); | |
27786 | if (PyErr_Occurred()) SWIG_fail; | |
27787 | } | |
27788 | resultobj = SWIG_FromInt((int)result); | |
27789 | return resultobj; | |
27790 | fail: | |
27791 | return NULL; | |
27792 | } | |
27793 | ||
27794 | ||
27795 | static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27796 | PyObject *resultobj; | |
27797 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27798 | int result; | |
27799 | PyObject * obj0 = 0 ; | |
27800 | char *kwnames[] = { | |
27801 | (char *) "window", NULL | |
27802 | }; | |
27803 | ||
27804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
27805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27807 | { | |
27808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27809 | result = (int)Display_GetFromWindow(arg1); | |
27810 | ||
27811 | wxPyEndAllowThreads(__tstate); | |
27812 | if (PyErr_Occurred()) SWIG_fail; | |
27813 | } | |
27814 | resultobj = SWIG_FromInt((int)result); | |
27815 | return resultobj; | |
27816 | fail: | |
27817 | return NULL; | |
27818 | } | |
27819 | ||
27820 | ||
27821 | static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27822 | PyObject *resultobj; | |
27823 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27824 | bool result; | |
27825 | PyObject * obj0 = 0 ; | |
27826 | char *kwnames[] = { | |
27827 | (char *) "self", NULL | |
27828 | }; | |
27829 | ||
27830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
27831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27833 | { | |
27834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27835 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
27836 | ||
27837 | wxPyEndAllowThreads(__tstate); | |
27838 | if (PyErr_Occurred()) SWIG_fail; | |
27839 | } | |
4f89f6a3 RD |
27840 | { |
27841 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27842 | } | |
4276dc52 RD |
27843 | return resultobj; |
27844 | fail: | |
27845 | return NULL; | |
27846 | } | |
27847 | ||
27848 | ||
27849 | static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27850 | PyObject *resultobj; | |
27851 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27852 | wxRect result; | |
27853 | PyObject * obj0 = 0 ; | |
27854 | char *kwnames[] = { | |
27855 | (char *) "self", NULL | |
27856 | }; | |
27857 | ||
27858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
27859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27861 | { | |
27862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27863 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
27864 | ||
27865 | wxPyEndAllowThreads(__tstate); | |
27866 | if (PyErr_Occurred()) SWIG_fail; | |
27867 | } | |
27868 | { | |
27869 | wxRect * resultptr; | |
27870 | resultptr = new wxRect((wxRect &) result); | |
27871 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
27872 | } | |
27873 | return resultobj; | |
27874 | fail: | |
27875 | return NULL; | |
27876 | } | |
27877 | ||
27878 | ||
27879 | static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27880 | PyObject *resultobj; | |
27881 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27882 | wxString result; | |
27883 | PyObject * obj0 = 0 ; | |
27884 | char *kwnames[] = { | |
27885 | (char *) "self", NULL | |
27886 | }; | |
27887 | ||
27888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
27889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27891 | { | |
27892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27893 | result = ((wxDisplay const *)arg1)->GetName(); | |
27894 | ||
27895 | wxPyEndAllowThreads(__tstate); | |
27896 | if (PyErr_Occurred()) SWIG_fail; | |
27897 | } | |
27898 | { | |
27899 | #if wxUSE_UNICODE | |
27900 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27901 | #else | |
27902 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27903 | #endif | |
27904 | } | |
27905 | return resultobj; | |
27906 | fail: | |
27907 | return NULL; | |
27908 | } | |
27909 | ||
27910 | ||
27911 | static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27912 | PyObject *resultobj; | |
27913 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27914 | bool result; | |
27915 | PyObject * obj0 = 0 ; | |
27916 | char *kwnames[] = { | |
27917 | (char *) "self", NULL | |
27918 | }; | |
27919 | ||
27920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
27921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27923 | { | |
27924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27925 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
27926 | ||
27927 | wxPyEndAllowThreads(__tstate); | |
27928 | if (PyErr_Occurred()) SWIG_fail; | |
27929 | } | |
4f89f6a3 RD |
27930 | { |
27931 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27932 | } | |
4276dc52 RD |
27933 | return resultobj; |
27934 | fail: | |
27935 | return NULL; | |
27936 | } | |
27937 | ||
27938 | ||
27939 | static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27940 | PyObject *resultobj; | |
27941 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27942 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
27943 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
27944 | PyObject *result; | |
27945 | PyObject * obj0 = 0 ; | |
27946 | PyObject * obj1 = 0 ; | |
27947 | char *kwnames[] = { | |
27948 | (char *) "self",(char *) "mode", NULL | |
27949 | }; | |
27950 | ||
27951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
27952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27954 | if (obj1) { | |
27955 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27956 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27957 | SWIG_fail; | |
27958 | if (arg2 == NULL) { | |
27959 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27960 | SWIG_fail; | |
27961 | } | |
27962 | } | |
27963 | { | |
27964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27965 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
27966 | ||
27967 | wxPyEndAllowThreads(__tstate); | |
27968 | if (PyErr_Occurred()) SWIG_fail; | |
27969 | } | |
27970 | resultobj = result; | |
27971 | return resultobj; | |
27972 | fail: | |
27973 | return NULL; | |
27974 | } | |
27975 | ||
27976 | ||
27977 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27978 | PyObject *resultobj; | |
27979 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27980 | wxVideoMode result; | |
27981 | PyObject * obj0 = 0 ; | |
27982 | char *kwnames[] = { | |
27983 | (char *) "self", NULL | |
27984 | }; | |
27985 | ||
27986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
27987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27989 | { | |
27990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27991 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
27992 | ||
27993 | wxPyEndAllowThreads(__tstate); | |
27994 | if (PyErr_Occurred()) SWIG_fail; | |
27995 | } | |
27996 | { | |
27997 | wxVideoMode * resultptr; | |
27998 | resultptr = new wxVideoMode((wxVideoMode &) result); | |
27999 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); | |
28000 | } | |
28001 | return resultobj; | |
28002 | fail: | |
28003 | return NULL; | |
28004 | } | |
28005 | ||
28006 | ||
28007 | static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28008 | PyObject *resultobj; | |
28009 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28010 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28011 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28012 | bool result; | |
28013 | PyObject * obj0 = 0 ; | |
28014 | PyObject * obj1 = 0 ; | |
28015 | char *kwnames[] = { | |
28016 | (char *) "self",(char *) "mode", NULL | |
28017 | }; | |
28018 | ||
28019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
28020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28022 | if (obj1) { | |
28023 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28024 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28025 | SWIG_fail; | |
28026 | if (arg2 == NULL) { | |
28027 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28028 | SWIG_fail; | |
28029 | } | |
28030 | } | |
28031 | { | |
28032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28033 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
28034 | ||
28035 | wxPyEndAllowThreads(__tstate); | |
28036 | if (PyErr_Occurred()) SWIG_fail; | |
28037 | } | |
4f89f6a3 RD |
28038 | { |
28039 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28040 | } | |
4276dc52 RD |
28041 | return resultobj; |
28042 | fail: | |
28043 | return NULL; | |
28044 | } | |
28045 | ||
28046 | ||
28047 | static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28048 | PyObject *resultobj; | |
28049 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28050 | PyObject * obj0 = 0 ; | |
28051 | char *kwnames[] = { | |
28052 | (char *) "self", NULL | |
28053 | }; | |
28054 | ||
28055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
28056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28058 | { | |
28059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28060 | (arg1)->ResetMode(); | |
28061 | ||
28062 | wxPyEndAllowThreads(__tstate); | |
28063 | if (PyErr_Occurred()) SWIG_fail; | |
28064 | } | |
28065 | Py_INCREF(Py_None); resultobj = Py_None; | |
28066 | return resultobj; | |
28067 | fail: | |
28068 | return NULL; | |
28069 | } | |
28070 | ||
28071 | ||
28072 | static PyObject * Display_swigregister(PyObject *self, PyObject *args) { | |
28073 | PyObject *obj; | |
28074 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28075 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
28076 | Py_INCREF(obj); | |
28077 | return Py_BuildValue((char *)""); | |
28078 | } | |
d14a1e28 RD |
28079 | static PyMethodDef SwigMethods[] = { |
28080 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
28081 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
28082 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
28083 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
28084 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
28085 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
28086 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
28087 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
28088 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
28089 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
28090 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
28091 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
28092 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
28093 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
28094 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
28095 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
28096 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
28097 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, | |
28098 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28099 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
28100 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
28101 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
28102 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
28103 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
28104 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
28105 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
28106 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
28107 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
28108 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
28109 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
28110 | { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, | |
28111 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
28112 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
28113 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
28114 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
28115 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
28116 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
28117 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
28118 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
28119 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
28120 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
28121 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
28122 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28123 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28124 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28125 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
28126 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28127 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28128 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
28129 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
28130 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
28131 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28132 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
28133 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28134 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28135 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28136 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28137 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28138 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28139 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28140 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28141 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28142 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28143 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
28144 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28145 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28146 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
39f61e25 | 28147 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28148 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, |
28149 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
28150 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
28151 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28152 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28153 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
28154 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
28155 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
28156 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
28157 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28158 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
28159 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
28160 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
28161 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
28162 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28163 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28164 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28165 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 28166 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 28167 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 28168 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 28169 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28170 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
28171 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
28172 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
28173 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
28174 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
28175 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
28176 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
28177 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
28178 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28179 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28180 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28181 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28182 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
28183 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28184 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28185 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
28186 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28187 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28188 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
28189 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
28190 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
28191 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
28192 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28193 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
28194 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
28195 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28196 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28197 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
28198 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
28199 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
28200 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
28201 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
28202 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
28203 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
28204 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
28205 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
28206 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
28207 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28208 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
28209 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28210 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28211 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28212 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
28213 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
28214 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
28215 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
28216 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28217 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28218 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
28219 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
28220 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
28221 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28222 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28223 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
28224 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
28225 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28226 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
28227 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
7722248d | 28228 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 28229 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, |
1c0f361b | 28230 | { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28231 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, |
28232 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28233 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, |
28234 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28235 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
cc6dd355 | 28236 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28237 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, |
28238 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
28239 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28240 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
28241 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
28242 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
28243 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
28244 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
28245 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
28246 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
28247 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
28248 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
28249 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28250 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
28251 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28252 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28253 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
28254 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28255 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28256 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28257 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28258 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28259 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28260 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28261 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28262 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28263 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28264 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28265 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28266 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28267 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28268 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28269 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
28270 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
28271 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
28272 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
28273 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
28274 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
28275 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
28276 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
28277 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
28278 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
28279 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
28280 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
28281 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28282 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28283 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28284 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
28285 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
28286 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
28287 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28288 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28289 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28290 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
28291 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
28292 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
28293 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
28294 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
28295 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
28296 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
28297 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
28298 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
28299 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28300 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
28301 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
28302 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
cc6dd355 | 28303 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, |
d14a1e28 RD |
28304 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, |
28305 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
28306 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28307 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28308 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
28309 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
28310 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28311 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
28312 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
28313 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28314 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
28315 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
28316 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28317 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
28318 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
28319 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
28320 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
28321 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
28322 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
28323 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
28324 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
28325 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
28326 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28327 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28328 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
28329 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
28330 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
28331 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
28332 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
28333 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
28334 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
28335 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
28336 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
28337 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
28338 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28339 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28340 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28341 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28342 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28343 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28344 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
28345 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
28346 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
28347 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28348 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28349 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28350 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28351 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
28352 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
28353 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
28354 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
28355 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
28356 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
28357 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
28358 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
28359 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
28360 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
28361 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
28362 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
28363 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
28364 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
28365 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
28366 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
28367 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
28368 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
28369 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
28370 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
28371 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
28372 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
28373 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
28374 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
28375 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
28376 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
28377 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
28378 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
28379 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
28380 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
28381 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
28382 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
28383 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
28384 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
28385 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
28386 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
28387 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
28388 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
28389 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
28390 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
28391 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
28392 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
28393 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
28394 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28395 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28396 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28397 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28398 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28399 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28400 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28401 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28402 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28403 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28404 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
28405 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
28406 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
28407 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
28408 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
28409 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
28410 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
36cadbf7 RD |
28411 | { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS }, |
28412 | { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS }, | |
4d5c3d91 | 28413 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS }, |
36cadbf7 RD |
28414 | { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS }, |
28415 | { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS }, | |
4d5c3d91 | 28416 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS }, |
36cadbf7 RD |
28417 | { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS }, |
28418 | { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS }, | |
4d5c3d91 RD |
28419 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS }, |
28420 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28421 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, |
28422 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
28423 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
28424 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28425 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28426 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28427 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28428 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28429 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28430 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28431 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28432 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28433 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
28434 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
28435 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
28436 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
28437 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28438 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28439 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28440 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28441 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28442 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28443 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
28444 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28445 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28446 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28447 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
28448 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
28449 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
28450 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28451 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
28452 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
28453 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
28454 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28455 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
28456 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
28457 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
28458 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28459 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
28460 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28461 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
28462 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
28463 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
28464 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28465 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28466 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
28467 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28468 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
28469 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
28470 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
28471 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
28472 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28473 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
1e0c8722 | 28474 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28475 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, |
28476 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
28477 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
28478 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
28479 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
28480 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28481 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
28482 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
28483 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
28484 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
28485 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
28486 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
28487 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
28488 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
28489 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
28490 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
28491 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28492 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
28493 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
28494 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
28495 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
28496 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
28497 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
28498 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
28499 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
28500 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
28501 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28502 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
28503 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
28504 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
28505 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
28506 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 28507 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, |
b88bce5f | 28508 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28509 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, |
28510 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
28511 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28512 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28513 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28514 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28515 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28516 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28517 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28518 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28519 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, |
28520 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
28521 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
28522 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28523 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28524 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
b88bce5f RD |
28525 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, |
28526 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
28527 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
28528 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28529 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, |
28530 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28531 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28532 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
28533 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
28534 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
28535 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
28536 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
28537 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
28538 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
28539 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
28540 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
28541 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
28542 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
28543 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
28544 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
28545 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
28546 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
28547 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
28548 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
28549 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28550 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28551 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
28552 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
28553 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
28554 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28555 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
28556 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28557 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28558 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
28559 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
28560 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
28561 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
28562 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28563 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
28564 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
28565 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28566 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28567 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28568 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28569 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28570 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28571 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28572 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28573 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28574 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28575 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28576 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28577 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
28578 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
28579 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28580 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28581 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28582 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28583 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28584 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28585 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28586 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
28587 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
28588 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28589 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28590 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
28591 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
28592 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
28593 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28594 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
28595 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
28596 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28597 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
28598 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28599 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
28600 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28601 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28602 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28603 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28604 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28605 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
28606 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
28607 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28608 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
28609 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
28610 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
28611 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
28612 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
28613 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
28614 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
28615 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
28616 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
28617 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
28618 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
28619 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28620 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
28621 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
28622 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
28623 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
28624 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
28625 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
28626 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
28627 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
28628 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
28629 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
28630 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
28631 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
28632 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
28633 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
28634 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
28635 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
28636 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
28637 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
28638 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
28639 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
28640 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
28641 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
28642 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
28643 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
28644 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
28645 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
28646 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
28647 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28648 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28649 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28650 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28651 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28652 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28653 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28654 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28655 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28656 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28657 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
28658 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28659 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28660 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28661 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28662 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28663 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28664 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28665 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28666 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
28667 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
28668 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
28669 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
28670 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28671 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28672 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
28673 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
28674 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
28675 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28676 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
28677 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
28678 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28679 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28680 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
28681 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
28682 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
28683 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
28684 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
28685 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
28686 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28687 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28688 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28689 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28690 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28691 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28692 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
28693 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
28694 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
28695 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
28696 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
28697 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28698 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28699 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
28700 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
28701 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28702 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28703 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28704 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
28705 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28706 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28707 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28708 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28709 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28710 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28711 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28712 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28713 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28714 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28715 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28716 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28717 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28718 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28719 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
28720 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
28721 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
28722 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
28723 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
28724 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28725 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28726 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28727 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
28728 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
28729 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
28730 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
28731 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
28732 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
28733 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
28734 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
28735 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
28736 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
28737 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28738 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
28739 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
28740 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
28741 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28742 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
28743 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28744 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
28745 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
1a10c483 RD |
28746 | { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS }, |
28747 | { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
28748 | { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28749 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, |
28750 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28751 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28752 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
28753 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
28754 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
28755 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
28756 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28757 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
28758 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
28759 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
28760 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
28761 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28762 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28763 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
28764 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28765 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28766 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28767 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
28768 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28769 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28770 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
28771 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28772 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
15afbcd0 | 28773 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28774 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, |
28775 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28776 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, |
28777 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
28778 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28779 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
28780 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28781 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
28782 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
28783 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
28784 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28785 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, | |
28786 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
28787 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28788 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28789 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28790 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28791 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28792 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28793 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
28794 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
28795 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
15afbcd0 | 28796 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28797 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
28798 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28799 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28800 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28801 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28802 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28803 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28804 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28805 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28806 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
28807 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28808 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28809 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28810 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28811 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28812 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28813 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28814 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
28815 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28816 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28817 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28818 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28819 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28820 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28821 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28822 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
28823 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28824 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28825 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
28826 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
28827 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
28828 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
28829 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28830 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28831 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28832 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
28833 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28834 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
28835 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, | |
28836 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28837 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28838 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
28839 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
4276dc52 RD |
28840 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS }, |
28841 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS }, | |
28842 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS }, | |
28843 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
28844 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
28845 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
28846 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28847 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28848 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28849 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS }, | |
28850 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS }, | |
28851 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS }, | |
28852 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS }, | |
28853 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS }, | |
28854 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS }, | |
28855 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS }, | |
28856 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS }, | |
28857 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS }, | |
28858 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS }, | |
28859 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS }, | |
28860 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28861 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
28862 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
28863 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28864 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS }, | |
28865 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS }, | |
28866 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS }, | |
28867 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS }, | |
28868 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS }, | |
28869 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS }, | |
28870 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS }, | |
28871 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28872 | { NULL, NULL } |
28873 | }; | |
28874 | ||
28875 | ||
28876 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
28877 | ||
28878 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
28879 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
28880 | } | |
28881 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
28882 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
28883 | } | |
28884 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
28885 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
28886 | } | |
28887 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
28888 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
28889 | } | |
28890 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
28891 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
28892 | } | |
28893 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
28894 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
28895 | } | |
28896 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
28897 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
28898 | } | |
28899 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
28900 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
28901 | } | |
28902 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
28903 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
28904 | } | |
28905 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
28906 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
28907 | } | |
28908 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
28909 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
28910 | } | |
28911 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
28912 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
28913 | } | |
28914 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
28915 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
28916 | } | |
28917 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
28918 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
28919 | } | |
28920 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
28921 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
28922 | } | |
28923 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
28924 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
28925 | } | |
28926 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
28927 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
28928 | } | |
28929 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
28930 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
28931 | } | |
28932 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
28933 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
28934 | } | |
28935 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
28936 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
28937 | } | |
28938 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
28939 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
28940 | } | |
28941 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
28942 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
28943 | } | |
28944 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
28945 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
28946 | } | |
28947 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
28948 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
28949 | } | |
28950 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
28951 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
28952 | } | |
28953 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
28954 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
28955 | } | |
28956 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
28957 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
28958 | } | |
28959 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
28960 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
28961 | } | |
28962 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
28963 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
28964 | } | |
28965 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
28966 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
28967 | } | |
28968 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
28969 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
28970 | } | |
28971 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
28972 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
28973 | } | |
28974 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
28975 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
28976 | } | |
28977 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
28978 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
28979 | } | |
28980 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
28981 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
28982 | } | |
28983 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
28984 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
28985 | } | |
28986 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
28987 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
28988 | } | |
28989 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
28990 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
28991 | } | |
28992 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
28993 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
28994 | } | |
28995 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
28996 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
28997 | } | |
28998 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
28999 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29000 | } | |
29001 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
29002 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29003 | } | |
29004 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
29005 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
29006 | } | |
29007 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
29008 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
29009 | } | |
29010 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
29011 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
29012 | } | |
29013 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
29014 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
29015 | } | |
29016 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
29017 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29018 | } | |
29019 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
29020 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29021 | } | |
29022 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
29023 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29024 | } | |
29025 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
29026 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29027 | } | |
29028 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
29029 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29030 | } | |
29031 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
29032 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
29033 | } | |
29034 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
29035 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29036 | } | |
29037 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
29038 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
29039 | } | |
29040 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
29041 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
29042 | } | |
29043 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29044 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
29045 | } | |
29046 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29047 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29048 | } | |
29049 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29050 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29051 | } | |
29052 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29053 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29054 | } | |
29055 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29056 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29057 | } | |
29058 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29059 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29060 | } | |
29061 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29062 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29063 | } | |
29064 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
29065 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
29066 | } | |
29067 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
29068 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
29069 | } | |
29070 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
29071 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29072 | } | |
29073 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
29074 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
29075 | } | |
29076 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
29077 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
29078 | } | |
29079 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
29080 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
29081 | } | |
29082 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
29083 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
29084 | } | |
29085 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
29086 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
29087 | } | |
29088 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
29089 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
29090 | } | |
29091 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
29092 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
29093 | } | |
29094 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
29095 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
29096 | } | |
29097 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
29098 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
29099 | } | |
29100 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
29101 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
29102 | } | |
29103 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
29104 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
29105 | } | |
29106 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
29107 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
29108 | } | |
29109 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
29110 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
29111 | } | |
29112 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
29113 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
29114 | } | |
29115 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
29116 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
29117 | } | |
29118 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
29119 | return (void *)((wxObject *) ((wxSizer *) x)); | |
29120 | } | |
29121 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
29122 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
29123 | } | |
29124 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
29125 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
29126 | } | |
29127 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
29128 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29129 | } | |
29130 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
29131 | return (void *)((wxObject *) ((wxEvent *) x)); | |
29132 | } | |
29133 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
29134 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
29135 | } | |
29136 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
29137 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
29138 | } | |
29139 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
29140 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
29141 | } | |
29142 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
29143 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
29144 | } | |
29145 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
29146 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
29147 | } | |
29148 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
29149 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29150 | } | |
29151 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
29152 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29153 | } | |
29154 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
29155 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29156 | } | |
29157 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
29158 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29159 | } | |
29160 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
29161 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
29162 | } | |
29163 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
29164 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
29165 | } | |
29166 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
29167 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
29168 | } | |
29169 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
29170 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
29171 | } | |
29172 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
29173 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
29174 | } | |
29175 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
29176 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
29177 | } | |
29178 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
29179 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
29180 | } | |
29181 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
29182 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29183 | } | |
29184 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
29185 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
29186 | } | |
29187 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
29188 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
29189 | } | |
29190 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
29191 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
29192 | } | |
29193 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
29194 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
29195 | } | |
29196 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
29197 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29198 | } | |
29199 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
29200 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29201 | } | |
29202 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
29203 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
29204 | } | |
29205 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
29206 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
29207 | } | |
29208 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
29209 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
29210 | } | |
29211 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
29212 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
29213 | } | |
29214 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
29215 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
29216 | } | |
29217 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
29218 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
29219 | } | |
29220 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
29221 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
29222 | } | |
29223 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
29224 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
29225 | } | |
29226 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
29227 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
29228 | } | |
29229 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
29230 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
29231 | } | |
29232 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
29233 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
29234 | } | |
29235 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
29236 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
29237 | } | |
29238 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
29239 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
29240 | } | |
29241 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
29242 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
29243 | } | |
29244 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
29245 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
29246 | } | |
29247 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
29248 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
29249 | } | |
29250 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
29251 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
29252 | } | |
29253 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
29254 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
29255 | } | |
1e0c8722 RD |
29256 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
29257 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
29258 | } | |
d14a1e28 RD |
29259 | static void *_p_wxImageTo_p_wxObject(void *x) { |
29260 | return (void *)((wxObject *) ((wxImage *) x)); | |
29261 | } | |
29262 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
29263 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
29264 | } | |
29265 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
29266 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
29267 | } | |
29268 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
29269 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
29270 | } | |
29271 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
29272 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29273 | } | |
29274 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
29275 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29276 | } | |
29277 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
29278 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
29279 | } | |
29280 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
29281 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
29282 | } | |
29283 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
29284 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
29285 | } | |
29286 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
29287 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
29288 | } | |
29289 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
29290 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
29291 | } | |
29292 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
29293 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
29294 | } | |
29295 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
29296 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29297 | } | |
29298 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
29299 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
29300 | } | |
29301 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
29302 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
29303 | } | |
29304 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
29305 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
29306 | } | |
29307 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
29308 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
29309 | } | |
29310 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
29311 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
29312 | } | |
29313 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
29314 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
29315 | } | |
29316 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
29317 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29318 | } | |
29319 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
29320 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
29321 | } | |
29322 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
29323 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
29324 | } | |
29325 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
29326 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
29327 | } | |
29328 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
29329 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29330 | } | |
29331 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
29332 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
29333 | } | |
29334 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
29335 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29336 | } | |
29337 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
29338 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
29339 | } | |
29340 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
29341 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
29342 | } | |
29343 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
29344 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
29345 | } | |
29346 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
29347 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
29348 | } | |
29349 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
29350 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
29351 | } | |
29352 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
29353 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
29354 | } | |
29355 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
29356 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
29357 | } | |
29358 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
29359 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
29360 | } | |
29361 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
29362 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
29363 | } | |
29364 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
29365 | return (void *)((wxWindow *) ((wxControl *) x)); | |
29366 | } | |
29367 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
29368 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
29369 | } | |
29370 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
29371 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
29372 | } | |
29373 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
29374 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
29375 | } | |
29376 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
29377 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
29378 | } | |
15afbcd0 RD |
29379 | 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}}; |
29380 | 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}}; | |
29381 | 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}}; | |
29382 | 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}}; | |
29383 | 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}}; | |
29384 | 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}}; | |
29385 | 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}}; | |
29386 | 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 | 29387 | 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 |
29388 | 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}}; |
29389 | 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}}; | |
29390 | 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}}; | |
29391 | 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}}; | |
29392 | 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}}; | |
29393 | 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}}; | |
29394 | 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}}; | |
29395 | 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}}; | |
29396 | 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}}; | |
29397 | 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}}; | |
29398 | 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}}; | |
29399 | 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}}; | |
29400 | 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}}; | |
29401 | 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}}; | |
29402 | 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}}; | |
29403 | 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}}; | |
29404 | 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 | 29405 | 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 |
29406 | 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}}; |
29407 | 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}}; | |
29408 | 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}}; | |
29409 | 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 |
29410 | 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}}; |
29411 | 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}}; | |
29412 | 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}}; | |
29413 | 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}}; | |
29414 | 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}}; | |
29415 | 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}}; | |
29416 | 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}}; | |
29417 | 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}}; | |
29418 | 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}}; | |
29419 | 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}}; | |
29420 | 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}}; | |
29421 | 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}}; | |
29422 | 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}}; | |
29423 | 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 | 29424 | 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 |
29425 | 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}}; |
29426 | 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}}; | |
29427 | 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}}; | |
29428 | 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}}; | |
29429 | 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}}; | |
29430 | 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}}; | |
29431 | 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}}; | |
29432 | 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}}; | |
29433 | 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}}; | |
29434 | 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}}; | |
29435 | 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}}; | |
29436 | 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}}; | |
29437 | 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}}; | |
29438 | 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}}; | |
29439 | 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}}; | |
29440 | 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}}; | |
29441 | 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}}; | |
29442 | 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}}; | |
29443 | 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}}; | |
29444 | 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}}; | |
29445 | 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}}; | |
29446 | 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}}; | |
29447 | 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}}; | |
29448 | 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}}; | |
29449 | 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}}; | |
29450 | 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}}; | |
29451 | 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}}; | |
29452 | 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}}; | |
29453 | 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}}; | |
29454 | 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}}; | |
29455 | 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}}; | |
29456 | 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}}; | |
29457 | 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}}; | |
29458 | 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}}; | |
29459 | 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}}; | |
29460 | 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 |
29461 | 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}}; |
29462 | 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}}; | |
29463 | 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 |
29464 | |
29465 | static swig_type_info *swig_types_initial[] = { | |
29466 | _swigt__p_wxLogChain, | |
29467 | _swigt__p_wxMutexGuiLocker, | |
29468 | _swigt__p_wxFileHistory, | |
29469 | _swigt__p_wxLog, | |
29470 | _swigt__p_wxDateTime__TimeZone, | |
29471 | _swigt__p_wxMenu, | |
29472 | _swigt__p_wxEvent, | |
29473 | _swigt__p_wxConfigBase, | |
4276dc52 | 29474 | _swigt__p_wxDisplay, |
d14a1e28 RD |
29475 | _swigt__p_wxFileType, |
29476 | _swigt__p_wxLogGui, | |
29477 | _swigt__p_wxFont, | |
29478 | _swigt__p_wxDataFormat, | |
29479 | _swigt__p_wxTimerEvent, | |
29480 | _swigt__p_wxCaret, | |
29481 | _swigt__p_int, | |
29482 | _swigt__p_wxSize, | |
29483 | _swigt__p_wxClipboard, | |
29484 | _swigt__p_wxStopWatch, | |
29485 | _swigt__p_wxDC, | |
29486 | _swigt__p_wxClipboardLocker, | |
29487 | _swigt__p_wxIcon, | |
29488 | _swigt__p_wxLogStderr, | |
29489 | _swigt__p_wxLogTextCtrl, | |
29490 | _swigt__p_wxTextCtrl, | |
29491 | _swigt__p_wxBusyCursor, | |
36cadbf7 | 29492 | _swigt__p_wxPyBitmapDataObject, |
d14a1e28 RD |
29493 | _swigt__p_wxPyTextDataObject, |
29494 | _swigt__p_wxBitmapDataObject, | |
29495 | _swigt__p_wxTextDataObject, | |
29496 | _swigt__p_wxDataObject, | |
994141e6 | 29497 | _swigt__p_wxFileDataObject, |
d14a1e28 RD |
29498 | _swigt__p_wxCustomDataObject, |
29499 | _swigt__p_wxURLDataObject, | |
29500 | _swigt__p_wxMetafileDataObject, | |
4d5c3d91 | 29501 | _swigt__p_wxSound, |
d14a1e28 RD |
29502 | _swigt__p_wxTimerRunner, |
29503 | _swigt__p_wxLogWindow, | |
29504 | _swigt__p_wxTimeSpan, | |
29505 | _swigt__p_wxArrayString, | |
29506 | _swigt__p_wxWindowDisabler, | |
29507 | _swigt__p_wxToolTip, | |
29508 | _swigt__p_wxDataObjectComposite, | |
29509 | _swigt__p_wxFileConfig, | |
29510 | _swigt__p_wxSystemSettings, | |
4276dc52 | 29511 | _swigt__p_wxVideoMode, |
d14a1e28 RD |
29512 | _swigt__p_wxPyDataObjectSimple, |
29513 | _swigt__p_wxDataObjectSimple, | |
29514 | _swigt__p_wxEvtHandler, | |
29515 | _swigt__p_wxRect, | |
994141e6 | 29516 | _swigt__p_char, |
d14a1e28 RD |
29517 | _swigt__p_wxSingleInstanceChecker, |
29518 | _swigt__p_wxFileTypeInfo, | |
29519 | _swigt__p_wxFrame, | |
29520 | _swigt__p_wxTimer, | |
29521 | _swigt__p_wxMimeTypesManager, | |
29522 | _swigt__p_wxPyArtProvider, | |
29523 | _swigt__p_wxPyTipProvider, | |
29524 | _swigt__p_wxTipProvider, | |
29525 | _swigt__p_wxJoystick, | |
29526 | _swigt__p_wxSystemOptions, | |
29527 | _swigt__p_wxPoint, | |
29528 | _swigt__p_wxJoystickEvent, | |
29529 | _swigt__p_wxCursor, | |
29530 | _swigt__p_wxObject, | |
29531 | _swigt__p_wxOutputStream, | |
29532 | _swigt__p_wxDateTime, | |
29533 | _swigt__p_wxPyDropSource, | |
29534 | _swigt__p_wxWindow, | |
29535 | _swigt__p_wxString, | |
29536 | _swigt__p_wxPyProcess, | |
29537 | _swigt__p_wxBitmap, | |
29538 | _swigt__p_wxConfig, | |
29539 | _swigt__p_wxChar, | |
29540 | _swigt__p_wxBusyInfo, | |
29541 | _swigt__p_wxPyDropTarget, | |
29542 | _swigt__p_wxPyTextDropTarget, | |
29543 | _swigt__p_wxPyFileDropTarget, | |
29544 | _swigt__p_wxProcessEvent, | |
29545 | _swigt__p_wxPyLog, | |
29546 | _swigt__p_wxLogNull, | |
29547 | _swigt__p_wxColour, | |
29548 | _swigt__p_wxConfigPathChanger, | |
29549 | _swigt__p_wxPyTimer, | |
29550 | _swigt__p_wxDateSpan, | |
29551 | 0 | |
29552 | }; | |
29553 | ||
29554 | ||
29555 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
29556 | ||
29557 | static swig_const_info swig_const_table[] = { | |
15afbcd0 RD |
29558 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, |
29559 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
29560 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
29561 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
29562 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
d14a1e28 RD |
29563 | {0}}; |
29564 | ||
29565 | #ifdef __cplusplus | |
29566 | } | |
29567 | #endif | |
29568 | ||
29569 | #ifdef __cplusplus | |
29570 | extern "C" | |
29571 | #endif | |
29572 | SWIGEXPORT(void) SWIG_init(void) { | |
29573 | static PyObject *SWIG_globals = 0; | |
29574 | static int typeinit = 0; | |
29575 | PyObject *m, *d; | |
29576 | int i; | |
29577 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
29578 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
29579 | d = PyModule_GetDict(m); | |
29580 | ||
29581 | if (!typeinit) { | |
29582 | for (i = 0; swig_types_initial[i]; i++) { | |
29583 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
29584 | } | |
29585 | typeinit = 1; | |
29586 | } | |
29587 | SWIG_InstallConstants(d,swig_const_table); | |
29588 | ||
15afbcd0 RD |
29589 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT)); |
29590 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT)); | |
29591 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT)); | |
29592 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT)); | |
29593 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
29594 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE)); | |
29595 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT)); | |
29596 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT)); | |
29597 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT)); | |
29598 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR)); | |
29599 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND)); | |
29600 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP)); | |
29601 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
29602 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
29603 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU)); | |
29604 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW)); | |
29605 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME)); | |
29606 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT)); | |
29607 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT)); | |
29608 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
29609 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
29610 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
29611 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE)); | |
29612 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT)); | |
29613 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
29614 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE)); | |
29615 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE)); | |
29616 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW)); | |
29617 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW)); | |
29618 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT)); | |
29619 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT)); | |
29620 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
29621 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
29622 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT)); | |
29623 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
29624 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT)); | |
29625 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW)); | |
29626 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT)); | |
29627 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT)); | |
29628 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK)); | |
29629 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX)); | |
29630 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT)); | |
29631 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
29632 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
29633 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT)); | |
29634 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR)); | |
29635 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX)); | |
29636 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS)); | |
29637 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X)); | |
29638 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y)); | |
29639 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X)); | |
29640 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y)); | |
29641 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X)); | |
29642 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y)); | |
29643 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X)); | |
29644 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y)); | |
29645 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X)); | |
29646 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y)); | |
29647 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X)); | |
29648 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y)); | |
29649 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X)); | |
29650 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X)); | |
29651 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y)); | |
29652 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X)); | |
29653 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y)); | |
29654 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X)); | |
29655 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y)); | |
29656 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X)); | |
29657 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y)); | |
29658 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X)); | |
29659 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y)); | |
29660 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X)); | |
29661 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y)); | |
29662 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y)); | |
29663 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X)); | |
29664 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X)); | |
29665 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y)); | |
29666 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y)); | |
29667 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y)); | |
29668 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y)); | |
29669 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT)); | |
29670 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT)); | |
29671 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS)); | |
29672 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS)); | |
29673 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
29674 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME)); | |
29675 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE)); | |
29676 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY)); | |
29677 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA)); | |
29678 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL)); | |
29679 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP)); | |
b2dc1044 RD |
29680 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
29681 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
29682 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
29683 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
15afbcd0 RD |
29684 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF)); |
29685 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT)); | |
29686 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS)); | |
29687 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT)); | |
d14a1e28 | 29688 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); |
1c0f361b RD |
29689 | |
29690 | wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer"); | |
29691 | ||
15afbcd0 RD |
29692 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError)); |
29693 | PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error)); | |
29694 | PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning)); | |
29695 | PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message)); | |
29696 | PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status)); | |
29697 | PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info)); | |
29698 | PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug)); | |
29699 | PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace)); | |
29700 | PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress)); | |
29701 | PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User)); | |
29702 | PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max)); | |
29703 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); | |
29704 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); | |
29705 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
29706 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
29707 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
29708 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001)); | |
29709 | PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002)); | |
29710 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004)); | |
29711 | PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008)); | |
29712 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100)); | |
29713 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT)); | |
29714 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT)); | |
29715 | PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK)); | |
29716 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL)); | |
29717 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED)); | |
29718 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS)); | |
29719 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR)); | |
29720 | PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE)); | |
29721 | PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP)); | |
29722 | PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT)); | |
29723 | PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT)); | |
29724 | PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL)); | |
29725 | PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP)); | |
29726 | PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT)); | |
29727 | PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT)); | |
29728 | PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT)); | |
29729 | PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE)); | |
29730 | PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL)); | |
29731 | PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS)); | |
29732 | PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV)); | |
29733 | PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS)); | |
29734 | PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE)); | |
29735 | PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM)); | |
29736 | PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM)); | |
d14a1e28 | 29737 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); |
15afbcd0 RD |
29738 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC)); |
29739 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC)); | |
29740 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE)); | |
29741 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER)); | |
d14a1e28 RD |
29742 | |
29743 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
29744 | ||
15afbcd0 RD |
29745 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1)); |
29746 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2)); | |
29747 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY)); | |
29748 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1)); | |
29749 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2)); | |
29750 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3)); | |
29751 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4)); | |
d14a1e28 RD |
29752 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); |
29753 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
29754 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
29755 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
15afbcd0 RD |
29756 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC)); |
29757 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC)); | |
29758 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP)); | |
29759 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD)); | |
29760 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE)); | |
29761 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE)); | |
29762 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME)); | |
29763 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL)); | |
d14a1e28 RD |
29764 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); |
29765 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
29766 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
29767 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
29768 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
29769 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
29770 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
29771 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
29772 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
29773 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
29774 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
29775 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
29776 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
29777 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
29778 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
29779 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
29780 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
29781 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
29782 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
29783 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
29784 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
29785 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
29786 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
29787 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
29788 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
29789 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
29790 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
29791 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
29792 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
29793 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
29794 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
29795 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
29796 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
29797 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
29798 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
29799 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
29800 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
29801 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
29802 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
29803 | ||
29804 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
29805 | ||
15afbcd0 RD |
29806 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE)); |
29807 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE)); | |
29808 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH)); | |
29809 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
29810 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown)); | |
29811 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String)); | |
29812 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean)); | |
29813 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer)); | |
29814 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float)); | |
b2dc1044 RD |
29815 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); |
29816 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
15afbcd0 RD |
29817 | PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local)); |
29818 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12)); | |
29819 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11)); | |
29820 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10)); | |
29821 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9)); | |
29822 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8)); | |
29823 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7)); | |
29824 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6)); | |
29825 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5)); | |
29826 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4)); | |
29827 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3)); | |
29828 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2)); | |
29829 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1)); | |
29830 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0)); | |
29831 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1)); | |
29832 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2)); | |
29833 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3)); | |
29834 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4)); | |
29835 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5)); | |
29836 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6)); | |
29837 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7)); | |
29838 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8)); | |
29839 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9)); | |
29840 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10)); | |
29841 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11)); | |
29842 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12)); | |
29843 | PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET)); | |
29844 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST)); | |
29845 | PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET)); | |
29846 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST)); | |
29847 | PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET)); | |
29848 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST)); | |
29849 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK)); | |
29850 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD)); | |
29851 | PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST)); | |
29852 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT)); | |
29853 | PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST)); | |
29854 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT)); | |
29855 | PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST)); | |
29856 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT)); | |
29857 | PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST)); | |
29858 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT)); | |
29859 | PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST)); | |
29860 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT)); | |
29861 | PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST)); | |
29862 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST)); | |
29863 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT)); | |
29864 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST)); | |
29865 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST)); | |
29866 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST)); | |
29867 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST)); | |
29868 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC)); | |
29869 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian)); | |
29870 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian)); | |
29871 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown)); | |
29872 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard)); | |
29873 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska)); | |
29874 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania)); | |
29875 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria)); | |
29876 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen)); | |
29877 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg)); | |
29878 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol)); | |
29879 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia)); | |
29880 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria)); | |
29881 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium)); | |
29882 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria)); | |
29883 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1)); | |
29884 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2)); | |
29885 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3)); | |
29886 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada)); | |
29887 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China)); | |
29888 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1)); | |
29889 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2)); | |
29890 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia)); | |
29891 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark)); | |
29892 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt)); | |
29893 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia)); | |
29894 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland)); | |
29895 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France)); | |
29896 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace)); | |
29897 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine)); | |
29898 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg)); | |
29899 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany)); | |
29900 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic)); | |
29901 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia)); | |
29902 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant)); | |
29903 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain)); | |
29904 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece)); | |
29905 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary)); | |
29906 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland)); | |
29907 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy)); | |
29908 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan)); | |
29909 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1)); | |
29910 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2)); | |
29911 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3)); | |
29912 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia)); | |
29913 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania)); | |
29914 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg)); | |
29915 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands)); | |
29916 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen)); | |
29917 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
29918 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
29919 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland)); | |
29920 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway)); | |
29921 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland)); | |
29922 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal)); | |
29923 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania)); | |
29924 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia)); | |
29925 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland)); | |
29926 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain)); | |
29927 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden)); | |
29928 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland)); | |
29929 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic)); | |
29930 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant)); | |
29931 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey)); | |
29932 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA)); | |
29933 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales)); | |
29934 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia)); | |
29935 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown)); | |
29936 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default)); | |
29937 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start)); | |
29938 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC)); | |
29939 | PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France)); | |
29940 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany)); | |
29941 | PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK)); | |
29942 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End)); | |
29943 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia)); | |
29944 | PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA)); | |
29945 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan)); | |
29946 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb)); | |
29947 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar)); | |
29948 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr)); | |
29949 | PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May)); | |
29950 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun)); | |
29951 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul)); | |
29952 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug)); | |
29953 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep)); | |
29954 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct)); | |
29955 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov)); | |
29956 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec)); | |
29957 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month)); | |
29958 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun)); | |
29959 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon)); | |
29960 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue)); | |
29961 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed)); | |
29962 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu)); | |
29963 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri)); | |
29964 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat)); | |
29965 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay)); | |
29966 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year)); | |
29967 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full)); | |
29968 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr)); | |
29969 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First)); | |
29970 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First)); | |
29971 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First)); | |
98e665d3 | 29972 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); |
15afbcd0 RD |
29973 | PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID)); |
29974 | PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT)); | |
29975 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP)); | |
29976 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE)); | |
29977 | PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK)); | |
29978 | PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF)); | |
29979 | PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF)); | |
29980 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT)); | |
29981 | PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB)); | |
29982 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE)); | |
29983 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA)); | |
29984 | PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF)); | |
29985 | PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE)); | |
29986 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT)); | |
29987 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE)); | |
29988 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME)); | |
29989 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE)); | |
29990 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE)); | |
29991 | PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML)); | |
29992 | PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX)); | |
d14a1e28 | 29993 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); |
15afbcd0 RD |
29994 | PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get)); |
29995 | PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set)); | |
29996 | PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both)); | |
29997 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly)); | |
29998 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove)); | |
29999 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove)); | |
30000 | PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError)); | |
30001 | PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone)); | |
30002 | PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy)); | |
30003 | PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove)); | |
30004 | PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink)); | |
30005 | PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel)); | |
d14a1e28 RD |
30006 | |
30007 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
30008 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
30009 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
30010 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
30011 | ||
30012 | SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); | |
4276dc52 | 30013 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); |
d14a1e28 RD |
30014 | } |
30015 |