]>
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()); | |
a07a67e6 RD |
1478 | wxPyEndBlockThreads(blocked); |
1479 | return obj; | |
d14a1e28 RD |
1480 | } |
1481 | ||
1482 | class wxMetafileDataObject : public wxDataObjectSimple | |
1483 | { | |
1484 | public: | |
39f61e25 | 1485 | wxMetafileDataObject() { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1486 | }; |
1487 | ||
1488 | ||
d14a1e28 RD |
1489 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); |
1490 | ||
1491 | ||
d14a1e28 RD |
1492 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); |
1493 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1494 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1495 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1496 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1497 | ||
1498 | ||
d14a1e28 RD |
1499 | class wxPyTextDropTarget : public wxTextDropTarget { |
1500 | public: | |
1501 | wxPyTextDropTarget() {} | |
1502 | ||
1503 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1504 | ||
1505 | DEC_PYCALLBACK__(OnLeave); | |
1506 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1507 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1508 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1509 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1510 | ||
1511 | PYPRIVATE; | |
1512 | }; | |
1513 | ||
1514 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1515 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1516 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1517 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1518 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1519 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1520 | ||
1521 | ||
1522 | ||
1523 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1524 | public: | |
1525 | wxPyFileDropTarget() {} | |
1526 | ||
1527 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1528 | ||
1529 | DEC_PYCALLBACK__(OnLeave); | |
1530 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1531 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1532 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1533 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1534 | ||
1535 | PYPRIVATE; | |
1536 | }; | |
1537 | ||
1538 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1539 | const wxArrayString& filenames) { | |
e811c8ce | 1540 | bool rval = False; |
4f89f6a3 | 1541 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1542 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { |
1543 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1544 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1545 | Py_DECREF(list); | |
1546 | } | |
4f89f6a3 | 1547 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1548 | return rval; |
1549 | } | |
1550 | ||
1551 | ||
1552 | ||
1553 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1554 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1555 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1556 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1557 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1558 | ||
1559 | ||
1560 | ||
1561 | ||
1562 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
4276dc52 RD |
1563 | |
1564 | #include "wx/display.h" | |
1565 | ||
1566 | bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; } | |
1567 | bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; } | |
1568 | int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1569 | PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){ | |
1570 | PyObject* pyList = NULL; | |
1571 | wxArrayVideoModes arr = self->GetModes(mode); | |
4f89f6a3 | 1572 | bool blocked = wxPyBeginBlockThreads(); |
4276dc52 RD |
1573 | pyList = PyList_New(0); |
1574 | for (int i=0; i < arr.GetCount(); i++) { | |
1575 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
1576 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
1577 | PyList_Append(pyList, pyObj); | |
1a10c483 | 1578 | Py_DECREF(pyObj); |
4276dc52 | 1579 | } |
4f89f6a3 | 1580 | wxPyEndBlockThreads(blocked); |
4276dc52 RD |
1581 | return pyList; |
1582 | } | |
d14a1e28 RD |
1583 | #ifdef __cplusplus |
1584 | extern "C" { | |
1585 | #endif | |
1586 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1587 | PyObject *resultobj; | |
1588 | int arg1 ; | |
1589 | wxColour result; | |
994141e6 | 1590 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1591 | char *kwnames[] = { |
1592 | (char *) "index", NULL | |
1593 | }; | |
1594 | ||
994141e6 | 1595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1596 | arg1 = (wxSystemColour) SWIG_AsInt(obj0); |
1597 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1598 | { |
1599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1600 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1601 | ||
1602 | wxPyEndAllowThreads(__tstate); | |
1603 | if (PyErr_Occurred()) SWIG_fail; | |
1604 | } | |
1605 | { | |
1606 | wxColour * resultptr; | |
1607 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 1608 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1609 | } |
1610 | return resultobj; | |
1611 | fail: | |
1612 | return NULL; | |
1613 | } | |
1614 | ||
1615 | ||
1616 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1617 | PyObject *resultobj; | |
1618 | int arg1 ; | |
1619 | wxFont result; | |
994141e6 | 1620 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1621 | char *kwnames[] = { |
1622 | (char *) "index", NULL | |
1623 | }; | |
1624 | ||
994141e6 | 1625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1626 | arg1 = (wxSystemFont) SWIG_AsInt(obj0); |
1627 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1628 | { |
1629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1630 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1631 | ||
1632 | wxPyEndAllowThreads(__tstate); | |
1633 | if (PyErr_Occurred()) SWIG_fail; | |
1634 | } | |
1635 | { | |
1636 | wxFont * resultptr; | |
1637 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 1638 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
1639 | } |
1640 | return resultobj; | |
1641 | fail: | |
1642 | return NULL; | |
1643 | } | |
1644 | ||
1645 | ||
1646 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1647 | PyObject *resultobj; | |
1648 | int arg1 ; | |
1649 | int result; | |
994141e6 | 1650 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1651 | char *kwnames[] = { |
1652 | (char *) "index", NULL | |
1653 | }; | |
1654 | ||
994141e6 | 1655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1656 | arg1 = (wxSystemMetric) SWIG_AsInt(obj0); |
1657 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1658 | { |
1659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1660 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1661 | ||
1662 | wxPyEndAllowThreads(__tstate); | |
1663 | if (PyErr_Occurred()) SWIG_fail; | |
1664 | } | |
15afbcd0 | 1665 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1666 | return resultobj; |
1667 | fail: | |
1668 | return NULL; | |
1669 | } | |
1670 | ||
1671 | ||
1672 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1673 | PyObject *resultobj; | |
1674 | int arg1 ; | |
1675 | bool result; | |
994141e6 | 1676 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1677 | char *kwnames[] = { |
1678 | (char *) "index", NULL | |
1679 | }; | |
1680 | ||
994141e6 | 1681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1682 | arg1 = (wxSystemFeature) SWIG_AsInt(obj0); |
1683 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1684 | { |
1685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1686 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1687 | ||
1688 | wxPyEndAllowThreads(__tstate); | |
1689 | if (PyErr_Occurred()) SWIG_fail; | |
1690 | } | |
4f89f6a3 RD |
1691 | { |
1692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1693 | } | |
d14a1e28 RD |
1694 | return resultobj; |
1695 | fail: | |
1696 | return NULL; | |
1697 | } | |
1698 | ||
1699 | ||
1700 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1701 | PyObject *resultobj; | |
1702 | int result; | |
1703 | char *kwnames[] = { | |
1704 | NULL | |
1705 | }; | |
1706 | ||
1707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1708 | { | |
1709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1710 | result = (int)wxSystemSettings::GetScreenType(); | |
1711 | ||
1712 | wxPyEndAllowThreads(__tstate); | |
1713 | if (PyErr_Occurred()) SWIG_fail; | |
1714 | } | |
15afbcd0 | 1715 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1716 | return resultobj; |
1717 | fail: | |
1718 | return NULL; | |
1719 | } | |
1720 | ||
1721 | ||
1722 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1723 | PyObject *resultobj; | |
1724 | int arg1 ; | |
994141e6 | 1725 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1726 | char *kwnames[] = { |
1727 | (char *) "screen", NULL | |
1728 | }; | |
1729 | ||
994141e6 | 1730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1731 | arg1 = (wxSystemScreenType) SWIG_AsInt(obj0); |
1732 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1733 | { |
1734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1735 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1736 | ||
1737 | wxPyEndAllowThreads(__tstate); | |
1738 | if (PyErr_Occurred()) SWIG_fail; | |
1739 | } | |
1740 | Py_INCREF(Py_None); resultobj = Py_None; | |
1741 | return resultobj; | |
1742 | fail: | |
1743 | return NULL; | |
1744 | } | |
1745 | ||
1746 | ||
1747 | static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { | |
1748 | PyObject *obj; | |
1749 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1750 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1751 | Py_INCREF(obj); | |
1752 | return Py_BuildValue((char *)""); | |
1753 | } | |
1754 | static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1755 | PyObject *resultobj; | |
1756 | wxSystemOptions *result; | |
1757 | char *kwnames[] = { | |
1758 | NULL | |
1759 | }; | |
1760 | ||
1761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1762 | { | |
1763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1764 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1765 | ||
1766 | wxPyEndAllowThreads(__tstate); | |
1767 | if (PyErr_Occurred()) SWIG_fail; | |
1768 | } | |
15afbcd0 | 1769 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); |
d14a1e28 RD |
1770 | return resultobj; |
1771 | fail: | |
1772 | return NULL; | |
1773 | } | |
1774 | ||
1775 | ||
1776 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1777 | PyObject *resultobj; | |
1778 | wxString *arg1 = 0 ; | |
1779 | wxString *arg2 = 0 ; | |
e811c8ce RD |
1780 | bool temp1 = False ; |
1781 | bool temp2 = False ; | |
d14a1e28 RD |
1782 | PyObject * obj0 = 0 ; |
1783 | PyObject * obj1 = 0 ; | |
1784 | char *kwnames[] = { | |
1785 | (char *) "name",(char *) "value", NULL | |
1786 | }; | |
1787 | ||
1788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1789 | { | |
1790 | arg1 = wxString_in_helper(obj0); | |
1791 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1792 | temp1 = True; |
d14a1e28 RD |
1793 | } |
1794 | { | |
1795 | arg2 = wxString_in_helper(obj1); | |
1796 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 1797 | temp2 = True; |
d14a1e28 RD |
1798 | } |
1799 | { | |
1800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1801 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
1802 | ||
1803 | wxPyEndAllowThreads(__tstate); | |
1804 | if (PyErr_Occurred()) SWIG_fail; | |
1805 | } | |
1806 | Py_INCREF(Py_None); resultobj = Py_None; | |
1807 | { | |
1808 | if (temp1) | |
1809 | delete arg1; | |
1810 | } | |
1811 | { | |
1812 | if (temp2) | |
1813 | delete arg2; | |
1814 | } | |
1815 | return resultobj; | |
1816 | fail: | |
1817 | { | |
1818 | if (temp1) | |
1819 | delete arg1; | |
1820 | } | |
1821 | { | |
1822 | if (temp2) | |
1823 | delete arg2; | |
1824 | } | |
1825 | return NULL; | |
1826 | } | |
1827 | ||
1828 | ||
1829 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1830 | PyObject *resultobj; | |
1831 | wxString *arg1 = 0 ; | |
1832 | int arg2 ; | |
e811c8ce | 1833 | bool temp1 = False ; |
d14a1e28 | 1834 | PyObject * obj0 = 0 ; |
994141e6 | 1835 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1836 | char *kwnames[] = { |
1837 | (char *) "name",(char *) "value", NULL | |
1838 | }; | |
1839 | ||
994141e6 | 1840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
1841 | { |
1842 | arg1 = wxString_in_helper(obj0); | |
1843 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1844 | temp1 = True; |
d14a1e28 | 1845 | } |
15afbcd0 RD |
1846 | arg2 = (int) SWIG_AsInt(obj1); |
1847 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1848 | { |
1849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1850 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
1851 | ||
1852 | wxPyEndAllowThreads(__tstate); | |
1853 | if (PyErr_Occurred()) SWIG_fail; | |
1854 | } | |
1855 | Py_INCREF(Py_None); resultobj = Py_None; | |
1856 | { | |
1857 | if (temp1) | |
1858 | delete arg1; | |
1859 | } | |
1860 | return resultobj; | |
1861 | fail: | |
1862 | { | |
1863 | if (temp1) | |
1864 | delete arg1; | |
1865 | } | |
1866 | return NULL; | |
1867 | } | |
1868 | ||
1869 | ||
1870 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1871 | PyObject *resultobj; | |
1872 | wxString *arg1 = 0 ; | |
1873 | wxString result; | |
e811c8ce | 1874 | bool temp1 = False ; |
d14a1e28 RD |
1875 | PyObject * obj0 = 0 ; |
1876 | char *kwnames[] = { | |
1877 | (char *) "name", NULL | |
1878 | }; | |
1879 | ||
1880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
1881 | { | |
1882 | arg1 = wxString_in_helper(obj0); | |
1883 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1884 | temp1 = True; |
d14a1e28 RD |
1885 | } |
1886 | { | |
1887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1888 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
1889 | ||
1890 | wxPyEndAllowThreads(__tstate); | |
1891 | if (PyErr_Occurred()) SWIG_fail; | |
1892 | } | |
1893 | { | |
1894 | #if wxUSE_UNICODE | |
1895 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1896 | #else | |
1897 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1898 | #endif | |
1899 | } | |
1900 | { | |
1901 | if (temp1) | |
1902 | delete arg1; | |
1903 | } | |
1904 | return resultobj; | |
1905 | fail: | |
1906 | { | |
1907 | if (temp1) | |
1908 | delete arg1; | |
1909 | } | |
1910 | return NULL; | |
1911 | } | |
1912 | ||
1913 | ||
1914 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1915 | PyObject *resultobj; | |
1916 | wxString *arg1 = 0 ; | |
1917 | int result; | |
e811c8ce | 1918 | bool temp1 = False ; |
d14a1e28 RD |
1919 | PyObject * obj0 = 0 ; |
1920 | char *kwnames[] = { | |
1921 | (char *) "name", NULL | |
1922 | }; | |
1923 | ||
1924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
1925 | { | |
1926 | arg1 = wxString_in_helper(obj0); | |
1927 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1928 | temp1 = True; |
d14a1e28 RD |
1929 | } |
1930 | { | |
1931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1932 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
1933 | ||
1934 | wxPyEndAllowThreads(__tstate); | |
1935 | if (PyErr_Occurred()) SWIG_fail; | |
1936 | } | |
15afbcd0 | 1937 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1938 | { |
1939 | if (temp1) | |
1940 | delete arg1; | |
1941 | } | |
1942 | return resultobj; | |
1943 | fail: | |
1944 | { | |
1945 | if (temp1) | |
1946 | delete arg1; | |
1947 | } | |
1948 | return NULL; | |
1949 | } | |
1950 | ||
1951 | ||
1952 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1953 | PyObject *resultobj; | |
1954 | wxString *arg1 = 0 ; | |
1955 | bool result; | |
e811c8ce | 1956 | bool temp1 = False ; |
d14a1e28 RD |
1957 | PyObject * obj0 = 0 ; |
1958 | char *kwnames[] = { | |
1959 | (char *) "name", NULL | |
1960 | }; | |
1961 | ||
1962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
1963 | { | |
1964 | arg1 = wxString_in_helper(obj0); | |
1965 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1966 | temp1 = True; |
d14a1e28 RD |
1967 | } |
1968 | { | |
1969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1970 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
1971 | ||
1972 | wxPyEndAllowThreads(__tstate); | |
1973 | if (PyErr_Occurred()) SWIG_fail; | |
1974 | } | |
4f89f6a3 RD |
1975 | { |
1976 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1977 | } | |
d14a1e28 RD |
1978 | { |
1979 | if (temp1) | |
1980 | delete arg1; | |
1981 | } | |
1982 | return resultobj; | |
1983 | fail: | |
1984 | { | |
1985 | if (temp1) | |
1986 | delete arg1; | |
1987 | } | |
1988 | return NULL; | |
1989 | } | |
1990 | ||
1991 | ||
1992 | static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) { | |
1993 | PyObject *obj; | |
1994 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1995 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
1996 | Py_INCREF(obj); | |
1997 | return Py_BuildValue((char *)""); | |
1998 | } | |
b2dc1044 RD |
1999 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { |
2000 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
2001 | return 1; | |
2002 | } | |
2003 | ||
2004 | ||
2005 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
2006 | PyObject *pyobj; | |
2007 | ||
2008 | { | |
2009 | #if wxUSE_UNICODE | |
2010 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2011 | #else | |
2012 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2013 | #endif | |
2014 | } | |
2015 | return pyobj; | |
2016 | } | |
2017 | ||
2018 | ||
2019 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
2020 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
2021 | return 1; | |
2022 | } | |
2023 | ||
2024 | ||
2025 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
2026 | PyObject *pyobj; | |
2027 | ||
2028 | { | |
2029 | #if wxUSE_UNICODE | |
2030 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2031 | #else | |
2032 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2033 | #endif | |
2034 | } | |
2035 | return pyobj; | |
2036 | } | |
2037 | ||
2038 | ||
2039 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
2040 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
2041 | return 1; | |
2042 | } | |
2043 | ||
2044 | ||
2045 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
2046 | PyObject *pyobj; | |
2047 | ||
2048 | { | |
2049 | #if wxUSE_UNICODE | |
2050 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2051 | #else | |
2052 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2053 | #endif | |
2054 | } | |
2055 | return pyobj; | |
2056 | } | |
2057 | ||
2058 | ||
d14a1e28 RD |
2059 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { |
2060 | PyObject *resultobj; | |
2061 | long result; | |
2062 | char *kwnames[] = { | |
2063 | NULL | |
2064 | }; | |
2065 | ||
2066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
2067 | { | |
2068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2069 | result = (long)wxNewId(); | |
2070 | ||
2071 | wxPyEndAllowThreads(__tstate); | |
2072 | if (PyErr_Occurred()) SWIG_fail; | |
2073 | } | |
15afbcd0 | 2074 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2075 | return resultobj; |
2076 | fail: | |
2077 | return NULL; | |
2078 | } | |
2079 | ||
2080 | ||
2081 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2082 | PyObject *resultobj; | |
2083 | long arg1 ; | |
994141e6 | 2084 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2085 | char *kwnames[] = { |
2086 | (char *) "id", NULL | |
2087 | }; | |
2088 | ||
994141e6 | 2089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2090 | arg1 = (long) SWIG_AsLong(obj0); |
2091 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2092 | { |
2093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2094 | wxRegisterId(arg1); | |
2095 | ||
2096 | wxPyEndAllowThreads(__tstate); | |
2097 | if (PyErr_Occurred()) SWIG_fail; | |
2098 | } | |
2099 | Py_INCREF(Py_None); resultobj = Py_None; | |
2100 | return resultobj; | |
2101 | fail: | |
2102 | return NULL; | |
2103 | } | |
2104 | ||
2105 | ||
2106 | static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2107 | PyObject *resultobj; | |
2108 | long result; | |
2109 | char *kwnames[] = { | |
2110 | NULL | |
2111 | }; | |
2112 | ||
2113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
2114 | { | |
2115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2116 | result = (long)wxGetCurrentId(); | |
2117 | ||
2118 | wxPyEndAllowThreads(__tstate); | |
2119 | if (PyErr_Occurred()) SWIG_fail; | |
2120 | } | |
15afbcd0 | 2121 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2122 | return resultobj; |
2123 | fail: | |
2124 | return NULL; | |
2125 | } | |
2126 | ||
2127 | ||
2128 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2129 | PyObject *resultobj; | |
2130 | char *kwnames[] = { | |
2131 | NULL | |
2132 | }; | |
2133 | ||
2134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
2135 | { | |
2136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2137 | wxBell(); | |
2138 | ||
2139 | wxPyEndAllowThreads(__tstate); | |
2140 | if (PyErr_Occurred()) SWIG_fail; | |
2141 | } | |
2142 | Py_INCREF(Py_None); resultobj = Py_None; | |
2143 | return resultobj; | |
2144 | fail: | |
2145 | return NULL; | |
2146 | } | |
2147 | ||
2148 | ||
2149 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2150 | PyObject *resultobj; | |
2151 | char *kwnames[] = { | |
2152 | NULL | |
2153 | }; | |
2154 | ||
2155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
2156 | { | |
2157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2158 | wxEndBusyCursor(); | |
2159 | ||
2160 | wxPyEndAllowThreads(__tstate); | |
2161 | if (PyErr_Occurred()) SWIG_fail; | |
2162 | } | |
2163 | Py_INCREF(Py_None); resultobj = Py_None; | |
2164 | return resultobj; | |
2165 | fail: | |
2166 | return NULL; | |
2167 | } | |
2168 | ||
2169 | ||
2170 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2171 | PyObject *resultobj; | |
e811c8ce | 2172 | bool arg1 = (bool) True ; |
d14a1e28 RD |
2173 | long result; |
2174 | PyObject * obj0 = 0 ; | |
2175 | char *kwnames[] = { | |
2176 | (char *) "resetTimer", NULL | |
2177 | }; | |
2178 | ||
2179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
2180 | if (obj0) { | |
15afbcd0 RD |
2181 | arg1 = (bool) SWIG_AsBool(obj0); |
2182 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2183 | } |
2184 | { | |
2185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2186 | result = (long)wxGetElapsedTime(arg1); | |
2187 | ||
2188 | wxPyEndAllowThreads(__tstate); | |
2189 | if (PyErr_Occurred()) SWIG_fail; | |
2190 | } | |
15afbcd0 | 2191 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2192 | return resultobj; |
2193 | fail: | |
2194 | return NULL; | |
2195 | } | |
2196 | ||
2197 | ||
2198 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2199 | PyObject *resultobj; | |
2200 | int *arg1 = (int *) 0 ; | |
2201 | int *arg2 = (int *) 0 ; | |
2202 | int temp1 ; | |
2203 | int temp2 ; | |
2204 | char *kwnames[] = { | |
2205 | NULL | |
2206 | }; | |
2207 | ||
2208 | arg1 = &temp1; | |
2209 | arg2 = &temp2; | |
2210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
2211 | { | |
2212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2213 | wxGetMousePosition(arg1,arg2); | |
2214 | ||
2215 | wxPyEndAllowThreads(__tstate); | |
2216 | if (PyErr_Occurred()) SWIG_fail; | |
2217 | } | |
2218 | Py_INCREF(Py_None); resultobj = Py_None; | |
2219 | { | |
2220 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2221 | resultobj = t_output_helper(resultobj,o); | |
2222 | } | |
2223 | { | |
2224 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2225 | resultobj = t_output_helper(resultobj,o); | |
2226 | } | |
2227 | return resultobj; | |
2228 | fail: | |
2229 | return NULL; | |
2230 | } | |
2231 | ||
2232 | ||
2233 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2234 | PyObject *resultobj; | |
2235 | bool result; | |
2236 | char *kwnames[] = { | |
2237 | NULL | |
2238 | }; | |
2239 | ||
2240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
2241 | { | |
2242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2243 | result = (bool)wxIsBusy(); | |
2244 | ||
2245 | wxPyEndAllowThreads(__tstate); | |
2246 | if (PyErr_Occurred()) SWIG_fail; | |
2247 | } | |
4f89f6a3 RD |
2248 | { |
2249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2250 | } | |
d14a1e28 RD |
2251 | return resultobj; |
2252 | fail: | |
2253 | return NULL; | |
2254 | } | |
2255 | ||
2256 | ||
2257 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2258 | PyObject *resultobj; | |
2259 | wxString result; | |
2260 | char *kwnames[] = { | |
2261 | NULL | |
2262 | }; | |
2263 | ||
2264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
2265 | { | |
2266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2267 | result = wxNow(); | |
2268 | ||
2269 | wxPyEndAllowThreads(__tstate); | |
2270 | if (PyErr_Occurred()) SWIG_fail; | |
2271 | } | |
2272 | { | |
2273 | #if wxUSE_UNICODE | |
2274 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2275 | #else | |
2276 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2277 | #endif | |
2278 | } | |
2279 | return resultobj; | |
2280 | fail: | |
2281 | return NULL; | |
2282 | } | |
2283 | ||
2284 | ||
2285 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2286 | PyObject *resultobj; | |
2287 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2288 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2289 | bool result; | |
e811c8ce | 2290 | bool temp1 = False ; |
d14a1e28 RD |
2291 | PyObject * obj0 = 0 ; |
2292 | char *kwnames[] = { | |
2293 | (char *) "command", NULL | |
2294 | }; | |
2295 | ||
2296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
2297 | if (obj0) { | |
2298 | { | |
2299 | arg1 = wxString_in_helper(obj0); | |
2300 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2301 | temp1 = True; |
d14a1e28 RD |
2302 | } |
2303 | } | |
2304 | { | |
2305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2306 | result = (bool)wxShell((wxString const &)*arg1); | |
2307 | ||
2308 | wxPyEndAllowThreads(__tstate); | |
2309 | if (PyErr_Occurred()) SWIG_fail; | |
2310 | } | |
4f89f6a3 RD |
2311 | { |
2312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2313 | } | |
d14a1e28 RD |
2314 | { |
2315 | if (temp1) | |
2316 | delete arg1; | |
2317 | } | |
2318 | return resultobj; | |
2319 | fail: | |
2320 | { | |
2321 | if (temp1) | |
2322 | delete arg1; | |
2323 | } | |
2324 | return NULL; | |
2325 | } | |
2326 | ||
2327 | ||
2328 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2329 | PyObject *resultobj; | |
2330 | char *kwnames[] = { | |
2331 | NULL | |
2332 | }; | |
2333 | ||
2334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2335 | { | |
2336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2337 | wxStartTimer(); | |
2338 | ||
2339 | wxPyEndAllowThreads(__tstate); | |
2340 | if (PyErr_Occurred()) SWIG_fail; | |
2341 | } | |
2342 | Py_INCREF(Py_None); resultobj = Py_None; | |
2343 | return resultobj; | |
2344 | fail: | |
2345 | return NULL; | |
2346 | } | |
2347 | ||
2348 | ||
2349 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2350 | PyObject *resultobj; | |
2351 | int *arg1 = (int *) 0 ; | |
2352 | int *arg2 = (int *) 0 ; | |
2353 | int result; | |
2354 | int temp1 ; | |
2355 | int temp2 ; | |
2356 | char *kwnames[] = { | |
2357 | NULL | |
2358 | }; | |
2359 | ||
2360 | arg1 = &temp1; | |
2361 | arg2 = &temp2; | |
2362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
2363 | { | |
2364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2365 | result = (int)wxGetOsVersion(arg1,arg2); | |
2366 | ||
2367 | wxPyEndAllowThreads(__tstate); | |
2368 | if (PyErr_Occurred()) SWIG_fail; | |
2369 | } | |
15afbcd0 | 2370 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2371 | { |
2372 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2373 | resultobj = t_output_helper(resultobj,o); | |
2374 | } | |
2375 | { | |
2376 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2377 | resultobj = t_output_helper(resultobj,o); | |
2378 | } | |
2379 | return resultobj; | |
2380 | fail: | |
2381 | return NULL; | |
2382 | } | |
2383 | ||
2384 | ||
2385 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2386 | PyObject *resultobj; | |
2387 | wxString result; | |
2388 | char *kwnames[] = { | |
2389 | NULL | |
2390 | }; | |
2391 | ||
2392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2393 | { | |
2394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2395 | result = wxGetOsDescription(); | |
2396 | ||
2397 | wxPyEndAllowThreads(__tstate); | |
2398 | if (PyErr_Occurred()) SWIG_fail; | |
2399 | } | |
2400 | { | |
2401 | #if wxUSE_UNICODE | |
2402 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2403 | #else | |
2404 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2405 | #endif | |
2406 | } | |
2407 | return resultobj; | |
2408 | fail: | |
2409 | return NULL; | |
2410 | } | |
2411 | ||
2412 | ||
2413 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2414 | PyObject *resultobj; | |
2415 | long result; | |
2416 | char *kwnames[] = { | |
2417 | NULL | |
2418 | }; | |
2419 | ||
2420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2421 | { | |
2422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2423 | result = (long)wxGetFreeMemory(); | |
2424 | ||
2425 | wxPyEndAllowThreads(__tstate); | |
2426 | if (PyErr_Occurred()) SWIG_fail; | |
2427 | } | |
15afbcd0 | 2428 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2429 | return resultobj; |
2430 | fail: | |
2431 | return NULL; | |
2432 | } | |
2433 | ||
2434 | ||
2435 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2436 | PyObject *resultobj; | |
2437 | int arg1 ; | |
2438 | bool result; | |
994141e6 | 2439 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2440 | char *kwnames[] = { |
2441 | (char *) "wFlags", NULL | |
2442 | }; | |
2443 | ||
994141e6 | 2444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2445 | arg1 = (wxShutdownFlags) SWIG_AsInt(obj0); |
2446 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2447 | { |
2448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2449 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2450 | ||
2451 | wxPyEndAllowThreads(__tstate); | |
2452 | if (PyErr_Occurred()) SWIG_fail; | |
2453 | } | |
4f89f6a3 RD |
2454 | { |
2455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2456 | } | |
d14a1e28 RD |
2457 | return resultobj; |
2458 | fail: | |
2459 | return NULL; | |
2460 | } | |
2461 | ||
2462 | ||
2463 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2464 | PyObject *resultobj; | |
2465 | int arg1 ; | |
994141e6 | 2466 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2467 | char *kwnames[] = { |
2468 | (char *) "secs", NULL | |
2469 | }; | |
2470 | ||
994141e6 | 2471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2472 | arg1 = (int) SWIG_AsInt(obj0); |
2473 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2474 | { |
2475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2476 | wxSleep(arg1); | |
2477 | ||
2478 | wxPyEndAllowThreads(__tstate); | |
2479 | if (PyErr_Occurred()) SWIG_fail; | |
2480 | } | |
2481 | Py_INCREF(Py_None); resultobj = Py_None; | |
2482 | return resultobj; | |
2483 | fail: | |
2484 | return NULL; | |
2485 | } | |
2486 | ||
2487 | ||
2488 | static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2489 | PyObject *resultobj; | |
2490 | unsigned long arg1 ; | |
2491 | PyObject * obj0 = 0 ; | |
2492 | char *kwnames[] = { | |
2493 | (char *) "milliseconds", NULL | |
2494 | }; | |
2495 | ||
2496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2497 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
2498 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2499 | { |
2500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2501 | wxUsleep(arg1); | |
2502 | ||
2503 | wxPyEndAllowThreads(__tstate); | |
2504 | if (PyErr_Occurred()) SWIG_fail; | |
2505 | } | |
2506 | Py_INCREF(Py_None); resultobj = Py_None; | |
2507 | return resultobj; | |
2508 | fail: | |
2509 | return NULL; | |
2510 | } | |
2511 | ||
2512 | ||
2513 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2514 | PyObject *resultobj; | |
2515 | bool arg1 ; | |
2516 | PyObject * obj0 = 0 ; | |
2517 | char *kwnames[] = { | |
2518 | (char *) "enable", NULL | |
2519 | }; | |
2520 | ||
2521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2522 | arg1 = (bool) SWIG_AsBool(obj0); |
2523 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2524 | { |
2525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2526 | wxEnableTopLevelWindows(arg1); | |
2527 | ||
2528 | wxPyEndAllowThreads(__tstate); | |
2529 | if (PyErr_Occurred()) SWIG_fail; | |
2530 | } | |
2531 | Py_INCREF(Py_None); resultobj = Py_None; | |
2532 | return resultobj; | |
2533 | fail: | |
2534 | return NULL; | |
2535 | } | |
2536 | ||
2537 | ||
2538 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2539 | PyObject *resultobj; | |
2540 | wxString *arg1 = 0 ; | |
2541 | wxString result; | |
e811c8ce | 2542 | bool temp1 = False ; |
d14a1e28 RD |
2543 | PyObject * obj0 = 0 ; |
2544 | char *kwnames[] = { | |
2545 | (char *) "in", NULL | |
2546 | }; | |
2547 | ||
2548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2549 | { | |
2550 | arg1 = wxString_in_helper(obj0); | |
2551 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2552 | temp1 = True; |
d14a1e28 RD |
2553 | } |
2554 | { | |
2555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2556 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2557 | ||
2558 | wxPyEndAllowThreads(__tstate); | |
2559 | if (PyErr_Occurred()) SWIG_fail; | |
2560 | } | |
2561 | { | |
2562 | #if wxUSE_UNICODE | |
2563 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2564 | #else | |
2565 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2566 | #endif | |
2567 | } | |
2568 | { | |
2569 | if (temp1) | |
2570 | delete arg1; | |
2571 | } | |
2572 | return resultobj; | |
2573 | fail: | |
2574 | { | |
2575 | if (temp1) | |
2576 | delete arg1; | |
2577 | } | |
2578 | return NULL; | |
2579 | } | |
2580 | ||
2581 | ||
2582 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2583 | PyObject *resultobj; | |
2584 | wxString result; | |
2585 | char *kwnames[] = { | |
2586 | NULL | |
2587 | }; | |
2588 | ||
2589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2590 | { | |
2591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2592 | result = wxGetEmailAddress(); | |
2593 | ||
2594 | wxPyEndAllowThreads(__tstate); | |
2595 | if (PyErr_Occurred()) SWIG_fail; | |
2596 | } | |
2597 | { | |
2598 | #if wxUSE_UNICODE | |
2599 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2600 | #else | |
2601 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2602 | #endif | |
2603 | } | |
2604 | return resultobj; | |
2605 | fail: | |
2606 | return NULL; | |
2607 | } | |
2608 | ||
2609 | ||
2610 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2611 | PyObject *resultobj; | |
2612 | wxString result; | |
2613 | char *kwnames[] = { | |
2614 | NULL | |
2615 | }; | |
2616 | ||
2617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2618 | { | |
2619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2620 | result = wxGetHostName(); | |
2621 | ||
2622 | wxPyEndAllowThreads(__tstate); | |
2623 | if (PyErr_Occurred()) SWIG_fail; | |
2624 | } | |
2625 | { | |
2626 | #if wxUSE_UNICODE | |
2627 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2628 | #else | |
2629 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2630 | #endif | |
2631 | } | |
2632 | return resultobj; | |
2633 | fail: | |
2634 | return NULL; | |
2635 | } | |
2636 | ||
2637 | ||
2638 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2639 | PyObject *resultobj; | |
2640 | wxString result; | |
2641 | char *kwnames[] = { | |
2642 | NULL | |
2643 | }; | |
2644 | ||
2645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2646 | { | |
2647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2648 | result = wxGetFullHostName(); | |
2649 | ||
2650 | wxPyEndAllowThreads(__tstate); | |
2651 | if (PyErr_Occurred()) SWIG_fail; | |
2652 | } | |
2653 | { | |
2654 | #if wxUSE_UNICODE | |
2655 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2656 | #else | |
2657 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2658 | #endif | |
2659 | } | |
2660 | return resultobj; | |
2661 | fail: | |
2662 | return NULL; | |
2663 | } | |
2664 | ||
2665 | ||
2666 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2667 | PyObject *resultobj; | |
2668 | wxString result; | |
2669 | char *kwnames[] = { | |
2670 | NULL | |
2671 | }; | |
2672 | ||
2673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2674 | { | |
2675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2676 | result = wxGetUserId(); | |
2677 | ||
2678 | wxPyEndAllowThreads(__tstate); | |
2679 | if (PyErr_Occurred()) SWIG_fail; | |
2680 | } | |
2681 | { | |
2682 | #if wxUSE_UNICODE | |
2683 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2684 | #else | |
2685 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2686 | #endif | |
2687 | } | |
2688 | return resultobj; | |
2689 | fail: | |
2690 | return NULL; | |
2691 | } | |
2692 | ||
2693 | ||
2694 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2695 | PyObject *resultobj; | |
2696 | wxString result; | |
2697 | char *kwnames[] = { | |
2698 | NULL | |
2699 | }; | |
2700 | ||
2701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2702 | { | |
2703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2704 | result = wxGetUserName(); | |
2705 | ||
2706 | wxPyEndAllowThreads(__tstate); | |
2707 | if (PyErr_Occurred()) SWIG_fail; | |
2708 | } | |
2709 | { | |
2710 | #if wxUSE_UNICODE | |
2711 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2712 | #else | |
2713 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2714 | #endif | |
2715 | } | |
2716 | return resultobj; | |
2717 | fail: | |
2718 | return NULL; | |
2719 | } | |
2720 | ||
2721 | ||
2722 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2723 | PyObject *resultobj; | |
2724 | wxString result; | |
2725 | char *kwnames[] = { | |
2726 | NULL | |
2727 | }; | |
2728 | ||
2729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2730 | { | |
2731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2732 | result = wxGetHomeDir(); | |
2733 | ||
2734 | wxPyEndAllowThreads(__tstate); | |
2735 | if (PyErr_Occurred()) SWIG_fail; | |
2736 | } | |
2737 | { | |
2738 | #if wxUSE_UNICODE | |
2739 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2740 | #else | |
2741 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2742 | #endif | |
2743 | } | |
2744 | return resultobj; | |
2745 | fail: | |
2746 | return NULL; | |
2747 | } | |
2748 | ||
2749 | ||
2750 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2751 | PyObject *resultobj; | |
2752 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2753 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2754 | wxString result; | |
e811c8ce | 2755 | bool temp1 = False ; |
d14a1e28 RD |
2756 | PyObject * obj0 = 0 ; |
2757 | char *kwnames[] = { | |
2758 | (char *) "user", NULL | |
2759 | }; | |
2760 | ||
2761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2762 | if (obj0) { | |
2763 | { | |
2764 | arg1 = wxString_in_helper(obj0); | |
2765 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2766 | temp1 = True; |
d14a1e28 RD |
2767 | } |
2768 | } | |
2769 | { | |
2770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2771 | result = wxGetUserHome((wxString const &)*arg1); | |
2772 | ||
2773 | wxPyEndAllowThreads(__tstate); | |
2774 | if (PyErr_Occurred()) SWIG_fail; | |
2775 | } | |
2776 | { | |
2777 | #if wxUSE_UNICODE | |
2778 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2779 | #else | |
2780 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2781 | #endif | |
2782 | } | |
2783 | { | |
2784 | if (temp1) | |
2785 | delete arg1; | |
2786 | } | |
2787 | return resultobj; | |
2788 | fail: | |
2789 | { | |
2790 | if (temp1) | |
2791 | delete arg1; | |
2792 | } | |
2793 | return NULL; | |
2794 | } | |
2795 | ||
2796 | ||
2797 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2798 | PyObject *resultobj; | |
2799 | unsigned long result; | |
2800 | char *kwnames[] = { | |
2801 | NULL | |
2802 | }; | |
2803 | ||
2804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2805 | { | |
2806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2807 | result = (unsigned long)wxGetProcessId(); | |
2808 | ||
2809 | wxPyEndAllowThreads(__tstate); | |
2810 | if (PyErr_Occurred()) SWIG_fail; | |
2811 | } | |
15afbcd0 | 2812 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
2813 | return resultobj; |
2814 | fail: | |
2815 | return NULL; | |
2816 | } | |
2817 | ||
2818 | ||
2819 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2820 | PyObject *resultobj; | |
2821 | char *kwnames[] = { | |
2822 | NULL | |
2823 | }; | |
2824 | ||
2825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
2826 | { | |
2827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2828 | wxTrap(); | |
2829 | ||
2830 | wxPyEndAllowThreads(__tstate); | |
2831 | if (PyErr_Occurred()) SWIG_fail; | |
2832 | } | |
2833 | Py_INCREF(Py_None); resultobj = Py_None; | |
2834 | return resultobj; | |
2835 | fail: | |
2836 | return NULL; | |
2837 | } | |
2838 | ||
2839 | ||
2840 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2841 | PyObject *resultobj; | |
2842 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
2843 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2844 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2845 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2846 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2847 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2848 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2849 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2850 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
2851 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2852 | int arg6 = (int) 0 ; | |
2853 | wxWindow *arg7 = (wxWindow *) NULL ; | |
2854 | int arg8 = (int) -1 ; | |
2855 | int arg9 = (int) -1 ; | |
2856 | wxString result; | |
e811c8ce RD |
2857 | bool temp1 = False ; |
2858 | bool temp2 = False ; | |
2859 | bool temp3 = False ; | |
2860 | bool temp4 = False ; | |
2861 | bool temp5 = False ; | |
d14a1e28 RD |
2862 | PyObject * obj0 = 0 ; |
2863 | PyObject * obj1 = 0 ; | |
2864 | PyObject * obj2 = 0 ; | |
2865 | PyObject * obj3 = 0 ; | |
2866 | PyObject * obj4 = 0 ; | |
994141e6 | 2867 | PyObject * obj5 = 0 ; |
d14a1e28 | 2868 | PyObject * obj6 = 0 ; |
994141e6 RD |
2869 | PyObject * obj7 = 0 ; |
2870 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
2871 | char *kwnames[] = { |
2872 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
2873 | }; | |
2874 | ||
994141e6 | 2875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
2876 | if (obj0) { |
2877 | { | |
2878 | arg1 = wxString_in_helper(obj0); | |
2879 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2880 | temp1 = True; |
d14a1e28 RD |
2881 | } |
2882 | } | |
2883 | if (obj1) { | |
2884 | { | |
2885 | arg2 = wxString_in_helper(obj1); | |
2886 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2887 | temp2 = True; |
d14a1e28 RD |
2888 | } |
2889 | } | |
2890 | if (obj2) { | |
2891 | { | |
2892 | arg3 = wxString_in_helper(obj2); | |
2893 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2894 | temp3 = True; |
d14a1e28 RD |
2895 | } |
2896 | } | |
2897 | if (obj3) { | |
2898 | { | |
2899 | arg4 = wxString_in_helper(obj3); | |
2900 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 2901 | temp4 = True; |
d14a1e28 RD |
2902 | } |
2903 | } | |
2904 | if (obj4) { | |
2905 | { | |
2906 | arg5 = wxString_in_helper(obj4); | |
2907 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 2908 | temp5 = True; |
d14a1e28 RD |
2909 | } |
2910 | } | |
994141e6 | 2911 | if (obj5) { |
15afbcd0 RD |
2912 | arg6 = (int) SWIG_AsInt(obj5); |
2913 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2914 | } |
d14a1e28 | 2915 | if (obj6) { |
15afbcd0 RD |
2916 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, |
2917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 2918 | } |
994141e6 | 2919 | if (obj7) { |
15afbcd0 RD |
2920 | arg8 = (int) SWIG_AsInt(obj7); |
2921 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
2922 | } |
2923 | if (obj8) { | |
15afbcd0 RD |
2924 | arg9 = (int) SWIG_AsInt(obj8); |
2925 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2926 | } |
d14a1e28 RD |
2927 | { |
2928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2929 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
2930 | ||
2931 | wxPyEndAllowThreads(__tstate); | |
2932 | if (PyErr_Occurred()) SWIG_fail; | |
2933 | } | |
2934 | { | |
2935 | #if wxUSE_UNICODE | |
2936 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2937 | #else | |
2938 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2939 | #endif | |
2940 | } | |
2941 | { | |
2942 | if (temp1) | |
2943 | delete arg1; | |
2944 | } | |
2945 | { | |
2946 | if (temp2) | |
2947 | delete arg2; | |
2948 | } | |
2949 | { | |
2950 | if (temp3) | |
2951 | delete arg3; | |
2952 | } | |
2953 | { | |
2954 | if (temp4) | |
2955 | delete arg4; | |
2956 | } | |
2957 | { | |
2958 | if (temp5) | |
2959 | delete arg5; | |
2960 | } | |
2961 | return resultobj; | |
2962 | fail: | |
2963 | { | |
2964 | if (temp1) | |
2965 | delete arg1; | |
2966 | } | |
2967 | { | |
2968 | if (temp2) | |
2969 | delete arg2; | |
2970 | } | |
2971 | { | |
2972 | if (temp3) | |
2973 | delete arg3; | |
2974 | } | |
2975 | { | |
2976 | if (temp4) | |
2977 | delete arg4; | |
2978 | } | |
2979 | { | |
2980 | if (temp5) | |
2981 | delete arg5; | |
2982 | } | |
2983 | return NULL; | |
2984 | } | |
2985 | ||
2986 | ||
2987 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2988 | PyObject *resultobj; | |
2989 | wxString *arg1 = 0 ; | |
2990 | wxString *arg2 = 0 ; | |
2991 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2992 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2993 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2994 | wxString result; | |
e811c8ce RD |
2995 | bool temp1 = False ; |
2996 | bool temp2 = False ; | |
2997 | bool temp3 = False ; | |
d14a1e28 RD |
2998 | PyObject * obj0 = 0 ; |
2999 | PyObject * obj1 = 0 ; | |
3000 | PyObject * obj2 = 0 ; | |
3001 | PyObject * obj3 = 0 ; | |
3002 | char *kwnames[] = { | |
3003 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3004 | }; | |
3005 | ||
3006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3007 | { | |
3008 | arg1 = wxString_in_helper(obj0); | |
3009 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3010 | temp1 = True; |
d14a1e28 RD |
3011 | } |
3012 | { | |
3013 | arg2 = wxString_in_helper(obj1); | |
3014 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3015 | temp2 = True; |
d14a1e28 RD |
3016 | } |
3017 | if (obj2) { | |
3018 | { | |
3019 | arg3 = wxString_in_helper(obj2); | |
3020 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3021 | temp3 = True; |
d14a1e28 RD |
3022 | } |
3023 | } | |
3024 | if (obj3) { | |
15afbcd0 RD |
3025 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3027 | } |
3028 | { | |
3029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3030 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3031 | ||
3032 | wxPyEndAllowThreads(__tstate); | |
3033 | if (PyErr_Occurred()) SWIG_fail; | |
3034 | } | |
3035 | { | |
3036 | #if wxUSE_UNICODE | |
3037 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3038 | #else | |
3039 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3040 | #endif | |
3041 | } | |
3042 | { | |
3043 | if (temp1) | |
3044 | delete arg1; | |
3045 | } | |
3046 | { | |
3047 | if (temp2) | |
3048 | delete arg2; | |
3049 | } | |
3050 | { | |
3051 | if (temp3) | |
3052 | delete arg3; | |
3053 | } | |
3054 | return resultobj; | |
3055 | fail: | |
3056 | { | |
3057 | if (temp1) | |
3058 | delete arg1; | |
3059 | } | |
3060 | { | |
3061 | if (temp2) | |
3062 | delete arg2; | |
3063 | } | |
3064 | { | |
3065 | if (temp3) | |
3066 | delete arg3; | |
3067 | } | |
3068 | return NULL; | |
3069 | } | |
3070 | ||
3071 | ||
3072 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3073 | PyObject *resultobj; | |
3074 | wxString *arg1 = 0 ; | |
3075 | wxString *arg2 = 0 ; | |
3076 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3077 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3078 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3079 | wxString result; | |
e811c8ce RD |
3080 | bool temp1 = False ; |
3081 | bool temp2 = False ; | |
3082 | bool temp3 = False ; | |
d14a1e28 RD |
3083 | PyObject * obj0 = 0 ; |
3084 | PyObject * obj1 = 0 ; | |
3085 | PyObject * obj2 = 0 ; | |
3086 | PyObject * obj3 = 0 ; | |
3087 | char *kwnames[] = { | |
3088 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3089 | }; | |
3090 | ||
3091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3092 | { | |
3093 | arg1 = wxString_in_helper(obj0); | |
3094 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3095 | temp1 = True; |
d14a1e28 RD |
3096 | } |
3097 | { | |
3098 | arg2 = wxString_in_helper(obj1); | |
3099 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3100 | temp2 = True; |
d14a1e28 RD |
3101 | } |
3102 | if (obj2) { | |
3103 | { | |
3104 | arg3 = wxString_in_helper(obj2); | |
3105 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3106 | temp3 = True; |
d14a1e28 RD |
3107 | } |
3108 | } | |
3109 | if (obj3) { | |
15afbcd0 RD |
3110 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3112 | } |
3113 | { | |
3114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3115 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3116 | ||
3117 | wxPyEndAllowThreads(__tstate); | |
3118 | if (PyErr_Occurred()) SWIG_fail; | |
3119 | } | |
3120 | { | |
3121 | #if wxUSE_UNICODE | |
3122 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3123 | #else | |
3124 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3125 | #endif | |
3126 | } | |
3127 | { | |
3128 | if (temp1) | |
3129 | delete arg1; | |
3130 | } | |
3131 | { | |
3132 | if (temp2) | |
3133 | delete arg2; | |
3134 | } | |
3135 | { | |
3136 | if (temp3) | |
3137 | delete arg3; | |
3138 | } | |
3139 | return resultobj; | |
3140 | fail: | |
3141 | { | |
3142 | if (temp1) | |
3143 | delete arg1; | |
3144 | } | |
3145 | { | |
3146 | if (temp2) | |
3147 | delete arg2; | |
3148 | } | |
3149 | { | |
3150 | if (temp3) | |
3151 | delete arg3; | |
3152 | } | |
3153 | return NULL; | |
3154 | } | |
3155 | ||
3156 | ||
3157 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3158 | PyObject *resultobj; | |
3159 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
3160 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3161 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3162 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3163 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
3164 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3165 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3166 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3167 | wxString result; | |
e811c8ce RD |
3168 | bool temp1 = False ; |
3169 | bool temp2 = False ; | |
d14a1e28 RD |
3170 | wxPoint temp4 ; |
3171 | PyObject * obj0 = 0 ; | |
3172 | PyObject * obj1 = 0 ; | |
994141e6 | 3173 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3174 | PyObject * obj3 = 0 ; |
3175 | PyObject * obj4 = 0 ; | |
3176 | char *kwnames[] = { | |
3177 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
3178 | }; | |
3179 | ||
994141e6 | 3180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
3181 | if (obj0) { |
3182 | { | |
3183 | arg1 = wxString_in_helper(obj0); | |
3184 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3185 | temp1 = True; |
d14a1e28 RD |
3186 | } |
3187 | } | |
3188 | if (obj1) { | |
3189 | { | |
3190 | arg2 = wxString_in_helper(obj1); | |
3191 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3192 | temp2 = True; |
d14a1e28 RD |
3193 | } |
3194 | } | |
994141e6 | 3195 | if (obj2) { |
15afbcd0 RD |
3196 | arg3 = (long) SWIG_AsLong(obj2); |
3197 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3198 | } |
d14a1e28 RD |
3199 | if (obj3) { |
3200 | { | |
3201 | arg4 = &temp4; | |
3202 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3203 | } | |
3204 | } | |
3205 | if (obj4) { | |
15afbcd0 RD |
3206 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3208 | } |
3209 | { | |
3210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3211 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
3212 | ||
3213 | wxPyEndAllowThreads(__tstate); | |
3214 | if (PyErr_Occurred()) SWIG_fail; | |
3215 | } | |
3216 | { | |
3217 | #if wxUSE_UNICODE | |
3218 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3219 | #else | |
3220 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3221 | #endif | |
3222 | } | |
3223 | { | |
3224 | if (temp1) | |
3225 | delete arg1; | |
3226 | } | |
3227 | { | |
3228 | if (temp2) | |
3229 | delete arg2; | |
3230 | } | |
3231 | return resultobj; | |
3232 | fail: | |
3233 | { | |
3234 | if (temp1) | |
3235 | delete arg1; | |
3236 | } | |
3237 | { | |
3238 | if (temp2) | |
3239 | delete arg2; | |
3240 | } | |
3241 | return NULL; | |
3242 | } | |
3243 | ||
3244 | ||
3245 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3246 | PyObject *resultobj; | |
3247 | wxString *arg1 = 0 ; | |
3248 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3249 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3250 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3251 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3252 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3253 | int arg5 = (int) -1 ; | |
3254 | int arg6 = (int) -1 ; | |
e811c8ce | 3255 | bool arg7 = (bool) True ; |
d14a1e28 | 3256 | wxString result; |
e811c8ce RD |
3257 | bool temp1 = False ; |
3258 | bool temp2 = False ; | |
3259 | bool temp3 = False ; | |
d14a1e28 RD |
3260 | PyObject * obj0 = 0 ; |
3261 | PyObject * obj1 = 0 ; | |
3262 | PyObject * obj2 = 0 ; | |
3263 | PyObject * obj3 = 0 ; | |
994141e6 RD |
3264 | PyObject * obj4 = 0 ; |
3265 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
3266 | PyObject * obj6 = 0 ; |
3267 | char *kwnames[] = { | |
3268 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
3269 | }; | |
3270 | ||
994141e6 | 3271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
3272 | { |
3273 | arg1 = wxString_in_helper(obj0); | |
3274 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3275 | temp1 = True; |
d14a1e28 RD |
3276 | } |
3277 | if (obj1) { | |
3278 | { | |
3279 | arg2 = wxString_in_helper(obj1); | |
3280 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3281 | temp2 = True; |
d14a1e28 RD |
3282 | } |
3283 | } | |
3284 | if (obj2) { | |
3285 | { | |
3286 | arg3 = wxString_in_helper(obj2); | |
3287 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3288 | temp3 = True; |
d14a1e28 RD |
3289 | } |
3290 | } | |
3291 | if (obj3) { | |
15afbcd0 RD |
3292 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3294 | } |
994141e6 | 3295 | if (obj4) { |
15afbcd0 RD |
3296 | arg5 = (int) SWIG_AsInt(obj4); |
3297 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3298 | } |
3299 | if (obj5) { | |
15afbcd0 RD |
3300 | arg6 = (int) SWIG_AsInt(obj5); |
3301 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3302 | } |
d14a1e28 | 3303 | if (obj6) { |
15afbcd0 RD |
3304 | arg7 = (bool) SWIG_AsBool(obj6); |
3305 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3306 | } |
3307 | { | |
3308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3309 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
3310 | ||
3311 | wxPyEndAllowThreads(__tstate); | |
3312 | if (PyErr_Occurred()) SWIG_fail; | |
3313 | } | |
3314 | { | |
3315 | #if wxUSE_UNICODE | |
3316 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3317 | #else | |
3318 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3319 | #endif | |
3320 | } | |
3321 | { | |
3322 | if (temp1) | |
3323 | delete arg1; | |
3324 | } | |
3325 | { | |
3326 | if (temp2) | |
3327 | delete arg2; | |
3328 | } | |
3329 | { | |
3330 | if (temp3) | |
3331 | delete arg3; | |
3332 | } | |
3333 | return resultobj; | |
3334 | fail: | |
3335 | { | |
3336 | if (temp1) | |
3337 | delete arg1; | |
3338 | } | |
3339 | { | |
3340 | if (temp2) | |
3341 | delete arg2; | |
3342 | } | |
3343 | { | |
3344 | if (temp3) | |
3345 | delete arg3; | |
3346 | } | |
3347 | return NULL; | |
3348 | } | |
3349 | ||
3350 | ||
3351 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3352 | PyObject *resultobj; | |
3353 | wxString *arg1 = 0 ; | |
3354 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3355 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3356 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3357 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3358 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3359 | wxString result; | |
e811c8ce RD |
3360 | bool temp1 = False ; |
3361 | bool temp2 = False ; | |
3362 | bool temp3 = False ; | |
d14a1e28 RD |
3363 | PyObject * obj0 = 0 ; |
3364 | PyObject * obj1 = 0 ; | |
3365 | PyObject * obj2 = 0 ; | |
3366 | PyObject * obj3 = 0 ; | |
3367 | char *kwnames[] = { | |
3368 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3369 | }; | |
3370 | ||
3371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3372 | { | |
3373 | arg1 = wxString_in_helper(obj0); | |
3374 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3375 | temp1 = True; |
d14a1e28 RD |
3376 | } |
3377 | if (obj1) { | |
3378 | { | |
3379 | arg2 = wxString_in_helper(obj1); | |
3380 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3381 | temp2 = True; |
d14a1e28 RD |
3382 | } |
3383 | } | |
3384 | if (obj2) { | |
3385 | { | |
3386 | arg3 = wxString_in_helper(obj2); | |
3387 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3388 | temp3 = True; |
d14a1e28 RD |
3389 | } |
3390 | } | |
3391 | if (obj3) { | |
15afbcd0 RD |
3392 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3394 | } |
3395 | { | |
3396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3397 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3398 | ||
3399 | wxPyEndAllowThreads(__tstate); | |
3400 | if (PyErr_Occurred()) SWIG_fail; | |
3401 | } | |
3402 | { | |
3403 | #if wxUSE_UNICODE | |
3404 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3405 | #else | |
3406 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3407 | #endif | |
3408 | } | |
3409 | { | |
3410 | if (temp1) | |
3411 | delete arg1; | |
3412 | } | |
3413 | { | |
3414 | if (temp2) | |
3415 | delete arg2; | |
3416 | } | |
3417 | { | |
3418 | if (temp3) | |
3419 | delete arg3; | |
3420 | } | |
3421 | return resultobj; | |
3422 | fail: | |
3423 | { | |
3424 | if (temp1) | |
3425 | delete arg1; | |
3426 | } | |
3427 | { | |
3428 | if (temp2) | |
3429 | delete arg2; | |
3430 | } | |
3431 | { | |
3432 | if (temp3) | |
3433 | delete arg3; | |
3434 | } | |
3435 | return NULL; | |
3436 | } | |
3437 | ||
3438 | ||
3439 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3440 | PyObject *resultobj; | |
3441 | wxString *arg1 = 0 ; | |
3442 | wxString *arg2 = 0 ; | |
3443 | int arg3 ; | |
3444 | wxString *arg4 = (wxString *) 0 ; | |
3445 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3446 | int arg6 = (int) -1 ; | |
3447 | int arg7 = (int) -1 ; | |
e811c8ce | 3448 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3449 | int arg9 = (int) 150 ; |
3450 | int arg10 = (int) 200 ; | |
3451 | wxString result; | |
e811c8ce RD |
3452 | bool temp1 = False ; |
3453 | bool temp2 = False ; | |
d14a1e28 RD |
3454 | PyObject * obj0 = 0 ; |
3455 | PyObject * obj1 = 0 ; | |
3456 | PyObject * obj2 = 0 ; | |
3457 | PyObject * obj3 = 0 ; | |
994141e6 RD |
3458 | PyObject * obj4 = 0 ; |
3459 | PyObject * obj5 = 0 ; | |
d14a1e28 | 3460 | PyObject * obj6 = 0 ; |
994141e6 RD |
3461 | PyObject * obj7 = 0 ; |
3462 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
3463 | char *kwnames[] = { |
3464 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3465 | }; | |
3466 | ||
994141e6 | 3467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3468 | { |
3469 | arg1 = wxString_in_helper(obj0); | |
3470 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3471 | temp1 = True; |
d14a1e28 RD |
3472 | } |
3473 | { | |
3474 | arg2 = wxString_in_helper(obj1); | |
3475 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3476 | temp2 = True; |
d14a1e28 RD |
3477 | } |
3478 | { | |
3479 | arg3 = PyList_Size(obj2); | |
3480 | arg4 = wxString_LIST_helper(obj2); | |
3481 | if (arg4 == NULL) SWIG_fail; | |
3482 | } | |
3483 | if (obj3) { | |
15afbcd0 RD |
3484 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3486 | } |
994141e6 | 3487 | if (obj4) { |
15afbcd0 RD |
3488 | arg6 = (int) SWIG_AsInt(obj4); |
3489 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3490 | } |
3491 | if (obj5) { | |
15afbcd0 RD |
3492 | arg7 = (int) SWIG_AsInt(obj5); |
3493 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3494 | } |
d14a1e28 | 3495 | if (obj6) { |
15afbcd0 RD |
3496 | arg8 = (bool) SWIG_AsBool(obj6); |
3497 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3498 | } |
3499 | if (obj7) { | |
15afbcd0 RD |
3500 | arg9 = (int) SWIG_AsInt(obj7); |
3501 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3502 | } |
3503 | if (obj8) { | |
15afbcd0 RD |
3504 | arg10 = (int) SWIG_AsInt(obj8); |
3505 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3506 | } |
3507 | { | |
3508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3509 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3510 | ||
3511 | wxPyEndAllowThreads(__tstate); | |
3512 | if (PyErr_Occurred()) SWIG_fail; | |
3513 | } | |
3514 | { | |
3515 | #if wxUSE_UNICODE | |
3516 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3517 | #else | |
3518 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3519 | #endif | |
3520 | } | |
3521 | { | |
3522 | if (temp1) | |
3523 | delete arg1; | |
3524 | } | |
3525 | { | |
3526 | if (temp2) | |
3527 | delete arg2; | |
3528 | } | |
3529 | { | |
3530 | if (arg4) delete [] arg4; | |
3531 | } | |
3532 | return resultobj; | |
3533 | fail: | |
3534 | { | |
3535 | if (temp1) | |
3536 | delete arg1; | |
3537 | } | |
3538 | { | |
3539 | if (temp2) | |
3540 | delete arg2; | |
3541 | } | |
3542 | { | |
3543 | if (arg4) delete [] arg4; | |
3544 | } | |
3545 | return NULL; | |
3546 | } | |
3547 | ||
3548 | ||
3549 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3550 | PyObject *resultobj; | |
3551 | wxString *arg1 = 0 ; | |
3552 | wxString *arg2 = 0 ; | |
3553 | int arg3 ; | |
3554 | wxString *arg4 = (wxString *) 0 ; | |
3555 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3556 | int arg6 = (int) -1 ; | |
3557 | int arg7 = (int) -1 ; | |
e811c8ce | 3558 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3559 | int arg9 = (int) 150 ; |
3560 | int arg10 = (int) 200 ; | |
3561 | int result; | |
e811c8ce RD |
3562 | bool temp1 = False ; |
3563 | bool temp2 = False ; | |
d14a1e28 RD |
3564 | PyObject * obj0 = 0 ; |
3565 | PyObject * obj1 = 0 ; | |
3566 | PyObject * obj2 = 0 ; | |
3567 | PyObject * obj3 = 0 ; | |
994141e6 RD |
3568 | PyObject * obj4 = 0 ; |
3569 | PyObject * obj5 = 0 ; | |
d14a1e28 | 3570 | PyObject * obj6 = 0 ; |
994141e6 RD |
3571 | PyObject * obj7 = 0 ; |
3572 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
3573 | char *kwnames[] = { |
3574 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3575 | }; | |
3576 | ||
994141e6 | 3577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3578 | { |
3579 | arg1 = wxString_in_helper(obj0); | |
3580 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3581 | temp1 = True; |
d14a1e28 RD |
3582 | } |
3583 | { | |
3584 | arg2 = wxString_in_helper(obj1); | |
3585 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3586 | temp2 = True; |
d14a1e28 RD |
3587 | } |
3588 | { | |
3589 | arg3 = PyList_Size(obj2); | |
3590 | arg4 = wxString_LIST_helper(obj2); | |
3591 | if (arg4 == NULL) SWIG_fail; | |
3592 | } | |
3593 | if (obj3) { | |
15afbcd0 RD |
3594 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3596 | } |
994141e6 | 3597 | if (obj4) { |
15afbcd0 RD |
3598 | arg6 = (int) SWIG_AsInt(obj4); |
3599 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3600 | } |
3601 | if (obj5) { | |
15afbcd0 RD |
3602 | arg7 = (int) SWIG_AsInt(obj5); |
3603 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3604 | } |
d14a1e28 | 3605 | if (obj6) { |
15afbcd0 RD |
3606 | arg8 = (bool) SWIG_AsBool(obj6); |
3607 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3608 | } |
3609 | if (obj7) { | |
15afbcd0 RD |
3610 | arg9 = (int) SWIG_AsInt(obj7); |
3611 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3612 | } |
3613 | if (obj8) { | |
15afbcd0 RD |
3614 | arg10 = (int) SWIG_AsInt(obj8); |
3615 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3616 | } |
3617 | { | |
3618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3619 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3620 | ||
3621 | wxPyEndAllowThreads(__tstate); | |
3622 | if (PyErr_Occurred()) SWIG_fail; | |
3623 | } | |
15afbcd0 | 3624 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3625 | { |
3626 | if (temp1) | |
3627 | delete arg1; | |
3628 | } | |
3629 | { | |
3630 | if (temp2) | |
3631 | delete arg2; | |
3632 | } | |
3633 | { | |
3634 | if (arg4) delete [] arg4; | |
3635 | } | |
3636 | return resultobj; | |
3637 | fail: | |
3638 | { | |
3639 | if (temp1) | |
3640 | delete arg1; | |
3641 | } | |
3642 | { | |
3643 | if (temp2) | |
3644 | delete arg2; | |
3645 | } | |
3646 | { | |
3647 | if (arg4) delete [] arg4; | |
3648 | } | |
3649 | return NULL; | |
3650 | } | |
3651 | ||
3652 | ||
3653 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3654 | PyObject *resultobj; | |
3655 | wxString *arg1 = 0 ; | |
3656 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3657 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3658 | int arg3 = (int) wxOK|wxCENTRE ; | |
3659 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3660 | int arg5 = (int) -1 ; | |
3661 | int arg6 = (int) -1 ; | |
3662 | int result; | |
e811c8ce RD |
3663 | bool temp1 = False ; |
3664 | bool temp2 = False ; | |
d14a1e28 RD |
3665 | PyObject * obj0 = 0 ; |
3666 | PyObject * obj1 = 0 ; | |
994141e6 | 3667 | PyObject * obj2 = 0 ; |
d14a1e28 | 3668 | PyObject * obj3 = 0 ; |
994141e6 RD |
3669 | PyObject * obj4 = 0 ; |
3670 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
3671 | char *kwnames[] = { |
3672 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3673 | }; | |
3674 | ||
994141e6 | 3675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
3676 | { |
3677 | arg1 = wxString_in_helper(obj0); | |
3678 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3679 | temp1 = True; |
d14a1e28 RD |
3680 | } |
3681 | if (obj1) { | |
3682 | { | |
3683 | arg2 = wxString_in_helper(obj1); | |
3684 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3685 | temp2 = True; |
d14a1e28 RD |
3686 | } |
3687 | } | |
994141e6 | 3688 | if (obj2) { |
15afbcd0 RD |
3689 | arg3 = (int) SWIG_AsInt(obj2); |
3690 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3691 | } |
d14a1e28 | 3692 | if (obj3) { |
15afbcd0 RD |
3693 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3695 | } |
994141e6 | 3696 | if (obj4) { |
15afbcd0 RD |
3697 | arg5 = (int) SWIG_AsInt(obj4); |
3698 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3699 | } |
3700 | if (obj5) { | |
15afbcd0 RD |
3701 | arg6 = (int) SWIG_AsInt(obj5); |
3702 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3703 | } |
d14a1e28 RD |
3704 | { |
3705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3706 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3707 | ||
3708 | wxPyEndAllowThreads(__tstate); | |
3709 | if (PyErr_Occurred()) SWIG_fail; | |
3710 | } | |
15afbcd0 | 3711 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3712 | { |
3713 | if (temp1) | |
3714 | delete arg1; | |
3715 | } | |
3716 | { | |
3717 | if (temp2) | |
3718 | delete arg2; | |
3719 | } | |
3720 | return resultobj; | |
3721 | fail: | |
3722 | { | |
3723 | if (temp1) | |
3724 | delete arg1; | |
3725 | } | |
3726 | { | |
3727 | if (temp2) | |
3728 | delete arg2; | |
3729 | } | |
3730 | return NULL; | |
3731 | } | |
3732 | ||
3733 | ||
3734 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3735 | PyObject *resultobj; | |
3736 | wxString *arg1 = 0 ; | |
3737 | wxString *arg2 = 0 ; | |
3738 | wxString *arg3 = 0 ; | |
3739 | long arg4 ; | |
3740 | long arg5 = (long) 0 ; | |
3741 | long arg6 = (long) 100 ; | |
3742 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3743 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3744 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3745 | long result; | |
e811c8ce RD |
3746 | bool temp1 = False ; |
3747 | bool temp2 = False ; | |
3748 | bool temp3 = False ; | |
d14a1e28 RD |
3749 | wxPoint temp8 ; |
3750 | PyObject * obj0 = 0 ; | |
3751 | PyObject * obj1 = 0 ; | |
3752 | PyObject * obj2 = 0 ; | |
994141e6 RD |
3753 | PyObject * obj3 = 0 ; |
3754 | PyObject * obj4 = 0 ; | |
3755 | PyObject * obj5 = 0 ; | |
3756 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
3757 | PyObject * obj7 = 0 ; |
3758 | char *kwnames[] = { | |
3759 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3760 | }; | |
3761 | ||
994141e6 | 3762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
3763 | { |
3764 | arg1 = wxString_in_helper(obj0); | |
3765 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3766 | temp1 = True; |
d14a1e28 RD |
3767 | } |
3768 | { | |
3769 | arg2 = wxString_in_helper(obj1); | |
3770 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3771 | temp2 = True; |
d14a1e28 RD |
3772 | } |
3773 | { | |
3774 | arg3 = wxString_in_helper(obj2); | |
3775 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3776 | temp3 = True; |
d14a1e28 | 3777 | } |
15afbcd0 RD |
3778 | arg4 = (long) SWIG_AsLong(obj3); |
3779 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3780 | if (obj4) { |
15afbcd0 RD |
3781 | arg5 = (long) SWIG_AsLong(obj4); |
3782 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3783 | } |
3784 | if (obj5) { | |
15afbcd0 RD |
3785 | arg6 = (long) SWIG_AsLong(obj5); |
3786 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3787 | } |
d14a1e28 | 3788 | if (obj6) { |
15afbcd0 RD |
3789 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, |
3790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3791 | } |
3792 | if (obj7) { | |
3793 | { | |
3794 | arg8 = &temp8; | |
3795 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3796 | } | |
3797 | } | |
3798 | { | |
3799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3800 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3801 | ||
3802 | wxPyEndAllowThreads(__tstate); | |
3803 | if (PyErr_Occurred()) SWIG_fail; | |
3804 | } | |
15afbcd0 | 3805 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3806 | { |
3807 | if (temp1) | |
3808 | delete arg1; | |
3809 | } | |
3810 | { | |
3811 | if (temp2) | |
3812 | delete arg2; | |
3813 | } | |
3814 | { | |
3815 | if (temp3) | |
3816 | delete arg3; | |
3817 | } | |
3818 | return resultobj; | |
3819 | fail: | |
3820 | { | |
3821 | if (temp1) | |
3822 | delete arg1; | |
3823 | } | |
3824 | { | |
3825 | if (temp2) | |
3826 | delete arg2; | |
3827 | } | |
3828 | { | |
3829 | if (temp3) | |
3830 | delete arg3; | |
3831 | } | |
3832 | return NULL; | |
3833 | } | |
3834 | ||
3835 | ||
3836 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3837 | PyObject *resultobj; | |
3838 | bool result; | |
3839 | char *kwnames[] = { | |
3840 | NULL | |
3841 | }; | |
3842 | ||
3843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
3844 | { | |
3845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3846 | result = (bool)wxColourDisplay(); | |
3847 | ||
3848 | wxPyEndAllowThreads(__tstate); | |
3849 | if (PyErr_Occurred()) SWIG_fail; | |
3850 | } | |
4f89f6a3 RD |
3851 | { |
3852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3853 | } | |
d14a1e28 RD |
3854 | return resultobj; |
3855 | fail: | |
3856 | return NULL; | |
3857 | } | |
3858 | ||
3859 | ||
3860 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3861 | PyObject *resultobj; | |
3862 | int result; | |
3863 | char *kwnames[] = { | |
3864 | NULL | |
3865 | }; | |
3866 | ||
3867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
3868 | { | |
3869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3870 | result = (int)wxDisplayDepth(); | |
3871 | ||
3872 | wxPyEndAllowThreads(__tstate); | |
3873 | if (PyErr_Occurred()) SWIG_fail; | |
3874 | } | |
15afbcd0 | 3875 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3876 | return resultobj; |
3877 | fail: | |
3878 | return NULL; | |
3879 | } | |
3880 | ||
3881 | ||
3882 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3883 | PyObject *resultobj; | |
3884 | int result; | |
3885 | char *kwnames[] = { | |
3886 | NULL | |
3887 | }; | |
3888 | ||
3889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
3890 | { | |
3891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3892 | result = (int)wxGetDisplayDepth(); | |
3893 | ||
3894 | wxPyEndAllowThreads(__tstate); | |
3895 | if (PyErr_Occurred()) SWIG_fail; | |
3896 | } | |
15afbcd0 | 3897 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3898 | return resultobj; |
3899 | fail: | |
3900 | return NULL; | |
3901 | } | |
3902 | ||
3903 | ||
3904 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3905 | PyObject *resultobj; | |
3906 | int *arg1 = (int *) 0 ; | |
3907 | int *arg2 = (int *) 0 ; | |
3908 | int temp1 ; | |
3909 | int temp2 ; | |
3910 | char *kwnames[] = { | |
3911 | NULL | |
3912 | }; | |
3913 | ||
3914 | arg1 = &temp1; | |
3915 | arg2 = &temp2; | |
3916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
3917 | { | |
3918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3919 | wxDisplaySize(arg1,arg2); | |
3920 | ||
3921 | wxPyEndAllowThreads(__tstate); | |
3922 | if (PyErr_Occurred()) SWIG_fail; | |
3923 | } | |
3924 | Py_INCREF(Py_None); resultobj = Py_None; | |
3925 | { | |
3926 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3927 | resultobj = t_output_helper(resultobj,o); | |
3928 | } | |
3929 | { | |
3930 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3931 | resultobj = t_output_helper(resultobj,o); | |
3932 | } | |
3933 | return resultobj; | |
3934 | fail: | |
3935 | return NULL; | |
3936 | } | |
3937 | ||
3938 | ||
3939 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3940 | PyObject *resultobj; | |
3941 | wxSize result; | |
3942 | char *kwnames[] = { | |
3943 | NULL | |
3944 | }; | |
3945 | ||
3946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
3947 | { | |
3948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3949 | result = wxGetDisplaySize(); | |
3950 | ||
3951 | wxPyEndAllowThreads(__tstate); | |
3952 | if (PyErr_Occurred()) SWIG_fail; | |
3953 | } | |
3954 | { | |
3955 | wxSize * resultptr; | |
3956 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 3957 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
3958 | } |
3959 | return resultobj; | |
3960 | fail: | |
3961 | return NULL; | |
3962 | } | |
3963 | ||
3964 | ||
3965 | static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3966 | PyObject *resultobj; | |
3967 | int *arg1 = (int *) 0 ; | |
3968 | int *arg2 = (int *) 0 ; | |
3969 | int temp1 ; | |
3970 | int temp2 ; | |
3971 | char *kwnames[] = { | |
3972 | NULL | |
3973 | }; | |
3974 | ||
3975 | arg1 = &temp1; | |
3976 | arg2 = &temp2; | |
3977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
3978 | { | |
3979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3980 | wxDisplaySizeMM(arg1,arg2); | |
3981 | ||
3982 | wxPyEndAllowThreads(__tstate); | |
3983 | if (PyErr_Occurred()) SWIG_fail; | |
3984 | } | |
3985 | Py_INCREF(Py_None); resultobj = Py_None; | |
3986 | { | |
3987 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3988 | resultobj = t_output_helper(resultobj,o); | |
3989 | } | |
3990 | { | |
3991 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3992 | resultobj = t_output_helper(resultobj,o); | |
3993 | } | |
3994 | return resultobj; | |
3995 | fail: | |
3996 | return NULL; | |
3997 | } | |
3998 | ||
3999 | ||
4000 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4001 | PyObject *resultobj; | |
4002 | wxSize result; | |
4003 | char *kwnames[] = { | |
4004 | NULL | |
4005 | }; | |
4006 | ||
4007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
4008 | { | |
4009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4010 | result = wxGetDisplaySizeMM(); | |
4011 | ||
4012 | wxPyEndAllowThreads(__tstate); | |
4013 | if (PyErr_Occurred()) SWIG_fail; | |
4014 | } | |
4015 | { | |
4016 | wxSize * resultptr; | |
4017 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 4018 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
4019 | } |
4020 | return resultobj; | |
4021 | fail: | |
4022 | return NULL; | |
4023 | } | |
4024 | ||
4025 | ||
4026 | static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4027 | PyObject *resultobj; | |
4028 | int *arg1 = (int *) 0 ; | |
4029 | int *arg2 = (int *) 0 ; | |
4030 | int *arg3 = (int *) 0 ; | |
4031 | int *arg4 = (int *) 0 ; | |
4032 | int temp1 ; | |
4033 | int temp2 ; | |
4034 | int temp3 ; | |
4035 | int temp4 ; | |
4036 | char *kwnames[] = { | |
4037 | NULL | |
4038 | }; | |
4039 | ||
4040 | arg1 = &temp1; | |
4041 | arg2 = &temp2; | |
4042 | arg3 = &temp3; | |
4043 | arg4 = &temp4; | |
4044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
4045 | { | |
4046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4047 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
4048 | ||
4049 | wxPyEndAllowThreads(__tstate); | |
4050 | if (PyErr_Occurred()) SWIG_fail; | |
4051 | } | |
4052 | Py_INCREF(Py_None); resultobj = Py_None; | |
4053 | { | |
4054 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
4055 | resultobj = t_output_helper(resultobj,o); | |
4056 | } | |
4057 | { | |
4058 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4059 | resultobj = t_output_helper(resultobj,o); | |
4060 | } | |
4061 | { | |
4062 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4063 | resultobj = t_output_helper(resultobj,o); | |
4064 | } | |
4065 | { | |
4066 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
4067 | resultobj = t_output_helper(resultobj,o); | |
4068 | } | |
4069 | return resultobj; | |
4070 | fail: | |
4071 | return NULL; | |
4072 | } | |
4073 | ||
4074 | ||
4075 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4076 | PyObject *resultobj; | |
4077 | wxRect result; | |
4078 | char *kwnames[] = { | |
4079 | NULL | |
4080 | }; | |
4081 | ||
4082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
4083 | { | |
4084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4085 | result = wxGetClientDisplayRect(); | |
4086 | ||
4087 | wxPyEndAllowThreads(__tstate); | |
4088 | if (PyErr_Occurred()) SWIG_fail; | |
4089 | } | |
4090 | { | |
4091 | wxRect * resultptr; | |
4092 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 4093 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
4094 | } |
4095 | return resultobj; | |
4096 | fail: | |
4097 | return NULL; | |
4098 | } | |
4099 | ||
4100 | ||
4101 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4102 | PyObject *resultobj; | |
4103 | wxCursor *arg1 = 0 ; | |
4104 | PyObject * obj0 = 0 ; | |
4105 | char *kwnames[] = { | |
4106 | (char *) "cursor", NULL | |
4107 | }; | |
4108 | ||
4109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4111 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4112 | SWIG_fail; | |
d14a1e28 | 4113 | if (arg1 == NULL) { |
15afbcd0 RD |
4114 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4115 | SWIG_fail; | |
d14a1e28 RD |
4116 | } |
4117 | { | |
4118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4119 | wxSetCursor(*arg1); | |
4120 | ||
4121 | wxPyEndAllowThreads(__tstate); | |
4122 | if (PyErr_Occurred()) SWIG_fail; | |
4123 | } | |
4124 | Py_INCREF(Py_None); resultobj = Py_None; | |
4125 | return resultobj; | |
4126 | fail: | |
4127 | return NULL; | |
4128 | } | |
4129 | ||
4130 | ||
4131 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4132 | PyObject *resultobj; | |
4133 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4134 | PyObject * obj0 = 0 ; | |
4135 | char *kwnames[] = { | |
4136 | (char *) "cursor", NULL | |
4137 | }; | |
4138 | ||
4139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
4140 | if (obj0) { | |
15afbcd0 RD |
4141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4143 | } |
4144 | { | |
4145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4146 | wxBeginBusyCursor(arg1); | |
4147 | ||
4148 | wxPyEndAllowThreads(__tstate); | |
4149 | if (PyErr_Occurred()) SWIG_fail; | |
4150 | } | |
4151 | Py_INCREF(Py_None); resultobj = Py_None; | |
4152 | return resultobj; | |
4153 | fail: | |
4154 | return NULL; | |
4155 | } | |
4156 | ||
4157 | ||
4158 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4159 | PyObject *resultobj; | |
4160 | wxWindow *result; | |
4161 | char *kwnames[] = { | |
4162 | NULL | |
4163 | }; | |
4164 | ||
4165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
4166 | { | |
4167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4168 | result = (wxWindow *)wxGetActiveWindow(); | |
4169 | ||
4170 | wxPyEndAllowThreads(__tstate); | |
4171 | if (PyErr_Occurred()) SWIG_fail; | |
4172 | } | |
4173 | { | |
4174 | resultobj = wxPyMake_wxObject(result); | |
4175 | } | |
4176 | return resultobj; | |
4177 | fail: | |
4178 | return NULL; | |
4179 | } | |
4180 | ||
4181 | ||
4182 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4183 | PyObject *resultobj; | |
4184 | wxPoint *arg1 = 0 ; | |
4185 | wxWindow *result; | |
4186 | wxPoint temp1 ; | |
4187 | PyObject * obj0 = 0 ; | |
4188 | char *kwnames[] = { | |
4189 | (char *) "pt", NULL | |
4190 | }; | |
4191 | ||
4192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4193 | { | |
4194 | arg1 = &temp1; | |
4195 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4196 | } | |
4197 | { | |
4198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4199 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
4200 | ||
4201 | wxPyEndAllowThreads(__tstate); | |
4202 | if (PyErr_Occurred()) SWIG_fail; | |
4203 | } | |
4204 | { | |
4205 | resultobj = wxPyMake_wxObject(result); | |
4206 | } | |
4207 | return resultobj; | |
4208 | fail: | |
4209 | return NULL; | |
4210 | } | |
4211 | ||
4212 | ||
4213 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4214 | PyObject *resultobj; | |
4215 | wxPoint *arg1 = 0 ; | |
4216 | wxWindow *result; | |
4217 | wxPoint temp1 ; | |
4218 | PyObject * obj0 = 0 ; | |
4219 | char *kwnames[] = { | |
4220 | (char *) "pt", NULL | |
4221 | }; | |
4222 | ||
4223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4224 | { | |
4225 | arg1 = &temp1; | |
4226 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4227 | } | |
4228 | { | |
4229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4230 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
4231 | ||
4232 | wxPyEndAllowThreads(__tstate); | |
4233 | if (PyErr_Occurred()) SWIG_fail; | |
4234 | } | |
4235 | { | |
4236 | resultobj = wxPyMake_wxObject(result); | |
4237 | } | |
4238 | return resultobj; | |
4239 | fail: | |
4240 | return NULL; | |
4241 | } | |
4242 | ||
4243 | ||
4244 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4245 | PyObject *resultobj; | |
4246 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4247 | wxWindow *result; | |
4248 | PyObject * obj0 = 0 ; | |
4249 | char *kwnames[] = { | |
4250 | (char *) "win", NULL | |
4251 | }; | |
4252 | ||
4253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4256 | { |
4257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4258 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
4259 | ||
4260 | wxPyEndAllowThreads(__tstate); | |
4261 | if (PyErr_Occurred()) SWIG_fail; | |
4262 | } | |
4263 | { | |
4264 | resultobj = wxPyMake_wxObject(result); | |
4265 | } | |
4266 | return resultobj; | |
4267 | fail: | |
4268 | return NULL; | |
4269 | } | |
4270 | ||
4271 | ||
39f61e25 RD |
4272 | static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) { |
4273 | PyObject *resultobj; | |
4274 | int arg1 ; | |
4275 | bool result; | |
994141e6 | 4276 | PyObject * obj0 = 0 ; |
39f61e25 RD |
4277 | char *kwnames[] = { |
4278 | (char *) "key", NULL | |
4279 | }; | |
4280 | ||
994141e6 | 4281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4282 | arg1 = (wxKeyCode) SWIG_AsInt(obj0); |
4283 | if (PyErr_Occurred()) SWIG_fail; | |
39f61e25 RD |
4284 | { |
4285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4286 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
4287 | ||
4288 | wxPyEndAllowThreads(__tstate); | |
4289 | if (PyErr_Occurred()) SWIG_fail; | |
4290 | } | |
4f89f6a3 RD |
4291 | { |
4292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4293 | } | |
39f61e25 RD |
4294 | return resultobj; |
4295 | fail: | |
4296 | return NULL; | |
4297 | } | |
4298 | ||
4299 | ||
d14a1e28 RD |
4300 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
4301 | PyObject *resultobj; | |
4302 | char *kwnames[] = { | |
4303 | NULL | |
4304 | }; | |
4305 | ||
4306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4307 | { | |
4308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4309 | wxWakeUpMainThread(); | |
4310 | ||
4311 | wxPyEndAllowThreads(__tstate); | |
4312 | if (PyErr_Occurred()) SWIG_fail; | |
4313 | } | |
4314 | Py_INCREF(Py_None); resultobj = Py_None; | |
4315 | return resultobj; | |
4316 | fail: | |
4317 | return NULL; | |
4318 | } | |
4319 | ||
4320 | ||
4321 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4322 | PyObject *resultobj; | |
4323 | char *kwnames[] = { | |
4324 | NULL | |
4325 | }; | |
4326 | ||
4327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4328 | { | |
4329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4330 | wxMutexGuiEnter(); | |
4331 | ||
4332 | wxPyEndAllowThreads(__tstate); | |
4333 | if (PyErr_Occurred()) SWIG_fail; | |
4334 | } | |
4335 | Py_INCREF(Py_None); resultobj = Py_None; | |
4336 | return resultobj; | |
4337 | fail: | |
4338 | return NULL; | |
4339 | } | |
4340 | ||
4341 | ||
4342 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4343 | PyObject *resultobj; | |
4344 | char *kwnames[] = { | |
4345 | NULL | |
4346 | }; | |
4347 | ||
4348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4349 | { | |
4350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4351 | wxMutexGuiLeave(); | |
4352 | ||
4353 | wxPyEndAllowThreads(__tstate); | |
4354 | if (PyErr_Occurred()) SWIG_fail; | |
4355 | } | |
4356 | Py_INCREF(Py_None); resultobj = Py_None; | |
4357 | return resultobj; | |
4358 | fail: | |
4359 | return NULL; | |
4360 | } | |
4361 | ||
4362 | ||
4363 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4364 | PyObject *resultobj; | |
4365 | wxMutexGuiLocker *result; | |
4366 | char *kwnames[] = { | |
4367 | NULL | |
4368 | }; | |
4369 | ||
4370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4371 | { | |
4372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4373 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4374 | ||
4375 | wxPyEndAllowThreads(__tstate); | |
4376 | if (PyErr_Occurred()) SWIG_fail; | |
4377 | } | |
15afbcd0 | 4378 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); |
d14a1e28 RD |
4379 | return resultobj; |
4380 | fail: | |
4381 | return NULL; | |
4382 | } | |
4383 | ||
4384 | ||
4385 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4386 | PyObject *resultobj; | |
4387 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4388 | PyObject * obj0 = 0 ; | |
4389 | char *kwnames[] = { | |
4390 | (char *) "self", NULL | |
4391 | }; | |
4392 | ||
4393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker, |
4395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4396 | { |
4397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4398 | delete arg1; | |
4399 | ||
4400 | wxPyEndAllowThreads(__tstate); | |
4401 | if (PyErr_Occurred()) SWIG_fail; | |
4402 | } | |
4403 | Py_INCREF(Py_None); resultobj = Py_None; | |
4404 | return resultobj; | |
4405 | fail: | |
4406 | return NULL; | |
4407 | } | |
4408 | ||
4409 | ||
4410 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
4411 | PyObject *obj; | |
4412 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4413 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4414 | Py_INCREF(obj); | |
4415 | return Py_BuildValue((char *)""); | |
4416 | } | |
4417 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4418 | PyObject *resultobj; | |
4419 | bool result; | |
4420 | char *kwnames[] = { | |
4421 | NULL | |
4422 | }; | |
4423 | ||
4424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4425 | { | |
4426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4427 | result = (bool)wxThread_IsMain(); | |
4428 | ||
4429 | wxPyEndAllowThreads(__tstate); | |
4430 | if (PyErr_Occurred()) SWIG_fail; | |
4431 | } | |
4f89f6a3 RD |
4432 | { |
4433 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4434 | } | |
d14a1e28 RD |
4435 | return resultobj; |
4436 | fail: | |
4437 | return NULL; | |
4438 | } | |
4439 | ||
4440 | ||
4441 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4442 | PyObject *resultobj; | |
4443 | wxString *arg1 = 0 ; | |
4444 | wxToolTip *result; | |
e811c8ce | 4445 | bool temp1 = False ; |
d14a1e28 RD |
4446 | PyObject * obj0 = 0 ; |
4447 | char *kwnames[] = { | |
4448 | (char *) "tip", NULL | |
4449 | }; | |
4450 | ||
4451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4452 | { | |
4453 | arg1 = wxString_in_helper(obj0); | |
4454 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 4455 | temp1 = True; |
d14a1e28 RD |
4456 | } |
4457 | { | |
4458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4459 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4460 | ||
4461 | wxPyEndAllowThreads(__tstate); | |
4462 | if (PyErr_Occurred()) SWIG_fail; | |
4463 | } | |
4464 | { | |
4465 | resultobj = wxPyMake_wxObject(result); | |
4466 | } | |
4467 | { | |
4468 | if (temp1) | |
4469 | delete arg1; | |
4470 | } | |
4471 | return resultobj; | |
4472 | fail: | |
4473 | { | |
4474 | if (temp1) | |
4475 | delete arg1; | |
4476 | } | |
4477 | return NULL; | |
4478 | } | |
4479 | ||
4480 | ||
4481 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4482 | PyObject *resultobj; | |
4483 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4484 | wxString *arg2 = 0 ; | |
e811c8ce | 4485 | bool temp2 = False ; |
d14a1e28 RD |
4486 | PyObject * obj0 = 0 ; |
4487 | PyObject * obj1 = 0 ; | |
4488 | char *kwnames[] = { | |
4489 | (char *) "self",(char *) "tip", NULL | |
4490 | }; | |
4491 | ||
4492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4495 | { |
4496 | arg2 = wxString_in_helper(obj1); | |
4497 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4498 | temp2 = True; |
d14a1e28 RD |
4499 | } |
4500 | { | |
4501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4502 | (arg1)->SetTip((wxString const &)*arg2); | |
4503 | ||
4504 | wxPyEndAllowThreads(__tstate); | |
4505 | if (PyErr_Occurred()) SWIG_fail; | |
4506 | } | |
4507 | Py_INCREF(Py_None); resultobj = Py_None; | |
4508 | { | |
4509 | if (temp2) | |
4510 | delete arg2; | |
4511 | } | |
4512 | return resultobj; | |
4513 | fail: | |
4514 | { | |
4515 | if (temp2) | |
4516 | delete arg2; | |
4517 | } | |
4518 | return NULL; | |
4519 | } | |
4520 | ||
4521 | ||
4522 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4523 | PyObject *resultobj; | |
4524 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4525 | wxString result; | |
4526 | PyObject * obj0 = 0 ; | |
4527 | char *kwnames[] = { | |
4528 | (char *) "self", NULL | |
4529 | }; | |
4530 | ||
4531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4534 | { |
4535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4536 | result = (arg1)->GetTip(); | |
4537 | ||
4538 | wxPyEndAllowThreads(__tstate); | |
4539 | if (PyErr_Occurred()) SWIG_fail; | |
4540 | } | |
4541 | { | |
4542 | #if wxUSE_UNICODE | |
4543 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4544 | #else | |
4545 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4546 | #endif | |
4547 | } | |
4548 | return resultobj; | |
4549 | fail: | |
4550 | return NULL; | |
4551 | } | |
4552 | ||
4553 | ||
4554 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4555 | PyObject *resultobj; | |
4556 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4557 | wxWindow *result; | |
4558 | PyObject * obj0 = 0 ; | |
4559 | char *kwnames[] = { | |
4560 | (char *) "self", NULL | |
4561 | }; | |
4562 | ||
4563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4566 | { |
4567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4568 | result = (wxWindow *)(arg1)->GetWindow(); | |
4569 | ||
4570 | wxPyEndAllowThreads(__tstate); | |
4571 | if (PyErr_Occurred()) SWIG_fail; | |
4572 | } | |
4573 | { | |
4574 | resultobj = wxPyMake_wxObject(result); | |
4575 | } | |
4576 | return resultobj; | |
4577 | fail: | |
4578 | return NULL; | |
4579 | } | |
4580 | ||
4581 | ||
4582 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4583 | PyObject *resultobj; | |
4584 | bool arg1 ; | |
4585 | PyObject * obj0 = 0 ; | |
4586 | char *kwnames[] = { | |
4587 | (char *) "flag", NULL | |
4588 | }; | |
4589 | ||
4590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4591 | arg1 = (bool) SWIG_AsBool(obj0); |
4592 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4593 | { |
4594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4595 | wxToolTip::Enable(arg1); | |
4596 | ||
4597 | wxPyEndAllowThreads(__tstate); | |
4598 | if (PyErr_Occurred()) SWIG_fail; | |
4599 | } | |
4600 | Py_INCREF(Py_None); resultobj = Py_None; | |
4601 | return resultobj; | |
4602 | fail: | |
4603 | return NULL; | |
4604 | } | |
4605 | ||
4606 | ||
4607 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4608 | PyObject *resultobj; | |
4609 | long arg1 ; | |
994141e6 | 4610 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4611 | char *kwnames[] = { |
4612 | (char *) "milliseconds", NULL | |
4613 | }; | |
4614 | ||
994141e6 | 4615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4616 | arg1 = (long) SWIG_AsLong(obj0); |
4617 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4618 | { |
4619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4620 | wxToolTip::SetDelay(arg1); | |
4621 | ||
4622 | wxPyEndAllowThreads(__tstate); | |
4623 | if (PyErr_Occurred()) SWIG_fail; | |
4624 | } | |
4625 | Py_INCREF(Py_None); resultobj = Py_None; | |
4626 | return resultobj; | |
4627 | fail: | |
4628 | return NULL; | |
4629 | } | |
4630 | ||
4631 | ||
4632 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
4633 | PyObject *obj; | |
4634 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4635 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
4636 | Py_INCREF(obj); | |
4637 | return Py_BuildValue((char *)""); | |
4638 | } | |
4639 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4640 | PyObject *resultobj; | |
4641 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4642 | wxSize *arg2 = 0 ; | |
4643 | wxCaret *result; | |
4644 | wxSize temp2 ; | |
4645 | PyObject * obj0 = 0 ; | |
4646 | PyObject * obj1 = 0 ; | |
4647 | char *kwnames[] = { | |
4648 | (char *) "window",(char *) "size", NULL | |
4649 | }; | |
4650 | ||
4651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4654 | { |
4655 | arg2 = &temp2; | |
4656 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4657 | } | |
4658 | { | |
4659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4660 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
4661 | ||
4662 | wxPyEndAllowThreads(__tstate); | |
4663 | if (PyErr_Occurred()) SWIG_fail; | |
4664 | } | |
15afbcd0 | 4665 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); |
d14a1e28 RD |
4666 | return resultobj; |
4667 | fail: | |
4668 | return NULL; | |
4669 | } | |
4670 | ||
4671 | ||
4672 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4673 | PyObject *resultobj; | |
4674 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4675 | PyObject * obj0 = 0 ; | |
4676 | char *kwnames[] = { | |
4677 | (char *) "self", NULL | |
4678 | }; | |
4679 | ||
4680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4683 | { |
4684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4685 | delete arg1; | |
4686 | ||
4687 | wxPyEndAllowThreads(__tstate); | |
4688 | if (PyErr_Occurred()) SWIG_fail; | |
4689 | } | |
4690 | Py_INCREF(Py_None); resultobj = Py_None; | |
4691 | return resultobj; | |
4692 | fail: | |
4693 | return NULL; | |
4694 | } | |
4695 | ||
4696 | ||
4697 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4698 | PyObject *resultobj; | |
4699 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4700 | bool result; | |
4701 | PyObject * obj0 = 0 ; | |
4702 | char *kwnames[] = { | |
4703 | (char *) "self", NULL | |
4704 | }; | |
4705 | ||
4706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4709 | { |
4710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4711 | result = (bool)(arg1)->IsOk(); | |
4712 | ||
4713 | wxPyEndAllowThreads(__tstate); | |
4714 | if (PyErr_Occurred()) SWIG_fail; | |
4715 | } | |
4f89f6a3 RD |
4716 | { |
4717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4718 | } | |
d14a1e28 RD |
4719 | return resultobj; |
4720 | fail: | |
4721 | return NULL; | |
4722 | } | |
4723 | ||
4724 | ||
4725 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4726 | PyObject *resultobj; | |
4727 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4728 | bool result; | |
4729 | PyObject * obj0 = 0 ; | |
4730 | char *kwnames[] = { | |
4731 | (char *) "self", NULL | |
4732 | }; | |
4733 | ||
4734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4737 | { |
4738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4739 | result = (bool)(arg1)->IsVisible(); | |
4740 | ||
4741 | wxPyEndAllowThreads(__tstate); | |
4742 | if (PyErr_Occurred()) SWIG_fail; | |
4743 | } | |
4f89f6a3 RD |
4744 | { |
4745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4746 | } | |
d14a1e28 RD |
4747 | return resultobj; |
4748 | fail: | |
4749 | return NULL; | |
4750 | } | |
4751 | ||
4752 | ||
322913ce RD |
4753 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
4754 | PyObject *resultobj; | |
4755 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4756 | wxPoint result; | |
4757 | PyObject * obj0 = 0 ; | |
4758 | char *kwnames[] = { | |
4759 | (char *) "self", NULL | |
4760 | }; | |
4761 | ||
4762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
322913ce RD |
4765 | { |
4766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4767 | result = (arg1)->GetPosition(); | |
4768 | ||
4769 | wxPyEndAllowThreads(__tstate); | |
4770 | if (PyErr_Occurred()) SWIG_fail; | |
4771 | } | |
4772 | { | |
4773 | wxPoint * resultptr; | |
4774 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 4775 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
322913ce RD |
4776 | } |
4777 | return resultobj; | |
4778 | fail: | |
4779 | return NULL; | |
4780 | } | |
4781 | ||
4782 | ||
d14a1e28 RD |
4783 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
4784 | PyObject *resultobj; | |
4785 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4786 | int *arg2 = (int *) 0 ; | |
4787 | int *arg3 = (int *) 0 ; | |
4788 | int temp2 ; | |
4789 | int temp3 ; | |
4790 | PyObject * obj0 = 0 ; | |
4791 | char *kwnames[] = { | |
4792 | (char *) "self", NULL | |
4793 | }; | |
4794 | ||
4795 | arg2 = &temp2; | |
4796 | arg3 = &temp3; | |
4797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4800 | { |
4801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4802 | (arg1)->GetPosition(arg2,arg3); | |
4803 | ||
4804 | wxPyEndAllowThreads(__tstate); | |
4805 | if (PyErr_Occurred()) SWIG_fail; | |
4806 | } | |
4807 | Py_INCREF(Py_None); resultobj = Py_None; | |
4808 | { | |
4809 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4810 | resultobj = t_output_helper(resultobj,o); | |
4811 | } | |
4812 | { | |
4813 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4814 | resultobj = t_output_helper(resultobj,o); | |
4815 | } | |
4816 | return resultobj; | |
4817 | fail: | |
4818 | return NULL; | |
4819 | } | |
4820 | ||
4821 | ||
322913ce | 4822 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4823 | PyObject *resultobj; |
4824 | wxCaret *arg1 = (wxCaret *) 0 ; | |
322913ce | 4825 | wxSize result; |
d14a1e28 RD |
4826 | PyObject * obj0 = 0 ; |
4827 | char *kwnames[] = { | |
4828 | (char *) "self", NULL | |
4829 | }; | |
4830 | ||
322913ce | 4831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4834 | { |
4835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 4836 | result = (arg1)->GetSize(); |
d14a1e28 RD |
4837 | |
4838 | wxPyEndAllowThreads(__tstate); | |
4839 | if (PyErr_Occurred()) SWIG_fail; | |
4840 | } | |
4841 | { | |
322913ce RD |
4842 | wxSize * resultptr; |
4843 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 4844 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
4845 | } |
4846 | return resultobj; | |
4847 | fail: | |
4848 | return NULL; | |
4849 | } | |
4850 | ||
4851 | ||
4852 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4853 | PyObject *resultobj; | |
4854 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4855 | int *arg2 = (int *) 0 ; | |
4856 | int *arg3 = (int *) 0 ; | |
4857 | int temp2 ; | |
4858 | int temp3 ; | |
4859 | PyObject * obj0 = 0 ; | |
4860 | char *kwnames[] = { | |
4861 | (char *) "self", NULL | |
4862 | }; | |
4863 | ||
4864 | arg2 = &temp2; | |
4865 | arg3 = &temp3; | |
4866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4869 | { |
4870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4871 | (arg1)->GetSize(arg2,arg3); | |
4872 | ||
4873 | wxPyEndAllowThreads(__tstate); | |
4874 | if (PyErr_Occurred()) SWIG_fail; | |
4875 | } | |
4876 | Py_INCREF(Py_None); resultobj = Py_None; | |
4877 | { | |
4878 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4879 | resultobj = t_output_helper(resultobj,o); | |
4880 | } | |
4881 | { | |
4882 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4883 | resultobj = t_output_helper(resultobj,o); | |
4884 | } | |
4885 | return resultobj; | |
4886 | fail: | |
4887 | return NULL; | |
4888 | } | |
4889 | ||
4890 | ||
d14a1e28 RD |
4891 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
4892 | PyObject *resultobj; | |
4893 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4894 | wxWindow *result; | |
4895 | PyObject * obj0 = 0 ; | |
4896 | char *kwnames[] = { | |
4897 | (char *) "self", NULL | |
4898 | }; | |
4899 | ||
4900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4903 | { |
4904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4905 | result = (wxWindow *)(arg1)->GetWindow(); | |
4906 | ||
4907 | wxPyEndAllowThreads(__tstate); | |
4908 | if (PyErr_Occurred()) SWIG_fail; | |
4909 | } | |
4910 | { | |
4911 | resultobj = wxPyMake_wxObject(result); | |
4912 | } | |
4913 | return resultobj; | |
4914 | fail: | |
4915 | return NULL; | |
4916 | } | |
4917 | ||
4918 | ||
4919 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4920 | PyObject *resultobj; | |
4921 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4922 | int arg2 ; | |
4923 | int arg3 ; | |
4924 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4925 | PyObject * obj1 = 0 ; |
4926 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4927 | char *kwnames[] = { |
4928 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4929 | }; | |
4930 | ||
994141e6 | 4931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4934 | arg2 = (int) SWIG_AsInt(obj1); | |
4935 | if (PyErr_Occurred()) SWIG_fail; | |
4936 | arg3 = (int) SWIG_AsInt(obj2); | |
4937 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4938 | { |
4939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4940 | (arg1)->Move(arg2,arg3); | |
4941 | ||
4942 | wxPyEndAllowThreads(__tstate); | |
4943 | if (PyErr_Occurred()) SWIG_fail; | |
4944 | } | |
4945 | Py_INCREF(Py_None); resultobj = Py_None; | |
4946 | return resultobj; | |
4947 | fail: | |
4948 | return NULL; | |
4949 | } | |
4950 | ||
4951 | ||
4952 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4953 | PyObject *resultobj; | |
4954 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4955 | wxPoint *arg2 = 0 ; | |
4956 | wxPoint temp2 ; | |
4957 | PyObject * obj0 = 0 ; | |
4958 | PyObject * obj1 = 0 ; | |
4959 | char *kwnames[] = { | |
4960 | (char *) "self",(char *) "pt", NULL | |
4961 | }; | |
4962 | ||
4963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4966 | { |
4967 | arg2 = &temp2; | |
4968 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4969 | } | |
4970 | { | |
4971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4972 | (arg1)->Move((wxPoint const &)*arg2); | |
4973 | ||
4974 | wxPyEndAllowThreads(__tstate); | |
4975 | if (PyErr_Occurred()) SWIG_fail; | |
4976 | } | |
4977 | Py_INCREF(Py_None); resultobj = Py_None; | |
4978 | return resultobj; | |
4979 | fail: | |
4980 | return NULL; | |
4981 | } | |
4982 | ||
4983 | ||
4984 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4985 | PyObject *resultobj; | |
4986 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4987 | int arg2 ; | |
4988 | int arg3 ; | |
4989 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4990 | PyObject * obj1 = 0 ; |
4991 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4992 | char *kwnames[] = { |
4993 | (char *) "self",(char *) "width",(char *) "height", NULL | |
4994 | }; | |
4995 | ||
994141e6 | 4996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4999 | arg2 = (int) SWIG_AsInt(obj1); | |
5000 | if (PyErr_Occurred()) SWIG_fail; | |
5001 | arg3 = (int) SWIG_AsInt(obj2); | |
5002 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5003 | { |
5004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5005 | (arg1)->SetSize(arg2,arg3); | |
5006 | ||
5007 | wxPyEndAllowThreads(__tstate); | |
5008 | if (PyErr_Occurred()) SWIG_fail; | |
5009 | } | |
5010 | Py_INCREF(Py_None); resultobj = Py_None; | |
5011 | return resultobj; | |
5012 | fail: | |
5013 | return NULL; | |
5014 | } | |
5015 | ||
5016 | ||
5017 | static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5018 | PyObject *resultobj; | |
5019 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5020 | wxSize *arg2 = 0 ; | |
5021 | wxSize temp2 ; | |
5022 | PyObject * obj0 = 0 ; | |
5023 | PyObject * obj1 = 0 ; | |
5024 | char *kwnames[] = { | |
5025 | (char *) "self",(char *) "size", NULL | |
5026 | }; | |
5027 | ||
5028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5031 | { |
5032 | arg2 = &temp2; | |
5033 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5034 | } | |
5035 | { | |
5036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5037 | (arg1)->SetSize((wxSize const &)*arg2); | |
5038 | ||
5039 | wxPyEndAllowThreads(__tstate); | |
5040 | if (PyErr_Occurred()) SWIG_fail; | |
5041 | } | |
5042 | Py_INCREF(Py_None); resultobj = Py_None; | |
5043 | return resultobj; | |
5044 | fail: | |
5045 | return NULL; | |
5046 | } | |
5047 | ||
5048 | ||
5049 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5050 | PyObject *resultobj; | |
5051 | wxCaret *arg1 = (wxCaret *) 0 ; | |
e811c8ce | 5052 | int arg2 = (int) True ; |
d14a1e28 | 5053 | PyObject * obj0 = 0 ; |
994141e6 | 5054 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5055 | char *kwnames[] = { |
5056 | (char *) "self",(char *) "show", NULL | |
5057 | }; | |
5058 | ||
994141e6 | 5059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5062 | if (obj1) { |
15afbcd0 RD |
5063 | arg2 = (int) SWIG_AsInt(obj1); |
5064 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5065 | } |
d14a1e28 RD |
5066 | { |
5067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5068 | (arg1)->Show(arg2); | |
5069 | ||
5070 | wxPyEndAllowThreads(__tstate); | |
5071 | if (PyErr_Occurred()) SWIG_fail; | |
5072 | } | |
5073 | Py_INCREF(Py_None); resultobj = Py_None; | |
5074 | return resultobj; | |
5075 | fail: | |
5076 | return NULL; | |
5077 | } | |
5078 | ||
5079 | ||
5080 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5081 | PyObject *resultobj; | |
5082 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5083 | PyObject * obj0 = 0 ; | |
5084 | char *kwnames[] = { | |
5085 | (char *) "self", NULL | |
5086 | }; | |
5087 | ||
5088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5091 | { |
5092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5093 | (arg1)->Hide(); | |
5094 | ||
5095 | wxPyEndAllowThreads(__tstate); | |
5096 | if (PyErr_Occurred()) SWIG_fail; | |
5097 | } | |
5098 | Py_INCREF(Py_None); resultobj = Py_None; | |
5099 | return resultobj; | |
5100 | fail: | |
5101 | return NULL; | |
5102 | } | |
5103 | ||
5104 | ||
5105 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
5106 | PyObject *obj; | |
5107 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5108 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
5109 | Py_INCREF(obj); | |
5110 | return Py_BuildValue((char *)""); | |
5111 | } | |
5112 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5113 | PyObject *resultobj; | |
5114 | int result; | |
5115 | char *kwnames[] = { | |
5116 | NULL | |
5117 | }; | |
5118 | ||
5119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
5120 | { | |
5121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5122 | result = (int)wxCaret_GetBlinkTime(); | |
5123 | ||
5124 | wxPyEndAllowThreads(__tstate); | |
5125 | if (PyErr_Occurred()) SWIG_fail; | |
5126 | } | |
15afbcd0 | 5127 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5128 | return resultobj; |
5129 | fail: | |
5130 | return NULL; | |
5131 | } | |
5132 | ||
5133 | ||
5134 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5135 | PyObject *resultobj; | |
5136 | int arg1 ; | |
994141e6 | 5137 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
5138 | char *kwnames[] = { |
5139 | (char *) "milliseconds", NULL | |
5140 | }; | |
5141 | ||
994141e6 | 5142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
5143 | arg1 = (int) SWIG_AsInt(obj0); |
5144 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5145 | { |
5146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5147 | wxCaret_SetBlinkTime(arg1); | |
5148 | ||
5149 | wxPyEndAllowThreads(__tstate); | |
5150 | if (PyErr_Occurred()) SWIG_fail; | |
5151 | } | |
5152 | Py_INCREF(Py_None); resultobj = Py_None; | |
5153 | return resultobj; | |
5154 | fail: | |
5155 | return NULL; | |
5156 | } | |
5157 | ||
5158 | ||
5159 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5160 | PyObject *resultobj; | |
5161 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
5162 | wxBusyCursor *result; | |
5163 | PyObject * obj0 = 0 ; | |
5164 | char *kwnames[] = { | |
5165 | (char *) "cursor", NULL | |
5166 | }; | |
5167 | ||
5168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
5169 | if (obj0) { | |
15afbcd0 RD |
5170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
5171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5172 | } |
5173 | { | |
5174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5175 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
5176 | ||
5177 | wxPyEndAllowThreads(__tstate); | |
5178 | if (PyErr_Occurred()) SWIG_fail; | |
5179 | } | |
15afbcd0 | 5180 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); |
d14a1e28 RD |
5181 | return resultobj; |
5182 | fail: | |
5183 | return NULL; | |
5184 | } | |
5185 | ||
5186 | ||
5187 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5188 | PyObject *resultobj; | |
5189 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
5190 | PyObject * obj0 = 0 ; | |
5191 | char *kwnames[] = { | |
5192 | (char *) "self", NULL | |
5193 | }; | |
5194 | ||
5195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor, |
5197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5198 | { |
5199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5200 | delete arg1; | |
5201 | ||
5202 | wxPyEndAllowThreads(__tstate); | |
5203 | if (PyErr_Occurred()) SWIG_fail; | |
5204 | } | |
5205 | Py_INCREF(Py_None); resultobj = Py_None; | |
5206 | return resultobj; | |
5207 | fail: | |
5208 | return NULL; | |
5209 | } | |
5210 | ||
5211 | ||
5212 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
5213 | PyObject *obj; | |
5214 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5215 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
5216 | Py_INCREF(obj); | |
5217 | return Py_BuildValue((char *)""); | |
5218 | } | |
5219 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5220 | PyObject *resultobj; | |
5221 | wxWindow *arg1 = (wxWindow *) NULL ; | |
5222 | wxWindowDisabler *result; | |
5223 | PyObject * obj0 = 0 ; | |
5224 | char *kwnames[] = { | |
5225 | (char *) "winToSkip", NULL | |
5226 | }; | |
5227 | ||
5228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
5229 | if (obj0) { | |
15afbcd0 RD |
5230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5232 | } |
5233 | { | |
5234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5235 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
5236 | ||
5237 | wxPyEndAllowThreads(__tstate); | |
5238 | if (PyErr_Occurred()) SWIG_fail; | |
5239 | } | |
15afbcd0 | 5240 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); |
d14a1e28 RD |
5241 | return resultobj; |
5242 | fail: | |
5243 | return NULL; | |
5244 | } | |
5245 | ||
5246 | ||
5247 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5248 | PyObject *resultobj; | |
5249 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
5250 | PyObject * obj0 = 0 ; | |
5251 | char *kwnames[] = { | |
5252 | (char *) "self", NULL | |
5253 | }; | |
5254 | ||
5255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler, |
5257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5258 | { |
5259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5260 | delete arg1; | |
5261 | ||
5262 | wxPyEndAllowThreads(__tstate); | |
5263 | if (PyErr_Occurred()) SWIG_fail; | |
5264 | } | |
5265 | Py_INCREF(Py_None); resultobj = Py_None; | |
5266 | return resultobj; | |
5267 | fail: | |
5268 | return NULL; | |
5269 | } | |
5270 | ||
5271 | ||
5272 | static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
5273 | PyObject *obj; | |
5274 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5275 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
5276 | Py_INCREF(obj); | |
5277 | return Py_BuildValue((char *)""); | |
5278 | } | |
5279 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5280 | PyObject *resultobj; | |
5281 | wxString *arg1 = 0 ; | |
5282 | wxBusyInfo *result; | |
e811c8ce | 5283 | bool temp1 = False ; |
d14a1e28 RD |
5284 | PyObject * obj0 = 0 ; |
5285 | char *kwnames[] = { | |
5286 | (char *) "message", NULL | |
5287 | }; | |
5288 | ||
5289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
5290 | { | |
5291 | arg1 = wxString_in_helper(obj0); | |
5292 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 5293 | temp1 = True; |
d14a1e28 RD |
5294 | } |
5295 | { | |
5296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5297 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
5298 | ||
5299 | wxPyEndAllowThreads(__tstate); | |
5300 | if (PyErr_Occurred()) SWIG_fail; | |
5301 | } | |
15afbcd0 | 5302 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); |
d14a1e28 RD |
5303 | { |
5304 | if (temp1) | |
5305 | delete arg1; | |
5306 | } | |
5307 | return resultobj; | |
5308 | fail: | |
5309 | { | |
5310 | if (temp1) | |
5311 | delete arg1; | |
5312 | } | |
5313 | return NULL; | |
5314 | } | |
5315 | ||
5316 | ||
5317 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5318 | PyObject *resultobj; | |
5319 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5320 | PyObject * obj0 = 0 ; | |
5321 | char *kwnames[] = { | |
5322 | (char *) "self", NULL | |
5323 | }; | |
5324 | ||
5325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo, |
5327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5328 | { |
5329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5330 | delete arg1; | |
5331 | ||
5332 | wxPyEndAllowThreads(__tstate); | |
5333 | if (PyErr_Occurred()) SWIG_fail; | |
5334 | } | |
5335 | Py_INCREF(Py_None); resultobj = Py_None; | |
5336 | return resultobj; | |
5337 | fail: | |
5338 | return NULL; | |
5339 | } | |
5340 | ||
5341 | ||
5342 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
5343 | PyObject *obj; | |
5344 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5345 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5346 | Py_INCREF(obj); | |
5347 | return Py_BuildValue((char *)""); | |
5348 | } | |
5349 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5350 | PyObject *resultobj; | |
5351 | wxStopWatch *result; | |
5352 | char *kwnames[] = { | |
5353 | NULL | |
5354 | }; | |
5355 | ||
5356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5357 | { | |
5358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5359 | result = (wxStopWatch *)new wxStopWatch(); | |
5360 | ||
5361 | wxPyEndAllowThreads(__tstate); | |
5362 | if (PyErr_Occurred()) SWIG_fail; | |
5363 | } | |
15afbcd0 | 5364 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); |
d14a1e28 RD |
5365 | return resultobj; |
5366 | fail: | |
5367 | return NULL; | |
5368 | } | |
5369 | ||
5370 | ||
5371 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5372 | PyObject *resultobj; | |
5373 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5374 | long arg2 = (long) 0 ; | |
5375 | PyObject * obj0 = 0 ; | |
994141e6 | 5376 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5377 | char *kwnames[] = { |
5378 | (char *) "self",(char *) "t0", NULL | |
5379 | }; | |
5380 | ||
994141e6 | 5381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5384 | if (obj1) { |
15afbcd0 RD |
5385 | arg2 = (long) SWIG_AsLong(obj1); |
5386 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5387 | } |
d14a1e28 RD |
5388 | { |
5389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5390 | (arg1)->Start(arg2); | |
5391 | ||
5392 | wxPyEndAllowThreads(__tstate); | |
5393 | if (PyErr_Occurred()) SWIG_fail; | |
5394 | } | |
5395 | Py_INCREF(Py_None); resultobj = Py_None; | |
5396 | return resultobj; | |
5397 | fail: | |
5398 | return NULL; | |
5399 | } | |
5400 | ||
5401 | ||
5402 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5403 | PyObject *resultobj; | |
5404 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5405 | PyObject * obj0 = 0 ; | |
5406 | char *kwnames[] = { | |
5407 | (char *) "self", NULL | |
5408 | }; | |
5409 | ||
5410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5413 | { |
5414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5415 | (arg1)->Pause(); | |
5416 | ||
5417 | wxPyEndAllowThreads(__tstate); | |
5418 | if (PyErr_Occurred()) SWIG_fail; | |
5419 | } | |
5420 | Py_INCREF(Py_None); resultobj = Py_None; | |
5421 | return resultobj; | |
5422 | fail: | |
5423 | return NULL; | |
5424 | } | |
5425 | ||
5426 | ||
5427 | static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5428 | PyObject *resultobj; | |
5429 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5430 | PyObject * obj0 = 0 ; | |
5431 | char *kwnames[] = { | |
5432 | (char *) "self", NULL | |
5433 | }; | |
5434 | ||
5435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5438 | { |
5439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5440 | (arg1)->Resume(); | |
5441 | ||
5442 | wxPyEndAllowThreads(__tstate); | |
5443 | if (PyErr_Occurred()) SWIG_fail; | |
5444 | } | |
5445 | Py_INCREF(Py_None); resultobj = Py_None; | |
5446 | return resultobj; | |
5447 | fail: | |
5448 | return NULL; | |
5449 | } | |
5450 | ||
5451 | ||
5452 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5453 | PyObject *resultobj; | |
5454 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5455 | long result; | |
5456 | PyObject * obj0 = 0 ; | |
5457 | char *kwnames[] = { | |
5458 | (char *) "self", NULL | |
5459 | }; | |
5460 | ||
5461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5464 | { |
5465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5466 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5467 | ||
5468 | wxPyEndAllowThreads(__tstate); | |
5469 | if (PyErr_Occurred()) SWIG_fail; | |
5470 | } | |
15afbcd0 | 5471 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
5472 | return resultobj; |
5473 | fail: | |
5474 | return NULL; | |
5475 | } | |
5476 | ||
5477 | ||
5478 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
5479 | PyObject *obj; | |
5480 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5481 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5482 | Py_INCREF(obj); | |
5483 | return Py_BuildValue((char *)""); | |
5484 | } | |
5485 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5486 | PyObject *resultobj; | |
5487 | int arg1 = (int) 9 ; | |
5488 | wxFileHistory *result; | |
994141e6 | 5489 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
5490 | char *kwnames[] = { |
5491 | (char *) "maxFiles", NULL | |
5492 | }; | |
5493 | ||
994141e6 RD |
5494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail; |
5495 | if (obj0) { | |
15afbcd0 RD |
5496 | arg1 = (int) SWIG_AsInt(obj0); |
5497 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5498 | } |
d14a1e28 RD |
5499 | { |
5500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5501 | result = (wxFileHistory *)new wxFileHistory(arg1); | |
5502 | ||
5503 | wxPyEndAllowThreads(__tstate); | |
5504 | if (PyErr_Occurred()) SWIG_fail; | |
5505 | } | |
15afbcd0 | 5506 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); |
d14a1e28 RD |
5507 | return resultobj; |
5508 | fail: | |
5509 | return NULL; | |
5510 | } | |
5511 | ||
5512 | ||
5513 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5514 | PyObject *resultobj; | |
5515 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5516 | PyObject * obj0 = 0 ; | |
5517 | char *kwnames[] = { | |
5518 | (char *) "self", NULL | |
5519 | }; | |
5520 | ||
5521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5524 | { |
5525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5526 | delete arg1; | |
5527 | ||
5528 | wxPyEndAllowThreads(__tstate); | |
5529 | if (PyErr_Occurred()) SWIG_fail; | |
5530 | } | |
5531 | Py_INCREF(Py_None); resultobj = Py_None; | |
5532 | return resultobj; | |
5533 | fail: | |
5534 | return NULL; | |
5535 | } | |
5536 | ||
5537 | ||
5538 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5539 | PyObject *resultobj; | |
5540 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5541 | wxString *arg2 = 0 ; | |
e811c8ce | 5542 | bool temp2 = False ; |
d14a1e28 RD |
5543 | PyObject * obj0 = 0 ; |
5544 | PyObject * obj1 = 0 ; | |
5545 | char *kwnames[] = { | |
5546 | (char *) "self",(char *) "file", NULL | |
5547 | }; | |
5548 | ||
5549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5552 | { |
5553 | arg2 = wxString_in_helper(obj1); | |
5554 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5555 | temp2 = True; |
d14a1e28 RD |
5556 | } |
5557 | { | |
5558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5559 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
5560 | ||
5561 | wxPyEndAllowThreads(__tstate); | |
5562 | if (PyErr_Occurred()) SWIG_fail; | |
5563 | } | |
5564 | Py_INCREF(Py_None); resultobj = Py_None; | |
5565 | { | |
5566 | if (temp2) | |
5567 | delete arg2; | |
5568 | } | |
5569 | return resultobj; | |
5570 | fail: | |
5571 | { | |
5572 | if (temp2) | |
5573 | delete arg2; | |
5574 | } | |
5575 | return NULL; | |
5576 | } | |
5577 | ||
5578 | ||
5579 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5580 | PyObject *resultobj; | |
5581 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5582 | int arg2 ; | |
5583 | PyObject * obj0 = 0 ; | |
994141e6 | 5584 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5585 | char *kwnames[] = { |
5586 | (char *) "self",(char *) "i", NULL | |
5587 | }; | |
5588 | ||
994141e6 | 5589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5592 | arg2 = (int) SWIG_AsInt(obj1); | |
5593 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5594 | { |
5595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5596 | (arg1)->RemoveFileFromHistory(arg2); | |
5597 | ||
5598 | wxPyEndAllowThreads(__tstate); | |
5599 | if (PyErr_Occurred()) SWIG_fail; | |
5600 | } | |
5601 | Py_INCREF(Py_None); resultobj = Py_None; | |
5602 | return resultobj; | |
5603 | fail: | |
5604 | return NULL; | |
5605 | } | |
5606 | ||
5607 | ||
5608 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5609 | PyObject *resultobj; | |
5610 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5611 | int result; | |
5612 | PyObject * obj0 = 0 ; | |
5613 | char *kwnames[] = { | |
5614 | (char *) "self", NULL | |
5615 | }; | |
5616 | ||
5617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5620 | { |
5621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5622 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
5623 | ||
5624 | wxPyEndAllowThreads(__tstate); | |
5625 | if (PyErr_Occurred()) SWIG_fail; | |
5626 | } | |
15afbcd0 | 5627 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5628 | return resultobj; |
5629 | fail: | |
5630 | return NULL; | |
5631 | } | |
5632 | ||
5633 | ||
5634 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5635 | PyObject *resultobj; | |
5636 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5637 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5638 | PyObject * obj0 = 0 ; | |
5639 | PyObject * obj1 = 0 ; | |
5640 | char *kwnames[] = { | |
5641 | (char *) "self",(char *) "menu", NULL | |
5642 | }; | |
5643 | ||
5644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5647 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5649 | { |
5650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5651 | (arg1)->UseMenu(arg2); | |
5652 | ||
5653 | wxPyEndAllowThreads(__tstate); | |
5654 | if (PyErr_Occurred()) SWIG_fail; | |
5655 | } | |
5656 | Py_INCREF(Py_None); resultobj = Py_None; | |
5657 | return resultobj; | |
5658 | fail: | |
5659 | return NULL; | |
5660 | } | |
5661 | ||
5662 | ||
5663 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5664 | PyObject *resultobj; | |
5665 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5666 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5667 | PyObject * obj0 = 0 ; | |
5668 | PyObject * obj1 = 0 ; | |
5669 | char *kwnames[] = { | |
5670 | (char *) "self",(char *) "menu", NULL | |
5671 | }; | |
5672 | ||
5673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5676 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5678 | { |
5679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5680 | (arg1)->RemoveMenu(arg2); | |
5681 | ||
5682 | wxPyEndAllowThreads(__tstate); | |
5683 | if (PyErr_Occurred()) SWIG_fail; | |
5684 | } | |
5685 | Py_INCREF(Py_None); resultobj = Py_None; | |
5686 | return resultobj; | |
5687 | fail: | |
5688 | return NULL; | |
5689 | } | |
5690 | ||
5691 | ||
5692 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5693 | PyObject *resultobj; | |
5694 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5695 | wxConfigBase *arg2 = 0 ; | |
5696 | PyObject * obj0 = 0 ; | |
5697 | PyObject * obj1 = 0 ; | |
5698 | char *kwnames[] = { | |
5699 | (char *) "self",(char *) "config", NULL | |
5700 | }; | |
5701 | ||
5702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5705 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5706 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5707 | SWIG_fail; | |
d14a1e28 | 5708 | if (arg2 == NULL) { |
15afbcd0 RD |
5709 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5710 | SWIG_fail; | |
d14a1e28 RD |
5711 | } |
5712 | { | |
5713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5714 | (arg1)->Load(*arg2); | |
5715 | ||
5716 | wxPyEndAllowThreads(__tstate); | |
5717 | if (PyErr_Occurred()) SWIG_fail; | |
5718 | } | |
5719 | Py_INCREF(Py_None); resultobj = Py_None; | |
5720 | return resultobj; | |
5721 | fail: | |
5722 | return NULL; | |
5723 | } | |
5724 | ||
5725 | ||
5726 | static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5727 | PyObject *resultobj; | |
5728 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5729 | wxConfigBase *arg2 = 0 ; | |
5730 | PyObject * obj0 = 0 ; | |
5731 | PyObject * obj1 = 0 ; | |
5732 | char *kwnames[] = { | |
5733 | (char *) "self",(char *) "config", NULL | |
5734 | }; | |
5735 | ||
5736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5739 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5740 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5741 | SWIG_fail; | |
d14a1e28 | 5742 | if (arg2 == NULL) { |
15afbcd0 RD |
5743 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5744 | SWIG_fail; | |
d14a1e28 RD |
5745 | } |
5746 | { | |
5747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5748 | (arg1)->Save(*arg2); | |
5749 | ||
5750 | wxPyEndAllowThreads(__tstate); | |
5751 | if (PyErr_Occurred()) SWIG_fail; | |
5752 | } | |
5753 | Py_INCREF(Py_None); resultobj = Py_None; | |
5754 | return resultobj; | |
5755 | fail: | |
5756 | return NULL; | |
5757 | } | |
5758 | ||
5759 | ||
5760 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5761 | PyObject *resultobj; | |
5762 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5763 | PyObject * obj0 = 0 ; | |
5764 | char *kwnames[] = { | |
5765 | (char *) "self", NULL | |
5766 | }; | |
5767 | ||
5768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5771 | { |
5772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5773 | (arg1)->AddFilesToMenu(); | |
5774 | ||
5775 | wxPyEndAllowThreads(__tstate); | |
5776 | if (PyErr_Occurred()) SWIG_fail; | |
5777 | } | |
5778 | Py_INCREF(Py_None); resultobj = Py_None; | |
5779 | return resultobj; | |
5780 | fail: | |
5781 | return NULL; | |
5782 | } | |
5783 | ||
5784 | ||
5785 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5786 | PyObject *resultobj; | |
5787 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5788 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5789 | PyObject * obj0 = 0 ; | |
5790 | PyObject * obj1 = 0 ; | |
5791 | char *kwnames[] = { | |
5792 | (char *) "self",(char *) "menu", NULL | |
5793 | }; | |
5794 | ||
5795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5798 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5800 | { |
5801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5802 | (arg1)->AddFilesToMenu(arg2); | |
5803 | ||
5804 | wxPyEndAllowThreads(__tstate); | |
5805 | if (PyErr_Occurred()) SWIG_fail; | |
5806 | } | |
5807 | Py_INCREF(Py_None); resultobj = Py_None; | |
5808 | return resultobj; | |
5809 | fail: | |
5810 | return NULL; | |
5811 | } | |
5812 | ||
5813 | ||
5814 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5815 | PyObject *resultobj; | |
5816 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5817 | int arg2 ; | |
5818 | wxString result; | |
5819 | PyObject * obj0 = 0 ; | |
994141e6 | 5820 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5821 | char *kwnames[] = { |
5822 | (char *) "self",(char *) "i", NULL | |
5823 | }; | |
5824 | ||
994141e6 | 5825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5828 | arg2 = (int) SWIG_AsInt(obj1); | |
5829 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5830 | { |
5831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5832 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
5833 | ||
5834 | wxPyEndAllowThreads(__tstate); | |
5835 | if (PyErr_Occurred()) SWIG_fail; | |
5836 | } | |
5837 | { | |
5838 | #if wxUSE_UNICODE | |
5839 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5840 | #else | |
5841 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5842 | #endif | |
5843 | } | |
5844 | return resultobj; | |
5845 | fail: | |
5846 | return NULL; | |
5847 | } | |
5848 | ||
5849 | ||
5850 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5851 | PyObject *resultobj; | |
5852 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5853 | int result; | |
5854 | PyObject * obj0 = 0 ; | |
5855 | char *kwnames[] = { | |
5856 | (char *) "self", NULL | |
5857 | }; | |
5858 | ||
5859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5862 | { |
5863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5864 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
5865 | ||
5866 | wxPyEndAllowThreads(__tstate); | |
5867 | if (PyErr_Occurred()) SWIG_fail; | |
5868 | } | |
15afbcd0 | 5869 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5870 | return resultobj; |
5871 | fail: | |
5872 | return NULL; | |
5873 | } | |
5874 | ||
5875 | ||
5876 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
5877 | PyObject *obj; | |
5878 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5879 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
5880 | Py_INCREF(obj); | |
5881 | return Py_BuildValue((char *)""); | |
5882 | } | |
5883 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5884 | PyObject *resultobj; | |
5885 | wxString *arg1 = 0 ; | |
5886 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5887 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5888 | wxSingleInstanceChecker *result; | |
e811c8ce RD |
5889 | bool temp1 = False ; |
5890 | bool temp2 = False ; | |
d14a1e28 RD |
5891 | PyObject * obj0 = 0 ; |
5892 | PyObject * obj1 = 0 ; | |
5893 | char *kwnames[] = { | |
5894 | (char *) "name",(char *) "path", NULL | |
5895 | }; | |
5896 | ||
5897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
5898 | { | |
5899 | arg1 = wxString_in_helper(obj0); | |
5900 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 5901 | temp1 = True; |
d14a1e28 RD |
5902 | } |
5903 | if (obj1) { | |
5904 | { | |
5905 | arg2 = wxString_in_helper(obj1); | |
5906 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5907 | temp2 = True; |
d14a1e28 RD |
5908 | } |
5909 | } | |
5910 | { | |
5911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5912 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
5913 | ||
5914 | wxPyEndAllowThreads(__tstate); | |
5915 | if (PyErr_Occurred()) SWIG_fail; | |
5916 | } | |
15afbcd0 | 5917 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); |
d14a1e28 RD |
5918 | { |
5919 | if (temp1) | |
5920 | delete arg1; | |
5921 | } | |
5922 | { | |
5923 | if (temp2) | |
5924 | delete arg2; | |
5925 | } | |
5926 | return resultobj; | |
5927 | fail: | |
5928 | { | |
5929 | if (temp1) | |
5930 | delete arg1; | |
5931 | } | |
5932 | { | |
5933 | if (temp2) | |
5934 | delete arg2; | |
5935 | } | |
5936 | return NULL; | |
5937 | } | |
5938 | ||
5939 | ||
5940 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5941 | PyObject *resultobj; | |
5942 | wxSingleInstanceChecker *result; | |
5943 | char *kwnames[] = { | |
5944 | NULL | |
5945 | }; | |
5946 | ||
5947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
5948 | { | |
5949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5950 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
5951 | ||
5952 | wxPyEndAllowThreads(__tstate); | |
5953 | if (PyErr_Occurred()) SWIG_fail; | |
5954 | } | |
15afbcd0 | 5955 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); |
d14a1e28 RD |
5956 | return resultobj; |
5957 | fail: | |
5958 | return NULL; | |
5959 | } | |
5960 | ||
5961 | ||
5962 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5963 | PyObject *resultobj; | |
5964 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5965 | PyObject * obj0 = 0 ; | |
5966 | char *kwnames[] = { | |
5967 | (char *) "self", NULL | |
5968 | }; | |
5969 | ||
5970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
5972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5973 | { |
5974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5975 | delete arg1; | |
5976 | ||
5977 | wxPyEndAllowThreads(__tstate); | |
5978 | if (PyErr_Occurred()) SWIG_fail; | |
5979 | } | |
5980 | Py_INCREF(Py_None); resultobj = Py_None; | |
5981 | return resultobj; | |
5982 | fail: | |
5983 | return NULL; | |
5984 | } | |
5985 | ||
5986 | ||
5987 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5988 | PyObject *resultobj; | |
5989 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5990 | wxString *arg2 = 0 ; | |
5991 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5992 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5993 | bool result; | |
e811c8ce RD |
5994 | bool temp2 = False ; |
5995 | bool temp3 = False ; | |
d14a1e28 RD |
5996 | PyObject * obj0 = 0 ; |
5997 | PyObject * obj1 = 0 ; | |
5998 | PyObject * obj2 = 0 ; | |
5999 | char *kwnames[] = { | |
6000 | (char *) "self",(char *) "name",(char *) "path", NULL | |
6001 | }; | |
6002 | ||
6003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
6005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6006 | { |
6007 | arg2 = wxString_in_helper(obj1); | |
6008 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6009 | temp2 = True; |
d14a1e28 RD |
6010 | } |
6011 | if (obj2) { | |
6012 | { | |
6013 | arg3 = wxString_in_helper(obj2); | |
6014 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6015 | temp3 = True; |
d14a1e28 RD |
6016 | } |
6017 | } | |
6018 | { | |
6019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6020 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
6021 | ||
6022 | wxPyEndAllowThreads(__tstate); | |
6023 | if (PyErr_Occurred()) SWIG_fail; | |
6024 | } | |
4f89f6a3 RD |
6025 | { |
6026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6027 | } | |
d14a1e28 RD |
6028 | { |
6029 | if (temp2) | |
6030 | delete arg2; | |
6031 | } | |
6032 | { | |
6033 | if (temp3) | |
6034 | delete arg3; | |
6035 | } | |
6036 | return resultobj; | |
6037 | fail: | |
6038 | { | |
6039 | if (temp2) | |
6040 | delete arg2; | |
6041 | } | |
6042 | { | |
6043 | if (temp3) | |
6044 | delete arg3; | |
6045 | } | |
6046 | return NULL; | |
6047 | } | |
6048 | ||
6049 | ||
6050 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6051 | PyObject *resultobj; | |
6052 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6053 | bool result; | |
6054 | PyObject * obj0 = 0 ; | |
6055 | char *kwnames[] = { | |
6056 | (char *) "self", NULL | |
6057 | }; | |
6058 | ||
6059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
6061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6062 | { |
6063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6064 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
6065 | ||
6066 | wxPyEndAllowThreads(__tstate); | |
6067 | if (PyErr_Occurred()) SWIG_fail; | |
6068 | } | |
4f89f6a3 RD |
6069 | { |
6070 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6071 | } | |
d14a1e28 RD |
6072 | return resultobj; |
6073 | fail: | |
6074 | return NULL; | |
6075 | } | |
6076 | ||
6077 | ||
6078 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
6079 | PyObject *obj; | |
6080 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6081 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
6082 | Py_INCREF(obj); | |
6083 | return Py_BuildValue((char *)""); | |
6084 | } | |
6085 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6086 | PyObject *resultobj; | |
6087 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6088 | wxDC *arg2 = 0 ; | |
6089 | int arg3 ; | |
6090 | PyObject * obj0 = 0 ; | |
6091 | PyObject * obj1 = 0 ; | |
994141e6 | 6092 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6093 | char *kwnames[] = { |
6094 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
6095 | }; | |
6096 | ||
994141e6 | 6097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6100 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
6101 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6102 | SWIG_fail; | |
d14a1e28 | 6103 | if (arg2 == NULL) { |
15afbcd0 RD |
6104 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6105 | SWIG_fail; | |
994141e6 | 6106 | } |
15afbcd0 RD |
6107 | arg3 = (int) SWIG_AsInt(obj2); |
6108 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6109 | { |
6110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6111 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
6112 | ||
6113 | wxPyEndAllowThreads(__tstate); | |
6114 | if (PyErr_Occurred()) SWIG_fail; | |
6115 | } | |
6116 | Py_INCREF(Py_None); resultobj = Py_None; | |
6117 | return resultobj; | |
6118 | fail: | |
6119 | return NULL; | |
6120 | } | |
6121 | ||
6122 | ||
6123 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6124 | PyObject *resultobj; | |
6125 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6126 | PyObject * obj0 = 0 ; | |
6127 | char *kwnames[] = { | |
6128 | (char *) "self", NULL | |
6129 | }; | |
6130 | ||
6131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6134 | { |
6135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6136 | delete arg1; | |
6137 | ||
6138 | wxPyEndAllowThreads(__tstate); | |
6139 | if (PyErr_Occurred()) SWIG_fail; | |
6140 | } | |
6141 | Py_INCREF(Py_None); resultobj = Py_None; | |
6142 | return resultobj; | |
6143 | fail: | |
6144 | return NULL; | |
6145 | } | |
6146 | ||
6147 | ||
6148 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6149 | PyObject *resultobj; | |
6150 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6151 | wxString result; | |
6152 | PyObject * obj0 = 0 ; | |
6153 | char *kwnames[] = { | |
6154 | (char *) "self", NULL | |
6155 | }; | |
6156 | ||
6157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6160 | { |
6161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6162 | result = (arg1)->GetTip(); | |
6163 | ||
6164 | wxPyEndAllowThreads(__tstate); | |
6165 | if (PyErr_Occurred()) SWIG_fail; | |
6166 | } | |
6167 | { | |
6168 | #if wxUSE_UNICODE | |
6169 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6170 | #else | |
6171 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6172 | #endif | |
6173 | } | |
6174 | return resultobj; | |
6175 | fail: | |
6176 | return NULL; | |
6177 | } | |
6178 | ||
6179 | ||
6180 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6181 | PyObject *resultobj; | |
6182 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6183 | size_t result; | |
6184 | PyObject * obj0 = 0 ; | |
6185 | char *kwnames[] = { | |
6186 | (char *) "self", NULL | |
6187 | }; | |
6188 | ||
6189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6192 | { |
6193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6194 | result = (size_t)(arg1)->GetCurrentTip(); | |
6195 | ||
6196 | wxPyEndAllowThreads(__tstate); | |
6197 | if (PyErr_Occurred()) SWIG_fail; | |
6198 | } | |
15afbcd0 | 6199 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
6200 | return resultobj; |
6201 | fail: | |
6202 | return NULL; | |
6203 | } | |
6204 | ||
6205 | ||
6206 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6207 | PyObject *resultobj; | |
6208 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6209 | wxString *arg2 = 0 ; | |
6210 | wxString result; | |
e811c8ce | 6211 | bool temp2 = False ; |
d14a1e28 RD |
6212 | PyObject * obj0 = 0 ; |
6213 | PyObject * obj1 = 0 ; | |
6214 | char *kwnames[] = { | |
6215 | (char *) "self",(char *) "tip", NULL | |
6216 | }; | |
6217 | ||
6218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6221 | { |
6222 | arg2 = wxString_in_helper(obj1); | |
6223 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6224 | temp2 = True; |
d14a1e28 RD |
6225 | } |
6226 | { | |
6227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6228 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
6229 | ||
6230 | wxPyEndAllowThreads(__tstate); | |
6231 | if (PyErr_Occurred()) SWIG_fail; | |
6232 | } | |
6233 | { | |
6234 | #if wxUSE_UNICODE | |
6235 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6236 | #else | |
6237 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6238 | #endif | |
6239 | } | |
6240 | { | |
6241 | if (temp2) | |
6242 | delete arg2; | |
6243 | } | |
6244 | return resultobj; | |
6245 | fail: | |
6246 | { | |
6247 | if (temp2) | |
6248 | delete arg2; | |
6249 | } | |
6250 | return NULL; | |
6251 | } | |
6252 | ||
6253 | ||
6254 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
6255 | PyObject *obj; | |
6256 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6257 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
6258 | Py_INCREF(obj); | |
6259 | return Py_BuildValue((char *)""); | |
6260 | } | |
6261 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6262 | PyObject *resultobj; | |
6263 | size_t arg1 ; | |
6264 | wxPyTipProvider *result; | |
6265 | PyObject * obj0 = 0 ; | |
6266 | char *kwnames[] = { | |
6267 | (char *) "currentTip", NULL | |
6268 | }; | |
6269 | ||
6270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6271 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); |
6272 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6273 | { |
6274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6275 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
6276 | ||
6277 | wxPyEndAllowThreads(__tstate); | |
6278 | if (PyErr_Occurred()) SWIG_fail; | |
6279 | } | |
15afbcd0 | 6280 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); |
d14a1e28 RD |
6281 | return resultobj; |
6282 | fail: | |
6283 | return NULL; | |
6284 | } | |
6285 | ||
6286 | ||
6287 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6288 | PyObject *resultobj; | |
6289 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
6290 | PyObject *arg2 = (PyObject *) 0 ; | |
6291 | PyObject *arg3 = (PyObject *) 0 ; | |
6292 | PyObject * obj0 = 0 ; | |
6293 | PyObject * obj1 = 0 ; | |
6294 | PyObject * obj2 = 0 ; | |
6295 | char *kwnames[] = { | |
6296 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6297 | }; | |
6298 | ||
6299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider, |
6301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6302 | arg2 = obj1; |
6303 | arg3 = obj2; | |
6304 | { | |
6305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6306 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6307 | ||
6308 | wxPyEndAllowThreads(__tstate); | |
6309 | if (PyErr_Occurred()) SWIG_fail; | |
6310 | } | |
6311 | Py_INCREF(Py_None); resultobj = Py_None; | |
6312 | return resultobj; | |
6313 | fail: | |
6314 | return NULL; | |
6315 | } | |
6316 | ||
6317 | ||
6318 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
6319 | PyObject *obj; | |
6320 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6321 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
6322 | Py_INCREF(obj); | |
6323 | return Py_BuildValue((char *)""); | |
6324 | } | |
6325 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6326 | PyObject *resultobj; | |
6327 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6328 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
e811c8ce | 6329 | bool arg3 = (bool) True ; |
d14a1e28 RD |
6330 | bool result; |
6331 | PyObject * obj0 = 0 ; | |
6332 | PyObject * obj1 = 0 ; | |
6333 | PyObject * obj2 = 0 ; | |
6334 | char *kwnames[] = { | |
6335 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
6336 | }; | |
6337 | ||
6338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6341 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider, | |
6342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6343 | if (obj2) { |
15afbcd0 RD |
6344 | arg3 = (bool) SWIG_AsBool(obj2); |
6345 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6346 | } |
6347 | { | |
6348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6349 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6350 | ||
6351 | wxPyEndAllowThreads(__tstate); | |
6352 | if (PyErr_Occurred()) SWIG_fail; | |
6353 | } | |
4f89f6a3 RD |
6354 | { |
6355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6356 | } | |
d14a1e28 RD |
6357 | return resultobj; |
6358 | fail: | |
6359 | return NULL; | |
6360 | } | |
6361 | ||
6362 | ||
6363 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6364 | PyObject *resultobj; | |
6365 | wxString *arg1 = 0 ; | |
6366 | size_t arg2 ; | |
6367 | wxTipProvider *result; | |
e811c8ce | 6368 | bool temp1 = False ; |
d14a1e28 RD |
6369 | PyObject * obj0 = 0 ; |
6370 | PyObject * obj1 = 0 ; | |
6371 | char *kwnames[] = { | |
6372 | (char *) "filename",(char *) "currentTip", NULL | |
6373 | }; | |
6374 | ||
6375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6376 | { | |
6377 | arg1 = wxString_in_helper(obj0); | |
6378 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 6379 | temp1 = True; |
d14a1e28 | 6380 | } |
15afbcd0 RD |
6381 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); |
6382 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6383 | { |
6384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6385 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6386 | ||
6387 | wxPyEndAllowThreads(__tstate); | |
6388 | if (PyErr_Occurred()) SWIG_fail; | |
6389 | } | |
15afbcd0 | 6390 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); |
d14a1e28 RD |
6391 | { |
6392 | if (temp1) | |
6393 | delete arg1; | |
6394 | } | |
6395 | return resultobj; | |
6396 | fail: | |
6397 | { | |
6398 | if (temp1) | |
6399 | delete arg1; | |
6400 | } | |
6401 | return NULL; | |
6402 | } | |
6403 | ||
6404 | ||
6405 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6406 | PyObject *resultobj; | |
6407 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6408 | int arg2 = (int) -1 ; | |
6409 | wxPyTimer *result; | |
6410 | PyObject * obj0 = 0 ; | |
994141e6 | 6411 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6412 | char *kwnames[] = { |
6413 | (char *) "owner",(char *) "id", NULL | |
6414 | }; | |
6415 | ||
994141e6 | 6416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6417 | if (obj0) { |
15afbcd0 RD |
6418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
6419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6420 | } |
994141e6 | 6421 | if (obj1) { |
15afbcd0 RD |
6422 | arg2 = (int) SWIG_AsInt(obj1); |
6423 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6424 | } |
d14a1e28 RD |
6425 | { |
6426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6427 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6428 | ||
6429 | wxPyEndAllowThreads(__tstate); | |
6430 | if (PyErr_Occurred()) SWIG_fail; | |
6431 | } | |
15afbcd0 | 6432 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); |
d14a1e28 RD |
6433 | return resultobj; |
6434 | fail: | |
6435 | return NULL; | |
6436 | } | |
6437 | ||
6438 | ||
6439 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6440 | PyObject *resultobj; | |
6441 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6442 | PyObject * obj0 = 0 ; | |
6443 | char *kwnames[] = { | |
6444 | (char *) "self", NULL | |
6445 | }; | |
6446 | ||
6447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6450 | { |
6451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6452 | delete arg1; | |
6453 | ||
6454 | wxPyEndAllowThreads(__tstate); | |
6455 | if (PyErr_Occurred()) SWIG_fail; | |
6456 | } | |
6457 | Py_INCREF(Py_None); resultobj = Py_None; | |
6458 | return resultobj; | |
6459 | fail: | |
6460 | return NULL; | |
6461 | } | |
6462 | ||
6463 | ||
7722248d RD |
6464 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
6465 | PyObject *resultobj; | |
6466 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6467 | PyObject *arg2 = (PyObject *) 0 ; | |
6468 | PyObject *arg3 = (PyObject *) 0 ; | |
4276dc52 | 6469 | int arg4 = (int) 1 ; |
7722248d RD |
6470 | PyObject * obj0 = 0 ; |
6471 | PyObject * obj1 = 0 ; | |
6472 | PyObject * obj2 = 0 ; | |
4276dc52 | 6473 | PyObject * obj3 = 0 ; |
7722248d | 6474 | char *kwnames[] = { |
4276dc52 | 6475 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL |
7722248d RD |
6476 | }; |
6477 | ||
4276dc52 | 6478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
6479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7722248d RD |
6481 | arg2 = obj1; |
6482 | arg3 = obj2; | |
4276dc52 RD |
6483 | if (obj3) { |
6484 | arg4 = (int) SWIG_AsInt(obj3); | |
6485 | if (PyErr_Occurred()) SWIG_fail; | |
6486 | } | |
7722248d RD |
6487 | { |
6488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4276dc52 | 6489 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); |
7722248d RD |
6490 | |
6491 | wxPyEndAllowThreads(__tstate); | |
6492 | if (PyErr_Occurred()) SWIG_fail; | |
6493 | } | |
6494 | Py_INCREF(Py_None); resultobj = Py_None; | |
6495 | return resultobj; | |
6496 | fail: | |
6497 | return NULL; | |
6498 | } | |
6499 | ||
6500 | ||
d14a1e28 RD |
6501 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
6502 | PyObject *resultobj; | |
6503 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6504 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6505 | int arg3 = (int) -1 ; | |
6506 | PyObject * obj0 = 0 ; | |
6507 | PyObject * obj1 = 0 ; | |
994141e6 | 6508 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6509 | char *kwnames[] = { |
6510 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6511 | }; | |
6512 | ||
994141e6 | 6513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6516 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
6517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6518 | if (obj2) { |
15afbcd0 RD |
6519 | arg3 = (int) SWIG_AsInt(obj2); |
6520 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6521 | } |
d14a1e28 RD |
6522 | { |
6523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6524 | (arg1)->SetOwner(arg2,arg3); | |
6525 | ||
6526 | wxPyEndAllowThreads(__tstate); | |
6527 | if (PyErr_Occurred()) SWIG_fail; | |
6528 | } | |
6529 | Py_INCREF(Py_None); resultobj = Py_None; | |
6530 | return resultobj; | |
6531 | fail: | |
6532 | return NULL; | |
6533 | } | |
6534 | ||
6535 | ||
1c0f361b RD |
6536 | static PyObject *_wrap_Timer_GetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
6537 | PyObject *resultobj; | |
6538 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6539 | wxEvtHandler *result; | |
6540 | PyObject * obj0 = 0 ; | |
6541 | char *kwnames[] = { | |
6542 | (char *) "self", NULL | |
6543 | }; | |
6544 | ||
6545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail; | |
6546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6548 | { | |
6549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6550 | result = (wxEvtHandler *)(arg1)->GetOwner(); | |
6551 | ||
6552 | wxPyEndAllowThreads(__tstate); | |
6553 | if (PyErr_Occurred()) SWIG_fail; | |
6554 | } | |
6555 | { | |
6556 | resultobj = wxPyMake_wxObject(result); | |
6557 | } | |
6558 | return resultobj; | |
6559 | fail: | |
6560 | return NULL; | |
6561 | } | |
6562 | ||
6563 | ||
d14a1e28 RD |
6564 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { |
6565 | PyObject *resultobj; | |
6566 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6567 | int arg2 = (int) -1 ; | |
e811c8ce | 6568 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6569 | bool result; |
6570 | PyObject * obj0 = 0 ; | |
994141e6 | 6571 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6572 | PyObject * obj2 = 0 ; |
6573 | char *kwnames[] = { | |
6574 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
6575 | }; | |
6576 | ||
994141e6 | 6577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6580 | if (obj1) { |
15afbcd0 RD |
6581 | arg2 = (int) SWIG_AsInt(obj1); |
6582 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6583 | } |
d14a1e28 | 6584 | if (obj2) { |
15afbcd0 RD |
6585 | arg3 = (bool) SWIG_AsBool(obj2); |
6586 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6587 | } |
6588 | { | |
6589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6590 | result = (bool)(arg1)->Start(arg2,arg3); | |
6591 | ||
6592 | wxPyEndAllowThreads(__tstate); | |
6593 | if (PyErr_Occurred()) SWIG_fail; | |
6594 | } | |
4f89f6a3 RD |
6595 | { |
6596 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6597 | } | |
d14a1e28 RD |
6598 | return resultobj; |
6599 | fail: | |
6600 | return NULL; | |
6601 | } | |
6602 | ||
6603 | ||
6604 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6605 | PyObject *resultobj; | |
6606 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6607 | PyObject * obj0 = 0 ; | |
6608 | char *kwnames[] = { | |
6609 | (char *) "self", NULL | |
6610 | }; | |
6611 | ||
6612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6615 | { |
6616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6617 | (arg1)->Stop(); | |
6618 | ||
6619 | wxPyEndAllowThreads(__tstate); | |
6620 | if (PyErr_Occurred()) SWIG_fail; | |
6621 | } | |
6622 | Py_INCREF(Py_None); resultobj = Py_None; | |
6623 | return resultobj; | |
6624 | fail: | |
6625 | return NULL; | |
6626 | } | |
6627 | ||
6628 | ||
d14a1e28 RD |
6629 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { |
6630 | PyObject *resultobj; | |
6631 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6632 | bool result; | |
6633 | PyObject * obj0 = 0 ; | |
6634 | char *kwnames[] = { | |
6635 | (char *) "self", NULL | |
6636 | }; | |
6637 | ||
6638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6641 | { |
6642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6643 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
6644 | ||
6645 | wxPyEndAllowThreads(__tstate); | |
6646 | if (PyErr_Occurred()) SWIG_fail; | |
6647 | } | |
4f89f6a3 RD |
6648 | { |
6649 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6650 | } | |
d14a1e28 RD |
6651 | return resultobj; |
6652 | fail: | |
6653 | return NULL; | |
6654 | } | |
6655 | ||
6656 | ||
6657 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6658 | PyObject *resultobj; | |
6659 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6660 | int result; | |
6661 | PyObject * obj0 = 0 ; | |
6662 | char *kwnames[] = { | |
6663 | (char *) "self", NULL | |
6664 | }; | |
6665 | ||
6666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6669 | { |
6670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6671 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
6672 | ||
6673 | wxPyEndAllowThreads(__tstate); | |
6674 | if (PyErr_Occurred()) SWIG_fail; | |
6675 | } | |
15afbcd0 | 6676 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6677 | return resultobj; |
6678 | fail: | |
6679 | return NULL; | |
6680 | } | |
6681 | ||
6682 | ||
6683 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6684 | PyObject *resultobj; | |
6685 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6686 | bool result; | |
6687 | PyObject * obj0 = 0 ; | |
6688 | char *kwnames[] = { | |
6689 | (char *) "self", NULL | |
6690 | }; | |
6691 | ||
6692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6695 | { |
6696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6697 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
6698 | ||
6699 | wxPyEndAllowThreads(__tstate); | |
6700 | if (PyErr_Occurred()) SWIG_fail; | |
6701 | } | |
4f89f6a3 RD |
6702 | { |
6703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6704 | } | |
d14a1e28 RD |
6705 | return resultobj; |
6706 | fail: | |
6707 | return NULL; | |
6708 | } | |
6709 | ||
6710 | ||
cc6dd355 RD |
6711 | static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
6712 | PyObject *resultobj; | |
6713 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6714 | int result; | |
6715 | PyObject * obj0 = 0 ; | |
6716 | char *kwnames[] = { | |
6717 | (char *) "self", NULL | |
6718 | }; | |
6719 | ||
6720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
cc6dd355 RD |
6723 | { |
6724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6725 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
6726 | ||
6727 | wxPyEndAllowThreads(__tstate); | |
6728 | if (PyErr_Occurred()) SWIG_fail; | |
6729 | } | |
15afbcd0 | 6730 | resultobj = SWIG_FromInt((int)result); |
cc6dd355 RD |
6731 | return resultobj; |
6732 | fail: | |
6733 | return NULL; | |
6734 | } | |
6735 | ||
6736 | ||
d14a1e28 RD |
6737 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { |
6738 | PyObject *obj; | |
6739 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6740 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
6741 | Py_INCREF(obj); | |
6742 | return Py_BuildValue((char *)""); | |
6743 | } | |
6744 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6745 | PyObject *resultobj; | |
6746 | int arg1 = (int) 0 ; | |
6747 | int arg2 = (int) 0 ; | |
6748 | wxTimerEvent *result; | |
994141e6 RD |
6749 | PyObject * obj0 = 0 ; |
6750 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
6751 | char *kwnames[] = { |
6752 | (char *) "timerid",(char *) "interval", NULL | |
6753 | }; | |
6754 | ||
994141e6 RD |
6755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; |
6756 | if (obj0) { | |
15afbcd0 RD |
6757 | arg1 = (int) SWIG_AsInt(obj0); |
6758 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
6759 | } |
6760 | if (obj1) { | |
15afbcd0 RD |
6761 | arg2 = (int) SWIG_AsInt(obj1); |
6762 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6763 | } |
d14a1e28 RD |
6764 | { |
6765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6766 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
6767 | ||
6768 | wxPyEndAllowThreads(__tstate); | |
6769 | if (PyErr_Occurred()) SWIG_fail; | |
6770 | } | |
15afbcd0 | 6771 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); |
d14a1e28 RD |
6772 | return resultobj; |
6773 | fail: | |
6774 | return NULL; | |
6775 | } | |
6776 | ||
6777 | ||
6778 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6779 | PyObject *resultobj; | |
6780 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
6781 | int result; | |
6782 | PyObject * obj0 = 0 ; | |
6783 | char *kwnames[] = { | |
6784 | (char *) "self", NULL | |
6785 | }; | |
6786 | ||
6787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent, |
6789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6790 | { |
6791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6792 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
6793 | ||
6794 | wxPyEndAllowThreads(__tstate); | |
6795 | if (PyErr_Occurred()) SWIG_fail; | |
6796 | } | |
15afbcd0 | 6797 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6798 | return resultobj; |
6799 | fail: | |
6800 | return NULL; | |
6801 | } | |
6802 | ||
6803 | ||
6804 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
6805 | PyObject *obj; | |
6806 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6807 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
6808 | Py_INCREF(obj); | |
6809 | return Py_BuildValue((char *)""); | |
6810 | } | |
6811 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
6812 | PyObject *resultobj; | |
6813 | wxTimer *arg1 = 0 ; | |
6814 | wxTimerRunner *result; | |
6815 | PyObject * obj0 = 0 ; | |
6816 | ||
6817 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
15afbcd0 RD |
6818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, |
6819 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6820 | SWIG_fail; | |
d14a1e28 | 6821 | if (arg1 == NULL) { |
15afbcd0 RD |
6822 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6823 | SWIG_fail; | |
d14a1e28 RD |
6824 | } |
6825 | { | |
6826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6827 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
6828 | ||
6829 | wxPyEndAllowThreads(__tstate); | |
6830 | if (PyErr_Occurred()) SWIG_fail; | |
6831 | } | |
15afbcd0 | 6832 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); |
d14a1e28 RD |
6833 | return resultobj; |
6834 | fail: | |
6835 | return NULL; | |
6836 | } | |
6837 | ||
6838 | ||
6839 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { | |
6840 | PyObject *resultobj; | |
6841 | wxTimer *arg1 = 0 ; | |
6842 | int arg2 ; | |
e811c8ce | 6843 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6844 | wxTimerRunner *result; |
6845 | PyObject * obj0 = 0 ; | |
994141e6 | 6846 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6847 | PyObject * obj2 = 0 ; |
6848 | ||
994141e6 | 6849 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, |
6851 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6852 | SWIG_fail; | |
d14a1e28 | 6853 | if (arg1 == NULL) { |
15afbcd0 RD |
6854 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6855 | SWIG_fail; | |
994141e6 | 6856 | } |
15afbcd0 RD |
6857 | arg2 = (int) SWIG_AsInt(obj1); |
6858 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 6859 | if (obj2) { |
15afbcd0 RD |
6860 | arg3 = (bool) SWIG_AsBool(obj2); |
6861 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6862 | } |
6863 | { | |
6864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6865 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
6866 | ||
6867 | wxPyEndAllowThreads(__tstate); | |
6868 | if (PyErr_Occurred()) SWIG_fail; | |
6869 | } | |
15afbcd0 | 6870 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); |
d14a1e28 RD |
6871 | return resultobj; |
6872 | fail: | |
6873 | return NULL; | |
6874 | } | |
6875 | ||
6876 | ||
6877 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
6878 | int argc; | |
6879 | PyObject *argv[4]; | |
6880 | int ii; | |
6881 | ||
6882 | argc = PyObject_Length(args); | |
6883 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
6884 | argv[ii] = PyTuple_GetItem(args,ii); | |
6885 | } | |
6886 | if (argc == 1) { | |
6887 | int _v; | |
6888 | { | |
6889 | void *ptr; | |
15afbcd0 | 6890 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
d14a1e28 RD |
6891 | _v = 0; |
6892 | PyErr_Clear(); | |
6893 | } else { | |
6894 | _v = 1; | |
6895 | } | |
6896 | } | |
6897 | if (_v) { | |
6898 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
6899 | } | |
6900 | } | |
6901 | if ((argc >= 2) && (argc <= 3)) { | |
6902 | int _v; | |
6903 | { | |
6904 | void *ptr; | |
15afbcd0 | 6905 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
d14a1e28 RD |
6906 | _v = 0; |
6907 | PyErr_Clear(); | |
6908 | } else { | |
6909 | _v = 1; | |
6910 | } | |
6911 | } | |
6912 | if (_v) { | |
15afbcd0 | 6913 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
6914 | if (_v) { |
6915 | if (argc <= 2) { | |
6916 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6917 | } | |
15afbcd0 | 6918 | _v = SWIG_CheckBool(argv[2]); |
d14a1e28 RD |
6919 | if (_v) { |
6920 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6921 | } | |
6922 | } | |
6923 | } | |
6924 | } | |
6925 | ||
6926 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
6927 | return NULL; | |
6928 | } | |
6929 | ||
6930 | ||
6931 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6932 | PyObject *resultobj; | |
6933 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6934 | PyObject * obj0 = 0 ; | |
6935 | char *kwnames[] = { | |
6936 | (char *) "self", NULL | |
6937 | }; | |
6938 | ||
6939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, |
6941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6942 | { |
6943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6944 | delete arg1; | |
6945 | ||
6946 | wxPyEndAllowThreads(__tstate); | |
6947 | if (PyErr_Occurred()) SWIG_fail; | |
6948 | } | |
6949 | Py_INCREF(Py_None); resultobj = Py_None; | |
6950 | return resultobj; | |
6951 | fail: | |
6952 | return NULL; | |
6953 | } | |
6954 | ||
6955 | ||
6956 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6957 | PyObject *resultobj; | |
6958 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6959 | int arg2 ; | |
e811c8ce | 6960 | bool arg3 = (bool) False ; |
d14a1e28 | 6961 | PyObject * obj0 = 0 ; |
994141e6 | 6962 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6963 | PyObject * obj2 = 0 ; |
6964 | char *kwnames[] = { | |
6965 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
6966 | }; | |
6967 | ||
994141e6 | 6968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, |
6970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6971 | arg2 = (int) SWIG_AsInt(obj1); | |
6972 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 6973 | if (obj2) { |
15afbcd0 RD |
6974 | arg3 = (bool) SWIG_AsBool(obj2); |
6975 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6976 | } |
6977 | { | |
6978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6979 | (arg1)->Start(arg2,arg3); | |
6980 | ||
6981 | wxPyEndAllowThreads(__tstate); | |
6982 | if (PyErr_Occurred()) SWIG_fail; | |
6983 | } | |
6984 | Py_INCREF(Py_None); resultobj = Py_None; | |
6985 | return resultobj; | |
6986 | fail: | |
6987 | return NULL; | |
6988 | } | |
6989 | ||
6990 | ||
6991 | static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
6992 | PyObject *obj; | |
6993 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6994 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
6995 | Py_INCREF(obj); | |
6996 | return Py_BuildValue((char *)""); | |
6997 | } | |
6998 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6999 | PyObject *resultobj; | |
7000 | wxLog *result; | |
7001 | char *kwnames[] = { | |
7002 | NULL | |
7003 | }; | |
7004 | ||
7005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
7006 | { | |
7007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7008 | result = (wxLog *)new wxLog(); | |
7009 | ||
7010 | wxPyEndAllowThreads(__tstate); | |
7011 | if (PyErr_Occurred()) SWIG_fail; | |
7012 | } | |
15afbcd0 | 7013 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); |
d14a1e28 RD |
7014 | return resultobj; |
7015 | fail: | |
7016 | return NULL; | |
7017 | } | |
7018 | ||
7019 | ||
7020 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7021 | PyObject *resultobj; | |
7022 | bool result; | |
7023 | char *kwnames[] = { | |
7024 | NULL | |
7025 | }; | |
7026 | ||
7027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
7028 | { | |
7029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7030 | result = (bool)wxLog::IsEnabled(); | |
7031 | ||
7032 | wxPyEndAllowThreads(__tstate); | |
7033 | if (PyErr_Occurred()) SWIG_fail; | |
7034 | } | |
4f89f6a3 RD |
7035 | { |
7036 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7037 | } | |
d14a1e28 RD |
7038 | return resultobj; |
7039 | fail: | |
7040 | return NULL; | |
7041 | } | |
7042 | ||
7043 | ||
7044 | static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7045 | PyObject *resultobj; | |
e811c8ce | 7046 | bool arg1 = (bool) True ; |
d14a1e28 RD |
7047 | bool result; |
7048 | PyObject * obj0 = 0 ; | |
7049 | char *kwnames[] = { | |
7050 | (char *) "doIt", NULL | |
7051 | }; | |
7052 | ||
7053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
7054 | if (obj0) { | |
15afbcd0 RD |
7055 | arg1 = (bool) SWIG_AsBool(obj0); |
7056 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7057 | } |
7058 | { | |
7059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7060 | result = (bool)wxLog::EnableLogging(arg1); | |
7061 | ||
7062 | wxPyEndAllowThreads(__tstate); | |
7063 | if (PyErr_Occurred()) SWIG_fail; | |
7064 | } | |
4f89f6a3 RD |
7065 | { |
7066 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7067 | } | |
d14a1e28 RD |
7068 | return resultobj; |
7069 | fail: | |
7070 | return NULL; | |
7071 | } | |
7072 | ||
7073 | ||
7074 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7075 | PyObject *resultobj; | |
7076 | wxLogLevel arg1 ; | |
7077 | wxChar *arg2 = (wxChar *) 0 ; | |
7078 | time_t arg3 ; | |
7079 | PyObject * obj0 = 0 ; | |
7080 | PyObject * obj1 = 0 ; | |
7081 | PyObject * obj2 = 0 ; | |
7082 | char *kwnames[] = { | |
7083 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
7084 | }; | |
7085 | ||
7086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7087 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); |
7088 | if (PyErr_Occurred()) SWIG_fail; | |
7089 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar, | |
7090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7091 | arg3 = (time_t) SWIG_AsUnsignedInt(obj2); | |
7092 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7093 | { |
7094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7095 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
7096 | ||
7097 | wxPyEndAllowThreads(__tstate); | |
7098 | if (PyErr_Occurred()) SWIG_fail; | |
7099 | } | |
7100 | Py_INCREF(Py_None); resultobj = Py_None; | |
7101 | return resultobj; | |
7102 | fail: | |
7103 | return NULL; | |
7104 | } | |
7105 | ||
7106 | ||
7107 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7108 | PyObject *resultobj; | |
7109 | wxLog *arg1 = (wxLog *) 0 ; | |
7110 | PyObject * obj0 = 0 ; | |
7111 | char *kwnames[] = { | |
7112 | (char *) "self", NULL | |
7113 | }; | |
7114 | ||
7115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7118 | { |
7119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7120 | (arg1)->Flush(); | |
7121 | ||
7122 | wxPyEndAllowThreads(__tstate); | |
7123 | if (PyErr_Occurred()) SWIG_fail; | |
7124 | } | |
7125 | Py_INCREF(Py_None); resultobj = Py_None; | |
7126 | return resultobj; | |
7127 | fail: | |
7128 | return NULL; | |
7129 | } | |
7130 | ||
7131 | ||
7132 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7133 | PyObject *resultobj; | |
7134 | char *kwnames[] = { | |
7135 | NULL | |
7136 | }; | |
7137 | ||
7138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
7139 | { | |
7140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7141 | wxLog::FlushActive(); | |
7142 | ||
7143 | wxPyEndAllowThreads(__tstate); | |
7144 | if (PyErr_Occurred()) SWIG_fail; | |
7145 | } | |
7146 | Py_INCREF(Py_None); resultobj = Py_None; | |
7147 | return resultobj; | |
7148 | fail: | |
7149 | return NULL; | |
7150 | } | |
7151 | ||
7152 | ||
7153 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7154 | PyObject *resultobj; | |
7155 | wxLog *result; | |
7156 | char *kwnames[] = { | |
7157 | NULL | |
7158 | }; | |
7159 | ||
7160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
7161 | { | |
7162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7163 | result = (wxLog *)wxLog::GetActiveTarget(); | |
7164 | ||
7165 | wxPyEndAllowThreads(__tstate); | |
7166 | if (PyErr_Occurred()) SWIG_fail; | |
7167 | } | |
15afbcd0 | 7168 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
7169 | return resultobj; |
7170 | fail: | |
7171 | return NULL; | |
7172 | } | |
7173 | ||
7174 | ||
7175 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7176 | PyObject *resultobj; | |
7177 | wxLog *arg1 = (wxLog *) 0 ; | |
7178 | wxLog *result; | |
7179 | PyObject * obj0 = 0 ; | |
7180 | char *kwnames[] = { | |
7181 | (char *) "pLogger", NULL | |
7182 | }; | |
7183 | ||
7184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7187 | { |
7188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7189 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
7190 | ||
7191 | wxPyEndAllowThreads(__tstate); | |
7192 | if (PyErr_Occurred()) SWIG_fail; | |
7193 | } | |
15afbcd0 | 7194 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
7195 | return resultobj; |
7196 | fail: | |
7197 | return NULL; | |
7198 | } | |
7199 | ||
7200 | ||
7201 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7202 | PyObject *resultobj; | |
7203 | char *kwnames[] = { | |
7204 | NULL | |
7205 | }; | |
7206 | ||
7207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
7208 | { | |
7209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7210 | wxLog::Suspend(); | |
7211 | ||
7212 | wxPyEndAllowThreads(__tstate); | |
7213 | if (PyErr_Occurred()) SWIG_fail; | |
7214 | } | |
7215 | Py_INCREF(Py_None); resultobj = Py_None; | |
7216 | return resultobj; | |
7217 | fail: | |
7218 | return NULL; | |
7219 | } | |
7220 | ||
7221 | ||
7222 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7223 | PyObject *resultobj; | |
7224 | char *kwnames[] = { | |
7225 | NULL | |
7226 | }; | |
7227 | ||
7228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
7229 | { | |
7230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7231 | wxLog::Resume(); | |
7232 | ||
7233 | wxPyEndAllowThreads(__tstate); | |
7234 | if (PyErr_Occurred()) SWIG_fail; | |
7235 | } | |
7236 | Py_INCREF(Py_None); resultobj = Py_None; | |
7237 | return resultobj; | |
7238 | fail: | |
7239 | return NULL; | |
7240 | } | |
7241 | ||
7242 | ||
7243 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7244 | PyObject *resultobj; | |
e811c8ce | 7245 | bool arg1 = (bool) True ; |
d14a1e28 RD |
7246 | PyObject * obj0 = 0 ; |
7247 | char *kwnames[] = { | |
7248 | (char *) "bVerbose", NULL | |
7249 | }; | |
7250 | ||
7251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
7252 | if (obj0) { | |
15afbcd0 RD |
7253 | arg1 = (bool) SWIG_AsBool(obj0); |
7254 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7255 | } |
7256 | { | |
7257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7258 | wxLog::SetVerbose(arg1); | |
7259 | ||
7260 | wxPyEndAllowThreads(__tstate); | |
7261 | if (PyErr_Occurred()) SWIG_fail; | |
7262 | } | |
7263 | Py_INCREF(Py_None); resultobj = Py_None; | |
7264 | return resultobj; | |
7265 | fail: | |
7266 | return NULL; | |
7267 | } | |
7268 | ||
7269 | ||
7270 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7271 | PyObject *resultobj; | |
7272 | wxLogLevel arg1 ; | |
7273 | PyObject * obj0 = 0 ; | |
7274 | char *kwnames[] = { | |
7275 | (char *) "logLevel", NULL | |
7276 | }; | |
7277 | ||
7278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7279 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); |
7280 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7281 | { |
7282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7283 | wxLog::SetLogLevel(arg1); | |
7284 | ||
7285 | wxPyEndAllowThreads(__tstate); | |
7286 | if (PyErr_Occurred()) SWIG_fail; | |
7287 | } | |
7288 | Py_INCREF(Py_None); resultobj = Py_None; | |
7289 | return resultobj; | |
7290 | fail: | |
7291 | return NULL; | |
7292 | } | |
7293 | ||
7294 | ||
7295 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7296 | PyObject *resultobj; | |
7297 | char *kwnames[] = { | |
7298 | NULL | |
7299 | }; | |
7300 | ||
7301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
7302 | { | |
7303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7304 | wxLog::DontCreateOnDemand(); | |
7305 | ||
7306 | wxPyEndAllowThreads(__tstate); | |
7307 | if (PyErr_Occurred()) SWIG_fail; | |
7308 | } | |
7309 | Py_INCREF(Py_None); resultobj = Py_None; | |
7310 | return resultobj; | |
7311 | fail: | |
7312 | return NULL; | |
7313 | } | |
7314 | ||
7315 | ||
7316 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7317 | PyObject *resultobj; | |
7318 | wxTraceMask arg1 ; | |
7319 | PyObject * obj0 = 0 ; | |
7320 | char *kwnames[] = { | |
7321 | (char *) "ulMask", NULL | |
7322 | }; | |
7323 | ||
7324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7325 | arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0); |
7326 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7327 | { |
7328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7329 | wxLog::SetTraceMask(arg1); | |
7330 | ||
7331 | wxPyEndAllowThreads(__tstate); | |
7332 | if (PyErr_Occurred()) SWIG_fail; | |
7333 | } | |
7334 | Py_INCREF(Py_None); resultobj = Py_None; | |
7335 | return resultobj; | |
7336 | fail: | |
7337 | return NULL; | |
7338 | } | |
7339 | ||
7340 | ||
7341 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7342 | PyObject *resultobj; | |
7343 | wxString *arg1 = 0 ; | |
e811c8ce | 7344 | bool temp1 = False ; |
d14a1e28 RD |
7345 | PyObject * obj0 = 0 ; |
7346 | char *kwnames[] = { | |
7347 | (char *) "str", NULL | |
7348 | }; | |
7349 | ||
7350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
7351 | { | |
7352 | arg1 = wxString_in_helper(obj0); | |
7353 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7354 | temp1 = True; |
d14a1e28 RD |
7355 | } |
7356 | { | |
7357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7358 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7359 | ||
7360 | wxPyEndAllowThreads(__tstate); | |
7361 | if (PyErr_Occurred()) SWIG_fail; | |
7362 | } | |
7363 | Py_INCREF(Py_None); resultobj = Py_None; | |
7364 | { | |
7365 | if (temp1) | |
7366 | delete arg1; | |
7367 | } | |
7368 | return resultobj; | |
7369 | fail: | |
7370 | { | |
7371 | if (temp1) | |
7372 | delete arg1; | |
7373 | } | |
7374 | return NULL; | |
7375 | } | |
7376 | ||
7377 | ||
7378 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7379 | PyObject *resultobj; | |
7380 | wxString *arg1 = 0 ; | |
e811c8ce | 7381 | bool temp1 = False ; |
d14a1e28 RD |
7382 | PyObject * obj0 = 0 ; |
7383 | char *kwnames[] = { | |
7384 | (char *) "str", NULL | |
7385 | }; | |
7386 | ||
7387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7388 | { | |
7389 | arg1 = wxString_in_helper(obj0); | |
7390 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7391 | temp1 = True; |
d14a1e28 RD |
7392 | } |
7393 | { | |
7394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7395 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7396 | ||
7397 | wxPyEndAllowThreads(__tstate); | |
7398 | if (PyErr_Occurred()) SWIG_fail; | |
7399 | } | |
7400 | Py_INCREF(Py_None); resultobj = Py_None; | |
7401 | { | |
7402 | if (temp1) | |
7403 | delete arg1; | |
7404 | } | |
7405 | return resultobj; | |
7406 | fail: | |
7407 | { | |
7408 | if (temp1) | |
7409 | delete arg1; | |
7410 | } | |
7411 | return NULL; | |
7412 | } | |
7413 | ||
7414 | ||
7415 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7416 | PyObject *resultobj; | |
7417 | char *kwnames[] = { | |
7418 | NULL | |
7419 | }; | |
7420 | ||
7421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7422 | { | |
7423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7424 | wxLog::ClearTraceMasks(); | |
7425 | ||
7426 | wxPyEndAllowThreads(__tstate); | |
7427 | if (PyErr_Occurred()) SWIG_fail; | |
7428 | } | |
7429 | Py_INCREF(Py_None); resultobj = Py_None; | |
7430 | return resultobj; | |
7431 | fail: | |
7432 | return NULL; | |
7433 | } | |
7434 | ||
7435 | ||
7436 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7437 | PyObject *resultobj; | |
7438 | wxArrayString *result; | |
7439 | char *kwnames[] = { | |
7440 | NULL | |
7441 | }; | |
7442 | ||
7443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7444 | { | |
7445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7446 | { | |
7447 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7448 | result = (wxArrayString *) &_result_ref; | |
7449 | } | |
7450 | ||
7451 | wxPyEndAllowThreads(__tstate); | |
7452 | if (PyErr_Occurred()) SWIG_fail; | |
7453 | } | |
7454 | { | |
7455 | resultobj = wxArrayString2PyList_helper(*result); | |
7456 | } | |
7457 | return resultobj; | |
7458 | fail: | |
7459 | return NULL; | |
7460 | } | |
7461 | ||
7462 | ||
7463 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7464 | PyObject *resultobj; | |
7465 | wxChar *arg1 = (wxChar *) 0 ; | |
7466 | PyObject * obj0 = 0 ; | |
7467 | char *kwnames[] = { | |
7468 | (char *) "ts", NULL | |
7469 | }; | |
7470 | ||
7471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, |
7473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7474 | { |
7475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7476 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7477 | ||
7478 | wxPyEndAllowThreads(__tstate); | |
7479 | if (PyErr_Occurred()) SWIG_fail; | |
7480 | } | |
7481 | Py_INCREF(Py_None); resultobj = Py_None; | |
7482 | return resultobj; | |
7483 | fail: | |
7484 | return NULL; | |
7485 | } | |
7486 | ||
7487 | ||
7488 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7489 | PyObject *resultobj; | |
7490 | bool result; | |
7491 | char *kwnames[] = { | |
7492 | NULL | |
7493 | }; | |
7494 | ||
7495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7496 | { | |
7497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7498 | result = (bool)wxLog::GetVerbose(); | |
7499 | ||
7500 | wxPyEndAllowThreads(__tstate); | |
7501 | if (PyErr_Occurred()) SWIG_fail; | |
7502 | } | |
4f89f6a3 RD |
7503 | { |
7504 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7505 | } | |
d14a1e28 RD |
7506 | return resultobj; |
7507 | fail: | |
7508 | return NULL; | |
7509 | } | |
7510 | ||
7511 | ||
7512 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7513 | PyObject *resultobj; | |
7514 | wxTraceMask result; | |
7515 | char *kwnames[] = { | |
7516 | NULL | |
7517 | }; | |
7518 | ||
7519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7520 | { | |
7521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7522 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7523 | ||
7524 | wxPyEndAllowThreads(__tstate); | |
7525 | if (PyErr_Occurred()) SWIG_fail; | |
7526 | } | |
15afbcd0 | 7527 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7528 | return resultobj; |
7529 | fail: | |
7530 | return NULL; | |
7531 | } | |
7532 | ||
7533 | ||
7534 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7535 | PyObject *resultobj; | |
7536 | wxChar *arg1 = (wxChar *) 0 ; | |
7537 | bool result; | |
7538 | PyObject * obj0 = 0 ; | |
7539 | char *kwnames[] = { | |
7540 | (char *) "mask", NULL | |
7541 | }; | |
7542 | ||
7543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, |
7545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7546 | { |
7547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7548 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
7549 | ||
7550 | wxPyEndAllowThreads(__tstate); | |
7551 | if (PyErr_Occurred()) SWIG_fail; | |
7552 | } | |
4f89f6a3 RD |
7553 | { |
7554 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7555 | } | |
d14a1e28 RD |
7556 | return resultobj; |
7557 | fail: | |
7558 | return NULL; | |
7559 | } | |
7560 | ||
7561 | ||
7562 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7563 | PyObject *resultobj; | |
7564 | wxLogLevel result; | |
7565 | char *kwnames[] = { | |
7566 | NULL | |
7567 | }; | |
7568 | ||
7569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
7570 | { | |
7571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7572 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
7573 | ||
7574 | wxPyEndAllowThreads(__tstate); | |
7575 | if (PyErr_Occurred()) SWIG_fail; | |
7576 | } | |
15afbcd0 | 7577 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7578 | return resultobj; |
7579 | fail: | |
7580 | return NULL; | |
7581 | } | |
7582 | ||
7583 | ||
7584 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7585 | PyObject *resultobj; | |
7586 | wxChar *result; | |
7587 | char *kwnames[] = { | |
7588 | NULL | |
7589 | }; | |
7590 | ||
7591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
7592 | { | |
7593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7594 | result = (wxChar *)wxLog::GetTimestamp(); | |
7595 | ||
7596 | wxPyEndAllowThreads(__tstate); | |
7597 | if (PyErr_Occurred()) SWIG_fail; | |
7598 | } | |
15afbcd0 | 7599 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); |
d14a1e28 RD |
7600 | return resultobj; |
7601 | fail: | |
7602 | return NULL; | |
7603 | } | |
7604 | ||
7605 | ||
7606 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7607 | PyObject *resultobj; | |
7608 | wxString result; | |
7609 | char *kwnames[] = { | |
7610 | NULL | |
7611 | }; | |
7612 | ||
7613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
7614 | { | |
7615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7616 | result = Log_TimeStamp(); | |
7617 | ||
7618 | wxPyEndAllowThreads(__tstate); | |
7619 | if (PyErr_Occurred()) SWIG_fail; | |
7620 | } | |
7621 | { | |
7622 | #if wxUSE_UNICODE | |
7623 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7624 | #else | |
7625 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7626 | #endif | |
7627 | } | |
7628 | return resultobj; | |
7629 | fail: | |
7630 | return NULL; | |
7631 | } | |
7632 | ||
7633 | ||
7634 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7635 | PyObject *resultobj; | |
7636 | wxLog *arg1 = (wxLog *) 0 ; | |
7637 | PyObject * obj0 = 0 ; | |
7638 | char *kwnames[] = { | |
7639 | (char *) "self", NULL | |
7640 | }; | |
7641 | ||
7642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7645 | { |
7646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7647 | wxLog_Destroy(arg1); | |
7648 | ||
7649 | wxPyEndAllowThreads(__tstate); | |
7650 | if (PyErr_Occurred()) SWIG_fail; | |
7651 | } | |
7652 | Py_INCREF(Py_None); resultobj = Py_None; | |
7653 | return resultobj; | |
7654 | fail: | |
7655 | return NULL; | |
7656 | } | |
7657 | ||
7658 | ||
7659 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
7660 | PyObject *obj; | |
7661 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7662 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
7663 | Py_INCREF(obj); | |
7664 | return Py_BuildValue((char *)""); | |
7665 | } | |
7666 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7667 | PyObject *resultobj; | |
7668 | wxLogStderr *result; | |
7669 | char *kwnames[] = { | |
7670 | NULL | |
7671 | }; | |
7672 | ||
7673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
7674 | { | |
7675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7676 | result = (wxLogStderr *)new wxLogStderr(); | |
7677 | ||
7678 | wxPyEndAllowThreads(__tstate); | |
7679 | if (PyErr_Occurred()) SWIG_fail; | |
7680 | } | |
15afbcd0 | 7681 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); |
d14a1e28 RD |
7682 | return resultobj; |
7683 | fail: | |
7684 | return NULL; | |
7685 | } | |
7686 | ||
7687 | ||
7688 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
7689 | PyObject *obj; | |
7690 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7691 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
7692 | Py_INCREF(obj); | |
7693 | return Py_BuildValue((char *)""); | |
7694 | } | |
7695 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7696 | PyObject *resultobj; | |
7697 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7698 | wxLogTextCtrl *result; | |
7699 | PyObject * obj0 = 0 ; | |
7700 | char *kwnames[] = { | |
7701 | (char *) "pTextCtrl", NULL | |
7702 | }; | |
7703 | ||
7704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7707 | { |
7708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7709 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
7710 | ||
7711 | wxPyEndAllowThreads(__tstate); | |
7712 | if (PyErr_Occurred()) SWIG_fail; | |
7713 | } | |
15afbcd0 | 7714 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); |
d14a1e28 RD |
7715 | return resultobj; |
7716 | fail: | |
7717 | return NULL; | |
7718 | } | |
7719 | ||
7720 | ||
7721 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
7722 | PyObject *obj; | |
7723 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7724 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
7725 | Py_INCREF(obj); | |
7726 | return Py_BuildValue((char *)""); | |
7727 | } | |
7728 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7729 | PyObject *resultobj; | |
7730 | wxLogGui *result; | |
7731 | char *kwnames[] = { | |
7732 | NULL | |
7733 | }; | |
7734 | ||
7735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
7736 | { | |
7737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7738 | result = (wxLogGui *)new wxLogGui(); | |
7739 | ||
7740 | wxPyEndAllowThreads(__tstate); | |
7741 | if (PyErr_Occurred()) SWIG_fail; | |
7742 | } | |
15afbcd0 | 7743 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); |
d14a1e28 RD |
7744 | return resultobj; |
7745 | fail: | |
7746 | return NULL; | |
7747 | } | |
7748 | ||
7749 | ||
7750 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
7751 | PyObject *obj; | |
7752 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7753 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
7754 | Py_INCREF(obj); | |
7755 | return Py_BuildValue((char *)""); | |
7756 | } | |
7757 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7758 | PyObject *resultobj; | |
7759 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7760 | wxString *arg2 = 0 ; | |
e811c8ce RD |
7761 | bool arg3 = (bool) True ; |
7762 | bool arg4 = (bool) True ; | |
d14a1e28 | 7763 | wxLogWindow *result; |
e811c8ce | 7764 | bool temp2 = False ; |
d14a1e28 RD |
7765 | PyObject * obj0 = 0 ; |
7766 | PyObject * obj1 = 0 ; | |
7767 | PyObject * obj2 = 0 ; | |
7768 | PyObject * obj3 = 0 ; | |
7769 | char *kwnames[] = { | |
7770 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
7771 | }; | |
7772 | ||
7773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
7774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, |
7775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7776 | { |
7777 | arg2 = wxString_in_helper(obj1); | |
7778 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7779 | temp2 = True; |
d14a1e28 RD |
7780 | } |
7781 | if (obj2) { | |
15afbcd0 RD |
7782 | arg3 = (bool) SWIG_AsBool(obj2); |
7783 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7784 | } |
7785 | if (obj3) { | |
15afbcd0 RD |
7786 | arg4 = (bool) SWIG_AsBool(obj3); |
7787 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7788 | } |
7789 | { | |
7790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7791 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
7792 | ||
7793 | wxPyEndAllowThreads(__tstate); | |
7794 | if (PyErr_Occurred()) SWIG_fail; | |
7795 | } | |
15afbcd0 | 7796 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); |
d14a1e28 RD |
7797 | { |
7798 | if (temp2) | |
7799 | delete arg2; | |
7800 | } | |
7801 | return resultobj; | |
7802 | fail: | |
7803 | { | |
7804 | if (temp2) | |
7805 | delete arg2; | |
7806 | } | |
7807 | return NULL; | |
7808 | } | |
7809 | ||
7810 | ||
7811 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7812 | PyObject *resultobj; | |
7813 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
e811c8ce | 7814 | bool arg2 = (bool) True ; |
d14a1e28 RD |
7815 | PyObject * obj0 = 0 ; |
7816 | PyObject * obj1 = 0 ; | |
7817 | char *kwnames[] = { | |
7818 | (char *) "self",(char *) "bShow", NULL | |
7819 | }; | |
7820 | ||
7821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 7824 | if (obj1) { |
15afbcd0 RD |
7825 | arg2 = (bool) SWIG_AsBool(obj1); |
7826 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7827 | } |
7828 | { | |
7829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7830 | (arg1)->Show(arg2); | |
7831 | ||
7832 | wxPyEndAllowThreads(__tstate); | |
7833 | if (PyErr_Occurred()) SWIG_fail; | |
7834 | } | |
7835 | Py_INCREF(Py_None); resultobj = Py_None; | |
7836 | return resultobj; | |
7837 | fail: | |
7838 | return NULL; | |
7839 | } | |
7840 | ||
7841 | ||
7842 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7843 | PyObject *resultobj; | |
7844 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7845 | wxFrame *result; | |
7846 | PyObject * obj0 = 0 ; | |
7847 | char *kwnames[] = { | |
7848 | (char *) "self", NULL | |
7849 | }; | |
7850 | ||
7851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7854 | { |
7855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7856 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
7857 | ||
7858 | wxPyEndAllowThreads(__tstate); | |
7859 | if (PyErr_Occurred()) SWIG_fail; | |
7860 | } | |
7861 | { | |
7862 | resultobj = wxPyMake_wxObject(result); | |
7863 | } | |
7864 | return resultobj; | |
7865 | fail: | |
7866 | return NULL; | |
7867 | } | |
7868 | ||
7869 | ||
7870 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7871 | PyObject *resultobj; | |
7872 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7873 | wxLog *result; | |
7874 | PyObject * obj0 = 0 ; | |
7875 | char *kwnames[] = { | |
7876 | (char *) "self", NULL | |
7877 | }; | |
7878 | ||
7879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7882 | { |
7883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7884 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
7885 | ||
7886 | wxPyEndAllowThreads(__tstate); | |
7887 | if (PyErr_Occurred()) SWIG_fail; | |
7888 | } | |
15afbcd0 | 7889 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
7890 | return resultobj; |
7891 | fail: | |
7892 | return NULL; | |
7893 | } | |
7894 | ||
7895 | ||
7896 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7897 | PyObject *resultobj; | |
7898 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7899 | bool result; | |
7900 | PyObject * obj0 = 0 ; | |
7901 | char *kwnames[] = { | |
7902 | (char *) "self", NULL | |
7903 | }; | |
7904 | ||
7905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7908 | { |
7909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7910 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
7911 | ||
7912 | wxPyEndAllowThreads(__tstate); | |
7913 | if (PyErr_Occurred()) SWIG_fail; | |
7914 | } | |
4f89f6a3 RD |
7915 | { |
7916 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7917 | } | |
d14a1e28 RD |
7918 | return resultobj; |
7919 | fail: | |
7920 | return NULL; | |
7921 | } | |
7922 | ||
7923 | ||
7924 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7925 | PyObject *resultobj; | |
7926 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7927 | bool arg2 ; | |
7928 | PyObject * obj0 = 0 ; | |
7929 | PyObject * obj1 = 0 ; | |
7930 | char *kwnames[] = { | |
7931 | (char *) "self",(char *) "bDoPass", NULL | |
7932 | }; | |
7933 | ||
7934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7937 | arg2 = (bool) SWIG_AsBool(obj1); | |
7938 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7939 | { |
7940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7941 | (arg1)->PassMessages(arg2); | |
7942 | ||
7943 | wxPyEndAllowThreads(__tstate); | |
7944 | if (PyErr_Occurred()) SWIG_fail; | |
7945 | } | |
7946 | Py_INCREF(Py_None); resultobj = Py_None; | |
7947 | return resultobj; | |
7948 | fail: | |
7949 | return NULL; | |
7950 | } | |
7951 | ||
7952 | ||
7953 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
7954 | PyObject *obj; | |
7955 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7956 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
7957 | Py_INCREF(obj); | |
7958 | return Py_BuildValue((char *)""); | |
7959 | } | |
7960 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7961 | PyObject *resultobj; | |
7962 | wxLog *arg1 = (wxLog *) 0 ; | |
7963 | wxLogChain *result; | |
7964 | PyObject * obj0 = 0 ; | |
7965 | char *kwnames[] = { | |
7966 | (char *) "logger", NULL | |
7967 | }; | |
7968 | ||
7969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7972 | { |
7973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7974 | result = (wxLogChain *)new wxLogChain(arg1); | |
7975 | ||
7976 | wxPyEndAllowThreads(__tstate); | |
7977 | if (PyErr_Occurred()) SWIG_fail; | |
7978 | } | |
15afbcd0 | 7979 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); |
d14a1e28 RD |
7980 | return resultobj; |
7981 | fail: | |
7982 | return NULL; | |
7983 | } | |
7984 | ||
7985 | ||
7986 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7987 | PyObject *resultobj; | |
7988 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7989 | wxLog *arg2 = (wxLog *) 0 ; | |
7990 | PyObject * obj0 = 0 ; | |
7991 | PyObject * obj1 = 0 ; | |
7992 | char *kwnames[] = { | |
7993 | (char *) "self",(char *) "logger", NULL | |
7994 | }; | |
7995 | ||
7996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
7998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7999 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog, | |
8000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8001 | { |
8002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8003 | (arg1)->SetLog(arg2); | |
8004 | ||
8005 | wxPyEndAllowThreads(__tstate); | |
8006 | if (PyErr_Occurred()) SWIG_fail; | |
8007 | } | |
8008 | Py_INCREF(Py_None); resultobj = Py_None; | |
8009 | return resultobj; | |
8010 | fail: | |
8011 | return NULL; | |
8012 | } | |
8013 | ||
8014 | ||
8015 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8016 | PyObject *resultobj; | |
8017 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8018 | bool arg2 ; | |
8019 | PyObject * obj0 = 0 ; | |
8020 | PyObject * obj1 = 0 ; | |
8021 | char *kwnames[] = { | |
8022 | (char *) "self",(char *) "bDoPass", NULL | |
8023 | }; | |
8024 | ||
8025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
8027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8028 | arg2 = (bool) SWIG_AsBool(obj1); | |
8029 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8030 | { |
8031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8032 | (arg1)->PassMessages(arg2); | |
8033 | ||
8034 | wxPyEndAllowThreads(__tstate); | |
8035 | if (PyErr_Occurred()) SWIG_fail; | |
8036 | } | |
8037 | Py_INCREF(Py_None); resultobj = Py_None; | |
8038 | return resultobj; | |
8039 | fail: | |
8040 | return NULL; | |
8041 | } | |
8042 | ||
8043 | ||
8044 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8045 | PyObject *resultobj; | |
8046 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8047 | bool result; | |
8048 | PyObject * obj0 = 0 ; | |
8049 | char *kwnames[] = { | |
8050 | (char *) "self", NULL | |
8051 | }; | |
8052 | ||
8053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
8055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8056 | { |
8057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8058 | result = (bool)(arg1)->IsPassingMessages(); | |
8059 | ||
8060 | wxPyEndAllowThreads(__tstate); | |
8061 | if (PyErr_Occurred()) SWIG_fail; | |
8062 | } | |
4f89f6a3 RD |
8063 | { |
8064 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8065 | } | |
d14a1e28 RD |
8066 | return resultobj; |
8067 | fail: | |
8068 | return NULL; | |
8069 | } | |
8070 | ||
8071 | ||
8072 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8073 | PyObject *resultobj; | |
8074 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8075 | wxLog *result; | |
8076 | PyObject * obj0 = 0 ; | |
8077 | char *kwnames[] = { | |
8078 | (char *) "self", NULL | |
8079 | }; | |
8080 | ||
8081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
8083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8084 | { |
8085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8086 | result = (wxLog *)(arg1)->GetOldLog(); | |
8087 | ||
8088 | wxPyEndAllowThreads(__tstate); | |
8089 | if (PyErr_Occurred()) SWIG_fail; | |
8090 | } | |
15afbcd0 | 8091 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
8092 | return resultobj; |
8093 | fail: | |
8094 | return NULL; | |
8095 | } | |
8096 | ||
8097 | ||
8098 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
8099 | PyObject *obj; | |
8100 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8101 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
8102 | Py_INCREF(obj); | |
8103 | return Py_BuildValue((char *)""); | |
8104 | } | |
8105 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8106 | PyObject *resultobj; | |
8107 | unsigned long result; | |
8108 | char *kwnames[] = { | |
8109 | NULL | |
8110 | }; | |
8111 | ||
8112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
8113 | { | |
8114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8115 | result = (unsigned long)wxSysErrorCode(); | |
8116 | ||
8117 | wxPyEndAllowThreads(__tstate); | |
8118 | if (PyErr_Occurred()) SWIG_fail; | |
8119 | } | |
15afbcd0 | 8120 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
8121 | return resultobj; |
8122 | fail: | |
8123 | return NULL; | |
8124 | } | |
8125 | ||
8126 | ||
8127 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8128 | PyObject *resultobj; | |
8129 | unsigned long arg1 = (unsigned long) 0 ; | |
8130 | wxString result; | |
8131 | PyObject * obj0 = 0 ; | |
8132 | char *kwnames[] = { | |
8133 | (char *) "nErrCode", NULL | |
8134 | }; | |
8135 | ||
8136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
8137 | if (obj0) { | |
15afbcd0 RD |
8138 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
8139 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8140 | } |
8141 | { | |
8142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8143 | result = wxSysErrorMsg(arg1); | |
8144 | ||
8145 | wxPyEndAllowThreads(__tstate); | |
8146 | if (PyErr_Occurred()) SWIG_fail; | |
8147 | } | |
8148 | { | |
8149 | #if wxUSE_UNICODE | |
8150 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8151 | #else | |
8152 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8153 | #endif | |
8154 | } | |
8155 | return resultobj; | |
8156 | fail: | |
8157 | return NULL; | |
8158 | } | |
8159 | ||
8160 | ||
8161 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8162 | PyObject *resultobj; | |
8163 | wxString *arg1 = 0 ; | |
e811c8ce | 8164 | bool temp1 = False ; |
d14a1e28 RD |
8165 | PyObject * obj0 = 0 ; |
8166 | char *kwnames[] = { | |
8167 | (char *) "msg", NULL | |
8168 | }; | |
8169 | ||
8170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
8171 | { | |
8172 | arg1 = wxString_in_helper(obj0); | |
8173 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8174 | temp1 = True; |
d14a1e28 RD |
8175 | } |
8176 | { | |
8177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8178 | wxLogFatalError((wxString const &)*arg1); | |
8179 | ||
8180 | wxPyEndAllowThreads(__tstate); | |
8181 | if (PyErr_Occurred()) SWIG_fail; | |
8182 | } | |
8183 | Py_INCREF(Py_None); resultobj = Py_None; | |
8184 | { | |
8185 | if (temp1) | |
8186 | delete arg1; | |
8187 | } | |
8188 | return resultobj; | |
8189 | fail: | |
8190 | { | |
8191 | if (temp1) | |
8192 | delete arg1; | |
8193 | } | |
8194 | return NULL; | |
8195 | } | |
8196 | ||
8197 | ||
8198 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8199 | PyObject *resultobj; | |
8200 | wxString *arg1 = 0 ; | |
e811c8ce | 8201 | bool temp1 = False ; |
d14a1e28 RD |
8202 | PyObject * obj0 = 0 ; |
8203 | char *kwnames[] = { | |
8204 | (char *) "msg", NULL | |
8205 | }; | |
8206 | ||
8207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
8208 | { | |
8209 | arg1 = wxString_in_helper(obj0); | |
8210 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8211 | temp1 = True; |
d14a1e28 RD |
8212 | } |
8213 | { | |
8214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8215 | wxLogError((wxString const &)*arg1); | |
8216 | ||
8217 | wxPyEndAllowThreads(__tstate); | |
8218 | if (PyErr_Occurred()) SWIG_fail; | |
8219 | } | |
8220 | Py_INCREF(Py_None); resultobj = Py_None; | |
8221 | { | |
8222 | if (temp1) | |
8223 | delete arg1; | |
8224 | } | |
8225 | return resultobj; | |
8226 | fail: | |
8227 | { | |
8228 | if (temp1) | |
8229 | delete arg1; | |
8230 | } | |
8231 | return NULL; | |
8232 | } | |
8233 | ||
8234 | ||
8235 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8236 | PyObject *resultobj; | |
8237 | wxString *arg1 = 0 ; | |
e811c8ce | 8238 | bool temp1 = False ; |
d14a1e28 RD |
8239 | PyObject * obj0 = 0 ; |
8240 | char *kwnames[] = { | |
8241 | (char *) "msg", NULL | |
8242 | }; | |
8243 | ||
8244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
8245 | { | |
8246 | arg1 = wxString_in_helper(obj0); | |
8247 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8248 | temp1 = True; |
d14a1e28 RD |
8249 | } |
8250 | { | |
8251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8252 | wxLogWarning((wxString const &)*arg1); | |
8253 | ||
8254 | wxPyEndAllowThreads(__tstate); | |
8255 | if (PyErr_Occurred()) SWIG_fail; | |
8256 | } | |
8257 | Py_INCREF(Py_None); resultobj = Py_None; | |
8258 | { | |
8259 | if (temp1) | |
8260 | delete arg1; | |
8261 | } | |
8262 | return resultobj; | |
8263 | fail: | |
8264 | { | |
8265 | if (temp1) | |
8266 | delete arg1; | |
8267 | } | |
8268 | return NULL; | |
8269 | } | |
8270 | ||
8271 | ||
8272 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8273 | PyObject *resultobj; | |
8274 | wxString *arg1 = 0 ; | |
e811c8ce | 8275 | bool temp1 = False ; |
d14a1e28 RD |
8276 | PyObject * obj0 = 0 ; |
8277 | char *kwnames[] = { | |
8278 | (char *) "msg", NULL | |
8279 | }; | |
8280 | ||
8281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
8282 | { | |
8283 | arg1 = wxString_in_helper(obj0); | |
8284 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8285 | temp1 = True; |
d14a1e28 RD |
8286 | } |
8287 | { | |
8288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8289 | wxLogMessage((wxString const &)*arg1); | |
8290 | ||
8291 | wxPyEndAllowThreads(__tstate); | |
8292 | if (PyErr_Occurred()) SWIG_fail; | |
8293 | } | |
8294 | Py_INCREF(Py_None); resultobj = Py_None; | |
8295 | { | |
8296 | if (temp1) | |
8297 | delete arg1; | |
8298 | } | |
8299 | return resultobj; | |
8300 | fail: | |
8301 | { | |
8302 | if (temp1) | |
8303 | delete arg1; | |
8304 | } | |
8305 | return NULL; | |
8306 | } | |
8307 | ||
8308 | ||
8309 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8310 | PyObject *resultobj; | |
8311 | wxString *arg1 = 0 ; | |
e811c8ce | 8312 | bool temp1 = False ; |
d14a1e28 RD |
8313 | PyObject * obj0 = 0 ; |
8314 | char *kwnames[] = { | |
8315 | (char *) "msg", NULL | |
8316 | }; | |
8317 | ||
8318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
8319 | { | |
8320 | arg1 = wxString_in_helper(obj0); | |
8321 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8322 | temp1 = True; |
d14a1e28 RD |
8323 | } |
8324 | { | |
8325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8326 | wxLogInfo((wxString const &)*arg1); | |
8327 | ||
8328 | wxPyEndAllowThreads(__tstate); | |
8329 | if (PyErr_Occurred()) SWIG_fail; | |
8330 | } | |
8331 | Py_INCREF(Py_None); resultobj = Py_None; | |
8332 | { | |
8333 | if (temp1) | |
8334 | delete arg1; | |
8335 | } | |
8336 | return resultobj; | |
8337 | fail: | |
8338 | { | |
8339 | if (temp1) | |
8340 | delete arg1; | |
8341 | } | |
8342 | return NULL; | |
8343 | } | |
8344 | ||
8345 | ||
8346 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8347 | PyObject *resultobj; | |
8348 | wxString *arg1 = 0 ; | |
e811c8ce | 8349 | bool temp1 = False ; |
d14a1e28 RD |
8350 | PyObject * obj0 = 0 ; |
8351 | char *kwnames[] = { | |
8352 | (char *) "msg", NULL | |
8353 | }; | |
8354 | ||
8355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
8356 | { | |
8357 | arg1 = wxString_in_helper(obj0); | |
8358 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8359 | temp1 = True; |
d14a1e28 RD |
8360 | } |
8361 | { | |
8362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8363 | wxLogDebug((wxString const &)*arg1); | |
8364 | ||
8365 | wxPyEndAllowThreads(__tstate); | |
8366 | if (PyErr_Occurred()) SWIG_fail; | |
8367 | } | |
8368 | Py_INCREF(Py_None); resultobj = Py_None; | |
8369 | { | |
8370 | if (temp1) | |
8371 | delete arg1; | |
8372 | } | |
8373 | return resultobj; | |
8374 | fail: | |
8375 | { | |
8376 | if (temp1) | |
8377 | delete arg1; | |
8378 | } | |
8379 | return NULL; | |
8380 | } | |
8381 | ||
8382 | ||
8383 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8384 | PyObject *resultobj; | |
8385 | wxString *arg1 = 0 ; | |
e811c8ce | 8386 | bool temp1 = False ; |
d14a1e28 RD |
8387 | PyObject * obj0 = 0 ; |
8388 | char *kwnames[] = { | |
8389 | (char *) "msg", NULL | |
8390 | }; | |
8391 | ||
8392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8393 | { | |
8394 | arg1 = wxString_in_helper(obj0); | |
8395 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8396 | temp1 = True; |
d14a1e28 RD |
8397 | } |
8398 | { | |
8399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8400 | wxLogVerbose((wxString const &)*arg1); | |
8401 | ||
8402 | wxPyEndAllowThreads(__tstate); | |
8403 | if (PyErr_Occurred()) SWIG_fail; | |
8404 | } | |
8405 | Py_INCREF(Py_None); resultobj = Py_None; | |
8406 | { | |
8407 | if (temp1) | |
8408 | delete arg1; | |
8409 | } | |
8410 | return resultobj; | |
8411 | fail: | |
8412 | { | |
8413 | if (temp1) | |
8414 | delete arg1; | |
8415 | } | |
8416 | return NULL; | |
8417 | } | |
8418 | ||
8419 | ||
8420 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8421 | PyObject *resultobj; | |
8422 | wxString *arg1 = 0 ; | |
e811c8ce | 8423 | bool temp1 = False ; |
d14a1e28 RD |
8424 | PyObject * obj0 = 0 ; |
8425 | char *kwnames[] = { | |
8426 | (char *) "msg", NULL | |
8427 | }; | |
8428 | ||
8429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8430 | { | |
8431 | arg1 = wxString_in_helper(obj0); | |
8432 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8433 | temp1 = True; |
d14a1e28 RD |
8434 | } |
8435 | { | |
8436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8437 | wxLogStatus((wxString const &)*arg1); | |
8438 | ||
8439 | wxPyEndAllowThreads(__tstate); | |
8440 | if (PyErr_Occurred()) SWIG_fail; | |
8441 | } | |
8442 | Py_INCREF(Py_None); resultobj = Py_None; | |
8443 | { | |
8444 | if (temp1) | |
8445 | delete arg1; | |
8446 | } | |
8447 | return resultobj; | |
8448 | fail: | |
8449 | { | |
8450 | if (temp1) | |
8451 | delete arg1; | |
8452 | } | |
8453 | return NULL; | |
8454 | } | |
8455 | ||
8456 | ||
8457 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8458 | PyObject *resultobj; | |
8459 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8460 | wxString *arg2 = 0 ; | |
e811c8ce | 8461 | bool temp2 = False ; |
d14a1e28 RD |
8462 | PyObject * obj0 = 0 ; |
8463 | PyObject * obj1 = 0 ; | |
8464 | char *kwnames[] = { | |
8465 | (char *) "pFrame",(char *) "msg", NULL | |
8466 | }; | |
8467 | ||
8468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, |
8470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8471 | { |
8472 | arg2 = wxString_in_helper(obj1); | |
8473 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8474 | temp2 = True; |
d14a1e28 RD |
8475 | } |
8476 | { | |
8477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8478 | wxLogStatus(arg1,(wxString const &)*arg2); | |
8479 | ||
8480 | wxPyEndAllowThreads(__tstate); | |
8481 | if (PyErr_Occurred()) SWIG_fail; | |
8482 | } | |
8483 | Py_INCREF(Py_None); resultobj = Py_None; | |
8484 | { | |
8485 | if (temp2) | |
8486 | delete arg2; | |
8487 | } | |
8488 | return resultobj; | |
8489 | fail: | |
8490 | { | |
8491 | if (temp2) | |
8492 | delete arg2; | |
8493 | } | |
8494 | return NULL; | |
8495 | } | |
8496 | ||
8497 | ||
8498 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8499 | PyObject *resultobj; | |
8500 | wxString *arg1 = 0 ; | |
e811c8ce | 8501 | bool temp1 = False ; |
d14a1e28 RD |
8502 | PyObject * obj0 = 0 ; |
8503 | char *kwnames[] = { | |
8504 | (char *) "msg", NULL | |
8505 | }; | |
8506 | ||
8507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8508 | { | |
8509 | arg1 = wxString_in_helper(obj0); | |
8510 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8511 | temp1 = True; |
d14a1e28 RD |
8512 | } |
8513 | { | |
8514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8515 | wxLogSysError((wxString const &)*arg1); | |
8516 | ||
8517 | wxPyEndAllowThreads(__tstate); | |
8518 | if (PyErr_Occurred()) SWIG_fail; | |
8519 | } | |
8520 | Py_INCREF(Py_None); resultobj = Py_None; | |
8521 | { | |
8522 | if (temp1) | |
8523 | delete arg1; | |
8524 | } | |
8525 | return resultobj; | |
8526 | fail: | |
8527 | { | |
8528 | if (temp1) | |
8529 | delete arg1; | |
8530 | } | |
8531 | return NULL; | |
8532 | } | |
8533 | ||
8534 | ||
cc6dd355 | 8535 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 | 8536 | PyObject *resultobj; |
cc6dd355 RD |
8537 | unsigned long arg1 ; |
8538 | wxString *arg2 = 0 ; | |
8539 | bool temp2 = False ; | |
d14a1e28 | 8540 | PyObject * obj0 = 0 ; |
cc6dd355 | 8541 | PyObject * obj1 = 0 ; |
d14a1e28 | 8542 | |
cc6dd355 | 8543 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8544 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
8545 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 8546 | { |
cc6dd355 RD |
8547 | arg2 = wxString_in_helper(obj1); |
8548 | if (arg2 == NULL) SWIG_fail; | |
8549 | temp2 = True; | |
d14a1e28 RD |
8550 | } |
8551 | { | |
8552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
cc6dd355 | 8553 | wxLogTrace(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
8554 | |
8555 | wxPyEndAllowThreads(__tstate); | |
8556 | if (PyErr_Occurred()) SWIG_fail; | |
8557 | } | |
8558 | Py_INCREF(Py_None); resultobj = Py_None; | |
8559 | { | |
cc6dd355 RD |
8560 | if (temp2) |
8561 | delete arg2; | |
d14a1e28 RD |
8562 | } |
8563 | return resultobj; | |
8564 | fail: | |
8565 | { | |
cc6dd355 RD |
8566 | if (temp2) |
8567 | delete arg2; | |
d14a1e28 RD |
8568 | } |
8569 | return NULL; | |
8570 | } | |
8571 | ||
8572 | ||
cc6dd355 | 8573 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
8574 | PyObject *resultobj; |
8575 | wxString *arg1 = 0 ; | |
8576 | wxString *arg2 = 0 ; | |
e811c8ce RD |
8577 | bool temp1 = False ; |
8578 | bool temp2 = False ; | |
d14a1e28 RD |
8579 | PyObject * obj0 = 0 ; |
8580 | PyObject * obj1 = 0 ; | |
d14a1e28 | 8581 | |
cc6dd355 | 8582 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
8583 | { |
8584 | arg1 = wxString_in_helper(obj0); | |
8585 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8586 | temp1 = True; |
d14a1e28 RD |
8587 | } |
8588 | { | |
8589 | arg2 = wxString_in_helper(obj1); | |
8590 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8591 | temp2 = True; |
d14a1e28 RD |
8592 | } |
8593 | { | |
8594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8595 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
8596 | ||
8597 | wxPyEndAllowThreads(__tstate); | |
8598 | if (PyErr_Occurred()) SWIG_fail; | |
8599 | } | |
8600 | Py_INCREF(Py_None); resultobj = Py_None; | |
8601 | { | |
8602 | if (temp1) | |
8603 | delete arg1; | |
8604 | } | |
8605 | { | |
8606 | if (temp2) | |
8607 | delete arg2; | |
8608 | } | |
8609 | return resultobj; | |
8610 | fail: | |
8611 | { | |
8612 | if (temp1) | |
8613 | delete arg1; | |
8614 | } | |
8615 | { | |
8616 | if (temp2) | |
8617 | delete arg2; | |
8618 | } | |
8619 | return NULL; | |
8620 | } | |
8621 | ||
8622 | ||
cc6dd355 RD |
8623 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { |
8624 | int argc; | |
8625 | PyObject *argv[3]; | |
8626 | int ii; | |
8627 | ||
8628 | argc = PyObject_Length(args); | |
8629 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
8630 | argv[ii] = PyTuple_GetItem(args,ii); | |
8631 | } | |
8632 | if (argc == 2) { | |
8633 | int _v; | |
8634 | { | |
4d5c3d91 | 8635 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
cc6dd355 RD |
8636 | } |
8637 | if (_v) { | |
8638 | { | |
4d5c3d91 | 8639 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
cc6dd355 RD |
8640 | } |
8641 | if (_v) { | |
8642 | return _wrap_LogTrace__SWIG_1(self,args); | |
8643 | } | |
8644 | } | |
8645 | } | |
8646 | if (argc == 2) { | |
8647 | int _v; | |
15afbcd0 | 8648 | _v = SWIG_CheckUnsignedLong(argv[0]); |
cc6dd355 RD |
8649 | if (_v) { |
8650 | { | |
4d5c3d91 | 8651 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
cc6dd355 RD |
8652 | } |
8653 | if (_v) { | |
8654 | return _wrap_LogTrace__SWIG_0(self,args); | |
8655 | } | |
8656 | } | |
8657 | } | |
8658 | ||
8659 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
8660 | return NULL; | |
8661 | } | |
8662 | ||
8663 | ||
d14a1e28 RD |
8664 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { |
8665 | PyObject *resultobj; | |
8666 | unsigned long arg1 ; | |
8667 | wxString *arg2 = 0 ; | |
e811c8ce | 8668 | bool temp2 = False ; |
d14a1e28 RD |
8669 | PyObject * obj0 = 0 ; |
8670 | PyObject * obj1 = 0 ; | |
8671 | char *kwnames[] = { | |
8672 | (char *) "level",(char *) "msg", NULL | |
8673 | }; | |
8674 | ||
8675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8676 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
8677 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8678 | { |
8679 | arg2 = wxString_in_helper(obj1); | |
8680 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8681 | temp2 = True; |
d14a1e28 RD |
8682 | } |
8683 | { | |
8684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8685 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
8686 | ||
8687 | wxPyEndAllowThreads(__tstate); | |
8688 | if (PyErr_Occurred()) SWIG_fail; | |
8689 | } | |
8690 | Py_INCREF(Py_None); resultobj = Py_None; | |
8691 | { | |
8692 | if (temp2) | |
8693 | delete arg2; | |
8694 | } | |
8695 | return resultobj; | |
8696 | fail: | |
8697 | { | |
8698 | if (temp2) | |
8699 | delete arg2; | |
8700 | } | |
8701 | return NULL; | |
8702 | } | |
8703 | ||
8704 | ||
8705 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8706 | PyObject *resultobj; | |
8707 | wxString *arg1 = 0 ; | |
8708 | wxString *arg2 = 0 ; | |
e811c8ce RD |
8709 | bool temp1 = False ; |
8710 | bool temp2 = False ; | |
d14a1e28 RD |
8711 | PyObject * obj0 = 0 ; |
8712 | PyObject * obj1 = 0 ; | |
8713 | char *kwnames[] = { | |
8714 | (char *) "title",(char *) "text", NULL | |
8715 | }; | |
8716 | ||
8717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
8718 | { | |
8719 | arg1 = wxString_in_helper(obj0); | |
8720 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8721 | temp1 = True; |
d14a1e28 RD |
8722 | } |
8723 | { | |
8724 | arg2 = wxString_in_helper(obj1); | |
8725 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8726 | temp2 = True; |
d14a1e28 RD |
8727 | } |
8728 | { | |
8729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8730 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
8731 | ||
8732 | wxPyEndAllowThreads(__tstate); | |
8733 | if (PyErr_Occurred()) SWIG_fail; | |
8734 | } | |
8735 | Py_INCREF(Py_None); resultobj = Py_None; | |
8736 | { | |
8737 | if (temp1) | |
8738 | delete arg1; | |
8739 | } | |
8740 | { | |
8741 | if (temp2) | |
8742 | delete arg2; | |
8743 | } | |
8744 | return resultobj; | |
8745 | fail: | |
8746 | { | |
8747 | if (temp1) | |
8748 | delete arg1; | |
8749 | } | |
8750 | { | |
8751 | if (temp2) | |
8752 | delete arg2; | |
8753 | } | |
8754 | return NULL; | |
8755 | } | |
8756 | ||
8757 | ||
8758 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8759 | PyObject *resultobj; | |
8760 | wxLogNull *result; | |
8761 | char *kwnames[] = { | |
8762 | NULL | |
8763 | }; | |
8764 | ||
8765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
8766 | { | |
8767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8768 | result = (wxLogNull *)new wxLogNull(); | |
8769 | ||
8770 | wxPyEndAllowThreads(__tstate); | |
8771 | if (PyErr_Occurred()) SWIG_fail; | |
8772 | } | |
15afbcd0 | 8773 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); |
d14a1e28 RD |
8774 | return resultobj; |
8775 | fail: | |
8776 | return NULL; | |
8777 | } | |
8778 | ||
8779 | ||
8780 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8781 | PyObject *resultobj; | |
8782 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
8783 | PyObject * obj0 = 0 ; | |
8784 | char *kwnames[] = { | |
8785 | (char *) "self", NULL | |
8786 | }; | |
8787 | ||
8788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull, |
8790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8791 | { |
8792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8793 | delete arg1; | |
8794 | ||
8795 | wxPyEndAllowThreads(__tstate); | |
8796 | if (PyErr_Occurred()) SWIG_fail; | |
8797 | } | |
8798 | Py_INCREF(Py_None); resultobj = Py_None; | |
8799 | return resultobj; | |
8800 | fail: | |
8801 | return NULL; | |
8802 | } | |
8803 | ||
8804 | ||
8805 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
8806 | PyObject *obj; | |
8807 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8808 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
8809 | Py_INCREF(obj); | |
8810 | return Py_BuildValue((char *)""); | |
8811 | } | |
8812 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8813 | PyObject *resultobj; | |
8814 | wxPyLog *result; | |
8815 | char *kwnames[] = { | |
8816 | NULL | |
8817 | }; | |
8818 | ||
8819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
8820 | { | |
8821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8822 | result = (wxPyLog *)new wxPyLog(); | |
8823 | ||
8824 | wxPyEndAllowThreads(__tstate); | |
8825 | if (PyErr_Occurred()) SWIG_fail; | |
8826 | } | |
15afbcd0 | 8827 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); |
d14a1e28 RD |
8828 | return resultobj; |
8829 | fail: | |
8830 | return NULL; | |
8831 | } | |
8832 | ||
8833 | ||
8834 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8835 | PyObject *resultobj; | |
8836 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
8837 | PyObject *arg2 = (PyObject *) 0 ; | |
8838 | PyObject *arg3 = (PyObject *) 0 ; | |
8839 | PyObject * obj0 = 0 ; | |
8840 | PyObject * obj1 = 0 ; | |
8841 | PyObject * obj2 = 0 ; | |
8842 | char *kwnames[] = { | |
8843 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8844 | }; | |
8845 | ||
8846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
8847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog, |
8848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8849 | arg2 = obj1; |
8850 | arg3 = obj2; | |
8851 | { | |
8852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8853 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8854 | ||
8855 | wxPyEndAllowThreads(__tstate); | |
8856 | if (PyErr_Occurred()) SWIG_fail; | |
8857 | } | |
8858 | Py_INCREF(Py_None); resultobj = Py_None; | |
8859 | return resultobj; | |
8860 | fail: | |
8861 | return NULL; | |
8862 | } | |
8863 | ||
8864 | ||
8865 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
8866 | PyObject *obj; | |
8867 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8868 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
8869 | Py_INCREF(obj); | |
8870 | return Py_BuildValue((char *)""); | |
8871 | } | |
8872 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8873 | PyObject *resultobj; | |
8874 | int arg1 ; | |
8875 | int arg2 = (int) wxSIGTERM ; | |
8876 | int result; | |
994141e6 RD |
8877 | PyObject * obj0 = 0 ; |
8878 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8879 | char *kwnames[] = { |
8880 | (char *) "pid",(char *) "sig", NULL | |
8881 | }; | |
8882 | ||
994141e6 | 8883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8884 | arg1 = (int) SWIG_AsInt(obj0); |
8885 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8886 | if (obj1) { |
15afbcd0 RD |
8887 | arg2 = (wxSignal) SWIG_AsInt(obj1); |
8888 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8889 | } |
d14a1e28 RD |
8890 | { |
8891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8892 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
8893 | ||
8894 | wxPyEndAllowThreads(__tstate); | |
8895 | if (PyErr_Occurred()) SWIG_fail; | |
8896 | } | |
15afbcd0 | 8897 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8898 | return resultobj; |
8899 | fail: | |
8900 | return NULL; | |
8901 | } | |
8902 | ||
8903 | ||
8904 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8905 | PyObject *resultobj; | |
8906 | int arg1 ; | |
8907 | bool result; | |
994141e6 | 8908 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
8909 | char *kwnames[] = { |
8910 | (char *) "pid", NULL | |
8911 | }; | |
8912 | ||
994141e6 | 8913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
8914 | arg1 = (int) SWIG_AsInt(obj0); |
8915 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8916 | { |
8917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8918 | result = (bool)wxPyProcess::Exists(arg1); | |
8919 | ||
8920 | wxPyEndAllowThreads(__tstate); | |
8921 | if (PyErr_Occurred()) SWIG_fail; | |
8922 | } | |
4f89f6a3 RD |
8923 | { |
8924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8925 | } | |
d14a1e28 RD |
8926 | return resultobj; |
8927 | fail: | |
8928 | return NULL; | |
8929 | } | |
8930 | ||
8931 | ||
8932 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8933 | PyObject *resultobj; | |
8934 | wxString *arg1 = 0 ; | |
8935 | int arg2 = (int) wxEXEC_ASYNC ; | |
8936 | wxPyProcess *result; | |
e811c8ce | 8937 | bool temp1 = False ; |
d14a1e28 | 8938 | PyObject * obj0 = 0 ; |
994141e6 | 8939 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8940 | char *kwnames[] = { |
8941 | (char *) "cmd",(char *) "flags", NULL | |
8942 | }; | |
8943 | ||
994141e6 | 8944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
8945 | { |
8946 | arg1 = wxString_in_helper(obj0); | |
8947 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8948 | temp1 = True; |
d14a1e28 | 8949 | } |
994141e6 | 8950 | if (obj1) { |
15afbcd0 RD |
8951 | arg2 = (int) SWIG_AsInt(obj1); |
8952 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8953 | } |
d14a1e28 RD |
8954 | { |
8955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8956 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
8957 | ||
8958 | wxPyEndAllowThreads(__tstate); | |
8959 | if (PyErr_Occurred()) SWIG_fail; | |
8960 | } | |
15afbcd0 | 8961 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); |
d14a1e28 RD |
8962 | { |
8963 | if (temp1) | |
8964 | delete arg1; | |
8965 | } | |
8966 | return resultobj; | |
8967 | fail: | |
8968 | { | |
8969 | if (temp1) | |
8970 | delete arg1; | |
8971 | } | |
8972 | return NULL; | |
8973 | } | |
8974 | ||
8975 | ||
8976 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8977 | PyObject *resultobj; | |
8978 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
8979 | int arg2 = (int) -1 ; | |
8980 | wxPyProcess *result; | |
8981 | PyObject * obj0 = 0 ; | |
994141e6 | 8982 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8983 | char *kwnames[] = { |
8984 | (char *) "parent",(char *) "id", NULL | |
8985 | }; | |
8986 | ||
994141e6 | 8987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8988 | if (obj0) { |
15afbcd0 RD |
8989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
8990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8991 | } |
994141e6 | 8992 | if (obj1) { |
15afbcd0 RD |
8993 | arg2 = (int) SWIG_AsInt(obj1); |
8994 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8995 | } |
d14a1e28 RD |
8996 | { |
8997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8998 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
8999 | ||
9000 | wxPyEndAllowThreads(__tstate); | |
9001 | if (PyErr_Occurred()) SWIG_fail; | |
9002 | } | |
15afbcd0 | 9003 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); |
d14a1e28 RD |
9004 | return resultobj; |
9005 | fail: | |
9006 | return NULL; | |
9007 | } | |
9008 | ||
9009 | ||
9010 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9011 | PyObject *resultobj; | |
9012 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9013 | PyObject *arg2 = (PyObject *) 0 ; | |
9014 | PyObject *arg3 = (PyObject *) 0 ; | |
9015 | PyObject * obj0 = 0 ; | |
9016 | PyObject * obj1 = 0 ; | |
9017 | PyObject * obj2 = 0 ; | |
9018 | char *kwnames[] = { | |
9019 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9020 | }; | |
9021 | ||
9022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
9023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9025 | arg2 = obj1; |
9026 | arg3 = obj2; | |
9027 | { | |
9028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9029 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9030 | ||
9031 | wxPyEndAllowThreads(__tstate); | |
9032 | if (PyErr_Occurred()) SWIG_fail; | |
9033 | } | |
9034 | Py_INCREF(Py_None); resultobj = Py_None; | |
9035 | return resultobj; | |
9036 | fail: | |
9037 | return NULL; | |
9038 | } | |
9039 | ||
9040 | ||
9041 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9042 | PyObject *resultobj; | |
9043 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9044 | int arg2 ; | |
9045 | int arg3 ; | |
9046 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9047 | PyObject * obj1 = 0 ; |
9048 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9049 | char *kwnames[] = { |
9050 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
9051 | }; | |
9052 | ||
994141e6 | 9053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9056 | arg2 = (int) SWIG_AsInt(obj1); | |
9057 | if (PyErr_Occurred()) SWIG_fail; | |
9058 | arg3 = (int) SWIG_AsInt(obj2); | |
9059 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9060 | { |
9061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9062 | (arg1)->base_OnTerminate(arg2,arg3); | |
9063 | ||
9064 | wxPyEndAllowThreads(__tstate); | |
9065 | if (PyErr_Occurred()) SWIG_fail; | |
9066 | } | |
9067 | Py_INCREF(Py_None); resultobj = Py_None; | |
9068 | return resultobj; | |
9069 | fail: | |
9070 | return NULL; | |
9071 | } | |
9072 | ||
9073 | ||
9074 | static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9075 | PyObject *resultobj; | |
9076 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9077 | PyObject * obj0 = 0 ; | |
9078 | char *kwnames[] = { | |
9079 | (char *) "self", NULL | |
9080 | }; | |
9081 | ||
9082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9085 | { |
9086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9087 | (arg1)->Redirect(); | |
9088 | ||
9089 | wxPyEndAllowThreads(__tstate); | |
9090 | if (PyErr_Occurred()) SWIG_fail; | |
9091 | } | |
9092 | Py_INCREF(Py_None); resultobj = Py_None; | |
9093 | return resultobj; | |
9094 | fail: | |
9095 | return NULL; | |
9096 | } | |
9097 | ||
9098 | ||
9099 | static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9100 | PyObject *resultobj; | |
9101 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9102 | bool result; | |
9103 | PyObject * obj0 = 0 ; | |
9104 | char *kwnames[] = { | |
9105 | (char *) "self", NULL | |
9106 | }; | |
9107 | ||
9108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9111 | { |
9112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9113 | result = (bool)(arg1)->IsRedirected(); | |
9114 | ||
9115 | wxPyEndAllowThreads(__tstate); | |
9116 | if (PyErr_Occurred()) SWIG_fail; | |
9117 | } | |
4f89f6a3 RD |
9118 | { |
9119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9120 | } | |
d14a1e28 RD |
9121 | return resultobj; |
9122 | fail: | |
9123 | return NULL; | |
9124 | } | |
9125 | ||
9126 | ||
9127 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9128 | PyObject *resultobj; | |
9129 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9130 | PyObject * obj0 = 0 ; | |
9131 | char *kwnames[] = { | |
9132 | (char *) "self", NULL | |
9133 | }; | |
9134 | ||
9135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9138 | { |
9139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9140 | (arg1)->Detach(); | |
9141 | ||
9142 | wxPyEndAllowThreads(__tstate); | |
9143 | if (PyErr_Occurred()) SWIG_fail; | |
9144 | } | |
9145 | Py_INCREF(Py_None); resultobj = Py_None; | |
9146 | return resultobj; | |
9147 | fail: | |
9148 | return NULL; | |
9149 | } | |
9150 | ||
9151 | ||
9152 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9153 | PyObject *resultobj; | |
9154 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9155 | wxInputStream *result; | |
9156 | PyObject * obj0 = 0 ; | |
9157 | char *kwnames[] = { | |
9158 | (char *) "self", NULL | |
9159 | }; | |
9160 | ||
9161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9164 | { |
9165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9166 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
9167 | ||
9168 | wxPyEndAllowThreads(__tstate); | |
9169 | if (PyErr_Occurred()) SWIG_fail; | |
9170 | } | |
9171 | { | |
9172 | wxPyInputStream * _ptr = NULL; | |
9173 | ||
9174 | if (result) { | |
9175 | _ptr = new wxPyInputStream(result); | |
9176 | } | |
e811c8ce | 9177 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
9178 | } |
9179 | return resultobj; | |
9180 | fail: | |
9181 | return NULL; | |
9182 | } | |
9183 | ||
9184 | ||
9185 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9186 | PyObject *resultobj; | |
9187 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9188 | wxInputStream *result; | |
9189 | PyObject * obj0 = 0 ; | |
9190 | char *kwnames[] = { | |
9191 | (char *) "self", NULL | |
9192 | }; | |
9193 | ||
9194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9197 | { |
9198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9199 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
9200 | ||
9201 | wxPyEndAllowThreads(__tstate); | |
9202 | if (PyErr_Occurred()) SWIG_fail; | |
9203 | } | |
9204 | { | |
9205 | wxPyInputStream * _ptr = NULL; | |
9206 | ||
9207 | if (result) { | |
9208 | _ptr = new wxPyInputStream(result); | |
9209 | } | |
e811c8ce | 9210 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
9211 | } |
9212 | return resultobj; | |
9213 | fail: | |
9214 | return NULL; | |
9215 | } | |
9216 | ||
9217 | ||
9218 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9219 | PyObject *resultobj; | |
9220 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9221 | wxOutputStream *result; | |
9222 | PyObject * obj0 = 0 ; | |
9223 | char *kwnames[] = { | |
9224 | (char *) "self", NULL | |
9225 | }; | |
9226 | ||
9227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9230 | { |
9231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9232 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
9233 | ||
9234 | wxPyEndAllowThreads(__tstate); | |
9235 | if (PyErr_Occurred()) SWIG_fail; | |
9236 | } | |
15afbcd0 | 9237 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); |
d14a1e28 RD |
9238 | return resultobj; |
9239 | fail: | |
9240 | return NULL; | |
9241 | } | |
9242 | ||
9243 | ||
9244 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9245 | PyObject *resultobj; | |
9246 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9247 | PyObject * obj0 = 0 ; | |
9248 | char *kwnames[] = { | |
9249 | (char *) "self", NULL | |
9250 | }; | |
9251 | ||
9252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9255 | { |
9256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9257 | (arg1)->CloseOutput(); | |
9258 | ||
9259 | wxPyEndAllowThreads(__tstate); | |
9260 | if (PyErr_Occurred()) SWIG_fail; | |
9261 | } | |
9262 | Py_INCREF(Py_None); resultobj = Py_None; | |
9263 | return resultobj; | |
9264 | fail: | |
9265 | return NULL; | |
9266 | } | |
9267 | ||
9268 | ||
9269 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9270 | PyObject *resultobj; | |
9271 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9272 | bool result; | |
9273 | PyObject * obj0 = 0 ; | |
9274 | char *kwnames[] = { | |
9275 | (char *) "self", NULL | |
9276 | }; | |
9277 | ||
9278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9281 | { |
9282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9283 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
9284 | ||
9285 | wxPyEndAllowThreads(__tstate); | |
9286 | if (PyErr_Occurred()) SWIG_fail; | |
9287 | } | |
4f89f6a3 RD |
9288 | { |
9289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9290 | } | |
d14a1e28 RD |
9291 | return resultobj; |
9292 | fail: | |
9293 | return NULL; | |
9294 | } | |
9295 | ||
9296 | ||
9297 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9298 | PyObject *resultobj; | |
9299 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9300 | bool result; | |
9301 | PyObject * obj0 = 0 ; | |
9302 | char *kwnames[] = { | |
9303 | (char *) "self", NULL | |
9304 | }; | |
9305 | ||
9306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9309 | { |
9310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9311 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
9312 | ||
9313 | wxPyEndAllowThreads(__tstate); | |
9314 | if (PyErr_Occurred()) SWIG_fail; | |
9315 | } | |
4f89f6a3 RD |
9316 | { |
9317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9318 | } | |
d14a1e28 RD |
9319 | return resultobj; |
9320 | fail: | |
9321 | return NULL; | |
9322 | } | |
9323 | ||
9324 | ||
9325 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9326 | PyObject *resultobj; | |
9327 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9328 | bool result; | |
9329 | PyObject * obj0 = 0 ; | |
9330 | char *kwnames[] = { | |
9331 | (char *) "self", NULL | |
9332 | }; | |
9333 | ||
9334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9337 | { |
9338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9339 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
9340 | ||
9341 | wxPyEndAllowThreads(__tstate); | |
9342 | if (PyErr_Occurred()) SWIG_fail; | |
9343 | } | |
4f89f6a3 RD |
9344 | { |
9345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9346 | } | |
d14a1e28 RD |
9347 | return resultobj; |
9348 | fail: | |
9349 | return NULL; | |
9350 | } | |
9351 | ||
9352 | ||
9353 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
9354 | PyObject *obj; | |
9355 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9356 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
9357 | Py_INCREF(obj); | |
9358 | return Py_BuildValue((char *)""); | |
9359 | } | |
9360 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9361 | PyObject *resultobj; | |
9362 | int arg1 = (int) 0 ; | |
9363 | int arg2 = (int) 0 ; | |
9364 | int arg3 = (int) 0 ; | |
9365 | wxProcessEvent *result; | |
994141e6 RD |
9366 | PyObject * obj0 = 0 ; |
9367 | PyObject * obj1 = 0 ; | |
9368 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9369 | char *kwnames[] = { |
9370 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9371 | }; | |
9372 | ||
994141e6 RD |
9373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
9374 | if (obj0) { | |
15afbcd0 RD |
9375 | arg1 = (int) SWIG_AsInt(obj0); |
9376 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9377 | } |
9378 | if (obj1) { | |
15afbcd0 RD |
9379 | arg2 = (int) SWIG_AsInt(obj1); |
9380 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9381 | } |
9382 | if (obj2) { | |
15afbcd0 RD |
9383 | arg3 = (int) SWIG_AsInt(obj2); |
9384 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9385 | } |
d14a1e28 RD |
9386 | { |
9387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9388 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9389 | ||
9390 | wxPyEndAllowThreads(__tstate); | |
9391 | if (PyErr_Occurred()) SWIG_fail; | |
9392 | } | |
15afbcd0 | 9393 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); |
d14a1e28 RD |
9394 | return resultobj; |
9395 | fail: | |
9396 | return NULL; | |
9397 | } | |
9398 | ||
9399 | ||
9400 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9401 | PyObject *resultobj; | |
9402 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9403 | int result; | |
9404 | PyObject * obj0 = 0 ; | |
9405 | char *kwnames[] = { | |
9406 | (char *) "self", NULL | |
9407 | }; | |
9408 | ||
9409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9412 | { |
9413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9414 | result = (int)(arg1)->GetPid(); | |
9415 | ||
9416 | wxPyEndAllowThreads(__tstate); | |
9417 | if (PyErr_Occurred()) SWIG_fail; | |
9418 | } | |
15afbcd0 | 9419 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9420 | return resultobj; |
9421 | fail: | |
9422 | return NULL; | |
9423 | } | |
9424 | ||
9425 | ||
9426 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9427 | PyObject *resultobj; | |
9428 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9429 | int result; | |
9430 | PyObject * obj0 = 0 ; | |
9431 | char *kwnames[] = { | |
9432 | (char *) "self", NULL | |
9433 | }; | |
9434 | ||
9435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9438 | { |
9439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9440 | result = (int)(arg1)->GetExitCode(); | |
9441 | ||
9442 | wxPyEndAllowThreads(__tstate); | |
9443 | if (PyErr_Occurred()) SWIG_fail; | |
9444 | } | |
15afbcd0 | 9445 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9446 | return resultobj; |
9447 | fail: | |
9448 | return NULL; | |
9449 | } | |
9450 | ||
9451 | ||
9452 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9453 | PyObject *resultobj; | |
9454 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9455 | int arg2 ; | |
9456 | PyObject * obj0 = 0 ; | |
994141e6 | 9457 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9458 | char *kwnames[] = { |
9459 | (char *) "self",(char *) "m_pid", NULL | |
9460 | }; | |
9461 | ||
994141e6 | 9462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9465 | arg2 = (int) SWIG_AsInt(obj1); | |
9466 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9467 | if (arg1) (arg1)->m_pid = arg2; |
9468 | ||
9469 | Py_INCREF(Py_None); resultobj = Py_None; | |
9470 | return resultobj; | |
9471 | fail: | |
9472 | return NULL; | |
9473 | } | |
9474 | ||
9475 | ||
9476 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9477 | PyObject *resultobj; | |
9478 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9479 | int result; | |
9480 | PyObject * obj0 = 0 ; | |
9481 | char *kwnames[] = { | |
9482 | (char *) "self", NULL | |
9483 | }; | |
9484 | ||
9485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9488 | result = (int) ((arg1)->m_pid); |
9489 | ||
15afbcd0 | 9490 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9491 | return resultobj; |
9492 | fail: | |
9493 | return NULL; | |
9494 | } | |
9495 | ||
9496 | ||
9497 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9498 | PyObject *resultobj; | |
9499 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9500 | int arg2 ; | |
9501 | PyObject * obj0 = 0 ; | |
994141e6 | 9502 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9503 | char *kwnames[] = { |
9504 | (char *) "self",(char *) "m_exitcode", NULL | |
9505 | }; | |
9506 | ||
994141e6 | 9507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9510 | arg2 = (int) SWIG_AsInt(obj1); | |
9511 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9512 | if (arg1) (arg1)->m_exitcode = arg2; |
9513 | ||
9514 | Py_INCREF(Py_None); resultobj = Py_None; | |
9515 | return resultobj; | |
9516 | fail: | |
9517 | return NULL; | |
9518 | } | |
9519 | ||
9520 | ||
9521 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9522 | PyObject *resultobj; | |
9523 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9524 | int result; | |
9525 | PyObject * obj0 = 0 ; | |
9526 | char *kwnames[] = { | |
9527 | (char *) "self", NULL | |
9528 | }; | |
9529 | ||
9530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9533 | result = (int) ((arg1)->m_exitcode); |
9534 | ||
15afbcd0 | 9535 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9536 | return resultobj; |
9537 | fail: | |
9538 | return NULL; | |
9539 | } | |
9540 | ||
9541 | ||
9542 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
9543 | PyObject *obj; | |
9544 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9545 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
9546 | Py_INCREF(obj); | |
9547 | return Py_BuildValue((char *)""); | |
9548 | } | |
9549 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9550 | PyObject *resultobj; | |
9551 | wxString *arg1 = 0 ; | |
9552 | int arg2 = (int) wxEXEC_ASYNC ; | |
9553 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
9554 | long result; | |
e811c8ce | 9555 | bool temp1 = False ; |
d14a1e28 | 9556 | PyObject * obj0 = 0 ; |
994141e6 | 9557 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9558 | PyObject * obj2 = 0 ; |
9559 | char *kwnames[] = { | |
9560 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
9561 | }; | |
9562 | ||
994141e6 | 9563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
9564 | { |
9565 | arg1 = wxString_in_helper(obj0); | |
9566 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9567 | temp1 = True; |
d14a1e28 | 9568 | } |
994141e6 | 9569 | if (obj1) { |
15afbcd0 RD |
9570 | arg2 = (int) SWIG_AsInt(obj1); |
9571 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9572 | } |
d14a1e28 | 9573 | if (obj2) { |
15afbcd0 RD |
9574 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess, |
9575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9576 | } |
9577 | { | |
9578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9579 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
9580 | ||
9581 | wxPyEndAllowThreads(__tstate); | |
9582 | if (PyErr_Occurred()) SWIG_fail; | |
9583 | } | |
15afbcd0 | 9584 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9585 | { |
9586 | if (temp1) | |
9587 | delete arg1; | |
9588 | } | |
9589 | return resultobj; | |
9590 | fail: | |
9591 | { | |
9592 | if (temp1) | |
9593 | delete arg1; | |
9594 | } | |
9595 | return NULL; | |
9596 | } | |
9597 | ||
9598 | ||
9599 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9600 | PyObject *resultobj; | |
9601 | int arg1 = (int) wxJOYSTICK1 ; | |
9602 | wxJoystick *result; | |
994141e6 | 9603 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9604 | char *kwnames[] = { |
9605 | (char *) "joystick", NULL | |
9606 | }; | |
9607 | ||
994141e6 RD |
9608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; |
9609 | if (obj0) { | |
15afbcd0 RD |
9610 | arg1 = (int) SWIG_AsInt(obj0); |
9611 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9612 | } |
d14a1e28 RD |
9613 | { |
9614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9615 | result = (wxJoystick *)new wxJoystick(arg1); | |
9616 | ||
9617 | wxPyEndAllowThreads(__tstate); | |
9618 | if (PyErr_Occurred()) SWIG_fail; | |
9619 | } | |
15afbcd0 | 9620 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); |
d14a1e28 RD |
9621 | return resultobj; |
9622 | fail: | |
9623 | return NULL; | |
9624 | } | |
9625 | ||
9626 | ||
9627 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9628 | PyObject *resultobj; | |
9629 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9630 | PyObject * obj0 = 0 ; | |
9631 | char *kwnames[] = { | |
9632 | (char *) "self", NULL | |
9633 | }; | |
9634 | ||
9635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9638 | { |
9639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9640 | delete arg1; | |
9641 | ||
9642 | wxPyEndAllowThreads(__tstate); | |
9643 | if (PyErr_Occurred()) SWIG_fail; | |
9644 | } | |
9645 | Py_INCREF(Py_None); resultobj = Py_None; | |
9646 | return resultobj; | |
9647 | fail: | |
9648 | return NULL; | |
9649 | } | |
9650 | ||
9651 | ||
9652 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9653 | PyObject *resultobj; | |
9654 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9655 | wxPoint result; | |
9656 | PyObject * obj0 = 0 ; | |
9657 | char *kwnames[] = { | |
9658 | (char *) "self", NULL | |
9659 | }; | |
9660 | ||
9661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9664 | { |
9665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9666 | result = (arg1)->GetPosition(); | |
9667 | ||
9668 | wxPyEndAllowThreads(__tstate); | |
9669 | if (PyErr_Occurred()) SWIG_fail; | |
9670 | } | |
9671 | { | |
9672 | wxPoint * resultptr; | |
9673 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 9674 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
9675 | } |
9676 | return resultobj; | |
9677 | fail: | |
9678 | return NULL; | |
9679 | } | |
9680 | ||
9681 | ||
9682 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9683 | PyObject *resultobj; | |
9684 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9685 | int result; | |
9686 | PyObject * obj0 = 0 ; | |
9687 | char *kwnames[] = { | |
9688 | (char *) "self", NULL | |
9689 | }; | |
9690 | ||
9691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9694 | { |
9695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9696 | result = (int)(arg1)->GetZPosition(); | |
9697 | ||
9698 | wxPyEndAllowThreads(__tstate); | |
9699 | if (PyErr_Occurred()) SWIG_fail; | |
9700 | } | |
15afbcd0 | 9701 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9702 | return resultobj; |
9703 | fail: | |
9704 | return NULL; | |
9705 | } | |
9706 | ||
9707 | ||
9708 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9709 | PyObject *resultobj; | |
9710 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9711 | int result; | |
9712 | PyObject * obj0 = 0 ; | |
9713 | char *kwnames[] = { | |
9714 | (char *) "self", NULL | |
9715 | }; | |
9716 | ||
9717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9720 | { |
9721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9722 | result = (int)(arg1)->GetButtonState(); | |
9723 | ||
9724 | wxPyEndAllowThreads(__tstate); | |
9725 | if (PyErr_Occurred()) SWIG_fail; | |
9726 | } | |
15afbcd0 | 9727 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9728 | return resultobj; |
9729 | fail: | |
9730 | return NULL; | |
9731 | } | |
9732 | ||
9733 | ||
9734 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9735 | PyObject *resultobj; | |
9736 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9737 | int result; | |
9738 | PyObject * obj0 = 0 ; | |
9739 | char *kwnames[] = { | |
9740 | (char *) "self", NULL | |
9741 | }; | |
9742 | ||
9743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9746 | { |
9747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9748 | result = (int)(arg1)->GetPOVPosition(); | |
9749 | ||
9750 | wxPyEndAllowThreads(__tstate); | |
9751 | if (PyErr_Occurred()) SWIG_fail; | |
9752 | } | |
15afbcd0 | 9753 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9754 | return resultobj; |
9755 | fail: | |
9756 | return NULL; | |
9757 | } | |
9758 | ||
9759 | ||
9760 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9761 | PyObject *resultobj; | |
9762 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9763 | int result; | |
9764 | PyObject * obj0 = 0 ; | |
9765 | char *kwnames[] = { | |
9766 | (char *) "self", NULL | |
9767 | }; | |
9768 | ||
9769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9772 | { |
9773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9774 | result = (int)(arg1)->GetPOVCTSPosition(); | |
9775 | ||
9776 | wxPyEndAllowThreads(__tstate); | |
9777 | if (PyErr_Occurred()) SWIG_fail; | |
9778 | } | |
15afbcd0 | 9779 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9780 | return resultobj; |
9781 | fail: | |
9782 | return NULL; | |
9783 | } | |
9784 | ||
9785 | ||
9786 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9787 | PyObject *resultobj; | |
9788 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9789 | int result; | |
9790 | PyObject * obj0 = 0 ; | |
9791 | char *kwnames[] = { | |
9792 | (char *) "self", NULL | |
9793 | }; | |
9794 | ||
9795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9798 | { |
9799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9800 | result = (int)(arg1)->GetRudderPosition(); | |
9801 | ||
9802 | wxPyEndAllowThreads(__tstate); | |
9803 | if (PyErr_Occurred()) SWIG_fail; | |
9804 | } | |
15afbcd0 | 9805 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9806 | return resultobj; |
9807 | fail: | |
9808 | return NULL; | |
9809 | } | |
9810 | ||
9811 | ||
9812 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9813 | PyObject *resultobj; | |
9814 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9815 | int result; | |
9816 | PyObject * obj0 = 0 ; | |
9817 | char *kwnames[] = { | |
9818 | (char *) "self", NULL | |
9819 | }; | |
9820 | ||
9821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9824 | { |
9825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9826 | result = (int)(arg1)->GetUPosition(); | |
9827 | ||
9828 | wxPyEndAllowThreads(__tstate); | |
9829 | if (PyErr_Occurred()) SWIG_fail; | |
9830 | } | |
15afbcd0 | 9831 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9832 | return resultobj; |
9833 | fail: | |
9834 | return NULL; | |
9835 | } | |
9836 | ||
9837 | ||
9838 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9839 | PyObject *resultobj; | |
9840 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9841 | int result; | |
9842 | PyObject * obj0 = 0 ; | |
9843 | char *kwnames[] = { | |
9844 | (char *) "self", NULL | |
9845 | }; | |
9846 | ||
9847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9850 | { |
9851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9852 | result = (int)(arg1)->GetVPosition(); | |
9853 | ||
9854 | wxPyEndAllowThreads(__tstate); | |
9855 | if (PyErr_Occurred()) SWIG_fail; | |
9856 | } | |
15afbcd0 | 9857 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9858 | return resultobj; |
9859 | fail: | |
9860 | return NULL; | |
9861 | } | |
9862 | ||
9863 | ||
9864 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9865 | PyObject *resultobj; | |
9866 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9867 | int result; | |
9868 | PyObject * obj0 = 0 ; | |
9869 | char *kwnames[] = { | |
9870 | (char *) "self", NULL | |
9871 | }; | |
9872 | ||
9873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9876 | { |
9877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9878 | result = (int)(arg1)->GetMovementThreshold(); | |
9879 | ||
9880 | wxPyEndAllowThreads(__tstate); | |
9881 | if (PyErr_Occurred()) SWIG_fail; | |
9882 | } | |
15afbcd0 | 9883 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9884 | return resultobj; |
9885 | fail: | |
9886 | return NULL; | |
9887 | } | |
9888 | ||
9889 | ||
9890 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9891 | PyObject *resultobj; | |
9892 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9893 | int arg2 ; | |
9894 | PyObject * obj0 = 0 ; | |
994141e6 | 9895 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9896 | char *kwnames[] = { |
9897 | (char *) "self",(char *) "threshold", NULL | |
9898 | }; | |
9899 | ||
994141e6 | 9900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9903 | arg2 = (int) SWIG_AsInt(obj1); | |
9904 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9905 | { |
9906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9907 | (arg1)->SetMovementThreshold(arg2); | |
9908 | ||
9909 | wxPyEndAllowThreads(__tstate); | |
9910 | if (PyErr_Occurred()) SWIG_fail; | |
9911 | } | |
9912 | Py_INCREF(Py_None); resultobj = Py_None; | |
9913 | return resultobj; | |
9914 | fail: | |
9915 | return NULL; | |
9916 | } | |
9917 | ||
9918 | ||
9919 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9920 | PyObject *resultobj; | |
9921 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9922 | bool result; | |
9923 | PyObject * obj0 = 0 ; | |
9924 | char *kwnames[] = { | |
9925 | (char *) "self", NULL | |
9926 | }; | |
9927 | ||
9928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9931 | { |
9932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9933 | result = (bool)(arg1)->IsOk(); | |
9934 | ||
9935 | wxPyEndAllowThreads(__tstate); | |
9936 | if (PyErr_Occurred()) SWIG_fail; | |
9937 | } | |
4f89f6a3 RD |
9938 | { |
9939 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9940 | } | |
d14a1e28 RD |
9941 | return resultobj; |
9942 | fail: | |
9943 | return NULL; | |
9944 | } | |
9945 | ||
9946 | ||
9947 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9948 | PyObject *resultobj; | |
9949 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9950 | int result; | |
9951 | PyObject * obj0 = 0 ; | |
9952 | char *kwnames[] = { | |
9953 | (char *) "self", NULL | |
9954 | }; | |
9955 | ||
9956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9959 | { |
9960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9961 | result = (int)(arg1)->GetNumberJoysticks(); | |
9962 | ||
9963 | wxPyEndAllowThreads(__tstate); | |
9964 | if (PyErr_Occurred()) SWIG_fail; | |
9965 | } | |
15afbcd0 | 9966 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9967 | return resultobj; |
9968 | fail: | |
9969 | return NULL; | |
9970 | } | |
9971 | ||
9972 | ||
9973 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9974 | PyObject *resultobj; | |
9975 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9976 | int result; | |
9977 | PyObject * obj0 = 0 ; | |
9978 | char *kwnames[] = { | |
9979 | (char *) "self", NULL | |
9980 | }; | |
9981 | ||
9982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9985 | { |
9986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9987 | result = (int)(arg1)->GetManufacturerId(); | |
9988 | ||
9989 | wxPyEndAllowThreads(__tstate); | |
9990 | if (PyErr_Occurred()) SWIG_fail; | |
9991 | } | |
15afbcd0 | 9992 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9993 | return resultobj; |
9994 | fail: | |
9995 | return NULL; | |
9996 | } | |
9997 | ||
9998 | ||
9999 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10000 | PyObject *resultobj; | |
10001 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10002 | int result; | |
10003 | PyObject * obj0 = 0 ; | |
10004 | char *kwnames[] = { | |
10005 | (char *) "self", NULL | |
10006 | }; | |
10007 | ||
10008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10011 | { |
10012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10013 | result = (int)(arg1)->GetProductId(); | |
10014 | ||
10015 | wxPyEndAllowThreads(__tstate); | |
10016 | if (PyErr_Occurred()) SWIG_fail; | |
10017 | } | |
15afbcd0 | 10018 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10019 | return resultobj; |
10020 | fail: | |
10021 | return NULL; | |
10022 | } | |
10023 | ||
10024 | ||
10025 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10026 | PyObject *resultobj; | |
10027 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10028 | wxString result; | |
10029 | PyObject * obj0 = 0 ; | |
10030 | char *kwnames[] = { | |
10031 | (char *) "self", NULL | |
10032 | }; | |
10033 | ||
10034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10037 | { |
10038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10039 | result = (arg1)->GetProductName(); | |
10040 | ||
10041 | wxPyEndAllowThreads(__tstate); | |
10042 | if (PyErr_Occurred()) SWIG_fail; | |
10043 | } | |
10044 | { | |
10045 | #if wxUSE_UNICODE | |
10046 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10047 | #else | |
10048 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10049 | #endif | |
10050 | } | |
10051 | return resultobj; | |
10052 | fail: | |
10053 | return NULL; | |
10054 | } | |
10055 | ||
10056 | ||
10057 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10058 | PyObject *resultobj; | |
10059 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10060 | int result; | |
10061 | PyObject * obj0 = 0 ; | |
10062 | char *kwnames[] = { | |
10063 | (char *) "self", NULL | |
10064 | }; | |
10065 | ||
10066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10069 | { |
10070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10071 | result = (int)(arg1)->GetXMin(); | |
10072 | ||
10073 | wxPyEndAllowThreads(__tstate); | |
10074 | if (PyErr_Occurred()) SWIG_fail; | |
10075 | } | |
15afbcd0 | 10076 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10077 | return resultobj; |
10078 | fail: | |
10079 | return NULL; | |
10080 | } | |
10081 | ||
10082 | ||
10083 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10084 | PyObject *resultobj; | |
10085 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10086 | int result; | |
10087 | PyObject * obj0 = 0 ; | |
10088 | char *kwnames[] = { | |
10089 | (char *) "self", NULL | |
10090 | }; | |
10091 | ||
10092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10095 | { |
10096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10097 | result = (int)(arg1)->GetYMin(); | |
10098 | ||
10099 | wxPyEndAllowThreads(__tstate); | |
10100 | if (PyErr_Occurred()) SWIG_fail; | |
10101 | } | |
15afbcd0 | 10102 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10103 | return resultobj; |
10104 | fail: | |
10105 | return NULL; | |
10106 | } | |
10107 | ||
10108 | ||
10109 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10110 | PyObject *resultobj; | |
10111 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10112 | int result; | |
10113 | PyObject * obj0 = 0 ; | |
10114 | char *kwnames[] = { | |
10115 | (char *) "self", NULL | |
10116 | }; | |
10117 | ||
10118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10121 | { |
10122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10123 | result = (int)(arg1)->GetZMin(); | |
10124 | ||
10125 | wxPyEndAllowThreads(__tstate); | |
10126 | if (PyErr_Occurred()) SWIG_fail; | |
10127 | } | |
15afbcd0 | 10128 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10129 | return resultobj; |
10130 | fail: | |
10131 | return NULL; | |
10132 | } | |
10133 | ||
10134 | ||
10135 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10136 | PyObject *resultobj; | |
10137 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10138 | int result; | |
10139 | PyObject * obj0 = 0 ; | |
10140 | char *kwnames[] = { | |
10141 | (char *) "self", NULL | |
10142 | }; | |
10143 | ||
10144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10147 | { |
10148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10149 | result = (int)(arg1)->GetXMax(); | |
10150 | ||
10151 | wxPyEndAllowThreads(__tstate); | |
10152 | if (PyErr_Occurred()) SWIG_fail; | |
10153 | } | |
15afbcd0 | 10154 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10155 | return resultobj; |
10156 | fail: | |
10157 | return NULL; | |
10158 | } | |
10159 | ||
10160 | ||
10161 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10162 | PyObject *resultobj; | |
10163 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10164 | int result; | |
10165 | PyObject * obj0 = 0 ; | |
10166 | char *kwnames[] = { | |
10167 | (char *) "self", NULL | |
10168 | }; | |
10169 | ||
10170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10173 | { |
10174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10175 | result = (int)(arg1)->GetYMax(); | |
10176 | ||
10177 | wxPyEndAllowThreads(__tstate); | |
10178 | if (PyErr_Occurred()) SWIG_fail; | |
10179 | } | |
15afbcd0 | 10180 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10181 | return resultobj; |
10182 | fail: | |
10183 | return NULL; | |
10184 | } | |
10185 | ||
10186 | ||
10187 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10188 | PyObject *resultobj; | |
10189 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10190 | int result; | |
10191 | PyObject * obj0 = 0 ; | |
10192 | char *kwnames[] = { | |
10193 | (char *) "self", NULL | |
10194 | }; | |
10195 | ||
10196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10199 | { |
10200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10201 | result = (int)(arg1)->GetZMax(); | |
10202 | ||
10203 | wxPyEndAllowThreads(__tstate); | |
10204 | if (PyErr_Occurred()) SWIG_fail; | |
10205 | } | |
15afbcd0 | 10206 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10207 | return resultobj; |
10208 | fail: | |
10209 | return NULL; | |
10210 | } | |
10211 | ||
10212 | ||
10213 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10214 | PyObject *resultobj; | |
10215 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10216 | int result; | |
10217 | PyObject * obj0 = 0 ; | |
10218 | char *kwnames[] = { | |
10219 | (char *) "self", NULL | |
10220 | }; | |
10221 | ||
10222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10225 | { |
10226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10227 | result = (int)(arg1)->GetNumberButtons(); | |
10228 | ||
10229 | wxPyEndAllowThreads(__tstate); | |
10230 | if (PyErr_Occurred()) SWIG_fail; | |
10231 | } | |
15afbcd0 | 10232 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10233 | return resultobj; |
10234 | fail: | |
10235 | return NULL; | |
10236 | } | |
10237 | ||
10238 | ||
10239 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10240 | PyObject *resultobj; | |
10241 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10242 | int result; | |
10243 | PyObject * obj0 = 0 ; | |
10244 | char *kwnames[] = { | |
10245 | (char *) "self", NULL | |
10246 | }; | |
10247 | ||
10248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10251 | { |
10252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10253 | result = (int)(arg1)->GetNumberAxes(); | |
10254 | ||
10255 | wxPyEndAllowThreads(__tstate); | |
10256 | if (PyErr_Occurred()) SWIG_fail; | |
10257 | } | |
15afbcd0 | 10258 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10259 | return resultobj; |
10260 | fail: | |
10261 | return NULL; | |
10262 | } | |
10263 | ||
10264 | ||
10265 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10266 | PyObject *resultobj; | |
10267 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10268 | int result; | |
10269 | PyObject * obj0 = 0 ; | |
10270 | char *kwnames[] = { | |
10271 | (char *) "self", NULL | |
10272 | }; | |
10273 | ||
10274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10277 | { |
10278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10279 | result = (int)(arg1)->GetMaxButtons(); | |
10280 | ||
10281 | wxPyEndAllowThreads(__tstate); | |
10282 | if (PyErr_Occurred()) SWIG_fail; | |
10283 | } | |
15afbcd0 | 10284 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10285 | return resultobj; |
10286 | fail: | |
10287 | return NULL; | |
10288 | } | |
10289 | ||
10290 | ||
10291 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10292 | PyObject *resultobj; | |
10293 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10294 | int result; | |
10295 | PyObject * obj0 = 0 ; | |
10296 | char *kwnames[] = { | |
10297 | (char *) "self", NULL | |
10298 | }; | |
10299 | ||
10300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10303 | { |
10304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10305 | result = (int)(arg1)->GetMaxAxes(); | |
10306 | ||
10307 | wxPyEndAllowThreads(__tstate); | |
10308 | if (PyErr_Occurred()) SWIG_fail; | |
10309 | } | |
15afbcd0 | 10310 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10311 | return resultobj; |
10312 | fail: | |
10313 | return NULL; | |
10314 | } | |
10315 | ||
10316 | ||
10317 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10318 | PyObject *resultobj; | |
10319 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10320 | int result; | |
10321 | PyObject * obj0 = 0 ; | |
10322 | char *kwnames[] = { | |
10323 | (char *) "self", NULL | |
10324 | }; | |
10325 | ||
10326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10329 | { |
10330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10331 | result = (int)(arg1)->GetPollingMin(); | |
10332 | ||
10333 | wxPyEndAllowThreads(__tstate); | |
10334 | if (PyErr_Occurred()) SWIG_fail; | |
10335 | } | |
15afbcd0 | 10336 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10337 | return resultobj; |
10338 | fail: | |
10339 | return NULL; | |
10340 | } | |
10341 | ||
10342 | ||
10343 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10344 | PyObject *resultobj; | |
10345 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10346 | int result; | |
10347 | PyObject * obj0 = 0 ; | |
10348 | char *kwnames[] = { | |
10349 | (char *) "self", NULL | |
10350 | }; | |
10351 | ||
10352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10355 | { |
10356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10357 | result = (int)(arg1)->GetPollingMax(); | |
10358 | ||
10359 | wxPyEndAllowThreads(__tstate); | |
10360 | if (PyErr_Occurred()) SWIG_fail; | |
10361 | } | |
15afbcd0 | 10362 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10363 | return resultobj; |
10364 | fail: | |
10365 | return NULL; | |
10366 | } | |
10367 | ||
10368 | ||
10369 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10370 | PyObject *resultobj; | |
10371 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10372 | int result; | |
10373 | PyObject * obj0 = 0 ; | |
10374 | char *kwnames[] = { | |
10375 | (char *) "self", NULL | |
10376 | }; | |
10377 | ||
10378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10381 | { |
10382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10383 | result = (int)(arg1)->GetRudderMin(); | |
10384 | ||
10385 | wxPyEndAllowThreads(__tstate); | |
10386 | if (PyErr_Occurred()) SWIG_fail; | |
10387 | } | |
15afbcd0 | 10388 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10389 | return resultobj; |
10390 | fail: | |
10391 | return NULL; | |
10392 | } | |
10393 | ||
10394 | ||
10395 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10396 | PyObject *resultobj; | |
10397 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10398 | int result; | |
10399 | PyObject * obj0 = 0 ; | |
10400 | char *kwnames[] = { | |
10401 | (char *) "self", NULL | |
10402 | }; | |
10403 | ||
10404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10407 | { |
10408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10409 | result = (int)(arg1)->GetRudderMax(); | |
10410 | ||
10411 | wxPyEndAllowThreads(__tstate); | |
10412 | if (PyErr_Occurred()) SWIG_fail; | |
10413 | } | |
15afbcd0 | 10414 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10415 | return resultobj; |
10416 | fail: | |
10417 | return NULL; | |
10418 | } | |
10419 | ||
10420 | ||
10421 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10422 | PyObject *resultobj; | |
10423 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10424 | int result; | |
10425 | PyObject * obj0 = 0 ; | |
10426 | char *kwnames[] = { | |
10427 | (char *) "self", NULL | |
10428 | }; | |
10429 | ||
10430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10433 | { |
10434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10435 | result = (int)(arg1)->GetUMin(); | |
10436 | ||
10437 | wxPyEndAllowThreads(__tstate); | |
10438 | if (PyErr_Occurred()) SWIG_fail; | |
10439 | } | |
15afbcd0 | 10440 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10441 | return resultobj; |
10442 | fail: | |
10443 | return NULL; | |
10444 | } | |
10445 | ||
10446 | ||
10447 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10448 | PyObject *resultobj; | |
10449 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10450 | int result; | |
10451 | PyObject * obj0 = 0 ; | |
10452 | char *kwnames[] = { | |
10453 | (char *) "self", NULL | |
10454 | }; | |
10455 | ||
10456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10459 | { |
10460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10461 | result = (int)(arg1)->GetUMax(); | |
10462 | ||
10463 | wxPyEndAllowThreads(__tstate); | |
10464 | if (PyErr_Occurred()) SWIG_fail; | |
10465 | } | |
15afbcd0 | 10466 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10467 | return resultobj; |
10468 | fail: | |
10469 | return NULL; | |
10470 | } | |
10471 | ||
10472 | ||
10473 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10474 | PyObject *resultobj; | |
10475 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10476 | int result; | |
10477 | PyObject * obj0 = 0 ; | |
10478 | char *kwnames[] = { | |
10479 | (char *) "self", NULL | |
10480 | }; | |
10481 | ||
10482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10485 | { |
10486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10487 | result = (int)(arg1)->GetVMin(); | |
10488 | ||
10489 | wxPyEndAllowThreads(__tstate); | |
10490 | if (PyErr_Occurred()) SWIG_fail; | |
10491 | } | |
15afbcd0 | 10492 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10493 | return resultobj; |
10494 | fail: | |
10495 | return NULL; | |
10496 | } | |
10497 | ||
10498 | ||
10499 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10500 | PyObject *resultobj; | |
10501 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10502 | int result; | |
10503 | PyObject * obj0 = 0 ; | |
10504 | char *kwnames[] = { | |
10505 | (char *) "self", NULL | |
10506 | }; | |
10507 | ||
10508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10511 | { |
10512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10513 | result = (int)(arg1)->GetVMax(); | |
10514 | ||
10515 | wxPyEndAllowThreads(__tstate); | |
10516 | if (PyErr_Occurred()) SWIG_fail; | |
10517 | } | |
15afbcd0 | 10518 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10519 | return resultobj; |
10520 | fail: | |
10521 | return NULL; | |
10522 | } | |
10523 | ||
10524 | ||
10525 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10526 | PyObject *resultobj; | |
10527 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10528 | bool result; | |
10529 | PyObject * obj0 = 0 ; | |
10530 | char *kwnames[] = { | |
10531 | (char *) "self", NULL | |
10532 | }; | |
10533 | ||
10534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10537 | { |
10538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10539 | result = (bool)(arg1)->HasRudder(); | |
10540 | ||
10541 | wxPyEndAllowThreads(__tstate); | |
10542 | if (PyErr_Occurred()) SWIG_fail; | |
10543 | } | |
4f89f6a3 RD |
10544 | { |
10545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10546 | } | |
d14a1e28 RD |
10547 | return resultobj; |
10548 | fail: | |
10549 | return NULL; | |
10550 | } | |
10551 | ||
10552 | ||
10553 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10554 | PyObject *resultobj; | |
10555 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10556 | bool result; | |
10557 | PyObject * obj0 = 0 ; | |
10558 | char *kwnames[] = { | |
10559 | (char *) "self", NULL | |
10560 | }; | |
10561 | ||
10562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10565 | { |
10566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10567 | result = (bool)(arg1)->HasZ(); | |
10568 | ||
10569 | wxPyEndAllowThreads(__tstate); | |
10570 | if (PyErr_Occurred()) SWIG_fail; | |
10571 | } | |
4f89f6a3 RD |
10572 | { |
10573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10574 | } | |
d14a1e28 RD |
10575 | return resultobj; |
10576 | fail: | |
10577 | return NULL; | |
10578 | } | |
10579 | ||
10580 | ||
10581 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10582 | PyObject *resultobj; | |
10583 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10584 | bool result; | |
10585 | PyObject * obj0 = 0 ; | |
10586 | char *kwnames[] = { | |
10587 | (char *) "self", NULL | |
10588 | }; | |
10589 | ||
10590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10593 | { |
10594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10595 | result = (bool)(arg1)->HasU(); | |
10596 | ||
10597 | wxPyEndAllowThreads(__tstate); | |
10598 | if (PyErr_Occurred()) SWIG_fail; | |
10599 | } | |
4f89f6a3 RD |
10600 | { |
10601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10602 | } | |
d14a1e28 RD |
10603 | return resultobj; |
10604 | fail: | |
10605 | return NULL; | |
10606 | } | |
10607 | ||
10608 | ||
10609 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10610 | PyObject *resultobj; | |
10611 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10612 | bool result; | |
10613 | PyObject * obj0 = 0 ; | |
10614 | char *kwnames[] = { | |
10615 | (char *) "self", NULL | |
10616 | }; | |
10617 | ||
10618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10621 | { |
10622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10623 | result = (bool)(arg1)->HasV(); | |
10624 | ||
10625 | wxPyEndAllowThreads(__tstate); | |
10626 | if (PyErr_Occurred()) SWIG_fail; | |
10627 | } | |
4f89f6a3 RD |
10628 | { |
10629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10630 | } | |
d14a1e28 RD |
10631 | return resultobj; |
10632 | fail: | |
10633 | return NULL; | |
10634 | } | |
10635 | ||
10636 | ||
10637 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10638 | PyObject *resultobj; | |
10639 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10640 | bool result; | |
10641 | PyObject * obj0 = 0 ; | |
10642 | char *kwnames[] = { | |
10643 | (char *) "self", NULL | |
10644 | }; | |
10645 | ||
10646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10649 | { |
10650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10651 | result = (bool)(arg1)->HasPOV(); | |
10652 | ||
10653 | wxPyEndAllowThreads(__tstate); | |
10654 | if (PyErr_Occurred()) SWIG_fail; | |
10655 | } | |
4f89f6a3 RD |
10656 | { |
10657 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10658 | } | |
d14a1e28 RD |
10659 | return resultobj; |
10660 | fail: | |
10661 | return NULL; | |
10662 | } | |
10663 | ||
10664 | ||
10665 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10666 | PyObject *resultobj; | |
10667 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10668 | bool result; | |
10669 | PyObject * obj0 = 0 ; | |
10670 | char *kwnames[] = { | |
10671 | (char *) "self", NULL | |
10672 | }; | |
10673 | ||
10674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10677 | { |
10678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10679 | result = (bool)(arg1)->HasPOV4Dir(); | |
10680 | ||
10681 | wxPyEndAllowThreads(__tstate); | |
10682 | if (PyErr_Occurred()) SWIG_fail; | |
10683 | } | |
4f89f6a3 RD |
10684 | { |
10685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10686 | } | |
d14a1e28 RD |
10687 | return resultobj; |
10688 | fail: | |
10689 | return NULL; | |
10690 | } | |
10691 | ||
10692 | ||
10693 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10694 | PyObject *resultobj; | |
10695 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10696 | bool result; | |
10697 | PyObject * obj0 = 0 ; | |
10698 | char *kwnames[] = { | |
10699 | (char *) "self", NULL | |
10700 | }; | |
10701 | ||
10702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10705 | { |
10706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10707 | result = (bool)(arg1)->HasPOVCTS(); | |
10708 | ||
10709 | wxPyEndAllowThreads(__tstate); | |
10710 | if (PyErr_Occurred()) SWIG_fail; | |
10711 | } | |
4f89f6a3 RD |
10712 | { |
10713 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10714 | } | |
d14a1e28 RD |
10715 | return resultobj; |
10716 | fail: | |
10717 | return NULL; | |
10718 | } | |
10719 | ||
10720 | ||
10721 | static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10722 | PyObject *resultobj; | |
10723 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10724 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10725 | int arg3 = (int) 0 ; | |
10726 | bool result; | |
10727 | PyObject * obj0 = 0 ; | |
10728 | PyObject * obj1 = 0 ; | |
994141e6 | 10729 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10730 | char *kwnames[] = { |
10731 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
10732 | }; | |
10733 | ||
994141e6 | 10734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10737 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10739 | if (obj2) { |
15afbcd0 RD |
10740 | arg3 = (int) SWIG_AsInt(obj2); |
10741 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10742 | } |
d14a1e28 RD |
10743 | { |
10744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10745 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
10746 | ||
10747 | wxPyEndAllowThreads(__tstate); | |
10748 | if (PyErr_Occurred()) SWIG_fail; | |
10749 | } | |
4f89f6a3 RD |
10750 | { |
10751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10752 | } | |
d14a1e28 RD |
10753 | return resultobj; |
10754 | fail: | |
10755 | return NULL; | |
10756 | } | |
10757 | ||
10758 | ||
10759 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10760 | PyObject *resultobj; | |
10761 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10762 | bool result; | |
10763 | PyObject * obj0 = 0 ; | |
10764 | char *kwnames[] = { | |
10765 | (char *) "self", NULL | |
10766 | }; | |
10767 | ||
10768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10771 | { |
10772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10773 | result = (bool)(arg1)->ReleaseCapture(); | |
10774 | ||
10775 | wxPyEndAllowThreads(__tstate); | |
10776 | if (PyErr_Occurred()) SWIG_fail; | |
10777 | } | |
4f89f6a3 RD |
10778 | { |
10779 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10780 | } | |
d14a1e28 RD |
10781 | return resultobj; |
10782 | fail: | |
10783 | return NULL; | |
10784 | } | |
10785 | ||
10786 | ||
10787 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
10788 | PyObject *obj; | |
10789 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10790 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
10791 | Py_INCREF(obj); | |
10792 | return Py_BuildValue((char *)""); | |
10793 | } | |
10794 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10795 | PyObject *resultobj; | |
10796 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10797 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10798 | PyObject * obj0 = 0 ; | |
10799 | PyObject * obj1 = 0 ; | |
10800 | char *kwnames[] = { | |
10801 | (char *) "self",(char *) "m_pos", NULL | |
10802 | }; | |
10803 | ||
10804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10807 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
10808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10809 | if (arg1) (arg1)->m_pos = *arg2; |
10810 | ||
10811 | Py_INCREF(Py_None); resultobj = Py_None; | |
10812 | return resultobj; | |
10813 | fail: | |
10814 | return NULL; | |
10815 | } | |
10816 | ||
10817 | ||
10818 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10819 | PyObject *resultobj; | |
10820 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10821 | wxPoint *result; | |
10822 | PyObject * obj0 = 0 ; | |
10823 | char *kwnames[] = { | |
10824 | (char *) "self", NULL | |
10825 | }; | |
10826 | ||
10827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10830 | result = (wxPoint *)& ((arg1)->m_pos); |
10831 | ||
15afbcd0 | 10832 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
10833 | return resultobj; |
10834 | fail: | |
10835 | return NULL; | |
10836 | } | |
10837 | ||
10838 | ||
10839 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10840 | PyObject *resultobj; | |
10841 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10842 | int arg2 ; | |
10843 | PyObject * obj0 = 0 ; | |
994141e6 | 10844 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10845 | char *kwnames[] = { |
10846 | (char *) "self",(char *) "m_zPosition", NULL | |
10847 | }; | |
10848 | ||
994141e6 | 10849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10852 | arg2 = (int) SWIG_AsInt(obj1); | |
10853 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10854 | if (arg1) (arg1)->m_zPosition = arg2; |
10855 | ||
10856 | Py_INCREF(Py_None); resultobj = Py_None; | |
10857 | return resultobj; | |
10858 | fail: | |
10859 | return NULL; | |
10860 | } | |
10861 | ||
10862 | ||
10863 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10864 | PyObject *resultobj; | |
10865 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10866 | int result; | |
10867 | PyObject * obj0 = 0 ; | |
10868 | char *kwnames[] = { | |
10869 | (char *) "self", NULL | |
10870 | }; | |
10871 | ||
10872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10875 | result = (int) ((arg1)->m_zPosition); |
10876 | ||
15afbcd0 | 10877 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10878 | return resultobj; |
10879 | fail: | |
10880 | return NULL; | |
10881 | } | |
10882 | ||
10883 | ||
10884 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10885 | PyObject *resultobj; | |
10886 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10887 | int arg2 ; | |
10888 | PyObject * obj0 = 0 ; | |
994141e6 | 10889 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10890 | char *kwnames[] = { |
10891 | (char *) "self",(char *) "m_buttonChange", NULL | |
10892 | }; | |
10893 | ||
994141e6 | 10894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10897 | arg2 = (int) SWIG_AsInt(obj1); | |
10898 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10899 | if (arg1) (arg1)->m_buttonChange = arg2; |
10900 | ||
10901 | Py_INCREF(Py_None); resultobj = Py_None; | |
10902 | return resultobj; | |
10903 | fail: | |
10904 | return NULL; | |
10905 | } | |
10906 | ||
10907 | ||
10908 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10909 | PyObject *resultobj; | |
10910 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10911 | int result; | |
10912 | PyObject * obj0 = 0 ; | |
10913 | char *kwnames[] = { | |
10914 | (char *) "self", NULL | |
10915 | }; | |
10916 | ||
10917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10920 | result = (int) ((arg1)->m_buttonChange); |
10921 | ||
15afbcd0 | 10922 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10923 | return resultobj; |
10924 | fail: | |
10925 | return NULL; | |
10926 | } | |
10927 | ||
10928 | ||
10929 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10930 | PyObject *resultobj; | |
10931 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10932 | int arg2 ; | |
10933 | PyObject * obj0 = 0 ; | |
994141e6 | 10934 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10935 | char *kwnames[] = { |
10936 | (char *) "self",(char *) "m_buttonState", NULL | |
10937 | }; | |
10938 | ||
994141e6 | 10939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10942 | arg2 = (int) SWIG_AsInt(obj1); | |
10943 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10944 | if (arg1) (arg1)->m_buttonState = arg2; |
10945 | ||
10946 | Py_INCREF(Py_None); resultobj = Py_None; | |
10947 | return resultobj; | |
10948 | fail: | |
10949 | return NULL; | |
10950 | } | |
10951 | ||
10952 | ||
10953 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10954 | PyObject *resultobj; | |
10955 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10956 | int result; | |
10957 | PyObject * obj0 = 0 ; | |
10958 | char *kwnames[] = { | |
10959 | (char *) "self", NULL | |
10960 | }; | |
10961 | ||
10962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10965 | result = (int) ((arg1)->m_buttonState); |
10966 | ||
15afbcd0 | 10967 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10968 | return resultobj; |
10969 | fail: | |
10970 | return NULL; | |
10971 | } | |
10972 | ||
10973 | ||
10974 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10975 | PyObject *resultobj; | |
10976 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10977 | int arg2 ; | |
10978 | PyObject * obj0 = 0 ; | |
994141e6 | 10979 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10980 | char *kwnames[] = { |
10981 | (char *) "self",(char *) "m_joyStick", NULL | |
10982 | }; | |
10983 | ||
994141e6 | 10984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10987 | arg2 = (int) SWIG_AsInt(obj1); | |
10988 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10989 | if (arg1) (arg1)->m_joyStick = arg2; |
10990 | ||
10991 | Py_INCREF(Py_None); resultobj = Py_None; | |
10992 | return resultobj; | |
10993 | fail: | |
10994 | return NULL; | |
10995 | } | |
10996 | ||
10997 | ||
10998 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10999 | PyObject *resultobj; | |
11000 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11001 | int result; | |
11002 | PyObject * obj0 = 0 ; | |
11003 | char *kwnames[] = { | |
11004 | (char *) "self", NULL | |
11005 | }; | |
11006 | ||
11007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11010 | result = (int) ((arg1)->m_joyStick); |
11011 | ||
15afbcd0 | 11012 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11013 | return resultobj; |
11014 | fail: | |
11015 | return NULL; | |
11016 | } | |
11017 | ||
11018 | ||
11019 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11020 | PyObject *resultobj; | |
11021 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11022 | int arg2 = (int) 0 ; | |
11023 | int arg3 = (int) wxJOYSTICK1 ; | |
11024 | int arg4 = (int) 0 ; | |
11025 | wxJoystickEvent *result; | |
994141e6 RD |
11026 | PyObject * obj0 = 0 ; |
11027 | PyObject * obj1 = 0 ; | |
11028 | PyObject * obj2 = 0 ; | |
11029 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11030 | char *kwnames[] = { |
11031 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
11032 | }; | |
11033 | ||
994141e6 RD |
11034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
11035 | if (obj0) { | |
15afbcd0 RD |
11036 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
11037 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11038 | } |
11039 | if (obj1) { | |
15afbcd0 RD |
11040 | arg2 = (int) SWIG_AsInt(obj1); |
11041 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11042 | } |
11043 | if (obj2) { | |
15afbcd0 RD |
11044 | arg3 = (int) SWIG_AsInt(obj2); |
11045 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11046 | } |
11047 | if (obj3) { | |
15afbcd0 RD |
11048 | arg4 = (int) SWIG_AsInt(obj3); |
11049 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11050 | } |
d14a1e28 RD |
11051 | { |
11052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11053 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
11054 | ||
11055 | wxPyEndAllowThreads(__tstate); | |
11056 | if (PyErr_Occurred()) SWIG_fail; | |
11057 | } | |
15afbcd0 | 11058 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); |
d14a1e28 RD |
11059 | return resultobj; |
11060 | fail: | |
11061 | return NULL; | |
11062 | } | |
11063 | ||
11064 | ||
11065 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11066 | PyObject *resultobj; | |
11067 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11068 | wxPoint result; | |
11069 | PyObject * obj0 = 0 ; | |
11070 | char *kwnames[] = { | |
11071 | (char *) "self", NULL | |
11072 | }; | |
11073 | ||
11074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11077 | { |
11078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11079 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
11080 | ||
11081 | wxPyEndAllowThreads(__tstate); | |
11082 | if (PyErr_Occurred()) SWIG_fail; | |
11083 | } | |
11084 | { | |
11085 | wxPoint * resultptr; | |
11086 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 11087 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
11088 | } |
11089 | return resultobj; | |
11090 | fail: | |
11091 | return NULL; | |
11092 | } | |
11093 | ||
11094 | ||
11095 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11096 | PyObject *resultobj; | |
11097 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11098 | int result; | |
11099 | PyObject * obj0 = 0 ; | |
11100 | char *kwnames[] = { | |
11101 | (char *) "self", NULL | |
11102 | }; | |
11103 | ||
11104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11107 | { |
11108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11109 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
11110 | ||
11111 | wxPyEndAllowThreads(__tstate); | |
11112 | if (PyErr_Occurred()) SWIG_fail; | |
11113 | } | |
15afbcd0 | 11114 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11115 | return resultobj; |
11116 | fail: | |
11117 | return NULL; | |
11118 | } | |
11119 | ||
11120 | ||
11121 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11122 | PyObject *resultobj; | |
11123 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11124 | int result; | |
11125 | PyObject * obj0 = 0 ; | |
11126 | char *kwnames[] = { | |
11127 | (char *) "self", NULL | |
11128 | }; | |
11129 | ||
11130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11133 | { |
11134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11135 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
11136 | ||
11137 | wxPyEndAllowThreads(__tstate); | |
11138 | if (PyErr_Occurred()) SWIG_fail; | |
11139 | } | |
15afbcd0 | 11140 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11141 | return resultobj; |
11142 | fail: | |
11143 | return NULL; | |
11144 | } | |
11145 | ||
11146 | ||
11147 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11148 | PyObject *resultobj; | |
11149 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11150 | int result; | |
11151 | PyObject * obj0 = 0 ; | |
11152 | char *kwnames[] = { | |
11153 | (char *) "self", NULL | |
11154 | }; | |
11155 | ||
11156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11159 | { |
11160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11161 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
11162 | ||
11163 | wxPyEndAllowThreads(__tstate); | |
11164 | if (PyErr_Occurred()) SWIG_fail; | |
11165 | } | |
15afbcd0 | 11166 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11167 | return resultobj; |
11168 | fail: | |
11169 | return NULL; | |
11170 | } | |
11171 | ||
11172 | ||
11173 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11174 | PyObject *resultobj; | |
11175 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11176 | int result; | |
11177 | PyObject * obj0 = 0 ; | |
11178 | char *kwnames[] = { | |
11179 | (char *) "self", NULL | |
11180 | }; | |
11181 | ||
11182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11185 | { |
11186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11187 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
11188 | ||
11189 | wxPyEndAllowThreads(__tstate); | |
11190 | if (PyErr_Occurred()) SWIG_fail; | |
11191 | } | |
15afbcd0 | 11192 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11193 | return resultobj; |
11194 | fail: | |
11195 | return NULL; | |
11196 | } | |
11197 | ||
11198 | ||
11199 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11200 | PyObject *resultobj; | |
11201 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11202 | int arg2 ; | |
11203 | PyObject * obj0 = 0 ; | |
994141e6 | 11204 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11205 | char *kwnames[] = { |
11206 | (char *) "self",(char *) "stick", NULL | |
11207 | }; | |
11208 | ||
994141e6 | 11209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11212 | arg2 = (int) SWIG_AsInt(obj1); | |
11213 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11214 | { |
11215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11216 | (arg1)->SetJoystick(arg2); | |
11217 | ||
11218 | wxPyEndAllowThreads(__tstate); | |
11219 | if (PyErr_Occurred()) SWIG_fail; | |
11220 | } | |
11221 | Py_INCREF(Py_None); resultobj = Py_None; | |
11222 | return resultobj; | |
11223 | fail: | |
11224 | return NULL; | |
11225 | } | |
11226 | ||
11227 | ||
11228 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11229 | PyObject *resultobj; | |
11230 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11231 | int arg2 ; | |
11232 | PyObject * obj0 = 0 ; | |
994141e6 | 11233 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11234 | char *kwnames[] = { |
11235 | (char *) "self",(char *) "state", NULL | |
11236 | }; | |
11237 | ||
994141e6 | 11238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11241 | arg2 = (int) SWIG_AsInt(obj1); | |
11242 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11243 | { |
11244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11245 | (arg1)->SetButtonState(arg2); | |
11246 | ||
11247 | wxPyEndAllowThreads(__tstate); | |
11248 | if (PyErr_Occurred()) SWIG_fail; | |
11249 | } | |
11250 | Py_INCREF(Py_None); resultobj = Py_None; | |
11251 | return resultobj; | |
11252 | fail: | |
11253 | return NULL; | |
11254 | } | |
11255 | ||
11256 | ||
11257 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11258 | PyObject *resultobj; | |
11259 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11260 | int arg2 ; | |
11261 | PyObject * obj0 = 0 ; | |
994141e6 | 11262 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11263 | char *kwnames[] = { |
11264 | (char *) "self",(char *) "change", NULL | |
11265 | }; | |
11266 | ||
994141e6 | 11267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11270 | arg2 = (int) SWIG_AsInt(obj1); | |
11271 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11272 | { |
11273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11274 | (arg1)->SetButtonChange(arg2); | |
11275 | ||
11276 | wxPyEndAllowThreads(__tstate); | |
11277 | if (PyErr_Occurred()) SWIG_fail; | |
11278 | } | |
11279 | Py_INCREF(Py_None); resultobj = Py_None; | |
11280 | return resultobj; | |
11281 | fail: | |
11282 | return NULL; | |
11283 | } | |
11284 | ||
11285 | ||
11286 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11287 | PyObject *resultobj; | |
11288 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11289 | wxPoint *arg2 = 0 ; | |
11290 | wxPoint temp2 ; | |
11291 | PyObject * obj0 = 0 ; | |
11292 | PyObject * obj1 = 0 ; | |
11293 | char *kwnames[] = { | |
11294 | (char *) "self",(char *) "pos", NULL | |
11295 | }; | |
11296 | ||
11297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11300 | { |
11301 | arg2 = &temp2; | |
11302 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11303 | } | |
11304 | { | |
11305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11306 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
11307 | ||
11308 | wxPyEndAllowThreads(__tstate); | |
11309 | if (PyErr_Occurred()) SWIG_fail; | |
11310 | } | |
11311 | Py_INCREF(Py_None); resultobj = Py_None; | |
11312 | return resultobj; | |
11313 | fail: | |
11314 | return NULL; | |
11315 | } | |
11316 | ||
11317 | ||
11318 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11319 | PyObject *resultobj; | |
11320 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11321 | int arg2 ; | |
11322 | PyObject * obj0 = 0 ; | |
994141e6 | 11323 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11324 | char *kwnames[] = { |
11325 | (char *) "self",(char *) "zPos", NULL | |
11326 | }; | |
11327 | ||
994141e6 | 11328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11331 | arg2 = (int) SWIG_AsInt(obj1); | |
11332 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11333 | { |
11334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11335 | (arg1)->SetZPosition(arg2); | |
11336 | ||
11337 | wxPyEndAllowThreads(__tstate); | |
11338 | if (PyErr_Occurred()) SWIG_fail; | |
11339 | } | |
11340 | Py_INCREF(Py_None); resultobj = Py_None; | |
11341 | return resultobj; | |
11342 | fail: | |
11343 | return NULL; | |
11344 | } | |
11345 | ||
11346 | ||
11347 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11348 | PyObject *resultobj; | |
11349 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11350 | bool result; | |
11351 | PyObject * obj0 = 0 ; | |
11352 | char *kwnames[] = { | |
11353 | (char *) "self", NULL | |
11354 | }; | |
11355 | ||
11356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11359 | { |
11360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11361 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
11362 | ||
11363 | wxPyEndAllowThreads(__tstate); | |
11364 | if (PyErr_Occurred()) SWIG_fail; | |
11365 | } | |
4f89f6a3 RD |
11366 | { |
11367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11368 | } | |
d14a1e28 RD |
11369 | return resultobj; |
11370 | fail: | |
11371 | return NULL; | |
11372 | } | |
11373 | ||
11374 | ||
11375 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11376 | PyObject *resultobj; | |
11377 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11378 | bool result; | |
11379 | PyObject * obj0 = 0 ; | |
11380 | char *kwnames[] = { | |
11381 | (char *) "self", NULL | |
11382 | }; | |
11383 | ||
11384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11387 | { |
11388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11389 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
11390 | ||
11391 | wxPyEndAllowThreads(__tstate); | |
11392 | if (PyErr_Occurred()) SWIG_fail; | |
11393 | } | |
4f89f6a3 RD |
11394 | { |
11395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11396 | } | |
d14a1e28 RD |
11397 | return resultobj; |
11398 | fail: | |
11399 | return NULL; | |
11400 | } | |
11401 | ||
11402 | ||
11403 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11404 | PyObject *resultobj; | |
11405 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11406 | bool result; | |
11407 | PyObject * obj0 = 0 ; | |
11408 | char *kwnames[] = { | |
11409 | (char *) "self", NULL | |
11410 | }; | |
11411 | ||
11412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11415 | { |
11416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11417 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
11418 | ||
11419 | wxPyEndAllowThreads(__tstate); | |
11420 | if (PyErr_Occurred()) SWIG_fail; | |
11421 | } | |
4f89f6a3 RD |
11422 | { |
11423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11424 | } | |
d14a1e28 RD |
11425 | return resultobj; |
11426 | fail: | |
11427 | return NULL; | |
11428 | } | |
11429 | ||
11430 | ||
11431 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11432 | PyObject *resultobj; | |
11433 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11434 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11435 | bool result; | |
11436 | PyObject * obj0 = 0 ; | |
994141e6 | 11437 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11438 | char *kwnames[] = { |
11439 | (char *) "self",(char *) "but", NULL | |
11440 | }; | |
11441 | ||
994141e6 | 11442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11445 | if (obj1) { |
15afbcd0 RD |
11446 | arg2 = (int) SWIG_AsInt(obj1); |
11447 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11448 | } |
d14a1e28 RD |
11449 | { |
11450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11451 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11452 | ||
11453 | wxPyEndAllowThreads(__tstate); | |
11454 | if (PyErr_Occurred()) SWIG_fail; | |
11455 | } | |
4f89f6a3 RD |
11456 | { |
11457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11458 | } | |
d14a1e28 RD |
11459 | return resultobj; |
11460 | fail: | |
11461 | return NULL; | |
11462 | } | |
11463 | ||
11464 | ||
11465 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11466 | PyObject *resultobj; | |
11467 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11468 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11469 | bool result; | |
11470 | PyObject * obj0 = 0 ; | |
994141e6 | 11471 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11472 | char *kwnames[] = { |
11473 | (char *) "self",(char *) "but", NULL | |
11474 | }; | |
11475 | ||
994141e6 | 11476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11479 | if (obj1) { |
15afbcd0 RD |
11480 | arg2 = (int) SWIG_AsInt(obj1); |
11481 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11482 | } |
d14a1e28 RD |
11483 | { |
11484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11485 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
11486 | ||
11487 | wxPyEndAllowThreads(__tstate); | |
11488 | if (PyErr_Occurred()) SWIG_fail; | |
11489 | } | |
4f89f6a3 RD |
11490 | { |
11491 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11492 | } | |
d14a1e28 RD |
11493 | return resultobj; |
11494 | fail: | |
11495 | return NULL; | |
11496 | } | |
11497 | ||
11498 | ||
11499 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11500 | PyObject *resultobj; | |
11501 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11502 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11503 | bool result; | |
11504 | PyObject * obj0 = 0 ; | |
994141e6 | 11505 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11506 | char *kwnames[] = { |
11507 | (char *) "self",(char *) "but", NULL | |
11508 | }; | |
11509 | ||
994141e6 | 11510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11513 | if (obj1) { |
15afbcd0 RD |
11514 | arg2 = (int) SWIG_AsInt(obj1); |
11515 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11516 | } |
d14a1e28 RD |
11517 | { |
11518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11519 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
11520 | ||
11521 | wxPyEndAllowThreads(__tstate); | |
11522 | if (PyErr_Occurred()) SWIG_fail; | |
11523 | } | |
4f89f6a3 RD |
11524 | { |
11525 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11526 | } | |
d14a1e28 RD |
11527 | return resultobj; |
11528 | fail: | |
11529 | return NULL; | |
11530 | } | |
11531 | ||
11532 | ||
11533 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
11534 | PyObject *obj; | |
11535 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11536 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
11537 | Py_INCREF(obj); | |
11538 | return Py_BuildValue((char *)""); | |
11539 | } | |
36cadbf7 | 11540 | static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11541 | PyObject *resultobj; |
36cadbf7 RD |
11542 | wxString const &arg1_defvalue = wxPyEmptyString ; |
11543 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
4d5c3d91 | 11544 | wxSound *result; |
e811c8ce | 11545 | bool temp1 = False ; |
d14a1e28 | 11546 | PyObject * obj0 = 0 ; |
36cadbf7 RD |
11547 | char *kwnames[] = { |
11548 | (char *) "fileName", NULL | |
11549 | }; | |
d14a1e28 | 11550 | |
36cadbf7 RD |
11551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail; |
11552 | if (obj0) { | |
11553 | { | |
11554 | arg1 = wxString_in_helper(obj0); | |
11555 | if (arg1 == NULL) SWIG_fail; | |
11556 | temp1 = True; | |
11557 | } | |
d14a1e28 RD |
11558 | } |
11559 | { | |
11560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36cadbf7 | 11561 | result = (wxSound *)new_wxSound((wxString const &)*arg1); |
d14a1e28 RD |
11562 | |
11563 | wxPyEndAllowThreads(__tstate); | |
11564 | if (PyErr_Occurred()) SWIG_fail; | |
11565 | } | |
15afbcd0 | 11566 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
11567 | { |
11568 | if (temp1) | |
11569 | delete arg1; | |
11570 | } | |
11571 | return resultobj; | |
11572 | fail: | |
11573 | { | |
11574 | if (temp1) | |
11575 | delete arg1; | |
11576 | } | |
11577 | return NULL; | |
11578 | } | |
11579 | ||
11580 | ||
36cadbf7 | 11581 | static PyObject *_wrap_new_SoundFromData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11582 | PyObject *resultobj; |
36cadbf7 | 11583 | PyObject *arg1 = (PyObject *) 0 ; |
4d5c3d91 | 11584 | wxSound *result; |
d14a1e28 | 11585 | PyObject * obj0 = 0 ; |
36cadbf7 RD |
11586 | char *kwnames[] = { |
11587 | (char *) "data", NULL | |
11588 | }; | |
d14a1e28 | 11589 | |
36cadbf7 RD |
11590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail; |
11591 | arg1 = obj0; | |
d14a1e28 RD |
11592 | { |
11593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36cadbf7 | 11594 | result = (wxSound *)new_wxSound(arg1); |
d14a1e28 RD |
11595 | |
11596 | wxPyEndAllowThreads(__tstate); | |
11597 | if (PyErr_Occurred()) SWIG_fail; | |
11598 | } | |
15afbcd0 | 11599 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
11600 | return resultobj; |
11601 | fail: | |
4d5c3d91 RD |
11602 | return NULL; |
11603 | } | |
11604 | ||
11605 | ||
4d5c3d91 | 11606 | static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11607 | PyObject *resultobj; |
4d5c3d91 | 11608 | wxSound *arg1 = (wxSound *) 0 ; |
d14a1e28 RD |
11609 | PyObject * obj0 = 0 ; |
11610 | char *kwnames[] = { | |
11611 | (char *) "self", NULL | |
11612 | }; | |
11613 | ||
4d5c3d91 | 11614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
11615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11617 | { |
11618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11619 | delete arg1; | |
11620 | ||
11621 | wxPyEndAllowThreads(__tstate); | |
11622 | if (PyErr_Occurred()) SWIG_fail; | |
11623 | } | |
11624 | Py_INCREF(Py_None); resultobj = Py_None; | |
11625 | return resultobj; | |
11626 | fail: | |
11627 | return NULL; | |
11628 | } | |
11629 | ||
11630 | ||
36cadbf7 | 11631 | static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11632 | PyObject *resultobj; |
4d5c3d91 RD |
11633 | wxSound *arg1 = (wxSound *) 0 ; |
11634 | wxString *arg2 = 0 ; | |
d14a1e28 | 11635 | bool result; |
4d5c3d91 | 11636 | bool temp2 = False ; |
d14a1e28 | 11637 | PyObject * obj0 = 0 ; |
4d5c3d91 | 11638 | PyObject * obj1 = 0 ; |
36cadbf7 RD |
11639 | char *kwnames[] = { |
11640 | (char *) "self",(char *) "fileName", NULL | |
11641 | }; | |
d14a1e28 | 11642 | |
36cadbf7 | 11643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4d5c3d91 RD |
11646 | { |
11647 | arg2 = wxString_in_helper(obj1); | |
11648 | if (arg2 == NULL) SWIG_fail; | |
11649 | temp2 = True; | |
11650 | } | |
d14a1e28 RD |
11651 | { |
11652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36cadbf7 | 11653 | result = (bool)(arg1)->Create((wxString const &)*arg2); |
d14a1e28 RD |
11654 | |
11655 | wxPyEndAllowThreads(__tstate); | |
11656 | if (PyErr_Occurred()) SWIG_fail; | |
11657 | } | |
4f89f6a3 RD |
11658 | { |
11659 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11660 | } | |
4d5c3d91 RD |
11661 | { |
11662 | if (temp2) | |
11663 | delete arg2; | |
11664 | } | |
d14a1e28 RD |
11665 | return resultobj; |
11666 | fail: | |
4d5c3d91 RD |
11667 | { |
11668 | if (temp2) | |
11669 | delete arg2; | |
11670 | } | |
d14a1e28 RD |
11671 | return NULL; |
11672 | } | |
11673 | ||
11674 | ||
36cadbf7 | 11675 | static PyObject *_wrap_Sound_CreateFromData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11676 | PyObject *resultobj; |
4d5c3d91 | 11677 | wxSound *arg1 = (wxSound *) 0 ; |
36cadbf7 | 11678 | PyObject *arg2 = (PyObject *) 0 ; |
d14a1e28 RD |
11679 | bool result; |
11680 | PyObject * obj0 = 0 ; | |
11681 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
11682 | char *kwnames[] = { |
11683 | (char *) "self",(char *) "data", NULL | |
11684 | }; | |
4d5c3d91 | 11685 | |
36cadbf7 | 11686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36cadbf7 | 11689 | arg2 = obj1; |
4d5c3d91 RD |
11690 | { |
11691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36cadbf7 | 11692 | result = (bool)wxSound_CreateFromData(arg1,arg2); |
4d5c3d91 RD |
11693 | |
11694 | wxPyEndAllowThreads(__tstate); | |
11695 | if (PyErr_Occurred()) SWIG_fail; | |
11696 | } | |
4f89f6a3 RD |
11697 | { |
11698 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11699 | } | |
4d5c3d91 RD |
11700 | return resultobj; |
11701 | fail: | |
11702 | return NULL; | |
11703 | } | |
11704 | ||
11705 | ||
4d5c3d91 RD |
11706 | static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
11707 | PyObject *resultobj; | |
11708 | wxSound *arg1 = (wxSound *) 0 ; | |
11709 | bool result; | |
11710 | PyObject * obj0 = 0 ; | |
d14a1e28 | 11711 | char *kwnames[] = { |
4d5c3d91 | 11712 | (char *) "self", NULL |
d14a1e28 RD |
11713 | }; |
11714 | ||
4d5c3d91 | 11715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
11716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4d5c3d91 RD |
11718 | { |
11719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11720 | result = (bool)(arg1)->IsOk(); | |
11721 | ||
11722 | wxPyEndAllowThreads(__tstate); | |
11723 | if (PyErr_Occurred()) SWIG_fail; | |
11724 | } | |
4f89f6a3 RD |
11725 | { |
11726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11727 | } | |
4d5c3d91 RD |
11728 | return resultobj; |
11729 | fail: | |
11730 | return NULL; | |
11731 | } | |
11732 | ||
11733 | ||
36cadbf7 | 11734 | static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args, PyObject *kwargs) { |
4d5c3d91 RD |
11735 | PyObject *resultobj; |
11736 | wxSound *arg1 = (wxSound *) 0 ; | |
11737 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11738 | bool result; | |
11739 | PyObject * obj0 = 0 ; | |
11740 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
11741 | char *kwnames[] = { |
11742 | (char *) "self",(char *) "flags", NULL | |
11743 | }; | |
4d5c3d91 | 11744 | |
36cadbf7 | 11745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11748 | if (obj1) { |
15afbcd0 RD |
11749 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); |
11750 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11751 | } |
4d5c3d91 RD |
11752 | { |
11753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11754 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
11755 | ||
11756 | wxPyEndAllowThreads(__tstate); | |
11757 | if (PyErr_Occurred()) SWIG_fail; | |
11758 | } | |
4f89f6a3 RD |
11759 | { |
11760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11761 | } | |
4d5c3d91 RD |
11762 | return resultobj; |
11763 | fail: | |
11764 | return NULL; | |
11765 | } | |
11766 | ||
11767 | ||
36cadbf7 | 11768 | static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args, PyObject *kwargs) { |
4d5c3d91 RD |
11769 | PyObject *resultobj; |
11770 | wxString *arg1 = 0 ; | |
11771 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11772 | bool result; | |
11773 | bool temp1 = False ; | |
11774 | PyObject * obj0 = 0 ; | |
11775 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
11776 | char *kwnames[] = { |
11777 | (char *) "filename",(char *) "flags", NULL | |
11778 | }; | |
4d5c3d91 | 11779 | |
36cadbf7 | 11780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail; |
4d5c3d91 RD |
11781 | { |
11782 | arg1 = wxString_in_helper(obj0); | |
11783 | if (arg1 == NULL) SWIG_fail; | |
11784 | temp1 = True; | |
11785 | } | |
11786 | if (obj1) { | |
15afbcd0 RD |
11787 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); |
11788 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11789 | } |
11790 | { | |
11791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 11792 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); |
d14a1e28 RD |
11793 | |
11794 | wxPyEndAllowThreads(__tstate); | |
11795 | if (PyErr_Occurred()) SWIG_fail; | |
11796 | } | |
4f89f6a3 RD |
11797 | { |
11798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11799 | } | |
4d5c3d91 RD |
11800 | { |
11801 | if (temp1) | |
11802 | delete arg1; | |
11803 | } | |
d14a1e28 RD |
11804 | return resultobj; |
11805 | fail: | |
4d5c3d91 RD |
11806 | { |
11807 | if (temp1) | |
11808 | delete arg1; | |
11809 | } | |
d14a1e28 RD |
11810 | return NULL; |
11811 | } | |
11812 | ||
11813 | ||
4d5c3d91 RD |
11814 | static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { |
11815 | PyObject *resultobj; | |
11816 | char *kwnames[] = { | |
11817 | NULL | |
11818 | }; | |
11819 | ||
11820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
11821 | { | |
11822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11823 | wxSound::Stop(); | |
11824 | ||
11825 | wxPyEndAllowThreads(__tstate); | |
11826 | if (PyErr_Occurred()) SWIG_fail; | |
11827 | } | |
11828 | Py_INCREF(Py_None); resultobj = Py_None; | |
11829 | return resultobj; | |
11830 | fail: | |
11831 | return NULL; | |
11832 | } | |
11833 | ||
11834 | ||
11835 | static PyObject * Sound_swigregister(PyObject *self, PyObject *args) { | |
d14a1e28 RD |
11836 | PyObject *obj; |
11837 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4d5c3d91 | 11838 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); |
d14a1e28 RD |
11839 | Py_INCREF(obj); |
11840 | return Py_BuildValue((char *)""); | |
11841 | } | |
11842 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11843 | PyObject *resultobj; | |
11844 | wxString *arg1 = 0 ; | |
11845 | wxString *arg2 = 0 ; | |
11846 | wxString *arg3 = 0 ; | |
11847 | wxString *arg4 = 0 ; | |
11848 | wxFileTypeInfo *result; | |
e811c8ce RD |
11849 | bool temp1 = False ; |
11850 | bool temp2 = False ; | |
11851 | bool temp3 = False ; | |
11852 | bool temp4 = False ; | |
d14a1e28 RD |
11853 | PyObject * obj0 = 0 ; |
11854 | PyObject * obj1 = 0 ; | |
11855 | PyObject * obj2 = 0 ; | |
11856 | PyObject * obj3 = 0 ; | |
11857 | char *kwnames[] = { | |
11858 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
11859 | }; | |
11860 | ||
11861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11862 | { | |
11863 | arg1 = wxString_in_helper(obj0); | |
11864 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 11865 | temp1 = True; |
d14a1e28 RD |
11866 | } |
11867 | { | |
11868 | arg2 = wxString_in_helper(obj1); | |
11869 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11870 | temp2 = True; |
d14a1e28 RD |
11871 | } |
11872 | { | |
11873 | arg3 = wxString_in_helper(obj2); | |
11874 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11875 | temp3 = True; |
d14a1e28 RD |
11876 | } |
11877 | { | |
11878 | arg4 = wxString_in_helper(obj3); | |
11879 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 11880 | temp4 = True; |
d14a1e28 RD |
11881 | } |
11882 | { | |
11883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11884 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
11885 | ||
11886 | wxPyEndAllowThreads(__tstate); | |
11887 | if (PyErr_Occurred()) SWIG_fail; | |
11888 | } | |
15afbcd0 | 11889 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 RD |
11890 | { |
11891 | if (temp1) | |
11892 | delete arg1; | |
11893 | } | |
11894 | { | |
11895 | if (temp2) | |
11896 | delete arg2; | |
11897 | } | |
11898 | { | |
11899 | if (temp3) | |
11900 | delete arg3; | |
11901 | } | |
11902 | { | |
11903 | if (temp4) | |
11904 | delete arg4; | |
11905 | } | |
11906 | return resultobj; | |
11907 | fail: | |
11908 | { | |
11909 | if (temp1) | |
11910 | delete arg1; | |
11911 | } | |
11912 | { | |
11913 | if (temp2) | |
11914 | delete arg2; | |
11915 | } | |
11916 | { | |
11917 | if (temp3) | |
11918 | delete arg3; | |
11919 | } | |
11920 | { | |
11921 | if (temp4) | |
11922 | delete arg4; | |
11923 | } | |
11924 | return NULL; | |
11925 | } | |
11926 | ||
11927 | ||
11928 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11929 | PyObject *resultobj; | |
11930 | wxArrayString *arg1 = 0 ; | |
11931 | wxFileTypeInfo *result; | |
3adfb63b | 11932 | bool temp1 = False ; |
d14a1e28 RD |
11933 | PyObject * obj0 = 0 ; |
11934 | char *kwnames[] = { | |
11935 | (char *) "sArray", NULL | |
11936 | }; | |
11937 | ||
11938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
11939 | { | |
11940 | if (! PySequence_Check(obj0)) { | |
11941 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11942 | SWIG_fail; | |
11943 | } | |
11944 | arg1 = new wxArrayString; | |
3adfb63b | 11945 | temp1 = True; |
d14a1e28 RD |
11946 | int i, len=PySequence_Length(obj0); |
11947 | for (i=0; i<len; i++) { | |
11948 | PyObject* item = PySequence_GetItem(obj0, i); | |
11949 | #if wxUSE_UNICODE | |
11950 | PyObject* str = PyObject_Unicode(item); | |
11951 | #else | |
11952 | PyObject* str = PyObject_Str(item); | |
11953 | #endif | |
74a57fcd | 11954 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11955 | arg1->Add(Py2wxString(str)); |
11956 | Py_DECREF(item); | |
11957 | Py_DECREF(str); | |
11958 | } | |
11959 | } | |
11960 | { | |
11961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11962 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
11963 | ||
11964 | wxPyEndAllowThreads(__tstate); | |
11965 | if (PyErr_Occurred()) SWIG_fail; | |
11966 | } | |
15afbcd0 | 11967 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 | 11968 | { |
3adfb63b | 11969 | if (temp1) delete arg1; |
d14a1e28 RD |
11970 | } |
11971 | return resultobj; | |
11972 | fail: | |
11973 | { | |
3adfb63b | 11974 | if (temp1) delete arg1; |
d14a1e28 RD |
11975 | } |
11976 | return NULL; | |
11977 | } | |
11978 | ||
11979 | ||
11980 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11981 | PyObject *resultobj; | |
11982 | wxFileTypeInfo *result; | |
11983 | char *kwnames[] = { | |
11984 | NULL | |
11985 | }; | |
11986 | ||
11987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
11988 | { | |
11989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11990 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
11991 | ||
11992 | wxPyEndAllowThreads(__tstate); | |
11993 | if (PyErr_Occurred()) SWIG_fail; | |
11994 | } | |
15afbcd0 | 11995 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 RD |
11996 | return resultobj; |
11997 | fail: | |
11998 | return NULL; | |
11999 | } | |
12000 | ||
12001 | ||
12002 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12003 | PyObject *resultobj; | |
12004 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12005 | bool result; | |
12006 | PyObject * obj0 = 0 ; | |
12007 | char *kwnames[] = { | |
12008 | (char *) "self", NULL | |
12009 | }; | |
12010 | ||
12011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12014 | { |
12015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12016 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
12017 | ||
12018 | wxPyEndAllowThreads(__tstate); | |
12019 | if (PyErr_Occurred()) SWIG_fail; | |
12020 | } | |
4f89f6a3 RD |
12021 | { |
12022 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12023 | } | |
d14a1e28 RD |
12024 | return resultobj; |
12025 | fail: | |
12026 | return NULL; | |
12027 | } | |
12028 | ||
12029 | ||
12030 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12031 | PyObject *resultobj; | |
12032 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12033 | wxString *arg2 = 0 ; | |
12034 | int arg3 = (int) 0 ; | |
e811c8ce | 12035 | bool temp2 = False ; |
d14a1e28 RD |
12036 | PyObject * obj0 = 0 ; |
12037 | PyObject * obj1 = 0 ; | |
994141e6 | 12038 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12039 | char *kwnames[] = { |
12040 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
12041 | }; | |
12042 | ||
994141e6 | 12043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12046 | { |
12047 | arg2 = wxString_in_helper(obj1); | |
12048 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12049 | temp2 = True; |
d14a1e28 | 12050 | } |
994141e6 | 12051 | if (obj2) { |
15afbcd0 RD |
12052 | arg3 = (int) SWIG_AsInt(obj2); |
12053 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12054 | } |
d14a1e28 RD |
12055 | { |
12056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12057 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
12058 | ||
12059 | wxPyEndAllowThreads(__tstate); | |
12060 | if (PyErr_Occurred()) SWIG_fail; | |
12061 | } | |
12062 | Py_INCREF(Py_None); resultobj = Py_None; | |
12063 | { | |
12064 | if (temp2) | |
12065 | delete arg2; | |
12066 | } | |
12067 | return resultobj; | |
12068 | fail: | |
12069 | { | |
12070 | if (temp2) | |
12071 | delete arg2; | |
12072 | } | |
12073 | return NULL; | |
12074 | } | |
12075 | ||
12076 | ||
12077 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12078 | PyObject *resultobj; | |
12079 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12080 | wxString *arg2 = 0 ; | |
e811c8ce | 12081 | bool temp2 = False ; |
d14a1e28 RD |
12082 | PyObject * obj0 = 0 ; |
12083 | PyObject * obj1 = 0 ; | |
12084 | char *kwnames[] = { | |
12085 | (char *) "self",(char *) "shortDesc", NULL | |
12086 | }; | |
12087 | ||
12088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12091 | { |
12092 | arg2 = wxString_in_helper(obj1); | |
12093 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12094 | temp2 = True; |
d14a1e28 RD |
12095 | } |
12096 | { | |
12097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12098 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
12099 | ||
12100 | wxPyEndAllowThreads(__tstate); | |
12101 | if (PyErr_Occurred()) SWIG_fail; | |
12102 | } | |
12103 | Py_INCREF(Py_None); resultobj = Py_None; | |
12104 | { | |
12105 | if (temp2) | |
12106 | delete arg2; | |
12107 | } | |
12108 | return resultobj; | |
12109 | fail: | |
12110 | { | |
12111 | if (temp2) | |
12112 | delete arg2; | |
12113 | } | |
12114 | return NULL; | |
12115 | } | |
12116 | ||
12117 | ||
12118 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12119 | PyObject *resultobj; | |
12120 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12121 | wxString *result; | |
12122 | PyObject * obj0 = 0 ; | |
12123 | char *kwnames[] = { | |
12124 | (char *) "self", NULL | |
12125 | }; | |
12126 | ||
12127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12130 | { |
12131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12132 | { | |
12133 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
12134 | result = (wxString *) &_result_ref; | |
12135 | } | |
12136 | ||
12137 | wxPyEndAllowThreads(__tstate); | |
12138 | if (PyErr_Occurred()) SWIG_fail; | |
12139 | } | |
cc6dd355 RD |
12140 | { |
12141 | #if wxUSE_UNICODE | |
12142 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12143 | #else | |
12144 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12145 | #endif | |
12146 | } | |
d14a1e28 RD |
12147 | return resultobj; |
12148 | fail: | |
12149 | return NULL; | |
12150 | } | |
12151 | ||
12152 | ||
12153 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12154 | PyObject *resultobj; | |
12155 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12156 | wxString *result; | |
12157 | PyObject * obj0 = 0 ; | |
12158 | char *kwnames[] = { | |
12159 | (char *) "self", NULL | |
12160 | }; | |
12161 | ||
12162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12165 | { |
12166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12167 | { | |
12168 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
12169 | result = (wxString *) &_result_ref; | |
12170 | } | |
12171 | ||
12172 | wxPyEndAllowThreads(__tstate); | |
12173 | if (PyErr_Occurred()) SWIG_fail; | |
12174 | } | |
cc6dd355 RD |
12175 | { |
12176 | #if wxUSE_UNICODE | |
12177 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12178 | #else | |
12179 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12180 | #endif | |
12181 | } | |
d14a1e28 RD |
12182 | return resultobj; |
12183 | fail: | |
12184 | return NULL; | |
12185 | } | |
12186 | ||
12187 | ||
12188 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12189 | PyObject *resultobj; | |
12190 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12191 | wxString *result; | |
12192 | PyObject * obj0 = 0 ; | |
12193 | char *kwnames[] = { | |
12194 | (char *) "self", NULL | |
12195 | }; | |
12196 | ||
12197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12200 | { |
12201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12202 | { | |
12203 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
12204 | result = (wxString *) &_result_ref; | |
12205 | } | |
12206 | ||
12207 | wxPyEndAllowThreads(__tstate); | |
12208 | if (PyErr_Occurred()) SWIG_fail; | |
12209 | } | |
cc6dd355 RD |
12210 | { |
12211 | #if wxUSE_UNICODE | |
12212 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12213 | #else | |
12214 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12215 | #endif | |
12216 | } | |
d14a1e28 RD |
12217 | return resultobj; |
12218 | fail: | |
12219 | return NULL; | |
12220 | } | |
12221 | ||
12222 | ||
12223 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12224 | PyObject *resultobj; | |
12225 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12226 | wxString *result; | |
12227 | PyObject * obj0 = 0 ; | |
12228 | char *kwnames[] = { | |
12229 | (char *) "self", NULL | |
12230 | }; | |
12231 | ||
12232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12235 | { |
12236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12237 | { | |
12238 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
12239 | result = (wxString *) &_result_ref; | |
12240 | } | |
12241 | ||
12242 | wxPyEndAllowThreads(__tstate); | |
12243 | if (PyErr_Occurred()) SWIG_fail; | |
12244 | } | |
cc6dd355 RD |
12245 | { |
12246 | #if wxUSE_UNICODE | |
12247 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12248 | #else | |
12249 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12250 | #endif | |
12251 | } | |
d14a1e28 RD |
12252 | return resultobj; |
12253 | fail: | |
12254 | return NULL; | |
12255 | } | |
12256 | ||
12257 | ||
12258 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12259 | PyObject *resultobj; | |
12260 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12261 | wxString *result; | |
12262 | PyObject * obj0 = 0 ; | |
12263 | char *kwnames[] = { | |
12264 | (char *) "self", NULL | |
12265 | }; | |
12266 | ||
12267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12270 | { |
12271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12272 | { | |
12273 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
12274 | result = (wxString *) &_result_ref; | |
12275 | } | |
12276 | ||
12277 | wxPyEndAllowThreads(__tstate); | |
12278 | if (PyErr_Occurred()) SWIG_fail; | |
12279 | } | |
cc6dd355 RD |
12280 | { |
12281 | #if wxUSE_UNICODE | |
12282 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12283 | #else | |
12284 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12285 | #endif | |
12286 | } | |
d14a1e28 RD |
12287 | return resultobj; |
12288 | fail: | |
12289 | return NULL; | |
12290 | } | |
12291 | ||
12292 | ||
12293 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12294 | PyObject *resultobj; | |
12295 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12296 | wxArrayString *result; | |
12297 | PyObject * obj0 = 0 ; | |
12298 | char *kwnames[] = { | |
12299 | (char *) "self", NULL | |
12300 | }; | |
12301 | ||
12302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12305 | { |
12306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12307 | { | |
12308 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
12309 | result = (wxArrayString *) &_result_ref; | |
12310 | } | |
12311 | ||
12312 | wxPyEndAllowThreads(__tstate); | |
12313 | if (PyErr_Occurred()) SWIG_fail; | |
12314 | } | |
12315 | { | |
12316 | resultobj = wxArrayString2PyList_helper(*result); | |
12317 | } | |
12318 | return resultobj; | |
12319 | fail: | |
12320 | return NULL; | |
12321 | } | |
12322 | ||
12323 | ||
12324 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12325 | PyObject *resultobj; | |
12326 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12327 | int result; | |
12328 | PyObject * obj0 = 0 ; | |
12329 | char *kwnames[] = { | |
12330 | (char *) "self", NULL | |
12331 | }; | |
12332 | ||
12333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12336 | { |
12337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12338 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
12339 | ||
12340 | wxPyEndAllowThreads(__tstate); | |
12341 | if (PyErr_Occurred()) SWIG_fail; | |
12342 | } | |
15afbcd0 | 12343 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12344 | return resultobj; |
12345 | fail: | |
12346 | return NULL; | |
12347 | } | |
12348 | ||
12349 | ||
12350 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12351 | PyObject *resultobj; | |
12352 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12353 | wxString *result; | |
12354 | PyObject * obj0 = 0 ; | |
12355 | char *kwnames[] = { | |
12356 | (char *) "self", NULL | |
12357 | }; | |
12358 | ||
12359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12362 | { |
12363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12364 | { | |
12365 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
12366 | result = (wxString *) &_result_ref; | |
12367 | } | |
12368 | ||
12369 | wxPyEndAllowThreads(__tstate); | |
12370 | if (PyErr_Occurred()) SWIG_fail; | |
12371 | } | |
cc6dd355 RD |
12372 | { |
12373 | #if wxUSE_UNICODE | |
12374 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12375 | #else | |
12376 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12377 | #endif | |
12378 | } | |
d14a1e28 RD |
12379 | return resultobj; |
12380 | fail: | |
12381 | return NULL; | |
12382 | } | |
12383 | ||
12384 | ||
12385 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12386 | PyObject *resultobj; | |
12387 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12388 | int result; | |
12389 | PyObject * obj0 = 0 ; | |
12390 | char *kwnames[] = { | |
12391 | (char *) "self", NULL | |
12392 | }; | |
12393 | ||
12394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12397 | { |
12398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12399 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
12400 | ||
12401 | wxPyEndAllowThreads(__tstate); | |
12402 | if (PyErr_Occurred()) SWIG_fail; | |
12403 | } | |
15afbcd0 | 12404 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12405 | return resultobj; |
12406 | fail: | |
12407 | return NULL; | |
12408 | } | |
12409 | ||
12410 | ||
12411 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
12412 | PyObject *obj; | |
12413 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12414 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
12415 | Py_INCREF(obj); | |
12416 | return Py_BuildValue((char *)""); | |
12417 | } | |
12418 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12419 | PyObject *resultobj; | |
12420 | wxFileTypeInfo *arg1 = 0 ; | |
12421 | wxFileType *result; | |
12422 | PyObject * obj0 = 0 ; | |
12423 | char *kwnames[] = { | |
12424 | (char *) "ftInfo", NULL | |
12425 | }; | |
12426 | ||
12427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12429 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12430 | SWIG_fail; | |
d14a1e28 | 12431 | if (arg1 == NULL) { |
15afbcd0 RD |
12432 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12433 | SWIG_fail; | |
d14a1e28 RD |
12434 | } |
12435 | { | |
12436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12437 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
12438 | ||
12439 | wxPyEndAllowThreads(__tstate); | |
12440 | if (PyErr_Occurred()) SWIG_fail; | |
12441 | } | |
15afbcd0 | 12442 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
12443 | return resultobj; |
12444 | fail: | |
12445 | return NULL; | |
12446 | } | |
12447 | ||
12448 | ||
12449 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12450 | PyObject *resultobj; | |
12451 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12452 | PyObject * obj0 = 0 ; | |
12453 | char *kwnames[] = { | |
12454 | (char *) "self", NULL | |
12455 | }; | |
12456 | ||
12457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12460 | { |
12461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12462 | delete arg1; | |
12463 | ||
12464 | wxPyEndAllowThreads(__tstate); | |
12465 | if (PyErr_Occurred()) SWIG_fail; | |
12466 | } | |
12467 | Py_INCREF(Py_None); resultobj = Py_None; | |
12468 | return resultobj; | |
12469 | fail: | |
12470 | return NULL; | |
12471 | } | |
12472 | ||
12473 | ||
12474 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12475 | PyObject *resultobj; | |
12476 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12477 | PyObject *result; | |
12478 | PyObject * obj0 = 0 ; | |
12479 | char *kwnames[] = { | |
12480 | (char *) "self", NULL | |
12481 | }; | |
12482 | ||
12483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12486 | { |
12487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12488 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
12489 | ||
12490 | wxPyEndAllowThreads(__tstate); | |
12491 | if (PyErr_Occurred()) SWIG_fail; | |
12492 | } | |
12493 | resultobj = result; | |
12494 | return resultobj; | |
12495 | fail: | |
12496 | return NULL; | |
12497 | } | |
12498 | ||
12499 | ||
12500 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12501 | PyObject *resultobj; | |
12502 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12503 | PyObject *result; | |
12504 | PyObject * obj0 = 0 ; | |
12505 | char *kwnames[] = { | |
12506 | (char *) "self", NULL | |
12507 | }; | |
12508 | ||
12509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12512 | { |
12513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12514 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
12515 | ||
12516 | wxPyEndAllowThreads(__tstate); | |
12517 | if (PyErr_Occurred()) SWIG_fail; | |
12518 | } | |
12519 | resultobj = result; | |
12520 | return resultobj; | |
12521 | fail: | |
12522 | return NULL; | |
12523 | } | |
12524 | ||
12525 | ||
12526 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12527 | PyObject *resultobj; | |
12528 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12529 | PyObject *result; | |
12530 | PyObject * obj0 = 0 ; | |
12531 | char *kwnames[] = { | |
12532 | (char *) "self", NULL | |
12533 | }; | |
12534 | ||
12535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12538 | { |
12539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12540 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
12541 | ||
12542 | wxPyEndAllowThreads(__tstate); | |
12543 | if (PyErr_Occurred()) SWIG_fail; | |
12544 | } | |
12545 | resultobj = result; | |
12546 | return resultobj; | |
12547 | fail: | |
12548 | return NULL; | |
12549 | } | |
12550 | ||
12551 | ||
12552 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12553 | PyObject *resultobj; | |
12554 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12555 | wxIcon *result; | |
12556 | PyObject * obj0 = 0 ; | |
12557 | char *kwnames[] = { | |
12558 | (char *) "self", NULL | |
12559 | }; | |
12560 | ||
12561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12564 | { |
12565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12566 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
12567 | ||
12568 | wxPyEndAllowThreads(__tstate); | |
12569 | if (PyErr_Occurred()) SWIG_fail; | |
12570 | } | |
15afbcd0 | 12571 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
12572 | return resultobj; |
12573 | fail: | |
12574 | return NULL; | |
12575 | } | |
12576 | ||
12577 | ||
12578 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12579 | PyObject *resultobj; | |
12580 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12581 | PyObject *result; | |
12582 | PyObject * obj0 = 0 ; | |
12583 | char *kwnames[] = { | |
12584 | (char *) "self", NULL | |
12585 | }; | |
12586 | ||
12587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12590 | { |
12591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12592 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
12593 | ||
12594 | wxPyEndAllowThreads(__tstate); | |
12595 | if (PyErr_Occurred()) SWIG_fail; | |
12596 | } | |
12597 | resultobj = result; | |
12598 | return resultobj; | |
12599 | fail: | |
12600 | return NULL; | |
12601 | } | |
12602 | ||
12603 | ||
12604 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12605 | PyObject *resultobj; | |
12606 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12607 | PyObject *result; | |
12608 | PyObject * obj0 = 0 ; | |
12609 | char *kwnames[] = { | |
12610 | (char *) "self", NULL | |
12611 | }; | |
12612 | ||
12613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12616 | { |
12617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12618 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
12619 | ||
12620 | wxPyEndAllowThreads(__tstate); | |
12621 | if (PyErr_Occurred()) SWIG_fail; | |
12622 | } | |
12623 | resultobj = result; | |
12624 | return resultobj; | |
12625 | fail: | |
12626 | return NULL; | |
12627 | } | |
12628 | ||
12629 | ||
12630 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12631 | PyObject *resultobj; | |
12632 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12633 | wxString *arg2 = 0 ; | |
12634 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12635 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12636 | PyObject *result; | |
e811c8ce RD |
12637 | bool temp2 = False ; |
12638 | bool temp3 = False ; | |
d14a1e28 RD |
12639 | PyObject * obj0 = 0 ; |
12640 | PyObject * obj1 = 0 ; | |
12641 | PyObject * obj2 = 0 ; | |
12642 | char *kwnames[] = { | |
12643 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12644 | }; | |
12645 | ||
12646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12649 | { |
12650 | arg2 = wxString_in_helper(obj1); | |
12651 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12652 | temp2 = True; |
d14a1e28 RD |
12653 | } |
12654 | if (obj2) { | |
12655 | { | |
12656 | arg3 = wxString_in_helper(obj2); | |
12657 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12658 | temp3 = True; |
d14a1e28 RD |
12659 | } |
12660 | } | |
12661 | { | |
12662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12663 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12664 | ||
12665 | wxPyEndAllowThreads(__tstate); | |
12666 | if (PyErr_Occurred()) SWIG_fail; | |
12667 | } | |
12668 | resultobj = result; | |
12669 | { | |
12670 | if (temp2) | |
12671 | delete arg2; | |
12672 | } | |
12673 | { | |
12674 | if (temp3) | |
12675 | delete arg3; | |
12676 | } | |
12677 | return resultobj; | |
12678 | fail: | |
12679 | { | |
12680 | if (temp2) | |
12681 | delete arg2; | |
12682 | } | |
12683 | { | |
12684 | if (temp3) | |
12685 | delete arg3; | |
12686 | } | |
12687 | return NULL; | |
12688 | } | |
12689 | ||
12690 | ||
12691 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12692 | PyObject *resultobj; | |
12693 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12694 | wxString *arg2 = 0 ; | |
12695 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12696 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12697 | PyObject *result; | |
e811c8ce RD |
12698 | bool temp2 = False ; |
12699 | bool temp3 = False ; | |
d14a1e28 RD |
12700 | PyObject * obj0 = 0 ; |
12701 | PyObject * obj1 = 0 ; | |
12702 | PyObject * obj2 = 0 ; | |
12703 | char *kwnames[] = { | |
12704 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12705 | }; | |
12706 | ||
12707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12710 | { |
12711 | arg2 = wxString_in_helper(obj1); | |
12712 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12713 | temp2 = True; |
d14a1e28 RD |
12714 | } |
12715 | if (obj2) { | |
12716 | { | |
12717 | arg3 = wxString_in_helper(obj2); | |
12718 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12719 | temp3 = True; |
d14a1e28 RD |
12720 | } |
12721 | } | |
12722 | { | |
12723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12724 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12725 | ||
12726 | wxPyEndAllowThreads(__tstate); | |
12727 | if (PyErr_Occurred()) SWIG_fail; | |
12728 | } | |
12729 | resultobj = result; | |
12730 | { | |
12731 | if (temp2) | |
12732 | delete arg2; | |
12733 | } | |
12734 | { | |
12735 | if (temp3) | |
12736 | delete arg3; | |
12737 | } | |
12738 | return resultobj; | |
12739 | fail: | |
12740 | { | |
12741 | if (temp2) | |
12742 | delete arg2; | |
12743 | } | |
12744 | { | |
12745 | if (temp3) | |
12746 | delete arg3; | |
12747 | } | |
12748 | return NULL; | |
12749 | } | |
12750 | ||
12751 | ||
12752 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12753 | PyObject *resultobj; | |
12754 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12755 | wxString *arg2 = 0 ; | |
12756 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12757 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12758 | PyObject *result; | |
e811c8ce RD |
12759 | bool temp2 = False ; |
12760 | bool temp3 = False ; | |
d14a1e28 RD |
12761 | PyObject * obj0 = 0 ; |
12762 | PyObject * obj1 = 0 ; | |
12763 | PyObject * obj2 = 0 ; | |
12764 | char *kwnames[] = { | |
12765 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12766 | }; | |
12767 | ||
12768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12771 | { |
12772 | arg2 = wxString_in_helper(obj1); | |
12773 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12774 | temp2 = True; |
d14a1e28 RD |
12775 | } |
12776 | if (obj2) { | |
12777 | { | |
12778 | arg3 = wxString_in_helper(obj2); | |
12779 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12780 | temp3 = True; |
d14a1e28 RD |
12781 | } |
12782 | } | |
12783 | { | |
12784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12785 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12786 | ||
12787 | wxPyEndAllowThreads(__tstate); | |
12788 | if (PyErr_Occurred()) SWIG_fail; | |
12789 | } | |
12790 | resultobj = result; | |
12791 | { | |
12792 | if (temp2) | |
12793 | delete arg2; | |
12794 | } | |
12795 | { | |
12796 | if (temp3) | |
12797 | delete arg3; | |
12798 | } | |
12799 | return resultobj; | |
12800 | fail: | |
12801 | { | |
12802 | if (temp2) | |
12803 | delete arg2; | |
12804 | } | |
12805 | { | |
12806 | if (temp3) | |
12807 | delete arg3; | |
12808 | } | |
12809 | return NULL; | |
12810 | } | |
12811 | ||
12812 | ||
12813 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12814 | PyObject *resultobj; | |
12815 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12816 | wxString *arg2 = 0 ; | |
12817 | wxString *arg3 = 0 ; | |
e811c8ce | 12818 | bool arg4 = (bool) True ; |
d14a1e28 | 12819 | bool result; |
e811c8ce RD |
12820 | bool temp2 = False ; |
12821 | bool temp3 = False ; | |
d14a1e28 RD |
12822 | PyObject * obj0 = 0 ; |
12823 | PyObject * obj1 = 0 ; | |
12824 | PyObject * obj2 = 0 ; | |
12825 | PyObject * obj3 = 0 ; | |
12826 | char *kwnames[] = { | |
12827 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
12828 | }; | |
12829 | ||
12830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
12831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12833 | { |
12834 | arg2 = wxString_in_helper(obj1); | |
12835 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12836 | temp2 = True; |
d14a1e28 RD |
12837 | } |
12838 | { | |
12839 | arg3 = wxString_in_helper(obj2); | |
12840 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12841 | temp3 = True; |
d14a1e28 RD |
12842 | } |
12843 | if (obj3) { | |
15afbcd0 RD |
12844 | arg4 = (bool) SWIG_AsBool(obj3); |
12845 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12846 | } |
12847 | { | |
12848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12849 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
12850 | ||
12851 | wxPyEndAllowThreads(__tstate); | |
12852 | if (PyErr_Occurred()) SWIG_fail; | |
12853 | } | |
4f89f6a3 RD |
12854 | { |
12855 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12856 | } | |
d14a1e28 RD |
12857 | { |
12858 | if (temp2) | |
12859 | delete arg2; | |
12860 | } | |
12861 | { | |
12862 | if (temp3) | |
12863 | delete arg3; | |
12864 | } | |
12865 | return resultobj; | |
12866 | fail: | |
12867 | { | |
12868 | if (temp2) | |
12869 | delete arg2; | |
12870 | } | |
12871 | { | |
12872 | if (temp3) | |
12873 | delete arg3; | |
12874 | } | |
12875 | return NULL; | |
12876 | } | |
12877 | ||
12878 | ||
12879 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12880 | PyObject *resultobj; | |
12881 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12882 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12883 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
12884 | int arg3 = (int) 0 ; | |
12885 | bool result; | |
e811c8ce | 12886 | bool temp2 = False ; |
d14a1e28 RD |
12887 | PyObject * obj0 = 0 ; |
12888 | PyObject * obj1 = 0 ; | |
994141e6 | 12889 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12890 | char *kwnames[] = { |
12891 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
12892 | }; | |
12893 | ||
994141e6 | 12894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12897 | if (obj1) { |
12898 | { | |
12899 | arg2 = wxString_in_helper(obj1); | |
12900 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12901 | temp2 = True; |
d14a1e28 RD |
12902 | } |
12903 | } | |
994141e6 | 12904 | if (obj2) { |
15afbcd0 RD |
12905 | arg3 = (int) SWIG_AsInt(obj2); |
12906 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12907 | } |
d14a1e28 RD |
12908 | { |
12909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12910 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
12911 | ||
12912 | wxPyEndAllowThreads(__tstate); | |
12913 | if (PyErr_Occurred()) SWIG_fail; | |
12914 | } | |
4f89f6a3 RD |
12915 | { |
12916 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12917 | } | |
d14a1e28 RD |
12918 | { |
12919 | if (temp2) | |
12920 | delete arg2; | |
12921 | } | |
12922 | return resultobj; | |
12923 | fail: | |
12924 | { | |
12925 | if (temp2) | |
12926 | delete arg2; | |
12927 | } | |
12928 | return NULL; | |
12929 | } | |
12930 | ||
12931 | ||
12932 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12933 | PyObject *resultobj; | |
12934 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12935 | bool result; | |
12936 | PyObject * obj0 = 0 ; | |
12937 | char *kwnames[] = { | |
12938 | (char *) "self", NULL | |
12939 | }; | |
12940 | ||
12941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12944 | { |
12945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12946 | result = (bool)(arg1)->Unassociate(); | |
12947 | ||
12948 | wxPyEndAllowThreads(__tstate); | |
12949 | if (PyErr_Occurred()) SWIG_fail; | |
12950 | } | |
4f89f6a3 RD |
12951 | { |
12952 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12953 | } | |
d14a1e28 RD |
12954 | return resultobj; |
12955 | fail: | |
12956 | return NULL; | |
12957 | } | |
12958 | ||
12959 | ||
12960 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12961 | PyObject *resultobj; | |
12962 | wxString *arg1 = 0 ; | |
12963 | wxString *arg2 = 0 ; | |
12964 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12965 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12966 | wxString result; | |
e811c8ce RD |
12967 | bool temp1 = False ; |
12968 | bool temp2 = False ; | |
12969 | bool temp3 = False ; | |
d14a1e28 RD |
12970 | PyObject * obj0 = 0 ; |
12971 | PyObject * obj1 = 0 ; | |
12972 | PyObject * obj2 = 0 ; | |
12973 | char *kwnames[] = { | |
12974 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
12975 | }; | |
12976 | ||
12977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12978 | { | |
12979 | arg1 = wxString_in_helper(obj0); | |
12980 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 12981 | temp1 = True; |
d14a1e28 RD |
12982 | } |
12983 | { | |
12984 | arg2 = wxString_in_helper(obj1); | |
12985 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12986 | temp2 = True; |
d14a1e28 RD |
12987 | } |
12988 | if (obj2) { | |
12989 | { | |
12990 | arg3 = wxString_in_helper(obj2); | |
12991 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12992 | temp3 = True; |
d14a1e28 RD |
12993 | } |
12994 | } | |
12995 | { | |
12996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12997 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12998 | ||
12999 | wxPyEndAllowThreads(__tstate); | |
13000 | if (PyErr_Occurred()) SWIG_fail; | |
13001 | } | |
13002 | { | |
13003 | #if wxUSE_UNICODE | |
13004 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13005 | #else | |
13006 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13007 | #endif | |
13008 | } | |
13009 | { | |
13010 | if (temp1) | |
13011 | delete arg1; | |
13012 | } | |
13013 | { | |
13014 | if (temp2) | |
13015 | delete arg2; | |
13016 | } | |
13017 | { | |
13018 | if (temp3) | |
13019 | delete arg3; | |
13020 | } | |
13021 | return resultobj; | |
13022 | fail: | |
13023 | { | |
13024 | if (temp1) | |
13025 | delete arg1; | |
13026 | } | |
13027 | { | |
13028 | if (temp2) | |
13029 | delete arg2; | |
13030 | } | |
13031 | { | |
13032 | if (temp3) | |
13033 | delete arg3; | |
13034 | } | |
13035 | return NULL; | |
13036 | } | |
13037 | ||
13038 | ||
13039 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
13040 | PyObject *obj; | |
13041 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13042 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
13043 | Py_INCREF(obj); | |
13044 | return Py_BuildValue((char *)""); | |
13045 | } | |
13046 | static int _wrap_TheMimeTypesManager_set(PyObject *_val) { | |
13047 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); | |
13048 | return 1; | |
13049 | } | |
13050 | ||
13051 | ||
13052 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
13053 | PyObject *pyobj; | |
13054 | ||
15afbcd0 | 13055 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); |
d14a1e28 RD |
13056 | return pyobj; |
13057 | } | |
13058 | ||
13059 | ||
13060 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13061 | PyObject *resultobj; | |
13062 | wxString *arg1 = 0 ; | |
13063 | wxString *arg2 = 0 ; | |
13064 | bool result; | |
e811c8ce RD |
13065 | bool temp1 = False ; |
13066 | bool temp2 = False ; | |
d14a1e28 RD |
13067 | PyObject * obj0 = 0 ; |
13068 | PyObject * obj1 = 0 ; | |
13069 | char *kwnames[] = { | |
13070 | (char *) "mimeType",(char *) "wildcard", NULL | |
13071 | }; | |
13072 | ||
13073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
13074 | { | |
13075 | arg1 = wxString_in_helper(obj0); | |
13076 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 13077 | temp1 = True; |
d14a1e28 RD |
13078 | } |
13079 | { | |
13080 | arg2 = wxString_in_helper(obj1); | |
13081 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13082 | temp2 = True; |
d14a1e28 RD |
13083 | } |
13084 | { | |
13085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13086 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
13087 | ||
13088 | wxPyEndAllowThreads(__tstate); | |
13089 | if (PyErr_Occurred()) SWIG_fail; | |
13090 | } | |
4f89f6a3 RD |
13091 | { |
13092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13093 | } | |
d14a1e28 RD |
13094 | { |
13095 | if (temp1) | |
13096 | delete arg1; | |
13097 | } | |
13098 | { | |
13099 | if (temp2) | |
13100 | delete arg2; | |
13101 | } | |
13102 | return resultobj; | |
13103 | fail: | |
13104 | { | |
13105 | if (temp1) | |
13106 | delete arg1; | |
13107 | } | |
13108 | { | |
13109 | if (temp2) | |
13110 | delete arg2; | |
13111 | } | |
13112 | return NULL; | |
13113 | } | |
13114 | ||
13115 | ||
13116 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13117 | PyObject *resultobj; | |
13118 | wxMimeTypesManager *result; | |
13119 | char *kwnames[] = { | |
13120 | NULL | |
13121 | }; | |
13122 | ||
13123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
13124 | { | |
13125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13126 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
13127 | ||
13128 | wxPyEndAllowThreads(__tstate); | |
13129 | if (PyErr_Occurred()) SWIG_fail; | |
13130 | } | |
15afbcd0 | 13131 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); |
d14a1e28 RD |
13132 | return resultobj; |
13133 | fail: | |
13134 | return NULL; | |
13135 | } | |
13136 | ||
13137 | ||
13138 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13139 | PyObject *resultobj; | |
13140 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13141 | int arg2 = (int) wxMAILCAP_ALL ; | |
13142 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13143 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
e811c8ce | 13144 | bool temp3 = False ; |
d14a1e28 | 13145 | PyObject * obj0 = 0 ; |
994141e6 | 13146 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13147 | PyObject * obj2 = 0 ; |
13148 | char *kwnames[] = { | |
13149 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
13150 | }; | |
13151 | ||
994141e6 | 13152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 13155 | if (obj1) { |
15afbcd0 RD |
13156 | arg2 = (int) SWIG_AsInt(obj1); |
13157 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13158 | } |
d14a1e28 RD |
13159 | if (obj2) { |
13160 | { | |
13161 | arg3 = wxString_in_helper(obj2); | |
13162 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 13163 | temp3 = True; |
d14a1e28 RD |
13164 | } |
13165 | } | |
13166 | { | |
13167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13168 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
13169 | ||
13170 | wxPyEndAllowThreads(__tstate); | |
13171 | if (PyErr_Occurred()) SWIG_fail; | |
13172 | } | |
13173 | Py_INCREF(Py_None); resultobj = Py_None; | |
13174 | { | |
13175 | if (temp3) | |
13176 | delete arg3; | |
13177 | } | |
13178 | return resultobj; | |
13179 | fail: | |
13180 | { | |
13181 | if (temp3) | |
13182 | delete arg3; | |
13183 | } | |
13184 | return NULL; | |
13185 | } | |
13186 | ||
13187 | ||
13188 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13189 | PyObject *resultobj; | |
13190 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13191 | PyObject * obj0 = 0 ; | |
13192 | char *kwnames[] = { | |
13193 | (char *) "self", NULL | |
13194 | }; | |
13195 | ||
13196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13199 | { |
13200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13201 | (arg1)->ClearData(); | |
13202 | ||
13203 | wxPyEndAllowThreads(__tstate); | |
13204 | if (PyErr_Occurred()) SWIG_fail; | |
13205 | } | |
13206 | Py_INCREF(Py_None); resultobj = Py_None; | |
13207 | return resultobj; | |
13208 | fail: | |
13209 | return NULL; | |
13210 | } | |
13211 | ||
13212 | ||
13213 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13214 | PyObject *resultobj; | |
13215 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13216 | wxString *arg2 = 0 ; | |
13217 | wxFileType *result; | |
e811c8ce | 13218 | bool temp2 = False ; |
d14a1e28 RD |
13219 | PyObject * obj0 = 0 ; |
13220 | PyObject * obj1 = 0 ; | |
13221 | char *kwnames[] = { | |
13222 | (char *) "self",(char *) "ext", NULL | |
13223 | }; | |
13224 | ||
13225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13228 | { |
13229 | arg2 = wxString_in_helper(obj1); | |
13230 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13231 | temp2 = True; |
d14a1e28 RD |
13232 | } |
13233 | { | |
13234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13235 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
13236 | ||
13237 | wxPyEndAllowThreads(__tstate); | |
13238 | if (PyErr_Occurred()) SWIG_fail; | |
13239 | } | |
15afbcd0 | 13240 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13241 | { |
13242 | if (temp2) | |
13243 | delete arg2; | |
13244 | } | |
13245 | return resultobj; | |
13246 | fail: | |
13247 | { | |
13248 | if (temp2) | |
13249 | delete arg2; | |
13250 | } | |
13251 | return NULL; | |
13252 | } | |
13253 | ||
13254 | ||
13255 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13256 | PyObject *resultobj; | |
13257 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13258 | wxString *arg2 = 0 ; | |
13259 | wxFileType *result; | |
e811c8ce | 13260 | bool temp2 = False ; |
d14a1e28 RD |
13261 | PyObject * obj0 = 0 ; |
13262 | PyObject * obj1 = 0 ; | |
13263 | char *kwnames[] = { | |
13264 | (char *) "self",(char *) "mimeType", NULL | |
13265 | }; | |
13266 | ||
13267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13270 | { |
13271 | arg2 = wxString_in_helper(obj1); | |
13272 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13273 | temp2 = True; |
d14a1e28 RD |
13274 | } |
13275 | { | |
13276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13277 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
13278 | ||
13279 | wxPyEndAllowThreads(__tstate); | |
13280 | if (PyErr_Occurred()) SWIG_fail; | |
13281 | } | |
15afbcd0 | 13282 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13283 | { |
13284 | if (temp2) | |
13285 | delete arg2; | |
13286 | } | |
13287 | return resultobj; | |
13288 | fail: | |
13289 | { | |
13290 | if (temp2) | |
13291 | delete arg2; | |
13292 | } | |
13293 | return NULL; | |
13294 | } | |
13295 | ||
13296 | ||
13297 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13298 | PyObject *resultobj; | |
13299 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13300 | wxString *arg2 = 0 ; | |
e811c8ce | 13301 | bool arg3 = (bool) False ; |
d14a1e28 | 13302 | bool result; |
e811c8ce | 13303 | bool temp2 = False ; |
d14a1e28 RD |
13304 | PyObject * obj0 = 0 ; |
13305 | PyObject * obj1 = 0 ; | |
13306 | PyObject * obj2 = 0 ; | |
13307 | char *kwnames[] = { | |
13308 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
13309 | }; | |
13310 | ||
13311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
13312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13314 | { |
13315 | arg2 = wxString_in_helper(obj1); | |
13316 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13317 | temp2 = True; |
d14a1e28 RD |
13318 | } |
13319 | if (obj2) { | |
15afbcd0 RD |
13320 | arg3 = (bool) SWIG_AsBool(obj2); |
13321 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13322 | } |
13323 | { | |
13324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13325 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
13326 | ||
13327 | wxPyEndAllowThreads(__tstate); | |
13328 | if (PyErr_Occurred()) SWIG_fail; | |
13329 | } | |
4f89f6a3 RD |
13330 | { |
13331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13332 | } | |
d14a1e28 RD |
13333 | { |
13334 | if (temp2) | |
13335 | delete arg2; | |
13336 | } | |
13337 | return resultobj; | |
13338 | fail: | |
13339 | { | |
13340 | if (temp2) | |
13341 | delete arg2; | |
13342 | } | |
13343 | return NULL; | |
13344 | } | |
13345 | ||
13346 | ||
13347 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13348 | PyObject *resultobj; | |
13349 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13350 | wxString *arg2 = 0 ; | |
13351 | bool result; | |
e811c8ce | 13352 | bool temp2 = False ; |
d14a1e28 RD |
13353 | PyObject * obj0 = 0 ; |
13354 | PyObject * obj1 = 0 ; | |
13355 | char *kwnames[] = { | |
13356 | (char *) "self",(char *) "filename", NULL | |
13357 | }; | |
13358 | ||
13359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13362 | { |
13363 | arg2 = wxString_in_helper(obj1); | |
13364 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13365 | temp2 = True; |
d14a1e28 RD |
13366 | } |
13367 | { | |
13368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13369 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
13370 | ||
13371 | wxPyEndAllowThreads(__tstate); | |
13372 | if (PyErr_Occurred()) SWIG_fail; | |
13373 | } | |
4f89f6a3 RD |
13374 | { |
13375 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13376 | } | |
d14a1e28 RD |
13377 | { |
13378 | if (temp2) | |
13379 | delete arg2; | |
13380 | } | |
13381 | return resultobj; | |
13382 | fail: | |
13383 | { | |
13384 | if (temp2) | |
13385 | delete arg2; | |
13386 | } | |
13387 | return NULL; | |
13388 | } | |
13389 | ||
13390 | ||
13391 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13392 | PyObject *resultobj; | |
13393 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13394 | PyObject *result; | |
13395 | PyObject * obj0 = 0 ; | |
13396 | char *kwnames[] = { | |
13397 | (char *) "self", NULL | |
13398 | }; | |
13399 | ||
13400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13403 | { |
13404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13405 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
13406 | ||
13407 | wxPyEndAllowThreads(__tstate); | |
13408 | if (PyErr_Occurred()) SWIG_fail; | |
13409 | } | |
13410 | resultobj = result; | |
13411 | return resultobj; | |
13412 | fail: | |
13413 | return NULL; | |
13414 | } | |
13415 | ||
13416 | ||
13417 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13418 | PyObject *resultobj; | |
13419 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13420 | wxFileTypeInfo *arg2 = 0 ; | |
13421 | PyObject * obj0 = 0 ; | |
13422 | PyObject * obj1 = 0 ; | |
13423 | char *kwnames[] = { | |
13424 | (char *) "self",(char *) "ft", NULL | |
13425 | }; | |
13426 | ||
13427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13430 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13431 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13432 | SWIG_fail; | |
d14a1e28 | 13433 | if (arg2 == NULL) { |
15afbcd0 RD |
13434 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13435 | SWIG_fail; | |
d14a1e28 RD |
13436 | } |
13437 | { | |
13438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13439 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
13440 | ||
13441 | wxPyEndAllowThreads(__tstate); | |
13442 | if (PyErr_Occurred()) SWIG_fail; | |
13443 | } | |
13444 | Py_INCREF(Py_None); resultobj = Py_None; | |
13445 | return resultobj; | |
13446 | fail: | |
13447 | return NULL; | |
13448 | } | |
13449 | ||
13450 | ||
13451 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13452 | PyObject *resultobj; | |
13453 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13454 | wxFileTypeInfo *arg2 = 0 ; | |
13455 | wxFileType *result; | |
13456 | PyObject * obj0 = 0 ; | |
13457 | PyObject * obj1 = 0 ; | |
13458 | char *kwnames[] = { | |
13459 | (char *) "self",(char *) "ftInfo", NULL | |
13460 | }; | |
13461 | ||
13462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13465 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13466 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13467 | SWIG_fail; | |
d14a1e28 | 13468 | if (arg2 == NULL) { |
15afbcd0 RD |
13469 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13470 | SWIG_fail; | |
d14a1e28 RD |
13471 | } |
13472 | { | |
13473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13474 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
13475 | ||
13476 | wxPyEndAllowThreads(__tstate); | |
13477 | if (PyErr_Occurred()) SWIG_fail; | |
13478 | } | |
15afbcd0 | 13479 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13480 | return resultobj; |
13481 | fail: | |
13482 | return NULL; | |
13483 | } | |
13484 | ||
13485 | ||
13486 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13487 | PyObject *resultobj; | |
13488 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13489 | wxFileType *arg2 = (wxFileType *) 0 ; | |
13490 | bool result; | |
13491 | PyObject * obj0 = 0 ; | |
13492 | PyObject * obj1 = 0 ; | |
13493 | char *kwnames[] = { | |
13494 | (char *) "self",(char *) "ft", NULL | |
13495 | }; | |
13496 | ||
13497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13500 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType, | |
13501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13502 | { |
13503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13504 | result = (bool)(arg1)->Unassociate(arg2); | |
13505 | ||
13506 | wxPyEndAllowThreads(__tstate); | |
13507 | if (PyErr_Occurred()) SWIG_fail; | |
13508 | } | |
4f89f6a3 RD |
13509 | { |
13510 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13511 | } | |
d14a1e28 RD |
13512 | return resultobj; |
13513 | fail: | |
13514 | return NULL; | |
13515 | } | |
13516 | ||
13517 | ||
13518 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13519 | PyObject *resultobj; | |
13520 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13521 | PyObject * obj0 = 0 ; | |
13522 | char *kwnames[] = { | |
13523 | (char *) "self", NULL | |
13524 | }; | |
13525 | ||
13526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13529 | { |
13530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13531 | delete arg1; | |
13532 | ||
13533 | wxPyEndAllowThreads(__tstate); | |
13534 | if (PyErr_Occurred()) SWIG_fail; | |
13535 | } | |
13536 | Py_INCREF(Py_None); resultobj = Py_None; | |
13537 | return resultobj; | |
13538 | fail: | |
13539 | return NULL; | |
13540 | } | |
13541 | ||
13542 | ||
13543 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
13544 | PyObject *obj; | |
13545 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13546 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
13547 | Py_INCREF(obj); | |
13548 | return Py_BuildValue((char *)""); | |
13549 | } | |
13550 | static int _wrap_ART_TOOLBAR_set(PyObject *_val) { | |
13551 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); | |
13552 | return 1; | |
13553 | } | |
13554 | ||
13555 | ||
13556 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
13557 | PyObject *pyobj; | |
13558 | ||
13559 | { | |
13560 | #if wxUSE_UNICODE | |
13561 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13562 | #else | |
13563 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13564 | #endif | |
13565 | } | |
13566 | return pyobj; | |
13567 | } | |
13568 | ||
13569 | ||
13570 | static int _wrap_ART_MENU_set(PyObject *_val) { | |
13571 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); | |
13572 | return 1; | |
13573 | } | |
13574 | ||
13575 | ||
13576 | static PyObject *_wrap_ART_MENU_get() { | |
13577 | PyObject *pyobj; | |
13578 | ||
13579 | { | |
13580 | #if wxUSE_UNICODE | |
13581 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13582 | #else | |
13583 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13584 | #endif | |
13585 | } | |
13586 | return pyobj; | |
13587 | } | |
13588 | ||
13589 | ||
13590 | static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { | |
13591 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); | |
13592 | return 1; | |
13593 | } | |
13594 | ||
13595 | ||
13596 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
13597 | PyObject *pyobj; | |
13598 | ||
13599 | { | |
13600 | #if wxUSE_UNICODE | |
13601 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13602 | #else | |
13603 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13604 | #endif | |
13605 | } | |
13606 | return pyobj; | |
13607 | } | |
13608 | ||
13609 | ||
13610 | static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { | |
13611 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); | |
13612 | return 1; | |
13613 | } | |
13614 | ||
13615 | ||
13616 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
13617 | PyObject *pyobj; | |
13618 | ||
13619 | { | |
13620 | #if wxUSE_UNICODE | |
13621 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13622 | #else | |
13623 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13624 | #endif | |
13625 | } | |
13626 | return pyobj; | |
13627 | } | |
13628 | ||
13629 | ||
13630 | static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { | |
13631 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); | |
13632 | return 1; | |
13633 | } | |
13634 | ||
13635 | ||
13636 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
13637 | PyObject *pyobj; | |
13638 | ||
13639 | { | |
13640 | #if wxUSE_UNICODE | |
13641 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13642 | #else | |
13643 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13644 | #endif | |
13645 | } | |
13646 | return pyobj; | |
13647 | } | |
13648 | ||
13649 | ||
13650 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { | |
13651 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); | |
13652 | return 1; | |
13653 | } | |
13654 | ||
13655 | ||
13656 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
13657 | PyObject *pyobj; | |
13658 | ||
13659 | { | |
13660 | #if wxUSE_UNICODE | |
13661 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13662 | #else | |
13663 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13664 | #endif | |
13665 | } | |
13666 | return pyobj; | |
13667 | } | |
13668 | ||
13669 | ||
13670 | static int _wrap_ART_OTHER_set(PyObject *_val) { | |
13671 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); | |
13672 | return 1; | |
13673 | } | |
13674 | ||
13675 | ||
13676 | static PyObject *_wrap_ART_OTHER_get() { | |
13677 | PyObject *pyobj; | |
13678 | ||
13679 | { | |
13680 | #if wxUSE_UNICODE | |
13681 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13682 | #else | |
13683 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13684 | #endif | |
13685 | } | |
13686 | return pyobj; | |
13687 | } | |
13688 | ||
13689 | ||
13690 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { | |
13691 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); | |
13692 | return 1; | |
13693 | } | |
13694 | ||
13695 | ||
13696 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
13697 | PyObject *pyobj; | |
13698 | ||
13699 | { | |
13700 | #if wxUSE_UNICODE | |
13701 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13702 | #else | |
13703 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13704 | #endif | |
13705 | } | |
13706 | return pyobj; | |
13707 | } | |
13708 | ||
13709 | ||
13710 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { | |
13711 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); | |
13712 | return 1; | |
13713 | } | |
13714 | ||
13715 | ||
13716 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
13717 | PyObject *pyobj; | |
13718 | ||
13719 | { | |
13720 | #if wxUSE_UNICODE | |
13721 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13722 | #else | |
13723 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13724 | #endif | |
13725 | } | |
13726 | return pyobj; | |
13727 | } | |
13728 | ||
13729 | ||
13730 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { | |
13731 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); | |
13732 | return 1; | |
13733 | } | |
13734 | ||
13735 | ||
13736 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
13737 | PyObject *pyobj; | |
13738 | ||
13739 | { | |
13740 | #if wxUSE_UNICODE | |
13741 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13742 | #else | |
13743 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13744 | #endif | |
13745 | } | |
13746 | return pyobj; | |
13747 | } | |
13748 | ||
13749 | ||
13750 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { | |
13751 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); | |
13752 | return 1; | |
13753 | } | |
13754 | ||
13755 | ||
13756 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
13757 | PyObject *pyobj; | |
13758 | ||
13759 | { | |
13760 | #if wxUSE_UNICODE | |
13761 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13762 | #else | |
13763 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13764 | #endif | |
13765 | } | |
13766 | return pyobj; | |
13767 | } | |
13768 | ||
13769 | ||
13770 | static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { | |
13771 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); | |
13772 | return 1; | |
13773 | } | |
13774 | ||
13775 | ||
13776 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
13777 | PyObject *pyobj; | |
13778 | ||
13779 | { | |
13780 | #if wxUSE_UNICODE | |
13781 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13782 | #else | |
13783 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13784 | #endif | |
13785 | } | |
13786 | return pyobj; | |
13787 | } | |
13788 | ||
13789 | ||
13790 | static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { | |
13791 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); | |
13792 | return 1; | |
13793 | } | |
13794 | ||
13795 | ||
13796 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
13797 | PyObject *pyobj; | |
13798 | ||
13799 | { | |
13800 | #if wxUSE_UNICODE | |
13801 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13802 | #else | |
13803 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13804 | #endif | |
13805 | } | |
13806 | return pyobj; | |
13807 | } | |
13808 | ||
13809 | ||
13810 | static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { | |
13811 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); | |
13812 | return 1; | |
13813 | } | |
13814 | ||
13815 | ||
13816 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
13817 | PyObject *pyobj; | |
13818 | ||
13819 | { | |
13820 | #if wxUSE_UNICODE | |
13821 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13822 | #else | |
13823 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13824 | #endif | |
13825 | } | |
13826 | return pyobj; | |
13827 | } | |
13828 | ||
13829 | ||
13830 | static int _wrap_ART_GO_BACK_set(PyObject *_val) { | |
13831 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); | |
13832 | return 1; | |
13833 | } | |
13834 | ||
13835 | ||
13836 | static PyObject *_wrap_ART_GO_BACK_get() { | |
13837 | PyObject *pyobj; | |
13838 | ||
13839 | { | |
13840 | #if wxUSE_UNICODE | |
13841 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13842 | #else | |
13843 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13844 | #endif | |
13845 | } | |
13846 | return pyobj; | |
13847 | } | |
13848 | ||
13849 | ||
13850 | static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { | |
13851 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); | |
13852 | return 1; | |
13853 | } | |
13854 | ||
13855 | ||
13856 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
13857 | PyObject *pyobj; | |
13858 | ||
13859 | { | |
13860 | #if wxUSE_UNICODE | |
13861 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13862 | #else | |
13863 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13864 | #endif | |
13865 | } | |
13866 | return pyobj; | |
13867 | } | |
13868 | ||
13869 | ||
13870 | static int _wrap_ART_GO_UP_set(PyObject *_val) { | |
13871 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); | |
13872 | return 1; | |
13873 | } | |
13874 | ||
13875 | ||
13876 | static PyObject *_wrap_ART_GO_UP_get() { | |
13877 | PyObject *pyobj; | |
13878 | ||
13879 | { | |
13880 | #if wxUSE_UNICODE | |
13881 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13882 | #else | |
13883 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13884 | #endif | |
13885 | } | |
13886 | return pyobj; | |
13887 | } | |
13888 | ||
13889 | ||
13890 | static int _wrap_ART_GO_DOWN_set(PyObject *_val) { | |
13891 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); | |
13892 | return 1; | |
13893 | } | |
13894 | ||
13895 | ||
13896 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
13897 | PyObject *pyobj; | |
13898 | ||
13899 | { | |
13900 | #if wxUSE_UNICODE | |
13901 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13902 | #else | |
13903 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13904 | #endif | |
13905 | } | |
13906 | return pyobj; | |
13907 | } | |
13908 | ||
13909 | ||
13910 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { | |
13911 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); | |
13912 | return 1; | |
13913 | } | |
13914 | ||
13915 | ||
13916 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
13917 | PyObject *pyobj; | |
13918 | ||
13919 | { | |
13920 | #if wxUSE_UNICODE | |
13921 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13922 | #else | |
13923 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13924 | #endif | |
13925 | } | |
13926 | return pyobj; | |
13927 | } | |
13928 | ||
13929 | ||
13930 | static int _wrap_ART_GO_HOME_set(PyObject *_val) { | |
13931 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); | |
13932 | return 1; | |
13933 | } | |
13934 | ||
13935 | ||
13936 | static PyObject *_wrap_ART_GO_HOME_get() { | |
13937 | PyObject *pyobj; | |
13938 | ||
13939 | { | |
13940 | #if wxUSE_UNICODE | |
13941 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13942 | #else | |
13943 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13944 | #endif | |
13945 | } | |
13946 | return pyobj; | |
13947 | } | |
13948 | ||
13949 | ||
13950 | static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { | |
13951 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); | |
13952 | return 1; | |
13953 | } | |
13954 | ||
13955 | ||
13956 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
13957 | PyObject *pyobj; | |
13958 | ||
13959 | { | |
13960 | #if wxUSE_UNICODE | |
13961 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13962 | #else | |
13963 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13964 | #endif | |
13965 | } | |
13966 | return pyobj; | |
13967 | } | |
13968 | ||
13969 | ||
13970 | static int _wrap_ART_PRINT_set(PyObject *_val) { | |
13971 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); | |
13972 | return 1; | |
13973 | } | |
13974 | ||
13975 | ||
13976 | static PyObject *_wrap_ART_PRINT_get() { | |
13977 | PyObject *pyobj; | |
13978 | ||
13979 | { | |
13980 | #if wxUSE_UNICODE | |
13981 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13982 | #else | |
13983 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13984 | #endif | |
13985 | } | |
13986 | return pyobj; | |
13987 | } | |
13988 | ||
13989 | ||
13990 | static int _wrap_ART_HELP_set(PyObject *_val) { | |
13991 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); | |
13992 | return 1; | |
13993 | } | |
13994 | ||
13995 | ||
13996 | static PyObject *_wrap_ART_HELP_get() { | |
13997 | PyObject *pyobj; | |
13998 | ||
13999 | { | |
14000 | #if wxUSE_UNICODE | |
14001 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14002 | #else | |
14003 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14004 | #endif | |
14005 | } | |
14006 | return pyobj; | |
14007 | } | |
14008 | ||
14009 | ||
14010 | static int _wrap_ART_TIP_set(PyObject *_val) { | |
14011 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); | |
14012 | return 1; | |
14013 | } | |
14014 | ||
14015 | ||
14016 | static PyObject *_wrap_ART_TIP_get() { | |
14017 | PyObject *pyobj; | |
14018 | ||
14019 | { | |
14020 | #if wxUSE_UNICODE | |
14021 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14022 | #else | |
14023 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14024 | #endif | |
14025 | } | |
14026 | return pyobj; | |
14027 | } | |
14028 | ||
14029 | ||
14030 | static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { | |
14031 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); | |
14032 | return 1; | |
14033 | } | |
14034 | ||
14035 | ||
14036 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
14037 | PyObject *pyobj; | |
14038 | ||
14039 | { | |
14040 | #if wxUSE_UNICODE | |
14041 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14042 | #else | |
14043 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14044 | #endif | |
14045 | } | |
14046 | return pyobj; | |
14047 | } | |
14048 | ||
14049 | ||
14050 | static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { | |
14051 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); | |
14052 | return 1; | |
14053 | } | |
14054 | ||
14055 | ||
14056 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
14057 | PyObject *pyobj; | |
14058 | ||
14059 | { | |
14060 | #if wxUSE_UNICODE | |
14061 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14062 | #else | |
14063 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14064 | #endif | |
14065 | } | |
14066 | return pyobj; | |
14067 | } | |
14068 | ||
14069 | ||
14070 | static int _wrap_ART_NEW_DIR_set(PyObject *_val) { | |
14071 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); | |
14072 | return 1; | |
14073 | } | |
14074 | ||
14075 | ||
14076 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
14077 | PyObject *pyobj; | |
14078 | ||
14079 | { | |
14080 | #if wxUSE_UNICODE | |
14081 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14082 | #else | |
14083 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14084 | #endif | |
14085 | } | |
14086 | return pyobj; | |
14087 | } | |
14088 | ||
14089 | ||
14090 | static int _wrap_ART_FOLDER_set(PyObject *_val) { | |
14091 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); | |
14092 | return 1; | |
14093 | } | |
14094 | ||
14095 | ||
14096 | static PyObject *_wrap_ART_FOLDER_get() { | |
14097 | PyObject *pyobj; | |
14098 | ||
14099 | { | |
14100 | #if wxUSE_UNICODE | |
14101 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14102 | #else | |
14103 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14104 | #endif | |
14105 | } | |
14106 | return pyobj; | |
14107 | } | |
14108 | ||
14109 | ||
14110 | static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { | |
14111 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); | |
14112 | return 1; | |
14113 | } | |
14114 | ||
14115 | ||
14116 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
14117 | PyObject *pyobj; | |
14118 | ||
14119 | { | |
14120 | #if wxUSE_UNICODE | |
14121 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14122 | #else | |
14123 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14124 | #endif | |
14125 | } | |
14126 | return pyobj; | |
14127 | } | |
14128 | ||
14129 | ||
14130 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { | |
14131 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); | |
14132 | return 1; | |
14133 | } | |
14134 | ||
14135 | ||
14136 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
14137 | PyObject *pyobj; | |
14138 | ||
14139 | { | |
14140 | #if wxUSE_UNICODE | |
14141 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14142 | #else | |
14143 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14144 | #endif | |
14145 | } | |
14146 | return pyobj; | |
14147 | } | |
14148 | ||
14149 | ||
14150 | static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { | |
14151 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); | |
14152 | return 1; | |
14153 | } | |
14154 | ||
14155 | ||
14156 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
14157 | PyObject *pyobj; | |
14158 | ||
14159 | { | |
14160 | #if wxUSE_UNICODE | |
14161 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14162 | #else | |
14163 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14164 | #endif | |
14165 | } | |
14166 | return pyobj; | |
14167 | } | |
14168 | ||
14169 | ||
14170 | static int _wrap_ART_TICK_MARK_set(PyObject *_val) { | |
14171 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); | |
14172 | return 1; | |
14173 | } | |
14174 | ||
14175 | ||
14176 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
14177 | PyObject *pyobj; | |
14178 | ||
14179 | { | |
14180 | #if wxUSE_UNICODE | |
14181 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14182 | #else | |
14183 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14184 | #endif | |
14185 | } | |
14186 | return pyobj; | |
14187 | } | |
14188 | ||
14189 | ||
14190 | static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { | |
14191 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); | |
14192 | return 1; | |
14193 | } | |
14194 | ||
14195 | ||
14196 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
14197 | PyObject *pyobj; | |
14198 | ||
14199 | { | |
14200 | #if wxUSE_UNICODE | |
14201 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14202 | #else | |
14203 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14204 | #endif | |
14205 | } | |
14206 | return pyobj; | |
14207 | } | |
14208 | ||
14209 | ||
14210 | static int _wrap_ART_ERROR_set(PyObject *_val) { | |
14211 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); | |
14212 | return 1; | |
14213 | } | |
14214 | ||
14215 | ||
14216 | static PyObject *_wrap_ART_ERROR_get() { | |
14217 | PyObject *pyobj; | |
14218 | ||
14219 | { | |
14220 | #if wxUSE_UNICODE | |
14221 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14222 | #else | |
14223 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14224 | #endif | |
14225 | } | |
14226 | return pyobj; | |
14227 | } | |
14228 | ||
14229 | ||
14230 | static int _wrap_ART_QUESTION_set(PyObject *_val) { | |
14231 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); | |
14232 | return 1; | |
14233 | } | |
14234 | ||
14235 | ||
14236 | static PyObject *_wrap_ART_QUESTION_get() { | |
14237 | PyObject *pyobj; | |
14238 | ||
14239 | { | |
14240 | #if wxUSE_UNICODE | |
14241 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14242 | #else | |
14243 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14244 | #endif | |
14245 | } | |
14246 | return pyobj; | |
14247 | } | |
14248 | ||
14249 | ||
14250 | static int _wrap_ART_WARNING_set(PyObject *_val) { | |
14251 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); | |
14252 | return 1; | |
14253 | } | |
14254 | ||
14255 | ||
14256 | static PyObject *_wrap_ART_WARNING_get() { | |
14257 | PyObject *pyobj; | |
14258 | ||
14259 | { | |
14260 | #if wxUSE_UNICODE | |
14261 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14262 | #else | |
14263 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14264 | #endif | |
14265 | } | |
14266 | return pyobj; | |
14267 | } | |
14268 | ||
14269 | ||
14270 | static int _wrap_ART_INFORMATION_set(PyObject *_val) { | |
14271 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); | |
14272 | return 1; | |
14273 | } | |
14274 | ||
14275 | ||
14276 | static PyObject *_wrap_ART_INFORMATION_get() { | |
14277 | PyObject *pyobj; | |
14278 | ||
14279 | { | |
14280 | #if wxUSE_UNICODE | |
14281 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14282 | #else | |
14283 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14284 | #endif | |
14285 | } | |
14286 | return pyobj; | |
14287 | } | |
14288 | ||
14289 | ||
14290 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { | |
14291 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); | |
14292 | return 1; | |
14293 | } | |
14294 | ||
14295 | ||
14296 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
14297 | PyObject *pyobj; | |
14298 | ||
14299 | { | |
14300 | #if wxUSE_UNICODE | |
14301 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14302 | #else | |
14303 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14304 | #endif | |
14305 | } | |
14306 | return pyobj; | |
14307 | } | |
14308 | ||
14309 | ||
14310 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14311 | PyObject *resultobj; | |
14312 | wxPyArtProvider *result; | |
14313 | char *kwnames[] = { | |
14314 | NULL | |
14315 | }; | |
14316 | ||
14317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
14318 | { | |
14319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14320 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
14321 | ||
14322 | wxPyEndAllowThreads(__tstate); | |
14323 | if (PyErr_Occurred()) SWIG_fail; | |
14324 | } | |
15afbcd0 | 14325 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); |
d14a1e28 RD |
14326 | return resultobj; |
14327 | fail: | |
14328 | return NULL; | |
14329 | } | |
14330 | ||
14331 | ||
d14a1e28 RD |
14332 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
14333 | PyObject *resultobj; | |
14334 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14335 | PyObject *arg2 = (PyObject *) 0 ; | |
14336 | PyObject *arg3 = (PyObject *) 0 ; | |
14337 | PyObject * obj0 = 0 ; | |
14338 | PyObject * obj1 = 0 ; | |
14339 | PyObject * obj2 = 0 ; | |
14340 | char *kwnames[] = { | |
14341 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14342 | }; | |
14343 | ||
14344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
14345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14347 | arg2 = obj1; |
14348 | arg3 = obj2; | |
14349 | { | |
14350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14351 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14352 | ||
14353 | wxPyEndAllowThreads(__tstate); | |
14354 | if (PyErr_Occurred()) SWIG_fail; | |
14355 | } | |
14356 | Py_INCREF(Py_None); resultobj = Py_None; | |
14357 | return resultobj; | |
14358 | fail: | |
14359 | return NULL; | |
14360 | } | |
14361 | ||
14362 | ||
14363 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14364 | PyObject *resultobj; | |
14365 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14366 | PyObject * obj0 = 0 ; | |
14367 | char *kwnames[] = { | |
14368 | (char *) "provider", NULL | |
14369 | }; | |
14370 | ||
14371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14374 | { |
14375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14376 | wxPyArtProvider::PushProvider(arg1); | |
14377 | ||
14378 | wxPyEndAllowThreads(__tstate); | |
14379 | if (PyErr_Occurred()) SWIG_fail; | |
14380 | } | |
14381 | Py_INCREF(Py_None); resultobj = Py_None; | |
14382 | return resultobj; | |
14383 | fail: | |
14384 | return NULL; | |
14385 | } | |
14386 | ||
14387 | ||
14388 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14389 | PyObject *resultobj; | |
14390 | bool result; | |
14391 | char *kwnames[] = { | |
14392 | NULL | |
14393 | }; | |
14394 | ||
14395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
14396 | { | |
14397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14398 | result = (bool)wxPyArtProvider::PopProvider(); | |
14399 | ||
14400 | wxPyEndAllowThreads(__tstate); | |
14401 | if (PyErr_Occurred()) SWIG_fail; | |
14402 | } | |
4f89f6a3 RD |
14403 | { |
14404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14405 | } | |
d14a1e28 RD |
14406 | return resultobj; |
14407 | fail: | |
14408 | return NULL; | |
14409 | } | |
14410 | ||
14411 | ||
14412 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14413 | PyObject *resultobj; | |
14414 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14415 | bool result; | |
14416 | PyObject * obj0 = 0 ; | |
14417 | char *kwnames[] = { | |
14418 | (char *) "provider", NULL | |
14419 | }; | |
14420 | ||
14421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14424 | { |
14425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14426 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
14427 | ||
14428 | wxPyEndAllowThreads(__tstate); | |
14429 | if (PyErr_Occurred()) SWIG_fail; | |
14430 | } | |
4f89f6a3 RD |
14431 | { |
14432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14433 | } | |
d14a1e28 RD |
14434 | return resultobj; |
14435 | fail: | |
14436 | return NULL; | |
14437 | } | |
14438 | ||
14439 | ||
14440 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14441 | PyObject *resultobj; | |
14442 | wxString *arg1 = 0 ; | |
14443 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14444 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14445 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14446 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14447 | wxBitmap result; | |
e811c8ce RD |
14448 | bool temp1 = False ; |
14449 | bool temp2 = False ; | |
d14a1e28 RD |
14450 | wxSize temp3 ; |
14451 | PyObject * obj0 = 0 ; | |
14452 | PyObject * obj1 = 0 ; | |
14453 | PyObject * obj2 = 0 ; | |
14454 | char *kwnames[] = { | |
14455 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14456 | }; | |
14457 | ||
14458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14459 | { | |
14460 | arg1 = wxString_in_helper(obj0); | |
14461 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 14462 | temp1 = True; |
d14a1e28 RD |
14463 | } |
14464 | if (obj1) { | |
14465 | { | |
14466 | arg2 = wxString_in_helper(obj1); | |
14467 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14468 | temp2 = True; |
d14a1e28 RD |
14469 | } |
14470 | } | |
14471 | if (obj2) { | |
14472 | { | |
14473 | arg3 = &temp3; | |
14474 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14475 | } | |
14476 | } | |
14477 | { | |
14478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14479 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14480 | ||
14481 | wxPyEndAllowThreads(__tstate); | |
14482 | if (PyErr_Occurred()) SWIG_fail; | |
14483 | } | |
14484 | { | |
14485 | wxBitmap * resultptr; | |
14486 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 14487 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
14488 | } |
14489 | { | |
14490 | if (temp1) | |
14491 | delete arg1; | |
14492 | } | |
14493 | { | |
14494 | if (temp2) | |
14495 | delete arg2; | |
14496 | } | |
14497 | return resultobj; | |
14498 | fail: | |
14499 | { | |
14500 | if (temp1) | |
14501 | delete arg1; | |
14502 | } | |
14503 | { | |
14504 | if (temp2) | |
14505 | delete arg2; | |
14506 | } | |
14507 | return NULL; | |
14508 | } | |
14509 | ||
14510 | ||
14511 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14512 | PyObject *resultobj; | |
14513 | wxString *arg1 = 0 ; | |
14514 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14515 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14516 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14517 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14518 | wxIcon result; | |
e811c8ce RD |
14519 | bool temp1 = False ; |
14520 | bool temp2 = False ; | |
d14a1e28 RD |
14521 | wxSize temp3 ; |
14522 | PyObject * obj0 = 0 ; | |
14523 | PyObject * obj1 = 0 ; | |
14524 | PyObject * obj2 = 0 ; | |
14525 | char *kwnames[] = { | |
14526 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14527 | }; | |
14528 | ||
14529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14530 | { | |
14531 | arg1 = wxString_in_helper(obj0); | |
14532 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 14533 | temp1 = True; |
d14a1e28 RD |
14534 | } |
14535 | if (obj1) { | |
14536 | { | |
14537 | arg2 = wxString_in_helper(obj1); | |
14538 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14539 | temp2 = True; |
d14a1e28 RD |
14540 | } |
14541 | } | |
14542 | if (obj2) { | |
14543 | { | |
14544 | arg3 = &temp3; | |
14545 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14546 | } | |
14547 | } | |
14548 | { | |
14549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14550 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14551 | ||
14552 | wxPyEndAllowThreads(__tstate); | |
14553 | if (PyErr_Occurred()) SWIG_fail; | |
14554 | } | |
14555 | { | |
14556 | wxIcon * resultptr; | |
14557 | resultptr = new wxIcon((wxIcon &) result); | |
15afbcd0 | 14558 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
14559 | } |
14560 | { | |
14561 | if (temp1) | |
14562 | delete arg1; | |
14563 | } | |
14564 | { | |
14565 | if (temp2) | |
14566 | delete arg2; | |
14567 | } | |
14568 | return resultobj; | |
14569 | fail: | |
14570 | { | |
14571 | if (temp1) | |
14572 | delete arg1; | |
14573 | } | |
14574 | { | |
14575 | if (temp2) | |
14576 | delete arg2; | |
14577 | } | |
14578 | return NULL; | |
14579 | } | |
14580 | ||
14581 | ||
1e0c8722 RD |
14582 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
14583 | PyObject *resultobj; | |
14584 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14585 | PyObject * obj0 = 0 ; | |
14586 | char *kwnames[] = { | |
14587 | (char *) "self", NULL | |
14588 | }; | |
14589 | ||
14590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
14593 | { |
14594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14595 | wxPyArtProvider_Destroy(arg1); | |
14596 | ||
14597 | wxPyEndAllowThreads(__tstate); | |
14598 | if (PyErr_Occurred()) SWIG_fail; | |
14599 | } | |
14600 | Py_INCREF(Py_None); resultobj = Py_None; | |
14601 | return resultobj; | |
14602 | fail: | |
14603 | return NULL; | |
14604 | } | |
14605 | ||
14606 | ||
d14a1e28 RD |
14607 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { |
14608 | PyObject *obj; | |
14609 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14610 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
14611 | Py_INCREF(obj); | |
14612 | return Py_BuildValue((char *)""); | |
14613 | } | |
14614 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14615 | PyObject *resultobj; | |
14616 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14617 | PyObject * obj0 = 0 ; | |
14618 | char *kwnames[] = { | |
14619 | (char *) "self", NULL | |
14620 | }; | |
14621 | ||
14622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14625 | { |
14626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14627 | delete arg1; | |
14628 | ||
14629 | wxPyEndAllowThreads(__tstate); | |
14630 | if (PyErr_Occurred()) SWIG_fail; | |
14631 | } | |
14632 | Py_INCREF(Py_None); resultobj = Py_None; | |
14633 | return resultobj; | |
14634 | fail: | |
14635 | return NULL; | |
14636 | } | |
14637 | ||
14638 | ||
14639 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14640 | PyObject *resultobj; | |
14641 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14642 | wxConfigBase *result; | |
14643 | PyObject * obj0 = 0 ; | |
14644 | char *kwnames[] = { | |
b88bce5f | 14645 | (char *) "config", NULL |
d14a1e28 RD |
14646 | }; |
14647 | ||
14648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14651 | { |
14652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14653 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
14654 | ||
14655 | wxPyEndAllowThreads(__tstate); | |
14656 | if (PyErr_Occurred()) SWIG_fail; | |
14657 | } | |
15afbcd0 | 14658 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14659 | return resultobj; |
14660 | fail: | |
14661 | return NULL; | |
14662 | } | |
14663 | ||
14664 | ||
14665 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14666 | PyObject *resultobj; | |
e811c8ce | 14667 | bool arg1 = (bool) True ; |
d14a1e28 RD |
14668 | wxConfigBase *result; |
14669 | PyObject * obj0 = 0 ; | |
14670 | char *kwnames[] = { | |
14671 | (char *) "createOnDemand", NULL | |
14672 | }; | |
14673 | ||
14674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
14675 | if (obj0) { | |
15afbcd0 RD |
14676 | arg1 = (bool) SWIG_AsBool(obj0); |
14677 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14678 | } |
14679 | { | |
14680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14681 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
14682 | ||
14683 | wxPyEndAllowThreads(__tstate); | |
14684 | if (PyErr_Occurred()) SWIG_fail; | |
14685 | } | |
15afbcd0 | 14686 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14687 | return resultobj; |
14688 | fail: | |
14689 | return NULL; | |
14690 | } | |
14691 | ||
14692 | ||
14693 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14694 | PyObject *resultobj; | |
14695 | wxConfigBase *result; | |
14696 | char *kwnames[] = { | |
14697 | NULL | |
14698 | }; | |
14699 | ||
14700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
14701 | { | |
14702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14703 | result = (wxConfigBase *)wxConfigBase::Create(); | |
14704 | ||
14705 | wxPyEndAllowThreads(__tstate); | |
14706 | if (PyErr_Occurred()) SWIG_fail; | |
14707 | } | |
15afbcd0 | 14708 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14709 | return resultobj; |
14710 | fail: | |
14711 | return NULL; | |
14712 | } | |
14713 | ||
14714 | ||
14715 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14716 | PyObject *resultobj; | |
14717 | char *kwnames[] = { | |
14718 | NULL | |
14719 | }; | |
14720 | ||
14721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
14722 | { | |
14723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14724 | wxConfigBase::DontCreateOnDemand(); | |
14725 | ||
14726 | wxPyEndAllowThreads(__tstate); | |
14727 | if (PyErr_Occurred()) SWIG_fail; | |
14728 | } | |
14729 | Py_INCREF(Py_None); resultobj = Py_None; | |
14730 | return resultobj; | |
14731 | fail: | |
14732 | return NULL; | |
14733 | } | |
14734 | ||
14735 | ||
14736 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14737 | PyObject *resultobj; | |
14738 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14739 | wxString *arg2 = 0 ; | |
e811c8ce | 14740 | bool temp2 = False ; |
d14a1e28 RD |
14741 | PyObject * obj0 = 0 ; |
14742 | PyObject * obj1 = 0 ; | |
14743 | char *kwnames[] = { | |
b88bce5f | 14744 | (char *) "self",(char *) "path", NULL |
d14a1e28 RD |
14745 | }; |
14746 | ||
14747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14750 | { |
14751 | arg2 = wxString_in_helper(obj1); | |
14752 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14753 | temp2 = True; |
d14a1e28 RD |
14754 | } |
14755 | { | |
14756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14757 | (arg1)->SetPath((wxString const &)*arg2); | |
14758 | ||
14759 | wxPyEndAllowThreads(__tstate); | |
14760 | if (PyErr_Occurred()) SWIG_fail; | |
14761 | } | |
14762 | Py_INCREF(Py_None); resultobj = Py_None; | |
14763 | { | |
14764 | if (temp2) | |
14765 | delete arg2; | |
14766 | } | |
14767 | return resultobj; | |
14768 | fail: | |
14769 | { | |
14770 | if (temp2) | |
14771 | delete arg2; | |
14772 | } | |
14773 | return NULL; | |
14774 | } | |
14775 | ||
14776 | ||
14777 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14778 | PyObject *resultobj; | |
14779 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14780 | wxString *result; | |
14781 | PyObject * obj0 = 0 ; | |
14782 | char *kwnames[] = { | |
14783 | (char *) "self", NULL | |
14784 | }; | |
14785 | ||
14786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14789 | { |
14790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14791 | { | |
14792 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
14793 | result = (wxString *) &_result_ref; | |
14794 | } | |
14795 | ||
14796 | wxPyEndAllowThreads(__tstate); | |
14797 | if (PyErr_Occurred()) SWIG_fail; | |
14798 | } | |
cc6dd355 RD |
14799 | { |
14800 | #if wxUSE_UNICODE | |
14801 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14802 | #else | |
14803 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14804 | #endif | |
14805 | } | |
d14a1e28 RD |
14806 | return resultobj; |
14807 | fail: | |
14808 | return NULL; | |
14809 | } | |
14810 | ||
14811 | ||
14812 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14813 | PyObject *resultobj; | |
14814 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14815 | PyObject *result; | |
14816 | PyObject * obj0 = 0 ; | |
14817 | char *kwnames[] = { | |
14818 | (char *) "self", NULL | |
14819 | }; | |
14820 | ||
14821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14824 | { |
14825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14826 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
14827 | ||
14828 | wxPyEndAllowThreads(__tstate); | |
14829 | if (PyErr_Occurred()) SWIG_fail; | |
14830 | } | |
14831 | resultobj = result; | |
14832 | return resultobj; | |
14833 | fail: | |
14834 | return NULL; | |
14835 | } | |
14836 | ||
14837 | ||
14838 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14839 | PyObject *resultobj; | |
14840 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14841 | long arg2 ; | |
14842 | PyObject *result; | |
14843 | PyObject * obj0 = 0 ; | |
994141e6 | 14844 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14845 | char *kwnames[] = { |
14846 | (char *) "self",(char *) "index", NULL | |
14847 | }; | |
14848 | ||
994141e6 | 14849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14852 | arg2 = (long) SWIG_AsLong(obj1); | |
14853 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14854 | { |
14855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14856 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
14857 | ||
14858 | wxPyEndAllowThreads(__tstate); | |
14859 | if (PyErr_Occurred()) SWIG_fail; | |
14860 | } | |
14861 | resultobj = result; | |
14862 | return resultobj; | |
14863 | fail: | |
14864 | return NULL; | |
14865 | } | |
14866 | ||
14867 | ||
14868 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14869 | PyObject *resultobj; | |
14870 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14871 | PyObject *result; | |
14872 | PyObject * obj0 = 0 ; | |
14873 | char *kwnames[] = { | |
14874 | (char *) "self", NULL | |
14875 | }; | |
14876 | ||
14877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14880 | { |
14881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14882 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
14883 | ||
14884 | wxPyEndAllowThreads(__tstate); | |
14885 | if (PyErr_Occurred()) SWIG_fail; | |
14886 | } | |
14887 | resultobj = result; | |
14888 | return resultobj; | |
14889 | fail: | |
14890 | return NULL; | |
14891 | } | |
14892 | ||
14893 | ||
14894 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14895 | PyObject *resultobj; | |
14896 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14897 | long arg2 ; | |
14898 | PyObject *result; | |
14899 | PyObject * obj0 = 0 ; | |
994141e6 | 14900 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14901 | char *kwnames[] = { |
14902 | (char *) "self",(char *) "index", NULL | |
14903 | }; | |
14904 | ||
994141e6 | 14905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14908 | arg2 = (long) SWIG_AsLong(obj1); | |
14909 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14910 | { |
14911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14912 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
14913 | ||
14914 | wxPyEndAllowThreads(__tstate); | |
14915 | if (PyErr_Occurred()) SWIG_fail; | |
14916 | } | |
14917 | resultobj = result; | |
14918 | return resultobj; | |
14919 | fail: | |
14920 | return NULL; | |
14921 | } | |
14922 | ||
14923 | ||
14924 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14925 | PyObject *resultobj; | |
14926 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 14927 | bool arg2 = (bool) False ; |
d14a1e28 RD |
14928 | size_t result; |
14929 | PyObject * obj0 = 0 ; | |
14930 | PyObject * obj1 = 0 ; | |
14931 | char *kwnames[] = { | |
b88bce5f | 14932 | (char *) "self",(char *) "recursive", NULL |
d14a1e28 RD |
14933 | }; |
14934 | ||
14935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 14938 | if (obj1) { |
15afbcd0 RD |
14939 | arg2 = (bool) SWIG_AsBool(obj1); |
14940 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14941 | } |
14942 | { | |
14943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14944 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
14945 | ||
14946 | wxPyEndAllowThreads(__tstate); | |
14947 | if (PyErr_Occurred()) SWIG_fail; | |
14948 | } | |
15afbcd0 | 14949 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
14950 | return resultobj; |
14951 | fail: | |
14952 | return NULL; | |
14953 | } | |
14954 | ||
14955 | ||
14956 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14957 | PyObject *resultobj; | |
14958 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 14959 | bool arg2 = (bool) False ; |
d14a1e28 RD |
14960 | size_t result; |
14961 | PyObject * obj0 = 0 ; | |
14962 | PyObject * obj1 = 0 ; | |
14963 | char *kwnames[] = { | |
b88bce5f | 14964 | (char *) "self",(char *) "recursive", NULL |
d14a1e28 RD |
14965 | }; |
14966 | ||
14967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 14970 | if (obj1) { |
15afbcd0 RD |
14971 | arg2 = (bool) SWIG_AsBool(obj1); |
14972 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14973 | } |
14974 | { | |
14975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14976 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
14977 | ||
14978 | wxPyEndAllowThreads(__tstate); | |
14979 | if (PyErr_Occurred()) SWIG_fail; | |
14980 | } | |
15afbcd0 | 14981 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
14982 | return resultobj; |
14983 | fail: | |
14984 | return NULL; | |
14985 | } | |
14986 | ||
14987 | ||
14988 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14989 | PyObject *resultobj; | |
14990 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14991 | wxString *arg2 = 0 ; | |
14992 | bool result; | |
e811c8ce | 14993 | bool temp2 = False ; |
d14a1e28 RD |
14994 | PyObject * obj0 = 0 ; |
14995 | PyObject * obj1 = 0 ; | |
14996 | char *kwnames[] = { | |
b88bce5f | 14997 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
14998 | }; |
14999 | ||
15000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15003 | { |
15004 | arg2 = wxString_in_helper(obj1); | |
15005 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15006 | temp2 = True; |
d14a1e28 RD |
15007 | } |
15008 | { | |
15009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15010 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
15011 | ||
15012 | wxPyEndAllowThreads(__tstate); | |
15013 | if (PyErr_Occurred()) SWIG_fail; | |
15014 | } | |
4f89f6a3 RD |
15015 | { |
15016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15017 | } | |
d14a1e28 RD |
15018 | { |
15019 | if (temp2) | |
15020 | delete arg2; | |
15021 | } | |
15022 | return resultobj; | |
15023 | fail: | |
15024 | { | |
15025 | if (temp2) | |
15026 | delete arg2; | |
15027 | } | |
15028 | return NULL; | |
15029 | } | |
15030 | ||
15031 | ||
15032 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15033 | PyObject *resultobj; | |
15034 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15035 | wxString *arg2 = 0 ; | |
15036 | bool result; | |
e811c8ce | 15037 | bool temp2 = False ; |
d14a1e28 RD |
15038 | PyObject * obj0 = 0 ; |
15039 | PyObject * obj1 = 0 ; | |
15040 | char *kwnames[] = { | |
b88bce5f | 15041 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
15042 | }; |
15043 | ||
15044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15047 | { |
15048 | arg2 = wxString_in_helper(obj1); | |
15049 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15050 | temp2 = True; |
d14a1e28 RD |
15051 | } |
15052 | { | |
15053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15054 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
15055 | ||
15056 | wxPyEndAllowThreads(__tstate); | |
15057 | if (PyErr_Occurred()) SWIG_fail; | |
15058 | } | |
4f89f6a3 RD |
15059 | { |
15060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15061 | } | |
d14a1e28 RD |
15062 | { |
15063 | if (temp2) | |
15064 | delete arg2; | |
15065 | } | |
15066 | return resultobj; | |
15067 | fail: | |
15068 | { | |
15069 | if (temp2) | |
15070 | delete arg2; | |
15071 | } | |
15072 | return NULL; | |
15073 | } | |
15074 | ||
15075 | ||
15076 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15077 | PyObject *resultobj; | |
15078 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15079 | wxString *arg2 = 0 ; | |
15080 | bool result; | |
e811c8ce | 15081 | bool temp2 = False ; |
d14a1e28 RD |
15082 | PyObject * obj0 = 0 ; |
15083 | PyObject * obj1 = 0 ; | |
15084 | char *kwnames[] = { | |
b88bce5f | 15085 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
15086 | }; |
15087 | ||
15088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15091 | { |
15092 | arg2 = wxString_in_helper(obj1); | |
15093 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15094 | temp2 = True; |
d14a1e28 RD |
15095 | } |
15096 | { | |
15097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15098 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
15099 | ||
15100 | wxPyEndAllowThreads(__tstate); | |
15101 | if (PyErr_Occurred()) SWIG_fail; | |
15102 | } | |
4f89f6a3 RD |
15103 | { |
15104 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15105 | } | |
d14a1e28 RD |
15106 | { |
15107 | if (temp2) | |
15108 | delete arg2; | |
15109 | } | |
15110 | return resultobj; | |
15111 | fail: | |
15112 | { | |
15113 | if (temp2) | |
15114 | delete arg2; | |
15115 | } | |
15116 | return NULL; | |
15117 | } | |
15118 | ||
15119 | ||
15120 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15121 | PyObject *resultobj; | |
15122 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15123 | wxString *arg2 = 0 ; | |
15124 | int result; | |
e811c8ce | 15125 | bool temp2 = False ; |
d14a1e28 RD |
15126 | PyObject * obj0 = 0 ; |
15127 | PyObject * obj1 = 0 ; | |
15128 | char *kwnames[] = { | |
15129 | (char *) "self",(char *) "name", NULL | |
15130 | }; | |
15131 | ||
15132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15135 | { |
15136 | arg2 = wxString_in_helper(obj1); | |
15137 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15138 | temp2 = True; |
d14a1e28 RD |
15139 | } |
15140 | { | |
15141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15142 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
15143 | ||
15144 | wxPyEndAllowThreads(__tstate); | |
15145 | if (PyErr_Occurred()) SWIG_fail; | |
15146 | } | |
15afbcd0 | 15147 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15148 | { |
15149 | if (temp2) | |
15150 | delete arg2; | |
15151 | } | |
15152 | return resultobj; | |
15153 | fail: | |
15154 | { | |
15155 | if (temp2) | |
15156 | delete arg2; | |
15157 | } | |
15158 | return NULL; | |
15159 | } | |
15160 | ||
15161 | ||
15162 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15163 | PyObject *resultobj; | |
15164 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15165 | wxString *arg2 = 0 ; | |
15166 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15167 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15168 | wxString result; | |
e811c8ce RD |
15169 | bool temp2 = False ; |
15170 | bool temp3 = False ; | |
d14a1e28 RD |
15171 | PyObject * obj0 = 0 ; |
15172 | PyObject * obj1 = 0 ; | |
15173 | PyObject * obj2 = 0 ; | |
15174 | char *kwnames[] = { | |
15175 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15176 | }; | |
15177 | ||
15178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15181 | { |
15182 | arg2 = wxString_in_helper(obj1); | |
15183 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15184 | temp2 = True; |
d14a1e28 RD |
15185 | } |
15186 | if (obj2) { | |
15187 | { | |
15188 | arg3 = wxString_in_helper(obj2); | |
15189 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15190 | temp3 = True; |
d14a1e28 RD |
15191 | } |
15192 | } | |
15193 | { | |
15194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15195 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
15196 | ||
15197 | wxPyEndAllowThreads(__tstate); | |
15198 | if (PyErr_Occurred()) SWIG_fail; | |
15199 | } | |
15200 | { | |
15201 | #if wxUSE_UNICODE | |
15202 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15203 | #else | |
15204 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15205 | #endif | |
15206 | } | |
15207 | { | |
15208 | if (temp2) | |
15209 | delete arg2; | |
15210 | } | |
15211 | { | |
15212 | if (temp3) | |
15213 | delete arg3; | |
15214 | } | |
15215 | return resultobj; | |
15216 | fail: | |
15217 | { | |
15218 | if (temp2) | |
15219 | delete arg2; | |
15220 | } | |
15221 | { | |
15222 | if (temp3) | |
15223 | delete arg3; | |
15224 | } | |
15225 | return NULL; | |
15226 | } | |
15227 | ||
15228 | ||
15229 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15230 | PyObject *resultobj; | |
15231 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15232 | wxString *arg2 = 0 ; | |
15233 | long arg3 = (long) 0 ; | |
15234 | long result; | |
e811c8ce | 15235 | bool temp2 = False ; |
d14a1e28 RD |
15236 | PyObject * obj0 = 0 ; |
15237 | PyObject * obj1 = 0 ; | |
994141e6 | 15238 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15239 | char *kwnames[] = { |
15240 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15241 | }; | |
15242 | ||
994141e6 | 15243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15246 | { |
15247 | arg2 = wxString_in_helper(obj1); | |
15248 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15249 | temp2 = True; |
d14a1e28 | 15250 | } |
994141e6 | 15251 | if (obj2) { |
15afbcd0 RD |
15252 | arg3 = (long) SWIG_AsLong(obj2); |
15253 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15254 | } |
d14a1e28 RD |
15255 | { |
15256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15257 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
15258 | ||
15259 | wxPyEndAllowThreads(__tstate); | |
15260 | if (PyErr_Occurred()) SWIG_fail; | |
15261 | } | |
15afbcd0 | 15262 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
15263 | { |
15264 | if (temp2) | |
15265 | delete arg2; | |
15266 | } | |
15267 | return resultobj; | |
15268 | fail: | |
15269 | { | |
15270 | if (temp2) | |
15271 | delete arg2; | |
15272 | } | |
15273 | return NULL; | |
15274 | } | |
15275 | ||
15276 | ||
15277 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15278 | PyObject *resultobj; | |
15279 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15280 | wxString *arg2 = 0 ; | |
15281 | double arg3 = (double) 0.0 ; | |
15282 | double result; | |
e811c8ce | 15283 | bool temp2 = False ; |
d14a1e28 RD |
15284 | PyObject * obj0 = 0 ; |
15285 | PyObject * obj1 = 0 ; | |
994141e6 | 15286 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15287 | char *kwnames[] = { |
15288 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15289 | }; | |
15290 | ||
994141e6 | 15291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15294 | { |
15295 | arg2 = wxString_in_helper(obj1); | |
15296 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15297 | temp2 = True; |
d14a1e28 | 15298 | } |
994141e6 | 15299 | if (obj2) { |
15afbcd0 RD |
15300 | arg3 = (double) SWIG_AsDouble(obj2); |
15301 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15302 | } |
d14a1e28 RD |
15303 | { |
15304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15305 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
15306 | ||
15307 | wxPyEndAllowThreads(__tstate); | |
15308 | if (PyErr_Occurred()) SWIG_fail; | |
15309 | } | |
15afbcd0 | 15310 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
15311 | { |
15312 | if (temp2) | |
15313 | delete arg2; | |
15314 | } | |
15315 | return resultobj; | |
15316 | fail: | |
15317 | { | |
15318 | if (temp2) | |
15319 | delete arg2; | |
15320 | } | |
15321 | return NULL; | |
15322 | } | |
15323 | ||
15324 | ||
15325 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15326 | PyObject *resultobj; | |
15327 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15328 | wxString *arg2 = 0 ; | |
e811c8ce | 15329 | bool arg3 = (bool) False ; |
d14a1e28 | 15330 | bool result; |
e811c8ce | 15331 | bool temp2 = False ; |
d14a1e28 RD |
15332 | PyObject * obj0 = 0 ; |
15333 | PyObject * obj1 = 0 ; | |
15334 | PyObject * obj2 = 0 ; | |
15335 | char *kwnames[] = { | |
15336 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15337 | }; | |
15338 | ||
15339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15342 | { |
15343 | arg2 = wxString_in_helper(obj1); | |
15344 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15345 | temp2 = True; |
d14a1e28 RD |
15346 | } |
15347 | if (obj2) { | |
15afbcd0 RD |
15348 | arg3 = (bool) SWIG_AsBool(obj2); |
15349 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15350 | } |
15351 | { | |
15352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15353 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
15354 | ||
15355 | wxPyEndAllowThreads(__tstate); | |
15356 | if (PyErr_Occurred()) SWIG_fail; | |
15357 | } | |
4f89f6a3 RD |
15358 | { |
15359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15360 | } | |
d14a1e28 RD |
15361 | { |
15362 | if (temp2) | |
15363 | delete arg2; | |
15364 | } | |
15365 | return resultobj; | |
15366 | fail: | |
15367 | { | |
15368 | if (temp2) | |
15369 | delete arg2; | |
15370 | } | |
15371 | return NULL; | |
15372 | } | |
15373 | ||
15374 | ||
15375 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15376 | PyObject *resultobj; | |
15377 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15378 | wxString *arg2 = 0 ; | |
15379 | wxString *arg3 = 0 ; | |
15380 | bool result; | |
e811c8ce RD |
15381 | bool temp2 = False ; |
15382 | bool temp3 = False ; | |
d14a1e28 RD |
15383 | PyObject * obj0 = 0 ; |
15384 | PyObject * obj1 = 0 ; | |
15385 | PyObject * obj2 = 0 ; | |
15386 | char *kwnames[] = { | |
15387 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15388 | }; | |
15389 | ||
15390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15393 | { |
15394 | arg2 = wxString_in_helper(obj1); | |
15395 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15396 | temp2 = True; |
d14a1e28 RD |
15397 | } |
15398 | { | |
15399 | arg3 = wxString_in_helper(obj2); | |
15400 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15401 | temp3 = True; |
d14a1e28 RD |
15402 | } |
15403 | { | |
15404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15405 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
15406 | ||
15407 | wxPyEndAllowThreads(__tstate); | |
15408 | if (PyErr_Occurred()) SWIG_fail; | |
15409 | } | |
4f89f6a3 RD |
15410 | { |
15411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15412 | } | |
d14a1e28 RD |
15413 | { |
15414 | if (temp2) | |
15415 | delete arg2; | |
15416 | } | |
15417 | { | |
15418 | if (temp3) | |
15419 | delete arg3; | |
15420 | } | |
15421 | return resultobj; | |
15422 | fail: | |
15423 | { | |
15424 | if (temp2) | |
15425 | delete arg2; | |
15426 | } | |
15427 | { | |
15428 | if (temp3) | |
15429 | delete arg3; | |
15430 | } | |
15431 | return NULL; | |
15432 | } | |
15433 | ||
15434 | ||
15435 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15436 | PyObject *resultobj; | |
15437 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15438 | wxString *arg2 = 0 ; | |
15439 | long arg3 ; | |
15440 | bool result; | |
e811c8ce | 15441 | bool temp2 = False ; |
d14a1e28 RD |
15442 | PyObject * obj0 = 0 ; |
15443 | PyObject * obj1 = 0 ; | |
994141e6 | 15444 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15445 | char *kwnames[] = { |
15446 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15447 | }; | |
15448 | ||
994141e6 | 15449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15452 | { |
15453 | arg2 = wxString_in_helper(obj1); | |
15454 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15455 | temp2 = True; |
d14a1e28 | 15456 | } |
15afbcd0 RD |
15457 | arg3 = (long) SWIG_AsLong(obj2); |
15458 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15459 | { |
15460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15461 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15462 | ||
15463 | wxPyEndAllowThreads(__tstate); | |
15464 | if (PyErr_Occurred()) SWIG_fail; | |
15465 | } | |
4f89f6a3 RD |
15466 | { |
15467 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15468 | } | |
d14a1e28 RD |
15469 | { |
15470 | if (temp2) | |
15471 | delete arg2; | |
15472 | } | |
15473 | return resultobj; | |
15474 | fail: | |
15475 | { | |
15476 | if (temp2) | |
15477 | delete arg2; | |
15478 | } | |
15479 | return NULL; | |
15480 | } | |
15481 | ||
15482 | ||
15483 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15484 | PyObject *resultobj; | |
15485 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15486 | wxString *arg2 = 0 ; | |
15487 | double arg3 ; | |
15488 | bool result; | |
e811c8ce | 15489 | bool temp2 = False ; |
d14a1e28 RD |
15490 | PyObject * obj0 = 0 ; |
15491 | PyObject * obj1 = 0 ; | |
994141e6 | 15492 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15493 | char *kwnames[] = { |
15494 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15495 | }; | |
15496 | ||
994141e6 | 15497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15500 | { |
15501 | arg2 = wxString_in_helper(obj1); | |
15502 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15503 | temp2 = True; |
d14a1e28 | 15504 | } |
15afbcd0 RD |
15505 | arg3 = (double) SWIG_AsDouble(obj2); |
15506 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15507 | { |
15508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15509 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15510 | ||
15511 | wxPyEndAllowThreads(__tstate); | |
15512 | if (PyErr_Occurred()) SWIG_fail; | |
15513 | } | |
4f89f6a3 RD |
15514 | { |
15515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15516 | } | |
d14a1e28 RD |
15517 | { |
15518 | if (temp2) | |
15519 | delete arg2; | |
15520 | } | |
15521 | return resultobj; | |
15522 | fail: | |
15523 | { | |
15524 | if (temp2) | |
15525 | delete arg2; | |
15526 | } | |
15527 | return NULL; | |
15528 | } | |
15529 | ||
15530 | ||
15531 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15532 | PyObject *resultobj; | |
15533 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15534 | wxString *arg2 = 0 ; | |
15535 | bool arg3 ; | |
15536 | bool result; | |
e811c8ce | 15537 | bool temp2 = False ; |
d14a1e28 RD |
15538 | PyObject * obj0 = 0 ; |
15539 | PyObject * obj1 = 0 ; | |
15540 | PyObject * obj2 = 0 ; | |
15541 | char *kwnames[] = { | |
15542 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15543 | }; | |
15544 | ||
15545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15548 | { |
15549 | arg2 = wxString_in_helper(obj1); | |
15550 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15551 | temp2 = True; |
d14a1e28 | 15552 | } |
15afbcd0 RD |
15553 | arg3 = (bool) SWIG_AsBool(obj2); |
15554 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15555 | { |
15556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15557 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15558 | ||
15559 | wxPyEndAllowThreads(__tstate); | |
15560 | if (PyErr_Occurred()) SWIG_fail; | |
15561 | } | |
4f89f6a3 RD |
15562 | { |
15563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15564 | } | |
d14a1e28 RD |
15565 | { |
15566 | if (temp2) | |
15567 | delete arg2; | |
15568 | } | |
15569 | return resultobj; | |
15570 | fail: | |
15571 | { | |
15572 | if (temp2) | |
15573 | delete arg2; | |
15574 | } | |
15575 | return NULL; | |
15576 | } | |
15577 | ||
15578 | ||
15579 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15580 | PyObject *resultobj; | |
15581 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 15582 | bool arg2 = (bool) False ; |
d14a1e28 RD |
15583 | bool result; |
15584 | PyObject * obj0 = 0 ; | |
15585 | PyObject * obj1 = 0 ; | |
15586 | char *kwnames[] = { | |
b88bce5f | 15587 | (char *) "self",(char *) "currentOnly", NULL |
d14a1e28 RD |
15588 | }; |
15589 | ||
15590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15593 | if (obj1) { |
15afbcd0 RD |
15594 | arg2 = (bool) SWIG_AsBool(obj1); |
15595 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15596 | } |
15597 | { | |
15598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15599 | result = (bool)(arg1)->Flush(arg2); | |
15600 | ||
15601 | wxPyEndAllowThreads(__tstate); | |
15602 | if (PyErr_Occurred()) SWIG_fail; | |
15603 | } | |
4f89f6a3 RD |
15604 | { |
15605 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15606 | } | |
d14a1e28 RD |
15607 | return resultobj; |
15608 | fail: | |
15609 | return NULL; | |
15610 | } | |
15611 | ||
15612 | ||
15613 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15614 | PyObject *resultobj; | |
15615 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15616 | wxString *arg2 = 0 ; | |
15617 | wxString *arg3 = 0 ; | |
15618 | bool result; | |
e811c8ce RD |
15619 | bool temp2 = False ; |
15620 | bool temp3 = False ; | |
d14a1e28 RD |
15621 | PyObject * obj0 = 0 ; |
15622 | PyObject * obj1 = 0 ; | |
15623 | PyObject * obj2 = 0 ; | |
15624 | char *kwnames[] = { | |
15625 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15626 | }; | |
15627 | ||
15628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15631 | { |
15632 | arg2 = wxString_in_helper(obj1); | |
15633 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15634 | temp2 = True; |
d14a1e28 RD |
15635 | } |
15636 | { | |
15637 | arg3 = wxString_in_helper(obj2); | |
15638 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15639 | temp3 = True; |
d14a1e28 RD |
15640 | } |
15641 | { | |
15642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15643 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
15644 | ||
15645 | wxPyEndAllowThreads(__tstate); | |
15646 | if (PyErr_Occurred()) SWIG_fail; | |
15647 | } | |
4f89f6a3 RD |
15648 | { |
15649 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15650 | } | |
d14a1e28 RD |
15651 | { |
15652 | if (temp2) | |
15653 | delete arg2; | |
15654 | } | |
15655 | { | |
15656 | if (temp3) | |
15657 | delete arg3; | |
15658 | } | |
15659 | return resultobj; | |
15660 | fail: | |
15661 | { | |
15662 | if (temp2) | |
15663 | delete arg2; | |
15664 | } | |
15665 | { | |
15666 | if (temp3) | |
15667 | delete arg3; | |
15668 | } | |
15669 | return NULL; | |
15670 | } | |
15671 | ||
15672 | ||
15673 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15674 | PyObject *resultobj; | |
15675 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15676 | wxString *arg2 = 0 ; | |
15677 | wxString *arg3 = 0 ; | |
15678 | bool result; | |
e811c8ce RD |
15679 | bool temp2 = False ; |
15680 | bool temp3 = False ; | |
d14a1e28 RD |
15681 | PyObject * obj0 = 0 ; |
15682 | PyObject * obj1 = 0 ; | |
15683 | PyObject * obj2 = 0 ; | |
15684 | char *kwnames[] = { | |
15685 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15686 | }; | |
15687 | ||
15688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15691 | { |
15692 | arg2 = wxString_in_helper(obj1); | |
15693 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15694 | temp2 = True; |
d14a1e28 RD |
15695 | } |
15696 | { | |
15697 | arg3 = wxString_in_helper(obj2); | |
15698 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15699 | temp3 = True; |
d14a1e28 RD |
15700 | } |
15701 | { | |
15702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15703 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
15704 | ||
15705 | wxPyEndAllowThreads(__tstate); | |
15706 | if (PyErr_Occurred()) SWIG_fail; | |
15707 | } | |
4f89f6a3 RD |
15708 | { |
15709 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15710 | } | |
d14a1e28 RD |
15711 | { |
15712 | if (temp2) | |
15713 | delete arg2; | |
15714 | } | |
15715 | { | |
15716 | if (temp3) | |
15717 | delete arg3; | |
15718 | } | |
15719 | return resultobj; | |
15720 | fail: | |
15721 | { | |
15722 | if (temp2) | |
15723 | delete arg2; | |
15724 | } | |
15725 | { | |
15726 | if (temp3) | |
15727 | delete arg3; | |
15728 | } | |
15729 | return NULL; | |
15730 | } | |
15731 | ||
15732 | ||
15733 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15734 | PyObject *resultobj; | |
15735 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15736 | wxString *arg2 = 0 ; | |
e811c8ce | 15737 | bool arg3 = (bool) True ; |
d14a1e28 | 15738 | bool result; |
e811c8ce | 15739 | bool temp2 = False ; |
d14a1e28 RD |
15740 | PyObject * obj0 = 0 ; |
15741 | PyObject * obj1 = 0 ; | |
15742 | PyObject * obj2 = 0 ; | |
15743 | char *kwnames[] = { | |
b88bce5f | 15744 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL |
d14a1e28 RD |
15745 | }; |
15746 | ||
15747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15750 | { |
15751 | arg2 = wxString_in_helper(obj1); | |
15752 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15753 | temp2 = True; |
d14a1e28 RD |
15754 | } |
15755 | if (obj2) { | |
15afbcd0 RD |
15756 | arg3 = (bool) SWIG_AsBool(obj2); |
15757 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15758 | } |
15759 | { | |
15760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15761 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
15762 | ||
15763 | wxPyEndAllowThreads(__tstate); | |
15764 | if (PyErr_Occurred()) SWIG_fail; | |
15765 | } | |
4f89f6a3 RD |
15766 | { |
15767 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15768 | } | |
d14a1e28 RD |
15769 | { |
15770 | if (temp2) | |
15771 | delete arg2; | |
15772 | } | |
15773 | return resultobj; | |
15774 | fail: | |
15775 | { | |
15776 | if (temp2) | |
15777 | delete arg2; | |
15778 | } | |
15779 | return NULL; | |
15780 | } | |
15781 | ||
15782 | ||
15783 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15784 | PyObject *resultobj; | |
15785 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15786 | wxString *arg2 = 0 ; | |
15787 | bool result; | |
e811c8ce | 15788 | bool temp2 = False ; |
d14a1e28 RD |
15789 | PyObject * obj0 = 0 ; |
15790 | PyObject * obj1 = 0 ; | |
15791 | char *kwnames[] = { | |
15792 | (char *) "self",(char *) "key", NULL | |
15793 | }; | |
15794 | ||
15795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15798 | { |
15799 | arg2 = wxString_in_helper(obj1); | |
15800 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15801 | temp2 = True; |
d14a1e28 RD |
15802 | } |
15803 | { | |
15804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15805 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
15806 | ||
15807 | wxPyEndAllowThreads(__tstate); | |
15808 | if (PyErr_Occurred()) SWIG_fail; | |
15809 | } | |
4f89f6a3 RD |
15810 | { |
15811 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15812 | } | |
d14a1e28 RD |
15813 | { |
15814 | if (temp2) | |
15815 | delete arg2; | |
15816 | } | |
15817 | return resultobj; | |
15818 | fail: | |
15819 | { | |
15820 | if (temp2) | |
15821 | delete arg2; | |
15822 | } | |
15823 | return NULL; | |
15824 | } | |
15825 | ||
15826 | ||
15827 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15828 | PyObject *resultobj; | |
15829 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15830 | bool result; | |
15831 | PyObject * obj0 = 0 ; | |
15832 | char *kwnames[] = { | |
15833 | (char *) "self", NULL | |
15834 | }; | |
15835 | ||
15836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15839 | { |
15840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15841 | result = (bool)(arg1)->DeleteAll(); | |
15842 | ||
15843 | wxPyEndAllowThreads(__tstate); | |
15844 | if (PyErr_Occurred()) SWIG_fail; | |
15845 | } | |
4f89f6a3 RD |
15846 | { |
15847 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15848 | } | |
d14a1e28 RD |
15849 | return resultobj; |
15850 | fail: | |
15851 | return NULL; | |
15852 | } | |
15853 | ||
15854 | ||
b88bce5f | 15855 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15856 | PyObject *resultobj; |
15857 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b88bce5f | 15858 | bool arg2 = (bool) True ; |
d14a1e28 | 15859 | PyObject * obj0 = 0 ; |
b88bce5f | 15860 | PyObject * obj1 = 0 ; |
d14a1e28 | 15861 | char *kwnames[] = { |
b88bce5f | 15862 | (char *) "self",(char *) "doIt", NULL |
d14a1e28 RD |
15863 | }; |
15864 | ||
b88bce5f | 15865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f | 15868 | if (obj1) { |
15afbcd0 RD |
15869 | arg2 = (bool) SWIG_AsBool(obj1); |
15870 | if (PyErr_Occurred()) SWIG_fail; | |
b88bce5f | 15871 | } |
d14a1e28 RD |
15872 | { |
15873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 15874 | (arg1)->SetExpandEnvVars(arg2); |
d14a1e28 RD |
15875 | |
15876 | wxPyEndAllowThreads(__tstate); | |
15877 | if (PyErr_Occurred()) SWIG_fail; | |
15878 | } | |
b88bce5f | 15879 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
15880 | return resultobj; |
15881 | fail: | |
15882 | return NULL; | |
15883 | } | |
15884 | ||
15885 | ||
b88bce5f | 15886 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15887 | PyObject *resultobj; |
15888 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b88bce5f | 15889 | bool result; |
d14a1e28 | 15890 | PyObject * obj0 = 0 ; |
d14a1e28 | 15891 | char *kwnames[] = { |
b88bce5f | 15892 | (char *) "self", NULL |
d14a1e28 RD |
15893 | }; |
15894 | ||
b88bce5f | 15895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
15896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15898 | { |
15899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 15900 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); |
d14a1e28 RD |
15901 | |
15902 | wxPyEndAllowThreads(__tstate); | |
15903 | if (PyErr_Occurred()) SWIG_fail; | |
15904 | } | |
4f89f6a3 RD |
15905 | { |
15906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15907 | } | |
d14a1e28 RD |
15908 | return resultobj; |
15909 | fail: | |
15910 | return NULL; | |
15911 | } | |
15912 | ||
15913 | ||
15914 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15915 | PyObject *resultobj; | |
15916 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 15917 | bool arg2 = (bool) True ; |
d14a1e28 RD |
15918 | PyObject * obj0 = 0 ; |
15919 | PyObject * obj1 = 0 ; | |
15920 | char *kwnames[] = { | |
b88bce5f | 15921 | (char *) "self",(char *) "doIt", NULL |
d14a1e28 RD |
15922 | }; |
15923 | ||
15924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15927 | if (obj1) { |
15afbcd0 RD |
15928 | arg2 = (bool) SWIG_AsBool(obj1); |
15929 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15930 | } |
15931 | { | |
15932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15933 | (arg1)->SetRecordDefaults(arg2); | |
15934 | ||
15935 | wxPyEndAllowThreads(__tstate); | |
15936 | if (PyErr_Occurred()) SWIG_fail; | |
15937 | } | |
15938 | Py_INCREF(Py_None); resultobj = Py_None; | |
15939 | return resultobj; | |
15940 | fail: | |
15941 | return NULL; | |
15942 | } | |
15943 | ||
15944 | ||
15945 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15946 | PyObject *resultobj; | |
15947 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15948 | bool result; | |
15949 | PyObject * obj0 = 0 ; | |
15950 | char *kwnames[] = { | |
15951 | (char *) "self", NULL | |
15952 | }; | |
15953 | ||
15954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15957 | { |
15958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15959 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
15960 | ||
15961 | wxPyEndAllowThreads(__tstate); | |
15962 | if (PyErr_Occurred()) SWIG_fail; | |
15963 | } | |
4f89f6a3 RD |
15964 | { |
15965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15966 | } | |
d14a1e28 RD |
15967 | return resultobj; |
15968 | fail: | |
15969 | return NULL; | |
15970 | } | |
15971 | ||
15972 | ||
15973 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15974 | PyObject *resultobj; | |
15975 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15976 | wxString *arg2 = 0 ; | |
15977 | wxString result; | |
e811c8ce | 15978 | bool temp2 = False ; |
d14a1e28 RD |
15979 | PyObject * obj0 = 0 ; |
15980 | PyObject * obj1 = 0 ; | |
15981 | char *kwnames[] = { | |
15982 | (char *) "self",(char *) "str", NULL | |
15983 | }; | |
15984 | ||
15985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15988 | { |
15989 | arg2 = wxString_in_helper(obj1); | |
15990 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15991 | temp2 = True; |
d14a1e28 RD |
15992 | } |
15993 | { | |
15994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15995 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
15996 | ||
15997 | wxPyEndAllowThreads(__tstate); | |
15998 | if (PyErr_Occurred()) SWIG_fail; | |
15999 | } | |
16000 | { | |
16001 | #if wxUSE_UNICODE | |
16002 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16003 | #else | |
16004 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16005 | #endif | |
16006 | } | |
16007 | { | |
16008 | if (temp2) | |
16009 | delete arg2; | |
16010 | } | |
16011 | return resultobj; | |
16012 | fail: | |
16013 | { | |
16014 | if (temp2) | |
16015 | delete arg2; | |
16016 | } | |
16017 | return NULL; | |
16018 | } | |
16019 | ||
16020 | ||
16021 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16022 | PyObject *resultobj; | |
16023 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16024 | wxString result; | |
16025 | PyObject * obj0 = 0 ; | |
16026 | char *kwnames[] = { | |
16027 | (char *) "self", NULL | |
16028 | }; | |
16029 | ||
16030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16033 | { |
16034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16035 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
16036 | ||
16037 | wxPyEndAllowThreads(__tstate); | |
16038 | if (PyErr_Occurred()) SWIG_fail; | |
16039 | } | |
16040 | { | |
16041 | #if wxUSE_UNICODE | |
16042 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16043 | #else | |
16044 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16045 | #endif | |
16046 | } | |
16047 | return resultobj; | |
16048 | fail: | |
16049 | return NULL; | |
16050 | } | |
16051 | ||
16052 | ||
16053 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16054 | PyObject *resultobj; | |
16055 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16056 | wxString result; | |
16057 | PyObject * obj0 = 0 ; | |
16058 | char *kwnames[] = { | |
16059 | (char *) "self", NULL | |
16060 | }; | |
16061 | ||
16062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16065 | { |
16066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16067 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
16068 | ||
16069 | wxPyEndAllowThreads(__tstate); | |
16070 | if (PyErr_Occurred()) SWIG_fail; | |
16071 | } | |
16072 | { | |
16073 | #if wxUSE_UNICODE | |
16074 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16075 | #else | |
16076 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16077 | #endif | |
16078 | } | |
16079 | return resultobj; | |
16080 | fail: | |
16081 | return NULL; | |
16082 | } | |
16083 | ||
16084 | ||
16085 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16086 | PyObject *resultobj; | |
16087 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16088 | wxString *arg2 = 0 ; | |
e811c8ce | 16089 | bool temp2 = False ; |
d14a1e28 RD |
16090 | PyObject * obj0 = 0 ; |
16091 | PyObject * obj1 = 0 ; | |
16092 | char *kwnames[] = { | |
16093 | (char *) "self",(char *) "appName", NULL | |
16094 | }; | |
16095 | ||
16096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16099 | { |
16100 | arg2 = wxString_in_helper(obj1); | |
16101 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16102 | temp2 = True; |
d14a1e28 RD |
16103 | } |
16104 | { | |
16105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16106 | (arg1)->SetAppName((wxString const &)*arg2); | |
16107 | ||
16108 | wxPyEndAllowThreads(__tstate); | |
16109 | if (PyErr_Occurred()) SWIG_fail; | |
16110 | } | |
16111 | Py_INCREF(Py_None); resultobj = Py_None; | |
16112 | { | |
16113 | if (temp2) | |
16114 | delete arg2; | |
16115 | } | |
16116 | return resultobj; | |
16117 | fail: | |
16118 | { | |
16119 | if (temp2) | |
16120 | delete arg2; | |
16121 | } | |
16122 | return NULL; | |
16123 | } | |
16124 | ||
16125 | ||
16126 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16127 | PyObject *resultobj; | |
16128 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16129 | wxString *arg2 = 0 ; | |
e811c8ce | 16130 | bool temp2 = False ; |
d14a1e28 RD |
16131 | PyObject * obj0 = 0 ; |
16132 | PyObject * obj1 = 0 ; | |
16133 | char *kwnames[] = { | |
16134 | (char *) "self",(char *) "vendorName", NULL | |
16135 | }; | |
16136 | ||
16137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16140 | { |
16141 | arg2 = wxString_in_helper(obj1); | |
16142 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16143 | temp2 = True; |
d14a1e28 RD |
16144 | } |
16145 | { | |
16146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16147 | (arg1)->SetVendorName((wxString const &)*arg2); | |
16148 | ||
16149 | wxPyEndAllowThreads(__tstate); | |
16150 | if (PyErr_Occurred()) SWIG_fail; | |
16151 | } | |
16152 | Py_INCREF(Py_None); resultobj = Py_None; | |
16153 | { | |
16154 | if (temp2) | |
16155 | delete arg2; | |
16156 | } | |
16157 | return resultobj; | |
16158 | fail: | |
16159 | { | |
16160 | if (temp2) | |
16161 | delete arg2; | |
16162 | } | |
16163 | return NULL; | |
16164 | } | |
16165 | ||
16166 | ||
16167 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16168 | PyObject *resultobj; | |
16169 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16170 | long arg2 ; | |
16171 | PyObject * obj0 = 0 ; | |
994141e6 | 16172 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16173 | char *kwnames[] = { |
16174 | (char *) "self",(char *) "style", NULL | |
16175 | }; | |
16176 | ||
994141e6 | 16177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16180 | arg2 = (long) SWIG_AsLong(obj1); | |
16181 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16182 | { |
16183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16184 | (arg1)->SetStyle(arg2); | |
16185 | ||
16186 | wxPyEndAllowThreads(__tstate); | |
16187 | if (PyErr_Occurred()) SWIG_fail; | |
16188 | } | |
16189 | Py_INCREF(Py_None); resultobj = Py_None; | |
16190 | return resultobj; | |
16191 | fail: | |
16192 | return NULL; | |
16193 | } | |
16194 | ||
16195 | ||
16196 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16197 | PyObject *resultobj; | |
16198 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16199 | long result; | |
16200 | PyObject * obj0 = 0 ; | |
16201 | char *kwnames[] = { | |
16202 | (char *) "self", NULL | |
16203 | }; | |
16204 | ||
16205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16208 | { |
16209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16210 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
16211 | ||
16212 | wxPyEndAllowThreads(__tstate); | |
16213 | if (PyErr_Occurred()) SWIG_fail; | |
16214 | } | |
15afbcd0 | 16215 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
16216 | return resultobj; |
16217 | fail: | |
16218 | return NULL; | |
16219 | } | |
16220 | ||
16221 | ||
16222 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
16223 | PyObject *obj; | |
16224 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16225 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
16226 | Py_INCREF(obj); | |
16227 | return Py_BuildValue((char *)""); | |
16228 | } | |
d14a1e28 RD |
16229 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { |
16230 | PyObject *resultobj; | |
16231 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16232 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16233 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16234 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16235 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16236 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16237 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16238 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4f89f6a3 | 16239 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; |
d14a1e28 | 16240 | wxConfig *result; |
e811c8ce RD |
16241 | bool temp1 = False ; |
16242 | bool temp2 = False ; | |
16243 | bool temp3 = False ; | |
16244 | bool temp4 = False ; | |
d14a1e28 RD |
16245 | PyObject * obj0 = 0 ; |
16246 | PyObject * obj1 = 0 ; | |
16247 | PyObject * obj2 = 0 ; | |
16248 | PyObject * obj3 = 0 ; | |
994141e6 | 16249 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16250 | char *kwnames[] = { |
16251 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16252 | }; | |
16253 | ||
994141e6 | 16254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
16255 | if (obj0) { |
16256 | { | |
16257 | arg1 = wxString_in_helper(obj0); | |
16258 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16259 | temp1 = True; |
d14a1e28 RD |
16260 | } |
16261 | } | |
16262 | if (obj1) { | |
16263 | { | |
16264 | arg2 = wxString_in_helper(obj1); | |
16265 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16266 | temp2 = True; |
d14a1e28 RD |
16267 | } |
16268 | } | |
16269 | if (obj2) { | |
16270 | { | |
16271 | arg3 = wxString_in_helper(obj2); | |
16272 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16273 | temp3 = True; |
d14a1e28 RD |
16274 | } |
16275 | } | |
16276 | if (obj3) { | |
16277 | { | |
16278 | arg4 = wxString_in_helper(obj3); | |
16279 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 16280 | temp4 = True; |
d14a1e28 RD |
16281 | } |
16282 | } | |
994141e6 | 16283 | if (obj4) { |
15afbcd0 RD |
16284 | arg5 = (long) SWIG_AsLong(obj4); |
16285 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16286 | } |
d14a1e28 RD |
16287 | { |
16288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16289 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16290 | ||
16291 | wxPyEndAllowThreads(__tstate); | |
16292 | if (PyErr_Occurred()) SWIG_fail; | |
16293 | } | |
15afbcd0 | 16294 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); |
d14a1e28 RD |
16295 | { |
16296 | if (temp1) | |
16297 | delete arg1; | |
16298 | } | |
16299 | { | |
16300 | if (temp2) | |
16301 | delete arg2; | |
16302 | } | |
16303 | { | |
16304 | if (temp3) | |
16305 | delete arg3; | |
16306 | } | |
16307 | { | |
16308 | if (temp4) | |
16309 | delete arg4; | |
16310 | } | |
16311 | return resultobj; | |
16312 | fail: | |
16313 | { | |
16314 | if (temp1) | |
16315 | delete arg1; | |
16316 | } | |
16317 | { | |
16318 | if (temp2) | |
16319 | delete arg2; | |
16320 | } | |
16321 | { | |
16322 | if (temp3) | |
16323 | delete arg3; | |
16324 | } | |
16325 | { | |
16326 | if (temp4) | |
16327 | delete arg4; | |
16328 | } | |
16329 | return NULL; | |
16330 | } | |
16331 | ||
16332 | ||
16333 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16334 | PyObject *resultobj; | |
16335 | wxConfig *arg1 = (wxConfig *) 0 ; | |
16336 | PyObject * obj0 = 0 ; | |
16337 | char *kwnames[] = { | |
16338 | (char *) "self", NULL | |
16339 | }; | |
16340 | ||
16341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig, |
16343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16344 | { |
16345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16346 | delete arg1; | |
16347 | ||
16348 | wxPyEndAllowThreads(__tstate); | |
16349 | if (PyErr_Occurred()) SWIG_fail; | |
16350 | } | |
16351 | Py_INCREF(Py_None); resultobj = Py_None; | |
16352 | return resultobj; | |
16353 | fail: | |
16354 | return NULL; | |
16355 | } | |
16356 | ||
16357 | ||
16358 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
16359 | PyObject *obj; | |
16360 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16361 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
16362 | Py_INCREF(obj); | |
16363 | return Py_BuildValue((char *)""); | |
16364 | } | |
16365 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16366 | PyObject *resultobj; | |
16367 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16368 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16369 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16370 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16371 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16372 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16373 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16374 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4276dc52 | 16375 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; |
d14a1e28 | 16376 | wxFileConfig *result; |
e811c8ce RD |
16377 | bool temp1 = False ; |
16378 | bool temp2 = False ; | |
16379 | bool temp3 = False ; | |
16380 | bool temp4 = False ; | |
d14a1e28 RD |
16381 | PyObject * obj0 = 0 ; |
16382 | PyObject * obj1 = 0 ; | |
16383 | PyObject * obj2 = 0 ; | |
16384 | PyObject * obj3 = 0 ; | |
994141e6 | 16385 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16386 | char *kwnames[] = { |
16387 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16388 | }; | |
16389 | ||
994141e6 | 16390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
16391 | if (obj0) { |
16392 | { | |
16393 | arg1 = wxString_in_helper(obj0); | |
16394 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16395 | temp1 = True; |
d14a1e28 RD |
16396 | } |
16397 | } | |
16398 | if (obj1) { | |
16399 | { | |
16400 | arg2 = wxString_in_helper(obj1); | |
16401 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16402 | temp2 = True; |
d14a1e28 RD |
16403 | } |
16404 | } | |
16405 | if (obj2) { | |
16406 | { | |
16407 | arg3 = wxString_in_helper(obj2); | |
16408 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16409 | temp3 = True; |
d14a1e28 RD |
16410 | } |
16411 | } | |
16412 | if (obj3) { | |
16413 | { | |
16414 | arg4 = wxString_in_helper(obj3); | |
16415 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 16416 | temp4 = True; |
d14a1e28 RD |
16417 | } |
16418 | } | |
994141e6 | 16419 | if (obj4) { |
15afbcd0 RD |
16420 | arg5 = (long) SWIG_AsLong(obj4); |
16421 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16422 | } |
d14a1e28 RD |
16423 | { |
16424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16425 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16426 | ||
16427 | wxPyEndAllowThreads(__tstate); | |
16428 | if (PyErr_Occurred()) SWIG_fail; | |
16429 | } | |
15afbcd0 | 16430 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); |
d14a1e28 RD |
16431 | { |
16432 | if (temp1) | |
16433 | delete arg1; | |
16434 | } | |
16435 | { | |
16436 | if (temp2) | |
16437 | delete arg2; | |
16438 | } | |
16439 | { | |
16440 | if (temp3) | |
16441 | delete arg3; | |
16442 | } | |
16443 | { | |
16444 | if (temp4) | |
16445 | delete arg4; | |
16446 | } | |
16447 | return resultobj; | |
16448 | fail: | |
16449 | { | |
16450 | if (temp1) | |
16451 | delete arg1; | |
16452 | } | |
16453 | { | |
16454 | if (temp2) | |
16455 | delete arg2; | |
16456 | } | |
16457 | { | |
16458 | if (temp3) | |
16459 | delete arg3; | |
16460 | } | |
16461 | { | |
16462 | if (temp4) | |
16463 | delete arg4; | |
16464 | } | |
16465 | return NULL; | |
16466 | } | |
16467 | ||
16468 | ||
16469 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16470 | PyObject *resultobj; | |
16471 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
16472 | PyObject * obj0 = 0 ; | |
16473 | char *kwnames[] = { | |
16474 | (char *) "self", NULL | |
16475 | }; | |
16476 | ||
16477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig, |
16479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16480 | { |
16481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16482 | delete arg1; | |
16483 | ||
16484 | wxPyEndAllowThreads(__tstate); | |
16485 | if (PyErr_Occurred()) SWIG_fail; | |
16486 | } | |
16487 | Py_INCREF(Py_None); resultobj = Py_None; | |
16488 | return resultobj; | |
16489 | fail: | |
16490 | return NULL; | |
16491 | } | |
16492 | ||
16493 | ||
16494 | static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
16495 | PyObject *obj; | |
16496 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16497 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
16498 | Py_INCREF(obj); | |
16499 | return Py_BuildValue((char *)""); | |
16500 | } | |
b88bce5f RD |
16501 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { |
16502 | PyObject *resultobj; | |
16503 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16504 | wxString *arg2 = 0 ; | |
16505 | wxConfigPathChanger *result; | |
16506 | bool temp2 = False ; | |
16507 | PyObject * obj0 = 0 ; | |
16508 | PyObject * obj1 = 0 ; | |
16509 | char *kwnames[] = { | |
16510 | (char *) "config",(char *) "entry", NULL | |
16511 | }; | |
16512 | ||
16513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
16516 | { |
16517 | arg2 = wxString_in_helper(obj1); | |
16518 | if (arg2 == NULL) SWIG_fail; | |
16519 | temp2 = True; | |
16520 | } | |
16521 | { | |
16522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16523 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
16524 | ||
16525 | wxPyEndAllowThreads(__tstate); | |
16526 | if (PyErr_Occurred()) SWIG_fail; | |
16527 | } | |
15afbcd0 | 16528 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); |
b88bce5f RD |
16529 | { |
16530 | if (temp2) | |
16531 | delete arg2; | |
16532 | } | |
16533 | return resultobj; | |
16534 | fail: | |
16535 | { | |
16536 | if (temp2) | |
16537 | delete arg2; | |
16538 | } | |
16539 | return NULL; | |
16540 | } | |
16541 | ||
16542 | ||
16543 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16544 | PyObject *resultobj; | |
16545 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16546 | PyObject * obj0 = 0 ; | |
16547 | char *kwnames[] = { | |
16548 | (char *) "self", NULL | |
16549 | }; | |
16550 | ||
16551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, |
16553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
16554 | { |
16555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16556 | delete arg1; | |
16557 | ||
16558 | wxPyEndAllowThreads(__tstate); | |
16559 | if (PyErr_Occurred()) SWIG_fail; | |
16560 | } | |
16561 | Py_INCREF(Py_None); resultobj = Py_None; | |
16562 | return resultobj; | |
16563 | fail: | |
16564 | return NULL; | |
16565 | } | |
16566 | ||
16567 | ||
16568 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16569 | PyObject *resultobj; | |
16570 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16571 | wxString *result; | |
16572 | PyObject * obj0 = 0 ; | |
16573 | char *kwnames[] = { | |
16574 | (char *) "self", NULL | |
16575 | }; | |
16576 | ||
16577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, |
16579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
16580 | { |
16581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16582 | { | |
16583 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
16584 | result = (wxString *) &_result_ref; | |
16585 | } | |
16586 | ||
16587 | wxPyEndAllowThreads(__tstate); | |
16588 | if (PyErr_Occurred()) SWIG_fail; | |
16589 | } | |
16590 | { | |
16591 | #if wxUSE_UNICODE | |
16592 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16593 | #else | |
16594 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16595 | #endif | |
16596 | } | |
16597 | return resultobj; | |
16598 | fail: | |
16599 | return NULL; | |
16600 | } | |
16601 | ||
16602 | ||
16603 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
16604 | PyObject *obj; | |
16605 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16606 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
16607 | Py_INCREF(obj); | |
16608 | return Py_BuildValue((char *)""); | |
16609 | } | |
d14a1e28 RD |
16610 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
16611 | PyObject *resultobj; | |
16612 | wxString *arg1 = 0 ; | |
16613 | wxString result; | |
e811c8ce | 16614 | bool temp1 = False ; |
d14a1e28 RD |
16615 | PyObject * obj0 = 0 ; |
16616 | char *kwnames[] = { | |
16617 | (char *) "sz", NULL | |
16618 | }; | |
16619 | ||
16620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
16621 | { | |
16622 | arg1 = wxString_in_helper(obj0); | |
16623 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16624 | temp1 = True; |
d14a1e28 RD |
16625 | } |
16626 | { | |
16627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16628 | result = wxExpandEnvVars((wxString const &)*arg1); | |
16629 | ||
16630 | wxPyEndAllowThreads(__tstate); | |
16631 | if (PyErr_Occurred()) SWIG_fail; | |
16632 | } | |
16633 | { | |
16634 | #if wxUSE_UNICODE | |
16635 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16636 | #else | |
16637 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16638 | #endif | |
16639 | } | |
16640 | { | |
16641 | if (temp1) | |
16642 | delete arg1; | |
16643 | } | |
16644 | return resultobj; | |
16645 | fail: | |
16646 | { | |
16647 | if (temp1) | |
16648 | delete arg1; | |
16649 | } | |
16650 | return NULL; | |
16651 | } | |
16652 | ||
16653 | ||
b2dc1044 RD |
16654 | static int _wrap_DateFormatStr_set(PyObject *_val) { |
16655 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); | |
16656 | return 1; | |
16657 | } | |
16658 | ||
16659 | ||
16660 | static PyObject *_wrap_DateFormatStr_get() { | |
16661 | PyObject *pyobj; | |
16662 | ||
16663 | { | |
16664 | #if wxUSE_UNICODE | |
16665 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16666 | #else | |
16667 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16668 | #endif | |
16669 | } | |
16670 | return pyobj; | |
16671 | } | |
16672 | ||
16673 | ||
16674 | static int _wrap_TimeSpanFormatStr_set(PyObject *_val) { | |
16675 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); | |
16676 | return 1; | |
16677 | } | |
16678 | ||
16679 | ||
16680 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
16681 | PyObject *pyobj; | |
16682 | ||
16683 | { | |
16684 | #if wxUSE_UNICODE | |
16685 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16686 | #else | |
16687 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16688 | #endif | |
16689 | } | |
16690 | return pyobj; | |
16691 | } | |
16692 | ||
16693 | ||
d14a1e28 RD |
16694 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { |
16695 | PyObject *resultobj; | |
16696 | int arg1 ; | |
994141e6 | 16697 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16698 | char *kwnames[] = { |
16699 | (char *) "country", NULL | |
16700 | }; | |
16701 | ||
994141e6 | 16702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
16703 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); |
16704 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16705 | { |
16706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16707 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
16708 | ||
16709 | wxPyEndAllowThreads(__tstate); | |
16710 | if (PyErr_Occurred()) SWIG_fail; | |
16711 | } | |
16712 | Py_INCREF(Py_None); resultobj = Py_None; | |
16713 | return resultobj; | |
16714 | fail: | |
16715 | return NULL; | |
16716 | } | |
16717 | ||
16718 | ||
16719 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16720 | PyObject *resultobj; | |
16721 | int result; | |
16722 | char *kwnames[] = { | |
16723 | NULL | |
16724 | }; | |
16725 | ||
16726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
16727 | { | |
16728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16729 | result = (int)wxDateTime::GetCountry(); | |
16730 | ||
16731 | wxPyEndAllowThreads(__tstate); | |
16732 | if (PyErr_Occurred()) SWIG_fail; | |
16733 | } | |
15afbcd0 | 16734 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16735 | return resultobj; |
16736 | fail: | |
16737 | return NULL; | |
16738 | } | |
16739 | ||
16740 | ||
16741 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16742 | PyObject *resultobj; | |
16743 | int arg1 = (int) wxDateTime::Country_Default ; | |
16744 | bool result; | |
994141e6 | 16745 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16746 | char *kwnames[] = { |
16747 | (char *) "country", NULL | |
16748 | }; | |
16749 | ||
994141e6 RD |
16750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; |
16751 | if (obj0) { | |
15afbcd0 RD |
16752 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); |
16753 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16754 | } |
d14a1e28 RD |
16755 | { |
16756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16757 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
16758 | ||
16759 | wxPyEndAllowThreads(__tstate); | |
16760 | if (PyErr_Occurred()) SWIG_fail; | |
16761 | } | |
4f89f6a3 RD |
16762 | { |
16763 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16764 | } | |
d14a1e28 RD |
16765 | return resultobj; |
16766 | fail: | |
16767 | return NULL; | |
16768 | } | |
16769 | ||
16770 | ||
16771 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16772 | PyObject *resultobj; | |
16773 | int arg1 = (int) wxDateTime::Gregorian ; | |
16774 | int result; | |
994141e6 | 16775 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16776 | char *kwnames[] = { |
16777 | (char *) "cal", NULL | |
16778 | }; | |
16779 | ||
994141e6 RD |
16780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; |
16781 | if (obj0) { | |
15afbcd0 RD |
16782 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); |
16783 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16784 | } |
d14a1e28 RD |
16785 | { |
16786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16787 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
16788 | ||
16789 | wxPyEndAllowThreads(__tstate); | |
16790 | if (PyErr_Occurred()) SWIG_fail; | |
16791 | } | |
15afbcd0 | 16792 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16793 | return resultobj; |
16794 | fail: | |
16795 | return NULL; | |
16796 | } | |
16797 | ||
16798 | ||
16799 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16800 | PyObject *resultobj; | |
16801 | int arg1 ; | |
16802 | int result; | |
994141e6 | 16803 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16804 | char *kwnames[] = { |
16805 | (char *) "year", NULL | |
16806 | }; | |
16807 | ||
994141e6 | 16808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
16809 | arg1 = (int) SWIG_AsInt(obj0); |
16810 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16811 | { |
16812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16813 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
16814 | ||
16815 | wxPyEndAllowThreads(__tstate); | |
16816 | if (PyErr_Occurred()) SWIG_fail; | |
16817 | } | |
15afbcd0 | 16818 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16819 | return resultobj; |
16820 | fail: | |
16821 | return NULL; | |
16822 | } | |
16823 | ||
16824 | ||
16825 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16826 | PyObject *resultobj; | |
16827 | int arg1 = (int) wxDateTime::Gregorian ; | |
16828 | int result; | |
994141e6 | 16829 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16830 | char *kwnames[] = { |
16831 | (char *) "cal", NULL | |
16832 | }; | |
16833 | ||
994141e6 RD |
16834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; |
16835 | if (obj0) { | |
15afbcd0 RD |
16836 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); |
16837 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16838 | } |
d14a1e28 RD |
16839 | { |
16840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16841 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
16842 | ||
16843 | wxPyEndAllowThreads(__tstate); | |
16844 | if (PyErr_Occurred()) SWIG_fail; | |
16845 | } | |
15afbcd0 | 16846 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16847 | return resultobj; |
16848 | fail: | |
16849 | return NULL; | |
16850 | } | |
16851 | ||
16852 | ||
16853 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16854 | PyObject *resultobj; | |
16855 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16856 | int arg2 = (int) wxDateTime::Gregorian ; | |
16857 | bool result; | |
994141e6 RD |
16858 | PyObject * obj0 = 0 ; |
16859 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16860 | char *kwnames[] = { |
16861 | (char *) "year",(char *) "cal", NULL | |
16862 | }; | |
16863 | ||
994141e6 RD |
16864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; |
16865 | if (obj0) { | |
15afbcd0 RD |
16866 | arg1 = (int) SWIG_AsInt(obj0); |
16867 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
16868 | } |
16869 | if (obj1) { | |
15afbcd0 RD |
16870 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); |
16871 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16872 | } |
d14a1e28 RD |
16873 | { |
16874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16875 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
16876 | ||
16877 | wxPyEndAllowThreads(__tstate); | |
16878 | if (PyErr_Occurred()) SWIG_fail; | |
16879 | } | |
4f89f6a3 RD |
16880 | { |
16881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16882 | } | |
d14a1e28 RD |
16883 | return resultobj; |
16884 | fail: | |
16885 | return NULL; | |
16886 | } | |
16887 | ||
16888 | ||
16889 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16890 | PyObject *resultobj; | |
16891 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16892 | int result; | |
994141e6 | 16893 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16894 | char *kwnames[] = { |
16895 | (char *) "year", NULL | |
16896 | }; | |
16897 | ||
994141e6 RD |
16898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; |
16899 | if (obj0) { | |
15afbcd0 RD |
16900 | arg1 = (int) SWIG_AsInt(obj0); |
16901 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16902 | } |
d14a1e28 RD |
16903 | { |
16904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16905 | result = (int)wxDateTime::GetCentury(arg1); | |
16906 | ||
16907 | wxPyEndAllowThreads(__tstate); | |
16908 | if (PyErr_Occurred()) SWIG_fail; | |
16909 | } | |
15afbcd0 | 16910 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16911 | return resultobj; |
16912 | fail: | |
16913 | return NULL; | |
16914 | } | |
16915 | ||
16916 | ||
16917 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16918 | PyObject *resultobj; | |
16919 | int arg1 ; | |
16920 | int arg2 = (int) wxDateTime::Gregorian ; | |
322913ce | 16921 | int result; |
994141e6 RD |
16922 | PyObject * obj0 = 0 ; |
16923 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16924 | char *kwnames[] = { |
16925 | (char *) "year",(char *) "cal", NULL | |
16926 | }; | |
16927 | ||
994141e6 | 16928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16929 | arg1 = (int) SWIG_AsInt(obj0); |
16930 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16931 | if (obj1) { |
15afbcd0 RD |
16932 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); |
16933 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16934 | } |
d14a1e28 RD |
16935 | { |
16936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 16937 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); |
d14a1e28 RD |
16938 | |
16939 | wxPyEndAllowThreads(__tstate); | |
16940 | if (PyErr_Occurred()) SWIG_fail; | |
16941 | } | |
15afbcd0 | 16942 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16943 | return resultobj; |
16944 | fail: | |
16945 | return NULL; | |
16946 | } | |
16947 | ||
16948 | ||
16949 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16950 | PyObject *resultobj; | |
16951 | int arg1 ; | |
16952 | int arg2 = (int) wxDateTime::Inv_Year ; | |
16953 | int arg3 = (int) wxDateTime::Gregorian ; | |
322913ce | 16954 | int result; |
994141e6 RD |
16955 | PyObject * obj0 = 0 ; |
16956 | PyObject * obj1 = 0 ; | |
16957 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16958 | char *kwnames[] = { |
16959 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
16960 | }; | |
16961 | ||
994141e6 | 16962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
16963 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); |
16964 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16965 | if (obj1) { |
15afbcd0 RD |
16966 | arg2 = (int) SWIG_AsInt(obj1); |
16967 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
16968 | } |
16969 | if (obj2) { | |
15afbcd0 RD |
16970 | arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2); |
16971 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16972 | } |
d14a1e28 RD |
16973 | { |
16974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 16975 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); |
d14a1e28 RD |
16976 | |
16977 | wxPyEndAllowThreads(__tstate); | |
16978 | if (PyErr_Occurred()) SWIG_fail; | |
16979 | } | |
15afbcd0 | 16980 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16981 | return resultobj; |
16982 | fail: | |
16983 | return NULL; | |
16984 | } | |
16985 | ||
16986 | ||
16987 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16988 | PyObject *resultobj; | |
16989 | int arg1 ; | |
16990 | int arg2 = (int) wxDateTime::Name_Full ; | |
16991 | wxString result; | |
994141e6 RD |
16992 | PyObject * obj0 = 0 ; |
16993 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16994 | char *kwnames[] = { |
16995 | (char *) "month",(char *) "flags", NULL | |
16996 | }; | |
16997 | ||
994141e6 | 16998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16999 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); |
17000 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17001 | if (obj1) { |
15afbcd0 RD |
17002 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); |
17003 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17004 | } |
d14a1e28 RD |
17005 | { |
17006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17007 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
17008 | ||
17009 | wxPyEndAllowThreads(__tstate); | |
17010 | if (PyErr_Occurred()) SWIG_fail; | |
17011 | } | |
17012 | { | |
17013 | #if wxUSE_UNICODE | |
17014 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17015 | #else | |
17016 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17017 | #endif | |
17018 | } | |
17019 | return resultobj; | |
17020 | fail: | |
17021 | return NULL; | |
17022 | } | |
17023 | ||
17024 | ||
17025 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17026 | PyObject *resultobj; | |
17027 | int arg1 ; | |
17028 | int arg2 = (int) wxDateTime::Name_Full ; | |
17029 | wxString result; | |
994141e6 RD |
17030 | PyObject * obj0 = 0 ; |
17031 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17032 | char *kwnames[] = { |
17033 | (char *) "weekday",(char *) "flags", NULL | |
17034 | }; | |
17035 | ||
994141e6 | 17036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17037 | arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0); |
17038 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17039 | if (obj1) { |
15afbcd0 RD |
17040 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); |
17041 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17042 | } |
d14a1e28 RD |
17043 | { |
17044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17045 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
17046 | ||
17047 | wxPyEndAllowThreads(__tstate); | |
17048 | if (PyErr_Occurred()) SWIG_fail; | |
17049 | } | |
17050 | { | |
17051 | #if wxUSE_UNICODE | |
17052 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17053 | #else | |
17054 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17055 | #endif | |
17056 | } | |
17057 | return resultobj; | |
17058 | fail: | |
17059 | return NULL; | |
17060 | } | |
17061 | ||
17062 | ||
17063 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17064 | PyObject *resultobj; | |
17065 | wxString *arg1 = (wxString *) 0 ; | |
17066 | wxString *arg2 = (wxString *) 0 ; | |
7eae615b RD |
17067 | bool temp1 = False ; |
17068 | bool temp2 = False ; | |
d14a1e28 RD |
17069 | PyObject * obj0 = 0 ; |
17070 | PyObject * obj1 = 0 ; | |
17071 | char *kwnames[] = { | |
17072 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
17073 | }; | |
17074 | ||
17075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
7eae615b RD |
17076 | { |
17077 | arg1 = wxString_in_helper(obj0); | |
17078 | if (arg1 == NULL) SWIG_fail; | |
17079 | temp1 = True; | |
17080 | } | |
17081 | { | |
17082 | arg2 = wxString_in_helper(obj1); | |
17083 | if (arg2 == NULL) SWIG_fail; | |
17084 | temp2 = True; | |
17085 | } | |
d14a1e28 RD |
17086 | { |
17087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17088 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
17089 | ||
17090 | wxPyEndAllowThreads(__tstate); | |
17091 | if (PyErr_Occurred()) SWIG_fail; | |
17092 | } | |
17093 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
17094 | { |
17095 | if (temp1) | |
17096 | delete arg1; | |
17097 | } | |
17098 | { | |
17099 | if (temp2) | |
17100 | delete arg2; | |
17101 | } | |
d14a1e28 RD |
17102 | return resultobj; |
17103 | fail: | |
7eae615b RD |
17104 | { |
17105 | if (temp1) | |
17106 | delete arg1; | |
17107 | } | |
17108 | { | |
17109 | if (temp2) | |
17110 | delete arg2; | |
17111 | } | |
d14a1e28 RD |
17112 | return NULL; |
17113 | } | |
17114 | ||
17115 | ||
17116 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17117 | PyObject *resultobj; | |
17118 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17119 | int arg2 = (int) wxDateTime::Country_Default ; | |
17120 | bool result; | |
994141e6 RD |
17121 | PyObject * obj0 = 0 ; |
17122 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17123 | char *kwnames[] = { |
17124 | (char *) "year",(char *) "country", NULL | |
17125 | }; | |
17126 | ||
994141e6 RD |
17127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; |
17128 | if (obj0) { | |
15afbcd0 RD |
17129 | arg1 = (int) SWIG_AsInt(obj0); |
17130 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17131 | } |
17132 | if (obj1) { | |
15afbcd0 RD |
17133 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
17134 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17135 | } |
d14a1e28 RD |
17136 | { |
17137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17138 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
17139 | ||
17140 | wxPyEndAllowThreads(__tstate); | |
17141 | if (PyErr_Occurred()) SWIG_fail; | |
17142 | } | |
4f89f6a3 RD |
17143 | { |
17144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17145 | } | |
d14a1e28 RD |
17146 | return resultobj; |
17147 | fail: | |
17148 | return NULL; | |
17149 | } | |
17150 | ||
17151 | ||
17152 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17153 | PyObject *resultobj; | |
17154 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17155 | int arg2 = (int) wxDateTime::Country_Default ; | |
17156 | wxDateTime result; | |
994141e6 RD |
17157 | PyObject * obj0 = 0 ; |
17158 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17159 | char *kwnames[] = { |
17160 | (char *) "year",(char *) "country", NULL | |
17161 | }; | |
17162 | ||
994141e6 RD |
17163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; |
17164 | if (obj0) { | |
15afbcd0 RD |
17165 | arg1 = (int) SWIG_AsInt(obj0); |
17166 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17167 | } |
17168 | if (obj1) { | |
15afbcd0 RD |
17169 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
17170 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17171 | } |
d14a1e28 RD |
17172 | { |
17173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17174 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
17175 | ||
17176 | wxPyEndAllowThreads(__tstate); | |
17177 | if (PyErr_Occurred()) SWIG_fail; | |
17178 | } | |
17179 | { | |
17180 | wxDateTime * resultptr; | |
17181 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17182 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17183 | } |
17184 | return resultobj; | |
17185 | fail: | |
17186 | return NULL; | |
17187 | } | |
17188 | ||
17189 | ||
17190 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17191 | PyObject *resultobj; | |
17192 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17193 | int arg2 = (int) wxDateTime::Country_Default ; | |
17194 | wxDateTime result; | |
994141e6 RD |
17195 | PyObject * obj0 = 0 ; |
17196 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17197 | char *kwnames[] = { |
17198 | (char *) "year",(char *) "country", NULL | |
17199 | }; | |
17200 | ||
994141e6 RD |
17201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; |
17202 | if (obj0) { | |
15afbcd0 RD |
17203 | arg1 = (int) SWIG_AsInt(obj0); |
17204 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17205 | } |
17206 | if (obj1) { | |
15afbcd0 RD |
17207 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
17208 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17209 | } |
d14a1e28 RD |
17210 | { |
17211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17212 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
17213 | ||
17214 | wxPyEndAllowThreads(__tstate); | |
17215 | if (PyErr_Occurred()) SWIG_fail; | |
17216 | } | |
17217 | { | |
17218 | wxDateTime * resultptr; | |
17219 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17220 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17221 | } |
17222 | return resultobj; | |
17223 | fail: | |
17224 | return NULL; | |
17225 | } | |
17226 | ||
17227 | ||
17228 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17229 | PyObject *resultobj; | |
17230 | wxDateTime result; | |
17231 | char *kwnames[] = { | |
17232 | NULL | |
17233 | }; | |
17234 | ||
17235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
17236 | { | |
17237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17238 | result = wxDateTime::Now(); | |
17239 | ||
17240 | wxPyEndAllowThreads(__tstate); | |
17241 | if (PyErr_Occurred()) SWIG_fail; | |
17242 | } | |
17243 | { | |
17244 | wxDateTime * resultptr; | |
17245 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17246 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17247 | } |
17248 | return resultobj; | |
17249 | fail: | |
17250 | return NULL; | |
17251 | } | |
17252 | ||
17253 | ||
17254 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17255 | PyObject *resultobj; | |
17256 | wxDateTime result; | |
17257 | char *kwnames[] = { | |
17258 | NULL | |
17259 | }; | |
17260 | ||
17261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
17262 | { | |
17263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17264 | result = wxDateTime::UNow(); | |
17265 | ||
17266 | wxPyEndAllowThreads(__tstate); | |
17267 | if (PyErr_Occurred()) SWIG_fail; | |
17268 | } | |
17269 | { | |
17270 | wxDateTime * resultptr; | |
17271 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17272 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17273 | } |
17274 | return resultobj; | |
17275 | fail: | |
17276 | return NULL; | |
17277 | } | |
17278 | ||
17279 | ||
17280 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17281 | PyObject *resultobj; | |
17282 | wxDateTime result; | |
17283 | char *kwnames[] = { | |
17284 | NULL | |
17285 | }; | |
17286 | ||
17287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
17288 | { | |
17289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17290 | result = wxDateTime::Today(); | |
17291 | ||
17292 | wxPyEndAllowThreads(__tstate); | |
17293 | if (PyErr_Occurred()) SWIG_fail; | |
17294 | } | |
17295 | { | |
17296 | wxDateTime * resultptr; | |
17297 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17298 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17299 | } |
17300 | return resultobj; | |
17301 | fail: | |
17302 | return NULL; | |
17303 | } | |
17304 | ||
17305 | ||
17306 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17307 | PyObject *resultobj; | |
17308 | wxDateTime *result; | |
17309 | char *kwnames[] = { | |
17310 | NULL | |
17311 | }; | |
17312 | ||
17313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
17314 | { | |
17315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17316 | result = (wxDateTime *)new wxDateTime(); | |
17317 | ||
17318 | wxPyEndAllowThreads(__tstate); | |
17319 | if (PyErr_Occurred()) SWIG_fail; | |
17320 | } | |
15afbcd0 | 17321 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17322 | return resultobj; |
17323 | fail: | |
17324 | return NULL; | |
17325 | } | |
17326 | ||
17327 | ||
17328 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17329 | PyObject *resultobj; | |
17330 | time_t arg1 ; | |
17331 | wxDateTime *result; | |
17332 | PyObject * obj0 = 0 ; | |
17333 | char *kwnames[] = { | |
17334 | (char *) "timet", NULL | |
17335 | }; | |
17336 | ||
17337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17338 | arg1 = (time_t) SWIG_AsUnsignedInt(obj0); |
17339 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17340 | { |
17341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17342 | result = (wxDateTime *)new wxDateTime(arg1); | |
17343 | ||
17344 | wxPyEndAllowThreads(__tstate); | |
17345 | if (PyErr_Occurred()) SWIG_fail; | |
17346 | } | |
15afbcd0 | 17347 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17348 | return resultobj; |
17349 | fail: | |
17350 | return NULL; | |
17351 | } | |
17352 | ||
17353 | ||
17354 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17355 | PyObject *resultobj; | |
17356 | double arg1 ; | |
17357 | wxDateTime *result; | |
994141e6 | 17358 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17359 | char *kwnames[] = { |
17360 | (char *) "jdn", NULL | |
17361 | }; | |
17362 | ||
994141e6 | 17363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17364 | arg1 = (double) SWIG_AsDouble(obj0); |
17365 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17366 | { |
17367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17368 | result = (wxDateTime *)new wxDateTime(arg1); | |
17369 | ||
17370 | wxPyEndAllowThreads(__tstate); | |
17371 | if (PyErr_Occurred()) SWIG_fail; | |
17372 | } | |
15afbcd0 | 17373 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17374 | return resultobj; |
17375 | fail: | |
17376 | return NULL; | |
17377 | } | |
17378 | ||
17379 | ||
17380 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17381 | PyObject *resultobj; | |
322913ce RD |
17382 | int arg1 ; |
17383 | int arg2 = (int) 0 ; | |
17384 | int arg3 = (int) 0 ; | |
17385 | int arg4 = (int) 0 ; | |
d14a1e28 | 17386 | wxDateTime *result; |
994141e6 RD |
17387 | PyObject * obj0 = 0 ; |
17388 | PyObject * obj1 = 0 ; | |
17389 | PyObject * obj2 = 0 ; | |
17390 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
17391 | char *kwnames[] = { |
17392 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17393 | }; | |
17394 | ||
994141e6 | 17395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
17396 | arg1 = (int) SWIG_AsInt(obj0); |
17397 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17398 | if (obj1) { |
15afbcd0 RD |
17399 | arg2 = (int) SWIG_AsInt(obj1); |
17400 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17401 | } |
17402 | if (obj2) { | |
15afbcd0 RD |
17403 | arg3 = (int) SWIG_AsInt(obj2); |
17404 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17405 | } |
17406 | if (obj3) { | |
15afbcd0 RD |
17407 | arg4 = (int) SWIG_AsInt(obj3); |
17408 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17409 | } |
d14a1e28 RD |
17410 | { |
17411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17412 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
17413 | ||
17414 | wxPyEndAllowThreads(__tstate); | |
17415 | if (PyErr_Occurred()) SWIG_fail; | |
17416 | } | |
15afbcd0 | 17417 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17418 | return resultobj; |
17419 | fail: | |
17420 | return NULL; | |
17421 | } | |
17422 | ||
17423 | ||
17424 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17425 | PyObject *resultobj; | |
322913ce | 17426 | int arg1 ; |
d14a1e28 RD |
17427 | int arg2 = (int) wxDateTime::Inv_Month ; |
17428 | int arg3 = (int) wxDateTime::Inv_Year ; | |
322913ce RD |
17429 | int arg4 = (int) 0 ; |
17430 | int arg5 = (int) 0 ; | |
17431 | int arg6 = (int) 0 ; | |
17432 | int arg7 = (int) 0 ; | |
d14a1e28 | 17433 | wxDateTime *result; |
994141e6 RD |
17434 | PyObject * obj0 = 0 ; |
17435 | PyObject * obj1 = 0 ; | |
17436 | PyObject * obj2 = 0 ; | |
17437 | PyObject * obj3 = 0 ; | |
17438 | PyObject * obj4 = 0 ; | |
17439 | PyObject * obj5 = 0 ; | |
17440 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
17441 | char *kwnames[] = { |
17442 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17443 | }; | |
17444 | ||
994141e6 | 17445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
17446 | arg1 = (int) SWIG_AsInt(obj0); |
17447 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17448 | if (obj1) { |
15afbcd0 RD |
17449 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
17450 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17451 | } |
17452 | if (obj2) { | |
15afbcd0 RD |
17453 | arg3 = (int) SWIG_AsInt(obj2); |
17454 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17455 | } |
17456 | if (obj3) { | |
15afbcd0 RD |
17457 | arg4 = (int) SWIG_AsInt(obj3); |
17458 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17459 | } |
17460 | if (obj4) { | |
15afbcd0 RD |
17461 | arg5 = (int) SWIG_AsInt(obj4); |
17462 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17463 | } |
17464 | if (obj5) { | |
15afbcd0 RD |
17465 | arg6 = (int) SWIG_AsInt(obj5); |
17466 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17467 | } |
17468 | if (obj6) { | |
15afbcd0 RD |
17469 | arg7 = (int) SWIG_AsInt(obj6); |
17470 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17471 | } |
d14a1e28 RD |
17472 | { |
17473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17474 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
17475 | ||
17476 | wxPyEndAllowThreads(__tstate); | |
17477 | if (PyErr_Occurred()) SWIG_fail; | |
17478 | } | |
15afbcd0 | 17479 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17480 | return resultobj; |
17481 | fail: | |
17482 | return NULL; | |
17483 | } | |
17484 | ||
17485 | ||
17486 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17487 | PyObject *resultobj; | |
17488 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17489 | PyObject * obj0 = 0 ; | |
17490 | char *kwnames[] = { | |
17491 | (char *) "self", NULL | |
17492 | }; | |
17493 | ||
17494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17497 | { |
17498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17499 | delete arg1; | |
17500 | ||
17501 | wxPyEndAllowThreads(__tstate); | |
17502 | if (PyErr_Occurred()) SWIG_fail; | |
17503 | } | |
17504 | Py_INCREF(Py_None); resultobj = Py_None; | |
17505 | return resultobj; | |
17506 | fail: | |
17507 | return NULL; | |
17508 | } | |
17509 | ||
17510 | ||
17511 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17512 | PyObject *resultobj; | |
17513 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17514 | wxDateTime *result; | |
17515 | PyObject * obj0 = 0 ; | |
17516 | char *kwnames[] = { | |
17517 | (char *) "self", NULL | |
17518 | }; | |
17519 | ||
17520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17523 | { |
17524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17525 | { | |
17526 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
17527 | result = (wxDateTime *) &_result_ref; | |
17528 | } | |
17529 | ||
17530 | wxPyEndAllowThreads(__tstate); | |
17531 | if (PyErr_Occurred()) SWIG_fail; | |
17532 | } | |
15afbcd0 | 17533 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17534 | return resultobj; |
17535 | fail: | |
17536 | return NULL; | |
17537 | } | |
17538 | ||
17539 | ||
17540 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17541 | PyObject *resultobj; | |
17542 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17543 | time_t arg2 ; | |
17544 | wxDateTime *result; | |
17545 | PyObject * obj0 = 0 ; | |
17546 | PyObject * obj1 = 0 ; | |
17547 | char *kwnames[] = { | |
17548 | (char *) "self",(char *) "timet", NULL | |
17549 | }; | |
17550 | ||
17551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17554 | arg2 = (time_t) SWIG_AsUnsignedInt(obj1); | |
17555 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17556 | { |
17557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17558 | { | |
17559 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17560 | result = (wxDateTime *) &_result_ref; | |
17561 | } | |
17562 | ||
17563 | wxPyEndAllowThreads(__tstate); | |
17564 | if (PyErr_Occurred()) SWIG_fail; | |
17565 | } | |
15afbcd0 | 17566 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17567 | return resultobj; |
17568 | fail: | |
17569 | return NULL; | |
17570 | } | |
17571 | ||
17572 | ||
17573 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17574 | PyObject *resultobj; | |
17575 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17576 | double arg2 ; | |
17577 | wxDateTime *result; | |
17578 | PyObject * obj0 = 0 ; | |
994141e6 | 17579 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17580 | char *kwnames[] = { |
17581 | (char *) "self",(char *) "jdn", NULL | |
17582 | }; | |
17583 | ||
994141e6 | 17584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17587 | arg2 = (double) SWIG_AsDouble(obj1); | |
17588 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17589 | { |
17590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17591 | { | |
17592 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17593 | result = (wxDateTime *) &_result_ref; | |
17594 | } | |
17595 | ||
17596 | wxPyEndAllowThreads(__tstate); | |
17597 | if (PyErr_Occurred()) SWIG_fail; | |
17598 | } | |
15afbcd0 | 17599 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17600 | return resultobj; |
17601 | fail: | |
17602 | return NULL; | |
17603 | } | |
17604 | ||
17605 | ||
17606 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17607 | PyObject *resultobj; | |
17608 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce RD |
17609 | int arg2 ; |
17610 | int arg3 = (int) 0 ; | |
17611 | int arg4 = (int) 0 ; | |
17612 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
17613 | wxDateTime *result; |
17614 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17615 | PyObject * obj1 = 0 ; |
17616 | PyObject * obj2 = 0 ; | |
17617 | PyObject * obj3 = 0 ; | |
17618 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
17619 | char *kwnames[] = { |
17620 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17621 | }; | |
17622 | ||
994141e6 | 17623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
17624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17626 | arg2 = (int) SWIG_AsInt(obj1); | |
17627 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17628 | if (obj2) { |
15afbcd0 RD |
17629 | arg3 = (int) SWIG_AsInt(obj2); |
17630 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17631 | } |
17632 | if (obj3) { | |
15afbcd0 RD |
17633 | arg4 = (int) SWIG_AsInt(obj3); |
17634 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17635 | } |
17636 | if (obj4) { | |
15afbcd0 RD |
17637 | arg5 = (int) SWIG_AsInt(obj4); |
17638 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17639 | } |
d14a1e28 RD |
17640 | { |
17641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17642 | { | |
17643 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
17644 | result = (wxDateTime *) &_result_ref; | |
17645 | } | |
17646 | ||
17647 | wxPyEndAllowThreads(__tstate); | |
17648 | if (PyErr_Occurred()) SWIG_fail; | |
17649 | } | |
15afbcd0 | 17650 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17651 | return resultobj; |
17652 | fail: | |
17653 | return NULL; | |
17654 | } | |
17655 | ||
17656 | ||
17657 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17658 | PyObject *resultobj; | |
17659 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17660 | int arg2 ; |
d14a1e28 RD |
17661 | int arg3 = (int) wxDateTime::Inv_Month ; |
17662 | int arg4 = (int) wxDateTime::Inv_Year ; | |
322913ce RD |
17663 | int arg5 = (int) 0 ; |
17664 | int arg6 = (int) 0 ; | |
17665 | int arg7 = (int) 0 ; | |
17666 | int arg8 = (int) 0 ; | |
d14a1e28 RD |
17667 | wxDateTime *result; |
17668 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17669 | PyObject * obj1 = 0 ; |
17670 | PyObject * obj2 = 0 ; | |
17671 | PyObject * obj3 = 0 ; | |
17672 | PyObject * obj4 = 0 ; | |
17673 | PyObject * obj5 = 0 ; | |
17674 | PyObject * obj6 = 0 ; | |
17675 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
17676 | char *kwnames[] = { |
17677 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17678 | }; | |
17679 | ||
994141e6 | 17680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
17681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17683 | arg2 = (int) SWIG_AsInt(obj1); | |
17684 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17685 | if (obj2) { |
15afbcd0 RD |
17686 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
17687 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17688 | } |
17689 | if (obj3) { | |
15afbcd0 RD |
17690 | arg4 = (int) SWIG_AsInt(obj3); |
17691 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17692 | } |
17693 | if (obj4) { | |
15afbcd0 RD |
17694 | arg5 = (int) SWIG_AsInt(obj4); |
17695 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17696 | } |
17697 | if (obj5) { | |
15afbcd0 RD |
17698 | arg6 = (int) SWIG_AsInt(obj5); |
17699 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17700 | } |
17701 | if (obj6) { | |
15afbcd0 RD |
17702 | arg7 = (int) SWIG_AsInt(obj6); |
17703 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17704 | } |
17705 | if (obj7) { | |
15afbcd0 RD |
17706 | arg8 = (int) SWIG_AsInt(obj7); |
17707 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17708 | } |
d14a1e28 RD |
17709 | { |
17710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17711 | { | |
17712 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
17713 | result = (wxDateTime *) &_result_ref; | |
17714 | } | |
17715 | ||
17716 | wxPyEndAllowThreads(__tstate); | |
17717 | if (PyErr_Occurred()) SWIG_fail; | |
17718 | } | |
15afbcd0 | 17719 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17720 | return resultobj; |
17721 | fail: | |
17722 | return NULL; | |
17723 | } | |
17724 | ||
17725 | ||
17726 | static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17727 | PyObject *resultobj; | |
17728 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17729 | wxDateTime *result; | |
17730 | PyObject * obj0 = 0 ; | |
17731 | char *kwnames[] = { | |
17732 | (char *) "self", NULL | |
17733 | }; | |
17734 | ||
17735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17738 | { |
17739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17740 | { | |
17741 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
17742 | result = (wxDateTime *) &_result_ref; | |
17743 | } | |
17744 | ||
17745 | wxPyEndAllowThreads(__tstate); | |
17746 | if (PyErr_Occurred()) SWIG_fail; | |
17747 | } | |
15afbcd0 | 17748 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17749 | return resultobj; |
17750 | fail: | |
17751 | return NULL; | |
17752 | } | |
17753 | ||
17754 | ||
17755 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17756 | PyObject *resultobj; | |
17757 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17758 | int arg2 ; | |
17759 | wxDateTime *result; | |
17760 | PyObject * obj0 = 0 ; | |
994141e6 | 17761 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17762 | char *kwnames[] = { |
17763 | (char *) "self",(char *) "year", NULL | |
17764 | }; | |
17765 | ||
994141e6 | 17766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17769 | arg2 = (int) SWIG_AsInt(obj1); | |
17770 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17771 | { |
17772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17773 | { | |
17774 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
17775 | result = (wxDateTime *) &_result_ref; | |
17776 | } | |
17777 | ||
17778 | wxPyEndAllowThreads(__tstate); | |
17779 | if (PyErr_Occurred()) SWIG_fail; | |
17780 | } | |
15afbcd0 | 17781 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17782 | return resultobj; |
17783 | fail: | |
17784 | return NULL; | |
17785 | } | |
17786 | ||
17787 | ||
17788 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17789 | PyObject *resultobj; | |
17790 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17791 | int arg2 ; | |
17792 | wxDateTime *result; | |
17793 | PyObject * obj0 = 0 ; | |
994141e6 | 17794 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17795 | char *kwnames[] = { |
17796 | (char *) "self",(char *) "month", NULL | |
17797 | }; | |
17798 | ||
994141e6 | 17799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17802 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
17803 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17804 | { |
17805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17806 | { | |
17807 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
17808 | result = (wxDateTime *) &_result_ref; | |
17809 | } | |
17810 | ||
17811 | wxPyEndAllowThreads(__tstate); | |
17812 | if (PyErr_Occurred()) SWIG_fail; | |
17813 | } | |
15afbcd0 | 17814 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17815 | return resultobj; |
17816 | fail: | |
17817 | return NULL; | |
17818 | } | |
17819 | ||
17820 | ||
17821 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17822 | PyObject *resultobj; | |
17823 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17824 | int arg2 ; |
d14a1e28 RD |
17825 | wxDateTime *result; |
17826 | PyObject * obj0 = 0 ; | |
994141e6 | 17827 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17828 | char *kwnames[] = { |
17829 | (char *) "self",(char *) "day", NULL | |
17830 | }; | |
17831 | ||
994141e6 | 17832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17835 | arg2 = (int) SWIG_AsInt(obj1); | |
17836 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17837 | { |
17838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17839 | { | |
17840 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
17841 | result = (wxDateTime *) &_result_ref; | |
17842 | } | |
17843 | ||
17844 | wxPyEndAllowThreads(__tstate); | |
17845 | if (PyErr_Occurred()) SWIG_fail; | |
17846 | } | |
15afbcd0 | 17847 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17848 | return resultobj; |
17849 | fail: | |
17850 | return NULL; | |
17851 | } | |
17852 | ||
17853 | ||
17854 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17855 | PyObject *resultobj; | |
17856 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17857 | int arg2 ; |
d14a1e28 RD |
17858 | wxDateTime *result; |
17859 | PyObject * obj0 = 0 ; | |
994141e6 | 17860 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17861 | char *kwnames[] = { |
17862 | (char *) "self",(char *) "hour", NULL | |
17863 | }; | |
17864 | ||
994141e6 | 17865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17868 | arg2 = (int) SWIG_AsInt(obj1); | |
17869 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17870 | { |
17871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17872 | { | |
17873 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
17874 | result = (wxDateTime *) &_result_ref; | |
17875 | } | |
17876 | ||
17877 | wxPyEndAllowThreads(__tstate); | |
17878 | if (PyErr_Occurred()) SWIG_fail; | |
17879 | } | |
15afbcd0 | 17880 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17881 | return resultobj; |
17882 | fail: | |
17883 | return NULL; | |
17884 | } | |
17885 | ||
17886 | ||
17887 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17888 | PyObject *resultobj; | |
17889 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17890 | int arg2 ; |
d14a1e28 RD |
17891 | wxDateTime *result; |
17892 | PyObject * obj0 = 0 ; | |
994141e6 | 17893 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17894 | char *kwnames[] = { |
17895 | (char *) "self",(char *) "minute", NULL | |
17896 | }; | |
17897 | ||
994141e6 | 17898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17901 | arg2 = (int) SWIG_AsInt(obj1); | |
17902 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17903 | { |
17904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17905 | { | |
17906 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
17907 | result = (wxDateTime *) &_result_ref; | |
17908 | } | |
17909 | ||
17910 | wxPyEndAllowThreads(__tstate); | |
17911 | if (PyErr_Occurred()) SWIG_fail; | |
17912 | } | |
15afbcd0 | 17913 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17914 | return resultobj; |
17915 | fail: | |
17916 | return NULL; | |
17917 | } | |
17918 | ||
17919 | ||
17920 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17921 | PyObject *resultobj; | |
17922 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17923 | int arg2 ; |
d14a1e28 RD |
17924 | wxDateTime *result; |
17925 | PyObject * obj0 = 0 ; | |
994141e6 | 17926 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17927 | char *kwnames[] = { |
17928 | (char *) "self",(char *) "second", NULL | |
17929 | }; | |
17930 | ||
994141e6 | 17931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17934 | arg2 = (int) SWIG_AsInt(obj1); | |
17935 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17936 | { |
17937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17938 | { | |
17939 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
17940 | result = (wxDateTime *) &_result_ref; | |
17941 | } | |
17942 | ||
17943 | wxPyEndAllowThreads(__tstate); | |
17944 | if (PyErr_Occurred()) SWIG_fail; | |
17945 | } | |
15afbcd0 | 17946 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17947 | return resultobj; |
17948 | fail: | |
17949 | return NULL; | |
17950 | } | |
17951 | ||
17952 | ||
17953 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17954 | PyObject *resultobj; | |
17955 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17956 | int arg2 ; |
d14a1e28 RD |
17957 | wxDateTime *result; |
17958 | PyObject * obj0 = 0 ; | |
994141e6 | 17959 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17960 | char *kwnames[] = { |
17961 | (char *) "self",(char *) "millisecond", NULL | |
17962 | }; | |
17963 | ||
994141e6 | 17964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17967 | arg2 = (int) SWIG_AsInt(obj1); | |
17968 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17969 | { |
17970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17971 | { | |
17972 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
17973 | result = (wxDateTime *) &_result_ref; | |
17974 | } | |
17975 | ||
17976 | wxPyEndAllowThreads(__tstate); | |
17977 | if (PyErr_Occurred()) SWIG_fail; | |
17978 | } | |
15afbcd0 | 17979 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17980 | return resultobj; |
17981 | fail: | |
17982 | return NULL; | |
17983 | } | |
17984 | ||
17985 | ||
17986 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17987 | PyObject *resultobj; | |
17988 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17989 | int arg2 ; | |
17990 | int arg3 = (int) wxDateTime::Monday_First ; | |
17991 | wxDateTime *result; | |
17992 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17993 | PyObject * obj1 = 0 ; |
17994 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17995 | char *kwnames[] = { |
17996 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
17997 | }; | |
17998 | ||
994141e6 | 17999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18002 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18003 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18004 | if (obj2) { |
15afbcd0 RD |
18005 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); |
18006 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18007 | } |
d14a1e28 RD |
18008 | { |
18009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18010 | { | |
18011 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18012 | result = (wxDateTime *) &_result_ref; | |
18013 | } | |
18014 | ||
18015 | wxPyEndAllowThreads(__tstate); | |
18016 | if (PyErr_Occurred()) SWIG_fail; | |
18017 | } | |
15afbcd0 | 18018 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18019 | return resultobj; |
18020 | fail: | |
18021 | return NULL; | |
18022 | } | |
18023 | ||
18024 | ||
18025 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18026 | PyObject *resultobj; | |
18027 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18028 | int arg2 ; | |
18029 | int arg3 = (int) wxDateTime::Monday_First ; | |
18030 | wxDateTime result; | |
18031 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18032 | PyObject * obj1 = 0 ; |
18033 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18034 | char *kwnames[] = { |
18035 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18036 | }; | |
18037 | ||
994141e6 | 18038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18041 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18042 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18043 | if (obj2) { |
15afbcd0 RD |
18044 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); |
18045 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18046 | } |
d14a1e28 RD |
18047 | { |
18048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18049 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18050 | ||
18051 | wxPyEndAllowThreads(__tstate); | |
18052 | if (PyErr_Occurred()) SWIG_fail; | |
18053 | } | |
18054 | { | |
18055 | wxDateTime * resultptr; | |
18056 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18057 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18058 | } |
18059 | return resultobj; | |
18060 | fail: | |
18061 | return NULL; | |
18062 | } | |
18063 | ||
18064 | ||
18065 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18066 | PyObject *resultobj; | |
18067 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18068 | int arg2 ; | |
18069 | wxDateTime *result; | |
18070 | PyObject * obj0 = 0 ; | |
994141e6 | 18071 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18072 | char *kwnames[] = { |
18073 | (char *) "self",(char *) "weekday", NULL | |
18074 | }; | |
18075 | ||
994141e6 | 18076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18079 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18080 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18081 | { |
18082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18083 | { | |
18084 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
18085 | result = (wxDateTime *) &_result_ref; | |
18086 | } | |
18087 | ||
18088 | wxPyEndAllowThreads(__tstate); | |
18089 | if (PyErr_Occurred()) SWIG_fail; | |
18090 | } | |
15afbcd0 | 18091 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18092 | return resultobj; |
18093 | fail: | |
18094 | return NULL; | |
18095 | } | |
18096 | ||
18097 | ||
18098 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18099 | PyObject *resultobj; | |
18100 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18101 | int arg2 ; | |
18102 | wxDateTime result; | |
18103 | PyObject * obj0 = 0 ; | |
994141e6 | 18104 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18105 | char *kwnames[] = { |
18106 | (char *) "self",(char *) "weekday", NULL | |
18107 | }; | |
18108 | ||
994141e6 | 18109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18112 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18113 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18114 | { |
18115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18116 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
18117 | ||
18118 | wxPyEndAllowThreads(__tstate); | |
18119 | if (PyErr_Occurred()) SWIG_fail; | |
18120 | } | |
18121 | { | |
18122 | wxDateTime * resultptr; | |
18123 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18124 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18125 | } |
18126 | return resultobj; | |
18127 | fail: | |
18128 | return NULL; | |
18129 | } | |
18130 | ||
18131 | ||
18132 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18133 | PyObject *resultobj; | |
18134 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18135 | int arg2 ; | |
18136 | wxDateTime *result; | |
18137 | PyObject * obj0 = 0 ; | |
994141e6 | 18138 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18139 | char *kwnames[] = { |
18140 | (char *) "self",(char *) "weekday", NULL | |
18141 | }; | |
18142 | ||
994141e6 | 18143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18146 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18147 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18148 | { |
18149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18150 | { | |
18151 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18152 | result = (wxDateTime *) &_result_ref; | |
18153 | } | |
18154 | ||
18155 | wxPyEndAllowThreads(__tstate); | |
18156 | if (PyErr_Occurred()) SWIG_fail; | |
18157 | } | |
15afbcd0 | 18158 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18159 | return resultobj; |
18160 | fail: | |
18161 | return NULL; | |
18162 | } | |
18163 | ||
18164 | ||
18165 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18166 | PyObject *resultobj; | |
18167 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18168 | int arg2 ; | |
18169 | wxDateTime result; | |
18170 | PyObject * obj0 = 0 ; | |
994141e6 | 18171 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18172 | char *kwnames[] = { |
18173 | (char *) "self",(char *) "weekday", NULL | |
18174 | }; | |
18175 | ||
994141e6 | 18176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18179 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18180 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18181 | { |
18182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18183 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18184 | ||
18185 | wxPyEndAllowThreads(__tstate); | |
18186 | if (PyErr_Occurred()) SWIG_fail; | |
18187 | } | |
18188 | { | |
18189 | wxDateTime * resultptr; | |
18190 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18191 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18192 | } |
18193 | return resultobj; | |
18194 | fail: | |
18195 | return NULL; | |
18196 | } | |
18197 | ||
18198 | ||
18199 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18200 | PyObject *resultobj; | |
18201 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18202 | int arg2 ; | |
18203 | int arg3 = (int) 1 ; | |
18204 | int arg4 = (int) wxDateTime::Inv_Month ; | |
18205 | int arg5 = (int) wxDateTime::Inv_Year ; | |
18206 | bool result; | |
18207 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18208 | PyObject * obj1 = 0 ; |
18209 | PyObject * obj2 = 0 ; | |
18210 | PyObject * obj3 = 0 ; | |
18211 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
18212 | char *kwnames[] = { |
18213 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
18214 | }; | |
18215 | ||
994141e6 | 18216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
18217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18219 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18220 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18221 | if (obj2) { |
15afbcd0 RD |
18222 | arg3 = (int) SWIG_AsInt(obj2); |
18223 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18224 | } |
18225 | if (obj3) { | |
15afbcd0 RD |
18226 | arg4 = (wxDateTime::Month) SWIG_AsInt(obj3); |
18227 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18228 | } |
18229 | if (obj4) { | |
15afbcd0 RD |
18230 | arg5 = (int) SWIG_AsInt(obj4); |
18231 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18232 | } |
d14a1e28 RD |
18233 | { |
18234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18235 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
18236 | ||
18237 | wxPyEndAllowThreads(__tstate); | |
18238 | if (PyErr_Occurred()) SWIG_fail; | |
18239 | } | |
4f89f6a3 RD |
18240 | { |
18241 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18242 | } | |
d14a1e28 RD |
18243 | return resultobj; |
18244 | fail: | |
18245 | return NULL; | |
18246 | } | |
18247 | ||
18248 | ||
18249 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18250 | PyObject *resultobj; | |
18251 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18252 | int arg2 ; | |
18253 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18254 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18255 | bool result; | |
18256 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18257 | PyObject * obj1 = 0 ; |
18258 | PyObject * obj2 = 0 ; | |
18259 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18260 | char *kwnames[] = { |
18261 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18262 | }; | |
18263 | ||
994141e6 | 18264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18267 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18268 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18269 | if (obj2) { |
15afbcd0 RD |
18270 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
18271 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18272 | } |
18273 | if (obj3) { | |
15afbcd0 RD |
18274 | arg4 = (int) SWIG_AsInt(obj3); |
18275 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18276 | } |
d14a1e28 RD |
18277 | { |
18278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18279 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18280 | ||
18281 | wxPyEndAllowThreads(__tstate); | |
18282 | if (PyErr_Occurred()) SWIG_fail; | |
18283 | } | |
4f89f6a3 RD |
18284 | { |
18285 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18286 | } | |
d14a1e28 RD |
18287 | return resultobj; |
18288 | fail: | |
18289 | return NULL; | |
18290 | } | |
18291 | ||
18292 | ||
18293 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18294 | PyObject *resultobj; | |
18295 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18296 | int arg2 ; | |
18297 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18298 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18299 | wxDateTime result; | |
18300 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18301 | PyObject * obj1 = 0 ; |
18302 | PyObject * obj2 = 0 ; | |
18303 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18304 | char *kwnames[] = { |
18305 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18306 | }; | |
18307 | ||
994141e6 | 18308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18311 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18312 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18313 | if (obj2) { |
15afbcd0 RD |
18314 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
18315 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18316 | } |
18317 | if (obj3) { | |
15afbcd0 RD |
18318 | arg4 = (int) SWIG_AsInt(obj3); |
18319 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18320 | } |
d14a1e28 RD |
18321 | { |
18322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18323 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18324 | ||
18325 | wxPyEndAllowThreads(__tstate); | |
18326 | if (PyErr_Occurred()) SWIG_fail; | |
18327 | } | |
18328 | { | |
18329 | wxDateTime * resultptr; | |
18330 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18331 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18332 | } |
18333 | return resultobj; | |
18334 | fail: | |
18335 | return NULL; | |
18336 | } | |
18337 | ||
18338 | ||
18339 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18340 | PyObject *resultobj; | |
18341 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18342 | int arg2 ; |
d14a1e28 RD |
18343 | int arg3 = (int) wxDateTime::Mon ; |
18344 | int arg4 = (int) wxDateTime::Monday_First ; | |
18345 | bool result; | |
18346 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18347 | PyObject * obj1 = 0 ; |
18348 | PyObject * obj2 = 0 ; | |
18349 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18350 | char *kwnames[] = { |
18351 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18352 | }; | |
18353 | ||
994141e6 | 18354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18357 | arg2 = (int) SWIG_AsInt(obj1); | |
18358 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18359 | if (obj2) { |
15afbcd0 RD |
18360 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); |
18361 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18362 | } |
18363 | if (obj3) { | |
15afbcd0 RD |
18364 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); |
18365 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18366 | } |
d14a1e28 RD |
18367 | { |
18368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18369 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18370 | ||
18371 | wxPyEndAllowThreads(__tstate); | |
18372 | if (PyErr_Occurred()) SWIG_fail; | |
18373 | } | |
4f89f6a3 RD |
18374 | { |
18375 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18376 | } | |
d14a1e28 RD |
18377 | return resultobj; |
18378 | fail: | |
18379 | return NULL; | |
18380 | } | |
18381 | ||
18382 | ||
18383 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18384 | PyObject *resultobj; | |
18385 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18386 | int arg2 ; |
d14a1e28 RD |
18387 | int arg3 = (int) wxDateTime::Mon ; |
18388 | int arg4 = (int) wxDateTime::Monday_First ; | |
18389 | wxDateTime result; | |
18390 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18391 | PyObject * obj1 = 0 ; |
18392 | PyObject * obj2 = 0 ; | |
18393 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18394 | char *kwnames[] = { |
18395 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18396 | }; | |
18397 | ||
994141e6 | 18398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18401 | arg2 = (int) SWIG_AsInt(obj1); | |
18402 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18403 | if (obj2) { |
15afbcd0 RD |
18404 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); |
18405 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18406 | } |
18407 | if (obj3) { | |
15afbcd0 RD |
18408 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); |
18409 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18410 | } |
d14a1e28 RD |
18411 | { |
18412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18413 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18414 | ||
18415 | wxPyEndAllowThreads(__tstate); | |
18416 | if (PyErr_Occurred()) SWIG_fail; | |
18417 | } | |
18418 | { | |
18419 | wxDateTime * resultptr; | |
18420 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18421 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18422 | } |
18423 | return resultobj; | |
18424 | fail: | |
18425 | return NULL; | |
18426 | } | |
18427 | ||
18428 | ||
18429 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18430 | PyObject *resultobj; | |
18431 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18432 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18433 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18434 | wxDateTime *result; | |
18435 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18436 | PyObject * obj1 = 0 ; |
18437 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18438 | char *kwnames[] = { |
18439 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18440 | }; | |
18441 | ||
994141e6 | 18442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 18445 | if (obj1) { |
15afbcd0 RD |
18446 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
18447 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18448 | } |
18449 | if (obj2) { | |
15afbcd0 RD |
18450 | arg3 = (int) SWIG_AsInt(obj2); |
18451 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18452 | } |
d14a1e28 RD |
18453 | { |
18454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18455 | { | |
18456 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18457 | result = (wxDateTime *) &_result_ref; | |
18458 | } | |
18459 | ||
18460 | wxPyEndAllowThreads(__tstate); | |
18461 | if (PyErr_Occurred()) SWIG_fail; | |
18462 | } | |
15afbcd0 | 18463 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18464 | return resultobj; |
18465 | fail: | |
18466 | return NULL; | |
18467 | } | |
18468 | ||
18469 | ||
18470 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18471 | PyObject *resultobj; | |
18472 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18473 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18474 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18475 | wxDateTime result; | |
18476 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18477 | PyObject * obj1 = 0 ; |
18478 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18479 | char *kwnames[] = { |
18480 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18481 | }; | |
18482 | ||
994141e6 | 18483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 18486 | if (obj1) { |
15afbcd0 RD |
18487 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
18488 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18489 | } |
18490 | if (obj2) { | |
15afbcd0 RD |
18491 | arg3 = (int) SWIG_AsInt(obj2); |
18492 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18493 | } |
d14a1e28 RD |
18494 | { |
18495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18496 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18497 | ||
18498 | wxPyEndAllowThreads(__tstate); | |
18499 | if (PyErr_Occurred()) SWIG_fail; | |
18500 | } | |
18501 | { | |
18502 | wxDateTime * resultptr; | |
18503 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18504 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18505 | } |
18506 | return resultobj; | |
18507 | fail: | |
18508 | return NULL; | |
18509 | } | |
18510 | ||
18511 | ||
18512 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18513 | PyObject *resultobj; | |
18514 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18515 | int arg2 ; |
d14a1e28 RD |
18516 | wxDateTime *result; |
18517 | PyObject * obj0 = 0 ; | |
994141e6 | 18518 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18519 | char *kwnames[] = { |
18520 | (char *) "self",(char *) "yday", NULL | |
18521 | }; | |
18522 | ||
994141e6 | 18523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18526 | arg2 = (int) SWIG_AsInt(obj1); | |
18527 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18528 | { |
18529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18530 | { | |
18531 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
18532 | result = (wxDateTime *) &_result_ref; | |
18533 | } | |
18534 | ||
18535 | wxPyEndAllowThreads(__tstate); | |
18536 | if (PyErr_Occurred()) SWIG_fail; | |
18537 | } | |
15afbcd0 | 18538 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18539 | return resultobj; |
18540 | fail: | |
18541 | return NULL; | |
18542 | } | |
18543 | ||
18544 | ||
18545 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18546 | PyObject *resultobj; | |
18547 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18548 | int arg2 ; |
d14a1e28 RD |
18549 | wxDateTime result; |
18550 | PyObject * obj0 = 0 ; | |
994141e6 | 18551 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18552 | char *kwnames[] = { |
18553 | (char *) "self",(char *) "yday", NULL | |
18554 | }; | |
18555 | ||
994141e6 | 18556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18559 | arg2 = (int) SWIG_AsInt(obj1); | |
18560 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18561 | { |
18562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18563 | result = (arg1)->GetYearDay(arg2); | |
18564 | ||
18565 | wxPyEndAllowThreads(__tstate); | |
18566 | if (PyErr_Occurred()) SWIG_fail; | |
18567 | } | |
18568 | { | |
18569 | wxDateTime * resultptr; | |
18570 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18571 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18572 | } |
18573 | return resultobj; | |
18574 | fail: | |
18575 | return NULL; | |
18576 | } | |
18577 | ||
18578 | ||
18579 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18580 | PyObject *resultobj; | |
18581 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18582 | double result; | |
18583 | PyObject * obj0 = 0 ; | |
18584 | char *kwnames[] = { | |
18585 | (char *) "self", NULL | |
18586 | }; | |
18587 | ||
18588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18591 | { |
18592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18593 | result = (double)(arg1)->GetJulianDayNumber(); | |
18594 | ||
18595 | wxPyEndAllowThreads(__tstate); | |
18596 | if (PyErr_Occurred()) SWIG_fail; | |
18597 | } | |
15afbcd0 | 18598 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18599 | return resultobj; |
18600 | fail: | |
18601 | return NULL; | |
18602 | } | |
18603 | ||
18604 | ||
18605 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18606 | PyObject *resultobj; | |
18607 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18608 | double result; | |
18609 | PyObject * obj0 = 0 ; | |
18610 | char *kwnames[] = { | |
18611 | (char *) "self", NULL | |
18612 | }; | |
18613 | ||
18614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18617 | { |
18618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18619 | result = (double)(arg1)->GetJDN(); | |
18620 | ||
18621 | wxPyEndAllowThreads(__tstate); | |
18622 | if (PyErr_Occurred()) SWIG_fail; | |
18623 | } | |
15afbcd0 | 18624 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18625 | return resultobj; |
18626 | fail: | |
18627 | return NULL; | |
18628 | } | |
18629 | ||
18630 | ||
18631 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18632 | PyObject *resultobj; | |
18633 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18634 | double result; | |
18635 | PyObject * obj0 = 0 ; | |
18636 | char *kwnames[] = { | |
18637 | (char *) "self", NULL | |
18638 | }; | |
18639 | ||
18640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18643 | { |
18644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18645 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
18646 | ||
18647 | wxPyEndAllowThreads(__tstate); | |
18648 | if (PyErr_Occurred()) SWIG_fail; | |
18649 | } | |
15afbcd0 | 18650 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18651 | return resultobj; |
18652 | fail: | |
18653 | return NULL; | |
18654 | } | |
18655 | ||
18656 | ||
18657 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18658 | PyObject *resultobj; | |
18659 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18660 | double result; | |
18661 | PyObject * obj0 = 0 ; | |
18662 | char *kwnames[] = { | |
18663 | (char *) "self", NULL | |
18664 | }; | |
18665 | ||
18666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18669 | { |
18670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18671 | result = (double)(arg1)->GetMJD(); | |
18672 | ||
18673 | wxPyEndAllowThreads(__tstate); | |
18674 | if (PyErr_Occurred()) SWIG_fail; | |
18675 | } | |
15afbcd0 | 18676 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18677 | return resultobj; |
18678 | fail: | |
18679 | return NULL; | |
18680 | } | |
18681 | ||
18682 | ||
18683 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18684 | PyObject *resultobj; | |
18685 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18686 | double result; | |
18687 | PyObject * obj0 = 0 ; | |
18688 | char *kwnames[] = { | |
18689 | (char *) "self", NULL | |
18690 | }; | |
18691 | ||
18692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18695 | { |
18696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18697 | result = (double)(arg1)->GetRataDie(); | |
18698 | ||
18699 | wxPyEndAllowThreads(__tstate); | |
18700 | if (PyErr_Occurred()) SWIG_fail; | |
18701 | } | |
15afbcd0 | 18702 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18703 | return resultobj; |
18704 | fail: | |
18705 | return NULL; | |
18706 | } | |
18707 | ||
18708 | ||
18709 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18710 | PyObject *resultobj; | |
18711 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18712 | wxDateTime::TimeZone *arg2 = 0 ; | |
e811c8ce | 18713 | bool arg3 = (bool) False ; |
d14a1e28 | 18714 | wxDateTime result; |
7722248d | 18715 | bool temp2 = False ; |
d14a1e28 RD |
18716 | PyObject * obj0 = 0 ; |
18717 | PyObject * obj1 = 0 ; | |
18718 | PyObject * obj2 = 0 ; | |
18719 | char *kwnames[] = { | |
18720 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18721 | }; | |
18722 | ||
18723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
18724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18726 | { |
18727 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18728 | temp2 = True; |
d14a1e28 RD |
18729 | } |
18730 | if (obj2) { | |
15afbcd0 RD |
18731 | arg3 = (bool) SWIG_AsBool(obj2); |
18732 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18733 | } |
18734 | { | |
18735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18736 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18737 | ||
18738 | wxPyEndAllowThreads(__tstate); | |
18739 | if (PyErr_Occurred()) SWIG_fail; | |
18740 | } | |
18741 | { | |
18742 | wxDateTime * resultptr; | |
18743 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18744 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18745 | } |
18746 | { | |
7722248d | 18747 | if (temp2) delete arg2; |
d14a1e28 RD |
18748 | } |
18749 | return resultobj; | |
18750 | fail: | |
18751 | { | |
7722248d | 18752 | if (temp2) delete arg2; |
d14a1e28 RD |
18753 | } |
18754 | return NULL; | |
18755 | } | |
18756 | ||
18757 | ||
18758 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18759 | PyObject *resultobj; | |
18760 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18761 | wxDateTime::TimeZone *arg2 = 0 ; | |
e811c8ce | 18762 | bool arg3 = (bool) False ; |
d14a1e28 | 18763 | wxDateTime *result; |
7722248d | 18764 | bool temp2 = False ; |
d14a1e28 RD |
18765 | PyObject * obj0 = 0 ; |
18766 | PyObject * obj1 = 0 ; | |
18767 | PyObject * obj2 = 0 ; | |
18768 | char *kwnames[] = { | |
18769 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18770 | }; | |
18771 | ||
18772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
18773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18775 | { |
18776 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18777 | temp2 = True; |
d14a1e28 RD |
18778 | } |
18779 | if (obj2) { | |
15afbcd0 RD |
18780 | arg3 = (bool) SWIG_AsBool(obj2); |
18781 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18782 | } |
18783 | { | |
18784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18785 | { | |
18786 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18787 | result = (wxDateTime *) &_result_ref; | |
18788 | } | |
18789 | ||
18790 | wxPyEndAllowThreads(__tstate); | |
18791 | if (PyErr_Occurred()) SWIG_fail; | |
18792 | } | |
15afbcd0 | 18793 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 | 18794 | { |
7722248d | 18795 | if (temp2) delete arg2; |
d14a1e28 RD |
18796 | } |
18797 | return resultobj; | |
18798 | fail: | |
18799 | { | |
7722248d | 18800 | if (temp2) delete arg2; |
d14a1e28 RD |
18801 | } |
18802 | return NULL; | |
18803 | } | |
18804 | ||
18805 | ||
18806 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18807 | PyObject *resultobj; | |
18808 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
e811c8ce | 18809 | bool arg2 = (bool) False ; |
d14a1e28 RD |
18810 | wxDateTime result; |
18811 | PyObject * obj0 = 0 ; | |
18812 | PyObject * obj1 = 0 ; | |
18813 | char *kwnames[] = { | |
18814 | (char *) "self",(char *) "noDST", NULL | |
18815 | }; | |
18816 | ||
18817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 18820 | if (obj1) { |
15afbcd0 RD |
18821 | arg2 = (bool) SWIG_AsBool(obj1); |
18822 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18823 | } |
18824 | { | |
18825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18826 | result = (arg1)->ToGMT(arg2); | |
18827 | ||
18828 | wxPyEndAllowThreads(__tstate); | |
18829 | if (PyErr_Occurred()) SWIG_fail; | |
18830 | } | |
18831 | { | |
18832 | wxDateTime * resultptr; | |
18833 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18834 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18835 | } |
18836 | return resultobj; | |
18837 | fail: | |
18838 | return NULL; | |
18839 | } | |
18840 | ||
18841 | ||
18842 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18843 | PyObject *resultobj; | |
18844 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
e811c8ce | 18845 | bool arg2 = (bool) False ; |
d14a1e28 RD |
18846 | wxDateTime *result; |
18847 | PyObject * obj0 = 0 ; | |
18848 | PyObject * obj1 = 0 ; | |
18849 | char *kwnames[] = { | |
18850 | (char *) "self",(char *) "noDST", NULL | |
18851 | }; | |
18852 | ||
18853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 18856 | if (obj1) { |
15afbcd0 RD |
18857 | arg2 = (bool) SWIG_AsBool(obj1); |
18858 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18859 | } |
18860 | { | |
18861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18862 | { | |
18863 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
18864 | result = (wxDateTime *) &_result_ref; | |
18865 | } | |
18866 | ||
18867 | wxPyEndAllowThreads(__tstate); | |
18868 | if (PyErr_Occurred()) SWIG_fail; | |
18869 | } | |
15afbcd0 | 18870 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18871 | return resultobj; |
18872 | fail: | |
18873 | return NULL; | |
18874 | } | |
18875 | ||
18876 | ||
18877 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18878 | PyObject *resultobj; | |
18879 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18880 | int arg2 = (int) wxDateTime::Country_Default ; | |
18881 | int result; | |
18882 | PyObject * obj0 = 0 ; | |
994141e6 | 18883 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18884 | char *kwnames[] = { |
18885 | (char *) "self",(char *) "country", NULL | |
18886 | }; | |
18887 | ||
994141e6 | 18888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 18891 | if (obj1) { |
15afbcd0 RD |
18892 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
18893 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18894 | } |
d14a1e28 RD |
18895 | { |
18896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18897 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
18898 | ||
18899 | wxPyEndAllowThreads(__tstate); | |
18900 | if (PyErr_Occurred()) SWIG_fail; | |
18901 | } | |
15afbcd0 | 18902 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18903 | return resultobj; |
18904 | fail: | |
18905 | return NULL; | |
18906 | } | |
18907 | ||
18908 | ||
18909 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18910 | PyObject *resultobj; | |
18911 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18912 | bool result; | |
18913 | PyObject * obj0 = 0 ; | |
18914 | char *kwnames[] = { | |
18915 | (char *) "self", NULL | |
18916 | }; | |
18917 | ||
18918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18921 | { |
18922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18923 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
18924 | ||
18925 | wxPyEndAllowThreads(__tstate); | |
18926 | if (PyErr_Occurred()) SWIG_fail; | |
18927 | } | |
4f89f6a3 RD |
18928 | { |
18929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18930 | } | |
d14a1e28 RD |
18931 | return resultobj; |
18932 | fail: | |
18933 | return NULL; | |
18934 | } | |
18935 | ||
18936 | ||
18937 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18938 | PyObject *resultobj; | |
18939 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18940 | time_t result; | |
18941 | PyObject * obj0 = 0 ; | |
18942 | char *kwnames[] = { | |
18943 | (char *) "self", NULL | |
18944 | }; | |
18945 | ||
18946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18949 | { |
18950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18951 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
18952 | ||
18953 | wxPyEndAllowThreads(__tstate); | |
18954 | if (PyErr_Occurred()) SWIG_fail; | |
18955 | } | |
15afbcd0 | 18956 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
18957 | return resultobj; |
18958 | fail: | |
18959 | return NULL; | |
18960 | } | |
18961 | ||
18962 | ||
18963 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18964 | PyObject *resultobj; | |
18965 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18966 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18967 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18968 | int result; | |
7722248d | 18969 | bool temp2 = False ; |
d14a1e28 RD |
18970 | PyObject * obj0 = 0 ; |
18971 | PyObject * obj1 = 0 ; | |
18972 | char *kwnames[] = { | |
18973 | (char *) "self",(char *) "tz", NULL | |
18974 | }; | |
18975 | ||
18976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18979 | if (obj1) { |
18980 | { | |
18981 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18982 | temp2 = True; |
d14a1e28 RD |
18983 | } |
18984 | } | |
18985 | { | |
18986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18987 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
18988 | ||
18989 | wxPyEndAllowThreads(__tstate); | |
18990 | if (PyErr_Occurred()) SWIG_fail; | |
18991 | } | |
15afbcd0 | 18992 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 18993 | { |
7722248d | 18994 | if (temp2) delete arg2; |
d14a1e28 RD |
18995 | } |
18996 | return resultobj; | |
18997 | fail: | |
18998 | { | |
7722248d | 18999 | if (temp2) delete arg2; |
d14a1e28 RD |
19000 | } |
19001 | return NULL; | |
19002 | } | |
19003 | ||
19004 | ||
19005 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19006 | PyObject *resultobj; | |
19007 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19008 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19009 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19010 | int result; | |
7722248d | 19011 | bool temp2 = False ; |
d14a1e28 RD |
19012 | PyObject * obj0 = 0 ; |
19013 | PyObject * obj1 = 0 ; | |
19014 | char *kwnames[] = { | |
19015 | (char *) "self",(char *) "tz", NULL | |
19016 | }; | |
19017 | ||
19018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19021 | if (obj1) { |
19022 | { | |
19023 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19024 | temp2 = True; |
d14a1e28 RD |
19025 | } |
19026 | } | |
19027 | { | |
19028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19029 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
19030 | ||
19031 | wxPyEndAllowThreads(__tstate); | |
19032 | if (PyErr_Occurred()) SWIG_fail; | |
19033 | } | |
15afbcd0 | 19034 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19035 | { |
7722248d | 19036 | if (temp2) delete arg2; |
d14a1e28 RD |
19037 | } |
19038 | return resultobj; | |
19039 | fail: | |
19040 | { | |
7722248d | 19041 | if (temp2) delete arg2; |
d14a1e28 RD |
19042 | } |
19043 | return NULL; | |
19044 | } | |
19045 | ||
19046 | ||
19047 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19048 | PyObject *resultobj; | |
19049 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19050 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19051 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19052 | int result; |
7722248d | 19053 | bool temp2 = False ; |
d14a1e28 RD |
19054 | PyObject * obj0 = 0 ; |
19055 | PyObject * obj1 = 0 ; | |
19056 | char *kwnames[] = { | |
19057 | (char *) "self",(char *) "tz", NULL | |
19058 | }; | |
19059 | ||
19060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19063 | if (obj1) { |
19064 | { | |
19065 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19066 | temp2 = True; |
d14a1e28 RD |
19067 | } |
19068 | } | |
19069 | { | |
19070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19071 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19072 | |
19073 | wxPyEndAllowThreads(__tstate); | |
19074 | if (PyErr_Occurred()) SWIG_fail; | |
19075 | } | |
15afbcd0 | 19076 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19077 | { |
7722248d | 19078 | if (temp2) delete arg2; |
d14a1e28 RD |
19079 | } |
19080 | return resultobj; | |
19081 | fail: | |
19082 | { | |
7722248d | 19083 | if (temp2) delete arg2; |
d14a1e28 RD |
19084 | } |
19085 | return NULL; | |
19086 | } | |
19087 | ||
19088 | ||
19089 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19090 | PyObject *resultobj; | |
19091 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19092 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19093 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19094 | int result; | |
7722248d | 19095 | bool temp2 = False ; |
d14a1e28 RD |
19096 | PyObject * obj0 = 0 ; |
19097 | PyObject * obj1 = 0 ; | |
19098 | char *kwnames[] = { | |
19099 | (char *) "self",(char *) "tz", NULL | |
19100 | }; | |
19101 | ||
19102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19105 | if (obj1) { |
19106 | { | |
19107 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19108 | temp2 = True; |
d14a1e28 RD |
19109 | } |
19110 | } | |
19111 | { | |
19112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19113 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
19114 | ||
19115 | wxPyEndAllowThreads(__tstate); | |
19116 | if (PyErr_Occurred()) SWIG_fail; | |
19117 | } | |
15afbcd0 | 19118 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19119 | { |
7722248d | 19120 | if (temp2) delete arg2; |
d14a1e28 RD |
19121 | } |
19122 | return resultobj; | |
19123 | fail: | |
19124 | { | |
7722248d | 19125 | if (temp2) delete arg2; |
d14a1e28 RD |
19126 | } |
19127 | return NULL; | |
19128 | } | |
19129 | ||
19130 | ||
19131 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19132 | PyObject *resultobj; | |
19133 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19134 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19135 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19136 | int result; |
7722248d | 19137 | bool temp2 = False ; |
d14a1e28 RD |
19138 | PyObject * obj0 = 0 ; |
19139 | PyObject * obj1 = 0 ; | |
19140 | char *kwnames[] = { | |
19141 | (char *) "self",(char *) "tz", NULL | |
19142 | }; | |
19143 | ||
19144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19147 | if (obj1) { |
19148 | { | |
19149 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19150 | temp2 = True; |
d14a1e28 RD |
19151 | } |
19152 | } | |
19153 | { | |
19154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19155 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19156 | |
19157 | wxPyEndAllowThreads(__tstate); | |
19158 | if (PyErr_Occurred()) SWIG_fail; | |
19159 | } | |
15afbcd0 | 19160 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19161 | { |
7722248d | 19162 | if (temp2) delete arg2; |
d14a1e28 RD |
19163 | } |
19164 | return resultobj; | |
19165 | fail: | |
19166 | { | |
7722248d | 19167 | if (temp2) delete arg2; |
d14a1e28 RD |
19168 | } |
19169 | return NULL; | |
19170 | } | |
19171 | ||
19172 | ||
19173 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19174 | PyObject *resultobj; | |
19175 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19176 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19177 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19178 | int result; |
7722248d | 19179 | bool temp2 = False ; |
d14a1e28 RD |
19180 | PyObject * obj0 = 0 ; |
19181 | PyObject * obj1 = 0 ; | |
19182 | char *kwnames[] = { | |
19183 | (char *) "self",(char *) "tz", NULL | |
19184 | }; | |
19185 | ||
19186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19189 | if (obj1) { |
19190 | { | |
19191 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19192 | temp2 = True; |
d14a1e28 RD |
19193 | } |
19194 | } | |
19195 | { | |
19196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19197 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19198 | |
19199 | wxPyEndAllowThreads(__tstate); | |
19200 | if (PyErr_Occurred()) SWIG_fail; | |
19201 | } | |
15afbcd0 | 19202 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19203 | { |
7722248d | 19204 | if (temp2) delete arg2; |
d14a1e28 RD |
19205 | } |
19206 | return resultobj; | |
19207 | fail: | |
19208 | { | |
7722248d | 19209 | if (temp2) delete arg2; |
d14a1e28 RD |
19210 | } |
19211 | return NULL; | |
19212 | } | |
19213 | ||
19214 | ||
19215 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19216 | PyObject *resultobj; | |
19217 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19218 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19219 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19220 | int result; |
7722248d | 19221 | bool temp2 = False ; |
d14a1e28 RD |
19222 | PyObject * obj0 = 0 ; |
19223 | PyObject * obj1 = 0 ; | |
19224 | char *kwnames[] = { | |
19225 | (char *) "self",(char *) "tz", NULL | |
19226 | }; | |
19227 | ||
19228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19231 | if (obj1) { |
19232 | { | |
19233 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19234 | temp2 = True; |
d14a1e28 RD |
19235 | } |
19236 | } | |
19237 | { | |
19238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19239 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19240 | |
19241 | wxPyEndAllowThreads(__tstate); | |
19242 | if (PyErr_Occurred()) SWIG_fail; | |
19243 | } | |
15afbcd0 | 19244 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19245 | { |
7722248d | 19246 | if (temp2) delete arg2; |
d14a1e28 RD |
19247 | } |
19248 | return resultobj; | |
19249 | fail: | |
19250 | { | |
7722248d | 19251 | if (temp2) delete arg2; |
d14a1e28 RD |
19252 | } |
19253 | return NULL; | |
19254 | } | |
19255 | ||
19256 | ||
19257 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19258 | PyObject *resultobj; | |
19259 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19260 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19261 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19262 | int result; |
7722248d | 19263 | bool temp2 = False ; |
d14a1e28 RD |
19264 | PyObject * obj0 = 0 ; |
19265 | PyObject * obj1 = 0 ; | |
19266 | char *kwnames[] = { | |
19267 | (char *) "self",(char *) "tz", NULL | |
19268 | }; | |
19269 | ||
19270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19273 | if (obj1) { |
19274 | { | |
19275 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19276 | temp2 = True; |
d14a1e28 RD |
19277 | } |
19278 | } | |
19279 | { | |
19280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19281 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19282 | |
19283 | wxPyEndAllowThreads(__tstate); | |
19284 | if (PyErr_Occurred()) SWIG_fail; | |
19285 | } | |
15afbcd0 | 19286 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19287 | { |
7722248d | 19288 | if (temp2) delete arg2; |
d14a1e28 RD |
19289 | } |
19290 | return resultobj; | |
19291 | fail: | |
19292 | { | |
7722248d | 19293 | if (temp2) delete arg2; |
d14a1e28 RD |
19294 | } |
19295 | return NULL; | |
19296 | } | |
19297 | ||
19298 | ||
19299 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19300 | PyObject *resultobj; | |
19301 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19302 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19303 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19304 | int result; |
7722248d | 19305 | bool temp2 = False ; |
d14a1e28 RD |
19306 | PyObject * obj0 = 0 ; |
19307 | PyObject * obj1 = 0 ; | |
19308 | char *kwnames[] = { | |
19309 | (char *) "self",(char *) "tz", NULL | |
19310 | }; | |
19311 | ||
19312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19315 | if (obj1) { |
19316 | { | |
19317 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19318 | temp2 = True; |
d14a1e28 RD |
19319 | } |
19320 | } | |
19321 | { | |
19322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19323 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19324 | |
19325 | wxPyEndAllowThreads(__tstate); | |
19326 | if (PyErr_Occurred()) SWIG_fail; | |
19327 | } | |
15afbcd0 | 19328 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19329 | { |
7722248d | 19330 | if (temp2) delete arg2; |
d14a1e28 RD |
19331 | } |
19332 | return resultobj; | |
19333 | fail: | |
19334 | { | |
7722248d | 19335 | if (temp2) delete arg2; |
d14a1e28 RD |
19336 | } |
19337 | return NULL; | |
19338 | } | |
19339 | ||
19340 | ||
19341 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19342 | PyObject *resultobj; | |
19343 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19344 | int arg2 = (int) wxDateTime::Monday_First ; | |
19345 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19346 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 19347 | int result; |
7722248d | 19348 | bool temp3 = False ; |
d14a1e28 | 19349 | PyObject * obj0 = 0 ; |
994141e6 | 19350 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19351 | PyObject * obj2 = 0 ; |
19352 | char *kwnames[] = { | |
19353 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19354 | }; | |
19355 | ||
994141e6 | 19356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
19357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 19359 | if (obj1) { |
15afbcd0 RD |
19360 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); |
19361 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19362 | } |
d14a1e28 RD |
19363 | if (obj2) { |
19364 | { | |
19365 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 19366 | temp3 = True; |
d14a1e28 RD |
19367 | } |
19368 | } | |
19369 | { | |
19370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19371 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
19372 | |
19373 | wxPyEndAllowThreads(__tstate); | |
19374 | if (PyErr_Occurred()) SWIG_fail; | |
19375 | } | |
15afbcd0 | 19376 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19377 | { |
7722248d | 19378 | if (temp3) delete arg3; |
d14a1e28 RD |
19379 | } |
19380 | return resultobj; | |
19381 | fail: | |
19382 | { | |
7722248d | 19383 | if (temp3) delete arg3; |
d14a1e28 RD |
19384 | } |
19385 | return NULL; | |
19386 | } | |
19387 | ||
19388 | ||
19389 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19390 | PyObject *resultobj; | |
19391 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19392 | int arg2 = (int) wxDateTime::Monday_First ; | |
19393 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19394 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 19395 | int result; |
7722248d | 19396 | bool temp3 = False ; |
d14a1e28 | 19397 | PyObject * obj0 = 0 ; |
994141e6 | 19398 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19399 | PyObject * obj2 = 0 ; |
19400 | char *kwnames[] = { | |
19401 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19402 | }; | |
19403 | ||
994141e6 | 19404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
19405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 19407 | if (obj1) { |
15afbcd0 RD |
19408 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); |
19409 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19410 | } |
d14a1e28 RD |
19411 | if (obj2) { |
19412 | { | |
19413 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 19414 | temp3 = True; |
d14a1e28 RD |
19415 | } |
19416 | } | |
19417 | { | |
19418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19419 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
19420 | |
19421 | wxPyEndAllowThreads(__tstate); | |
19422 | if (PyErr_Occurred()) SWIG_fail; | |
19423 | } | |
15afbcd0 | 19424 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19425 | { |
7722248d | 19426 | if (temp3) delete arg3; |
d14a1e28 RD |
19427 | } |
19428 | return resultobj; | |
19429 | fail: | |
19430 | { | |
7722248d | 19431 | if (temp3) delete arg3; |
d14a1e28 RD |
19432 | } |
19433 | return NULL; | |
19434 | } | |
19435 | ||
19436 | ||
19437 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19438 | PyObject *resultobj; | |
19439 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19440 | int arg2 = (int) wxDateTime::Country_Default ; | |
19441 | bool result; | |
19442 | PyObject * obj0 = 0 ; | |
994141e6 | 19443 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19444 | char *kwnames[] = { |
19445 | (char *) "self",(char *) "country", NULL | |
19446 | }; | |
19447 | ||
994141e6 | 19448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 19451 | if (obj1) { |
15afbcd0 RD |
19452 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
19453 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19454 | } |
d14a1e28 RD |
19455 | { |
19456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19457 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
19458 | ||
19459 | wxPyEndAllowThreads(__tstate); | |
19460 | if (PyErr_Occurred()) SWIG_fail; | |
19461 | } | |
4f89f6a3 RD |
19462 | { |
19463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19464 | } | |
d14a1e28 RD |
19465 | return resultobj; |
19466 | fail: | |
19467 | return NULL; | |
19468 | } | |
19469 | ||
19470 | ||
19471 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19472 | PyObject *resultobj; | |
19473 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19474 | wxDateTime *arg2 = 0 ; | |
19475 | bool result; | |
19476 | PyObject * obj0 = 0 ; | |
19477 | PyObject * obj1 = 0 ; | |
19478 | char *kwnames[] = { | |
19479 | (char *) "self",(char *) "datetime", NULL | |
19480 | }; | |
19481 | ||
19482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19485 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19486 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19487 | SWIG_fail; | |
d14a1e28 | 19488 | if (arg2 == NULL) { |
15afbcd0 RD |
19489 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19490 | SWIG_fail; | |
d14a1e28 RD |
19491 | } |
19492 | { | |
19493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19494 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
19495 | ||
19496 | wxPyEndAllowThreads(__tstate); | |
19497 | if (PyErr_Occurred()) SWIG_fail; | |
19498 | } | |
4f89f6a3 RD |
19499 | { |
19500 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19501 | } | |
d14a1e28 RD |
19502 | return resultobj; |
19503 | fail: | |
19504 | return NULL; | |
19505 | } | |
19506 | ||
19507 | ||
19508 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19509 | PyObject *resultobj; | |
19510 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19511 | wxDateTime *arg2 = 0 ; | |
19512 | bool result; | |
19513 | PyObject * obj0 = 0 ; | |
19514 | PyObject * obj1 = 0 ; | |
19515 | char *kwnames[] = { | |
19516 | (char *) "self",(char *) "datetime", NULL | |
19517 | }; | |
19518 | ||
19519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19522 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19523 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19524 | SWIG_fail; | |
d14a1e28 | 19525 | if (arg2 == NULL) { |
15afbcd0 RD |
19526 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19527 | SWIG_fail; | |
d14a1e28 RD |
19528 | } |
19529 | { | |
19530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19531 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
19532 | ||
19533 | wxPyEndAllowThreads(__tstate); | |
19534 | if (PyErr_Occurred()) SWIG_fail; | |
19535 | } | |
4f89f6a3 RD |
19536 | { |
19537 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19538 | } | |
d14a1e28 RD |
19539 | return resultobj; |
19540 | fail: | |
19541 | return NULL; | |
19542 | } | |
19543 | ||
19544 | ||
19545 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19546 | PyObject *resultobj; | |
19547 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19548 | wxDateTime *arg2 = 0 ; | |
19549 | bool result; | |
19550 | PyObject * obj0 = 0 ; | |
19551 | PyObject * obj1 = 0 ; | |
19552 | char *kwnames[] = { | |
19553 | (char *) "self",(char *) "datetime", NULL | |
19554 | }; | |
19555 | ||
19556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19559 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19560 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19561 | SWIG_fail; | |
d14a1e28 | 19562 | if (arg2 == NULL) { |
15afbcd0 RD |
19563 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19564 | SWIG_fail; | |
d14a1e28 RD |
19565 | } |
19566 | { | |
19567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19568 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
19569 | ||
19570 | wxPyEndAllowThreads(__tstate); | |
19571 | if (PyErr_Occurred()) SWIG_fail; | |
19572 | } | |
4f89f6a3 RD |
19573 | { |
19574 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19575 | } | |
d14a1e28 RD |
19576 | return resultobj; |
19577 | fail: | |
19578 | return NULL; | |
19579 | } | |
19580 | ||
19581 | ||
19582 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19583 | PyObject *resultobj; | |
19584 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19585 | wxDateTime *arg2 = 0 ; | |
19586 | wxDateTime *arg3 = 0 ; | |
19587 | bool result; | |
19588 | PyObject * obj0 = 0 ; | |
19589 | PyObject * obj1 = 0 ; | |
19590 | PyObject * obj2 = 0 ; | |
19591 | char *kwnames[] = { | |
19592 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19593 | }; | |
19594 | ||
19595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19598 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19599 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19600 | SWIG_fail; | |
d14a1e28 | 19601 | if (arg2 == NULL) { |
15afbcd0 RD |
19602 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19603 | SWIG_fail; | |
d14a1e28 | 19604 | } |
15afbcd0 RD |
19605 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, |
19606 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19607 | SWIG_fail; | |
d14a1e28 | 19608 | if (arg3 == NULL) { |
15afbcd0 RD |
19609 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19610 | SWIG_fail; | |
d14a1e28 RD |
19611 | } |
19612 | { | |
19613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19614 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19615 | ||
19616 | wxPyEndAllowThreads(__tstate); | |
19617 | if (PyErr_Occurred()) SWIG_fail; | |
19618 | } | |
4f89f6a3 RD |
19619 | { |
19620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19621 | } | |
d14a1e28 RD |
19622 | return resultobj; |
19623 | fail: | |
19624 | return NULL; | |
19625 | } | |
19626 | ||
19627 | ||
19628 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19629 | PyObject *resultobj; | |
19630 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19631 | wxDateTime *arg2 = 0 ; | |
19632 | wxDateTime *arg3 = 0 ; | |
19633 | bool result; | |
19634 | PyObject * obj0 = 0 ; | |
19635 | PyObject * obj1 = 0 ; | |
19636 | PyObject * obj2 = 0 ; | |
19637 | char *kwnames[] = { | |
19638 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19639 | }; | |
19640 | ||
19641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19644 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19645 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19646 | SWIG_fail; | |
d14a1e28 | 19647 | if (arg2 == NULL) { |
15afbcd0 RD |
19648 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19649 | SWIG_fail; | |
d14a1e28 | 19650 | } |
15afbcd0 RD |
19651 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, |
19652 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19653 | SWIG_fail; | |
d14a1e28 | 19654 | if (arg3 == NULL) { |
15afbcd0 RD |
19655 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19656 | SWIG_fail; | |
d14a1e28 RD |
19657 | } |
19658 | { | |
19659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19660 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19661 | ||
19662 | wxPyEndAllowThreads(__tstate); | |
19663 | if (PyErr_Occurred()) SWIG_fail; | |
19664 | } | |
4f89f6a3 RD |
19665 | { |
19666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19667 | } | |
d14a1e28 RD |
19668 | return resultobj; |
19669 | fail: | |
19670 | return NULL; | |
19671 | } | |
19672 | ||
19673 | ||
19674 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19675 | PyObject *resultobj; | |
19676 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19677 | wxDateTime *arg2 = 0 ; | |
19678 | bool result; | |
19679 | PyObject * obj0 = 0 ; | |
19680 | PyObject * obj1 = 0 ; | |
19681 | char *kwnames[] = { | |
19682 | (char *) "self",(char *) "dt", NULL | |
19683 | }; | |
19684 | ||
19685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19688 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19689 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19690 | SWIG_fail; | |
d14a1e28 | 19691 | if (arg2 == NULL) { |
15afbcd0 RD |
19692 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19693 | SWIG_fail; | |
d14a1e28 RD |
19694 | } |
19695 | { | |
19696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19697 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
19698 | ||
19699 | wxPyEndAllowThreads(__tstate); | |
19700 | if (PyErr_Occurred()) SWIG_fail; | |
19701 | } | |
4f89f6a3 RD |
19702 | { |
19703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19704 | } | |
d14a1e28 RD |
19705 | return resultobj; |
19706 | fail: | |
19707 | return NULL; | |
19708 | } | |
19709 | ||
19710 | ||
19711 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19712 | PyObject *resultobj; | |
19713 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19714 | wxDateTime *arg2 = 0 ; | |
19715 | bool result; | |
19716 | PyObject * obj0 = 0 ; | |
19717 | PyObject * obj1 = 0 ; | |
19718 | char *kwnames[] = { | |
19719 | (char *) "self",(char *) "dt", NULL | |
19720 | }; | |
19721 | ||
19722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19725 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19726 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19727 | SWIG_fail; | |
d14a1e28 | 19728 | if (arg2 == NULL) { |
15afbcd0 RD |
19729 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19730 | SWIG_fail; | |
d14a1e28 RD |
19731 | } |
19732 | { | |
19733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19734 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
19735 | ||
19736 | wxPyEndAllowThreads(__tstate); | |
19737 | if (PyErr_Occurred()) SWIG_fail; | |
19738 | } | |
4f89f6a3 RD |
19739 | { |
19740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19741 | } | |
d14a1e28 RD |
19742 | return resultobj; |
19743 | fail: | |
19744 | return NULL; | |
19745 | } | |
19746 | ||
19747 | ||
19748 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19749 | PyObject *resultobj; | |
19750 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19751 | wxDateTime *arg2 = 0 ; | |
19752 | wxTimeSpan *arg3 = 0 ; | |
19753 | bool result; | |
19754 | PyObject * obj0 = 0 ; | |
19755 | PyObject * obj1 = 0 ; | |
19756 | PyObject * obj2 = 0 ; | |
19757 | char *kwnames[] = { | |
19758 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
19759 | }; | |
19760 | ||
19761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19764 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19765 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19766 | SWIG_fail; | |
d14a1e28 | 19767 | if (arg2 == NULL) { |
15afbcd0 RD |
19768 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19769 | SWIG_fail; | |
d14a1e28 | 19770 | } |
15afbcd0 RD |
19771 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan, |
19772 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19773 | SWIG_fail; | |
d14a1e28 | 19774 | if (arg3 == NULL) { |
15afbcd0 RD |
19775 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19776 | SWIG_fail; | |
d14a1e28 RD |
19777 | } |
19778 | { | |
19779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19780 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
19781 | ||
19782 | wxPyEndAllowThreads(__tstate); | |
19783 | if (PyErr_Occurred()) SWIG_fail; | |
19784 | } | |
4f89f6a3 RD |
19785 | { |
19786 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19787 | } | |
d14a1e28 RD |
19788 | return resultobj; |
19789 | fail: | |
19790 | return NULL; | |
19791 | } | |
19792 | ||
19793 | ||
19794 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19795 | PyObject *resultobj; | |
19796 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19797 | wxTimeSpan *arg2 = 0 ; | |
19798 | wxDateTime *result; | |
19799 | PyObject * obj0 = 0 ; | |
19800 | PyObject * obj1 = 0 ; | |
19801 | char *kwnames[] = { | |
19802 | (char *) "self",(char *) "diff", NULL | |
19803 | }; | |
19804 | ||
19805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19808 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19809 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19810 | SWIG_fail; | |
d14a1e28 | 19811 | if (arg2 == NULL) { |
15afbcd0 RD |
19812 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19813 | SWIG_fail; | |
d14a1e28 RD |
19814 | } |
19815 | { | |
19816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19817 | { | |
19818 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
19819 | result = (wxDateTime *) &_result_ref; | |
19820 | } | |
19821 | ||
19822 | wxPyEndAllowThreads(__tstate); | |
19823 | if (PyErr_Occurred()) SWIG_fail; | |
19824 | } | |
15afbcd0 | 19825 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19826 | return resultobj; |
19827 | fail: | |
19828 | return NULL; | |
19829 | } | |
19830 | ||
19831 | ||
19832 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19833 | PyObject *resultobj; | |
19834 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19835 | wxDateSpan *arg2 = 0 ; | |
19836 | wxDateTime *result; | |
19837 | PyObject * obj0 = 0 ; | |
19838 | PyObject * obj1 = 0 ; | |
19839 | char *kwnames[] = { | |
19840 | (char *) "self",(char *) "diff", NULL | |
19841 | }; | |
19842 | ||
19843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19846 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19847 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19848 | SWIG_fail; | |
d14a1e28 | 19849 | if (arg2 == NULL) { |
15afbcd0 RD |
19850 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19851 | SWIG_fail; | |
d14a1e28 RD |
19852 | } |
19853 | { | |
19854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19855 | { | |
19856 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
19857 | result = (wxDateTime *) &_result_ref; | |
19858 | } | |
19859 | ||
19860 | wxPyEndAllowThreads(__tstate); | |
19861 | if (PyErr_Occurred()) SWIG_fail; | |
19862 | } | |
15afbcd0 | 19863 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19864 | return resultobj; |
19865 | fail: | |
19866 | return NULL; | |
19867 | } | |
19868 | ||
19869 | ||
19870 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19871 | PyObject *resultobj; | |
19872 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19873 | wxTimeSpan *arg2 = 0 ; | |
19874 | wxDateTime *result; | |
19875 | PyObject * obj0 = 0 ; | |
19876 | PyObject * obj1 = 0 ; | |
19877 | char *kwnames[] = { | |
19878 | (char *) "self",(char *) "diff", NULL | |
19879 | }; | |
19880 | ||
19881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19884 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19885 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19886 | SWIG_fail; | |
d14a1e28 | 19887 | if (arg2 == NULL) { |
15afbcd0 RD |
19888 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19889 | SWIG_fail; | |
d14a1e28 RD |
19890 | } |
19891 | { | |
19892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19893 | { | |
19894 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
19895 | result = (wxDateTime *) &_result_ref; | |
19896 | } | |
19897 | ||
19898 | wxPyEndAllowThreads(__tstate); | |
19899 | if (PyErr_Occurred()) SWIG_fail; | |
19900 | } | |
15afbcd0 | 19901 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19902 | return resultobj; |
19903 | fail: | |
19904 | return NULL; | |
19905 | } | |
19906 | ||
19907 | ||
19908 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19909 | PyObject *resultobj; | |
19910 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19911 | wxDateSpan *arg2 = 0 ; | |
19912 | wxDateTime *result; | |
19913 | PyObject * obj0 = 0 ; | |
19914 | PyObject * obj1 = 0 ; | |
19915 | char *kwnames[] = { | |
19916 | (char *) "self",(char *) "diff", NULL | |
19917 | }; | |
19918 | ||
19919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19922 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19923 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19924 | SWIG_fail; | |
d14a1e28 | 19925 | if (arg2 == NULL) { |
15afbcd0 RD |
19926 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19927 | SWIG_fail; | |
d14a1e28 RD |
19928 | } |
19929 | { | |
19930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19931 | { | |
19932 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
19933 | result = (wxDateTime *) &_result_ref; | |
19934 | } | |
19935 | ||
19936 | wxPyEndAllowThreads(__tstate); | |
19937 | if (PyErr_Occurred()) SWIG_fail; | |
19938 | } | |
15afbcd0 | 19939 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19940 | return resultobj; |
19941 | fail: | |
19942 | return NULL; | |
19943 | } | |
19944 | ||
19945 | ||
19946 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19947 | PyObject *resultobj; | |
19948 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19949 | wxDateTime *arg2 = 0 ; | |
19950 | wxTimeSpan result; | |
19951 | PyObject * obj0 = 0 ; | |
19952 | PyObject * obj1 = 0 ; | |
19953 | char *kwnames[] = { | |
19954 | (char *) "self",(char *) "dt", NULL | |
19955 | }; | |
19956 | ||
19957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19960 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19961 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19962 | SWIG_fail; | |
d14a1e28 | 19963 | if (arg2 == NULL) { |
15afbcd0 RD |
19964 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19965 | SWIG_fail; | |
d14a1e28 RD |
19966 | } |
19967 | { | |
19968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19969 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
19970 | ||
19971 | wxPyEndAllowThreads(__tstate); | |
19972 | if (PyErr_Occurred()) SWIG_fail; | |
19973 | } | |
19974 | { | |
19975 | wxTimeSpan * resultptr; | |
19976 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 19977 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
19978 | } |
19979 | return resultobj; | |
19980 | fail: | |
19981 | return NULL; | |
19982 | } | |
19983 | ||
19984 | ||
19985 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
19986 | PyObject *resultobj; | |
19987 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19988 | wxTimeSpan *arg2 = 0 ; | |
19989 | wxDateTime *result; | |
19990 | PyObject * obj0 = 0 ; | |
19991 | PyObject * obj1 = 0 ; | |
19992 | ||
19993 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19996 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19997 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19998 | SWIG_fail; | |
d14a1e28 | 19999 | if (arg2 == NULL) { |
15afbcd0 RD |
20000 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20001 | SWIG_fail; | |
d14a1e28 RD |
20002 | } |
20003 | { | |
20004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20005 | { | |
20006 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
20007 | result = (wxDateTime *) &_result_ref; | |
20008 | } | |
20009 | ||
20010 | wxPyEndAllowThreads(__tstate); | |
20011 | if (PyErr_Occurred()) SWIG_fail; | |
20012 | } | |
15afbcd0 | 20013 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20014 | return resultobj; |
20015 | fail: | |
20016 | return NULL; | |
20017 | } | |
20018 | ||
20019 | ||
20020 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
20021 | PyObject *resultobj; | |
20022 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20023 | wxDateSpan *arg2 = 0 ; | |
20024 | wxDateTime *result; | |
20025 | PyObject * obj0 = 0 ; | |
20026 | PyObject * obj1 = 0 ; | |
20027 | ||
20028 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20031 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20032 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20033 | SWIG_fail; | |
d14a1e28 | 20034 | if (arg2 == NULL) { |
15afbcd0 RD |
20035 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20036 | SWIG_fail; | |
d14a1e28 RD |
20037 | } |
20038 | { | |
20039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20040 | { | |
20041 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
20042 | result = (wxDateTime *) &_result_ref; | |
20043 | } | |
20044 | ||
20045 | wxPyEndAllowThreads(__tstate); | |
20046 | if (PyErr_Occurred()) SWIG_fail; | |
20047 | } | |
15afbcd0 | 20048 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20049 | return resultobj; |
20050 | fail: | |
20051 | return NULL; | |
20052 | } | |
20053 | ||
20054 | ||
20055 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
20056 | int argc; | |
20057 | PyObject *argv[3]; | |
20058 | int ii; | |
20059 | ||
20060 | argc = PyObject_Length(args); | |
20061 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20062 | argv[ii] = PyTuple_GetItem(args,ii); | |
20063 | } | |
20064 | if (argc == 2) { | |
20065 | int _v; | |
20066 | { | |
20067 | void *ptr; | |
15afbcd0 | 20068 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20069 | _v = 0; |
20070 | PyErr_Clear(); | |
20071 | } else { | |
20072 | _v = 1; | |
20073 | } | |
20074 | } | |
20075 | if (_v) { | |
20076 | { | |
20077 | void *ptr; | |
15afbcd0 | 20078 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20079 | _v = 0; |
20080 | PyErr_Clear(); | |
20081 | } else { | |
20082 | _v = 1; | |
20083 | } | |
20084 | } | |
20085 | if (_v) { | |
20086 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
20087 | } | |
20088 | } | |
20089 | } | |
20090 | if (argc == 2) { | |
20091 | int _v; | |
20092 | { | |
20093 | void *ptr; | |
15afbcd0 | 20094 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20095 | _v = 0; |
20096 | PyErr_Clear(); | |
20097 | } else { | |
20098 | _v = 1; | |
20099 | } | |
20100 | } | |
20101 | if (_v) { | |
20102 | { | |
20103 | void *ptr; | |
15afbcd0 | 20104 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20105 | _v = 0; |
20106 | PyErr_Clear(); | |
20107 | } else { | |
20108 | _v = 1; | |
20109 | } | |
20110 | } | |
20111 | if (_v) { | |
20112 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
20113 | } | |
20114 | } | |
20115 | } | |
20116 | ||
20117 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
20118 | return NULL; | |
20119 | } | |
20120 | ||
20121 | ||
20122 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
20123 | PyObject *resultobj; | |
20124 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20125 | wxTimeSpan *arg2 = 0 ; | |
20126 | wxDateTime *result; | |
20127 | PyObject * obj0 = 0 ; | |
20128 | PyObject * obj1 = 0 ; | |
20129 | ||
20130 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20133 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20134 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20135 | SWIG_fail; | |
d14a1e28 | 20136 | if (arg2 == NULL) { |
15afbcd0 RD |
20137 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20138 | SWIG_fail; | |
d14a1e28 RD |
20139 | } |
20140 | { | |
20141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20142 | { | |
20143 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
20144 | result = (wxDateTime *) &_result_ref; | |
20145 | } | |
20146 | ||
20147 | wxPyEndAllowThreads(__tstate); | |
20148 | if (PyErr_Occurred()) SWIG_fail; | |
20149 | } | |
15afbcd0 | 20150 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20151 | return resultobj; |
20152 | fail: | |
20153 | return NULL; | |
20154 | } | |
20155 | ||
20156 | ||
20157 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
20158 | PyObject *resultobj; | |
20159 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20160 | wxDateSpan *arg2 = 0 ; | |
20161 | wxDateTime *result; | |
20162 | PyObject * obj0 = 0 ; | |
20163 | PyObject * obj1 = 0 ; | |
20164 | ||
20165 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20168 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20169 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20170 | SWIG_fail; | |
d14a1e28 | 20171 | if (arg2 == NULL) { |
15afbcd0 RD |
20172 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20173 | SWIG_fail; | |
d14a1e28 RD |
20174 | } |
20175 | { | |
20176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20177 | { | |
20178 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
20179 | result = (wxDateTime *) &_result_ref; | |
20180 | } | |
20181 | ||
20182 | wxPyEndAllowThreads(__tstate); | |
20183 | if (PyErr_Occurred()) SWIG_fail; | |
20184 | } | |
15afbcd0 | 20185 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20186 | return resultobj; |
20187 | fail: | |
20188 | return NULL; | |
20189 | } | |
20190 | ||
20191 | ||
20192 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
20193 | int argc; | |
20194 | PyObject *argv[3]; | |
20195 | int ii; | |
20196 | ||
20197 | argc = PyObject_Length(args); | |
20198 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20199 | argv[ii] = PyTuple_GetItem(args,ii); | |
20200 | } | |
20201 | if (argc == 2) { | |
20202 | int _v; | |
20203 | { | |
20204 | void *ptr; | |
15afbcd0 | 20205 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20206 | _v = 0; |
20207 | PyErr_Clear(); | |
20208 | } else { | |
20209 | _v = 1; | |
20210 | } | |
20211 | } | |
20212 | if (_v) { | |
20213 | { | |
20214 | void *ptr; | |
15afbcd0 | 20215 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20216 | _v = 0; |
20217 | PyErr_Clear(); | |
20218 | } else { | |
20219 | _v = 1; | |
20220 | } | |
20221 | } | |
20222 | if (_v) { | |
20223 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
20224 | } | |
20225 | } | |
20226 | } | |
20227 | if (argc == 2) { | |
20228 | int _v; | |
20229 | { | |
20230 | void *ptr; | |
15afbcd0 | 20231 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20232 | _v = 0; |
20233 | PyErr_Clear(); | |
20234 | } else { | |
20235 | _v = 1; | |
20236 | } | |
20237 | } | |
20238 | if (_v) { | |
20239 | { | |
20240 | void *ptr; | |
15afbcd0 | 20241 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20242 | _v = 0; |
20243 | PyErr_Clear(); | |
20244 | } else { | |
20245 | _v = 1; | |
20246 | } | |
20247 | } | |
20248 | if (_v) { | |
20249 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
20250 | } | |
20251 | } | |
20252 | } | |
20253 | ||
20254 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
20255 | return NULL; | |
20256 | } | |
20257 | ||
20258 | ||
20259 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
20260 | PyObject *resultobj; | |
20261 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20262 | wxTimeSpan *arg2 = 0 ; | |
20263 | wxDateTime result; | |
20264 | PyObject * obj0 = 0 ; | |
20265 | PyObject * obj1 = 0 ; | |
20266 | ||
20267 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20270 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20271 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20272 | SWIG_fail; | |
d14a1e28 | 20273 | if (arg2 == NULL) { |
15afbcd0 RD |
20274 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20275 | SWIG_fail; | |
d14a1e28 RD |
20276 | } |
20277 | { | |
20278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20279 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
20280 | ||
20281 | wxPyEndAllowThreads(__tstate); | |
20282 | if (PyErr_Occurred()) SWIG_fail; | |
20283 | } | |
20284 | { | |
20285 | wxDateTime * resultptr; | |
20286 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20287 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20288 | } |
20289 | return resultobj; | |
20290 | fail: | |
20291 | return NULL; | |
20292 | } | |
20293 | ||
20294 | ||
20295 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
20296 | PyObject *resultobj; | |
20297 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20298 | wxDateSpan *arg2 = 0 ; | |
20299 | wxDateTime result; | |
20300 | PyObject * obj0 = 0 ; | |
20301 | PyObject * obj1 = 0 ; | |
20302 | ||
20303 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20306 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20307 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20308 | SWIG_fail; | |
d14a1e28 | 20309 | if (arg2 == NULL) { |
15afbcd0 RD |
20310 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20311 | SWIG_fail; | |
d14a1e28 RD |
20312 | } |
20313 | { | |
20314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20315 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
20316 | ||
20317 | wxPyEndAllowThreads(__tstate); | |
20318 | if (PyErr_Occurred()) SWIG_fail; | |
20319 | } | |
20320 | { | |
20321 | wxDateTime * resultptr; | |
20322 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20323 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20324 | } |
20325 | return resultobj; | |
20326 | fail: | |
20327 | return NULL; | |
20328 | } | |
20329 | ||
20330 | ||
20331 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
20332 | int argc; | |
20333 | PyObject *argv[3]; | |
20334 | int ii; | |
20335 | ||
20336 | argc = PyObject_Length(args); | |
20337 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20338 | argv[ii] = PyTuple_GetItem(args,ii); | |
20339 | } | |
20340 | if (argc == 2) { | |
20341 | int _v; | |
20342 | { | |
20343 | void *ptr; | |
15afbcd0 | 20344 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20345 | _v = 0; |
20346 | PyErr_Clear(); | |
20347 | } else { | |
20348 | _v = 1; | |
20349 | } | |
20350 | } | |
20351 | if (_v) { | |
20352 | { | |
20353 | void *ptr; | |
15afbcd0 | 20354 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20355 | _v = 0; |
20356 | PyErr_Clear(); | |
20357 | } else { | |
20358 | _v = 1; | |
20359 | } | |
20360 | } | |
20361 | if (_v) { | |
20362 | return _wrap_DateTime___add____SWIG_0(self,args); | |
20363 | } | |
20364 | } | |
20365 | } | |
20366 | if (argc == 2) { | |
20367 | int _v; | |
20368 | { | |
20369 | void *ptr; | |
15afbcd0 | 20370 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20371 | _v = 0; |
20372 | PyErr_Clear(); | |
20373 | } else { | |
20374 | _v = 1; | |
20375 | } | |
20376 | } | |
20377 | if (_v) { | |
20378 | { | |
20379 | void *ptr; | |
15afbcd0 | 20380 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20381 | _v = 0; |
20382 | PyErr_Clear(); | |
20383 | } else { | |
20384 | _v = 1; | |
20385 | } | |
20386 | } | |
20387 | if (_v) { | |
20388 | return _wrap_DateTime___add____SWIG_1(self,args); | |
20389 | } | |
20390 | } | |
20391 | } | |
20392 | ||
20393 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
20394 | return NULL; | |
20395 | } | |
20396 | ||
20397 | ||
20398 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
20399 | PyObject *resultobj; | |
20400 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20401 | wxDateTime *arg2 = 0 ; | |
20402 | wxTimeSpan result; | |
20403 | PyObject * obj0 = 0 ; | |
20404 | PyObject * obj1 = 0 ; | |
20405 | ||
20406 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20409 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20410 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20411 | SWIG_fail; | |
d14a1e28 | 20412 | if (arg2 == NULL) { |
15afbcd0 RD |
20413 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20414 | SWIG_fail; | |
d14a1e28 RD |
20415 | } |
20416 | { | |
20417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20418 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
20419 | ||
20420 | wxPyEndAllowThreads(__tstate); | |
20421 | if (PyErr_Occurred()) SWIG_fail; | |
20422 | } | |
20423 | { | |
20424 | wxTimeSpan * resultptr; | |
20425 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 20426 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
20427 | } |
20428 | return resultobj; | |
20429 | fail: | |
20430 | return NULL; | |
20431 | } | |
20432 | ||
20433 | ||
20434 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
20435 | PyObject *resultobj; | |
20436 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20437 | wxTimeSpan *arg2 = 0 ; | |
20438 | wxDateTime result; | |
20439 | PyObject * obj0 = 0 ; | |
20440 | PyObject * obj1 = 0 ; | |
20441 | ||
20442 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20445 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20446 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20447 | SWIG_fail; | |
d14a1e28 | 20448 | if (arg2 == NULL) { |
15afbcd0 RD |
20449 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20450 | SWIG_fail; | |
d14a1e28 RD |
20451 | } |
20452 | { | |
20453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20454 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
20455 | ||
20456 | wxPyEndAllowThreads(__tstate); | |
20457 | if (PyErr_Occurred()) SWIG_fail; | |
20458 | } | |
20459 | { | |
20460 | wxDateTime * resultptr; | |
20461 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20462 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20463 | } |
20464 | return resultobj; | |
20465 | fail: | |
20466 | return NULL; | |
20467 | } | |
20468 | ||
20469 | ||
20470 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
20471 | PyObject *resultobj; | |
20472 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20473 | wxDateSpan *arg2 = 0 ; | |
20474 | wxDateTime result; | |
20475 | PyObject * obj0 = 0 ; | |
20476 | PyObject * obj1 = 0 ; | |
20477 | ||
20478 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20481 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20482 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20483 | SWIG_fail; | |
d14a1e28 | 20484 | if (arg2 == NULL) { |
15afbcd0 RD |
20485 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20486 | SWIG_fail; | |
d14a1e28 RD |
20487 | } |
20488 | { | |
20489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20490 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
20491 | ||
20492 | wxPyEndAllowThreads(__tstate); | |
20493 | if (PyErr_Occurred()) SWIG_fail; | |
20494 | } | |
20495 | { | |
20496 | wxDateTime * resultptr; | |
20497 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20498 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20499 | } |
20500 | return resultobj; | |
20501 | fail: | |
20502 | return NULL; | |
20503 | } | |
20504 | ||
20505 | ||
20506 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
20507 | int argc; | |
20508 | PyObject *argv[3]; | |
20509 | int ii; | |
20510 | ||
20511 | argc = PyObject_Length(args); | |
20512 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20513 | argv[ii] = PyTuple_GetItem(args,ii); | |
20514 | } | |
20515 | if (argc == 2) { | |
20516 | int _v; | |
20517 | { | |
20518 | void *ptr; | |
15afbcd0 | 20519 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20520 | _v = 0; |
20521 | PyErr_Clear(); | |
20522 | } else { | |
20523 | _v = 1; | |
20524 | } | |
20525 | } | |
20526 | if (_v) { | |
20527 | { | |
20528 | void *ptr; | |
15afbcd0 | 20529 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20530 | _v = 0; |
20531 | PyErr_Clear(); | |
20532 | } else { | |
20533 | _v = 1; | |
20534 | } | |
20535 | } | |
20536 | if (_v) { | |
20537 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
20538 | } | |
20539 | } | |
20540 | } | |
20541 | if (argc == 2) { | |
20542 | int _v; | |
20543 | { | |
20544 | void *ptr; | |
15afbcd0 | 20545 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20546 | _v = 0; |
20547 | PyErr_Clear(); | |
20548 | } else { | |
20549 | _v = 1; | |
20550 | } | |
20551 | } | |
20552 | if (_v) { | |
20553 | { | |
20554 | void *ptr; | |
15afbcd0 | 20555 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20556 | _v = 0; |
20557 | PyErr_Clear(); | |
20558 | } else { | |
20559 | _v = 1; | |
20560 | } | |
20561 | } | |
20562 | if (_v) { | |
20563 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
20564 | } | |
20565 | } | |
20566 | } | |
20567 | if (argc == 2) { | |
20568 | int _v; | |
20569 | { | |
20570 | void *ptr; | |
15afbcd0 | 20571 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20572 | _v = 0; |
20573 | PyErr_Clear(); | |
20574 | } else { | |
20575 | _v = 1; | |
20576 | } | |
20577 | } | |
20578 | if (_v) { | |
20579 | { | |
20580 | void *ptr; | |
15afbcd0 | 20581 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20582 | _v = 0; |
20583 | PyErr_Clear(); | |
20584 | } else { | |
20585 | _v = 1; | |
20586 | } | |
20587 | } | |
20588 | if (_v) { | |
20589 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
20590 | } | |
20591 | } | |
20592 | } | |
20593 | ||
20594 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
20595 | return NULL; | |
20596 | } | |
20597 | ||
20598 | ||
20599 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
20600 | PyObject *resultobj; | |
20601 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20602 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20603 | bool result; |
20604 | PyObject * obj0 = 0 ; | |
20605 | PyObject * obj1 = 0 ; | |
20606 | ||
20607 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20610 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20612 | { |
20613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20614 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20615 | |
20616 | wxPyEndAllowThreads(__tstate); | |
20617 | if (PyErr_Occurred()) SWIG_fail; | |
20618 | } | |
4f89f6a3 RD |
20619 | { |
20620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20621 | } | |
d14a1e28 RD |
20622 | return resultobj; |
20623 | fail: | |
20624 | return NULL; | |
20625 | } | |
20626 | ||
20627 | ||
20628 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
20629 | PyObject *resultobj; | |
20630 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20631 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20632 | bool result; |
20633 | PyObject * obj0 = 0 ; | |
20634 | PyObject * obj1 = 0 ; | |
20635 | ||
20636 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20639 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20641 | { |
20642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20643 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20644 | |
20645 | wxPyEndAllowThreads(__tstate); | |
20646 | if (PyErr_Occurred()) SWIG_fail; | |
20647 | } | |
4f89f6a3 RD |
20648 | { |
20649 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20650 | } | |
d14a1e28 RD |
20651 | return resultobj; |
20652 | fail: | |
20653 | return NULL; | |
20654 | } | |
20655 | ||
20656 | ||
20657 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
20658 | PyObject *resultobj; | |
20659 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20660 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20661 | bool result; |
20662 | PyObject * obj0 = 0 ; | |
20663 | PyObject * obj1 = 0 ; | |
20664 | ||
20665 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20668 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20670 | { |
20671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20672 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20673 | |
20674 | wxPyEndAllowThreads(__tstate); | |
20675 | if (PyErr_Occurred()) SWIG_fail; | |
20676 | } | |
4f89f6a3 RD |
20677 | { |
20678 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20679 | } | |
d14a1e28 RD |
20680 | return resultobj; |
20681 | fail: | |
20682 | return NULL; | |
20683 | } | |
20684 | ||
20685 | ||
20686 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
20687 | PyObject *resultobj; | |
20688 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20689 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20690 | bool result; |
20691 | PyObject * obj0 = 0 ; | |
20692 | PyObject * obj1 = 0 ; | |
20693 | ||
20694 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20697 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20699 | { |
20700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20701 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20702 | |
20703 | wxPyEndAllowThreads(__tstate); | |
20704 | if (PyErr_Occurred()) SWIG_fail; | |
20705 | } | |
4f89f6a3 RD |
20706 | { |
20707 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20708 | } | |
d14a1e28 RD |
20709 | return resultobj; |
20710 | fail: | |
20711 | return NULL; | |
20712 | } | |
20713 | ||
20714 | ||
20715 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
20716 | PyObject *resultobj; | |
20717 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20718 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20719 | bool result; |
20720 | PyObject * obj0 = 0 ; | |
20721 | PyObject * obj1 = 0 ; | |
20722 | ||
20723 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20726 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20728 | { |
20729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20730 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20731 | |
20732 | wxPyEndAllowThreads(__tstate); | |
20733 | if (PyErr_Occurred()) SWIG_fail; | |
20734 | } | |
4f89f6a3 RD |
20735 | { |
20736 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20737 | } | |
d14a1e28 RD |
20738 | return resultobj; |
20739 | fail: | |
20740 | return NULL; | |
20741 | } | |
20742 | ||
20743 | ||
20744 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
20745 | PyObject *resultobj; | |
20746 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20747 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20748 | bool result; |
20749 | PyObject * obj0 = 0 ; | |
20750 | PyObject * obj1 = 0 ; | |
20751 | ||
20752 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20755 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20757 | { |
20758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20759 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20760 | |
20761 | wxPyEndAllowThreads(__tstate); | |
20762 | if (PyErr_Occurred()) SWIG_fail; | |
20763 | } | |
4f89f6a3 RD |
20764 | { |
20765 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20766 | } | |
d14a1e28 RD |
20767 | return resultobj; |
20768 | fail: | |
20769 | return NULL; | |
20770 | } | |
20771 | ||
20772 | ||
20773 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20774 | PyObject *resultobj; | |
20775 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20776 | wxString *arg2 = 0 ; | |
20777 | int result; | |
e811c8ce | 20778 | bool temp2 = False ; |
d14a1e28 RD |
20779 | PyObject * obj0 = 0 ; |
20780 | PyObject * obj1 = 0 ; | |
20781 | char *kwnames[] = { | |
20782 | (char *) "self",(char *) "date", NULL | |
20783 | }; | |
20784 | ||
20785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20788 | { |
20789 | arg2 = wxString_in_helper(obj1); | |
20790 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20791 | temp2 = True; |
d14a1e28 RD |
20792 | } |
20793 | { | |
20794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20795 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
20796 | ||
20797 | wxPyEndAllowThreads(__tstate); | |
20798 | if (PyErr_Occurred()) SWIG_fail; | |
20799 | } | |
15afbcd0 | 20800 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20801 | { |
20802 | if (temp2) | |
20803 | delete arg2; | |
20804 | } | |
20805 | return resultobj; | |
20806 | fail: | |
20807 | { | |
20808 | if (temp2) | |
20809 | delete arg2; | |
20810 | } | |
20811 | return NULL; | |
20812 | } | |
20813 | ||
20814 | ||
20815 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20816 | PyObject *resultobj; | |
20817 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20818 | wxString *arg2 = 0 ; | |
20819 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
20820 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20821 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
20822 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
20823 | int result; | |
e811c8ce RD |
20824 | bool temp2 = False ; |
20825 | bool temp3 = False ; | |
d14a1e28 RD |
20826 | PyObject * obj0 = 0 ; |
20827 | PyObject * obj1 = 0 ; | |
20828 | PyObject * obj2 = 0 ; | |
20829 | PyObject * obj3 = 0 ; | |
20830 | char *kwnames[] = { | |
20831 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
20832 | }; | |
20833 | ||
20834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
20835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20837 | { |
20838 | arg2 = wxString_in_helper(obj1); | |
20839 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20840 | temp2 = True; |
d14a1e28 RD |
20841 | } |
20842 | if (obj2) { | |
20843 | { | |
20844 | arg3 = wxString_in_helper(obj2); | |
20845 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 20846 | temp3 = True; |
d14a1e28 RD |
20847 | } |
20848 | } | |
20849 | if (obj3) { | |
15afbcd0 RD |
20850 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime, |
20851 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20852 | SWIG_fail; | |
d14a1e28 | 20853 | if (arg4 == NULL) { |
15afbcd0 RD |
20854 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20855 | SWIG_fail; | |
d14a1e28 RD |
20856 | } |
20857 | } | |
20858 | { | |
20859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20860 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
20861 | ||
20862 | wxPyEndAllowThreads(__tstate); | |
20863 | if (PyErr_Occurred()) SWIG_fail; | |
20864 | } | |
15afbcd0 | 20865 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20866 | { |
20867 | if (temp2) | |
20868 | delete arg2; | |
20869 | } | |
20870 | { | |
20871 | if (temp3) | |
20872 | delete arg3; | |
20873 | } | |
20874 | return resultobj; | |
20875 | fail: | |
20876 | { | |
20877 | if (temp2) | |
20878 | delete arg2; | |
20879 | } | |
20880 | { | |
20881 | if (temp3) | |
20882 | delete arg3; | |
20883 | } | |
20884 | return NULL; | |
20885 | } | |
20886 | ||
20887 | ||
20888 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20889 | PyObject *resultobj; | |
20890 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20891 | wxString *arg2 = 0 ; | |
20892 | int result; | |
e811c8ce | 20893 | bool temp2 = False ; |
d14a1e28 RD |
20894 | PyObject * obj0 = 0 ; |
20895 | PyObject * obj1 = 0 ; | |
20896 | char *kwnames[] = { | |
20897 | (char *) "self",(char *) "datetime", NULL | |
20898 | }; | |
20899 | ||
20900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20903 | { |
20904 | arg2 = wxString_in_helper(obj1); | |
20905 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20906 | temp2 = True; |
d14a1e28 RD |
20907 | } |
20908 | { | |
20909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20910 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
20911 | ||
20912 | wxPyEndAllowThreads(__tstate); | |
20913 | if (PyErr_Occurred()) SWIG_fail; | |
20914 | } | |
15afbcd0 | 20915 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20916 | { |
20917 | if (temp2) | |
20918 | delete arg2; | |
20919 | } | |
20920 | return resultobj; | |
20921 | fail: | |
20922 | { | |
20923 | if (temp2) | |
20924 | delete arg2; | |
20925 | } | |
20926 | return NULL; | |
20927 | } | |
20928 | ||
20929 | ||
20930 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20931 | PyObject *resultobj; | |
20932 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20933 | wxString *arg2 = 0 ; | |
20934 | int result; | |
e811c8ce | 20935 | bool temp2 = False ; |
d14a1e28 RD |
20936 | PyObject * obj0 = 0 ; |
20937 | PyObject * obj1 = 0 ; | |
20938 | char *kwnames[] = { | |
20939 | (char *) "self",(char *) "date", NULL | |
20940 | }; | |
20941 | ||
20942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20945 | { |
20946 | arg2 = wxString_in_helper(obj1); | |
20947 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20948 | temp2 = True; |
d14a1e28 RD |
20949 | } |
20950 | { | |
20951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20952 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
20953 | ||
20954 | wxPyEndAllowThreads(__tstate); | |
20955 | if (PyErr_Occurred()) SWIG_fail; | |
20956 | } | |
15afbcd0 | 20957 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20958 | { |
20959 | if (temp2) | |
20960 | delete arg2; | |
20961 | } | |
20962 | return resultobj; | |
20963 | fail: | |
20964 | { | |
20965 | if (temp2) | |
20966 | delete arg2; | |
20967 | } | |
20968 | return NULL; | |
20969 | } | |
20970 | ||
20971 | ||
20972 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20973 | PyObject *resultobj; | |
20974 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20975 | wxString *arg2 = 0 ; | |
20976 | int result; | |
e811c8ce | 20977 | bool temp2 = False ; |
d14a1e28 RD |
20978 | PyObject * obj0 = 0 ; |
20979 | PyObject * obj1 = 0 ; | |
20980 | char *kwnames[] = { | |
20981 | (char *) "self",(char *) "time", NULL | |
20982 | }; | |
20983 | ||
20984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20987 | { |
20988 | arg2 = wxString_in_helper(obj1); | |
20989 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20990 | temp2 = True; |
d14a1e28 RD |
20991 | } |
20992 | { | |
20993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20994 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
20995 | ||
20996 | wxPyEndAllowThreads(__tstate); | |
20997 | if (PyErr_Occurred()) SWIG_fail; | |
20998 | } | |
15afbcd0 | 20999 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21000 | { |
21001 | if (temp2) | |
21002 | delete arg2; | |
21003 | } | |
21004 | return resultobj; | |
21005 | fail: | |
21006 | { | |
21007 | if (temp2) | |
21008 | delete arg2; | |
21009 | } | |
21010 | return NULL; | |
21011 | } | |
21012 | ||
21013 | ||
21014 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21015 | PyObject *resultobj; | |
21016 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21017 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
21018 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
21019 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
21020 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
21021 | wxString result; | |
e811c8ce | 21022 | bool temp2 = False ; |
7722248d | 21023 | bool temp3 = False ; |
d14a1e28 RD |
21024 | PyObject * obj0 = 0 ; |
21025 | PyObject * obj1 = 0 ; | |
21026 | PyObject * obj2 = 0 ; | |
21027 | char *kwnames[] = { | |
21028 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
21029 | }; | |
21030 | ||
21031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
21032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21034 | if (obj1) { |
21035 | { | |
21036 | arg2 = wxString_in_helper(obj1); | |
21037 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21038 | temp2 = True; |
d14a1e28 RD |
21039 | } |
21040 | } | |
21041 | if (obj2) { | |
21042 | { | |
21043 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 21044 | temp3 = True; |
d14a1e28 RD |
21045 | } |
21046 | } | |
21047 | { | |
21048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21049 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
21050 | ||
21051 | wxPyEndAllowThreads(__tstate); | |
21052 | if (PyErr_Occurred()) SWIG_fail; | |
21053 | } | |
21054 | { | |
21055 | #if wxUSE_UNICODE | |
21056 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21057 | #else | |
21058 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21059 | #endif | |
21060 | } | |
21061 | { | |
21062 | if (temp2) | |
21063 | delete arg2; | |
21064 | } | |
21065 | { | |
7722248d | 21066 | if (temp3) delete arg3; |
d14a1e28 RD |
21067 | } |
21068 | return resultobj; | |
21069 | fail: | |
21070 | { | |
21071 | if (temp2) | |
21072 | delete arg2; | |
21073 | } | |
21074 | { | |
7722248d | 21075 | if (temp3) delete arg3; |
d14a1e28 RD |
21076 | } |
21077 | return NULL; | |
21078 | } | |
21079 | ||
21080 | ||
21081 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21082 | PyObject *resultobj; | |
21083 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21084 | wxString result; | |
21085 | PyObject * obj0 = 0 ; | |
21086 | char *kwnames[] = { | |
21087 | (char *) "self", NULL | |
21088 | }; | |
21089 | ||
21090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21093 | { |
21094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21095 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
21096 | ||
21097 | wxPyEndAllowThreads(__tstate); | |
21098 | if (PyErr_Occurred()) SWIG_fail; | |
21099 | } | |
21100 | { | |
21101 | #if wxUSE_UNICODE | |
21102 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21103 | #else | |
21104 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21105 | #endif | |
21106 | } | |
21107 | return resultobj; | |
21108 | fail: | |
21109 | return NULL; | |
21110 | } | |
21111 | ||
21112 | ||
21113 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21114 | PyObject *resultobj; | |
21115 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21116 | wxString result; | |
21117 | PyObject * obj0 = 0 ; | |
21118 | char *kwnames[] = { | |
21119 | (char *) "self", NULL | |
21120 | }; | |
21121 | ||
21122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21125 | { |
21126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21127 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
21128 | ||
21129 | wxPyEndAllowThreads(__tstate); | |
21130 | if (PyErr_Occurred()) SWIG_fail; | |
21131 | } | |
21132 | { | |
21133 | #if wxUSE_UNICODE | |
21134 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21135 | #else | |
21136 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21137 | #endif | |
21138 | } | |
21139 | return resultobj; | |
21140 | fail: | |
21141 | return NULL; | |
21142 | } | |
21143 | ||
21144 | ||
21145 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21146 | PyObject *resultobj; | |
21147 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21148 | wxString result; | |
21149 | PyObject * obj0 = 0 ; | |
21150 | char *kwnames[] = { | |
21151 | (char *) "self", NULL | |
21152 | }; | |
21153 | ||
21154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21157 | { |
21158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21159 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
21160 | ||
21161 | wxPyEndAllowThreads(__tstate); | |
21162 | if (PyErr_Occurred()) SWIG_fail; | |
21163 | } | |
21164 | { | |
21165 | #if wxUSE_UNICODE | |
21166 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21167 | #else | |
21168 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21169 | #endif | |
21170 | } | |
21171 | return resultobj; | |
21172 | fail: | |
21173 | return NULL; | |
21174 | } | |
21175 | ||
21176 | ||
21177 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21178 | PyObject *resultobj; | |
21179 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21180 | wxString result; | |
21181 | PyObject * obj0 = 0 ; | |
21182 | char *kwnames[] = { | |
21183 | (char *) "self", NULL | |
21184 | }; | |
21185 | ||
21186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21189 | { |
21190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21191 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
21192 | ||
21193 | wxPyEndAllowThreads(__tstate); | |
21194 | if (PyErr_Occurred()) SWIG_fail; | |
21195 | } | |
21196 | { | |
21197 | #if wxUSE_UNICODE | |
21198 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21199 | #else | |
21200 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21201 | #endif | |
21202 | } | |
21203 | return resultobj; | |
21204 | fail: | |
21205 | return NULL; | |
21206 | } | |
21207 | ||
21208 | ||
21209 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
21210 | PyObject *obj; | |
21211 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21212 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
21213 | Py_INCREF(obj); | |
21214 | return Py_BuildValue((char *)""); | |
21215 | } | |
21216 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21217 | PyObject *resultobj; | |
21218 | long arg1 ; | |
21219 | wxTimeSpan result; | |
994141e6 | 21220 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21221 | char *kwnames[] = { |
21222 | (char *) "sec", NULL | |
21223 | }; | |
21224 | ||
994141e6 | 21225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21226 | arg1 = (long) SWIG_AsLong(obj0); |
21227 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21228 | { |
21229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21230 | result = wxTimeSpan::Seconds(arg1); | |
21231 | ||
21232 | wxPyEndAllowThreads(__tstate); | |
21233 | if (PyErr_Occurred()) SWIG_fail; | |
21234 | } | |
21235 | { | |
21236 | wxTimeSpan * resultptr; | |
21237 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21238 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21239 | } |
21240 | return resultobj; | |
21241 | fail: | |
21242 | return NULL; | |
21243 | } | |
21244 | ||
21245 | ||
21246 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21247 | PyObject *resultobj; | |
21248 | wxTimeSpan result; | |
21249 | char *kwnames[] = { | |
21250 | NULL | |
21251 | }; | |
21252 | ||
21253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
21254 | { | |
21255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21256 | result = wxTimeSpan::Second(); | |
21257 | ||
21258 | wxPyEndAllowThreads(__tstate); | |
21259 | if (PyErr_Occurred()) SWIG_fail; | |
21260 | } | |
21261 | { | |
21262 | wxTimeSpan * resultptr; | |
21263 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21264 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21265 | } |
21266 | return resultobj; | |
21267 | fail: | |
21268 | return NULL; | |
21269 | } | |
21270 | ||
21271 | ||
21272 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21273 | PyObject *resultobj; | |
21274 | long arg1 ; | |
21275 | wxTimeSpan result; | |
994141e6 | 21276 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21277 | char *kwnames[] = { |
21278 | (char *) "min", NULL | |
21279 | }; | |
21280 | ||
994141e6 | 21281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21282 | arg1 = (long) SWIG_AsLong(obj0); |
21283 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21284 | { |
21285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21286 | result = wxTimeSpan::Minutes(arg1); | |
21287 | ||
21288 | wxPyEndAllowThreads(__tstate); | |
21289 | if (PyErr_Occurred()) SWIG_fail; | |
21290 | } | |
21291 | { | |
21292 | wxTimeSpan * resultptr; | |
21293 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21294 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21295 | } |
21296 | return resultobj; | |
21297 | fail: | |
21298 | return NULL; | |
21299 | } | |
21300 | ||
21301 | ||
21302 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21303 | PyObject *resultobj; | |
21304 | wxTimeSpan result; | |
21305 | char *kwnames[] = { | |
21306 | NULL | |
21307 | }; | |
21308 | ||
21309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
21310 | { | |
21311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21312 | result = wxTimeSpan::Minute(); | |
21313 | ||
21314 | wxPyEndAllowThreads(__tstate); | |
21315 | if (PyErr_Occurred()) SWIG_fail; | |
21316 | } | |
21317 | { | |
21318 | wxTimeSpan * resultptr; | |
21319 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21320 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21321 | } |
21322 | return resultobj; | |
21323 | fail: | |
21324 | return NULL; | |
21325 | } | |
21326 | ||
21327 | ||
21328 | static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21329 | PyObject *resultobj; | |
21330 | long arg1 ; | |
21331 | wxTimeSpan result; | |
994141e6 | 21332 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21333 | char *kwnames[] = { |
21334 | (char *) "hours", NULL | |
21335 | }; | |
21336 | ||
994141e6 | 21337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21338 | arg1 = (long) SWIG_AsLong(obj0); |
21339 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21340 | { |
21341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21342 | result = wxTimeSpan::Hours(arg1); | |
21343 | ||
21344 | wxPyEndAllowThreads(__tstate); | |
21345 | if (PyErr_Occurred()) SWIG_fail; | |
21346 | } | |
21347 | { | |
21348 | wxTimeSpan * resultptr; | |
21349 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21350 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21351 | } |
21352 | return resultobj; | |
21353 | fail: | |
21354 | return NULL; | |
21355 | } | |
21356 | ||
21357 | ||
21358 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21359 | PyObject *resultobj; | |
21360 | wxTimeSpan result; | |
21361 | char *kwnames[] = { | |
21362 | NULL | |
21363 | }; | |
21364 | ||
21365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
21366 | { | |
21367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21368 | result = wxTimeSpan::Hour(); | |
21369 | ||
21370 | wxPyEndAllowThreads(__tstate); | |
21371 | if (PyErr_Occurred()) SWIG_fail; | |
21372 | } | |
21373 | { | |
21374 | wxTimeSpan * resultptr; | |
21375 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21376 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21377 | } |
21378 | return resultobj; | |
21379 | fail: | |
21380 | return NULL; | |
21381 | } | |
21382 | ||
21383 | ||
21384 | static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21385 | PyObject *resultobj; | |
21386 | long arg1 ; | |
21387 | wxTimeSpan result; | |
994141e6 | 21388 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21389 | char *kwnames[] = { |
21390 | (char *) "days", NULL | |
21391 | }; | |
21392 | ||
994141e6 | 21393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21394 | arg1 = (long) SWIG_AsLong(obj0); |
21395 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21396 | { |
21397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21398 | result = wxTimeSpan::Days(arg1); | |
21399 | ||
21400 | wxPyEndAllowThreads(__tstate); | |
21401 | if (PyErr_Occurred()) SWIG_fail; | |
21402 | } | |
21403 | { | |
21404 | wxTimeSpan * resultptr; | |
21405 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21406 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21407 | } |
21408 | return resultobj; | |
21409 | fail: | |
21410 | return NULL; | |
21411 | } | |
21412 | ||
21413 | ||
21414 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21415 | PyObject *resultobj; | |
21416 | wxTimeSpan result; | |
21417 | char *kwnames[] = { | |
21418 | NULL | |
21419 | }; | |
21420 | ||
21421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
21422 | { | |
21423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21424 | result = wxTimeSpan::Day(); | |
21425 | ||
21426 | wxPyEndAllowThreads(__tstate); | |
21427 | if (PyErr_Occurred()) SWIG_fail; | |
21428 | } | |
21429 | { | |
21430 | wxTimeSpan * resultptr; | |
21431 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21432 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21433 | } |
21434 | return resultobj; | |
21435 | fail: | |
21436 | return NULL; | |
21437 | } | |
21438 | ||
21439 | ||
21440 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21441 | PyObject *resultobj; | |
21442 | long arg1 ; | |
21443 | wxTimeSpan result; | |
994141e6 | 21444 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21445 | char *kwnames[] = { |
21446 | (char *) "days", NULL | |
21447 | }; | |
21448 | ||
994141e6 | 21449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21450 | arg1 = (long) SWIG_AsLong(obj0); |
21451 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21452 | { |
21453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21454 | result = wxTimeSpan::Weeks(arg1); | |
21455 | ||
21456 | wxPyEndAllowThreads(__tstate); | |
21457 | if (PyErr_Occurred()) SWIG_fail; | |
21458 | } | |
21459 | { | |
21460 | wxTimeSpan * resultptr; | |
21461 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21462 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21463 | } |
21464 | return resultobj; | |
21465 | fail: | |
21466 | return NULL; | |
21467 | } | |
21468 | ||
21469 | ||
21470 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21471 | PyObject *resultobj; | |
21472 | wxTimeSpan result; | |
21473 | char *kwnames[] = { | |
21474 | NULL | |
21475 | }; | |
21476 | ||
21477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
21478 | { | |
21479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21480 | result = wxTimeSpan::Week(); | |
21481 | ||
21482 | wxPyEndAllowThreads(__tstate); | |
21483 | if (PyErr_Occurred()) SWIG_fail; | |
21484 | } | |
21485 | { | |
21486 | wxTimeSpan * resultptr; | |
21487 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21488 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21489 | } |
21490 | return resultobj; | |
21491 | fail: | |
21492 | return NULL; | |
21493 | } | |
21494 | ||
21495 | ||
21496 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21497 | PyObject *resultobj; | |
21498 | long arg1 = (long) 0 ; | |
21499 | long arg2 = (long) 0 ; | |
21500 | long arg3 = (long) 0 ; | |
21501 | long arg4 = (long) 0 ; | |
21502 | wxTimeSpan *result; | |
994141e6 RD |
21503 | PyObject * obj0 = 0 ; |
21504 | PyObject * obj1 = 0 ; | |
21505 | PyObject * obj2 = 0 ; | |
21506 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21507 | char *kwnames[] = { |
21508 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
21509 | }; | |
21510 | ||
994141e6 RD |
21511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
21512 | if (obj0) { | |
15afbcd0 RD |
21513 | arg1 = (long) SWIG_AsLong(obj0); |
21514 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
21515 | } |
21516 | if (obj1) { | |
15afbcd0 RD |
21517 | arg2 = (long) SWIG_AsLong(obj1); |
21518 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
21519 | } |
21520 | if (obj2) { | |
15afbcd0 RD |
21521 | arg3 = (long) SWIG_AsLong(obj2); |
21522 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
21523 | } |
21524 | if (obj3) { | |
15afbcd0 RD |
21525 | arg4 = (long) SWIG_AsLong(obj3); |
21526 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21527 | } |
d14a1e28 RD |
21528 | { |
21529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21530 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
21531 | ||
21532 | wxPyEndAllowThreads(__tstate); | |
21533 | if (PyErr_Occurred()) SWIG_fail; | |
21534 | } | |
15afbcd0 | 21535 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21536 | return resultobj; |
21537 | fail: | |
21538 | return NULL; | |
21539 | } | |
21540 | ||
21541 | ||
21542 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21543 | PyObject *resultobj; | |
21544 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21545 | PyObject * obj0 = 0 ; | |
21546 | char *kwnames[] = { | |
21547 | (char *) "self", NULL | |
21548 | }; | |
21549 | ||
21550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21553 | { |
21554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21555 | delete arg1; | |
21556 | ||
21557 | wxPyEndAllowThreads(__tstate); | |
21558 | if (PyErr_Occurred()) SWIG_fail; | |
21559 | } | |
21560 | Py_INCREF(Py_None); resultobj = Py_None; | |
21561 | return resultobj; | |
21562 | fail: | |
21563 | return NULL; | |
21564 | } | |
21565 | ||
21566 | ||
21567 | static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21568 | PyObject *resultobj; | |
21569 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21570 | wxTimeSpan *arg2 = 0 ; | |
21571 | wxTimeSpan *result; | |
21572 | PyObject * obj0 = 0 ; | |
21573 | PyObject * obj1 = 0 ; | |
21574 | char *kwnames[] = { | |
21575 | (char *) "self",(char *) "diff", NULL | |
21576 | }; | |
21577 | ||
21578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21581 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21582 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21583 | SWIG_fail; | |
d14a1e28 | 21584 | if (arg2 == NULL) { |
15afbcd0 RD |
21585 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21586 | SWIG_fail; | |
d14a1e28 RD |
21587 | } |
21588 | { | |
21589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21590 | { | |
21591 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
21592 | result = (wxTimeSpan *) &_result_ref; | |
21593 | } | |
21594 | ||
21595 | wxPyEndAllowThreads(__tstate); | |
21596 | if (PyErr_Occurred()) SWIG_fail; | |
21597 | } | |
15afbcd0 | 21598 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21599 | return resultobj; |
21600 | fail: | |
21601 | return NULL; | |
21602 | } | |
21603 | ||
21604 | ||
21605 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21606 | PyObject *resultobj; | |
21607 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21608 | wxTimeSpan *arg2 = 0 ; | |
21609 | wxTimeSpan *result; | |
21610 | PyObject * obj0 = 0 ; | |
21611 | PyObject * obj1 = 0 ; | |
21612 | char *kwnames[] = { | |
21613 | (char *) "self",(char *) "diff", NULL | |
21614 | }; | |
21615 | ||
21616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21619 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21620 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21621 | SWIG_fail; | |
d14a1e28 | 21622 | if (arg2 == NULL) { |
15afbcd0 RD |
21623 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21624 | SWIG_fail; | |
d14a1e28 RD |
21625 | } |
21626 | { | |
21627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21628 | { | |
21629 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
21630 | result = (wxTimeSpan *) &_result_ref; | |
21631 | } | |
21632 | ||
21633 | wxPyEndAllowThreads(__tstate); | |
21634 | if (PyErr_Occurred()) SWIG_fail; | |
21635 | } | |
15afbcd0 | 21636 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21637 | return resultobj; |
21638 | fail: | |
21639 | return NULL; | |
21640 | } | |
21641 | ||
21642 | ||
21643 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21644 | PyObject *resultobj; | |
21645 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21646 | int arg2 ; | |
21647 | wxTimeSpan *result; | |
21648 | PyObject * obj0 = 0 ; | |
994141e6 | 21649 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21650 | char *kwnames[] = { |
21651 | (char *) "self",(char *) "n", NULL | |
21652 | }; | |
21653 | ||
994141e6 | 21654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21657 | arg2 = (int) SWIG_AsInt(obj1); | |
21658 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21659 | { |
21660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21661 | { | |
21662 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
21663 | result = (wxTimeSpan *) &_result_ref; | |
21664 | } | |
21665 | ||
21666 | wxPyEndAllowThreads(__tstate); | |
21667 | if (PyErr_Occurred()) SWIG_fail; | |
21668 | } | |
15afbcd0 | 21669 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21670 | return resultobj; |
21671 | fail: | |
21672 | return NULL; | |
21673 | } | |
21674 | ||
21675 | ||
21676 | static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21677 | PyObject *resultobj; | |
21678 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21679 | wxTimeSpan *result; | |
21680 | PyObject * obj0 = 0 ; | |
21681 | char *kwnames[] = { | |
21682 | (char *) "self", NULL | |
21683 | }; | |
21684 | ||
21685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21688 | { |
21689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21690 | { | |
21691 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
21692 | result = (wxTimeSpan *) &_result_ref; | |
21693 | } | |
21694 | ||
21695 | wxPyEndAllowThreads(__tstate); | |
21696 | if (PyErr_Occurred()) SWIG_fail; | |
21697 | } | |
15afbcd0 | 21698 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21699 | return resultobj; |
21700 | fail: | |
21701 | return NULL; | |
21702 | } | |
21703 | ||
21704 | ||
21705 | static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21706 | PyObject *resultobj; | |
21707 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21708 | wxTimeSpan result; | |
21709 | PyObject * obj0 = 0 ; | |
21710 | char *kwnames[] = { | |
21711 | (char *) "self", NULL | |
21712 | }; | |
21713 | ||
21714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21717 | { |
21718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21719 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
21720 | ||
21721 | wxPyEndAllowThreads(__tstate); | |
21722 | if (PyErr_Occurred()) SWIG_fail; | |
21723 | } | |
21724 | { | |
21725 | wxTimeSpan * resultptr; | |
21726 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21727 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21728 | } |
21729 | return resultobj; | |
21730 | fail: | |
21731 | return NULL; | |
21732 | } | |
21733 | ||
21734 | ||
21735 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21736 | PyObject *resultobj; | |
21737 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21738 | wxTimeSpan *arg2 = 0 ; | |
21739 | wxTimeSpan *result; | |
21740 | PyObject * obj0 = 0 ; | |
21741 | PyObject * obj1 = 0 ; | |
21742 | char *kwnames[] = { | |
21743 | (char *) "self",(char *) "diff", NULL | |
21744 | }; | |
21745 | ||
21746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21749 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21750 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21751 | SWIG_fail; | |
d14a1e28 | 21752 | if (arg2 == NULL) { |
15afbcd0 RD |
21753 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21754 | SWIG_fail; | |
d14a1e28 RD |
21755 | } |
21756 | { | |
21757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21758 | { | |
21759 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
21760 | result = (wxTimeSpan *) &_result_ref; | |
21761 | } | |
21762 | ||
21763 | wxPyEndAllowThreads(__tstate); | |
21764 | if (PyErr_Occurred()) SWIG_fail; | |
21765 | } | |
15afbcd0 | 21766 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21767 | return resultobj; |
21768 | fail: | |
21769 | return NULL; | |
21770 | } | |
21771 | ||
21772 | ||
21773 | static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21774 | PyObject *resultobj; | |
21775 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21776 | wxTimeSpan *arg2 = 0 ; | |
21777 | wxTimeSpan *result; | |
21778 | PyObject * obj0 = 0 ; | |
21779 | PyObject * obj1 = 0 ; | |
21780 | char *kwnames[] = { | |
21781 | (char *) "self",(char *) "diff", NULL | |
21782 | }; | |
21783 | ||
21784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21787 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21788 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21789 | SWIG_fail; | |
d14a1e28 | 21790 | if (arg2 == NULL) { |
15afbcd0 RD |
21791 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21792 | SWIG_fail; | |
d14a1e28 RD |
21793 | } |
21794 | { | |
21795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21796 | { | |
21797 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
21798 | result = (wxTimeSpan *) &_result_ref; | |
21799 | } | |
21800 | ||
21801 | wxPyEndAllowThreads(__tstate); | |
21802 | if (PyErr_Occurred()) SWIG_fail; | |
21803 | } | |
15afbcd0 | 21804 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21805 | return resultobj; |
21806 | fail: | |
21807 | return NULL; | |
21808 | } | |
21809 | ||
21810 | ||
21811 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21812 | PyObject *resultobj; | |
21813 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21814 | int arg2 ; | |
21815 | wxTimeSpan *result; | |
21816 | PyObject * obj0 = 0 ; | |
994141e6 | 21817 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21818 | char *kwnames[] = { |
21819 | (char *) "self",(char *) "n", NULL | |
21820 | }; | |
21821 | ||
994141e6 | 21822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21825 | arg2 = (int) SWIG_AsInt(obj1); | |
21826 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21827 | { |
21828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21829 | { | |
21830 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
21831 | result = (wxTimeSpan *) &_result_ref; | |
21832 | } | |
21833 | ||
21834 | wxPyEndAllowThreads(__tstate); | |
21835 | if (PyErr_Occurred()) SWIG_fail; | |
21836 | } | |
15afbcd0 | 21837 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21838 | return resultobj; |
21839 | fail: | |
21840 | return NULL; | |
21841 | } | |
21842 | ||
21843 | ||
21844 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21845 | PyObject *resultobj; | |
21846 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21847 | wxTimeSpan *result; | |
21848 | PyObject * obj0 = 0 ; | |
21849 | char *kwnames[] = { | |
21850 | (char *) "self", NULL | |
21851 | }; | |
21852 | ||
21853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21856 | { |
21857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21858 | { | |
21859 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
21860 | result = (wxTimeSpan *) &_result_ref; | |
21861 | } | |
21862 | ||
21863 | wxPyEndAllowThreads(__tstate); | |
21864 | if (PyErr_Occurred()) SWIG_fail; | |
21865 | } | |
15afbcd0 | 21866 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21867 | return resultobj; |
21868 | fail: | |
21869 | return NULL; | |
21870 | } | |
21871 | ||
21872 | ||
21873 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21874 | PyObject *resultobj; | |
21875 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21876 | wxTimeSpan *arg2 = 0 ; | |
21877 | wxTimeSpan result; | |
21878 | PyObject * obj0 = 0 ; | |
21879 | PyObject * obj1 = 0 ; | |
21880 | char *kwnames[] = { | |
21881 | (char *) "self",(char *) "other", NULL | |
21882 | }; | |
21883 | ||
21884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21887 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21888 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21889 | SWIG_fail; | |
d14a1e28 | 21890 | if (arg2 == NULL) { |
15afbcd0 RD |
21891 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21892 | SWIG_fail; | |
d14a1e28 RD |
21893 | } |
21894 | { | |
21895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21896 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
21897 | ||
21898 | wxPyEndAllowThreads(__tstate); | |
21899 | if (PyErr_Occurred()) SWIG_fail; | |
21900 | } | |
21901 | { | |
21902 | wxTimeSpan * resultptr; | |
21903 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21904 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21905 | } |
21906 | return resultobj; | |
21907 | fail: | |
21908 | return NULL; | |
21909 | } | |
21910 | ||
21911 | ||
21912 | static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21913 | PyObject *resultobj; | |
21914 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21915 | wxTimeSpan *arg2 = 0 ; | |
21916 | wxTimeSpan result; | |
21917 | PyObject * obj0 = 0 ; | |
21918 | PyObject * obj1 = 0 ; | |
21919 | char *kwnames[] = { | |
21920 | (char *) "self",(char *) "other", NULL | |
21921 | }; | |
21922 | ||
21923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21926 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21927 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21928 | SWIG_fail; | |
d14a1e28 | 21929 | if (arg2 == NULL) { |
15afbcd0 RD |
21930 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21931 | SWIG_fail; | |
d14a1e28 RD |
21932 | } |
21933 | { | |
21934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21935 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
21936 | ||
21937 | wxPyEndAllowThreads(__tstate); | |
21938 | if (PyErr_Occurred()) SWIG_fail; | |
21939 | } | |
21940 | { | |
21941 | wxTimeSpan * resultptr; | |
21942 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21943 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21944 | } |
21945 | return resultobj; | |
21946 | fail: | |
21947 | return NULL; | |
21948 | } | |
21949 | ||
21950 | ||
21951 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21952 | PyObject *resultobj; | |
21953 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21954 | int arg2 ; | |
21955 | wxTimeSpan result; | |
21956 | PyObject * obj0 = 0 ; | |
994141e6 | 21957 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21958 | char *kwnames[] = { |
21959 | (char *) "self",(char *) "n", NULL | |
21960 | }; | |
21961 | ||
994141e6 | 21962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21965 | arg2 = (int) SWIG_AsInt(obj1); | |
21966 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21967 | { |
21968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21969 | result = wxTimeSpan___mul__(arg1,arg2); | |
21970 | ||
21971 | wxPyEndAllowThreads(__tstate); | |
21972 | if (PyErr_Occurred()) SWIG_fail; | |
21973 | } | |
21974 | { | |
21975 | wxTimeSpan * resultptr; | |
21976 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21977 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21978 | } |
21979 | return resultobj; | |
21980 | fail: | |
21981 | return NULL; | |
21982 | } | |
21983 | ||
21984 | ||
21985 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21986 | PyObject *resultobj; | |
21987 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21988 | int arg2 ; | |
21989 | wxTimeSpan result; | |
21990 | PyObject * obj0 = 0 ; | |
994141e6 | 21991 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21992 | char *kwnames[] = { |
21993 | (char *) "self",(char *) "n", NULL | |
21994 | }; | |
21995 | ||
994141e6 | 21996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21999 | arg2 = (int) SWIG_AsInt(obj1); | |
22000 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22001 | { |
22002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22003 | result = wxTimeSpan___rmul__(arg1,arg2); | |
22004 | ||
22005 | wxPyEndAllowThreads(__tstate); | |
22006 | if (PyErr_Occurred()) SWIG_fail; | |
22007 | } | |
22008 | { | |
22009 | wxTimeSpan * resultptr; | |
22010 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 22011 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
22012 | } |
22013 | return resultobj; | |
22014 | fail: | |
22015 | return NULL; | |
22016 | } | |
22017 | ||
22018 | ||
22019 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22020 | PyObject *resultobj; | |
22021 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22022 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22023 | bool result; |
22024 | PyObject * obj0 = 0 ; | |
22025 | PyObject * obj1 = 0 ; | |
22026 | char *kwnames[] = { | |
22027 | (char *) "self",(char *) "other", NULL | |
22028 | }; | |
22029 | ||
22030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22033 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22035 | { |
22036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22037 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22038 | |
22039 | wxPyEndAllowThreads(__tstate); | |
22040 | if (PyErr_Occurred()) SWIG_fail; | |
22041 | } | |
4f89f6a3 RD |
22042 | { |
22043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22044 | } | |
d14a1e28 RD |
22045 | return resultobj; |
22046 | fail: | |
22047 | return NULL; | |
22048 | } | |
22049 | ||
22050 | ||
22051 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22052 | PyObject *resultobj; | |
22053 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22054 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22055 | bool result; |
22056 | PyObject * obj0 = 0 ; | |
22057 | PyObject * obj1 = 0 ; | |
22058 | char *kwnames[] = { | |
22059 | (char *) "self",(char *) "other", NULL | |
22060 | }; | |
22061 | ||
22062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22065 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22067 | { |
22068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22069 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22070 | |
22071 | wxPyEndAllowThreads(__tstate); | |
22072 | if (PyErr_Occurred()) SWIG_fail; | |
22073 | } | |
4f89f6a3 RD |
22074 | { |
22075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22076 | } | |
d14a1e28 RD |
22077 | return resultobj; |
22078 | fail: | |
22079 | return NULL; | |
22080 | } | |
22081 | ||
22082 | ||
22083 | static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22084 | PyObject *resultobj; | |
22085 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22086 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22087 | bool result; |
22088 | PyObject * obj0 = 0 ; | |
22089 | PyObject * obj1 = 0 ; | |
22090 | char *kwnames[] = { | |
22091 | (char *) "self",(char *) "other", NULL | |
22092 | }; | |
22093 | ||
22094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22097 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22099 | { |
22100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22101 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22102 | |
22103 | wxPyEndAllowThreads(__tstate); | |
22104 | if (PyErr_Occurred()) SWIG_fail; | |
22105 | } | |
4f89f6a3 RD |
22106 | { |
22107 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22108 | } | |
d14a1e28 RD |
22109 | return resultobj; |
22110 | fail: | |
22111 | return NULL; | |
22112 | } | |
22113 | ||
22114 | ||
22115 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22116 | PyObject *resultobj; | |
22117 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22118 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22119 | bool result; |
22120 | PyObject * obj0 = 0 ; | |
22121 | PyObject * obj1 = 0 ; | |
22122 | char *kwnames[] = { | |
22123 | (char *) "self",(char *) "other", NULL | |
22124 | }; | |
22125 | ||
22126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22129 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22131 | { |
22132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22133 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22134 | |
22135 | wxPyEndAllowThreads(__tstate); | |
22136 | if (PyErr_Occurred()) SWIG_fail; | |
22137 | } | |
4f89f6a3 RD |
22138 | { |
22139 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22140 | } | |
d14a1e28 RD |
22141 | return resultobj; |
22142 | fail: | |
22143 | return NULL; | |
22144 | } | |
22145 | ||
22146 | ||
22147 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22148 | PyObject *resultobj; | |
22149 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22150 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22151 | bool result; |
22152 | PyObject * obj0 = 0 ; | |
22153 | PyObject * obj1 = 0 ; | |
22154 | char *kwnames[] = { | |
22155 | (char *) "self",(char *) "other", NULL | |
22156 | }; | |
22157 | ||
22158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22161 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22163 | { |
22164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22165 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22166 | |
22167 | wxPyEndAllowThreads(__tstate); | |
22168 | if (PyErr_Occurred()) SWIG_fail; | |
22169 | } | |
4f89f6a3 RD |
22170 | { |
22171 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22172 | } | |
d14a1e28 RD |
22173 | return resultobj; |
22174 | fail: | |
22175 | return NULL; | |
22176 | } | |
22177 | ||
22178 | ||
22179 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22180 | PyObject *resultobj; | |
22181 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22182 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22183 | bool result; |
22184 | PyObject * obj0 = 0 ; | |
22185 | PyObject * obj1 = 0 ; | |
22186 | char *kwnames[] = { | |
22187 | (char *) "self",(char *) "other", NULL | |
22188 | }; | |
22189 | ||
22190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22193 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22195 | { |
22196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22197 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22198 | |
22199 | wxPyEndAllowThreads(__tstate); | |
22200 | if (PyErr_Occurred()) SWIG_fail; | |
22201 | } | |
4f89f6a3 RD |
22202 | { |
22203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22204 | } | |
d14a1e28 RD |
22205 | return resultobj; |
22206 | fail: | |
22207 | return NULL; | |
22208 | } | |
22209 | ||
22210 | ||
22211 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22212 | PyObject *resultobj; | |
22213 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22214 | bool result; | |
22215 | PyObject * obj0 = 0 ; | |
22216 | char *kwnames[] = { | |
22217 | (char *) "self", NULL | |
22218 | }; | |
22219 | ||
22220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22223 | { |
22224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22225 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
22226 | ||
22227 | wxPyEndAllowThreads(__tstate); | |
22228 | if (PyErr_Occurred()) SWIG_fail; | |
22229 | } | |
4f89f6a3 RD |
22230 | { |
22231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22232 | } | |
d14a1e28 RD |
22233 | return resultobj; |
22234 | fail: | |
22235 | return NULL; | |
22236 | } | |
22237 | ||
22238 | ||
22239 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22240 | PyObject *resultobj; | |
22241 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22242 | bool result; | |
22243 | PyObject * obj0 = 0 ; | |
22244 | char *kwnames[] = { | |
22245 | (char *) "self", NULL | |
22246 | }; | |
22247 | ||
22248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22251 | { |
22252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22253 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
22254 | ||
22255 | wxPyEndAllowThreads(__tstate); | |
22256 | if (PyErr_Occurred()) SWIG_fail; | |
22257 | } | |
4f89f6a3 RD |
22258 | { |
22259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22260 | } | |
d14a1e28 RD |
22261 | return resultobj; |
22262 | fail: | |
22263 | return NULL; | |
22264 | } | |
22265 | ||
22266 | ||
22267 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22268 | PyObject *resultobj; | |
22269 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22270 | bool result; | |
22271 | PyObject * obj0 = 0 ; | |
22272 | char *kwnames[] = { | |
22273 | (char *) "self", NULL | |
22274 | }; | |
22275 | ||
22276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22279 | { |
22280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22281 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
22282 | ||
22283 | wxPyEndAllowThreads(__tstate); | |
22284 | if (PyErr_Occurred()) SWIG_fail; | |
22285 | } | |
4f89f6a3 RD |
22286 | { |
22287 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22288 | } | |
d14a1e28 RD |
22289 | return resultobj; |
22290 | fail: | |
22291 | return NULL; | |
22292 | } | |
22293 | ||
22294 | ||
22295 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22296 | PyObject *resultobj; | |
22297 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22298 | wxTimeSpan *arg2 = 0 ; | |
22299 | bool result; | |
22300 | PyObject * obj0 = 0 ; | |
22301 | PyObject * obj1 = 0 ; | |
22302 | char *kwnames[] = { | |
22303 | (char *) "self",(char *) "ts", NULL | |
22304 | }; | |
22305 | ||
22306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22309 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22310 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22311 | SWIG_fail; | |
d14a1e28 | 22312 | if (arg2 == NULL) { |
15afbcd0 RD |
22313 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22314 | SWIG_fail; | |
d14a1e28 RD |
22315 | } |
22316 | { | |
22317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22318 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
22319 | ||
22320 | wxPyEndAllowThreads(__tstate); | |
22321 | if (PyErr_Occurred()) SWIG_fail; | |
22322 | } | |
4f89f6a3 RD |
22323 | { |
22324 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22325 | } | |
d14a1e28 RD |
22326 | return resultobj; |
22327 | fail: | |
22328 | return NULL; | |
22329 | } | |
22330 | ||
22331 | ||
22332 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22333 | PyObject *resultobj; | |
22334 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22335 | wxTimeSpan *arg2 = 0 ; | |
22336 | bool result; | |
22337 | PyObject * obj0 = 0 ; | |
22338 | PyObject * obj1 = 0 ; | |
22339 | char *kwnames[] = { | |
22340 | (char *) "self",(char *) "ts", NULL | |
22341 | }; | |
22342 | ||
22343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22346 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22347 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22348 | SWIG_fail; | |
d14a1e28 | 22349 | if (arg2 == NULL) { |
15afbcd0 RD |
22350 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22351 | SWIG_fail; | |
d14a1e28 RD |
22352 | } |
22353 | { | |
22354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22355 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
22356 | ||
22357 | wxPyEndAllowThreads(__tstate); | |
22358 | if (PyErr_Occurred()) SWIG_fail; | |
22359 | } | |
4f89f6a3 RD |
22360 | { |
22361 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22362 | } | |
d14a1e28 RD |
22363 | return resultobj; |
22364 | fail: | |
22365 | return NULL; | |
22366 | } | |
22367 | ||
22368 | ||
22369 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22370 | PyObject *resultobj; | |
22371 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22372 | wxTimeSpan *arg2 = 0 ; | |
22373 | bool result; | |
22374 | PyObject * obj0 = 0 ; | |
22375 | PyObject * obj1 = 0 ; | |
22376 | char *kwnames[] = { | |
22377 | (char *) "self",(char *) "t", NULL | |
22378 | }; | |
22379 | ||
22380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22383 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22384 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22385 | SWIG_fail; | |
d14a1e28 | 22386 | if (arg2 == NULL) { |
15afbcd0 RD |
22387 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22388 | SWIG_fail; | |
d14a1e28 RD |
22389 | } |
22390 | { | |
22391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22392 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
22393 | ||
22394 | wxPyEndAllowThreads(__tstate); | |
22395 | if (PyErr_Occurred()) SWIG_fail; | |
22396 | } | |
4f89f6a3 RD |
22397 | { |
22398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22399 | } | |
d14a1e28 RD |
22400 | return resultobj; |
22401 | fail: | |
22402 | return NULL; | |
22403 | } | |
22404 | ||
22405 | ||
22406 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22407 | PyObject *resultobj; | |
22408 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22409 | int result; | |
22410 | PyObject * obj0 = 0 ; | |
22411 | char *kwnames[] = { | |
22412 | (char *) "self", NULL | |
22413 | }; | |
22414 | ||
22415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22418 | { |
22419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22420 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
22421 | ||
22422 | wxPyEndAllowThreads(__tstate); | |
22423 | if (PyErr_Occurred()) SWIG_fail; | |
22424 | } | |
15afbcd0 | 22425 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22426 | return resultobj; |
22427 | fail: | |
22428 | return NULL; | |
22429 | } | |
22430 | ||
22431 | ||
22432 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22433 | PyObject *resultobj; | |
22434 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22435 | int result; | |
22436 | PyObject * obj0 = 0 ; | |
22437 | char *kwnames[] = { | |
22438 | (char *) "self", NULL | |
22439 | }; | |
22440 | ||
22441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22444 | { |
22445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22446 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
22447 | ||
22448 | wxPyEndAllowThreads(__tstate); | |
22449 | if (PyErr_Occurred()) SWIG_fail; | |
22450 | } | |
15afbcd0 | 22451 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22452 | return resultobj; |
22453 | fail: | |
22454 | return NULL; | |
22455 | } | |
22456 | ||
22457 | ||
22458 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22459 | PyObject *resultobj; | |
22460 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22461 | int result; | |
22462 | PyObject * obj0 = 0 ; | |
22463 | char *kwnames[] = { | |
22464 | (char *) "self", NULL | |
22465 | }; | |
22466 | ||
22467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22470 | { |
22471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22472 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
22473 | ||
22474 | wxPyEndAllowThreads(__tstate); | |
22475 | if (PyErr_Occurred()) SWIG_fail; | |
22476 | } | |
15afbcd0 | 22477 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22478 | return resultobj; |
22479 | fail: | |
22480 | return NULL; | |
22481 | } | |
22482 | ||
22483 | ||
22484 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22485 | PyObject *resultobj; | |
22486 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22487 | int result; | |
22488 | PyObject * obj0 = 0 ; | |
22489 | char *kwnames[] = { | |
22490 | (char *) "self", NULL | |
22491 | }; | |
22492 | ||
22493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22496 | { |
22497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22498 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
22499 | ||
22500 | wxPyEndAllowThreads(__tstate); | |
22501 | if (PyErr_Occurred()) SWIG_fail; | |
22502 | } | |
15afbcd0 | 22503 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22504 | return resultobj; |
22505 | fail: | |
22506 | return NULL; | |
22507 | } | |
22508 | ||
22509 | ||
22510 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22511 | PyObject *resultobj; | |
22512 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22513 | wxLongLong result; | |
22514 | PyObject * obj0 = 0 ; | |
22515 | char *kwnames[] = { | |
22516 | (char *) "self", NULL | |
22517 | }; | |
22518 | ||
22519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22522 | { |
22523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22524 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
22525 | ||
22526 | wxPyEndAllowThreads(__tstate); | |
22527 | if (PyErr_Occurred()) SWIG_fail; | |
22528 | } | |
22529 | { | |
22530 | PyObject *hi, *lo, *shifter, *shifted; | |
22531 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22532 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22533 | shifter = PyLong_FromLong(32); | |
22534 | shifted = PyNumber_Lshift(hi, shifter); | |
22535 | resultobj = PyNumber_Or(shifted, lo); | |
22536 | Py_DECREF(hi); | |
22537 | Py_DECREF(lo); | |
22538 | Py_DECREF(shifter); | |
22539 | Py_DECREF(shifted); | |
22540 | } | |
22541 | return resultobj; | |
22542 | fail: | |
22543 | return NULL; | |
22544 | } | |
22545 | ||
22546 | ||
22547 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22548 | PyObject *resultobj; | |
22549 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22550 | wxLongLong result; | |
22551 | PyObject * obj0 = 0 ; | |
22552 | char *kwnames[] = { | |
22553 | (char *) "self", NULL | |
22554 | }; | |
22555 | ||
22556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22559 | { |
22560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22561 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
22562 | ||
22563 | wxPyEndAllowThreads(__tstate); | |
22564 | if (PyErr_Occurred()) SWIG_fail; | |
22565 | } | |
22566 | { | |
22567 | PyObject *hi, *lo, *shifter, *shifted; | |
22568 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22569 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22570 | shifter = PyLong_FromLong(32); | |
22571 | shifted = PyNumber_Lshift(hi, shifter); | |
22572 | resultobj = PyNumber_Or(shifted, lo); | |
22573 | Py_DECREF(hi); | |
22574 | Py_DECREF(lo); | |
22575 | Py_DECREF(shifter); | |
22576 | Py_DECREF(shifted); | |
22577 | } | |
22578 | return resultobj; | |
22579 | fail: | |
22580 | return NULL; | |
22581 | } | |
22582 | ||
22583 | ||
22584 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22585 | PyObject *resultobj; | |
22586 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22587 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
22588 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
22589 | wxString result; | |
e811c8ce | 22590 | bool temp2 = False ; |
d14a1e28 RD |
22591 | PyObject * obj0 = 0 ; |
22592 | PyObject * obj1 = 0 ; | |
22593 | char *kwnames[] = { | |
22594 | (char *) "self",(char *) "format", NULL | |
22595 | }; | |
22596 | ||
22597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22600 | if (obj1) { |
22601 | { | |
22602 | arg2 = wxString_in_helper(obj1); | |
22603 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 22604 | temp2 = True; |
d14a1e28 RD |
22605 | } |
22606 | } | |
22607 | { | |
22608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22609 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
22610 | ||
22611 | wxPyEndAllowThreads(__tstate); | |
22612 | if (PyErr_Occurred()) SWIG_fail; | |
22613 | } | |
22614 | { | |
22615 | #if wxUSE_UNICODE | |
22616 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22617 | #else | |
22618 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22619 | #endif | |
22620 | } | |
22621 | { | |
22622 | if (temp2) | |
22623 | delete arg2; | |
22624 | } | |
22625 | return resultobj; | |
22626 | fail: | |
22627 | { | |
22628 | if (temp2) | |
22629 | delete arg2; | |
22630 | } | |
22631 | return NULL; | |
22632 | } | |
22633 | ||
22634 | ||
22635 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
22636 | PyObject *obj; | |
22637 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22638 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
22639 | Py_INCREF(obj); | |
22640 | return Py_BuildValue((char *)""); | |
22641 | } | |
22642 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22643 | PyObject *resultobj; | |
22644 | int arg1 = (int) 0 ; | |
22645 | int arg2 = (int) 0 ; | |
22646 | int arg3 = (int) 0 ; | |
22647 | int arg4 = (int) 0 ; | |
22648 | wxDateSpan *result; | |
994141e6 RD |
22649 | PyObject * obj0 = 0 ; |
22650 | PyObject * obj1 = 0 ; | |
22651 | PyObject * obj2 = 0 ; | |
22652 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22653 | char *kwnames[] = { |
22654 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
22655 | }; | |
22656 | ||
994141e6 RD |
22657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
22658 | if (obj0) { | |
15afbcd0 RD |
22659 | arg1 = (int) SWIG_AsInt(obj0); |
22660 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22661 | } |
22662 | if (obj1) { | |
15afbcd0 RD |
22663 | arg2 = (int) SWIG_AsInt(obj1); |
22664 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22665 | } |
22666 | if (obj2) { | |
15afbcd0 RD |
22667 | arg3 = (int) SWIG_AsInt(obj2); |
22668 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22669 | } |
22670 | if (obj3) { | |
15afbcd0 RD |
22671 | arg4 = (int) SWIG_AsInt(obj3); |
22672 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22673 | } |
d14a1e28 RD |
22674 | { |
22675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22676 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
22677 | ||
22678 | wxPyEndAllowThreads(__tstate); | |
22679 | if (PyErr_Occurred()) SWIG_fail; | |
22680 | } | |
15afbcd0 | 22681 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22682 | return resultobj; |
22683 | fail: | |
22684 | return NULL; | |
22685 | } | |
22686 | ||
22687 | ||
22688 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22689 | PyObject *resultobj; | |
22690 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22691 | PyObject * obj0 = 0 ; | |
22692 | char *kwnames[] = { | |
22693 | (char *) "self", NULL | |
22694 | }; | |
22695 | ||
22696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22699 | { |
22700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22701 | delete arg1; | |
22702 | ||
22703 | wxPyEndAllowThreads(__tstate); | |
22704 | if (PyErr_Occurred()) SWIG_fail; | |
22705 | } | |
22706 | Py_INCREF(Py_None); resultobj = Py_None; | |
22707 | return resultobj; | |
22708 | fail: | |
22709 | return NULL; | |
22710 | } | |
22711 | ||
22712 | ||
22713 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22714 | PyObject *resultobj; | |
22715 | int arg1 ; | |
22716 | wxDateSpan result; | |
994141e6 | 22717 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22718 | char *kwnames[] = { |
22719 | (char *) "days", NULL | |
22720 | }; | |
22721 | ||
994141e6 | 22722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22723 | arg1 = (int) SWIG_AsInt(obj0); |
22724 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22725 | { |
22726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22727 | result = wxDateSpan::Days(arg1); | |
22728 | ||
22729 | wxPyEndAllowThreads(__tstate); | |
22730 | if (PyErr_Occurred()) SWIG_fail; | |
22731 | } | |
22732 | { | |
22733 | wxDateSpan * resultptr; | |
22734 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22735 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22736 | } |
22737 | return resultobj; | |
22738 | fail: | |
22739 | return NULL; | |
22740 | } | |
22741 | ||
22742 | ||
22743 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22744 | PyObject *resultobj; | |
22745 | wxDateSpan result; | |
22746 | char *kwnames[] = { | |
22747 | NULL | |
22748 | }; | |
22749 | ||
22750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
22751 | { | |
22752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22753 | result = wxDateSpan::Day(); | |
22754 | ||
22755 | wxPyEndAllowThreads(__tstate); | |
22756 | if (PyErr_Occurred()) SWIG_fail; | |
22757 | } | |
22758 | { | |
22759 | wxDateSpan * resultptr; | |
22760 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22761 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22762 | } |
22763 | return resultobj; | |
22764 | fail: | |
22765 | return NULL; | |
22766 | } | |
22767 | ||
22768 | ||
22769 | static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22770 | PyObject *resultobj; | |
22771 | int arg1 ; | |
22772 | wxDateSpan result; | |
994141e6 | 22773 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22774 | char *kwnames[] = { |
22775 | (char *) "weeks", NULL | |
22776 | }; | |
22777 | ||
994141e6 | 22778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22779 | arg1 = (int) SWIG_AsInt(obj0); |
22780 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22781 | { |
22782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22783 | result = wxDateSpan::Weeks(arg1); | |
22784 | ||
22785 | wxPyEndAllowThreads(__tstate); | |
22786 | if (PyErr_Occurred()) SWIG_fail; | |
22787 | } | |
22788 | { | |
22789 | wxDateSpan * resultptr; | |
22790 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22791 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22792 | } |
22793 | return resultobj; | |
22794 | fail: | |
22795 | return NULL; | |
22796 | } | |
22797 | ||
22798 | ||
22799 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22800 | PyObject *resultobj; | |
22801 | wxDateSpan result; | |
22802 | char *kwnames[] = { | |
22803 | NULL | |
22804 | }; | |
22805 | ||
22806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
22807 | { | |
22808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22809 | result = wxDateSpan::Week(); | |
22810 | ||
22811 | wxPyEndAllowThreads(__tstate); | |
22812 | if (PyErr_Occurred()) SWIG_fail; | |
22813 | } | |
22814 | { | |
22815 | wxDateSpan * resultptr; | |
22816 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22817 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22818 | } |
22819 | return resultobj; | |
22820 | fail: | |
22821 | return NULL; | |
22822 | } | |
22823 | ||
22824 | ||
22825 | static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22826 | PyObject *resultobj; | |
22827 | int arg1 ; | |
22828 | wxDateSpan result; | |
994141e6 | 22829 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22830 | char *kwnames[] = { |
22831 | (char *) "mon", NULL | |
22832 | }; | |
22833 | ||
994141e6 | 22834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22835 | arg1 = (int) SWIG_AsInt(obj0); |
22836 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22837 | { |
22838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22839 | result = wxDateSpan::Months(arg1); | |
22840 | ||
22841 | wxPyEndAllowThreads(__tstate); | |
22842 | if (PyErr_Occurred()) SWIG_fail; | |
22843 | } | |
22844 | { | |
22845 | wxDateSpan * resultptr; | |
22846 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22847 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22848 | } |
22849 | return resultobj; | |
22850 | fail: | |
22851 | return NULL; | |
22852 | } | |
22853 | ||
22854 | ||
22855 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22856 | PyObject *resultobj; | |
22857 | wxDateSpan result; | |
22858 | char *kwnames[] = { | |
22859 | NULL | |
22860 | }; | |
22861 | ||
22862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
22863 | { | |
22864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22865 | result = wxDateSpan::Month(); | |
22866 | ||
22867 | wxPyEndAllowThreads(__tstate); | |
22868 | if (PyErr_Occurred()) SWIG_fail; | |
22869 | } | |
22870 | { | |
22871 | wxDateSpan * resultptr; | |
22872 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22873 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22874 | } |
22875 | return resultobj; | |
22876 | fail: | |
22877 | return NULL; | |
22878 | } | |
22879 | ||
22880 | ||
22881 | static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22882 | PyObject *resultobj; | |
22883 | int arg1 ; | |
22884 | wxDateSpan result; | |
994141e6 | 22885 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22886 | char *kwnames[] = { |
22887 | (char *) "years", NULL | |
22888 | }; | |
22889 | ||
994141e6 | 22890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22891 | arg1 = (int) SWIG_AsInt(obj0); |
22892 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22893 | { |
22894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22895 | result = wxDateSpan::Years(arg1); | |
22896 | ||
22897 | wxPyEndAllowThreads(__tstate); | |
22898 | if (PyErr_Occurred()) SWIG_fail; | |
22899 | } | |
22900 | { | |
22901 | wxDateSpan * resultptr; | |
22902 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22903 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22904 | } |
22905 | return resultobj; | |
22906 | fail: | |
22907 | return NULL; | |
22908 | } | |
22909 | ||
22910 | ||
22911 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22912 | PyObject *resultobj; | |
22913 | wxDateSpan result; | |
22914 | char *kwnames[] = { | |
22915 | NULL | |
22916 | }; | |
22917 | ||
22918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
22919 | { | |
22920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22921 | result = wxDateSpan::Year(); | |
22922 | ||
22923 | wxPyEndAllowThreads(__tstate); | |
22924 | if (PyErr_Occurred()) SWIG_fail; | |
22925 | } | |
22926 | { | |
22927 | wxDateSpan * resultptr; | |
22928 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22929 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22930 | } |
22931 | return resultobj; | |
22932 | fail: | |
22933 | return NULL; | |
22934 | } | |
22935 | ||
22936 | ||
22937 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22938 | PyObject *resultobj; | |
22939 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22940 | int arg2 ; | |
22941 | wxDateSpan *result; | |
22942 | PyObject * obj0 = 0 ; | |
994141e6 | 22943 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22944 | char *kwnames[] = { |
22945 | (char *) "self",(char *) "n", NULL | |
22946 | }; | |
22947 | ||
994141e6 | 22948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22951 | arg2 = (int) SWIG_AsInt(obj1); | |
22952 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22953 | { |
22954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22955 | { | |
22956 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
22957 | result = (wxDateSpan *) &_result_ref; | |
22958 | } | |
22959 | ||
22960 | wxPyEndAllowThreads(__tstate); | |
22961 | if (PyErr_Occurred()) SWIG_fail; | |
22962 | } | |
15afbcd0 | 22963 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
22964 | return resultobj; |
22965 | fail: | |
22966 | return NULL; | |
22967 | } | |
22968 | ||
22969 | ||
22970 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22971 | PyObject *resultobj; | |
22972 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22973 | int arg2 ; | |
22974 | wxDateSpan *result; | |
22975 | PyObject * obj0 = 0 ; | |
994141e6 | 22976 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22977 | char *kwnames[] = { |
22978 | (char *) "self",(char *) "n", NULL | |
22979 | }; | |
22980 | ||
994141e6 | 22981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22984 | arg2 = (int) SWIG_AsInt(obj1); | |
22985 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22986 | { |
22987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22988 | { | |
22989 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
22990 | result = (wxDateSpan *) &_result_ref; | |
22991 | } | |
22992 | ||
22993 | wxPyEndAllowThreads(__tstate); | |
22994 | if (PyErr_Occurred()) SWIG_fail; | |
22995 | } | |
15afbcd0 | 22996 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
22997 | return resultobj; |
22998 | fail: | |
22999 | return NULL; | |
23000 | } | |
23001 | ||
23002 | ||
23003 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23004 | PyObject *resultobj; | |
23005 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23006 | int arg2 ; | |
23007 | wxDateSpan *result; | |
23008 | PyObject * obj0 = 0 ; | |
994141e6 | 23009 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23010 | char *kwnames[] = { |
23011 | (char *) "self",(char *) "n", NULL | |
23012 | }; | |
23013 | ||
994141e6 | 23014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23017 | arg2 = (int) SWIG_AsInt(obj1); | |
23018 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23019 | { |
23020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23021 | { | |
23022 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
23023 | result = (wxDateSpan *) &_result_ref; | |
23024 | } | |
23025 | ||
23026 | wxPyEndAllowThreads(__tstate); | |
23027 | if (PyErr_Occurred()) SWIG_fail; | |
23028 | } | |
15afbcd0 | 23029 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23030 | return resultobj; |
23031 | fail: | |
23032 | return NULL; | |
23033 | } | |
23034 | ||
23035 | ||
23036 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23037 | PyObject *resultobj; | |
23038 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23039 | int arg2 ; | |
23040 | wxDateSpan *result; | |
23041 | PyObject * obj0 = 0 ; | |
994141e6 | 23042 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23043 | char *kwnames[] = { |
23044 | (char *) "self",(char *) "n", NULL | |
23045 | }; | |
23046 | ||
994141e6 | 23047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23050 | arg2 = (int) SWIG_AsInt(obj1); | |
23051 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23052 | { |
23053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23054 | { | |
23055 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
23056 | result = (wxDateSpan *) &_result_ref; | |
23057 | } | |
23058 | ||
23059 | wxPyEndAllowThreads(__tstate); | |
23060 | if (PyErr_Occurred()) SWIG_fail; | |
23061 | } | |
15afbcd0 | 23062 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23063 | return resultobj; |
23064 | fail: | |
23065 | return NULL; | |
23066 | } | |
23067 | ||
23068 | ||
23069 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23070 | PyObject *resultobj; | |
23071 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23072 | int result; | |
23073 | PyObject * obj0 = 0 ; | |
23074 | char *kwnames[] = { | |
23075 | (char *) "self", NULL | |
23076 | }; | |
23077 | ||
23078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23081 | { |
23082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23083 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
23084 | ||
23085 | wxPyEndAllowThreads(__tstate); | |
23086 | if (PyErr_Occurred()) SWIG_fail; | |
23087 | } | |
15afbcd0 | 23088 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23089 | return resultobj; |
23090 | fail: | |
23091 | return NULL; | |
23092 | } | |
23093 | ||
23094 | ||
23095 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23096 | PyObject *resultobj; | |
23097 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23098 | int result; | |
23099 | PyObject * obj0 = 0 ; | |
23100 | char *kwnames[] = { | |
23101 | (char *) "self", NULL | |
23102 | }; | |
23103 | ||
23104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23107 | { |
23108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23109 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
23110 | ||
23111 | wxPyEndAllowThreads(__tstate); | |
23112 | if (PyErr_Occurred()) SWIG_fail; | |
23113 | } | |
15afbcd0 | 23114 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23115 | return resultobj; |
23116 | fail: | |
23117 | return NULL; | |
23118 | } | |
23119 | ||
23120 | ||
23121 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23122 | PyObject *resultobj; | |
23123 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23124 | int result; | |
23125 | PyObject * obj0 = 0 ; | |
23126 | char *kwnames[] = { | |
23127 | (char *) "self", NULL | |
23128 | }; | |
23129 | ||
23130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23133 | { |
23134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23135 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
23136 | ||
23137 | wxPyEndAllowThreads(__tstate); | |
23138 | if (PyErr_Occurred()) SWIG_fail; | |
23139 | } | |
15afbcd0 | 23140 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23141 | return resultobj; |
23142 | fail: | |
23143 | return NULL; | |
23144 | } | |
23145 | ||
23146 | ||
23147 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23148 | PyObject *resultobj; | |
23149 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23150 | int result; | |
23151 | PyObject * obj0 = 0 ; | |
23152 | char *kwnames[] = { | |
23153 | (char *) "self", NULL | |
23154 | }; | |
23155 | ||
23156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23159 | { |
23160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23161 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
23162 | ||
23163 | wxPyEndAllowThreads(__tstate); | |
23164 | if (PyErr_Occurred()) SWIG_fail; | |
23165 | } | |
15afbcd0 | 23166 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23167 | return resultobj; |
23168 | fail: | |
23169 | return NULL; | |
23170 | } | |
23171 | ||
23172 | ||
23173 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23174 | PyObject *resultobj; | |
23175 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23176 | int result; | |
23177 | PyObject * obj0 = 0 ; | |
23178 | char *kwnames[] = { | |
23179 | (char *) "self", NULL | |
23180 | }; | |
23181 | ||
23182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23185 | { |
23186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23187 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
23188 | ||
23189 | wxPyEndAllowThreads(__tstate); | |
23190 | if (PyErr_Occurred()) SWIG_fail; | |
23191 | } | |
15afbcd0 | 23192 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23193 | return resultobj; |
23194 | fail: | |
23195 | return NULL; | |
23196 | } | |
23197 | ||
23198 | ||
23199 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23200 | PyObject *resultobj; | |
23201 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23202 | wxDateSpan *arg2 = 0 ; | |
23203 | wxDateSpan *result; | |
23204 | PyObject * obj0 = 0 ; | |
23205 | PyObject * obj1 = 0 ; | |
23206 | char *kwnames[] = { | |
23207 | (char *) "self",(char *) "other", NULL | |
23208 | }; | |
23209 | ||
23210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23213 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23214 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23215 | SWIG_fail; | |
d14a1e28 | 23216 | if (arg2 == NULL) { |
15afbcd0 RD |
23217 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23218 | SWIG_fail; | |
d14a1e28 RD |
23219 | } |
23220 | { | |
23221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23222 | { | |
23223 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
23224 | result = (wxDateSpan *) &_result_ref; | |
23225 | } | |
23226 | ||
23227 | wxPyEndAllowThreads(__tstate); | |
23228 | if (PyErr_Occurred()) SWIG_fail; | |
23229 | } | |
15afbcd0 | 23230 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23231 | return resultobj; |
23232 | fail: | |
23233 | return NULL; | |
23234 | } | |
23235 | ||
23236 | ||
23237 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23238 | PyObject *resultobj; | |
23239 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23240 | wxDateSpan *arg2 = 0 ; | |
23241 | wxDateSpan *result; | |
23242 | PyObject * obj0 = 0 ; | |
23243 | PyObject * obj1 = 0 ; | |
23244 | char *kwnames[] = { | |
23245 | (char *) "self",(char *) "other", NULL | |
23246 | }; | |
23247 | ||
23248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23251 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23252 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23253 | SWIG_fail; | |
d14a1e28 | 23254 | if (arg2 == NULL) { |
15afbcd0 RD |
23255 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23256 | SWIG_fail; | |
d14a1e28 RD |
23257 | } |
23258 | { | |
23259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23260 | { | |
23261 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
23262 | result = (wxDateSpan *) &_result_ref; | |
23263 | } | |
23264 | ||
23265 | wxPyEndAllowThreads(__tstate); | |
23266 | if (PyErr_Occurred()) SWIG_fail; | |
23267 | } | |
15afbcd0 | 23268 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23269 | return resultobj; |
23270 | fail: | |
23271 | return NULL; | |
23272 | } | |
23273 | ||
23274 | ||
23275 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23276 | PyObject *resultobj; | |
23277 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23278 | wxDateSpan *result; | |
23279 | PyObject * obj0 = 0 ; | |
23280 | char *kwnames[] = { | |
23281 | (char *) "self", NULL | |
23282 | }; | |
23283 | ||
23284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23287 | { |
23288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23289 | { | |
23290 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
23291 | result = (wxDateSpan *) &_result_ref; | |
23292 | } | |
23293 | ||
23294 | wxPyEndAllowThreads(__tstate); | |
23295 | if (PyErr_Occurred()) SWIG_fail; | |
23296 | } | |
15afbcd0 | 23297 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23298 | return resultobj; |
23299 | fail: | |
23300 | return NULL; | |
23301 | } | |
23302 | ||
23303 | ||
23304 | static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23305 | PyObject *resultobj; | |
23306 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23307 | int arg2 ; | |
23308 | wxDateSpan *result; | |
23309 | PyObject * obj0 = 0 ; | |
994141e6 | 23310 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23311 | char *kwnames[] = { |
23312 | (char *) "self",(char *) "factor", NULL | |
23313 | }; | |
23314 | ||
994141e6 | 23315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23318 | arg2 = (int) SWIG_AsInt(obj1); | |
23319 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23320 | { |
23321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23322 | { | |
23323 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
23324 | result = (wxDateSpan *) &_result_ref; | |
23325 | } | |
23326 | ||
23327 | wxPyEndAllowThreads(__tstate); | |
23328 | if (PyErr_Occurred()) SWIG_fail; | |
23329 | } | |
15afbcd0 | 23330 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23331 | return resultobj; |
23332 | fail: | |
23333 | return NULL; | |
23334 | } | |
23335 | ||
23336 | ||
23337 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23338 | PyObject *resultobj; | |
23339 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23340 | wxDateSpan *arg2 = 0 ; | |
23341 | wxDateSpan *result; | |
23342 | PyObject * obj0 = 0 ; | |
23343 | PyObject * obj1 = 0 ; | |
23344 | char *kwnames[] = { | |
23345 | (char *) "self",(char *) "other", NULL | |
23346 | }; | |
23347 | ||
23348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23351 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23352 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23353 | SWIG_fail; | |
d14a1e28 | 23354 | if (arg2 == NULL) { |
15afbcd0 RD |
23355 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23356 | SWIG_fail; | |
d14a1e28 RD |
23357 | } |
23358 | { | |
23359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23360 | { | |
23361 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
23362 | result = (wxDateSpan *) &_result_ref; | |
23363 | } | |
23364 | ||
23365 | wxPyEndAllowThreads(__tstate); | |
23366 | if (PyErr_Occurred()) SWIG_fail; | |
23367 | } | |
15afbcd0 | 23368 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23369 | return resultobj; |
23370 | fail: | |
23371 | return NULL; | |
23372 | } | |
23373 | ||
23374 | ||
23375 | static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23376 | PyObject *resultobj; | |
23377 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23378 | wxDateSpan *arg2 = 0 ; | |
23379 | wxDateSpan *result; | |
23380 | PyObject * obj0 = 0 ; | |
23381 | PyObject * obj1 = 0 ; | |
23382 | char *kwnames[] = { | |
23383 | (char *) "self",(char *) "other", NULL | |
23384 | }; | |
23385 | ||
23386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23389 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23390 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23391 | SWIG_fail; | |
d14a1e28 | 23392 | if (arg2 == NULL) { |
15afbcd0 RD |
23393 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23394 | SWIG_fail; | |
d14a1e28 RD |
23395 | } |
23396 | { | |
23397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23398 | { | |
23399 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
23400 | result = (wxDateSpan *) &_result_ref; | |
23401 | } | |
23402 | ||
23403 | wxPyEndAllowThreads(__tstate); | |
23404 | if (PyErr_Occurred()) SWIG_fail; | |
23405 | } | |
15afbcd0 | 23406 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23407 | return resultobj; |
23408 | fail: | |
23409 | return NULL; | |
23410 | } | |
23411 | ||
23412 | ||
23413 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23414 | PyObject *resultobj; | |
23415 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23416 | wxDateSpan *result; | |
23417 | PyObject * obj0 = 0 ; | |
23418 | char *kwnames[] = { | |
23419 | (char *) "self", NULL | |
23420 | }; | |
23421 | ||
23422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23425 | { |
23426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23427 | { | |
23428 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
23429 | result = (wxDateSpan *) &_result_ref; | |
23430 | } | |
23431 | ||
23432 | wxPyEndAllowThreads(__tstate); | |
23433 | if (PyErr_Occurred()) SWIG_fail; | |
23434 | } | |
15afbcd0 | 23435 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23436 | return resultobj; |
23437 | fail: | |
23438 | return NULL; | |
23439 | } | |
23440 | ||
23441 | ||
23442 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23443 | PyObject *resultobj; | |
23444 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23445 | int arg2 ; | |
23446 | wxDateSpan *result; | |
23447 | PyObject * obj0 = 0 ; | |
994141e6 | 23448 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23449 | char *kwnames[] = { |
23450 | (char *) "self",(char *) "factor", NULL | |
23451 | }; | |
23452 | ||
994141e6 | 23453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23456 | arg2 = (int) SWIG_AsInt(obj1); | |
23457 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23458 | { |
23459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23460 | { | |
23461 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
23462 | result = (wxDateSpan *) &_result_ref; | |
23463 | } | |
23464 | ||
23465 | wxPyEndAllowThreads(__tstate); | |
23466 | if (PyErr_Occurred()) SWIG_fail; | |
23467 | } | |
15afbcd0 | 23468 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23469 | return resultobj; |
23470 | fail: | |
23471 | return NULL; | |
23472 | } | |
23473 | ||
23474 | ||
23475 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23476 | PyObject *resultobj; | |
23477 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23478 | wxDateSpan *arg2 = 0 ; | |
23479 | wxDateSpan result; | |
23480 | PyObject * obj0 = 0 ; | |
23481 | PyObject * obj1 = 0 ; | |
23482 | char *kwnames[] = { | |
23483 | (char *) "self",(char *) "other", NULL | |
23484 | }; | |
23485 | ||
23486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23489 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23490 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23491 | SWIG_fail; | |
d14a1e28 | 23492 | if (arg2 == NULL) { |
15afbcd0 RD |
23493 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23494 | SWIG_fail; | |
d14a1e28 RD |
23495 | } |
23496 | { | |
23497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23498 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
23499 | ||
23500 | wxPyEndAllowThreads(__tstate); | |
23501 | if (PyErr_Occurred()) SWIG_fail; | |
23502 | } | |
23503 | { | |
23504 | wxDateSpan * resultptr; | |
23505 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23506 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23507 | } |
23508 | return resultobj; | |
23509 | fail: | |
23510 | return NULL; | |
23511 | } | |
23512 | ||
23513 | ||
23514 | static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23515 | PyObject *resultobj; | |
23516 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23517 | wxDateSpan *arg2 = 0 ; | |
23518 | wxDateSpan result; | |
23519 | PyObject * obj0 = 0 ; | |
23520 | PyObject * obj1 = 0 ; | |
23521 | char *kwnames[] = { | |
23522 | (char *) "self",(char *) "other", NULL | |
23523 | }; | |
23524 | ||
23525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23528 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23529 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23530 | SWIG_fail; | |
d14a1e28 | 23531 | if (arg2 == NULL) { |
15afbcd0 RD |
23532 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23533 | SWIG_fail; | |
d14a1e28 RD |
23534 | } |
23535 | { | |
23536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23537 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
23538 | ||
23539 | wxPyEndAllowThreads(__tstate); | |
23540 | if (PyErr_Occurred()) SWIG_fail; | |
23541 | } | |
23542 | { | |
23543 | wxDateSpan * resultptr; | |
23544 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23545 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23546 | } |
23547 | return resultobj; | |
23548 | fail: | |
23549 | return NULL; | |
23550 | } | |
23551 | ||
23552 | ||
23553 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23554 | PyObject *resultobj; | |
23555 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23556 | int arg2 ; | |
23557 | wxDateSpan result; | |
23558 | PyObject * obj0 = 0 ; | |
994141e6 | 23559 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23560 | char *kwnames[] = { |
23561 | (char *) "self",(char *) "n", NULL | |
23562 | }; | |
23563 | ||
994141e6 | 23564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23567 | arg2 = (int) SWIG_AsInt(obj1); | |
23568 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23569 | { |
23570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23571 | result = wxDateSpan___mul__(arg1,arg2); | |
23572 | ||
23573 | wxPyEndAllowThreads(__tstate); | |
23574 | if (PyErr_Occurred()) SWIG_fail; | |
23575 | } | |
23576 | { | |
23577 | wxDateSpan * resultptr; | |
23578 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23579 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23580 | } |
23581 | return resultobj; | |
23582 | fail: | |
23583 | return NULL; | |
23584 | } | |
23585 | ||
23586 | ||
23587 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23588 | PyObject *resultobj; | |
23589 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23590 | int arg2 ; | |
23591 | wxDateSpan result; | |
23592 | PyObject * obj0 = 0 ; | |
994141e6 | 23593 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23594 | char *kwnames[] = { |
23595 | (char *) "self",(char *) "n", NULL | |
23596 | }; | |
23597 | ||
994141e6 | 23598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23601 | arg2 = (int) SWIG_AsInt(obj1); | |
23602 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23603 | { |
23604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23605 | result = wxDateSpan___rmul__(arg1,arg2); | |
23606 | ||
23607 | wxPyEndAllowThreads(__tstate); | |
23608 | if (PyErr_Occurred()) SWIG_fail; | |
23609 | } | |
23610 | { | |
23611 | wxDateSpan * resultptr; | |
23612 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23613 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23614 | } |
23615 | return resultobj; | |
23616 | fail: | |
23617 | return NULL; | |
23618 | } | |
23619 | ||
23620 | ||
23621 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23622 | PyObject *resultobj; | |
23623 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22faec7d | 23624 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; |
d14a1e28 RD |
23625 | bool result; |
23626 | PyObject * obj0 = 0 ; | |
23627 | PyObject * obj1 = 0 ; | |
23628 | char *kwnames[] = { | |
23629 | (char *) "self",(char *) "other", NULL | |
23630 | }; | |
23631 | ||
23632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23635 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23637 | { |
23638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 23639 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); |
d14a1e28 RD |
23640 | |
23641 | wxPyEndAllowThreads(__tstate); | |
23642 | if (PyErr_Occurred()) SWIG_fail; | |
23643 | } | |
4f89f6a3 RD |
23644 | { |
23645 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23646 | } | |
d14a1e28 RD |
23647 | return resultobj; |
23648 | fail: | |
23649 | return NULL; | |
23650 | } | |
23651 | ||
23652 | ||
23653 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23654 | PyObject *resultobj; | |
23655 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22faec7d | 23656 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; |
d14a1e28 RD |
23657 | bool result; |
23658 | PyObject * obj0 = 0 ; | |
23659 | PyObject * obj1 = 0 ; | |
23660 | char *kwnames[] = { | |
23661 | (char *) "self",(char *) "other", NULL | |
23662 | }; | |
23663 | ||
23664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23667 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23669 | { |
23670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 23671 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); |
d14a1e28 RD |
23672 | |
23673 | wxPyEndAllowThreads(__tstate); | |
23674 | if (PyErr_Occurred()) SWIG_fail; | |
23675 | } | |
4f89f6a3 RD |
23676 | { |
23677 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23678 | } | |
d14a1e28 RD |
23679 | return resultobj; |
23680 | fail: | |
23681 | return NULL; | |
23682 | } | |
23683 | ||
23684 | ||
23685 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
23686 | PyObject *obj; | |
23687 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23688 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
23689 | Py_INCREF(obj); | |
23690 | return Py_BuildValue((char *)""); | |
23691 | } | |
23692 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23693 | PyObject *resultobj; | |
23694 | long result; | |
23695 | char *kwnames[] = { | |
23696 | NULL | |
23697 | }; | |
23698 | ||
23699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
23700 | { | |
23701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23702 | result = (long)wxGetLocalTime(); | |
23703 | ||
23704 | wxPyEndAllowThreads(__tstate); | |
23705 | if (PyErr_Occurred()) SWIG_fail; | |
23706 | } | |
15afbcd0 | 23707 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23708 | return resultobj; |
23709 | fail: | |
23710 | return NULL; | |
23711 | } | |
23712 | ||
23713 | ||
23714 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23715 | PyObject *resultobj; | |
23716 | long result; | |
23717 | char *kwnames[] = { | |
23718 | NULL | |
23719 | }; | |
23720 | ||
23721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
23722 | { | |
23723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23724 | result = (long)wxGetUTCTime(); | |
23725 | ||
23726 | wxPyEndAllowThreads(__tstate); | |
23727 | if (PyErr_Occurred()) SWIG_fail; | |
23728 | } | |
15afbcd0 | 23729 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23730 | return resultobj; |
23731 | fail: | |
23732 | return NULL; | |
23733 | } | |
23734 | ||
23735 | ||
23736 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23737 | PyObject *resultobj; | |
23738 | long result; | |
23739 | char *kwnames[] = { | |
23740 | NULL | |
23741 | }; | |
23742 | ||
23743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
23744 | { | |
23745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23746 | result = (long)wxGetCurrentTime(); | |
23747 | ||
23748 | wxPyEndAllowThreads(__tstate); | |
23749 | if (PyErr_Occurred()) SWIG_fail; | |
23750 | } | |
15afbcd0 | 23751 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23752 | return resultobj; |
23753 | fail: | |
23754 | return NULL; | |
23755 | } | |
23756 | ||
23757 | ||
23758 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23759 | PyObject *resultobj; | |
23760 | wxLongLong result; | |
23761 | char *kwnames[] = { | |
23762 | NULL | |
23763 | }; | |
23764 | ||
23765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
23766 | { | |
23767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23768 | result = wxGetLocalTimeMillis(); | |
23769 | ||
23770 | wxPyEndAllowThreads(__tstate); | |
23771 | if (PyErr_Occurred()) SWIG_fail; | |
23772 | } | |
23773 | { | |
23774 | PyObject *hi, *lo, *shifter, *shifted; | |
23775 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23776 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23777 | shifter = PyLong_FromLong(32); | |
23778 | shifted = PyNumber_Lshift(hi, shifter); | |
23779 | resultobj = PyNumber_Or(shifted, lo); | |
23780 | Py_DECREF(hi); | |
23781 | Py_DECREF(lo); | |
23782 | Py_DECREF(shifter); | |
23783 | Py_DECREF(shifted); | |
23784 | } | |
23785 | return resultobj; | |
23786 | fail: | |
23787 | return NULL; | |
23788 | } | |
23789 | ||
23790 | ||
98e665d3 RD |
23791 | static int _wrap_DefaultDateTime_set(PyObject *_val) { |
23792 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); | |
23793 | return 1; | |
23794 | } | |
23795 | ||
23796 | ||
23797 | static PyObject *_wrap_DefaultDateTime_get() { | |
23798 | PyObject *pyobj; | |
23799 | ||
15afbcd0 | 23800 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); |
98e665d3 RD |
23801 | return pyobj; |
23802 | } | |
23803 | ||
23804 | ||
d14a1e28 RD |
23805 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { |
23806 | PyObject *resultobj; | |
23807 | int arg1 ; | |
23808 | wxDataFormat *result; | |
994141e6 | 23809 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
23810 | char *kwnames[] = { |
23811 | (char *) "type", NULL | |
23812 | }; | |
23813 | ||
994141e6 | 23814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
23815 | arg1 = (wxDataFormatId) SWIG_AsInt(obj0); |
23816 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23817 | { |
23818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23819 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
23820 | ||
23821 | wxPyEndAllowThreads(__tstate); | |
23822 | if (PyErr_Occurred()) SWIG_fail; | |
23823 | } | |
15afbcd0 | 23824 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
23825 | return resultobj; |
23826 | fail: | |
23827 | return NULL; | |
23828 | } | |
23829 | ||
23830 | ||
23831 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23832 | PyObject *resultobj; | |
23833 | wxString *arg1 = 0 ; | |
23834 | wxDataFormat *result; | |
e811c8ce | 23835 | bool temp1 = False ; |
d14a1e28 RD |
23836 | PyObject * obj0 = 0 ; |
23837 | char *kwnames[] = { | |
23838 | (char *) "format", NULL | |
23839 | }; | |
23840 | ||
23841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
23842 | { | |
23843 | arg1 = wxString_in_helper(obj0); | |
23844 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 23845 | temp1 = True; |
d14a1e28 RD |
23846 | } |
23847 | { | |
23848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23849 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
23850 | ||
23851 | wxPyEndAllowThreads(__tstate); | |
23852 | if (PyErr_Occurred()) SWIG_fail; | |
23853 | } | |
15afbcd0 | 23854 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
23855 | { |
23856 | if (temp1) | |
23857 | delete arg1; | |
23858 | } | |
23859 | return resultobj; | |
23860 | fail: | |
23861 | { | |
23862 | if (temp1) | |
23863 | delete arg1; | |
23864 | } | |
23865 | return NULL; | |
23866 | } | |
23867 | ||
23868 | ||
23869 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23870 | PyObject *resultobj; | |
23871 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23872 | PyObject * obj0 = 0 ; | |
23873 | char *kwnames[] = { | |
23874 | (char *) "self", NULL | |
23875 | }; | |
23876 | ||
23877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23880 | { |
23881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23882 | delete arg1; | |
23883 | ||
23884 | wxPyEndAllowThreads(__tstate); | |
23885 | if (PyErr_Occurred()) SWIG_fail; | |
23886 | } | |
23887 | Py_INCREF(Py_None); resultobj = Py_None; | |
23888 | return resultobj; | |
23889 | fail: | |
23890 | return NULL; | |
23891 | } | |
23892 | ||
23893 | ||
23894 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
23895 | PyObject *resultobj; | |
23896 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23897 | int arg2 ; | |
23898 | bool result; | |
23899 | PyObject * obj0 = 0 ; | |
994141e6 | 23900 | PyObject * obj1 = 0 ; |
d14a1e28 | 23901 | |
994141e6 | 23902 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23905 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23906 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23907 | { |
23908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 23909 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); |
d14a1e28 RD |
23910 | |
23911 | wxPyEndAllowThreads(__tstate); | |
23912 | if (PyErr_Occurred()) SWIG_fail; | |
23913 | } | |
4f89f6a3 RD |
23914 | { |
23915 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23916 | } | |
d14a1e28 RD |
23917 | return resultobj; |
23918 | fail: | |
23919 | return NULL; | |
23920 | } | |
23921 | ||
23922 | ||
23923 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
23924 | PyObject *resultobj; | |
23925 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23926 | int arg2 ; | |
23927 | bool result; | |
23928 | PyObject * obj0 = 0 ; | |
994141e6 | 23929 | PyObject * obj1 = 0 ; |
d14a1e28 | 23930 | |
994141e6 | 23931 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23934 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23935 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23936 | { |
23937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 23938 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); |
d14a1e28 RD |
23939 | |
23940 | wxPyEndAllowThreads(__tstate); | |
23941 | if (PyErr_Occurred()) SWIG_fail; | |
23942 | } | |
4f89f6a3 RD |
23943 | { |
23944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23945 | } | |
d14a1e28 RD |
23946 | return resultobj; |
23947 | fail: | |
23948 | return NULL; | |
23949 | } | |
23950 | ||
23951 | ||
23952 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
23953 | PyObject *resultobj; | |
23954 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23955 | wxDataFormat *arg2 = 0 ; | |
23956 | bool result; | |
23957 | PyObject * obj0 = 0 ; | |
23958 | PyObject * obj1 = 0 ; | |
23959 | ||
23960 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23963 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
23964 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23965 | SWIG_fail; | |
d14a1e28 | 23966 | if (arg2 == NULL) { |
15afbcd0 RD |
23967 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23968 | SWIG_fail; | |
d14a1e28 RD |
23969 | } |
23970 | { | |
23971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23972 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
23973 | ||
23974 | wxPyEndAllowThreads(__tstate); | |
23975 | if (PyErr_Occurred()) SWIG_fail; | |
23976 | } | |
4f89f6a3 RD |
23977 | { |
23978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23979 | } | |
d14a1e28 RD |
23980 | return resultobj; |
23981 | fail: | |
23982 | return NULL; | |
23983 | } | |
23984 | ||
23985 | ||
23986 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
23987 | int argc; | |
23988 | PyObject *argv[3]; | |
23989 | int ii; | |
23990 | ||
23991 | argc = PyObject_Length(args); | |
23992 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23993 | argv[ii] = PyTuple_GetItem(args,ii); | |
23994 | } | |
23995 | if (argc == 2) { | |
23996 | int _v; | |
23997 | { | |
23998 | void *ptr; | |
15afbcd0 | 23999 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24000 | _v = 0; |
24001 | PyErr_Clear(); | |
24002 | } else { | |
24003 | _v = 1; | |
24004 | } | |
24005 | } | |
24006 | if (_v) { | |
24007 | { | |
24008 | void *ptr; | |
15afbcd0 | 24009 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24010 | _v = 0; |
24011 | PyErr_Clear(); | |
24012 | } else { | |
24013 | _v = 1; | |
24014 | } | |
24015 | } | |
24016 | if (_v) { | |
24017 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
24018 | } | |
24019 | } | |
24020 | } | |
24021 | if (argc == 2) { | |
24022 | int _v; | |
24023 | { | |
24024 | void *ptr; | |
15afbcd0 | 24025 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24026 | _v = 0; |
24027 | PyErr_Clear(); | |
24028 | } else { | |
24029 | _v = 1; | |
24030 | } | |
24031 | } | |
24032 | if (_v) { | |
15afbcd0 | 24033 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
24034 | if (_v) { |
24035 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
24036 | } | |
24037 | } | |
24038 | } | |
24039 | ||
24040 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
24041 | return NULL; | |
24042 | } | |
24043 | ||
24044 | ||
24045 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
24046 | PyObject *resultobj; | |
24047 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24048 | wxDataFormat *arg2 = 0 ; | |
24049 | bool result; | |
24050 | PyObject * obj0 = 0 ; | |
24051 | PyObject * obj1 = 0 ; | |
24052 | ||
24053 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24056 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24057 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24058 | SWIG_fail; | |
d14a1e28 | 24059 | if (arg2 == NULL) { |
15afbcd0 RD |
24060 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24061 | SWIG_fail; | |
d14a1e28 RD |
24062 | } |
24063 | { | |
24064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24065 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
24066 | ||
24067 | wxPyEndAllowThreads(__tstate); | |
24068 | if (PyErr_Occurred()) SWIG_fail; | |
24069 | } | |
4f89f6a3 RD |
24070 | { |
24071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24072 | } | |
d14a1e28 RD |
24073 | return resultobj; |
24074 | fail: | |
24075 | return NULL; | |
24076 | } | |
24077 | ||
24078 | ||
24079 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
24080 | int argc; | |
24081 | PyObject *argv[3]; | |
24082 | int ii; | |
24083 | ||
24084 | argc = PyObject_Length(args); | |
24085 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24086 | argv[ii] = PyTuple_GetItem(args,ii); | |
24087 | } | |
24088 | if (argc == 2) { | |
24089 | int _v; | |
24090 | { | |
24091 | void *ptr; | |
15afbcd0 | 24092 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24093 | _v = 0; |
24094 | PyErr_Clear(); | |
24095 | } else { | |
24096 | _v = 1; | |
24097 | } | |
24098 | } | |
24099 | if (_v) { | |
24100 | { | |
24101 | void *ptr; | |
15afbcd0 | 24102 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24103 | _v = 0; |
24104 | PyErr_Clear(); | |
24105 | } else { | |
24106 | _v = 1; | |
24107 | } | |
24108 | } | |
24109 | if (_v) { | |
24110 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
24111 | } | |
24112 | } | |
24113 | } | |
24114 | if (argc == 2) { | |
24115 | int _v; | |
24116 | { | |
24117 | void *ptr; | |
15afbcd0 | 24118 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24119 | _v = 0; |
24120 | PyErr_Clear(); | |
24121 | } else { | |
24122 | _v = 1; | |
24123 | } | |
24124 | } | |
24125 | if (_v) { | |
15afbcd0 | 24126 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
24127 | if (_v) { |
24128 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
24129 | } | |
24130 | } | |
24131 | } | |
24132 | ||
24133 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
24134 | return NULL; | |
24135 | } | |
24136 | ||
24137 | ||
24138 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24139 | PyObject *resultobj; | |
24140 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24141 | int arg2 ; | |
24142 | PyObject * obj0 = 0 ; | |
994141e6 | 24143 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24144 | char *kwnames[] = { |
24145 | (char *) "self",(char *) "format", NULL | |
24146 | }; | |
24147 | ||
994141e6 | 24148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24151 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
24152 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24153 | { |
24154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24155 | (arg1)->SetType((wxDataFormatId )arg2); | |
24156 | ||
24157 | wxPyEndAllowThreads(__tstate); | |
24158 | if (PyErr_Occurred()) SWIG_fail; | |
24159 | } | |
24160 | Py_INCREF(Py_None); resultobj = Py_None; | |
24161 | return resultobj; | |
24162 | fail: | |
24163 | return NULL; | |
24164 | } | |
24165 | ||
24166 | ||
24167 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24168 | PyObject *resultobj; | |
24169 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24170 | int result; | |
24171 | PyObject * obj0 = 0 ; | |
24172 | char *kwnames[] = { | |
24173 | (char *) "self", NULL | |
24174 | }; | |
24175 | ||
24176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24179 | { |
24180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24181 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
24182 | ||
24183 | wxPyEndAllowThreads(__tstate); | |
24184 | if (PyErr_Occurred()) SWIG_fail; | |
24185 | } | |
15afbcd0 | 24186 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
24187 | return resultobj; |
24188 | fail: | |
24189 | return NULL; | |
24190 | } | |
24191 | ||
24192 | ||
24193 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24194 | PyObject *resultobj; | |
24195 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24196 | wxString result; | |
24197 | PyObject * obj0 = 0 ; | |
24198 | char *kwnames[] = { | |
24199 | (char *) "self", NULL | |
24200 | }; | |
24201 | ||
24202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24205 | { |
24206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24207 | result = ((wxDataFormat const *)arg1)->GetId(); | |
24208 | ||
24209 | wxPyEndAllowThreads(__tstate); | |
24210 | if (PyErr_Occurred()) SWIG_fail; | |
24211 | } | |
24212 | { | |
24213 | #if wxUSE_UNICODE | |
24214 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24215 | #else | |
24216 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24217 | #endif | |
24218 | } | |
24219 | return resultobj; | |
24220 | fail: | |
24221 | return NULL; | |
24222 | } | |
24223 | ||
24224 | ||
24225 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24226 | PyObject *resultobj; | |
24227 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24228 | wxString *arg2 = 0 ; | |
e811c8ce | 24229 | bool temp2 = False ; |
d14a1e28 RD |
24230 | PyObject * obj0 = 0 ; |
24231 | PyObject * obj1 = 0 ; | |
24232 | char *kwnames[] = { | |
24233 | (char *) "self",(char *) "format", NULL | |
24234 | }; | |
24235 | ||
24236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24239 | { |
24240 | arg2 = wxString_in_helper(obj1); | |
24241 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24242 | temp2 = True; |
d14a1e28 RD |
24243 | } |
24244 | { | |
24245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24246 | (arg1)->SetId((wxString const &)*arg2); | |
24247 | ||
24248 | wxPyEndAllowThreads(__tstate); | |
24249 | if (PyErr_Occurred()) SWIG_fail; | |
24250 | } | |
24251 | Py_INCREF(Py_None); resultobj = Py_None; | |
24252 | { | |
24253 | if (temp2) | |
24254 | delete arg2; | |
24255 | } | |
24256 | return resultobj; | |
24257 | fail: | |
24258 | { | |
24259 | if (temp2) | |
24260 | delete arg2; | |
24261 | } | |
24262 | return NULL; | |
24263 | } | |
24264 | ||
24265 | ||
24266 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
24267 | PyObject *obj; | |
24268 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24269 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
24270 | Py_INCREF(obj); | |
24271 | return Py_BuildValue((char *)""); | |
24272 | } | |
24273 | static int _wrap_FormatInvalid_set(PyObject *_val) { | |
24274 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); | |
24275 | return 1; | |
24276 | } | |
24277 | ||
24278 | ||
24279 | static PyObject *_wrap_FormatInvalid_get() { | |
24280 | PyObject *pyobj; | |
24281 | ||
15afbcd0 | 24282 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); |
d14a1e28 RD |
24283 | return pyobj; |
24284 | } | |
24285 | ||
24286 | ||
24287 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24288 | PyObject *resultobj; | |
24289 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24290 | PyObject * obj0 = 0 ; | |
24291 | char *kwnames[] = { | |
24292 | (char *) "self", NULL | |
24293 | }; | |
24294 | ||
24295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24298 | { |
24299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24300 | delete arg1; | |
24301 | ||
24302 | wxPyEndAllowThreads(__tstate); | |
24303 | if (PyErr_Occurred()) SWIG_fail; | |
24304 | } | |
24305 | Py_INCREF(Py_None); resultobj = Py_None; | |
24306 | return resultobj; | |
24307 | fail: | |
24308 | return NULL; | |
24309 | } | |
24310 | ||
24311 | ||
24312 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24313 | PyObject *resultobj; | |
24314 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24315 | int arg2 = (int) wxDataObject::Get ; | |
24316 | SwigValueWrapper< wxDataFormat > result; | |
24317 | PyObject * obj0 = 0 ; | |
994141e6 | 24318 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24319 | char *kwnames[] = { |
24320 | (char *) "self",(char *) "dir", NULL | |
24321 | }; | |
24322 | ||
994141e6 | 24323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24326 | if (obj1) { |
15afbcd0 RD |
24327 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); |
24328 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24329 | } |
d14a1e28 RD |
24330 | { |
24331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24332 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
24333 | ||
24334 | wxPyEndAllowThreads(__tstate); | |
24335 | if (PyErr_Occurred()) SWIG_fail; | |
24336 | } | |
24337 | { | |
24338 | wxDataFormat * resultptr; | |
24339 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
15afbcd0 | 24340 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
24341 | } |
24342 | return resultobj; | |
24343 | fail: | |
24344 | return NULL; | |
24345 | } | |
24346 | ||
24347 | ||
24348 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24349 | PyObject *resultobj; | |
24350 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24351 | int arg2 = (int) wxDataObject::Get ; | |
24352 | size_t result; | |
24353 | PyObject * obj0 = 0 ; | |
994141e6 | 24354 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24355 | char *kwnames[] = { |
24356 | (char *) "self",(char *) "dir", NULL | |
24357 | }; | |
24358 | ||
994141e6 | 24359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24362 | if (obj1) { |
15afbcd0 RD |
24363 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); |
24364 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24365 | } |
d14a1e28 RD |
24366 | { |
24367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24368 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
24369 | ||
24370 | wxPyEndAllowThreads(__tstate); | |
24371 | if (PyErr_Occurred()) SWIG_fail; | |
24372 | } | |
15afbcd0 | 24373 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24374 | return resultobj; |
24375 | fail: | |
24376 | return NULL; | |
24377 | } | |
24378 | ||
24379 | ||
24380 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24381 | PyObject *resultobj; | |
24382 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24383 | wxDataFormat *arg2 = 0 ; | |
24384 | int arg3 = (int) wxDataObject::Get ; | |
24385 | bool result; | |
24386 | PyObject * obj0 = 0 ; | |
24387 | PyObject * obj1 = 0 ; | |
994141e6 | 24388 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24389 | char *kwnames[] = { |
24390 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
24391 | }; | |
24392 | ||
994141e6 | 24393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24396 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24397 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24398 | SWIG_fail; | |
d14a1e28 | 24399 | if (arg2 == NULL) { |
15afbcd0 RD |
24400 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24401 | SWIG_fail; | |
d14a1e28 | 24402 | } |
994141e6 | 24403 | if (obj2) { |
15afbcd0 RD |
24404 | arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); |
24405 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24406 | } |
d14a1e28 RD |
24407 | { |
24408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24409 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
24410 | ||
24411 | wxPyEndAllowThreads(__tstate); | |
24412 | if (PyErr_Occurred()) SWIG_fail; | |
24413 | } | |
4f89f6a3 RD |
24414 | { |
24415 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24416 | } | |
d14a1e28 RD |
24417 | return resultobj; |
24418 | fail: | |
24419 | return NULL; | |
24420 | } | |
24421 | ||
24422 | ||
24423 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24424 | PyObject *resultobj; | |
24425 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24426 | wxDataFormat *arg2 = 0 ; | |
24427 | size_t result; | |
24428 | PyObject * obj0 = 0 ; | |
24429 | PyObject * obj1 = 0 ; | |
24430 | char *kwnames[] = { | |
24431 | (char *) "self",(char *) "format", NULL | |
24432 | }; | |
24433 | ||
24434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24437 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24438 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24439 | SWIG_fail; | |
d14a1e28 | 24440 | if (arg2 == NULL) { |
15afbcd0 RD |
24441 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24442 | SWIG_fail; | |
d14a1e28 RD |
24443 | } |
24444 | { | |
24445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24446 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
24447 | ||
24448 | wxPyEndAllowThreads(__tstate); | |
24449 | if (PyErr_Occurred()) SWIG_fail; | |
24450 | } | |
15afbcd0 | 24451 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24452 | return resultobj; |
24453 | fail: | |
24454 | return NULL; | |
24455 | } | |
24456 | ||
24457 | ||
24458 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24459 | PyObject *resultobj; | |
24460 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
1a10c483 RD |
24461 | int arg2 = (int) wxDataObject::Get ; |
24462 | PyObject *result; | |
d14a1e28 RD |
24463 | PyObject * obj0 = 0 ; |
24464 | PyObject * obj1 = 0 ; | |
24465 | char *kwnames[] = { | |
1a10c483 | 24466 | (char *) "self",(char *) "dir", NULL |
d14a1e28 RD |
24467 | }; |
24468 | ||
1a10c483 | 24469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1a10c483 RD |
24472 | if (obj1) { |
24473 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); | |
15afbcd0 | 24474 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 24475 | } |
d14a1e28 RD |
24476 | { |
24477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1a10c483 | 24478 | result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2); |
d14a1e28 RD |
24479 | |
24480 | wxPyEndAllowThreads(__tstate); | |
24481 | if (PyErr_Occurred()) SWIG_fail; | |
24482 | } | |
1a10c483 | 24483 | resultobj = result; |
d14a1e28 RD |
24484 | return resultobj; |
24485 | fail: | |
24486 | return NULL; | |
24487 | } | |
24488 | ||
24489 | ||
24490 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24491 | PyObject *resultobj; | |
24492 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24493 | wxDataFormat *arg2 = 0 ; | |
1a10c483 | 24494 | PyObject *result; |
d14a1e28 RD |
24495 | PyObject * obj0 = 0 ; |
24496 | PyObject * obj1 = 0 ; | |
d14a1e28 | 24497 | char *kwnames[] = { |
1a10c483 | 24498 | (char *) "self",(char *) "format", NULL |
d14a1e28 RD |
24499 | }; |
24500 | ||
1a10c483 | 24501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24504 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24505 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24506 | SWIG_fail; | |
d14a1e28 | 24507 | if (arg2 == NULL) { |
15afbcd0 RD |
24508 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24509 | SWIG_fail; | |
d14a1e28 | 24510 | } |
d14a1e28 RD |
24511 | { |
24512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1a10c483 | 24513 | result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2); |
d14a1e28 RD |
24514 | |
24515 | wxPyEndAllowThreads(__tstate); | |
24516 | if (PyErr_Occurred()) SWIG_fail; | |
24517 | } | |
1a10c483 | 24518 | resultobj = result; |
d14a1e28 RD |
24519 | return resultobj; |
24520 | fail: | |
24521 | return NULL; | |
24522 | } | |
24523 | ||
24524 | ||
24525 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24526 | PyObject *resultobj; | |
24527 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24528 | wxDataFormat *arg2 = 0 ; | |
1a10c483 | 24529 | PyObject *arg3 = (PyObject *) 0 ; |
d14a1e28 RD |
24530 | bool result; |
24531 | PyObject * obj0 = 0 ; | |
24532 | PyObject * obj1 = 0 ; | |
24533 | PyObject * obj2 = 0 ; | |
d14a1e28 | 24534 | char *kwnames[] = { |
1a10c483 | 24535 | (char *) "self",(char *) "format",(char *) "data", NULL |
d14a1e28 RD |
24536 | }; |
24537 | ||
1a10c483 | 24538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24541 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24542 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24543 | SWIG_fail; | |
d14a1e28 | 24544 | if (arg2 == NULL) { |
15afbcd0 RD |
24545 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24546 | SWIG_fail; | |
a41e16b6 | 24547 | } |
1a10c483 | 24548 | arg3 = obj2; |
d14a1e28 RD |
24549 | { |
24550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1a10c483 | 24551 | result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3); |
d14a1e28 RD |
24552 | |
24553 | wxPyEndAllowThreads(__tstate); | |
24554 | if (PyErr_Occurred()) SWIG_fail; | |
24555 | } | |
4f89f6a3 RD |
24556 | { |
24557 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24558 | } | |
d14a1e28 RD |
24559 | return resultobj; |
24560 | fail: | |
24561 | return NULL; | |
24562 | } | |
24563 | ||
24564 | ||
24565 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
24566 | PyObject *obj; | |
24567 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24568 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
24569 | Py_INCREF(obj); | |
24570 | return Py_BuildValue((char *)""); | |
24571 | } | |
24572 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24573 | PyObject *resultobj; | |
24574 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24575 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24576 | wxDataObjectSimple *result; | |
24577 | PyObject * obj0 = 0 ; | |
24578 | char *kwnames[] = { | |
24579 | (char *) "format", NULL | |
24580 | }; | |
24581 | ||
24582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
24583 | if (obj0) { | |
15afbcd0 RD |
24584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24585 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24586 | SWIG_fail; | |
d14a1e28 | 24587 | if (arg1 == NULL) { |
15afbcd0 RD |
24588 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24589 | SWIG_fail; | |
d14a1e28 RD |
24590 | } |
24591 | } | |
24592 | { | |
24593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24594 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
24595 | ||
24596 | wxPyEndAllowThreads(__tstate); | |
24597 | if (PyErr_Occurred()) SWIG_fail; | |
24598 | } | |
15afbcd0 | 24599 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); |
d14a1e28 RD |
24600 | return resultobj; |
24601 | fail: | |
24602 | return NULL; | |
24603 | } | |
24604 | ||
24605 | ||
24606 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24607 | PyObject *resultobj; | |
24608 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24609 | wxDataFormat *result; | |
24610 | PyObject * obj0 = 0 ; | |
24611 | char *kwnames[] = { | |
24612 | (char *) "self", NULL | |
24613 | }; | |
24614 | ||
24615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, |
24617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24618 | { |
24619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24620 | { | |
24621 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
24622 | result = (wxDataFormat *) &_result_ref; | |
24623 | } | |
24624 | ||
24625 | wxPyEndAllowThreads(__tstate); | |
24626 | if (PyErr_Occurred()) SWIG_fail; | |
24627 | } | |
15afbcd0 | 24628 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); |
d14a1e28 RD |
24629 | return resultobj; |
24630 | fail: | |
24631 | return NULL; | |
24632 | } | |
24633 | ||
24634 | ||
24635 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24636 | PyObject *resultobj; | |
24637 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24638 | wxDataFormat *arg2 = 0 ; | |
24639 | PyObject * obj0 = 0 ; | |
24640 | PyObject * obj1 = 0 ; | |
24641 | char *kwnames[] = { | |
24642 | (char *) "self",(char *) "format", NULL | |
24643 | }; | |
24644 | ||
24645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, |
24647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24648 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24649 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24650 | SWIG_fail; | |
d14a1e28 | 24651 | if (arg2 == NULL) { |
15afbcd0 RD |
24652 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24653 | SWIG_fail; | |
d14a1e28 RD |
24654 | } |
24655 | { | |
24656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24657 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
24658 | ||
24659 | wxPyEndAllowThreads(__tstate); | |
24660 | if (PyErr_Occurred()) SWIG_fail; | |
24661 | } | |
24662 | Py_INCREF(Py_None); resultobj = Py_None; | |
24663 | return resultobj; | |
24664 | fail: | |
24665 | return NULL; | |
24666 | } | |
24667 | ||
24668 | ||
1a10c483 RD |
24669 | static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
24670 | PyObject *resultobj; | |
24671 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24672 | size_t result; | |
24673 | PyObject * obj0 = 0 ; | |
24674 | char *kwnames[] = { | |
24675 | (char *) "self", NULL | |
24676 | }; | |
24677 | ||
24678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail; | |
24679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24681 | { | |
24682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24683 | result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize(); | |
24684 | ||
24685 | wxPyEndAllowThreads(__tstate); | |
24686 | if (PyErr_Occurred()) SWIG_fail; | |
24687 | } | |
24688 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24689 | return resultobj; | |
24690 | fail: | |
24691 | return NULL; | |
24692 | } | |
24693 | ||
24694 | ||
24695 | static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24696 | PyObject *resultobj; | |
24697 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24698 | PyObject *result; | |
24699 | PyObject * obj0 = 0 ; | |
24700 | char *kwnames[] = { | |
24701 | (char *) "self", NULL | |
24702 | }; | |
24703 | ||
24704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail; | |
24705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24707 | { | |
24708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24709 | result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1); | |
24710 | ||
24711 | wxPyEndAllowThreads(__tstate); | |
24712 | if (PyErr_Occurred()) SWIG_fail; | |
24713 | } | |
24714 | resultobj = result; | |
24715 | return resultobj; | |
24716 | fail: | |
24717 | return NULL; | |
24718 | } | |
24719 | ||
24720 | ||
24721 | static PyObject *_wrap_DataObjectSimple_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24722 | PyObject *resultobj; | |
24723 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24724 | PyObject *arg2 = (PyObject *) 0 ; | |
24725 | bool result; | |
24726 | PyObject * obj0 = 0 ; | |
24727 | PyObject * obj1 = 0 ; | |
24728 | char *kwnames[] = { | |
24729 | (char *) "self",(char *) "data", NULL | |
24730 | }; | |
24731 | ||
24732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail; | |
24733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24735 | arg2 = obj1; | |
24736 | { | |
24737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24738 | result = (bool)wxDataObjectSimple_SetData(arg1,arg2); | |
24739 | ||
24740 | wxPyEndAllowThreads(__tstate); | |
24741 | if (PyErr_Occurred()) SWIG_fail; | |
24742 | } | |
24743 | { | |
24744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24745 | } | |
24746 | return resultobj; | |
24747 | fail: | |
24748 | return NULL; | |
24749 | } | |
24750 | ||
24751 | ||
d14a1e28 RD |
24752 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { |
24753 | PyObject *obj; | |
24754 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24755 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
24756 | Py_INCREF(obj); | |
24757 | return Py_BuildValue((char *)""); | |
24758 | } | |
24759 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24760 | PyObject *resultobj; | |
24761 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24762 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24763 | wxPyDataObjectSimple *result; | |
24764 | PyObject * obj0 = 0 ; | |
24765 | char *kwnames[] = { | |
24766 | (char *) "format", NULL | |
24767 | }; | |
24768 | ||
24769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
24770 | if (obj0) { | |
15afbcd0 RD |
24771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24772 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24773 | SWIG_fail; | |
d14a1e28 | 24774 | if (arg1 == NULL) { |
15afbcd0 RD |
24775 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24776 | SWIG_fail; | |
d14a1e28 RD |
24777 | } |
24778 | } | |
24779 | { | |
24780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24781 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
24782 | ||
24783 | wxPyEndAllowThreads(__tstate); | |
24784 | if (PyErr_Occurred()) SWIG_fail; | |
24785 | } | |
15afbcd0 | 24786 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); |
d14a1e28 RD |
24787 | return resultobj; |
24788 | fail: | |
24789 | return NULL; | |
24790 | } | |
24791 | ||
24792 | ||
24793 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24794 | PyObject *resultobj; | |
24795 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
24796 | PyObject *arg2 = (PyObject *) 0 ; | |
24797 | PyObject *arg3 = (PyObject *) 0 ; | |
24798 | PyObject * obj0 = 0 ; | |
24799 | PyObject * obj1 = 0 ; | |
24800 | PyObject * obj2 = 0 ; | |
24801 | char *kwnames[] = { | |
24802 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24803 | }; | |
24804 | ||
24805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
24806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple, |
24807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24808 | arg2 = obj1; |
24809 | arg3 = obj2; | |
24810 | { | |
24811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24812 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24813 | ||
24814 | wxPyEndAllowThreads(__tstate); | |
24815 | if (PyErr_Occurred()) SWIG_fail; | |
24816 | } | |
24817 | Py_INCREF(Py_None); resultobj = Py_None; | |
24818 | return resultobj; | |
24819 | fail: | |
24820 | return NULL; | |
24821 | } | |
24822 | ||
24823 | ||
24824 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24825 | PyObject *obj; | |
24826 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24827 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
24828 | Py_INCREF(obj); | |
24829 | return Py_BuildValue((char *)""); | |
24830 | } | |
24831 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24832 | PyObject *resultobj; | |
24833 | wxDataObjectComposite *result; | |
24834 | char *kwnames[] = { | |
24835 | NULL | |
24836 | }; | |
24837 | ||
24838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
24839 | { | |
24840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24841 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
24842 | ||
24843 | wxPyEndAllowThreads(__tstate); | |
24844 | if (PyErr_Occurred()) SWIG_fail; | |
24845 | } | |
15afbcd0 | 24846 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); |
d14a1e28 RD |
24847 | return resultobj; |
24848 | fail: | |
24849 | return NULL; | |
24850 | } | |
24851 | ||
24852 | ||
24853 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24854 | PyObject *resultobj; | |
24855 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
24856 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
1a10c483 | 24857 | bool arg3 = (bool) False ; |
d14a1e28 RD |
24858 | PyObject * obj0 = 0 ; |
24859 | PyObject * obj1 = 0 ; | |
994141e6 | 24860 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24861 | char *kwnames[] = { |
24862 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
24863 | }; | |
24864 | ||
994141e6 | 24865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite, |
24867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24868 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple, | |
24869 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
994141e6 | 24870 | if (obj2) { |
1a10c483 | 24871 | arg3 = (bool) SWIG_AsBool(obj2); |
15afbcd0 | 24872 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 24873 | } |
d14a1e28 RD |
24874 | { |
24875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24876 | (arg1)->Add(arg2,arg3); | |
24877 | ||
24878 | wxPyEndAllowThreads(__tstate); | |
24879 | if (PyErr_Occurred()) SWIG_fail; | |
24880 | } | |
24881 | Py_INCREF(Py_None); resultobj = Py_None; | |
24882 | return resultobj; | |
24883 | fail: | |
24884 | return NULL; | |
24885 | } | |
24886 | ||
24887 | ||
24888 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
24889 | PyObject *obj; | |
24890 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24891 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
24892 | Py_INCREF(obj); | |
24893 | return Py_BuildValue((char *)""); | |
24894 | } | |
24895 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24896 | PyObject *resultobj; | |
24897 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24898 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24899 | wxTextDataObject *result; | |
e811c8ce | 24900 | bool temp1 = False ; |
d14a1e28 RD |
24901 | PyObject * obj0 = 0 ; |
24902 | char *kwnames[] = { | |
24903 | (char *) "text", NULL | |
24904 | }; | |
24905 | ||
24906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
24907 | if (obj0) { | |
24908 | { | |
24909 | arg1 = wxString_in_helper(obj0); | |
24910 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 24911 | temp1 = True; |
d14a1e28 RD |
24912 | } |
24913 | } | |
24914 | { | |
24915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24916 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
24917 | ||
24918 | wxPyEndAllowThreads(__tstate); | |
24919 | if (PyErr_Occurred()) SWIG_fail; | |
24920 | } | |
15afbcd0 | 24921 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); |
d14a1e28 RD |
24922 | { |
24923 | if (temp1) | |
24924 | delete arg1; | |
24925 | } | |
24926 | return resultobj; | |
24927 | fail: | |
24928 | { | |
24929 | if (temp1) | |
24930 | delete arg1; | |
24931 | } | |
24932 | return NULL; | |
24933 | } | |
24934 | ||
24935 | ||
24936 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24937 | PyObject *resultobj; | |
24938 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24939 | size_t result; | |
24940 | PyObject * obj0 = 0 ; | |
24941 | char *kwnames[] = { | |
24942 | (char *) "self", NULL | |
24943 | }; | |
24944 | ||
24945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
24947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24948 | { |
24949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24950 | result = (size_t)(arg1)->GetTextLength(); | |
24951 | ||
24952 | wxPyEndAllowThreads(__tstate); | |
24953 | if (PyErr_Occurred()) SWIG_fail; | |
24954 | } | |
15afbcd0 | 24955 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24956 | return resultobj; |
24957 | fail: | |
24958 | return NULL; | |
24959 | } | |
24960 | ||
24961 | ||
24962 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24963 | PyObject *resultobj; | |
24964 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24965 | wxString result; | |
24966 | PyObject * obj0 = 0 ; | |
24967 | char *kwnames[] = { | |
24968 | (char *) "self", NULL | |
24969 | }; | |
24970 | ||
24971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
24973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24974 | { |
24975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24976 | result = (arg1)->GetText(); | |
24977 | ||
24978 | wxPyEndAllowThreads(__tstate); | |
24979 | if (PyErr_Occurred()) SWIG_fail; | |
24980 | } | |
24981 | { | |
24982 | #if wxUSE_UNICODE | |
24983 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24984 | #else | |
24985 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24986 | #endif | |
24987 | } | |
24988 | return resultobj; | |
24989 | fail: | |
24990 | return NULL; | |
24991 | } | |
24992 | ||
24993 | ||
24994 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24995 | PyObject *resultobj; | |
24996 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24997 | wxString *arg2 = 0 ; | |
e811c8ce | 24998 | bool temp2 = False ; |
d14a1e28 RD |
24999 | PyObject * obj0 = 0 ; |
25000 | PyObject * obj1 = 0 ; | |
25001 | char *kwnames[] = { | |
25002 | (char *) "self",(char *) "text", NULL | |
25003 | }; | |
25004 | ||
25005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
25007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25008 | { |
25009 | arg2 = wxString_in_helper(obj1); | |
25010 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 25011 | temp2 = True; |
d14a1e28 RD |
25012 | } |
25013 | { | |
25014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25015 | (arg1)->SetText((wxString const &)*arg2); | |
25016 | ||
25017 | wxPyEndAllowThreads(__tstate); | |
25018 | if (PyErr_Occurred()) SWIG_fail; | |
25019 | } | |
25020 | Py_INCREF(Py_None); resultobj = Py_None; | |
25021 | { | |
25022 | if (temp2) | |
25023 | delete arg2; | |
25024 | } | |
25025 | return resultobj; | |
25026 | fail: | |
25027 | { | |
25028 | if (temp2) | |
25029 | delete arg2; | |
25030 | } | |
25031 | return NULL; | |
25032 | } | |
25033 | ||
25034 | ||
25035 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
25036 | PyObject *obj; | |
25037 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25038 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
25039 | Py_INCREF(obj); | |
25040 | return Py_BuildValue((char *)""); | |
25041 | } | |
25042 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25043 | PyObject *resultobj; | |
25044 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25045 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25046 | wxPyTextDataObject *result; | |
e811c8ce | 25047 | bool temp1 = False ; |
d14a1e28 RD |
25048 | PyObject * obj0 = 0 ; |
25049 | char *kwnames[] = { | |
25050 | (char *) "text", NULL | |
25051 | }; | |
25052 | ||
25053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
25054 | if (obj0) { | |
25055 | { | |
25056 | arg1 = wxString_in_helper(obj0); | |
25057 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 25058 | temp1 = True; |
d14a1e28 RD |
25059 | } |
25060 | } | |
25061 | { | |
25062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25063 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
25064 | ||
25065 | wxPyEndAllowThreads(__tstate); | |
25066 | if (PyErr_Occurred()) SWIG_fail; | |
25067 | } | |
15afbcd0 | 25068 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); |
d14a1e28 RD |
25069 | { |
25070 | if (temp1) | |
25071 | delete arg1; | |
25072 | } | |
25073 | return resultobj; | |
25074 | fail: | |
25075 | { | |
25076 | if (temp1) | |
25077 | delete arg1; | |
25078 | } | |
25079 | return NULL; | |
25080 | } | |
25081 | ||
25082 | ||
25083 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25084 | PyObject *resultobj; | |
25085 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
25086 | PyObject *arg2 = (PyObject *) 0 ; | |
25087 | PyObject *arg3 = (PyObject *) 0 ; | |
25088 | PyObject * obj0 = 0 ; | |
25089 | PyObject * obj1 = 0 ; | |
25090 | PyObject * obj2 = 0 ; | |
25091 | char *kwnames[] = { | |
25092 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25093 | }; | |
25094 | ||
25095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject, |
25097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25098 | arg2 = obj1; |
25099 | arg3 = obj2; | |
25100 | { | |
25101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25102 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25103 | ||
25104 | wxPyEndAllowThreads(__tstate); | |
25105 | if (PyErr_Occurred()) SWIG_fail; | |
25106 | } | |
25107 | Py_INCREF(Py_None); resultobj = Py_None; | |
25108 | return resultobj; | |
25109 | fail: | |
25110 | return NULL; | |
25111 | } | |
25112 | ||
25113 | ||
25114 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
25115 | PyObject *obj; | |
25116 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25117 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
25118 | Py_INCREF(obj); | |
25119 | return Py_BuildValue((char *)""); | |
25120 | } | |
25121 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25122 | PyObject *resultobj; | |
25123 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25124 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25125 | wxBitmapDataObject *result; | |
25126 | PyObject * obj0 = 0 ; | |
25127 | char *kwnames[] = { | |
25128 | (char *) "bitmap", NULL | |
25129 | }; | |
25130 | ||
25131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
25132 | if (obj0) { | |
15afbcd0 RD |
25133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
25134 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25135 | SWIG_fail; | |
d14a1e28 | 25136 | if (arg1 == NULL) { |
15afbcd0 RD |
25137 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25138 | SWIG_fail; | |
d14a1e28 RD |
25139 | } |
25140 | } | |
25141 | { | |
25142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25143 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
25144 | ||
25145 | wxPyEndAllowThreads(__tstate); | |
25146 | if (PyErr_Occurred()) SWIG_fail; | |
25147 | } | |
15afbcd0 | 25148 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); |
d14a1e28 RD |
25149 | return resultobj; |
25150 | fail: | |
25151 | return NULL; | |
25152 | } | |
25153 | ||
25154 | ||
25155 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25156 | PyObject *resultobj; | |
25157 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25158 | wxBitmap result; | |
25159 | PyObject * obj0 = 0 ; | |
25160 | char *kwnames[] = { | |
25161 | (char *) "self", NULL | |
25162 | }; | |
25163 | ||
25164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, |
25166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25167 | { |
25168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25169 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
25170 | ||
25171 | wxPyEndAllowThreads(__tstate); | |
25172 | if (PyErr_Occurred()) SWIG_fail; | |
25173 | } | |
25174 | { | |
25175 | wxBitmap * resultptr; | |
25176 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 25177 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
25178 | } |
25179 | return resultobj; | |
25180 | fail: | |
25181 | return NULL; | |
25182 | } | |
25183 | ||
25184 | ||
25185 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25186 | PyObject *resultobj; | |
25187 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25188 | wxBitmap *arg2 = 0 ; | |
25189 | PyObject * obj0 = 0 ; | |
25190 | PyObject * obj1 = 0 ; | |
25191 | char *kwnames[] = { | |
25192 | (char *) "self",(char *) "bitmap", NULL | |
25193 | }; | |
25194 | ||
25195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, |
25197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25198 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
25199 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25200 | SWIG_fail; | |
d14a1e28 | 25201 | if (arg2 == NULL) { |
15afbcd0 RD |
25202 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25203 | SWIG_fail; | |
d14a1e28 RD |
25204 | } |
25205 | { | |
25206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25207 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
25208 | ||
25209 | wxPyEndAllowThreads(__tstate); | |
25210 | if (PyErr_Occurred()) SWIG_fail; | |
25211 | } | |
25212 | Py_INCREF(Py_None); resultobj = Py_None; | |
25213 | return resultobj; | |
25214 | fail: | |
25215 | return NULL; | |
25216 | } | |
25217 | ||
25218 | ||
25219 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25220 | PyObject *obj; | |
25221 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25222 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
25223 | Py_INCREF(obj); | |
25224 | return Py_BuildValue((char *)""); | |
25225 | } | |
25226 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25227 | PyObject *resultobj; | |
25228 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25229 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25230 | wxPyBitmapDataObject *result; | |
25231 | PyObject * obj0 = 0 ; | |
25232 | char *kwnames[] = { | |
25233 | (char *) "bitmap", NULL | |
25234 | }; | |
25235 | ||
25236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
25237 | if (obj0) { | |
15afbcd0 RD |
25238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
25239 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25240 | SWIG_fail; | |
d14a1e28 | 25241 | if (arg1 == NULL) { |
15afbcd0 RD |
25242 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25243 | SWIG_fail; | |
d14a1e28 RD |
25244 | } |
25245 | } | |
25246 | { | |
25247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25248 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
25249 | ||
25250 | wxPyEndAllowThreads(__tstate); | |
25251 | if (PyErr_Occurred()) SWIG_fail; | |
25252 | } | |
15afbcd0 | 25253 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); |
d14a1e28 RD |
25254 | return resultobj; |
25255 | fail: | |
25256 | return NULL; | |
25257 | } | |
25258 | ||
25259 | ||
25260 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25261 | PyObject *resultobj; | |
25262 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
25263 | PyObject *arg2 = (PyObject *) 0 ; | |
25264 | PyObject *arg3 = (PyObject *) 0 ; | |
25265 | PyObject * obj0 = 0 ; | |
25266 | PyObject * obj1 = 0 ; | |
25267 | PyObject * obj2 = 0 ; | |
25268 | char *kwnames[] = { | |
25269 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25270 | }; | |
25271 | ||
25272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject, |
25274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25275 | arg2 = obj1; |
25276 | arg3 = obj2; | |
25277 | { | |
25278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25279 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25280 | ||
25281 | wxPyEndAllowThreads(__tstate); | |
25282 | if (PyErr_Occurred()) SWIG_fail; | |
25283 | } | |
25284 | Py_INCREF(Py_None); resultobj = Py_None; | |
25285 | return resultobj; | |
25286 | fail: | |
25287 | return NULL; | |
25288 | } | |
25289 | ||
25290 | ||
25291 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25292 | PyObject *obj; | |
25293 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25294 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
25295 | Py_INCREF(obj); | |
25296 | return Py_BuildValue((char *)""); | |
25297 | } | |
25298 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25299 | PyObject *resultobj; | |
25300 | wxFileDataObject *result; | |
25301 | char *kwnames[] = { | |
25302 | NULL | |
25303 | }; | |
25304 | ||
25305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
25306 | { | |
25307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25308 | result = (wxFileDataObject *)new wxFileDataObject(); | |
25309 | ||
25310 | wxPyEndAllowThreads(__tstate); | |
25311 | if (PyErr_Occurred()) SWIG_fail; | |
25312 | } | |
15afbcd0 | 25313 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); |
d14a1e28 RD |
25314 | return resultobj; |
25315 | fail: | |
25316 | return NULL; | |
25317 | } | |
25318 | ||
25319 | ||
25320 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25321 | PyObject *resultobj; | |
25322 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25323 | wxArrayString *result; | |
25324 | PyObject * obj0 = 0 ; | |
25325 | char *kwnames[] = { | |
25326 | (char *) "self", NULL | |
25327 | }; | |
25328 | ||
25329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, |
25331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25332 | { |
25333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25334 | { | |
25335 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
25336 | result = (wxArrayString *) &_result_ref; | |
25337 | } | |
25338 | ||
25339 | wxPyEndAllowThreads(__tstate); | |
25340 | if (PyErr_Occurred()) SWIG_fail; | |
25341 | } | |
25342 | { | |
25343 | resultobj = wxArrayString2PyList_helper(*result); | |
25344 | } | |
25345 | return resultobj; | |
25346 | fail: | |
25347 | return NULL; | |
25348 | } | |
25349 | ||
25350 | ||
15afbcd0 RD |
25351 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
25352 | PyObject *resultobj; | |
25353 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25354 | wxString *arg2 = 0 ; | |
25355 | bool temp2 = False ; | |
25356 | PyObject * obj0 = 0 ; | |
25357 | PyObject * obj1 = 0 ; | |
25358 | char *kwnames[] = { | |
25359 | (char *) "self",(char *) "filename", NULL | |
25360 | }; | |
25361 | ||
25362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
25363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25365 | { | |
25366 | arg2 = wxString_in_helper(obj1); | |
25367 | if (arg2 == NULL) SWIG_fail; | |
25368 | temp2 = True; | |
25369 | } | |
25370 | { | |
25371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25372 | (arg1)->AddFile((wxString const &)*arg2); | |
25373 | ||
25374 | wxPyEndAllowThreads(__tstate); | |
25375 | if (PyErr_Occurred()) SWIG_fail; | |
25376 | } | |
25377 | Py_INCREF(Py_None); resultobj = Py_None; | |
25378 | { | |
25379 | if (temp2) | |
25380 | delete arg2; | |
25381 | } | |
25382 | return resultobj; | |
25383 | fail: | |
25384 | { | |
25385 | if (temp2) | |
25386 | delete arg2; | |
25387 | } | |
25388 | return NULL; | |
25389 | } | |
25390 | ||
25391 | ||
d14a1e28 RD |
25392 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { |
25393 | PyObject *obj; | |
25394 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25395 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
25396 | Py_INCREF(obj); | |
25397 | return Py_BuildValue((char *)""); | |
25398 | } | |
25399 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25400 | PyObject *resultobj; | |
25401 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25402 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25403 | wxCustomDataObject *result; | |
25404 | PyObject * obj0 = 0 ; | |
25405 | char *kwnames[] = { | |
25406 | (char *) "format", NULL | |
25407 | }; | |
25408 | ||
25409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
25410 | if (obj0) { | |
15afbcd0 RD |
25411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
25412 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25413 | SWIG_fail; | |
d14a1e28 | 25414 | if (arg1 == NULL) { |
15afbcd0 RD |
25415 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25416 | SWIG_fail; | |
d14a1e28 RD |
25417 | } |
25418 | } | |
25419 | { | |
25420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25421 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
25422 | ||
25423 | wxPyEndAllowThreads(__tstate); | |
25424 | if (PyErr_Occurred()) SWIG_fail; | |
25425 | } | |
15afbcd0 | 25426 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); |
d14a1e28 RD |
25427 | return resultobj; |
25428 | fail: | |
25429 | return NULL; | |
25430 | } | |
25431 | ||
25432 | ||
d14a1e28 RD |
25433 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
25434 | PyObject *resultobj; | |
25435 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25436 | PyObject *arg2 = (PyObject *) 0 ; | |
25437 | bool result; | |
25438 | PyObject * obj0 = 0 ; | |
25439 | PyObject * obj1 = 0 ; | |
25440 | char *kwnames[] = { | |
25441 | (char *) "self",(char *) "data", NULL | |
25442 | }; | |
25443 | ||
25444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25447 | arg2 = obj1; |
25448 | { | |
25449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25450 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
25451 | ||
25452 | wxPyEndAllowThreads(__tstate); | |
25453 | if (PyErr_Occurred()) SWIG_fail; | |
25454 | } | |
4f89f6a3 RD |
25455 | { |
25456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25457 | } | |
d14a1e28 RD |
25458 | return resultobj; |
25459 | fail: | |
25460 | return NULL; | |
25461 | } | |
25462 | ||
25463 | ||
25464 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25465 | PyObject *resultobj; | |
25466 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25467 | size_t result; | |
25468 | PyObject * obj0 = 0 ; | |
25469 | char *kwnames[] = { | |
25470 | (char *) "self", NULL | |
25471 | }; | |
25472 | ||
25473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25476 | { |
25477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25478 | result = (size_t)(arg1)->GetSize(); | |
25479 | ||
25480 | wxPyEndAllowThreads(__tstate); | |
25481 | if (PyErr_Occurred()) SWIG_fail; | |
25482 | } | |
15afbcd0 | 25483 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
25484 | return resultobj; |
25485 | fail: | |
25486 | return NULL; | |
25487 | } | |
25488 | ||
25489 | ||
25490 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25491 | PyObject *resultobj; | |
25492 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25493 | PyObject *result; | |
25494 | PyObject * obj0 = 0 ; | |
25495 | char *kwnames[] = { | |
25496 | (char *) "self", NULL | |
25497 | }; | |
25498 | ||
25499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25502 | { |
25503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25504 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
25505 | ||
25506 | wxPyEndAllowThreads(__tstate); | |
25507 | if (PyErr_Occurred()) SWIG_fail; | |
25508 | } | |
25509 | resultobj = result; | |
25510 | return resultobj; | |
25511 | fail: | |
25512 | return NULL; | |
25513 | } | |
25514 | ||
25515 | ||
25516 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
25517 | PyObject *obj; | |
25518 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25519 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
25520 | Py_INCREF(obj); | |
25521 | return Py_BuildValue((char *)""); | |
25522 | } | |
25523 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25524 | PyObject *resultobj; | |
25525 | wxURLDataObject *result; | |
25526 | char *kwnames[] = { | |
25527 | NULL | |
25528 | }; | |
25529 | ||
25530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
25531 | { | |
25532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25533 | result = (wxURLDataObject *)new wxURLDataObject(); | |
25534 | ||
25535 | wxPyEndAllowThreads(__tstate); | |
25536 | if (PyErr_Occurred()) SWIG_fail; | |
25537 | } | |
15afbcd0 | 25538 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); |
d14a1e28 RD |
25539 | return resultobj; |
25540 | fail: | |
25541 | return NULL; | |
25542 | } | |
25543 | ||
25544 | ||
25545 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25546 | PyObject *resultobj; | |
25547 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25548 | wxString result; | |
25549 | PyObject * obj0 = 0 ; | |
25550 | char *kwnames[] = { | |
25551 | (char *) "self", NULL | |
25552 | }; | |
25553 | ||
25554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, |
25556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25557 | { |
25558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25559 | result = (arg1)->GetURL(); | |
25560 | ||
25561 | wxPyEndAllowThreads(__tstate); | |
25562 | if (PyErr_Occurred()) SWIG_fail; | |
25563 | } | |
25564 | { | |
25565 | #if wxUSE_UNICODE | |
25566 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25567 | #else | |
25568 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25569 | #endif | |
25570 | } | |
25571 | return resultobj; | |
25572 | fail: | |
25573 | return NULL; | |
25574 | } | |
25575 | ||
25576 | ||
25577 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25578 | PyObject *resultobj; | |
25579 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25580 | wxString *arg2 = 0 ; | |
e811c8ce | 25581 | bool temp2 = False ; |
d14a1e28 RD |
25582 | PyObject * obj0 = 0 ; |
25583 | PyObject * obj1 = 0 ; | |
25584 | char *kwnames[] = { | |
25585 | (char *) "self",(char *) "url", NULL | |
25586 | }; | |
25587 | ||
25588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, |
25590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25591 | { |
25592 | arg2 = wxString_in_helper(obj1); | |
25593 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 25594 | temp2 = True; |
d14a1e28 RD |
25595 | } |
25596 | { | |
25597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25598 | (arg1)->SetURL((wxString const &)*arg2); | |
25599 | ||
25600 | wxPyEndAllowThreads(__tstate); | |
25601 | if (PyErr_Occurred()) SWIG_fail; | |
25602 | } | |
25603 | Py_INCREF(Py_None); resultobj = Py_None; | |
25604 | { | |
25605 | if (temp2) | |
25606 | delete arg2; | |
25607 | } | |
25608 | return resultobj; | |
25609 | fail: | |
25610 | { | |
25611 | if (temp2) | |
25612 | delete arg2; | |
25613 | } | |
25614 | return NULL; | |
25615 | } | |
25616 | ||
25617 | ||
25618 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
25619 | PyObject *obj; | |
25620 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25621 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
25622 | Py_INCREF(obj); | |
25623 | return Py_BuildValue((char *)""); | |
25624 | } | |
25625 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25626 | PyObject *resultobj; | |
25627 | wxMetafileDataObject *result; | |
25628 | char *kwnames[] = { | |
25629 | NULL | |
25630 | }; | |
25631 | ||
25632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
25633 | { | |
25634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25635 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
25636 | ||
25637 | wxPyEndAllowThreads(__tstate); | |
25638 | if (PyErr_Occurred()) SWIG_fail; | |
25639 | } | |
15afbcd0 | 25640 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); |
d14a1e28 RD |
25641 | return resultobj; |
25642 | fail: | |
25643 | return NULL; | |
25644 | } | |
25645 | ||
25646 | ||
25647 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { | |
25648 | PyObject *obj; | |
25649 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25650 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
25651 | Py_INCREF(obj); | |
25652 | return Py_BuildValue((char *)""); | |
25653 | } | |
25654 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25655 | PyObject *resultobj; | |
25656 | int arg1 ; | |
25657 | bool result; | |
994141e6 | 25658 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
25659 | char *kwnames[] = { |
25660 | (char *) "res", NULL | |
25661 | }; | |
25662 | ||
994141e6 | 25663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
25664 | arg1 = (wxDragResult) SWIG_AsInt(obj0); |
25665 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25666 | { |
25667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25668 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
25669 | ||
25670 | wxPyEndAllowThreads(__tstate); | |
25671 | if (PyErr_Occurred()) SWIG_fail; | |
25672 | } | |
4f89f6a3 RD |
25673 | { |
25674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25675 | } | |
d14a1e28 RD |
25676 | return resultobj; |
25677 | fail: | |
25678 | return NULL; | |
25679 | } | |
25680 | ||
25681 | ||
25682 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25683 | PyObject *resultobj; | |
d1e20054 | 25684 | wxWindow *arg1 = (wxWindow *) 0 ; |
d14a1e28 RD |
25685 | wxIcon const &arg2_defvalue = wxNullIcon ; |
25686 | wxIcon *arg2 = (wxIcon *) &arg2_defvalue ; | |
25687 | wxIcon const &arg3_defvalue = wxNullIcon ; | |
25688 | wxIcon *arg3 = (wxIcon *) &arg3_defvalue ; | |
25689 | wxIcon const &arg4_defvalue = wxNullIcon ; | |
25690 | wxIcon *arg4 = (wxIcon *) &arg4_defvalue ; | |
25691 | wxPyDropSource *result; | |
25692 | PyObject * obj0 = 0 ; | |
25693 | PyObject * obj1 = 0 ; | |
25694 | PyObject * obj2 = 0 ; | |
25695 | PyObject * obj3 = 0 ; | |
25696 | char *kwnames[] = { | |
25697 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
25698 | }; | |
25699 | ||
d1e20054 | 25700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
25701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 25703 | if (obj1) { |
15afbcd0 RD |
25704 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, |
25705 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25706 | SWIG_fail; | |
d14a1e28 | 25707 | if (arg2 == NULL) { |
15afbcd0 RD |
25708 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25709 | SWIG_fail; | |
d14a1e28 RD |
25710 | } |
25711 | } | |
25712 | if (obj2) { | |
15afbcd0 RD |
25713 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIcon, |
25714 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25715 | SWIG_fail; | |
d14a1e28 | 25716 | if (arg3 == NULL) { |
15afbcd0 RD |
25717 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25718 | SWIG_fail; | |
d14a1e28 RD |
25719 | } |
25720 | } | |
25721 | if (obj3) { | |
15afbcd0 RD |
25722 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxIcon, |
25723 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25724 | SWIG_fail; | |
d14a1e28 | 25725 | if (arg4 == NULL) { |
15afbcd0 RD |
25726 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25727 | SWIG_fail; | |
d14a1e28 RD |
25728 | } |
25729 | } | |
25730 | { | |
25731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25732 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4); | |
25733 | ||
25734 | wxPyEndAllowThreads(__tstate); | |
25735 | if (PyErr_Occurred()) SWIG_fail; | |
25736 | } | |
15afbcd0 | 25737 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); |
d14a1e28 RD |
25738 | return resultobj; |
25739 | fail: | |
25740 | return NULL; | |
25741 | } | |
25742 | ||
25743 | ||
25744 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25745 | PyObject *resultobj; | |
25746 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25747 | PyObject *arg2 = (PyObject *) 0 ; | |
25748 | PyObject *arg3 = (PyObject *) 0 ; | |
25749 | int arg4 ; | |
25750 | PyObject * obj0 = 0 ; | |
25751 | PyObject * obj1 = 0 ; | |
25752 | PyObject * obj2 = 0 ; | |
994141e6 | 25753 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
25754 | char *kwnames[] = { |
25755 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
25756 | }; | |
25757 | ||
994141e6 | 25758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
25759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25761 | arg2 = obj1; |
25762 | arg3 = obj2; | |
15afbcd0 RD |
25763 | arg4 = (int) SWIG_AsInt(obj3); |
25764 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25765 | { |
25766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25767 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
25768 | ||
25769 | wxPyEndAllowThreads(__tstate); | |
25770 | if (PyErr_Occurred()) SWIG_fail; | |
25771 | } | |
25772 | Py_INCREF(Py_None); resultobj = Py_None; | |
25773 | return resultobj; | |
25774 | fail: | |
25775 | return NULL; | |
25776 | } | |
25777 | ||
25778 | ||
25779 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25780 | PyObject *resultobj; | |
25781 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25782 | PyObject * obj0 = 0 ; | |
25783 | char *kwnames[] = { | |
25784 | (char *) "self", NULL | |
25785 | }; | |
25786 | ||
25787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25790 | { |
25791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25792 | delete arg1; | |
25793 | ||
25794 | wxPyEndAllowThreads(__tstate); | |
25795 | if (PyErr_Occurred()) SWIG_fail; | |
25796 | } | |
25797 | Py_INCREF(Py_None); resultobj = Py_None; | |
25798 | return resultobj; | |
25799 | fail: | |
25800 | return NULL; | |
25801 | } | |
25802 | ||
25803 | ||
25804 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25805 | PyObject *resultobj; | |
25806 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25807 | wxDataObject *arg2 = 0 ; | |
25808 | PyObject * obj0 = 0 ; | |
25809 | PyObject * obj1 = 0 ; | |
25810 | char *kwnames[] = { | |
25811 | (char *) "self",(char *) "data", NULL | |
25812 | }; | |
25813 | ||
25814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25817 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
25818 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25819 | SWIG_fail; | |
d14a1e28 | 25820 | if (arg2 == NULL) { |
15afbcd0 RD |
25821 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25822 | SWIG_fail; | |
d14a1e28 RD |
25823 | } |
25824 | { | |
25825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25826 | (arg1)->SetData(*arg2); | |
25827 | ||
25828 | wxPyEndAllowThreads(__tstate); | |
25829 | if (PyErr_Occurred()) SWIG_fail; | |
25830 | } | |
25831 | Py_INCREF(Py_None); resultobj = Py_None; | |
25832 | return resultobj; | |
25833 | fail: | |
25834 | return NULL; | |
25835 | } | |
25836 | ||
25837 | ||
25838 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25839 | PyObject *resultobj; | |
25840 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25841 | wxDataObject *result; | |
25842 | PyObject * obj0 = 0 ; | |
25843 | char *kwnames[] = { | |
25844 | (char *) "self", NULL | |
25845 | }; | |
25846 | ||
25847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25850 | { |
25851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25852 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
25853 | ||
25854 | wxPyEndAllowThreads(__tstate); | |
25855 | if (PyErr_Occurred()) SWIG_fail; | |
25856 | } | |
15afbcd0 | 25857 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); |
d14a1e28 RD |
25858 | return resultobj; |
25859 | fail: | |
25860 | return NULL; | |
25861 | } | |
25862 | ||
25863 | ||
25864 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25865 | PyObject *resultobj; | |
25866 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25867 | int arg2 ; | |
25868 | wxCursor *arg3 = 0 ; | |
25869 | PyObject * obj0 = 0 ; | |
994141e6 | 25870 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25871 | PyObject * obj2 = 0 ; |
25872 | char *kwnames[] = { | |
25873 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
25874 | }; | |
25875 | ||
994141e6 | 25876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
25877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25879 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
25880 | if (PyErr_Occurred()) SWIG_fail; | |
25881 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
25882 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25883 | SWIG_fail; | |
d14a1e28 | 25884 | if (arg3 == NULL) { |
15afbcd0 RD |
25885 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25886 | SWIG_fail; | |
d14a1e28 RD |
25887 | } |
25888 | { | |
25889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25890 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
25891 | ||
25892 | wxPyEndAllowThreads(__tstate); | |
25893 | if (PyErr_Occurred()) SWIG_fail; | |
25894 | } | |
25895 | Py_INCREF(Py_None); resultobj = Py_None; | |
25896 | return resultobj; | |
25897 | fail: | |
25898 | return NULL; | |
25899 | } | |
25900 | ||
25901 | ||
25902 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25903 | PyObject *resultobj; | |
25904 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25905 | int arg2 = (int) wxDrag_CopyOnly ; | |
25906 | int result; | |
25907 | PyObject * obj0 = 0 ; | |
994141e6 | 25908 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25909 | char *kwnames[] = { |
25910 | (char *) "self",(char *) "flags", NULL | |
25911 | }; | |
25912 | ||
994141e6 | 25913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
25914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 25916 | if (obj1) { |
15afbcd0 RD |
25917 | arg2 = (int) SWIG_AsInt(obj1); |
25918 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25919 | } |
d14a1e28 RD |
25920 | { |
25921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25922 | result = (int)(arg1)->DoDragDrop(arg2); | |
25923 | ||
25924 | wxPyEndAllowThreads(__tstate); | |
25925 | if (PyErr_Occurred()) SWIG_fail; | |
25926 | } | |
15afbcd0 | 25927 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25928 | return resultobj; |
25929 | fail: | |
25930 | return NULL; | |
25931 | } | |
25932 | ||
25933 | ||
25934 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25935 | PyObject *resultobj; | |
25936 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25937 | int arg2 ; | |
25938 | bool result; | |
25939 | PyObject * obj0 = 0 ; | |
994141e6 | 25940 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25941 | char *kwnames[] = { |
25942 | (char *) "self",(char *) "effect", NULL | |
25943 | }; | |
25944 | ||
994141e6 | 25945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
25946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25948 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
25949 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25950 | { |
25951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25952 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
25953 | ||
25954 | wxPyEndAllowThreads(__tstate); | |
25955 | if (PyErr_Occurred()) SWIG_fail; | |
25956 | } | |
4f89f6a3 RD |
25957 | { |
25958 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25959 | } | |
d14a1e28 RD |
25960 | return resultobj; |
25961 | fail: | |
25962 | return NULL; | |
25963 | } | |
25964 | ||
25965 | ||
25966 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
25967 | PyObject *obj; | |
25968 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25969 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
25970 | Py_INCREF(obj); | |
25971 | return Py_BuildValue((char *)""); | |
25972 | } | |
15afbcd0 | 25973 | static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25974 | PyObject *resultobj; |
25975 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
25976 | wxPyDropTarget *result; | |
25977 | PyObject * obj0 = 0 ; | |
25978 | char *kwnames[] = { | |
25979 | (char *) "dataObject", NULL | |
25980 | }; | |
25981 | ||
15afbcd0 | 25982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; |
d14a1e28 | 25983 | if (obj0) { |
15afbcd0 RD |
25984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
25985 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
25986 | } |
25987 | { | |
25988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25989 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
25990 | ||
25991 | wxPyEndAllowThreads(__tstate); | |
25992 | if (PyErr_Occurred()) SWIG_fail; | |
25993 | } | |
15afbcd0 | 25994 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); |
d14a1e28 RD |
25995 | return resultobj; |
25996 | fail: | |
25997 | return NULL; | |
25998 | } | |
25999 | ||
26000 | ||
26001 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26002 | PyObject *resultobj; | |
26003 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26004 | PyObject *arg2 = (PyObject *) 0 ; | |
26005 | PyObject *arg3 = (PyObject *) 0 ; | |
26006 | PyObject * obj0 = 0 ; | |
26007 | PyObject * obj1 = 0 ; | |
26008 | PyObject * obj2 = 0 ; | |
26009 | char *kwnames[] = { | |
26010 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26011 | }; | |
26012 | ||
26013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26016 | arg2 = obj1; |
26017 | arg3 = obj2; | |
26018 | { | |
26019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26020 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26021 | ||
26022 | wxPyEndAllowThreads(__tstate); | |
26023 | if (PyErr_Occurred()) SWIG_fail; | |
26024 | } | |
26025 | Py_INCREF(Py_None); resultobj = Py_None; | |
26026 | return resultobj; | |
26027 | fail: | |
26028 | return NULL; | |
26029 | } | |
26030 | ||
26031 | ||
26032 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26033 | PyObject *resultobj; | |
26034 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26035 | PyObject * obj0 = 0 ; | |
26036 | char *kwnames[] = { | |
26037 | (char *) "self", NULL | |
26038 | }; | |
26039 | ||
26040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26043 | { |
26044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26045 | delete arg1; | |
26046 | ||
26047 | wxPyEndAllowThreads(__tstate); | |
26048 | if (PyErr_Occurred()) SWIG_fail; | |
26049 | } | |
26050 | Py_INCREF(Py_None); resultobj = Py_None; | |
26051 | return resultobj; | |
26052 | fail: | |
26053 | return NULL; | |
26054 | } | |
26055 | ||
26056 | ||
26057 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26058 | PyObject *resultobj; | |
26059 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26060 | wxDataObject *result; | |
26061 | PyObject * obj0 = 0 ; | |
26062 | char *kwnames[] = { | |
26063 | (char *) "self", NULL | |
26064 | }; | |
26065 | ||
26066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26069 | { |
26070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26071 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26072 | ||
26073 | wxPyEndAllowThreads(__tstate); | |
26074 | if (PyErr_Occurred()) SWIG_fail; | |
26075 | } | |
15afbcd0 | 26076 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); |
d14a1e28 RD |
26077 | return resultobj; |
26078 | fail: | |
26079 | return NULL; | |
26080 | } | |
26081 | ||
26082 | ||
26083 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26084 | PyObject *resultobj; | |
26085 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26086 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26087 | PyObject * obj0 = 0 ; | |
26088 | PyObject * obj1 = 0 ; | |
26089 | char *kwnames[] = { | |
26090 | (char *) "self",(char *) "dataObject", NULL | |
26091 | }; | |
26092 | ||
26093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26096 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26097 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26098 | { |
26099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26100 | (arg1)->SetDataObject(arg2); | |
26101 | ||
26102 | wxPyEndAllowThreads(__tstate); | |
26103 | if (PyErr_Occurred()) SWIG_fail; | |
26104 | } | |
26105 | Py_INCREF(Py_None); resultobj = Py_None; | |
26106 | return resultobj; | |
26107 | fail: | |
26108 | return NULL; | |
26109 | } | |
26110 | ||
26111 | ||
26112 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26113 | PyObject *resultobj; | |
26114 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
26115 | int arg2 ; |
26116 | int arg3 ; | |
d14a1e28 RD |
26117 | int arg4 ; |
26118 | int result; | |
26119 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26120 | PyObject * obj1 = 0 ; |
26121 | PyObject * obj2 = 0 ; | |
26122 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26123 | char *kwnames[] = { |
26124 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26125 | }; | |
26126 | ||
994141e6 | 26127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26130 | arg2 = (int) SWIG_AsInt(obj1); | |
26131 | if (PyErr_Occurred()) SWIG_fail; | |
26132 | arg3 = (int) SWIG_AsInt(obj2); | |
26133 | if (PyErr_Occurred()) SWIG_fail; | |
26134 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26135 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26136 | { |
26137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26138 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26139 | ||
26140 | wxPyEndAllowThreads(__tstate); | |
26141 | if (PyErr_Occurred()) SWIG_fail; | |
26142 | } | |
15afbcd0 | 26143 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26144 | return resultobj; |
26145 | fail: | |
26146 | return NULL; | |
26147 | } | |
26148 | ||
26149 | ||
26150 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26151 | PyObject *resultobj; | |
26152 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
26153 | int arg2 ; |
26154 | int arg3 ; | |
d14a1e28 RD |
26155 | int arg4 ; |
26156 | int result; | |
26157 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26158 | PyObject * obj1 = 0 ; |
26159 | PyObject * obj2 = 0 ; | |
26160 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26161 | char *kwnames[] = { |
26162 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26163 | }; | |
26164 | ||
994141e6 | 26165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26168 | arg2 = (int) SWIG_AsInt(obj1); | |
26169 | if (PyErr_Occurred()) SWIG_fail; | |
26170 | arg3 = (int) SWIG_AsInt(obj2); | |
26171 | if (PyErr_Occurred()) SWIG_fail; | |
26172 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26173 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26174 | { |
26175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26176 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26177 | ||
26178 | wxPyEndAllowThreads(__tstate); | |
26179 | if (PyErr_Occurred()) SWIG_fail; | |
26180 | } | |
15afbcd0 | 26181 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26182 | return resultobj; |
26183 | fail: | |
26184 | return NULL; | |
26185 | } | |
26186 | ||
26187 | ||
26188 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26189 | PyObject *resultobj; | |
26190 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26191 | PyObject * obj0 = 0 ; | |
26192 | char *kwnames[] = { | |
26193 | (char *) "self", NULL | |
26194 | }; | |
26195 | ||
26196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26199 | { |
26200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26201 | (arg1)->base_OnLeave(); | |
26202 | ||
26203 | wxPyEndAllowThreads(__tstate); | |
26204 | if (PyErr_Occurred()) SWIG_fail; | |
26205 | } | |
26206 | Py_INCREF(Py_None); resultobj = Py_None; | |
26207 | return resultobj; | |
26208 | fail: | |
26209 | return NULL; | |
26210 | } | |
26211 | ||
26212 | ||
26213 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26214 | PyObject *resultobj; | |
26215 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
26216 | int arg2 ; |
26217 | int arg3 ; | |
d14a1e28 RD |
26218 | bool result; |
26219 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26220 | PyObject * obj1 = 0 ; |
26221 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26222 | char *kwnames[] = { |
26223 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26224 | }; | |
26225 | ||
994141e6 | 26226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26229 | arg2 = (int) SWIG_AsInt(obj1); | |
26230 | if (PyErr_Occurred()) SWIG_fail; | |
26231 | arg3 = (int) SWIG_AsInt(obj2); | |
26232 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26233 | { |
26234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26235 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26236 | ||
26237 | wxPyEndAllowThreads(__tstate); | |
26238 | if (PyErr_Occurred()) SWIG_fail; | |
26239 | } | |
4f89f6a3 RD |
26240 | { |
26241 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26242 | } | |
d14a1e28 RD |
26243 | return resultobj; |
26244 | fail: | |
26245 | return NULL; | |
26246 | } | |
26247 | ||
26248 | ||
26249 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26250 | PyObject *resultobj; | |
26251 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26252 | bool result; | |
26253 | PyObject * obj0 = 0 ; | |
26254 | char *kwnames[] = { | |
26255 | (char *) "self", NULL | |
26256 | }; | |
26257 | ||
26258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26261 | { |
26262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26263 | result = (bool)(arg1)->GetData(); | |
26264 | ||
26265 | wxPyEndAllowThreads(__tstate); | |
26266 | if (PyErr_Occurred()) SWIG_fail; | |
26267 | } | |
4f89f6a3 RD |
26268 | { |
26269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26270 | } | |
d14a1e28 RD |
26271 | return resultobj; |
26272 | fail: | |
26273 | return NULL; | |
26274 | } | |
26275 | ||
26276 | ||
26277 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
26278 | PyObject *obj; | |
26279 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26280 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
26281 | Py_INCREF(obj); | |
26282 | return Py_BuildValue((char *)""); | |
26283 | } | |
26284 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26285 | PyObject *resultobj; | |
26286 | wxPyTextDropTarget *result; | |
26287 | char *kwnames[] = { | |
26288 | NULL | |
26289 | }; | |
26290 | ||
26291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
26292 | { | |
26293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26294 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
26295 | ||
26296 | wxPyEndAllowThreads(__tstate); | |
26297 | if (PyErr_Occurred()) SWIG_fail; | |
26298 | } | |
15afbcd0 | 26299 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); |
d14a1e28 RD |
26300 | return resultobj; |
26301 | fail: | |
26302 | return NULL; | |
26303 | } | |
26304 | ||
26305 | ||
26306 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26307 | PyObject *resultobj; | |
26308 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26309 | PyObject *arg2 = (PyObject *) 0 ; | |
26310 | PyObject *arg3 = (PyObject *) 0 ; | |
26311 | PyObject * obj0 = 0 ; | |
26312 | PyObject * obj1 = 0 ; | |
26313 | PyObject * obj2 = 0 ; | |
26314 | char *kwnames[] = { | |
26315 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26316 | }; | |
26317 | ||
26318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26321 | arg2 = obj1; |
26322 | arg3 = obj2; | |
26323 | { | |
26324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26325 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26326 | ||
26327 | wxPyEndAllowThreads(__tstate); | |
26328 | if (PyErr_Occurred()) SWIG_fail; | |
26329 | } | |
26330 | Py_INCREF(Py_None); resultobj = Py_None; | |
26331 | return resultobj; | |
26332 | fail: | |
26333 | return NULL; | |
26334 | } | |
26335 | ||
26336 | ||
26337 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26338 | PyObject *resultobj; | |
26339 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26340 | int arg2 ; |
26341 | int arg3 ; | |
d14a1e28 RD |
26342 | int arg4 ; |
26343 | int result; | |
26344 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26345 | PyObject * obj1 = 0 ; |
26346 | PyObject * obj2 = 0 ; | |
26347 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26348 | char *kwnames[] = { |
26349 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26350 | }; | |
26351 | ||
994141e6 | 26352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26355 | arg2 = (int) SWIG_AsInt(obj1); | |
26356 | if (PyErr_Occurred()) SWIG_fail; | |
26357 | arg3 = (int) SWIG_AsInt(obj2); | |
26358 | if (PyErr_Occurred()) SWIG_fail; | |
26359 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26360 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26361 | { |
26362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26363 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26364 | ||
26365 | wxPyEndAllowThreads(__tstate); | |
26366 | if (PyErr_Occurred()) SWIG_fail; | |
26367 | } | |
15afbcd0 | 26368 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26369 | return resultobj; |
26370 | fail: | |
26371 | return NULL; | |
26372 | } | |
26373 | ||
26374 | ||
26375 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26376 | PyObject *resultobj; | |
26377 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26378 | int arg2 ; |
26379 | int arg3 ; | |
d14a1e28 RD |
26380 | int arg4 ; |
26381 | int result; | |
26382 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26383 | PyObject * obj1 = 0 ; |
26384 | PyObject * obj2 = 0 ; | |
26385 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26386 | char *kwnames[] = { |
26387 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26388 | }; | |
26389 | ||
994141e6 | 26390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26393 | arg2 = (int) SWIG_AsInt(obj1); | |
26394 | if (PyErr_Occurred()) SWIG_fail; | |
26395 | arg3 = (int) SWIG_AsInt(obj2); | |
26396 | if (PyErr_Occurred()) SWIG_fail; | |
26397 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26398 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26399 | { |
26400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26401 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26402 | ||
26403 | wxPyEndAllowThreads(__tstate); | |
26404 | if (PyErr_Occurred()) SWIG_fail; | |
26405 | } | |
15afbcd0 | 26406 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26407 | return resultobj; |
26408 | fail: | |
26409 | return NULL; | |
26410 | } | |
26411 | ||
26412 | ||
26413 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26414 | PyObject *resultobj; | |
26415 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26416 | PyObject * obj0 = 0 ; | |
26417 | char *kwnames[] = { | |
26418 | (char *) "self", NULL | |
26419 | }; | |
26420 | ||
26421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26424 | { |
26425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26426 | (arg1)->base_OnLeave(); | |
26427 | ||
26428 | wxPyEndAllowThreads(__tstate); | |
26429 | if (PyErr_Occurred()) SWIG_fail; | |
26430 | } | |
26431 | Py_INCREF(Py_None); resultobj = Py_None; | |
26432 | return resultobj; | |
26433 | fail: | |
26434 | return NULL; | |
26435 | } | |
26436 | ||
26437 | ||
26438 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26439 | PyObject *resultobj; | |
26440 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26441 | int arg2 ; |
26442 | int arg3 ; | |
d14a1e28 RD |
26443 | bool result; |
26444 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26445 | PyObject * obj1 = 0 ; |
26446 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26447 | char *kwnames[] = { |
26448 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26449 | }; | |
26450 | ||
994141e6 | 26451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26454 | arg2 = (int) SWIG_AsInt(obj1); | |
26455 | if (PyErr_Occurred()) SWIG_fail; | |
26456 | arg3 = (int) SWIG_AsInt(obj2); | |
26457 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26458 | { |
26459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26460 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26461 | ||
26462 | wxPyEndAllowThreads(__tstate); | |
26463 | if (PyErr_Occurred()) SWIG_fail; | |
26464 | } | |
4f89f6a3 RD |
26465 | { |
26466 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26467 | } | |
d14a1e28 RD |
26468 | return resultobj; |
26469 | fail: | |
26470 | return NULL; | |
26471 | } | |
26472 | ||
26473 | ||
26474 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26475 | PyObject *resultobj; | |
26476 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26477 | int arg2 ; |
26478 | int arg3 ; | |
d14a1e28 RD |
26479 | int arg4 ; |
26480 | int result; | |
26481 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26482 | PyObject * obj1 = 0 ; |
26483 | PyObject * obj2 = 0 ; | |
26484 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26485 | char *kwnames[] = { |
26486 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26487 | }; | |
26488 | ||
994141e6 | 26489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26492 | arg2 = (int) SWIG_AsInt(obj1); | |
26493 | if (PyErr_Occurred()) SWIG_fail; | |
26494 | arg3 = (int) SWIG_AsInt(obj2); | |
26495 | if (PyErr_Occurred()) SWIG_fail; | |
26496 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26497 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26498 | { |
26499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26500 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26501 | ||
26502 | wxPyEndAllowThreads(__tstate); | |
26503 | if (PyErr_Occurred()) SWIG_fail; | |
26504 | } | |
15afbcd0 | 26505 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26506 | return resultobj; |
26507 | fail: | |
26508 | return NULL; | |
26509 | } | |
26510 | ||
26511 | ||
26512 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26513 | PyObject *obj; | |
26514 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26515 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
26516 | Py_INCREF(obj); | |
26517 | return Py_BuildValue((char *)""); | |
26518 | } | |
26519 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26520 | PyObject *resultobj; | |
26521 | wxPyFileDropTarget *result; | |
26522 | char *kwnames[] = { | |
26523 | NULL | |
26524 | }; | |
26525 | ||
26526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
26527 | { | |
26528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26529 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
26530 | ||
26531 | wxPyEndAllowThreads(__tstate); | |
26532 | if (PyErr_Occurred()) SWIG_fail; | |
26533 | } | |
15afbcd0 | 26534 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); |
d14a1e28 RD |
26535 | return resultobj; |
26536 | fail: | |
26537 | return NULL; | |
26538 | } | |
26539 | ||
26540 | ||
26541 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26542 | PyObject *resultobj; | |
26543 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26544 | PyObject *arg2 = (PyObject *) 0 ; | |
26545 | PyObject *arg3 = (PyObject *) 0 ; | |
26546 | PyObject * obj0 = 0 ; | |
26547 | PyObject * obj1 = 0 ; | |
26548 | PyObject * obj2 = 0 ; | |
26549 | char *kwnames[] = { | |
26550 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26551 | }; | |
26552 | ||
26553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26556 | arg2 = obj1; |
26557 | arg3 = obj2; | |
26558 | { | |
26559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26560 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26561 | ||
26562 | wxPyEndAllowThreads(__tstate); | |
26563 | if (PyErr_Occurred()) SWIG_fail; | |
26564 | } | |
26565 | Py_INCREF(Py_None); resultobj = Py_None; | |
26566 | return resultobj; | |
26567 | fail: | |
26568 | return NULL; | |
26569 | } | |
26570 | ||
26571 | ||
26572 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26573 | PyObject *resultobj; | |
26574 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26575 | int arg2 ; |
26576 | int arg3 ; | |
d14a1e28 RD |
26577 | int arg4 ; |
26578 | int result; | |
26579 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26580 | PyObject * obj1 = 0 ; |
26581 | PyObject * obj2 = 0 ; | |
26582 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26583 | char *kwnames[] = { |
26584 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26585 | }; | |
26586 | ||
994141e6 | 26587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26590 | arg2 = (int) SWIG_AsInt(obj1); | |
26591 | if (PyErr_Occurred()) SWIG_fail; | |
26592 | arg3 = (int) SWIG_AsInt(obj2); | |
26593 | if (PyErr_Occurred()) SWIG_fail; | |
26594 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26595 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26596 | { |
26597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26598 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26599 | ||
26600 | wxPyEndAllowThreads(__tstate); | |
26601 | if (PyErr_Occurred()) SWIG_fail; | |
26602 | } | |
15afbcd0 | 26603 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26604 | return resultobj; |
26605 | fail: | |
26606 | return NULL; | |
26607 | } | |
26608 | ||
26609 | ||
26610 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26611 | PyObject *resultobj; | |
26612 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26613 | int arg2 ; |
26614 | int arg3 ; | |
d14a1e28 RD |
26615 | int arg4 ; |
26616 | int result; | |
26617 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26618 | PyObject * obj1 = 0 ; |
26619 | PyObject * obj2 = 0 ; | |
26620 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26621 | char *kwnames[] = { |
26622 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26623 | }; | |
26624 | ||
994141e6 | 26625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26628 | arg2 = (int) SWIG_AsInt(obj1); | |
26629 | if (PyErr_Occurred()) SWIG_fail; | |
26630 | arg3 = (int) SWIG_AsInt(obj2); | |
26631 | if (PyErr_Occurred()) SWIG_fail; | |
26632 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26633 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26634 | { |
26635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26636 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26637 | ||
26638 | wxPyEndAllowThreads(__tstate); | |
26639 | if (PyErr_Occurred()) SWIG_fail; | |
26640 | } | |
15afbcd0 | 26641 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26642 | return resultobj; |
26643 | fail: | |
26644 | return NULL; | |
26645 | } | |
26646 | ||
26647 | ||
26648 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26649 | PyObject *resultobj; | |
26650 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26651 | PyObject * obj0 = 0 ; | |
26652 | char *kwnames[] = { | |
26653 | (char *) "self", NULL | |
26654 | }; | |
26655 | ||
26656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26659 | { |
26660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26661 | (arg1)->base_OnLeave(); | |
26662 | ||
26663 | wxPyEndAllowThreads(__tstate); | |
26664 | if (PyErr_Occurred()) SWIG_fail; | |
26665 | } | |
26666 | Py_INCREF(Py_None); resultobj = Py_None; | |
26667 | return resultobj; | |
26668 | fail: | |
26669 | return NULL; | |
26670 | } | |
26671 | ||
26672 | ||
26673 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26674 | PyObject *resultobj; | |
26675 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26676 | int arg2 ; |
26677 | int arg3 ; | |
d14a1e28 RD |
26678 | bool result; |
26679 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26680 | PyObject * obj1 = 0 ; |
26681 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26682 | char *kwnames[] = { |
26683 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26684 | }; | |
26685 | ||
994141e6 | 26686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26689 | arg2 = (int) SWIG_AsInt(obj1); | |
26690 | if (PyErr_Occurred()) SWIG_fail; | |
26691 | arg3 = (int) SWIG_AsInt(obj2); | |
26692 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26693 | { |
26694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26695 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26696 | ||
26697 | wxPyEndAllowThreads(__tstate); | |
26698 | if (PyErr_Occurred()) SWIG_fail; | |
26699 | } | |
4f89f6a3 RD |
26700 | { |
26701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26702 | } | |
d14a1e28 RD |
26703 | return resultobj; |
26704 | fail: | |
26705 | return NULL; | |
26706 | } | |
26707 | ||
26708 | ||
26709 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26710 | PyObject *resultobj; | |
26711 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26712 | int arg2 ; |
26713 | int arg3 ; | |
d14a1e28 RD |
26714 | int arg4 ; |
26715 | int result; | |
26716 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26717 | PyObject * obj1 = 0 ; |
26718 | PyObject * obj2 = 0 ; | |
26719 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26720 | char *kwnames[] = { |
26721 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26722 | }; | |
26723 | ||
994141e6 | 26724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26727 | arg2 = (int) SWIG_AsInt(obj1); | |
26728 | if (PyErr_Occurred()) SWIG_fail; | |
26729 | arg3 = (int) SWIG_AsInt(obj2); | |
26730 | if (PyErr_Occurred()) SWIG_fail; | |
26731 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26732 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26733 | { |
26734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26735 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26736 | ||
26737 | wxPyEndAllowThreads(__tstate); | |
26738 | if (PyErr_Occurred()) SWIG_fail; | |
26739 | } | |
15afbcd0 | 26740 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26741 | return resultobj; |
26742 | fail: | |
26743 | return NULL; | |
26744 | } | |
26745 | ||
26746 | ||
26747 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26748 | PyObject *obj; | |
26749 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26750 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
26751 | Py_INCREF(obj); | |
26752 | return Py_BuildValue((char *)""); | |
26753 | } | |
26754 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26755 | PyObject *resultobj; | |
26756 | wxClipboard *result; | |
26757 | char *kwnames[] = { | |
26758 | NULL | |
26759 | }; | |
26760 | ||
26761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
26762 | { | |
26763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26764 | result = (wxClipboard *)new wxClipboard(); | |
26765 | ||
26766 | wxPyEndAllowThreads(__tstate); | |
26767 | if (PyErr_Occurred()) SWIG_fail; | |
26768 | } | |
15afbcd0 | 26769 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); |
d14a1e28 RD |
26770 | return resultobj; |
26771 | fail: | |
26772 | return NULL; | |
26773 | } | |
26774 | ||
26775 | ||
26776 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26777 | PyObject *resultobj; | |
26778 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26779 | PyObject * obj0 = 0 ; | |
26780 | char *kwnames[] = { | |
26781 | (char *) "self", NULL | |
26782 | }; | |
26783 | ||
26784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26787 | { |
26788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26789 | delete arg1; | |
26790 | ||
26791 | wxPyEndAllowThreads(__tstate); | |
26792 | if (PyErr_Occurred()) SWIG_fail; | |
26793 | } | |
26794 | Py_INCREF(Py_None); resultobj = Py_None; | |
26795 | return resultobj; | |
26796 | fail: | |
26797 | return NULL; | |
26798 | } | |
26799 | ||
26800 | ||
26801 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26802 | PyObject *resultobj; | |
26803 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26804 | bool result; | |
26805 | PyObject * obj0 = 0 ; | |
26806 | char *kwnames[] = { | |
26807 | (char *) "self", NULL | |
26808 | }; | |
26809 | ||
26810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26813 | { |
26814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26815 | result = (bool)(arg1)->Open(); | |
26816 | ||
26817 | wxPyEndAllowThreads(__tstate); | |
26818 | if (PyErr_Occurred()) SWIG_fail; | |
26819 | } | |
4f89f6a3 RD |
26820 | { |
26821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26822 | } | |
d14a1e28 RD |
26823 | return resultobj; |
26824 | fail: | |
26825 | return NULL; | |
26826 | } | |
26827 | ||
26828 | ||
26829 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26830 | PyObject *resultobj; | |
26831 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26832 | PyObject * obj0 = 0 ; | |
26833 | char *kwnames[] = { | |
26834 | (char *) "self", NULL | |
26835 | }; | |
26836 | ||
26837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26840 | { |
26841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26842 | (arg1)->Close(); | |
26843 | ||
26844 | wxPyEndAllowThreads(__tstate); | |
26845 | if (PyErr_Occurred()) SWIG_fail; | |
26846 | } | |
26847 | Py_INCREF(Py_None); resultobj = Py_None; | |
26848 | return resultobj; | |
26849 | fail: | |
26850 | return NULL; | |
26851 | } | |
26852 | ||
26853 | ||
26854 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26855 | PyObject *resultobj; | |
26856 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26857 | bool result; | |
26858 | PyObject * obj0 = 0 ; | |
26859 | char *kwnames[] = { | |
26860 | (char *) "self", NULL | |
26861 | }; | |
26862 | ||
26863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26866 | { |
26867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26868 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
26869 | ||
26870 | wxPyEndAllowThreads(__tstate); | |
26871 | if (PyErr_Occurred()) SWIG_fail; | |
26872 | } | |
4f89f6a3 RD |
26873 | { |
26874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26875 | } | |
d14a1e28 RD |
26876 | return resultobj; |
26877 | fail: | |
26878 | return NULL; | |
26879 | } | |
26880 | ||
26881 | ||
26882 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26883 | PyObject *resultobj; | |
26884 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26885 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26886 | bool result; | |
26887 | PyObject * obj0 = 0 ; | |
26888 | PyObject * obj1 = 0 ; | |
26889 | char *kwnames[] = { | |
26890 | (char *) "self",(char *) "data", NULL | |
26891 | }; | |
26892 | ||
26893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26896 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26897 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26898 | { |
26899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26900 | result = (bool)(arg1)->AddData(arg2); | |
26901 | ||
26902 | wxPyEndAllowThreads(__tstate); | |
26903 | if (PyErr_Occurred()) SWIG_fail; | |
26904 | } | |
4f89f6a3 RD |
26905 | { |
26906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26907 | } | |
d14a1e28 RD |
26908 | return resultobj; |
26909 | fail: | |
26910 | return NULL; | |
26911 | } | |
26912 | ||
26913 | ||
26914 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26915 | PyObject *resultobj; | |
26916 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26917 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26918 | bool result; | |
26919 | PyObject * obj0 = 0 ; | |
26920 | PyObject * obj1 = 0 ; | |
26921 | char *kwnames[] = { | |
26922 | (char *) "self",(char *) "data", NULL | |
26923 | }; | |
26924 | ||
26925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26928 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26929 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26930 | { |
26931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26932 | result = (bool)(arg1)->SetData(arg2); | |
26933 | ||
26934 | wxPyEndAllowThreads(__tstate); | |
26935 | if (PyErr_Occurred()) SWIG_fail; | |
26936 | } | |
4f89f6a3 RD |
26937 | { |
26938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26939 | } | |
d14a1e28 RD |
26940 | return resultobj; |
26941 | fail: | |
26942 | return NULL; | |
26943 | } | |
26944 | ||
26945 | ||
26946 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26947 | PyObject *resultobj; | |
26948 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26949 | wxDataFormat *arg2 = 0 ; | |
26950 | bool result; | |
26951 | PyObject * obj0 = 0 ; | |
26952 | PyObject * obj1 = 0 ; | |
26953 | char *kwnames[] = { | |
26954 | (char *) "self",(char *) "format", NULL | |
26955 | }; | |
26956 | ||
26957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26960 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
26961 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26962 | SWIG_fail; | |
d14a1e28 | 26963 | if (arg2 == NULL) { |
15afbcd0 RD |
26964 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26965 | SWIG_fail; | |
d14a1e28 RD |
26966 | } |
26967 | { | |
26968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26969 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
26970 | ||
26971 | wxPyEndAllowThreads(__tstate); | |
26972 | if (PyErr_Occurred()) SWIG_fail; | |
26973 | } | |
4f89f6a3 RD |
26974 | { |
26975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26976 | } | |
d14a1e28 RD |
26977 | return resultobj; |
26978 | fail: | |
26979 | return NULL; | |
26980 | } | |
26981 | ||
26982 | ||
26983 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26984 | PyObject *resultobj; | |
26985 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26986 | wxDataObject *arg2 = 0 ; | |
26987 | bool result; | |
26988 | PyObject * obj0 = 0 ; | |
26989 | PyObject * obj1 = 0 ; | |
26990 | char *kwnames[] = { | |
26991 | (char *) "self",(char *) "data", NULL | |
26992 | }; | |
26993 | ||
26994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26997 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26998 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26999 | SWIG_fail; | |
d14a1e28 | 27000 | if (arg2 == NULL) { |
15afbcd0 RD |
27001 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27002 | SWIG_fail; | |
d14a1e28 RD |
27003 | } |
27004 | { | |
27005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27006 | result = (bool)(arg1)->GetData(*arg2); | |
27007 | ||
27008 | wxPyEndAllowThreads(__tstate); | |
27009 | if (PyErr_Occurred()) SWIG_fail; | |
27010 | } | |
4f89f6a3 RD |
27011 | { |
27012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27013 | } | |
d14a1e28 RD |
27014 | return resultobj; |
27015 | fail: | |
27016 | return NULL; | |
27017 | } | |
27018 | ||
27019 | ||
27020 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27021 | PyObject *resultobj; | |
27022 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27023 | PyObject * obj0 = 0 ; | |
27024 | char *kwnames[] = { | |
27025 | (char *) "self", NULL | |
27026 | }; | |
27027 | ||
27028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27031 | { |
27032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27033 | (arg1)->Clear(); | |
27034 | ||
27035 | wxPyEndAllowThreads(__tstate); | |
27036 | if (PyErr_Occurred()) SWIG_fail; | |
27037 | } | |
27038 | Py_INCREF(Py_None); resultobj = Py_None; | |
27039 | return resultobj; | |
27040 | fail: | |
27041 | return NULL; | |
27042 | } | |
27043 | ||
27044 | ||
27045 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27046 | PyObject *resultobj; | |
27047 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27048 | bool result; | |
27049 | PyObject * obj0 = 0 ; | |
27050 | char *kwnames[] = { | |
27051 | (char *) "self", NULL | |
27052 | }; | |
27053 | ||
27054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27057 | { |
27058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27059 | result = (bool)(arg1)->Flush(); | |
27060 | ||
27061 | wxPyEndAllowThreads(__tstate); | |
27062 | if (PyErr_Occurred()) SWIG_fail; | |
27063 | } | |
4f89f6a3 RD |
27064 | { |
27065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27066 | } | |
d14a1e28 RD |
27067 | return resultobj; |
27068 | fail: | |
27069 | return NULL; | |
27070 | } | |
27071 | ||
27072 | ||
27073 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27074 | PyObject *resultobj; | |
27075 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
fcafa8a9 | 27076 | bool arg2 = (bool) True ; |
d14a1e28 RD |
27077 | PyObject * obj0 = 0 ; |
27078 | PyObject * obj1 = 0 ; | |
27079 | char *kwnames[] = { | |
27080 | (char *) "self",(char *) "primary", NULL | |
27081 | }; | |
27082 | ||
27083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 27086 | if (obj1) { |
15afbcd0 RD |
27087 | arg2 = (bool) SWIG_AsBool(obj1); |
27088 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27089 | } |
27090 | { | |
27091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27092 | (arg1)->UsePrimarySelection(arg2); | |
27093 | ||
27094 | wxPyEndAllowThreads(__tstate); | |
27095 | if (PyErr_Occurred()) SWIG_fail; | |
27096 | } | |
27097 | Py_INCREF(Py_None); resultobj = Py_None; | |
27098 | return resultobj; | |
27099 | fail: | |
27100 | return NULL; | |
27101 | } | |
27102 | ||
27103 | ||
27104 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { | |
27105 | PyObject *obj; | |
27106 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27107 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
27108 | Py_INCREF(obj); | |
27109 | return Py_BuildValue((char *)""); | |
27110 | } | |
27111 | static int _wrap_TheClipboard_set(PyObject *_val) { | |
27112 | PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); | |
27113 | return 1; | |
27114 | } | |
27115 | ||
27116 | ||
27117 | static PyObject *_wrap_TheClipboard_get() { | |
27118 | PyObject *pyobj; | |
27119 | ||
15afbcd0 | 27120 | pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0); |
d14a1e28 RD |
27121 | return pyobj; |
27122 | } | |
27123 | ||
27124 | ||
27125 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27126 | PyObject *resultobj; | |
27127 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
27128 | wxClipboardLocker *result; | |
27129 | PyObject * obj0 = 0 ; | |
27130 | char *kwnames[] = { | |
27131 | (char *) "clipboard", NULL | |
27132 | }; | |
27133 | ||
27134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27135 | if (obj0) { | |
15afbcd0 RD |
27136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27138 | } |
27139 | { | |
27140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27141 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
27142 | ||
27143 | wxPyEndAllowThreads(__tstate); | |
27144 | if (PyErr_Occurred()) SWIG_fail; | |
27145 | } | |
15afbcd0 | 27146 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); |
d14a1e28 RD |
27147 | return resultobj; |
27148 | fail: | |
27149 | return NULL; | |
27150 | } | |
27151 | ||
27152 | ||
27153 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27154 | PyObject *resultobj; | |
27155 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27156 | PyObject * obj0 = 0 ; | |
27157 | char *kwnames[] = { | |
27158 | (char *) "self", NULL | |
27159 | }; | |
27160 | ||
27161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, |
27163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27164 | { |
27165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27166 | delete arg1; | |
27167 | ||
27168 | wxPyEndAllowThreads(__tstate); | |
27169 | if (PyErr_Occurred()) SWIG_fail; | |
27170 | } | |
27171 | Py_INCREF(Py_None); resultobj = Py_None; | |
27172 | return resultobj; | |
27173 | fail: | |
27174 | return NULL; | |
27175 | } | |
27176 | ||
27177 | ||
27178 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27179 | PyObject *resultobj; | |
27180 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27181 | bool result; | |
27182 | PyObject * obj0 = 0 ; | |
27183 | char *kwnames[] = { | |
27184 | (char *) "self", NULL | |
27185 | }; | |
27186 | ||
27187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, |
27189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27190 | { |
27191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27192 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
27193 | ||
27194 | wxPyEndAllowThreads(__tstate); | |
27195 | if (PyErr_Occurred()) SWIG_fail; | |
27196 | } | |
4f89f6a3 RD |
27197 | { |
27198 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27199 | } | |
d14a1e28 RD |
27200 | return resultobj; |
27201 | fail: | |
27202 | return NULL; | |
27203 | } | |
27204 | ||
27205 | ||
27206 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
27207 | PyObject *obj; | |
27208 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27209 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
27210 | Py_INCREF(obj); | |
27211 | return Py_BuildValue((char *)""); | |
27212 | } | |
4276dc52 RD |
27213 | static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
27214 | PyObject *resultobj; | |
27215 | int arg1 = (int) 0 ; | |
27216 | int arg2 = (int) 0 ; | |
27217 | int arg3 = (int) 0 ; | |
27218 | int arg4 = (int) 0 ; | |
27219 | wxVideoMode *result; | |
27220 | PyObject * obj0 = 0 ; | |
27221 | PyObject * obj1 = 0 ; | |
27222 | PyObject * obj2 = 0 ; | |
27223 | PyObject * obj3 = 0 ; | |
27224 | char *kwnames[] = { | |
27225 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
27226 | }; | |
27227 | ||
27228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27229 | if (obj0) { | |
27230 | arg1 = (int) SWIG_AsInt(obj0); | |
27231 | if (PyErr_Occurred()) SWIG_fail; | |
27232 | } | |
27233 | if (obj1) { | |
27234 | arg2 = (int) SWIG_AsInt(obj1); | |
27235 | if (PyErr_Occurred()) SWIG_fail; | |
27236 | } | |
27237 | if (obj2) { | |
27238 | arg3 = (int) SWIG_AsInt(obj2); | |
27239 | if (PyErr_Occurred()) SWIG_fail; | |
27240 | } | |
27241 | if (obj3) { | |
27242 | arg4 = (int) SWIG_AsInt(obj3); | |
27243 | if (PyErr_Occurred()) SWIG_fail; | |
27244 | } | |
27245 | { | |
27246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27247 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
27248 | ||
27249 | wxPyEndAllowThreads(__tstate); | |
27250 | if (PyErr_Occurred()) SWIG_fail; | |
27251 | } | |
27252 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
27253 | return resultobj; | |
27254 | fail: | |
27255 | return NULL; | |
27256 | } | |
27257 | ||
27258 | ||
27259 | static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27260 | PyObject *resultobj; | |
27261 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27262 | PyObject * obj0 = 0 ; | |
27263 | char *kwnames[] = { | |
27264 | (char *) "self", NULL | |
27265 | }; | |
27266 | ||
27267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
27268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27270 | { | |
27271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27272 | delete arg1; | |
27273 | ||
27274 | wxPyEndAllowThreads(__tstate); | |
27275 | if (PyErr_Occurred()) SWIG_fail; | |
27276 | } | |
27277 | Py_INCREF(Py_None); resultobj = Py_None; | |
27278 | return resultobj; | |
27279 | fail: | |
27280 | return NULL; | |
27281 | } | |
27282 | ||
27283 | ||
27284 | static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27285 | PyObject *resultobj; | |
27286 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27287 | wxVideoMode *arg2 = 0 ; | |
27288 | bool result; | |
27289 | PyObject * obj0 = 0 ; | |
27290 | PyObject * obj1 = 0 ; | |
27291 | char *kwnames[] = { | |
27292 | (char *) "self",(char *) "other", NULL | |
27293 | }; | |
27294 | ||
27295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
27296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27298 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27299 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27300 | SWIG_fail; | |
27301 | if (arg2 == NULL) { | |
27302 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27303 | SWIG_fail; | |
27304 | } | |
27305 | { | |
27306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27307 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
27308 | ||
27309 | wxPyEndAllowThreads(__tstate); | |
27310 | if (PyErr_Occurred()) SWIG_fail; | |
27311 | } | |
4f89f6a3 RD |
27312 | { |
27313 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27314 | } | |
4276dc52 RD |
27315 | return resultobj; |
27316 | fail: | |
27317 | return NULL; | |
27318 | } | |
27319 | ||
27320 | ||
27321 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27322 | PyObject *resultobj; | |
27323 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27324 | int result; | |
27325 | PyObject * obj0 = 0 ; | |
27326 | char *kwnames[] = { | |
27327 | (char *) "self", NULL | |
27328 | }; | |
27329 | ||
27330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
27331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27333 | { | |
27334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27335 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
27336 | ||
27337 | wxPyEndAllowThreads(__tstate); | |
27338 | if (PyErr_Occurred()) SWIG_fail; | |
27339 | } | |
27340 | resultobj = SWIG_FromInt((int)result); | |
27341 | return resultobj; | |
27342 | fail: | |
27343 | return NULL; | |
27344 | } | |
27345 | ||
27346 | ||
27347 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27348 | PyObject *resultobj; | |
27349 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27350 | int result; | |
27351 | PyObject * obj0 = 0 ; | |
27352 | char *kwnames[] = { | |
27353 | (char *) "self", NULL | |
27354 | }; | |
27355 | ||
27356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
27357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27359 | { | |
27360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27361 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
27362 | ||
27363 | wxPyEndAllowThreads(__tstate); | |
27364 | if (PyErr_Occurred()) SWIG_fail; | |
27365 | } | |
27366 | resultobj = SWIG_FromInt((int)result); | |
27367 | return resultobj; | |
27368 | fail: | |
27369 | return NULL; | |
27370 | } | |
27371 | ||
27372 | ||
27373 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27374 | PyObject *resultobj; | |
27375 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27376 | int result; | |
27377 | PyObject * obj0 = 0 ; | |
27378 | char *kwnames[] = { | |
27379 | (char *) "self", NULL | |
27380 | }; | |
27381 | ||
27382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
27383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27385 | { | |
27386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27387 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
27388 | ||
27389 | wxPyEndAllowThreads(__tstate); | |
27390 | if (PyErr_Occurred()) SWIG_fail; | |
27391 | } | |
27392 | resultobj = SWIG_FromInt((int)result); | |
27393 | return resultobj; | |
27394 | fail: | |
27395 | return NULL; | |
27396 | } | |
27397 | ||
27398 | ||
27399 | static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27400 | PyObject *resultobj; | |
27401 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27402 | bool result; | |
27403 | PyObject * obj0 = 0 ; | |
27404 | char *kwnames[] = { | |
27405 | (char *) "self", NULL | |
27406 | }; | |
27407 | ||
27408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
27409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27411 | { | |
27412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27413 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
27414 | ||
27415 | wxPyEndAllowThreads(__tstate); | |
27416 | if (PyErr_Occurred()) SWIG_fail; | |
27417 | } | |
4f89f6a3 RD |
27418 | { |
27419 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27420 | } | |
4276dc52 RD |
27421 | return resultobj; |
27422 | fail: | |
27423 | return NULL; | |
27424 | } | |
27425 | ||
27426 | ||
27427 | static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27428 | PyObject *resultobj; | |
27429 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27430 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27431 | bool result; | |
27432 | PyObject * obj0 = 0 ; | |
27433 | PyObject * obj1 = 0 ; | |
27434 | char *kwnames[] = { | |
27435 | (char *) "self",(char *) "other", NULL | |
27436 | }; | |
27437 | ||
27438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
27439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27441 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27443 | { | |
27444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27445 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
27446 | ||
27447 | wxPyEndAllowThreads(__tstate); | |
27448 | if (PyErr_Occurred()) SWIG_fail; | |
27449 | } | |
4f89f6a3 RD |
27450 | { |
27451 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27452 | } | |
4276dc52 RD |
27453 | return resultobj; |
27454 | fail: | |
27455 | return NULL; | |
27456 | } | |
27457 | ||
27458 | ||
27459 | static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27460 | PyObject *resultobj; | |
27461 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27462 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27463 | bool result; | |
27464 | PyObject * obj0 = 0 ; | |
27465 | PyObject * obj1 = 0 ; | |
27466 | char *kwnames[] = { | |
27467 | (char *) "self",(char *) "other", NULL | |
27468 | }; | |
27469 | ||
27470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
27471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27473 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27475 | { | |
27476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27477 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
27478 | ||
27479 | wxPyEndAllowThreads(__tstate); | |
27480 | if (PyErr_Occurred()) SWIG_fail; | |
27481 | } | |
4f89f6a3 RD |
27482 | { |
27483 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27484 | } | |
4276dc52 RD |
27485 | return resultobj; |
27486 | fail: | |
27487 | return NULL; | |
27488 | } | |
27489 | ||
27490 | ||
27491 | static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27492 | PyObject *resultobj; | |
27493 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27494 | int arg2 ; | |
27495 | PyObject * obj0 = 0 ; | |
27496 | PyObject * obj1 = 0 ; | |
27497 | char *kwnames[] = { | |
27498 | (char *) "self",(char *) "w", NULL | |
27499 | }; | |
27500 | ||
27501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
27502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27504 | arg2 = (int) SWIG_AsInt(obj1); | |
27505 | if (PyErr_Occurred()) SWIG_fail; | |
27506 | if (arg1) (arg1)->w = arg2; | |
27507 | ||
27508 | Py_INCREF(Py_None); resultobj = Py_None; | |
27509 | return resultobj; | |
27510 | fail: | |
27511 | return NULL; | |
27512 | } | |
27513 | ||
27514 | ||
27515 | static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27516 | PyObject *resultobj; | |
27517 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27518 | int result; | |
27519 | PyObject * obj0 = 0 ; | |
27520 | char *kwnames[] = { | |
27521 | (char *) "self", NULL | |
27522 | }; | |
27523 | ||
27524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
27525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27527 | result = (int) ((arg1)->w); | |
27528 | ||
27529 | resultobj = SWIG_FromInt((int)result); | |
27530 | return resultobj; | |
27531 | fail: | |
27532 | return NULL; | |
27533 | } | |
27534 | ||
27535 | ||
27536 | static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27537 | PyObject *resultobj; | |
27538 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27539 | int arg2 ; | |
27540 | PyObject * obj0 = 0 ; | |
27541 | PyObject * obj1 = 0 ; | |
27542 | char *kwnames[] = { | |
27543 | (char *) "self",(char *) "h", NULL | |
27544 | }; | |
27545 | ||
27546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
27547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27549 | arg2 = (int) SWIG_AsInt(obj1); | |
27550 | if (PyErr_Occurred()) SWIG_fail; | |
27551 | if (arg1) (arg1)->h = arg2; | |
27552 | ||
27553 | Py_INCREF(Py_None); resultobj = Py_None; | |
27554 | return resultobj; | |
27555 | fail: | |
27556 | return NULL; | |
27557 | } | |
27558 | ||
27559 | ||
27560 | static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27561 | PyObject *resultobj; | |
27562 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27563 | int result; | |
27564 | PyObject * obj0 = 0 ; | |
27565 | char *kwnames[] = { | |
27566 | (char *) "self", NULL | |
27567 | }; | |
27568 | ||
27569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
27570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27572 | result = (int) ((arg1)->h); | |
27573 | ||
27574 | resultobj = SWIG_FromInt((int)result); | |
27575 | return resultobj; | |
27576 | fail: | |
27577 | return NULL; | |
27578 | } | |
27579 | ||
27580 | ||
27581 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27582 | PyObject *resultobj; | |
27583 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27584 | int arg2 ; | |
27585 | PyObject * obj0 = 0 ; | |
27586 | PyObject * obj1 = 0 ; | |
27587 | char *kwnames[] = { | |
27588 | (char *) "self",(char *) "bpp", NULL | |
27589 | }; | |
27590 | ||
27591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
27592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27594 | arg2 = (int) SWIG_AsInt(obj1); | |
27595 | if (PyErr_Occurred()) SWIG_fail; | |
27596 | if (arg1) (arg1)->bpp = arg2; | |
27597 | ||
27598 | Py_INCREF(Py_None); resultobj = Py_None; | |
27599 | return resultobj; | |
27600 | fail: | |
27601 | return NULL; | |
27602 | } | |
27603 | ||
27604 | ||
27605 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27606 | PyObject *resultobj; | |
27607 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27608 | int result; | |
27609 | PyObject * obj0 = 0 ; | |
27610 | char *kwnames[] = { | |
27611 | (char *) "self", NULL | |
27612 | }; | |
27613 | ||
27614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
27615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27617 | result = (int) ((arg1)->bpp); | |
27618 | ||
27619 | resultobj = SWIG_FromInt((int)result); | |
27620 | return resultobj; | |
27621 | fail: | |
27622 | return NULL; | |
27623 | } | |
27624 | ||
27625 | ||
27626 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27627 | PyObject *resultobj; | |
27628 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27629 | int arg2 ; | |
27630 | PyObject * obj0 = 0 ; | |
27631 | PyObject * obj1 = 0 ; | |
27632 | char *kwnames[] = { | |
27633 | (char *) "self",(char *) "refresh", NULL | |
27634 | }; | |
27635 | ||
27636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
27637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27639 | arg2 = (int) SWIG_AsInt(obj1); | |
27640 | if (PyErr_Occurred()) SWIG_fail; | |
27641 | if (arg1) (arg1)->refresh = arg2; | |
27642 | ||
27643 | Py_INCREF(Py_None); resultobj = Py_None; | |
27644 | return resultobj; | |
27645 | fail: | |
27646 | return NULL; | |
27647 | } | |
27648 | ||
27649 | ||
27650 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27651 | PyObject *resultobj; | |
27652 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27653 | int result; | |
27654 | PyObject * obj0 = 0 ; | |
27655 | char *kwnames[] = { | |
27656 | (char *) "self", NULL | |
27657 | }; | |
27658 | ||
27659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
27660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27662 | result = (int) ((arg1)->refresh); | |
27663 | ||
27664 | resultobj = SWIG_FromInt((int)result); | |
27665 | return resultobj; | |
27666 | fail: | |
27667 | return NULL; | |
27668 | } | |
27669 | ||
27670 | ||
27671 | static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) { | |
27672 | PyObject *obj; | |
27673 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27674 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
27675 | Py_INCREF(obj); | |
27676 | return Py_BuildValue((char *)""); | |
27677 | } | |
27678 | static int _wrap_DefaultVideoMode_set(PyObject *_val) { | |
27679 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); | |
27680 | return 1; | |
27681 | } | |
27682 | ||
27683 | ||
27684 | static PyObject *_wrap_DefaultVideoMode_get() { | |
27685 | PyObject *pyobj; | |
27686 | ||
27687 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
27688 | return pyobj; | |
27689 | } | |
27690 | ||
27691 | ||
27692 | static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27693 | PyObject *resultobj; | |
27694 | size_t arg1 = (size_t) 0 ; | |
27695 | wxDisplay *result; | |
27696 | PyObject * obj0 = 0 ; | |
27697 | char *kwnames[] = { | |
27698 | (char *) "index", NULL | |
27699 | }; | |
27700 | ||
27701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
27702 | if (obj0) { | |
27703 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); | |
27704 | if (PyErr_Occurred()) SWIG_fail; | |
27705 | } | |
27706 | { | |
27707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27708 | result = (wxDisplay *)new wxDisplay(arg1); | |
27709 | ||
27710 | wxPyEndAllowThreads(__tstate); | |
27711 | if (PyErr_Occurred()) SWIG_fail; | |
27712 | } | |
27713 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
27714 | return resultobj; | |
27715 | fail: | |
27716 | return NULL; | |
27717 | } | |
27718 | ||
27719 | ||
27720 | static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27721 | PyObject *resultobj; | |
27722 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27723 | PyObject * obj0 = 0 ; | |
27724 | char *kwnames[] = { | |
27725 | (char *) "self", NULL | |
27726 | }; | |
27727 | ||
27728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
27729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27731 | { | |
27732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27733 | delete arg1; | |
27734 | ||
27735 | wxPyEndAllowThreads(__tstate); | |
27736 | if (PyErr_Occurred()) SWIG_fail; | |
27737 | } | |
27738 | Py_INCREF(Py_None); resultobj = Py_None; | |
27739 | return resultobj; | |
27740 | fail: | |
27741 | return NULL; | |
27742 | } | |
27743 | ||
27744 | ||
27745 | static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27746 | PyObject *resultobj; | |
27747 | size_t result; | |
27748 | char *kwnames[] = { | |
27749 | NULL | |
27750 | }; | |
27751 | ||
27752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
27753 | { | |
27754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27755 | result = (size_t)wxDisplay::GetCount(); | |
27756 | ||
27757 | wxPyEndAllowThreads(__tstate); | |
27758 | if (PyErr_Occurred()) SWIG_fail; | |
27759 | } | |
27760 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
27761 | return resultobj; | |
27762 | fail: | |
27763 | return NULL; | |
27764 | } | |
27765 | ||
27766 | ||
27767 | static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27768 | PyObject *resultobj; | |
27769 | wxPoint *arg1 = 0 ; | |
27770 | int result; | |
27771 | wxPoint temp1 ; | |
27772 | PyObject * obj0 = 0 ; | |
27773 | char *kwnames[] = { | |
27774 | (char *) "pt", NULL | |
27775 | }; | |
27776 | ||
27777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
27778 | { | |
27779 | arg1 = &temp1; | |
27780 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
27781 | } | |
27782 | { | |
27783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27784 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
27785 | ||
27786 | wxPyEndAllowThreads(__tstate); | |
27787 | if (PyErr_Occurred()) SWIG_fail; | |
27788 | } | |
27789 | resultobj = SWIG_FromInt((int)result); | |
27790 | return resultobj; | |
27791 | fail: | |
27792 | return NULL; | |
27793 | } | |
27794 | ||
27795 | ||
27796 | static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27797 | PyObject *resultobj; | |
27798 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27799 | int result; | |
27800 | PyObject * obj0 = 0 ; | |
27801 | char *kwnames[] = { | |
27802 | (char *) "window", NULL | |
27803 | }; | |
27804 | ||
27805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
27806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27808 | { | |
27809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27810 | result = (int)Display_GetFromWindow(arg1); | |
27811 | ||
27812 | wxPyEndAllowThreads(__tstate); | |
27813 | if (PyErr_Occurred()) SWIG_fail; | |
27814 | } | |
27815 | resultobj = SWIG_FromInt((int)result); | |
27816 | return resultobj; | |
27817 | fail: | |
27818 | return NULL; | |
27819 | } | |
27820 | ||
27821 | ||
27822 | static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27823 | PyObject *resultobj; | |
27824 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27825 | bool result; | |
27826 | PyObject * obj0 = 0 ; | |
27827 | char *kwnames[] = { | |
27828 | (char *) "self", NULL | |
27829 | }; | |
27830 | ||
27831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
27832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27834 | { | |
27835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27836 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
27837 | ||
27838 | wxPyEndAllowThreads(__tstate); | |
27839 | if (PyErr_Occurred()) SWIG_fail; | |
27840 | } | |
4f89f6a3 RD |
27841 | { |
27842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27843 | } | |
4276dc52 RD |
27844 | return resultobj; |
27845 | fail: | |
27846 | return NULL; | |
27847 | } | |
27848 | ||
27849 | ||
27850 | static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27851 | PyObject *resultobj; | |
27852 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27853 | wxRect result; | |
27854 | PyObject * obj0 = 0 ; | |
27855 | char *kwnames[] = { | |
27856 | (char *) "self", NULL | |
27857 | }; | |
27858 | ||
27859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
27860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27862 | { | |
27863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27864 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
27865 | ||
27866 | wxPyEndAllowThreads(__tstate); | |
27867 | if (PyErr_Occurred()) SWIG_fail; | |
27868 | } | |
27869 | { | |
27870 | wxRect * resultptr; | |
27871 | resultptr = new wxRect((wxRect &) result); | |
27872 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
27873 | } | |
27874 | return resultobj; | |
27875 | fail: | |
27876 | return NULL; | |
27877 | } | |
27878 | ||
27879 | ||
27880 | static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27881 | PyObject *resultobj; | |
27882 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27883 | wxString result; | |
27884 | PyObject * obj0 = 0 ; | |
27885 | char *kwnames[] = { | |
27886 | (char *) "self", NULL | |
27887 | }; | |
27888 | ||
27889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
27890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27892 | { | |
27893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27894 | result = ((wxDisplay const *)arg1)->GetName(); | |
27895 | ||
27896 | wxPyEndAllowThreads(__tstate); | |
27897 | if (PyErr_Occurred()) SWIG_fail; | |
27898 | } | |
27899 | { | |
27900 | #if wxUSE_UNICODE | |
27901 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27902 | #else | |
27903 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27904 | #endif | |
27905 | } | |
27906 | return resultobj; | |
27907 | fail: | |
27908 | return NULL; | |
27909 | } | |
27910 | ||
27911 | ||
27912 | static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27913 | PyObject *resultobj; | |
27914 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27915 | bool result; | |
27916 | PyObject * obj0 = 0 ; | |
27917 | char *kwnames[] = { | |
27918 | (char *) "self", NULL | |
27919 | }; | |
27920 | ||
27921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
27922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27924 | { | |
27925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27926 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
27927 | ||
27928 | wxPyEndAllowThreads(__tstate); | |
27929 | if (PyErr_Occurred()) SWIG_fail; | |
27930 | } | |
4f89f6a3 RD |
27931 | { |
27932 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27933 | } | |
4276dc52 RD |
27934 | return resultobj; |
27935 | fail: | |
27936 | return NULL; | |
27937 | } | |
27938 | ||
27939 | ||
27940 | static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27941 | PyObject *resultobj; | |
27942 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27943 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
27944 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
27945 | PyObject *result; | |
27946 | PyObject * obj0 = 0 ; | |
27947 | PyObject * obj1 = 0 ; | |
27948 | char *kwnames[] = { | |
27949 | (char *) "self",(char *) "mode", NULL | |
27950 | }; | |
27951 | ||
27952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
27953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27955 | if (obj1) { | |
27956 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27957 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27958 | SWIG_fail; | |
27959 | if (arg2 == NULL) { | |
27960 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27961 | SWIG_fail; | |
27962 | } | |
27963 | } | |
27964 | { | |
27965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27966 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
27967 | ||
27968 | wxPyEndAllowThreads(__tstate); | |
27969 | if (PyErr_Occurred()) SWIG_fail; | |
27970 | } | |
27971 | resultobj = result; | |
27972 | return resultobj; | |
27973 | fail: | |
27974 | return NULL; | |
27975 | } | |
27976 | ||
27977 | ||
27978 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27979 | PyObject *resultobj; | |
27980 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27981 | wxVideoMode result; | |
27982 | PyObject * obj0 = 0 ; | |
27983 | char *kwnames[] = { | |
27984 | (char *) "self", NULL | |
27985 | }; | |
27986 | ||
27987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
27988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27990 | { | |
27991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27992 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
27993 | ||
27994 | wxPyEndAllowThreads(__tstate); | |
27995 | if (PyErr_Occurred()) SWIG_fail; | |
27996 | } | |
27997 | { | |
27998 | wxVideoMode * resultptr; | |
27999 | resultptr = new wxVideoMode((wxVideoMode &) result); | |
28000 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); | |
28001 | } | |
28002 | return resultobj; | |
28003 | fail: | |
28004 | return NULL; | |
28005 | } | |
28006 | ||
28007 | ||
28008 | static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28009 | PyObject *resultobj; | |
28010 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28011 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28012 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28013 | bool result; | |
28014 | PyObject * obj0 = 0 ; | |
28015 | PyObject * obj1 = 0 ; | |
28016 | char *kwnames[] = { | |
28017 | (char *) "self",(char *) "mode", NULL | |
28018 | }; | |
28019 | ||
28020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
28021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28023 | if (obj1) { | |
28024 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28025 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28026 | SWIG_fail; | |
28027 | if (arg2 == NULL) { | |
28028 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28029 | SWIG_fail; | |
28030 | } | |
28031 | } | |
28032 | { | |
28033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28034 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
28035 | ||
28036 | wxPyEndAllowThreads(__tstate); | |
28037 | if (PyErr_Occurred()) SWIG_fail; | |
28038 | } | |
4f89f6a3 RD |
28039 | { |
28040 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28041 | } | |
4276dc52 RD |
28042 | return resultobj; |
28043 | fail: | |
28044 | return NULL; | |
28045 | } | |
28046 | ||
28047 | ||
28048 | static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28049 | PyObject *resultobj; | |
28050 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28051 | PyObject * obj0 = 0 ; | |
28052 | char *kwnames[] = { | |
28053 | (char *) "self", NULL | |
28054 | }; | |
28055 | ||
28056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
28057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28059 | { | |
28060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28061 | (arg1)->ResetMode(); | |
28062 | ||
28063 | wxPyEndAllowThreads(__tstate); | |
28064 | if (PyErr_Occurred()) SWIG_fail; | |
28065 | } | |
28066 | Py_INCREF(Py_None); resultobj = Py_None; | |
28067 | return resultobj; | |
28068 | fail: | |
28069 | return NULL; | |
28070 | } | |
28071 | ||
28072 | ||
28073 | static PyObject * Display_swigregister(PyObject *self, PyObject *args) { | |
28074 | PyObject *obj; | |
28075 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28076 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
28077 | Py_INCREF(obj); | |
28078 | return Py_BuildValue((char *)""); | |
28079 | } | |
d14a1e28 RD |
28080 | static PyMethodDef SwigMethods[] = { |
28081 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
28082 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
28083 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
28084 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
28085 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
28086 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
28087 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
28088 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
28089 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
28090 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
28091 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
28092 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
28093 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
28094 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
28095 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
28096 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
28097 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
28098 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, | |
28099 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28100 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
28101 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
28102 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
28103 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
28104 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
28105 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
28106 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
28107 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
28108 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
28109 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
28110 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
28111 | { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, | |
28112 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
28113 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
28114 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
28115 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
28116 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
28117 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
28118 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
28119 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
28120 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
28121 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
28122 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
28123 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28124 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28125 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28126 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
28127 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28128 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28129 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
28130 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
28131 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
28132 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28133 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
28134 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28135 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28136 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28137 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28138 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28139 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28140 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28141 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28142 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28143 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28144 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
28145 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28146 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28147 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
39f61e25 | 28148 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28149 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, |
28150 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
28151 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
28152 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28153 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28154 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
28155 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
28156 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
28157 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
28158 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28159 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
28160 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
28161 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
28162 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
28163 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28164 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28165 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28166 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 28167 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 28168 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 28169 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 28170 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28171 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
28172 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
28173 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
28174 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
28175 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
28176 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
28177 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
28178 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
28179 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28180 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28181 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28182 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28183 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
28184 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28185 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28186 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
28187 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28188 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28189 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
28190 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
28191 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
28192 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
28193 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28194 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
28195 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
28196 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28197 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28198 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
28199 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
28200 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
28201 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
28202 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
28203 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
28204 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
28205 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
28206 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
28207 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
28208 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28209 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
28210 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28211 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28212 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28213 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
28214 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
28215 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
28216 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
28217 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28218 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28219 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
28220 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
28221 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
28222 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28223 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28224 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
28225 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
28226 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28227 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
28228 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
7722248d | 28229 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 28230 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, |
1c0f361b | 28231 | { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28232 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, |
28233 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28234 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, |
28235 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28236 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
cc6dd355 | 28237 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28238 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, |
28239 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
28240 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28241 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
28242 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
28243 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
28244 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
28245 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
28246 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
28247 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
28248 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
28249 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
28250 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28251 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
28252 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28253 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28254 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
28255 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28256 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28257 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28258 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28259 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28260 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28261 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28262 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28263 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28264 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28265 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28266 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28267 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28268 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28269 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28270 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
28271 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
28272 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
28273 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
28274 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
28275 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
28276 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
28277 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
28278 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
28279 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
28280 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
28281 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
28282 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28283 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28284 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28285 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
28286 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
28287 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
28288 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28289 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28290 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28291 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
28292 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
28293 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
28294 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
28295 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
28296 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
28297 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
28298 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
28299 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
28300 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28301 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
28302 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
28303 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
cc6dd355 | 28304 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, |
d14a1e28 RD |
28305 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, |
28306 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
28307 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28308 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28309 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
28310 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
28311 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28312 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
28313 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
28314 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28315 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
28316 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
28317 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28318 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
28319 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
28320 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
28321 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
28322 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
28323 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
28324 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
28325 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
28326 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
28327 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28328 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28329 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
28330 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
28331 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
28332 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
28333 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
28334 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
28335 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
28336 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
28337 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
28338 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
28339 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28340 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28341 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28342 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28343 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28344 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28345 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
28346 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
28347 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
28348 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28349 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28350 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28351 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28352 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
28353 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
28354 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
28355 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
28356 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
28357 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
28358 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
28359 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
28360 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
28361 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
28362 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
28363 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
28364 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
28365 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
28366 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
28367 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
28368 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
28369 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
28370 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
28371 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
28372 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
28373 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
28374 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
28375 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
28376 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
28377 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
28378 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
28379 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
28380 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
28381 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
28382 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
28383 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
28384 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
28385 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
28386 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
28387 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
28388 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
28389 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
28390 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
28391 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
28392 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
28393 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
28394 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
28395 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28396 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28397 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28398 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28399 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28400 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28401 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28402 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28403 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28404 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28405 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
28406 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
28407 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
28408 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
28409 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
28410 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
28411 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
36cadbf7 RD |
28412 | { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS }, |
28413 | { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS }, | |
4d5c3d91 | 28414 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS }, |
36cadbf7 RD |
28415 | { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS }, |
28416 | { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS }, | |
4d5c3d91 | 28417 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS }, |
36cadbf7 RD |
28418 | { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS }, |
28419 | { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS }, | |
4d5c3d91 RD |
28420 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS }, |
28421 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28422 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, |
28423 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
28424 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
28425 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28426 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28427 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28428 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28429 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28430 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28431 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28432 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28433 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28434 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
28435 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
28436 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
28437 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
28438 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28439 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28440 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28441 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28442 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28443 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28444 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
28445 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28446 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28447 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28448 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
28449 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
28450 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
28451 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28452 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
28453 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
28454 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
28455 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28456 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
28457 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
28458 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
28459 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28460 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
28461 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28462 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
28463 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
28464 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
28465 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28466 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28467 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
28468 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28469 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
28470 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
28471 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
28472 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
28473 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28474 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
1e0c8722 | 28475 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28476 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, |
28477 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
28478 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
28479 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
28480 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
28481 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28482 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
28483 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
28484 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
28485 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
28486 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
28487 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
28488 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
28489 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
28490 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
28491 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
28492 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28493 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
28494 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
28495 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
28496 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
28497 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
28498 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
28499 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
28500 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
28501 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
28502 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28503 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
28504 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
28505 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
28506 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
28507 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 28508 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, |
b88bce5f | 28509 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28510 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, |
28511 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
28512 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28513 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28514 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28515 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28516 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28517 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28518 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28519 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28520 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, |
28521 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
28522 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
28523 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28524 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28525 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
b88bce5f RD |
28526 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, |
28527 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
28528 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
28529 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28530 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, |
28531 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28532 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28533 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
28534 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
28535 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
28536 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
28537 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
28538 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
28539 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
28540 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
28541 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
28542 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
28543 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
28544 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
28545 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
28546 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
28547 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
28548 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
28549 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
28550 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28551 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28552 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
28553 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
28554 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
28555 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28556 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
28557 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28558 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28559 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
28560 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
28561 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
28562 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
28563 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28564 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
28565 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
28566 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28567 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28568 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28569 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28570 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28571 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28572 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28573 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28574 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28575 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28576 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28577 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28578 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
28579 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
28580 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28581 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28582 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28583 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28584 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28585 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28586 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28587 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
28588 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
28589 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28590 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28591 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
28592 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
28593 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
28594 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28595 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
28596 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
28597 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28598 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
28599 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28600 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
28601 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28602 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28603 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28604 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28605 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28606 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
28607 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
28608 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28609 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
28610 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
28611 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
28612 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
28613 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
28614 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
28615 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
28616 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
28617 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
28618 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
28619 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
28620 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28621 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
28622 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
28623 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
28624 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
28625 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
28626 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
28627 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
28628 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
28629 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
28630 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
28631 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
28632 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
28633 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
28634 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
28635 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
28636 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
28637 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
28638 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
28639 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
28640 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
28641 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
28642 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
28643 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
28644 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
28645 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
28646 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
28647 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
28648 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28649 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28650 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28651 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28652 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28653 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28654 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28655 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28656 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28657 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28658 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
28659 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28660 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28661 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28662 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28663 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28664 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28665 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28666 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28667 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
28668 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
28669 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
28670 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
28671 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28672 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28673 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
28674 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
28675 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
28676 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28677 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
28678 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
28679 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28680 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28681 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
28682 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
28683 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
28684 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
28685 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
28686 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
28687 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28688 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28689 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28690 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28691 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28692 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28693 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
28694 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
28695 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
28696 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
28697 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
28698 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28699 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28700 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
28701 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
28702 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28703 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28704 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28705 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
28706 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28707 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28708 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28709 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28710 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28711 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28712 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28713 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28714 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28715 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28716 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28717 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28718 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28719 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28720 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
28721 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
28722 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
28723 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
28724 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
28725 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28726 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28727 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28728 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
28729 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
28730 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
28731 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
28732 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
28733 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
28734 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
28735 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
28736 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
28737 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
28738 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28739 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
28740 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
28741 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
28742 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28743 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
28744 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28745 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
28746 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
1a10c483 RD |
28747 | { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS }, |
28748 | { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
28749 | { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28750 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, |
28751 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28752 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28753 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
28754 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
28755 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
28756 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
28757 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28758 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
28759 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
28760 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
28761 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
28762 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28763 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28764 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
28765 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28766 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28767 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28768 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
28769 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28770 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28771 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
28772 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28773 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
15afbcd0 | 28774 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28775 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, |
28776 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28777 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, |
28778 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
28779 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28780 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
28781 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28782 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
28783 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
28784 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
28785 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28786 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, | |
28787 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
28788 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28789 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28790 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28791 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28792 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28793 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28794 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
28795 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
28796 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
15afbcd0 | 28797 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28798 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
28799 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28800 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28801 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28802 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28803 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28804 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28805 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28806 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28807 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
28808 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28809 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28810 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28811 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28812 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28813 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28814 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28815 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
28816 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28817 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28818 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28819 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28820 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28821 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28822 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28823 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
28824 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28825 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28826 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
28827 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
28828 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
28829 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
28830 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28831 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28832 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28833 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
28834 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28835 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
28836 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, | |
28837 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28838 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28839 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
28840 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
4276dc52 RD |
28841 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS }, |
28842 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS }, | |
28843 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS }, | |
28844 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
28845 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
28846 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
28847 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28848 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28849 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28850 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS }, | |
28851 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS }, | |
28852 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS }, | |
28853 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS }, | |
28854 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS }, | |
28855 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS }, | |
28856 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS }, | |
28857 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS }, | |
28858 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS }, | |
28859 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS }, | |
28860 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS }, | |
28861 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28862 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
28863 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
28864 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28865 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS }, | |
28866 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS }, | |
28867 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS }, | |
28868 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS }, | |
28869 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS }, | |
28870 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS }, | |
28871 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS }, | |
28872 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28873 | { NULL, NULL } |
28874 | }; | |
28875 | ||
28876 | ||
28877 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
28878 | ||
28879 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
28880 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
28881 | } | |
28882 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
28883 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
28884 | } | |
28885 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
28886 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
28887 | } | |
28888 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
28889 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
28890 | } | |
28891 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
28892 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
28893 | } | |
28894 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
28895 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
28896 | } | |
28897 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
28898 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
28899 | } | |
28900 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
28901 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
28902 | } | |
28903 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
28904 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
28905 | } | |
28906 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
28907 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
28908 | } | |
28909 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
28910 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
28911 | } | |
28912 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
28913 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
28914 | } | |
28915 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
28916 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
28917 | } | |
28918 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
28919 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
28920 | } | |
28921 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
28922 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
28923 | } | |
28924 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
28925 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
28926 | } | |
28927 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
28928 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
28929 | } | |
28930 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
28931 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
28932 | } | |
28933 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
28934 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
28935 | } | |
28936 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
28937 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
28938 | } | |
28939 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
28940 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
28941 | } | |
28942 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
28943 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
28944 | } | |
28945 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
28946 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
28947 | } | |
28948 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
28949 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
28950 | } | |
28951 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
28952 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
28953 | } | |
28954 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
28955 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
28956 | } | |
28957 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
28958 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
28959 | } | |
28960 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
28961 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
28962 | } | |
28963 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
28964 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
28965 | } | |
28966 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
28967 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
28968 | } | |
28969 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
28970 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
28971 | } | |
28972 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
28973 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
28974 | } | |
28975 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
28976 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
28977 | } | |
28978 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
28979 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
28980 | } | |
28981 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
28982 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
28983 | } | |
28984 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
28985 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
28986 | } | |
28987 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
28988 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
28989 | } | |
28990 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
28991 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
28992 | } | |
28993 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
28994 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
28995 | } | |
28996 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
28997 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
28998 | } | |
28999 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
29000 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29001 | } | |
29002 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
29003 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29004 | } | |
29005 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
29006 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
29007 | } | |
29008 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
29009 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
29010 | } | |
29011 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
29012 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
29013 | } | |
29014 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
29015 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
29016 | } | |
29017 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
29018 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29019 | } | |
29020 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
29021 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29022 | } | |
29023 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
29024 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29025 | } | |
29026 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
29027 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29028 | } | |
29029 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
29030 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29031 | } | |
29032 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
29033 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
29034 | } | |
29035 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
29036 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29037 | } | |
29038 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
29039 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
29040 | } | |
29041 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
29042 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
29043 | } | |
29044 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29045 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
29046 | } | |
29047 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29048 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29049 | } | |
29050 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29051 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29052 | } | |
29053 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29054 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29055 | } | |
29056 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29057 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29058 | } | |
29059 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29060 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29061 | } | |
29062 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29063 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29064 | } | |
29065 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
29066 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
29067 | } | |
29068 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
29069 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
29070 | } | |
29071 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
29072 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29073 | } | |
29074 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
29075 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
29076 | } | |
29077 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
29078 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
29079 | } | |
29080 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
29081 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
29082 | } | |
29083 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
29084 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
29085 | } | |
29086 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
29087 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
29088 | } | |
29089 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
29090 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
29091 | } | |
29092 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
29093 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
29094 | } | |
29095 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
29096 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
29097 | } | |
29098 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
29099 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
29100 | } | |
29101 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
29102 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
29103 | } | |
29104 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
29105 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
29106 | } | |
29107 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
29108 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
29109 | } | |
29110 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
29111 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
29112 | } | |
29113 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
29114 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
29115 | } | |
29116 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
29117 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
29118 | } | |
29119 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
29120 | return (void *)((wxObject *) ((wxSizer *) x)); | |
29121 | } | |
29122 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
29123 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
29124 | } | |
29125 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
29126 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
29127 | } | |
29128 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
29129 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29130 | } | |
29131 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
29132 | return (void *)((wxObject *) ((wxEvent *) x)); | |
29133 | } | |
29134 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
29135 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
29136 | } | |
29137 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
29138 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
29139 | } | |
29140 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
29141 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
29142 | } | |
29143 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
29144 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
29145 | } | |
29146 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
29147 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
29148 | } | |
29149 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
29150 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29151 | } | |
29152 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
29153 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29154 | } | |
29155 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
29156 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29157 | } | |
29158 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
29159 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29160 | } | |
29161 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
29162 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
29163 | } | |
29164 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
29165 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
29166 | } | |
29167 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
29168 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
29169 | } | |
29170 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
29171 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
29172 | } | |
29173 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
29174 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
29175 | } | |
29176 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
29177 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
29178 | } | |
29179 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
29180 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
29181 | } | |
29182 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
29183 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29184 | } | |
29185 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
29186 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
29187 | } | |
29188 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
29189 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
29190 | } | |
29191 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
29192 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
29193 | } | |
29194 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
29195 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
29196 | } | |
29197 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
29198 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29199 | } | |
29200 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
29201 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29202 | } | |
29203 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
29204 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
29205 | } | |
29206 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
29207 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
29208 | } | |
29209 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
29210 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
29211 | } | |
29212 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
29213 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
29214 | } | |
29215 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
29216 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
29217 | } | |
29218 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
29219 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
29220 | } | |
29221 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
29222 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
29223 | } | |
29224 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
29225 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
29226 | } | |
29227 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
29228 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
29229 | } | |
29230 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
29231 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
29232 | } | |
29233 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
29234 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
29235 | } | |
29236 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
29237 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
29238 | } | |
29239 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
29240 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
29241 | } | |
29242 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
29243 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
29244 | } | |
29245 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
29246 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
29247 | } | |
29248 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
29249 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
29250 | } | |
29251 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
29252 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
29253 | } | |
29254 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
29255 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
29256 | } | |
1e0c8722 RD |
29257 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
29258 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
29259 | } | |
d14a1e28 RD |
29260 | static void *_p_wxImageTo_p_wxObject(void *x) { |
29261 | return (void *)((wxObject *) ((wxImage *) x)); | |
29262 | } | |
29263 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
29264 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
29265 | } | |
29266 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
29267 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
29268 | } | |
29269 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
29270 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
29271 | } | |
29272 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
29273 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29274 | } | |
29275 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
29276 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29277 | } | |
29278 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
29279 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
29280 | } | |
29281 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
29282 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
29283 | } | |
29284 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
29285 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
29286 | } | |
29287 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
29288 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
29289 | } | |
29290 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
29291 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
29292 | } | |
29293 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
29294 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
29295 | } | |
29296 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
29297 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29298 | } | |
29299 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
29300 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
29301 | } | |
29302 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
29303 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
29304 | } | |
29305 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
29306 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
29307 | } | |
29308 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
29309 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
29310 | } | |
29311 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
29312 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
29313 | } | |
29314 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
29315 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
29316 | } | |
29317 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
29318 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29319 | } | |
29320 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
29321 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
29322 | } | |
29323 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
29324 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
29325 | } | |
29326 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
29327 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
29328 | } | |
29329 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
29330 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29331 | } | |
29332 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
29333 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
29334 | } | |
29335 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
29336 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29337 | } | |
29338 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
29339 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
29340 | } | |
29341 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
29342 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
29343 | } | |
29344 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
29345 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
29346 | } | |
29347 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
29348 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
29349 | } | |
29350 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
29351 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
29352 | } | |
29353 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
29354 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
29355 | } | |
29356 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
29357 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
29358 | } | |
29359 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
29360 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
29361 | } | |
29362 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
29363 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
29364 | } | |
29365 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
29366 | return (void *)((wxWindow *) ((wxControl *) x)); | |
29367 | } | |
29368 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
29369 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
29370 | } | |
29371 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
29372 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
29373 | } | |
29374 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
29375 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
29376 | } | |
29377 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
29378 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
29379 | } | |
15afbcd0 RD |
29380 | 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}}; |
29381 | 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}}; | |
29382 | 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}}; | |
29383 | 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}}; | |
29384 | 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}}; | |
29385 | 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}}; | |
29386 | 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}}; | |
29387 | 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 | 29388 | 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 |
29389 | 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}}; |
29390 | 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}}; | |
29391 | 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}}; | |
29392 | 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}}; | |
29393 | 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}}; | |
29394 | 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}}; | |
29395 | 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}}; | |
29396 | 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}}; | |
29397 | 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}}; | |
29398 | 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}}; | |
29399 | 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}}; | |
29400 | 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}}; | |
29401 | 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}}; | |
29402 | 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}}; | |
29403 | 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}}; | |
29404 | 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}}; | |
29405 | 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 | 29406 | 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 |
29407 | 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}}; |
29408 | 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}}; | |
29409 | 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}}; | |
29410 | 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 |
29411 | 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}}; |
29412 | 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}}; | |
29413 | 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}}; | |
29414 | 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}}; | |
29415 | 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}}; | |
29416 | 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}}; | |
29417 | 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}}; | |
29418 | 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}}; | |
29419 | 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}}; | |
29420 | 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}}; | |
29421 | 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}}; | |
29422 | 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}}; | |
29423 | 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}}; | |
29424 | 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 | 29425 | 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 |
29426 | 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}}; |
29427 | 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}}; | |
29428 | 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}}; | |
29429 | 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}}; | |
29430 | 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}}; | |
29431 | 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}}; | |
29432 | 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}}; | |
29433 | 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}}; | |
29434 | 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}}; | |
29435 | 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}}; | |
29436 | 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}}; | |
29437 | 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}}; | |
29438 | 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}}; | |
29439 | 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}}; | |
29440 | 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}}; | |
29441 | 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}}; | |
29442 | 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}}; | |
29443 | 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}}; | |
29444 | 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}}; | |
29445 | 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}}; | |
29446 | 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}}; | |
29447 | 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}}; | |
29448 | 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}}; | |
29449 | 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}}; | |
29450 | 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}}; | |
29451 | 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}}; | |
29452 | 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}}; | |
29453 | 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}}; | |
29454 | 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}}; | |
29455 | 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}}; | |
29456 | 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}}; | |
29457 | 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}}; | |
29458 | 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}}; | |
29459 | 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}}; | |
29460 | 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}}; | |
29461 | 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 |
29462 | 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}}; |
29463 | 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}}; | |
29464 | 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 |
29465 | |
29466 | static swig_type_info *swig_types_initial[] = { | |
29467 | _swigt__p_wxLogChain, | |
29468 | _swigt__p_wxMutexGuiLocker, | |
29469 | _swigt__p_wxFileHistory, | |
29470 | _swigt__p_wxLog, | |
29471 | _swigt__p_wxDateTime__TimeZone, | |
29472 | _swigt__p_wxMenu, | |
29473 | _swigt__p_wxEvent, | |
29474 | _swigt__p_wxConfigBase, | |
4276dc52 | 29475 | _swigt__p_wxDisplay, |
d14a1e28 RD |
29476 | _swigt__p_wxFileType, |
29477 | _swigt__p_wxLogGui, | |
29478 | _swigt__p_wxFont, | |
29479 | _swigt__p_wxDataFormat, | |
29480 | _swigt__p_wxTimerEvent, | |
29481 | _swigt__p_wxCaret, | |
29482 | _swigt__p_int, | |
29483 | _swigt__p_wxSize, | |
29484 | _swigt__p_wxClipboard, | |
29485 | _swigt__p_wxStopWatch, | |
29486 | _swigt__p_wxDC, | |
29487 | _swigt__p_wxClipboardLocker, | |
29488 | _swigt__p_wxIcon, | |
29489 | _swigt__p_wxLogStderr, | |
29490 | _swigt__p_wxLogTextCtrl, | |
29491 | _swigt__p_wxTextCtrl, | |
29492 | _swigt__p_wxBusyCursor, | |
36cadbf7 | 29493 | _swigt__p_wxPyBitmapDataObject, |
d14a1e28 RD |
29494 | _swigt__p_wxPyTextDataObject, |
29495 | _swigt__p_wxBitmapDataObject, | |
29496 | _swigt__p_wxTextDataObject, | |
29497 | _swigt__p_wxDataObject, | |
994141e6 | 29498 | _swigt__p_wxFileDataObject, |
d14a1e28 RD |
29499 | _swigt__p_wxCustomDataObject, |
29500 | _swigt__p_wxURLDataObject, | |
29501 | _swigt__p_wxMetafileDataObject, | |
4d5c3d91 | 29502 | _swigt__p_wxSound, |
d14a1e28 RD |
29503 | _swigt__p_wxTimerRunner, |
29504 | _swigt__p_wxLogWindow, | |
29505 | _swigt__p_wxTimeSpan, | |
29506 | _swigt__p_wxArrayString, | |
29507 | _swigt__p_wxWindowDisabler, | |
29508 | _swigt__p_wxToolTip, | |
29509 | _swigt__p_wxDataObjectComposite, | |
29510 | _swigt__p_wxFileConfig, | |
29511 | _swigt__p_wxSystemSettings, | |
4276dc52 | 29512 | _swigt__p_wxVideoMode, |
d14a1e28 RD |
29513 | _swigt__p_wxPyDataObjectSimple, |
29514 | _swigt__p_wxDataObjectSimple, | |
29515 | _swigt__p_wxEvtHandler, | |
29516 | _swigt__p_wxRect, | |
994141e6 | 29517 | _swigt__p_char, |
d14a1e28 RD |
29518 | _swigt__p_wxSingleInstanceChecker, |
29519 | _swigt__p_wxFileTypeInfo, | |
29520 | _swigt__p_wxFrame, | |
29521 | _swigt__p_wxTimer, | |
29522 | _swigt__p_wxMimeTypesManager, | |
29523 | _swigt__p_wxPyArtProvider, | |
29524 | _swigt__p_wxPyTipProvider, | |
29525 | _swigt__p_wxTipProvider, | |
29526 | _swigt__p_wxJoystick, | |
29527 | _swigt__p_wxSystemOptions, | |
29528 | _swigt__p_wxPoint, | |
29529 | _swigt__p_wxJoystickEvent, | |
29530 | _swigt__p_wxCursor, | |
29531 | _swigt__p_wxObject, | |
29532 | _swigt__p_wxOutputStream, | |
29533 | _swigt__p_wxDateTime, | |
29534 | _swigt__p_wxPyDropSource, | |
29535 | _swigt__p_wxWindow, | |
29536 | _swigt__p_wxString, | |
29537 | _swigt__p_wxPyProcess, | |
29538 | _swigt__p_wxBitmap, | |
29539 | _swigt__p_wxConfig, | |
29540 | _swigt__p_wxChar, | |
29541 | _swigt__p_wxBusyInfo, | |
29542 | _swigt__p_wxPyDropTarget, | |
29543 | _swigt__p_wxPyTextDropTarget, | |
29544 | _swigt__p_wxPyFileDropTarget, | |
29545 | _swigt__p_wxProcessEvent, | |
29546 | _swigt__p_wxPyLog, | |
29547 | _swigt__p_wxLogNull, | |
29548 | _swigt__p_wxColour, | |
29549 | _swigt__p_wxConfigPathChanger, | |
29550 | _swigt__p_wxPyTimer, | |
29551 | _swigt__p_wxDateSpan, | |
29552 | 0 | |
29553 | }; | |
29554 | ||
29555 | ||
29556 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
29557 | ||
29558 | static swig_const_info swig_const_table[] = { | |
15afbcd0 RD |
29559 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, |
29560 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
29561 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
29562 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
29563 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
d14a1e28 RD |
29564 | {0}}; |
29565 | ||
29566 | #ifdef __cplusplus | |
29567 | } | |
29568 | #endif | |
29569 | ||
29570 | #ifdef __cplusplus | |
29571 | extern "C" | |
29572 | #endif | |
29573 | SWIGEXPORT(void) SWIG_init(void) { | |
29574 | static PyObject *SWIG_globals = 0; | |
29575 | static int typeinit = 0; | |
29576 | PyObject *m, *d; | |
29577 | int i; | |
29578 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
29579 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
29580 | d = PyModule_GetDict(m); | |
29581 | ||
29582 | if (!typeinit) { | |
29583 | for (i = 0; swig_types_initial[i]; i++) { | |
29584 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
29585 | } | |
29586 | typeinit = 1; | |
29587 | } | |
29588 | SWIG_InstallConstants(d,swig_const_table); | |
29589 | ||
15afbcd0 RD |
29590 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT)); |
29591 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT)); | |
29592 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT)); | |
29593 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT)); | |
29594 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
29595 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE)); | |
29596 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT)); | |
29597 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT)); | |
29598 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT)); | |
29599 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR)); | |
29600 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND)); | |
29601 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP)); | |
29602 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
29603 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
29604 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU)); | |
29605 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW)); | |
29606 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME)); | |
29607 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT)); | |
29608 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT)); | |
29609 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
29610 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
29611 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
29612 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE)); | |
29613 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT)); | |
29614 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
29615 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE)); | |
29616 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE)); | |
29617 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW)); | |
29618 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW)); | |
29619 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT)); | |
29620 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT)); | |
29621 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
29622 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
29623 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT)); | |
29624 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
29625 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT)); | |
29626 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW)); | |
29627 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT)); | |
29628 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT)); | |
29629 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK)); | |
29630 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX)); | |
29631 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT)); | |
29632 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
29633 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
29634 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT)); | |
29635 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR)); | |
29636 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX)); | |
29637 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS)); | |
29638 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X)); | |
29639 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y)); | |
29640 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X)); | |
29641 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y)); | |
29642 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X)); | |
29643 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y)); | |
29644 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X)); | |
29645 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y)); | |
29646 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X)); | |
29647 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y)); | |
29648 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X)); | |
29649 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y)); | |
29650 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X)); | |
29651 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X)); | |
29652 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y)); | |
29653 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X)); | |
29654 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y)); | |
29655 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X)); | |
29656 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y)); | |
29657 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X)); | |
29658 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y)); | |
29659 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X)); | |
29660 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y)); | |
29661 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X)); | |
29662 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y)); | |
29663 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y)); | |
29664 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X)); | |
29665 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X)); | |
29666 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y)); | |
29667 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y)); | |
29668 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y)); | |
29669 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y)); | |
29670 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT)); | |
29671 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT)); | |
29672 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS)); | |
29673 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS)); | |
29674 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
29675 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME)); | |
29676 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE)); | |
29677 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY)); | |
29678 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA)); | |
29679 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL)); | |
29680 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP)); | |
b2dc1044 RD |
29681 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
29682 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
29683 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
29684 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
15afbcd0 RD |
29685 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF)); |
29686 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT)); | |
29687 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS)); | |
29688 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT)); | |
d14a1e28 | 29689 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); |
1c0f361b RD |
29690 | |
29691 | wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer"); | |
29692 | ||
15afbcd0 RD |
29693 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError)); |
29694 | PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error)); | |
29695 | PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning)); | |
29696 | PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message)); | |
29697 | PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status)); | |
29698 | PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info)); | |
29699 | PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug)); | |
29700 | PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace)); | |
29701 | PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress)); | |
29702 | PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User)); | |
29703 | PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max)); | |
29704 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); | |
29705 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); | |
29706 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
29707 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
29708 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
29709 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001)); | |
29710 | PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002)); | |
29711 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004)); | |
29712 | PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008)); | |
29713 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100)); | |
29714 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT)); | |
29715 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT)); | |
29716 | PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK)); | |
29717 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL)); | |
29718 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED)); | |
29719 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS)); | |
29720 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR)); | |
29721 | PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE)); | |
29722 | PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP)); | |
29723 | PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT)); | |
29724 | PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT)); | |
29725 | PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL)); | |
29726 | PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP)); | |
29727 | PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT)); | |
29728 | PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT)); | |
29729 | PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT)); | |
29730 | PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE)); | |
29731 | PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL)); | |
29732 | PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS)); | |
29733 | PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV)); | |
29734 | PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS)); | |
29735 | PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE)); | |
29736 | PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM)); | |
29737 | PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM)); | |
d14a1e28 | 29738 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); |
15afbcd0 RD |
29739 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC)); |
29740 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC)); | |
29741 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE)); | |
29742 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER)); | |
d14a1e28 RD |
29743 | |
29744 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
29745 | ||
15afbcd0 RD |
29746 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1)); |
29747 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2)); | |
29748 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY)); | |
29749 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1)); | |
29750 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2)); | |
29751 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3)); | |
29752 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4)); | |
d14a1e28 RD |
29753 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); |
29754 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
29755 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
29756 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
15afbcd0 RD |
29757 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC)); |
29758 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC)); | |
29759 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP)); | |
29760 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD)); | |
29761 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE)); | |
29762 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE)); | |
29763 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME)); | |
29764 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL)); | |
d14a1e28 RD |
29765 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); |
29766 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
29767 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
29768 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
29769 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
29770 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
29771 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
29772 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
29773 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
29774 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
29775 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
29776 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
29777 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
29778 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
29779 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
29780 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
29781 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
29782 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
29783 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
29784 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
29785 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
29786 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
29787 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
29788 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
29789 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
29790 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
29791 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
29792 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
29793 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
29794 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
29795 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
29796 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
29797 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
29798 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
29799 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
29800 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
29801 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
29802 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
29803 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
29804 | ||
29805 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
29806 | ||
15afbcd0 RD |
29807 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE)); |
29808 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE)); | |
29809 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH)); | |
29810 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
29811 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown)); | |
29812 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String)); | |
29813 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean)); | |
29814 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer)); | |
29815 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float)); | |
b2dc1044 RD |
29816 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); |
29817 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
15afbcd0 RD |
29818 | PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local)); |
29819 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12)); | |
29820 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11)); | |
29821 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10)); | |
29822 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9)); | |
29823 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8)); | |
29824 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7)); | |
29825 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6)); | |
29826 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5)); | |
29827 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4)); | |
29828 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3)); | |
29829 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2)); | |
29830 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1)); | |
29831 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0)); | |
29832 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1)); | |
29833 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2)); | |
29834 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3)); | |
29835 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4)); | |
29836 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5)); | |
29837 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6)); | |
29838 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7)); | |
29839 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8)); | |
29840 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9)); | |
29841 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10)); | |
29842 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11)); | |
29843 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12)); | |
29844 | PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET)); | |
29845 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST)); | |
29846 | PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET)); | |
29847 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST)); | |
29848 | PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET)); | |
29849 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST)); | |
29850 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK)); | |
29851 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD)); | |
29852 | PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST)); | |
29853 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT)); | |
29854 | PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST)); | |
29855 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT)); | |
29856 | PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST)); | |
29857 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT)); | |
29858 | PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST)); | |
29859 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT)); | |
29860 | PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST)); | |
29861 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT)); | |
29862 | PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST)); | |
29863 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST)); | |
29864 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT)); | |
29865 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST)); | |
29866 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST)); | |
29867 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST)); | |
29868 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST)); | |
29869 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC)); | |
29870 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian)); | |
29871 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian)); | |
29872 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown)); | |
29873 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard)); | |
29874 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska)); | |
29875 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania)); | |
29876 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria)); | |
29877 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen)); | |
29878 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg)); | |
29879 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol)); | |
29880 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia)); | |
29881 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria)); | |
29882 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium)); | |
29883 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria)); | |
29884 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1)); | |
29885 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2)); | |
29886 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3)); | |
29887 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada)); | |
29888 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China)); | |
29889 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1)); | |
29890 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2)); | |
29891 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia)); | |
29892 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark)); | |
29893 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt)); | |
29894 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia)); | |
29895 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland)); | |
29896 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France)); | |
29897 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace)); | |
29898 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine)); | |
29899 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg)); | |
29900 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany)); | |
29901 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic)); | |
29902 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia)); | |
29903 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant)); | |
29904 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain)); | |
29905 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece)); | |
29906 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary)); | |
29907 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland)); | |
29908 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy)); | |
29909 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan)); | |
29910 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1)); | |
29911 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2)); | |
29912 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3)); | |
29913 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia)); | |
29914 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania)); | |
29915 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg)); | |
29916 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands)); | |
29917 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen)); | |
29918 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
29919 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
29920 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland)); | |
29921 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway)); | |
29922 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland)); | |
29923 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal)); | |
29924 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania)); | |
29925 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia)); | |
29926 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland)); | |
29927 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain)); | |
29928 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden)); | |
29929 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland)); | |
29930 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic)); | |
29931 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant)); | |
29932 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey)); | |
29933 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA)); | |
29934 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales)); | |
29935 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia)); | |
29936 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown)); | |
29937 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default)); | |
29938 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start)); | |
29939 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC)); | |
29940 | PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France)); | |
29941 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany)); | |
29942 | PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK)); | |
29943 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End)); | |
29944 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia)); | |
29945 | PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA)); | |
29946 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan)); | |
29947 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb)); | |
29948 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar)); | |
29949 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr)); | |
29950 | PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May)); | |
29951 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun)); | |
29952 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul)); | |
29953 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug)); | |
29954 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep)); | |
29955 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct)); | |
29956 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov)); | |
29957 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec)); | |
29958 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month)); | |
29959 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun)); | |
29960 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon)); | |
29961 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue)); | |
29962 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed)); | |
29963 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu)); | |
29964 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri)); | |
29965 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat)); | |
29966 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay)); | |
29967 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year)); | |
29968 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full)); | |
29969 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr)); | |
29970 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First)); | |
29971 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First)); | |
29972 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First)); | |
98e665d3 | 29973 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); |
15afbcd0 RD |
29974 | PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID)); |
29975 | PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT)); | |
29976 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP)); | |
29977 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE)); | |
29978 | PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK)); | |
29979 | PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF)); | |
29980 | PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF)); | |
29981 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT)); | |
29982 | PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB)); | |
29983 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE)); | |
29984 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA)); | |
29985 | PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF)); | |
29986 | PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE)); | |
29987 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT)); | |
29988 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE)); | |
29989 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME)); | |
29990 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE)); | |
29991 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE)); | |
29992 | PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML)); | |
29993 | PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX)); | |
d14a1e28 | 29994 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); |
15afbcd0 RD |
29995 | PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get)); |
29996 | PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set)); | |
29997 | PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both)); | |
29998 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly)); | |
29999 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove)); | |
30000 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove)); | |
30001 | PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError)); | |
30002 | PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone)); | |
30003 | PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy)); | |
30004 | PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove)); | |
30005 | PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink)); | |
30006 | PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel)); | |
d14a1e28 RD |
30007 | |
30008 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
30009 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
30010 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
30011 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
30012 | ||
30013 | SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); | |
4276dc52 | 30014 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); |
d14a1e28 RD |
30015 | } |
30016 |